/* Global styles — shared by dashboard + admin */
:root{
  --bg:#05091a; --panel:#0c1430; --panel2:#0f1a3a; --panel-hi:#152448;
  --ice:#e9edfb; --mute:#8a94b8;
  --gold:#f4c84a; --gold-hi:#ffe089;
  --blue:#3b6bff; --red:#e63946; --green:#2ec275; --purple:#a35bff;
}
*{box-sizing:border-box;}
body{
  margin:0; background:var(--bg); color:var(--ice);
  font-family:'Inter', system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
}
input, textarea, select, button{ font-family:inherit; }
kbd{
  background:rgba(244,200,74,.15); border:1px solid rgba(244,200,74,.4);
  padding:2px 8px; border-radius:4px; color:var(--gold-hi); font-size:11px;
}

/* ══════════════════════════════════════════════════════════════════
   WC26 RESTYLE v2 — design tokens + component classes (spec §5 Ship 1)
   ══════════════════════════════════════════════════════════════════ */

/* ── design tokens ─────────────────────────────── */
:root {
  --gold-dim: #b88a1a;
  --panel-dim: #081029;
  --card-border: rgba(148,170,230,.12);
  --card-border-hi: rgba(244,200,74,.28);
  --shadow-card: 0 4px 24px rgba(0,0,0,.45);
  --shadow-card-hi: 0 8px 40px rgba(0,0,0,.6);
  --radius-card: 16px;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ── reusable card surface ─────────────────────── */
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-dim) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 22px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hi);
  border-color: var(--card-border-hi);
}

/* ── numbered section header ───────────────────── */
.section-head {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 4px 14px;
  margin: 28px 0 14px;
}
.section-head .num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, #2a4fcc 100%);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px; letter-spacing: .04em;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(59,107,255,.35);
  flex-shrink: 0;
}
.section-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px; letter-spacing: .08em;
  color: var(--gold-hi);
  margin: 0;
  text-transform: uppercase;
}
.section-head .sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--mute);
  margin-left: auto;
}

/* ── hero mascots (inline SVG components; CSS owns ONLY the tile chrome) ── */
.mascot {
  width: 144px; height: 172px; border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  position: relative; overflow: hidden;
  padding-bottom: 8px;
  transform-origin: center bottom;
  box-shadow: inset 0 0 30px rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.5);
}
.mascot::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 45%, rgba(255,255,255,.16), transparent 60%);
  pointer-events: none;
}
.mascot .flag { position: absolute; top: 6px; left: 0; right: 0; text-align: center; font-size: 14px; z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.mascot svg { width: 124px; height: 124px; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); z-index: 1; margin-top: 6px; }
.mascot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.mascot .num { font-family: 'Bebas Neue', sans-serif; font-size: 13px; color: #fff; opacity: .9; letter-spacing: .08em; z-index: 2; position: relative; }
.mascot-usa { background: linear-gradient(180deg, #1b3fb4 0%, #0e2168 75%, transparent); }
.mascot-can { background: linear-gradient(180deg, #b8242a 0%, #6b1216 75%, transparent); }
.mascot-mex { background: linear-gradient(180deg, #0f7a3e 0%, #072d16 75%, transparent); }

/* ── mascot dance keyframe ── */
@keyframes mascot-dance {
  0%   { transform: translateY(0px)   rotate(0deg)  scaleX(1);    }
  10%  { transform: translateY(-11px) rotate(-8deg) scaleX(.97);  }
  20%  { transform: translateY(-3px)  rotate(-2deg) scaleX(1.02); }
  30%  { transform: translateY(-13px) rotate(8deg)  scaleX(.97);  }
  40%  { transform: translateY(-3px)  rotate(2deg)  scaleX(1.02); }
  50%  { transform: translateY(-10px) rotate(-6deg) scaleX(.98);  }
  60%  { transform: translateY(-2px)  rotate(0deg)  scaleX(1);    }
  70%  { transform: translateY(-12px) rotate(7deg)  scaleX(.97);  }
  80%  { transform: translateY(-3px)  rotate(1deg)  scaleX(1.02); }
  90%  { transform: translateY(-8px)  rotate(-5deg) scaleX(.98);  }
  100% { transform: translateY(0px)   rotate(0deg)  scaleX(1);    }
}

/* shadow under each mascot shrinks/grows with the bounce */
@keyframes mascot-shadow-dance {
  0%,100% { transform: translateX(-50%) scaleX(1);   opacity: .16; }
  15%      { transform: translateX(-50%) scaleX(.7);  opacity: .08; }
  40%      { transform: translateX(-50%) scaleX(.65); opacity: .07; }
  60%      { transform: translateX(-50%) scaleX(1.1); opacity: .2;  }
}

/* ── mascot row (top-level promoted from Hero) ── */
.mascot-row {
  display: flex; justify-content: center; gap: 18px;
  margin: -10px 0 22px;
  padding: 8px 0 28px;
  position: relative;
}
.mascot-row::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: min(540px, 80%); height: 18px;
  background: radial-gradient(ellipse at center, rgba(244,200,74,.16) 0%, transparent 70%);
  pointer-events: none;
}
/* entrance drop → 3 s of dancing → stop */
.mascot-row .mascot {
  opacity: 0;
  animation-name: mascot-drop, mascot-dance;
  animation-timing-function: var(--ease-bounce), ease-in-out;
  animation-fill-mode: forwards, none;
  animation-iteration-count: 1, 2;
  animation-duration: .8s, 1.5s;
}
/* stagger entrance + offset dance phase so they don't all move in sync */
.mascot-row .mascot:nth-child(1) { animation-delay: 200ms, 1000ms; }
.mascot-row .mascot:nth-child(2) { animation-delay: 280ms, 1200ms; }
.mascot-row .mascot:nth-child(3) { animation-delay: 360ms, 1400ms; }

/* once entrance is done: clear animation so hover can restart freely */
.mascot-row.mascots-settled .mascot {
  opacity: 1;
  animation: none;
  cursor: pointer;
}
.mascot-row.mascots-settled .mascot:hover {
  animation: mascot-dance 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mascot-row .mascot {
    animation-name: mascot-drop !important;
    animation-iteration-count: 1 !important;
    animation-fill-mode: forwards !important;
  }
  .mascot-row.mascots-settled .mascot:hover {
    animation: none;
  }
}

/* ── journey bracket with arrow connectors ─────── */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.journey-card { position: relative; }
.journey-card + .journey-card::before {
  content: "→"; position: absolute; left: -14px; top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold); font-size: 22px;
  text-shadow: 0 0 12px rgba(244,200,74,.5);
  pointer-events: none;
}
.journey-card .round-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(59,107,255,.14);
  border: 1px solid rgba(59,107,255,.35);
  border-radius: 999px;
  color: #90b2ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .12em;
  margin-bottom: 10px;
}
.journey-card .round-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px; letter-spacing: .1em;
  color: var(--ice);
  margin-bottom: 10px;
  white-space: nowrap;
}
.journey-card .round-transition {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--gold);
}
.journey-card .round-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin: 10px 0;
}

/* ── fixture card with real flags ──────────────── */
.fixtures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.fixture { display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; cursor: default; }
.fixture-scorers {
  display: none;
  position: absolute; inset: 0; z-index: 10;
  background: rgba(10,16,42,.96);
  padding: 10px 12px;
  flex-direction: row; gap: 10px; align-items: flex-start;
}
.fixture.has-scorers:hover .fixture-scorers { display: flex; }
.fixture-scorers-col { flex: 1; min-width: 0; }
.fixture-scorers-team {
  font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: .16em;
  color: rgba(244,200,74,.8); margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fixture-scorers-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: rgba(255,255,255,.75); line-height: 1.65;
}
.fixture-scorers-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 4px; }
.fixture-scorers-goals { color: var(--gold-hi); font-weight: 700; flex-shrink: 0; }
.fixture-scorers-divider { width: 1px; background: rgba(255,255,255,.1); align-self: stretch; flex-shrink: 0; }
.fixture-matchup { display: flex; align-items: center; justify-content: center; gap: 14px; }
.fixture-team { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.fixture-team img {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  object-fit: cover;
}
.fixture-team .tname { font-family: 'Bebas Neue', sans-serif; font-size: 13px; letter-spacing: .08em; color: var(--ice); }
.fixture-vs { font-family: 'Fraunces', serif; font-style: italic; color: var(--mute); font-size: 14px; }
.fixture-score { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.fixture-score-line { display: flex; align-items: center; gap: 7px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: var(--ice); line-height: 1; }
.fixture-score-line .dash { color: var(--mute); font-size: 15px; }
.fixture-score-line .win { color: var(--gold-hi); }
.fixture-score-ft { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .2em; color: var(--green); }
.fixture-team--win .tname { color: var(--gold-hi); }
.fixture-meta { display: flex; justify-content: space-between; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mute); letter-spacing: .06em; border-top: 1px solid var(--card-border); padding-top: 10px; }

/* ── fixture fact overlay on hover ─────────────── */
.fixture-fact {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10,18,48,.97) 0%, rgba(5,9,26,.98) 100%);
  border: 1px solid rgba(244,200,74,.25);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  opacity: 0;
  transform: translateY(6px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.fixture-fact-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(244,200,74,.6);
}
.fixture-fact-text {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(224,232,255,.85);
  text-align: center;
}
.fixture:hover .fixture-fact,
.fixture.fact-open .fixture-fact {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── podium card artwork ───────────────────────── */
.podium-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.predictors-insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.insight-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.podium-slot {
  position: relative;
  text-align: center;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.podium-slot.slot-silver { order: 1; background-image: url('/static/podium-silver.png'); aspect-ratio: 400 / 565; }
.podium-slot.slot-gold   { order: 2; background-image: url('/static/podium-gold.png');   aspect-ratio: 400 / 682; }
.podium-slot.slot-bronze { order: 3; background-image: url('/static/podium-bronze.png'); aspect-ratio: 400 / 560; }
.podium-avatar {
  position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--panel-hi);
  border: 2px solid rgba(255,255,255,.5);
  display: grid; place-items: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  overflow: hidden;
}
.podium-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.podium-avatar .emoji-avatar { font-size: 24px; }
.podium-slot.slot-gold .podium-avatar {
  width: 78px; height: 78px; top: 64%; font-size: 26px;
}
.podium-slot.slot-gold .podium-avatar .emoji-avatar { font-size: 28px; }
.podium-info {
  position: absolute; left: 0; right: 0;
  top: calc(62% + 36px);
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.podium-name {
  font-family: 'Bebas Neue', sans-serif; font-size: 15px; letter-spacing: .12em;
  color: #fff;
  display: block; width: fit-content; margin: 0 auto 4px;
  background: rgba(0,0,0,.55);
  padding: 2px 10px 3px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.podium-score {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px;
  color: var(--ice);
  display: inline;
}
.podium-pts {
  font-size: 9px; color: rgba(255,255,255,.75); letter-spacing: .18em;
  display: inline; margin-left: 4px;
}
.podium-slot.slot-gold .podium-name  { font-size: 18px; color: var(--gold-hi); background: rgba(0,0,0,.6); display: block; }
.podium-slot.slot-gold .podium-score { font-size: 24px; color: var(--gold-hi); }
.podium-slot.slot-gold .podium-info  { top: calc(64% + 44px); }

/* ── mystery sealed / unlocked cards ───────────── */
.mystery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.mystery-sealed,
.mystery-unlocked {
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  min-height: 110px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mystery-sealed {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, var(--panel) 0%, var(--panel-dim) 100%);
  border: 1px dashed rgba(244,200,74,.3);
  border-radius: var(--radius-card);
}
.mystery-sealed .locked {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; color: var(--gold); letter-spacing: .2em;
  margin: 8px 0;
}
.mystery-sealed .qlabel,
.mystery-unlocked .qlabel {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--mute); letter-spacing: .14em; text-transform: uppercase;
}
.mystery-sealed .pts,
.mystery-unlocked .pts {
  display: inline-block; margin-top: 8px; padding: 3px 10px;
  background: rgba(244,200,74,.12); border-radius: 999px;
  font-size: 10px; color: var(--gold-hi);
  font-family: 'JetBrains Mono', monospace; letter-spacing: .1em;
}
.mystery-unlocked {
  background: linear-gradient(180deg, rgba(46,194,117,.18) 0%, var(--panel-dim) 100%);
  border: 1px solid rgba(46,194,117,.45);
}
.mystery-unlocked .question {
  font-family: 'Fraunces', serif; font-size: 16px; color: var(--ice); margin: 8px 0;
}
.mystery-unlocked .chip {
  display: inline-block; padding: 3px 10px; background: rgba(46,194,117,.2);
  border: 1px solid rgba(46,194,117,.5); border-radius: 999px;
  color: #84e5b1; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .14em;
}

/* ── CTA footer with trophy glow ───────────────── */
.cta-hero {
  position: relative;
  margin-top: 40px;
  padding: 80px 56px 64px;
  background: linear-gradient(180deg, #0a1230 0%, #05091a 100%);
  border-radius: 22px;
  overflow: hidden;
}
.cta-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(244,200,74,.55) 0%, transparent 65%),
    radial-gradient(ellipse 30% 60% at 15% -10%, rgba(59,107,255,.18) 0%, transparent 55%);
  pointer-events: none;
}
.cta-hero .trophy {
  position: absolute;
  bottom: -32px; right: 36px;
  font-size: 240px;
  opacity: .35;
  filter: drop-shadow(0 10px 22px rgba(244,200,74,.25));
  line-height: 1;
  pointer-events: none;
  transform: rotate(-10deg);
}
@media (max-width: 768px) {
  .cta-hero .trophy { font-size: 120px; right: 16px; }
}
.cta-hero h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(46px, 6.4vw, 78px);
  color: var(--ice);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0 0 30px;
  position: relative; z-index: 2;
}
.cta-hero .cta-button {
  display: inline-block;
  padding: 18px 44px;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 100%);
  color: #1a1406;
  border: none;
  border-radius: 999px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: .18em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(244,200,74,.45);
  transition: transform .2s var(--ease);
  position: relative; z-index: 2;
  animation: button-pulse 2.4s var(--ease) infinite;
}
.cta-hero .cta-button:hover { transform: translateY(-2px) scale(1.03); }

/* ── responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
  .journey-card + .journey-card::before { display: none; }
}
@media (max-width: 768px) {
  .journey { grid-template-columns: 1fr; }
  .mascot { width: 100px; height: 122px; }
  .mascot svg { width: 86px; height: 86px; }
  .mascot-row { gap: 10px; margin: -4px 0 14px; }
  .cta-hero { padding: 40px 24px; }
  .cta-hero .trophy { font-size: 120px; right: 16px; }
  .podium-grid { grid-template-columns: 1fr; }
  /* Mobile: surface DOM order (rank-ascending = gold, silver, bronze top-to-bottom).
     Requires Task 7 sort to stay as `a.rank - b.rank`. If the sort ever flips to
     descending, swap this to explicit per-slot `order:` values. */
  .podium-slot { order: unset !important; }
  .predictors-insights-grid { grid-template-columns: 1fr; }
  .insight-cards-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════
   WC26 POLISH v3 — tokens + keyframes
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* motion */
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --duration-entrance: 700ms;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mascot-drop {
  0%   { opacity: 0; transform: translateY(-30px) scale(.85); }
  60%  { opacity: 1; transform: translateY(6px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes button-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(244,200,74,.45); }
  50%      { box-shadow: 0 6px 32px rgba(244,200,74,.75), 0 0 0 4px rgba(244,200,74,.18); }
}

/* ── KPI row (polish-v3 — boxless dramatic numerals) ── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 22px 8px 28px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--card-border);
}
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.kpi .icon {
  font-size: 22px;
  opacity: .7;
  margin-bottom: 4px;
}
.kpi .value {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1;
  color: var(--gold-hi);
  letter-spacing: -.02em;
}
.kpi .label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--mute);
  text-transform: uppercase;
}
.kpi .sub {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 12px;
  color: var(--ice);
  opacity: .55;
  margin-top: 2px;
}
.kpi.kpi-accent .value { color: var(--gold); text-shadow: 0 0 22px rgba(244,200,74,.35); }

@media (max-width: 768px) {
  .kpi-row { grid-template-columns: 1fr; gap: 18px; }
}

/* ── section-header tiers (polish-v3) ── */
.section-head.marquee { margin: 36px 0 18px; padding: 14px 4px 18px; position: relative; }
.section-head.marquee .num {
  width: 38px; height: 38px; font-size: 19px;
  box-shadow: 0 6px 22px rgba(59,107,255,.45);
}
.section-head.marquee::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 30%, var(--gold) 50%, var(--gold-dim) 70%, transparent 100%);
}
.section-head.quiet { margin: 18px 0 8px; padding: 6px 4px 4px; }

/* ── entrance choreography (polish-v3) ── */
.kpi-row,
.journey,
.fixtures-grid,
.podium-grid,
.mystery-grid,
.cta-hero {
  opacity: 0;
  animation: fade-up var(--duration-entrance) var(--ease) forwards;
}
.kpi-row        { animation-delay: 100ms; }
.journey        { animation-delay: 240ms; }
.fixtures-grid  { animation-delay: 360ms; }
.podium-grid    { animation-delay: 480ms; }
.mystery-grid   { animation-delay: 600ms; }
.cta-hero       { animation-delay: 720ms; }

@media (prefers-reduced-motion: reduce) {
  .kpi-row, .journey, .fixtures-grid, .podium-grid, .mystery-grid, .cta-hero,
  .mascot-row .mascot, .cta-hero .cta-button {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   ADDITIONAL ANIMATIONS
   ══════════════════════════════════════════════════════════════════ */

/* ── fixture card stagger-in (triggered by re-keying the grid) ── */
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.fixture-animate {
  opacity: 0;
  animation: card-in 320ms var(--ease) forwards;
  animation-delay: var(--card-delay, 0ms);
}

/* ── leaderboard row slide-in ── */
@keyframes row-in {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.lb-row-animate {
  opacity: 0;
  animation: row-in 280ms var(--ease) forwards;
  animation-delay: var(--row-delay, 0ms);
}

.lb-rank-chip {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  height: 24px; padding: 0 5px; border-radius: 12px;
  background: var(--panel-hi); border: 1px solid var(--gold);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .05em;
  color: var(--gold-hi);
}
.lb-rank-chip .leaf { width: 10px; height: 12px; flex: none; color: var(--gold); }
.lb-rank-chip .leaf.right { transform: scaleX(-1); }

.lb-gem {
  display: inline-block; width: 9px; height: 9px; border-radius: 1px;
  background: var(--green); transform: rotate(45deg);
}

/* ── journey card stagger ── */
@keyframes journey-in {
  from { opacity: 0; transform: translateY(16px) rotate(-1deg); }
  to   { opacity: 1; transform: translateY(0)    rotate(0deg); }
}
.journey-animate {
  opacity: 0;
  animation: journey-in 380ms var(--ease-bounce) forwards;
  animation-delay: var(--journey-delay, 0ms);
}

/* ── KPI value pop ── */
@keyframes value-pop {
  0%   { opacity: 0; transform: scale(.7) translateY(6px); }
  65%  { transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.kpi-value-animate {
  animation: value-pop 500ms var(--ease-bounce) forwards;
  animation-delay: var(--kpi-delay, 0ms);
}

/* ── section number badge glow pulse ── */
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(59,107,255,.35); }
  50%       { box-shadow: 0 4px 28px rgba(59,107,255,.75), 0 0 0 4px rgba(59,107,255,.12); }
}
.section-head .num { animation: badge-pulse 3s ease-in-out infinite; }

/* ── hero photo gentle float ── */
@keyframes photo-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
.hero-photo-wrap { animation: photo-float 5s ease-in-out infinite; }

/* ── hero background orb drift ── */
@keyframes orb-drift {
  0%, 100% { opacity: .22; transform: scale(1)    translateX(0); }
  50%       { opacity: .35; transform: scale(1.12) translateX(12px); }
}
.hero-orb { animation: orb-drift 7s ease-in-out infinite; }

/* ── gold accent text shimmer ── */
@keyframes gold-sweep {
  0%   { background-position: 0%   50%; }
  100% { background-position: 200% 50%; }
}
.hero-gold-text {
  background-size: 200% auto !important;
  animation: gold-sweep 4s linear infinite;
}

/* ── filter pill press bounce ── */
@keyframes pill-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(.92); }
  70%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.pill-pressed { animation: pill-bounce 260ms var(--ease-bounce) forwards; }

@media (prefers-reduced-motion: reduce) {
  .fixture-animate, .lb-row-animate, .journey-animate, .kpi-value-animate,
  .hero-photo-wrap, .hero-orb, .hero-gold-text, .section-head .num {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* prediction distribution rows */
.prediction-row { display: grid; grid-template-columns: 48px 1fr 4fr 1fr 48px; gap: 12px; align-items: center; padding: 12px 0; }
.prediction-bar { display: flex; height: 28px; border-radius: 14px; overflow: hidden; border: 1px solid var(--card-border); }
.prediction-bar__a { background: var(--gold-dim); display: flex; align-items: center; justify-content: center; }
.prediction-bar__b { background: var(--panel-dim); display: flex; align-items: center; justify-content: center; }
.prediction-pct { font-weight: 600; font-size: 0.85rem; }
.prediction-flag { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--card-border); object-fit: cover; }
.prediction-team { font-size: 0.8rem; text-align: center; letter-spacing: 0.04em; }
.prediction-view-all { display: inline-block; padding: 8px 14px; font-size: 0.8rem; letter-spacing: 0.06em; border: 1px solid var(--gold-dim); background: transparent; color: var(--gold-dim); text-decoration: none; border-radius: 6px; margin-top: 8px; }

@media (max-width: 768px) {
  .prediction-row { grid-template-columns: 34px 1fr; gap: 8px; }
  .prediction-bar { grid-column: 1 / -1; }
  .prediction-team { text-align: left; }
}

/* ── Hero responsive layout ─────────────────────── */
.hero-inner {
  display: flex;
  align-items: stretch;
  gap: 32px;
  position: relative;
}
.hero-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.hero-photo-wrap {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 896 / 1195;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(244,200,74,.15);
}
.hero-photo-wrap img,
.hero-flip__face--front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-flip { width: 100%; height: 100%; perspective: 1200px; }
.hero-flip__inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.hero-flip__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-flip__face--back {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, var(--panel-hi, #152448) 0%, var(--panel-dim) 100%);
  border: 1px solid rgba(244,200,74,.28);
  text-align: center;
}
.hero-flip__face--back span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: .12em;
  line-height: 1.5;
  color: var(--gold-hi);
  padding: 0 16px;
}
@media (hover: hover) and (pointer: fine) {
  .hero-flip:hover .hero-flip__inner { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flip__inner { transition: none; }
}
/* Tablet: shrink the photo */
@media (max-width: 900px) {
  .hero-photo-wrap { width: 160px; }
}
/* Phone: stack vertically, photo goes on top as a wide banner */
@media (max-width: 600px) {
  .hero-inner { flex-direction: column-reverse; gap: 16px; }
  .hero-photo-wrap {
    width: 100%;
    height: 180px;
    border-radius: 12px;
  }
  .hero-photo-wrap img,
  .hero-flip__face--front img { object-position: center 20%; }
}

/* ── GROUP RESULTS: standings table ─────────────── */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.standings-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--mute);
  text-align: center;
  padding: 6px 8px 8px;
  border-bottom: 1px solid rgba(244,200,74,.12);
}
.standings-table th.st-team { text-align: left; }
.standings-table td {
  text-align: center;
  padding: 9px 8px;
  border-bottom: 1px dashed rgba(244,200,74,.07);
  color: var(--ice);
}
.standings-table td.st-flag { padding: 6px 4px; width: 32px; }
.standings-table td.st-flag img {
  width: 24px; height: 24px;
  border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto;
}
.standings-table td.st-name {
  text-align: left;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .08em;
  font-size: 14px;
}
.standings-table th.st-rank,
.standings-table td.st-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
  width: 28px;
}
.standings-table td.st-pts-val {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16px;
}
.standings-table tr.st-qualified td { background: rgba(244,200,74,.07); }
.standings-table tr.st-qualified td.st-name { color: var(--gold-hi); }

/* ── GROUP RESULTS: knockout bracket ────────────── */
.bracket-tree {
  display: flex;
  gap: 4px;
  min-width: 1180px;
  min-height: 640px;
}
.bracket-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bracket-col--final {
  flex: 1.4;
}
.bracket-col--final .bracket-round-label {
  color: var(--gold-hi);
}
.bracket-round-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--mute);
  text-align: center;
  padding: 6px 0 10px;
  border-bottom: 1px solid rgba(244,200,74,.1);
  margin-bottom: 4px;
}
.bracket-matches {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 4px 4px;
}
.bracket-match {
  border: 1px solid rgba(148,170,230,.18);
  border-radius: 8px;
  overflow: hidden;
  font-size: 11px;
}
.bracket-team {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  color: var(--ice);
  min-height: 28px;
}
.bracket-team + .bracket-team {
  border-top: 1px solid rgba(148,170,230,.12);
}
.bracket-team img {
  width: 18px; height: 18px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.bracket-team span {
  flex: 1;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .07em;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bracket-team .bracket-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
  flex-shrink: 0;
}
.bracket-team.bracket-winner {
  background: rgba(244,200,74,.12);
}
.bracket-team.bracket-winner span { color: var(--gold-hi); }
.bracket-team.bracket-winner .bracket-score { color: var(--gold-hi); }
.bracket-team.bracket-tbd { opacity: .35; }
.bracket-team .tbd-text {
  font-style: italic;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--mute);
}

/* ── Section 7: Target Practice mini-game ─────── */
.game-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 18px;
}
.game-hud {
  display: flex;
  justify-content: space-between;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .12em;
  color: var(--gold-hi);
  font-size: 15px;
  margin-bottom: 10px;
}
.game-arena {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(46,194,117,.25) 0%, transparent 60%),
    linear-gradient(180deg, #0a1230 0%, #05091a 100%);
  border: 1px solid var(--card-border-hi);
  cursor: crosshair;
}
.game-goal-frame {
  position: absolute;
  left: 6%; right: 6%; top: 6%; bottom: 14%;
  border: 4px solid rgba(233,237,251,.5);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(233,237,251,.07) 14px 15px),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(233,237,251,.07) 14px 15px);
  pointer-events: none;
}
.game-target {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  font-size: 26px; line-height: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(244,200,74,.12);
  box-shadow: 0 0 14px rgba(244,200,74,.5);
  cursor: pointer;
  padding: 0;
  animation: gameTargetPop 140ms var(--ease-bounce, ease);
}
@keyframes gameTargetPop {
  from { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.game-target:active { transform: translate(-50%, -50%) scale(.85); }
.game-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  background: rgba(5,9,26,.72);
  backdrop-filter: blur(2px);
}
.game-overlay-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; letter-spacing: .08em;
  color: var(--ice);
}
.game-final-score {
  font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 48px; color: var(--gold-hi);
  line-height: 1;
}
.game-btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: .14em;
  padding: 10px 28px; border-radius: 999px;
  border: 1px solid rgba(244,200,74,.6);
  background: rgba(244,200,74,.18); color: var(--gold-hi);
  cursor: pointer;
}
.game-btn:hover { background: rgba(244,200,74,.3); }
.game-btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.45);
  font-size: 14px;
  padding: 10px 20px;
}
.game-btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.35); color: rgba(255,255,255,.7); }
.game-submit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.game-submit-label {
  font-family: 'Bebas Neue', sans-serif; letter-spacing: .14em;
  color: var(--gold-hi); font-size: 15px;
}
.game-name-input {
  font-family: 'JetBrains Mono', monospace;
  text-align: center; text-transform: uppercase;
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--card-border-hi);
  background: var(--panel-dim); color: var(--ice);
  letter-spacing: .12em; width: 160px;
}
.game-board {
  background: rgba(255,255,255,.02);
  border-radius: 10px; padding: 12px 14px;
}
.game-board-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .2em; color: var(--mute);
  border-bottom: 1px solid rgba(244,200,74,.12);
  padding-bottom: 8px; margin-bottom: 6px;
}
.game-board-empty { font-size: 12px; color: var(--mute); padding: 8px 0; }
.game-board-row {
  display: grid; grid-template-columns: 24px 1fr auto;
  gap: 8px; align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(244,200,74,.07);
  font-size: 13px; color: var(--ice);
}
.game-board-rank { font-family: 'JetBrains Mono', monospace; color: var(--mute); }
.game-board-name {
  font-family: 'Bebas Neue', sans-serif; letter-spacing: .08em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-board-score {
  font-family: 'Fraunces', serif; font-weight: 600; color: var(--gold-hi);
}
@media (max-width: 760px) {
  .game-layout { grid-template-columns: 1fr; }
}

/* ── TOP SCORERS ───────────────────────────────── */
.scorers-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244,200,74,.25) transparent;
}
.scorers-row::-webkit-scrollbar { height: 4px; }
.scorers-row::-webkit-scrollbar-thumb { background: rgba(244,200,74,.25); border-radius: 4px; }
.scorer-card {
  flex-shrink: 0;
  width: 116px;
  background: linear-gradient(160deg, #0d1535 0%, #07101f 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 14px 10px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.scorer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244,200,74,.22);
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
}
.scorer-card--lead {
  background: linear-gradient(160deg, #1c1500 0%, #0a0f22 100%);
  border-color: rgba(244,200,74,.35);
  box-shadow: 0 0 20px rgba(244,200,74,.12);
}
.scorer-card--lead:hover {
  border-color: rgba(244,200,74,.6);
  box-shadow: 0 12px 32px rgba(244,200,74,.2);
}
.scorer-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.3);
  margin-bottom: 10px;
  letter-spacing: .05em;
}
.scorer-card--lead .scorer-rank { color: rgba(244,200,74,.7); }
.scorer-portrait-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
}
.scorer-portrait {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 42%;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.12);
}
.scorer-card--lead .scorer-portrait {
  border-color: #f4c84a;
  box-shadow: 0 0 18px rgba(244,200,74,.45);
}
.scorer-goals-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #f4c84a;
  color: #05091a;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #05091a;
  box-shadow: 0 2px 8px rgba(0,0,0,.5), 0 0 12px rgba(244,200,74,.4);
  font-weight: 700;
}
.scorer-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--ice);
  line-height: 1.25;
  margin-bottom: 8px;
  min-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scorer-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
}
.scorer-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.1);
}
.scorer-country {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.5);
  letter-spacing: .05em;
}
.scorer-pos {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ── SIDE NAV ──────────────────────────────────── */
.sidenav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  padding: 12px 10px;
  border-radius: 20px;
  background: rgba(5,9,26,.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.06);
}
.sidenav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 5px 0;
  transition: opacity .15s ease;
}
.sidenav-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.3);
  white-space: nowrap;
  user-select: none;
  transition: color .2s ease;
}
.sidenav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.2);
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, width .2s ease, height .2s ease;
}
.sidenav-item:hover .sidenav-label { color: rgba(255,255,255,.55); }
.sidenav-item:hover .sidenav-dot {
  background: rgba(255,255,255,.35);
  border-color: rgba(255,255,255,.35);
}
.sidenav-item.active .sidenav-label {
  color: #f4c84a;
  text-shadow: 0 0 10px rgba(244,200,74,.4);
}
.sidenav-item.active .sidenav-dot {
  width: 8px;
  height: 8px;
  background: #f4c84a;
  border-color: #f4c84a;
  box-shadow: 0 0 10px rgba(244,200,74,.8), 0 0 4px rgba(244,200,74,1);
}
@media (max-width: 900px) {
  .sidenav { display: none; }
}
