:root {
  --bg-top: #0B1020;
  --bg-bottom: #141B2E;
  --accent: #5B8CFF;
  --accent-2: #7CE7FF;
  --text: #EAF0FF;
  --text-dim: #9AA7C7;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --topbar-h: 48px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg-top);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  height: var(--topbar-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  padding-top: env(safe-area-inset-top);
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  border-bottom: 1px solid var(--border);
}
.topbar__title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__btn {
  flex: 0 0 auto;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.topbar__btn:active { transform: scale(0.97); }

/* ---------- Frame ---------- */
.frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}
.site-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg-top);
}

/* ---------- Screens (setup / blocked) ---------- */
.screen {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(91,140,255,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}
.card {
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 24px 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.card__icon {
  border-radius: 18px;
  margin-bottom: 14px;
}
.card__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}
.card__sub {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.45;
}
.note {
  text-align: left;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}
.note p { margin: 0 0 6px; }
.note p:last-child { margin-bottom: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(91,140,255,0.16);
  color: var(--accent-2);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(180deg, var(--accent), #4571e6);
  color: #fff;
  box-shadow: 0 8px 24px rgba(91,140,255,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--gold {
  width: auto;
  padding: 13px 28px;
  background: linear-gradient(180deg, #FFC83D, #F5A623);
  color: #171c46;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(245,166,35,0.40);
}
.btn:active { transform: scale(0.985); }

/* ---------- Launch screen (mode: launch) ---------- */
.launch {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(110% 55% at 50% -8%, rgba(43,214,106,0.16), transparent 55%),
    radial-gradient(130% 75% at 50% 0%, #4853c8 0%, transparent 58%),
    linear-gradient(180deg, #313CA6 0%, #222a7d 60%, #161c54 100%);
}
/* Diagonal "speed" streaks for an athletic feel */
.launch::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: repeating-linear-gradient(
    118deg,
    transparent 0 40px,
    rgba(255,255,255,0.025) 40px 42px
  );
  pointer-events: none;
}
/* Gold + pitch-green energy streak across the top corner */
.launch::after {
  content: "";
  position: absolute;
  top: -70px; right: -90px;
  width: 380px; height: 180px;
  transform: rotate(-19deg);
  background: linear-gradient(90deg,
    rgba(255,200,61,0) 0%,
    rgba(255,200,61,0.20) 45%,
    rgba(43,214,106,0.16) 70%,
    transparent 100%);
  filter: blur(8px);
  pointer-events: none;
}
.launch__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 372px;
  animation: launchIn 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes launchIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.launch__icon {
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.12) inset;
  margin-bottom: 18px;
  animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}
@keyframes pop { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
.launch__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 200, 61, 0.16);
  border: 1px solid rgba(255, 200, 61, 0.4);
  color: #FFD262;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.launch__title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.launch__sub {
  margin: 0 auto 22px;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.80);
}

/* Benefit list */
.benefits {
  list-style: none;
  margin: 0 0 26px;
  padding: 14px 16px;
  text-align: left;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
}
.benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
}
.benefit + .benefit { border-top: 1px solid rgba(255,255,255,0.08); }
.benefit__check {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFC83D, #F5A623);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  box-shadow: 0 4px 12px rgba(245,166,35,0.4);
}
.benefit__check svg { width: 13px; height: 13px; }
.benefit__check svg path { stroke: #171c46; }
.benefit__body { flex: 1 1 auto; }
.benefit__title { display: block; font-size: 14.5px; font-weight: 700; color: #fff; }
.benefit__desc  { display: block; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.66); margin-top: 1px; }

/* Big call-to-action */
.btn--cta {
  width: 100%;
  font-size: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  animation: ctaPulse 2.2s ease-in-out infinite;
}
.btn--cta:active { animation: none; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(245,166,35,0.40); }
  50%      { box-shadow: 0 10px 34px rgba(245,166,35,0.70); }
}
.launch__trust {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.launch__disclaimer {
  margin: 16px auto 0;
  max-width: 320px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255,255,255,0.42);
}

/* Today's match card */
.matchcard {
  margin: 0 0 22px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(43,214,106,0.14), rgba(255,255,255,0.05));
  border: 1px solid rgba(43,214,106,0.40);
  box-shadow: 0 10px 30px rgba(0,0,0,0.30);
}
.matchcard__stage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #6BF0A0;
}
.livedot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2BD66A;
  box-shadow: 0 0 0 0 rgba(43,214,106,0.7);
  animation: live 1.6s ease-out infinite;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(43,214,106,0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(43,214,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,214,106,0); }
}
.matchcard__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}
.matchcard__teams .team {
  flex: 1 1 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.matchcard__teams .team:first-of-type { text-align: right; }
.matchcard__teams .team:last-of-type  { text-align: left; }
.matchcard__teams .vs {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFC83D, #F5A623);
  color: #171c46;
  font-size: 12px; font-weight: 900; letter-spacing: 0.5px;
}
.matchcard__generic {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.matchcard__time {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.66);
}
.launch__text {
  margin: 16px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.22);
  border-top-color: #FFC83D;
  animation: spin 0.8s linear infinite;
}
.launch .btn--gold { margin-top: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
