/* ============================================================
   PUNTY WORLD CUP HUB — shared styles
   Mirrors the punty.ai racing product design system.
   Static, no-build. Defaults to DARK (cyberpunk-neon); a header toggle switches
   to LIGHT and the choice persists. Both [data-theme] blocks are live.
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-alt: #1a1a25;
  --magenta: #e91e8c;
  --cyan: #00d4ff;
  --orange: #ff6b35;
  --yellow: #ffc107;
  --purple: #9d4edd;
  --green: #2ecc71;
  --red: #ff4d6d;
  --text-primary: #ffffff;
  --text-secondary: #c0c0cc;
  --text-muted: #808090;
  --border-subtle: rgba(255, 255, 255, .08);
  --border-default: rgba(255, 255, 255, .12);
  --gradient-sunset: linear-gradient(180deg, #ff2d9e 0%, #ff6b35 50%, #ffc107 100%);
  --gradient-header: linear-gradient(90deg, #e91e8c 0%, #9d4edd 50%, #00d4ff 100%);
  --glow-magenta: 0 0 30px rgba(233, 30, 140, .3);
  --glow-cyan: 0 0 30px rgba(0, 212, 255, .3);

  --font-display: 'Orbitron', 'Segoe UI', sans-serif;
  --font-heading: 'Rajdhani', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans Pro', 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-lg: 14px;
  --maxw: 1120px;
}

/* ---- Light theme (opt-in via the header toggle) ----
   The hub defaults to DARK (the :root tokens above). This block activates when
   the visitor flips data-theme="light". It re-tunes EVERY colour token plus the
   brand gradients + glows for a light canvas. The accent hues are the darker
   light-mode variants (magenta/cyan/orange) so they stay vivid and legible on
   white instead of washing out like neon-on-black. */
[data-theme="light"] {
  --bg-dark: #eceaf4;
  --bg-card: #ffffff;
  --bg-card-alt: #f4f2fb;
  --magenta: #c4007c;
  --cyan: #0077a8;
  --orange: #c84000;
  --yellow: #b8860b;
  --purple: #7b2fc4;
  --green: #1f9d57;
  --red: #c8203f;
  --text-primary: #0f0e1a;
  --text-secondary: #2d2a42;
  --text-muted: #6b6888;
  --border-subtle: rgba(15, 14, 26, .10);
  --border-default: rgba(15, 14, 26, .16);
  /* brand gradients re-tuned for light: deeper, saturated stops (the dark
     gradients ran to bright #ff2d9e/#ffc107/#00d4ff which go candy-washed on
     white). These keep the magenta->cyan / sunset energy but with white text
     staying readable on every stop. */
  --gradient-sunset: linear-gradient(180deg, #d4006e 0%, #e0531f 52%, #c07a00 100%);
  --gradient-header: linear-gradient(90deg, #c4007c 0%, #7b2fc4 50%, #0077a8 100%);
  --glow-magenta: 0 0 22px rgba(196, 0, 124, .16);
  --glow-cyan: 0 0 22px rgba(0, 119, 168, .16);
  /* light-only helper: a track colour that actually reads against white/alt
     surfaces (the dark theme used --bg-dark for progress tracks, which on light
     is the page background and vanishes against the cards). */
  --track-bg: #e3e0ee;
}
:root { --track-bg: rgba(255, 255, 255, .08); }

/* ---- Light-mode polish overrides ----
   Targeted tweaks where a dark-tuned value reads wrong on a light canvas. Each
   is scoped to [data-theme="light"] so the (inactive) dark base is untouched. */
/* dropdown + mobile-menu drop shadows: the dark theme used a near-opaque black
   (rgba 0,0,0,.4) that looks like a heavy bruise on white. Lighten + soften. */
[data-theme="light"] .nav-dd__menu,
[data-theme="light"] .nav { box-shadow: 0 14px 34px rgba(15, 14, 26, .14); }
/* (mascot footprint glow is dialled back for light at its definition below.) */

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
/* subtle scanline overlay — dark only, tasteful */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    180deg, rgba(255, 255, 255, .015) 0px,
    rgba(255, 255, 255, .015) 1px, transparent 1px, transparent 3px);
  opacity: .5;
}
[data-theme="light"] body::before { display: none; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; position: relative; z-index: 2; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-dark) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
/* brand = the real punty.ai logo image (h-12 / md:h-20 on the live site) */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-logo { height: 48px; width: auto; object-fit: contain; display: block; }
@media (min-width: 768px) { .site-logo { height: 80px; } }
.site-logo__fallback {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(18px, 3vw, 26px); letter-spacing: .04em; text-transform: uppercase;
  background: var(--gradient-header);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}

.site-header__spacer { flex: 1; }

/* desktop nav (mirrors the live site: links + hover dropdowns) */
.nav { display: flex; gap: 2px; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-heading); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
  color: var(--text-secondary); padding: 6px 10px; border-radius: var(--radius-sm);
  background: none; border: 0; cursor: pointer; line-height: 1.4;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card-alt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text-primary); }
.nav-dd--active > .nav-dd__btn {
  color: var(--text-primary); border-bottom: 2px solid var(--magenta); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.nav-dd { position: relative; }
.nav-dd__caret { font-size: 9px; opacity: .8; }
.nav-dd__menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  flex-direction: column; min-width: 170px; padding: 6px;
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); box-shadow: 0 12px 30px rgba(0,0,0,.4); z-index: 30;
}
.nav-dd:hover .nav-dd__menu, .nav-dd.is-open .nav-dd__menu { display: flex; }
.nav-dd__menu a {
  font-family: var(--font-heading); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; font-size: 12px;
  color: var(--text-secondary); padding: 7px 10px; border-radius: var(--radius-sm); white-space: nowrap;
}
.nav-dd__menu a:hover { color: var(--text-primary); background: var(--bg-card-alt); text-decoration: none; }
.nav-dd__menu a[aria-current="page"] { color: var(--magenta); }

/* right-side actions: social icons + theme toggle */
.site-header__actions { display: flex; align-items: center; gap: 6px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary); border: 1px solid var(--border-subtle);
}
.social-link:hover { color: var(--text-primary); box-shadow: var(--glow-magenta); text-decoration: none; }

/* Theme toggle — pill style (mirrors punty.ai base.html) */
.theme-toggle {
  position: relative;
  width: 64px; height: 32px;
  border-radius: 16px;
  border: 1.5px solid var(--border-default);
  background: var(--bg-card-alt);
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}
.theme-toggle:hover { border-color: var(--magenta); }
.theme-toggle-pill {
  position: absolute;
  top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] .theme-toggle-pill {
  left: 34px;
  background: #7c6fbf;
  box-shadow: 0 2px 8px rgba(124,111,191,0.5);
}
[data-theme="light"] .theme-toggle-pill {
  left: 2px;
  background: #ff6b35;
  box-shadow: 0 2px 8px rgba(255,107,53,0.5);
}
.theme-toggle-icon {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.theme-toggle-sun { left: 6px; }
.theme-toggle-moon { right: 6px; }
[data-theme="dark"] .theme-toggle-sun { opacity: 0.35; }
[data-theme="dark"] .theme-toggle-moon { opacity: 1; }
[data-theme="light"] .theme-toggle-sun { opacity: 1; }
[data-theme="light"] .theme-toggle-moon { opacity: 0.35; }

/* mobile nav */
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-default); color: var(--text-secondary);
    border-radius: var(--radius-sm); width: 36px; height: 32px; cursor: pointer; font-size: 16px;
  }
  .nav {
    display: none; position: absolute; top: 100%; right: 18px;
    flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg-card);
    border: 1px solid var(--border-default); border-radius: var(--radius-lg);
    padding: 8px; min-width: 210px; box-shadow: 0 12px 30px rgba(0,0,0,.4); z-index: 30;
  }
  .nav.is-open { display: flex; }
  /* on mobile, dropdowns flatten: show the submenu inline beneath the button */
  .nav-dd { position: static; }
  .nav-dd__menu {
    display: flex; position: static; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 4px 12px; min-width: 0;
  }
  .nav-dd__btn { width: 100%; justify-content: space-between; }
}

/* ---- World Cup banner hero ----
   Full-width celebration banner. Capped height on desktop, cover-cropped on
   mobile so the mascot/wordmark stays framed. Neon framing consistent with
   the theme (magenta/cyan gradient edge + soft glow). */
.wc-banner-host { position: relative; z-index: 2; }
.wc-banner {
  margin: 0 auto; max-width: var(--maxw); padding: 16px 18px 0;
}
.wc-banner img {
  width: 100%; height: auto; display: block;
  max-height: 320px; object-fit: cover; object-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--glow-magenta), 0 10px 36px rgba(0,0,0,.45);
}
/* gradient neon edge accent under the banner */
.wc-banner::after {
  content: ""; display: block; height: 3px; margin: 10px 0 2px;
  background: var(--gradient-header); border-radius: 3px; opacity: .9;
}
.wc-banner--slim { padding-top: 14px; }
.wc-banner--slim img { max-height: 150px; }
.wc-banner--slim::after { margin: 8px 0 0; height: 2px; }
@media (max-width: 600px) {
  .wc-banner img { max-height: 200px; }
  .wc-banner--slim img { max-height: 110px; }
}
[data-theme="light"] .wc-banner img { box-shadow: 0 8px 28px rgba(0,0,0,.18); }

/* ---- Page header / hero ---- */
.page-head { padding: 28px 0 8px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 4vw, 34px); margin: 0 0 4px; letter-spacing: .02em;
}
.page-head .sub {
  font-family: var(--font-heading); text-transform: uppercase;
  letter-spacing: .14em; color: var(--text-secondary); font-size: 13px;
}
.section-title {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 18px; margin: 26px 0 12px;
  display: inline-block; position: relative; padding-bottom: 6px;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gradient-header); border-radius: 2px;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 16px;
}

/* ---- Fixtures grid ---- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 380px) { .grid { gap: 12px; } }

/* Recent-results auto-scrolling rail: one compact row (lifts Upcoming up the
   page), swipeable, slow auto-scroll handled in page-index.js. */
.results-rail {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 2px 1px 4px;
}
.results-rail::-webkit-scrollbar { display: none; }
.results-rail__track { display: flex; gap: 14px; width: max-content; }
.results-rail .fixture { flex: 0 0 320px; scroll-snap-align: start; }
@media (max-width: 600px) {
  .results-rail__track { gap: 12px; }
  .results-rail .fixture { flex: 0 0 86vw; max-width: 340px; }
}

.fixture {
  display: flex; flex-direction: column; gap: 8px;
  border-left: 3px solid var(--border-default);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.fixture:hover { transform: translateY(-2px); box-shadow: var(--glow-magenta); text-decoration: none; }
.fixture__top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .1em;
  font-size: 11px; color: var(--text-muted);
}
.fixture__teams { display: flex; align-items: center; gap: 10px; }
.team-line { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.team-line .nm {
  font-family: var(--font-heading); font-weight: 600; font-size: 16px;
  color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vs { color: var(--text-muted); font-family: var(--font-heading); font-size: 12px; padding: 0 4px; }
.score {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--text-primary);
}

/* team badge / monogram chip */
.crest {
  width: 28px; height: 28px; border-radius: 6px; flex: 0 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  letter-spacing: .02em; color: #fff; overflow: hidden;
  border: 1px solid var(--border-default); background: #333;
}
.crest img { width: 100%; height: 100%; object-fit: contain; background: rgba(255,255,255,.06); }
.crest--lg { width: 52px; height: 52px; flex-basis: 52px; font-size: 18px; border-radius: 8px; }

/* ---- Punty mascot portraits — UNFRAMED, NORMALISED FOOTPRINT ----
   The mascots are transparent WebPs of DIFFERENT intrinsic sizes and aspect
   ratios (some tall full-body ~0.41 w/h, some near-square upper-body ~0.91).
   To make two mascots side-by-side read at the SAME scale + baseline, every
   size class is a FIXED box (explicit width AND height — never derived from the
   image), and the <img> fills that box with object-fit:contain +
   object-position:bottom center. So whatever the source dimensions:
     - the character is scaled to the SAME max height (consistent scale),
     - it is bottom-aligned (feet land on the SAME baseline),
     - it is never cropped and never distorted.
   No box, NO border, NO backdrop rectangle — only a SOFT radial accent glow
   grounding the feet (the team accent feeds --mascot-accent). The fixed height
   also reserves the slot before the webp loads (no layout shift).
   Footprint ratio ≈ 0.56 (w/h) gives tall full-body poses full room while
   shorter poses bottom-align inside the same footprint. */
.mascot {
  --mascot-accent: var(--magenta);
  --mascot-w: 96px; --mascot-h: 172px;          /* overridden per size class */
  position: relative; display: inline-flex; align-items: flex-end; justify-content: center;
  flex: 0 0 auto; width: var(--mascot-w); height: var(--mascot-h);
  background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}
/* soft accent glow behind the character — no hard edge, no rectangle.
   Sits in the lower portion of the footprint so it grounds the feet without
   reading as a framed panel. */
.mascot::before {
  content: ""; position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  width: 88%; height: 46%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 52% at 50% 72%,
    color-mix(in srgb, var(--mascot-accent) 40%, transparent) 0%,
    color-mix(in srgb, var(--mascot-accent) 15%, transparent) 46%,
    transparent 72%);
  filter: blur(7px);
}
.mascot__img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom; display: block;
  /* lift the transparent figure off the page a touch */
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
}
/* fixed footprints — width AND height pinned per size.
   Sized so the Punty character reads at a consistent scale on each surface:
   xs = match-hero flank (small, crisp accent), sm = team tiles,
   md = fixture-card face-off, lg = team / champ hero.

   NATIVE CRISPNESS RULE: the source WebPs are small portraits (~90–168px wide,
   ~126–207px tall — most ~122×155). The hero used to scale them to lg (220×394),
   UPSCALING and blurring them. The footprints below are kept at or below native
   so object-fit:contain only ever DOWNSCALES (sharp), never upscales (blur). The
   .mascot__img max-width/height cap (below) is the hard guarantee: the rendered
   bitmap can never exceed the smallest native dimension. */
.mascot--xs { --mascot-w: 70px;  --mascot-h: 96px;  }
.mascot--sm { --mascot-w: 64px;  --mascot-h: 114px; }
.mascot--md { --mascot-w: 104px; --mascot-h: 152px; }
.mascot--lg { --mascot-w: 220px; --mascot-h: 394px; }
[data-theme="light"] .mascot::before { opacity: .62; }
[data-theme="light"] .mascot__img { filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .22)); }

/* ---- LIGHT mascot panels (both themes) ----
   The owner loves the transparent Punty mascots on a LIGHT card, so the three
   surfaces that hold them — the landing fixture cards (.fixture, which wrap a
   .faceoff), the match hero (.match-hero), and the champion lead mascot panel
   (.champ-lead__mascot-panel) — render as a LIGHT bright panel REGARDLESS of
   the page theme. On the dark hub they read as deliberate bright tiles; in
   light theme they sit on light already, so this stays consistent.

   We re-map the colour TOKENS to their light-mode values *locally* on the panel,
   so every descendant (team names, group label, chips, score, "v", kickoff /
   countdown, fav, result badges) inherits dark-on-light contrast automatically —
   no per-element overrides needed. The team-accent underline + glow and the
   per-side accent borders keep their hues (accents stay vivid on the light tile).
   Values mirror the [data-theme="light"] block so both themes match exactly. */
.fixture, .match-hero, .champ-lead__mascot-panel {
  --bg-card: #ffffff;
  --bg-card-alt: #f4f2fb;
  --magenta: #c4007c;
  --cyan: #0077a8;
  --orange: #c84000;
  --yellow: #b8860b;
  --purple: #7b2fc4;
  --green: #1f9d57;
  --red: #c8203f;
  --text-primary: #0f0e1a;
  --text-secondary: #2d2a42;
  --text-muted: #6b6888;
  --border-subtle: rgba(15, 14, 26, .10);
  --border-default: rgba(15, 14, 26, .16);
  --gradient-sunset: linear-gradient(180deg, #d4006e 0%, #e0531f 52%, #c07a00 100%);
  --gradient-header: linear-gradient(90deg, #c4007c 0%, #7b2fc4 50%, #0077a8 100%);
  --glow-magenta: 0 0 22px rgba(196, 0, 124, .16);
  --glow-cyan: 0 0 22px rgba(0, 119, 168, .16);
  --track-bg: #e3e0ee;
}
/* the explicit light surface for the panels (the .card bg + hero gradient now
   resolve light via --bg-card; the hero keeps its accent radial wash on top).
   Re-assert `color` so descendants that only inherit it (e.g. the hero side
   names) pick up the panel's now-light --text-primary instead of the page's
   already-computed light/dark colour. */
.fixture, .match-hero { color: var(--text-primary); }
.fixture { background: var(--bg-card); }
/* on a light tile the mascot drop-shadow should be the soft light-mode one
   (the heavy dark drop-shadow looks like grime on white) — applies in BOTH
   themes since the panel is always light. */
.fixture .mascot__img, .match-hero .mascot__img { filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .22)); }
.fixture .mascot::before, .match-hero .mascot::before { opacity: .62; }

/* champion lead mascot panel: a white/near-white rounded tile that the mascot
   sits on — same treatment as .fixture / .match-hero so the transparent PNG
   reads correctly on white. Applies in both themes (the panel is always light). */
.champ-lead__mascot-panel {
  background: #ffffff; border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 14, 26, .10);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 10px 10px 0; flex: 0 0 auto; align-self: stretch;
  min-height: 220px;
}
.champ-lead__mascot-panel .mascot__img { filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .22)); }
.champ-lead__mascot-panel .mascot::before { opacity: .62; }

/* ---- Fixture card face-off (two mascots squaring up, "v" between) ---- */
.faceoff {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  gap: 8px; padding: 4px 2px 0;
}
.faceoff__side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.faceoff__side .nm {
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; line-height: 1.15;
  color: var(--text-primary); text-align: center;
  white-space: normal; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-height: 2.4em;
}
.faceoff__vs {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--text-muted); letter-spacing: .06em; align-self: center; padding-bottom: 12px;
}
.faceoff__score {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  color: var(--text-primary); align-self: center; padding-bottom: 12px; white-space: nowrap;
}

.fixture__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--border-subtle); padding-top: 9px;
}
.fav {
  font-family: var(--font-heading); font-size: 12px; letter-spacing: .04em;
  color: var(--text-secondary); text-transform: uppercase;
}
.fav b { color: var(--text-primary); }
.kickoff { font-family: var(--font-heading); font-size: 12px; color: var(--text-secondary); }
.kickoff .ko-aest { white-space: nowrap; }
/* live countdown chip on fixture cards */
.countdown {
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--cyan); padding: 2px 8px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
}
.countdown--review { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 45%, transparent); background: color-mix(in srgb, var(--orange) 10%, transparent); }
/* LIVE state — the match is in progress (kickoff passed, < ~2h15m ago). A
   pulsing magenta chip with a leading dot. NOT a review countdown. */
.countdown--live {
  color: var(--magenta); border-color: color-mix(in srgb, var(--magenta) 50%, transparent);
  background: color-mix(in srgb, var(--magenta) 12%, transparent);
  display: inline-flex; align-items: center; gap: 5px;
}
.countdown--live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px;
  background: var(--magenta); box-shadow: 0 0 7px var(--magenta);
  animation: wc-live-pulse 1.4s ease-in-out infinite;
}
@keyframes wc-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .countdown--live::before { animation: none; } }
/* match-page countdown line under the hero meta */
.match-countdown {
  text-align: center; margin: 8px auto 0; font-family: var(--font-heading);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.match-countdown__lbl { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--text-muted); }
.match-countdown__val {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--cyan);
  text-shadow: 0 0 14px color-mix(in srgb, var(--cyan) 35%, transparent);
}
.match-countdown--review .match-countdown__val { color: var(--orange); text-shadow: 0 0 14px color-mix(in srgb, var(--orange) 35%, transparent); }
/* LIVE state on the match page — pulsing magenta "LIVE" with a leading dot */
.match-countdown--live .match-countdown__val {
  color: var(--magenta); text-shadow: 0 0 14px color-mix(in srgb, var(--magenta) 40%, transparent);
  display: inline-flex; align-items: center; gap: 7px;
}
.match-countdown--live .match-countdown__val::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px;
  background: var(--magenta); box-shadow: 0 0 8px var(--magenta);
  animation: wc-live-pulse 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .match-countdown--live .match-countdown__val::before { animation: none; } }

/* status / market chips */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 10px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--border-default); color: var(--text-secondary);
}
.chip--tip { background: var(--gradient-sunset); color: #fff; border: none; }
.chip--review { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 50%, transparent); }
.chip--live { color: var(--magenta); border-color: color-mix(in srgb, var(--magenta) 50%, transparent); }
.chip--final { color: var(--text-muted); }

/* status pills (bet outcome) */
.pill {
  display: inline-flex; align-items: center; font-family: var(--font-heading);
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px;
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent;
}
.pill--pending { color: var(--yellow); border-color: color-mix(in srgb, var(--yellow) 45%, transparent); background: color-mix(in srgb, var(--yellow) 10%, transparent); }
.pill--won, .pill--win { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 10%, transparent); }
.pill--lost, .pill--miss { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); }
.pill--tracked, .pill--hit { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); background: color-mix(in srgb, var(--cyan) 10%, transparent); }

/* ---- Record strip ---- */
.record-strip {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-top: 8px;
}
.stat {
  background: var(--bg-card-alt); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 14px 18px; min-width: 110px; flex: 1;
}
.stat .k { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--text-muted); }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-top: 4px; }
.stat .v.pos { color: var(--green); }
.stat .v.neg { color: var(--red); }

/* ---- Match page hero — COMPACT band ----
   A tight identity strip, NOT the fold. Two SMALL crisp mascots flank a centred
   score / "VS"; team names sit beside each mascot with a subtle accent underline.
   group · venue · kickoff + the live countdown render beneath (see .match-meta).
   The whole band is deliberately short so the plays + model read below it lead. */
.match-hero {
  position: relative; overflow: hidden;
  /* sides hug the centre on wide screens (cap each flank) but still flex down
     on narrow ones — keeps the band cohesive, not spread thin across desktop. */
  display: grid; grid-template-columns: minmax(0, 260px) auto minmax(0, 260px);
  justify-content: center; align-items: center; gap: 18px;
  background:
    radial-gradient(70% 140% at 0% 100%, color-mix(in srgb, var(--accent-1, var(--magenta)) 14%, transparent) 0%, transparent 60%),
    radial-gradient(70% 140% at 100% 100%, color-mix(in srgb, var(--accent-2, var(--cyan)) 14%, transparent) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 16px 18px 14px; margin-top: 12px;
}
.match-hero .side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.match-hero .side.left { justify-content: flex-end; text-align: right; }
.match-hero .side.right { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
.match-hero .side .nm {
  font-family: var(--font-heading); font-weight: 700; font-size: clamp(15px, 3.2vw, 21px);
  line-height: 1.12; min-width: 0;
  /* subtle team-accent underline under just the name */
  padding-bottom: 5px; border-bottom: 2px solid var(--side-accent, var(--border-default));
}
.match-hero .side.left .nm { --side-accent: var(--accent-1, var(--border-default)); }
.match-hero .side.right .nm { --side-accent: var(--accent-2, var(--border-default)); }
.match-hero .mid { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.match-hero .mid .vs-big { font-family: var(--font-display); font-weight: 700; color: var(--text-muted); font-size: 14px; letter-spacing: .14em; }
.match-hero .mid .score-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 7vw, 34px); line-height: 1; }
/* hero meta line (group · venue · kickoff) — now BELOW the band, compact */
.match-meta {
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .08em;
  font-size: 12px; color: var(--text-secondary); text-align: center; margin: 9px auto 0;
}

.preview-block { margin-top: 18px; }
/* Punty's preview / How it played — a styled commentary card, not fine print. */
.preview-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--magenta);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.preview-card h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 2.6vw, 23px);
  margin: 0 0 14px; line-height: 1.25; color: var(--text-primary);
}
.preview-card p {
  color: var(--text-primary); margin: 0 0 14px; max-width: 70ch;
  font-size: 15.5px; line-height: 1.62;
}
.preview-card p:last-child { margin-bottom: 0; }
.preview-card .preview-kicker {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 11px; color: var(--magenta);
  margin: 2px 0 6px;
}
.preview-card .preview-kicker:not(:first-child) { margin-top: 16px; }
@media (max-width: 600px) { .preview-card { padding: 15px 16px; } }

/* pick rows */
.pick-row {
  background: var(--bg-card-alt); border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--mkt, var(--magenta)); border-radius: var(--radius-lg);
  padding: 13px 15px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.pick-row .mkt-chip {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 11px; color: var(--mkt, var(--magenta));
}
.pick-row .sel { font-family: var(--font-heading); font-weight: 700; font-size: 17px; flex: 1; min-width: 120px; }
.pick-row .odds { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.pick-row .stake { font-family: var(--font-heading); color: var(--text-secondary); font-size: 13px; }
.pick-rows { display: flex; flex-direction: column; gap: 10px; }
/* settled outcome treatment on pick rows */
.pick-row--won {
  border-left-color: var(--green) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--green) 8%, transparent) 0%, transparent 55%),
    var(--bg-card-alt);
}
.pick-row--lost { border-left-color: color-mix(in srgb, var(--red) 70%, var(--border-default)) !important; }
/* money figures sitting in a pick row */
.pick-row .money {
  font-family: var(--font-heading); font-size: 12px; color: var(--text-secondary);
  display: inline-flex; flex-direction: column; line-height: 1.25; min-width: 56px;
}
.pick-row .money .lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.pick-row .money .amt { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-primary); }
.pick-row .money .amt.pos { color: var(--green); }
.pick-row .money .amt.neg { color: var(--red); }
/* stake chip = muted context, never the headline */
.pick-row .money--ctx .amt { color: var(--text-secondary); font-weight: 600; font-family: var(--font-heading); font-size: 13px; }
/* scoreline tip context note, rendered beneath the pick row */
.pick-note {
  font-family: var(--font-body); color: var(--text-secondary); font-size: 13.5px;
  margin: -2px 0 2px; padding: 0 2px 0 19px; line-height: 1.5; max-width: 70ch;
  border-left: 2px solid color-mix(in srgb, var(--cyan) 45%, transparent);
}

/* outcome strip on settled match hero */
.outcome-strip {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px;
  background:
    radial-gradient(90% 180% at 0% 0%, color-mix(in srgb, var(--green) 14%, transparent) 0%, transparent 60%),
    var(--bg-card-alt);
  border: 1px solid color-mix(in srgb, var(--green) 38%, transparent);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-lg); padding: 13px 16px;
}
.outcome-strip.is-loss { border-color: color-mix(in srgb, var(--red) 35%, transparent); border-left-color: var(--red);
  background: var(--bg-card-alt); }
.outcome-strip__tag { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--green); }
.outcome-strip.is-loss .outcome-strip__tag { color: var(--red); }
.outcome-strip__txt { font-family: var(--font-heading); font-size: 14px; color: var(--text-secondary); flex: 1; min-width: 160px; }
.outcome-strip__txt b { color: var(--text-primary); }
.outcome-strip__profit { font-family: var(--font-display); font-weight: 800; font-size: 26px; white-space: nowrap; }
.outcome-strip__profit.pos { color: var(--green); text-shadow: 0 0 16px color-mix(in srgb, var(--green) 40%, transparent); }
.outcome-strip__profit.neg { color: var(--red); }

/* stat block */
.statblock { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 6px; }
@media (max-width: 720px) { .statblock { grid-template-columns: 1fr; } }

.winbar { display: flex; height: 26px; border-radius: 7px; overflow: hidden; border: 1px solid var(--border-subtle); }
.winbar > span { display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 11px; color: #fff; min-width: 0; overflow: hidden; }
.winbar .b1 { background: var(--accent-1, var(--magenta)); }
.winbar .bd { background: var(--track-bg); color: var(--text-secondary); box-shadow: inset 1px 0 0 var(--border-subtle), inset -1px 0 0 var(--border-subtle); }
.winbar .b2 { background: var(--accent-2, var(--cyan)); }
.winbar-legend { display: flex; justify-content: space-between; font-family: var(--font-heading); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

.barlist { display: flex; flex-direction: column; gap: 8px; }
.barlist .row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; }
.barlist .lbl { font-family: var(--font-heading); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barlist .track { background: var(--track-bg); border-radius: 6px; height: 14px; overflow: hidden; }
.barlist .fill { height: 100%; background: var(--gradient-sunset); border-radius: 6px; }
.barlist .pct { font-family: var(--font-display); font-size: 12px; text-align: right; color: var(--text-secondary); }

.kv-list { display: flex; gap: 18px; flex-wrap: wrap; }
.kv { display: flex; flex-direction: column; }
.kv .k { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--text-muted); }
.kv .v { font-family: var(--font-display); font-weight: 700; font-size: 20px; }

.scorers-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .scorers-cols { grid-template-columns: 1fr; } }
.scorers-cols h4 { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0 0 8px; color: var(--text-secondary); }

/* ---- Match page: CONTENT-FIRST hierarchy ----
   The compact hero sits at the top, but the PLAYS + model read are the page.
   The plays render in a prominent lead panel directly under the hero so they
   are the first thing the eye lands on after the band. */
.plays-section {
  margin-top: 20px; padding: 18px 18px 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle); position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--magenta) 7%, transparent) 0%, transparent 55%),
    var(--bg-card);
}
/* gradient accent rail down the left edge — marks the lead block */
.plays-section::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gradient-header);
}
/* the section title inside the lead panel sits flush at the top */
.plays-section .section-title { margin-top: 2px; }
.plays-section .section-lead { margin-bottom: 12px; }

/* ---- Match page: insight ("how it maps") enrichments ---- */
.stat-section { margin-top: 28px; }
/* plain-English lead under the section title — the model's one-line read */
.section-lead {
  font-family: var(--font-heading); font-size: 14.5px; line-height: 1.5;
  color: var(--text-secondary); margin: 0 0 14px; max-width: 64ch;
}
.section-lead b, .section-lead strong { color: var(--text-primary); }
/* titled stat card: a clear kicker over each block */
.stat-card { display: flex; flex-direction: column; gap: 12px; }
.stat-card__title {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: 12px; color: var(--text-muted); margin: 0;
}
/* win bar: flag the model's leading outcome */
.winbar > span.is-lead { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.winbar-legend { align-items: center; gap: 8px; }
.winbar-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.winbar-legend__item .dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.winbar-legend__item .dot.b1 { background: var(--accent-1, var(--magenta)); }
.winbar-legend__item .dot.bd { background: var(--bg-card-alt); border: 1px solid var(--border-default); }
.winbar-legend__item .dot.b2 { background: var(--accent-2, var(--cyan)); }
.winbar-legend__item.is-lead { color: var(--text-primary); font-weight: 700; }

/* ---- Match page: "full tips drop" countdown card (tips not yet available) ---- */
.tips-drop {
  margin-top: 22px; padding: 22px 22px 20px; border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--magenta) 38%, transparent);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--magenta) 14%, transparent) 0%, transparent 60%),
    radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--cyan) 12%, transparent) 0%, transparent 55%),
    var(--bg-card);
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
}
.tips-drop::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gradient-header);
}
.tips-drop__kicker {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: 11px; color: var(--cyan);
}
.tips-drop__head {
  font-family: var(--font-display); font-weight: 800; line-height: 1.15;
  font-size: clamp(18px, 3.6vw, 25px); margin: 0; letter-spacing: .01em;
}
.tips-drop__count {
  background: var(--gradient-sunset); -webkit-background-clip: text; background-clip: text;
  color: transparent; white-space: nowrap;
}
.tips-drop__when {
  font-family: var(--font-heading); font-size: 12px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted);
}
.tips-drop__body { font-family: var(--font-heading); font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); margin: 2px 0 0; max-width: 60ch; }
.tips-drop__nudge { font-family: var(--font-heading); font-size: 12.5px; color: var(--text-muted); margin: 0; }
.tips-drop__nudge .arrow { color: var(--magenta); font-weight: 700; }

/* ---- Tables ---- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
table.bets { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.bets th, table.bets td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
table.bets th { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--text-muted); background: var(--bg-card-alt); position: sticky; top: 0; }
table.bets td.num { font-family: var(--font-display); text-align: right; }
table.bets tr:hover td { background: var(--bg-card-alt); }
table.bets td.num.pos { color: var(--green); }
table.bets td.num.neg { color: var(--red); }
/* stake is small context, not the story */
table.bets td.stake-ctx { color: var(--text-muted); font-family: var(--font-heading); font-size: 13px; }
table.bets tr.bet-row--won td { background: color-mix(in srgb, var(--green) 9%, transparent); }
table.bets tr.bet-row--won td:first-child { box-shadow: inset 3px 0 0 var(--green); }
table.bets tr.bet-row--won:hover td { background: color-mix(in srgb, var(--green) 15%, transparent); }
table.bets tr.bet-row--lost td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--red) 70%, transparent); }

/* ---- Column / wraps ---- */
.column { max-width: 72ch; }
.column article { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); }
.column h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 3vw, 24px); margin: 0 0 4px; }
.column .date { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.column p { color: var(--text-secondary); margin: 0 0 12px; }

.review-item { display: block; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.review-item:hover { text-decoration: none; }
.review-item .head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.review-item .matchnm { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--text-primary); }
.review-item p { color: var(--text-secondary); margin: 6px 0 0; }

/* ---- Misc ---- */
.note { color: var(--text-muted); font-size: 13px; font-style: italic; }
.muted { color: var(--text-muted); }
.empty { color: var(--text-muted); padding: 20px; text-align: center; font-family: var(--font-heading); letter-spacing: .04em; }
.back-link { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

/* ---- ROI-tracked framing banner ---- */
.ledger-banner { margin: 16px 0 4px; }
.ledger-banner__inner {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--cyan) 12%, var(--bg-card)) 0%,
    var(--bg-card) 60%);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--border-default));
  border-radius: var(--radius-lg); padding: 11px 16px;
}
.ledger-banner__pill {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: 11px; color: #fff;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.ledger-banner__lead { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--text-primary); }
.ledger-banner__tail { font-family: var(--font-heading); font-size: 13px; color: var(--text-secondary); letter-spacing: .02em; }

/* ---- Hero record (ROI% is the star — never a $ profit headline) ---- */
.record-hero {
  position: relative; overflow: hidden; margin-top: 10px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr);
  gap: 18px; align-items: stretch;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--green) 16%, transparent) 0%, transparent 55%),
    var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--border-default));
  border-radius: var(--radius-lg); padding: 22px;
  box-shadow: 0 0 34px color-mix(in srgb, var(--green) 16%, transparent);
}
@media (max-width: 720px) { .record-hero { grid-template-columns: 1fr; gap: 14px; } }

.record-hero__profit { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.record-hero__label {
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .16em;
  font-size: 12px; color: var(--text-secondary);
}
.record-hero__big {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(40px, 9vw, 68px); letter-spacing: .01em;
}
.record-hero__big.pos { color: var(--green); text-shadow: 0 0 26px color-mix(in srgb, var(--green) 55%, transparent); }
.record-hero__big.neg { color: var(--red); }
.record-hero__sub { font-family: var(--font-heading); font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

.record-hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: center;
}
.record-hero__stat {
  background: var(--bg-card-alt); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 12px 14px;
}
.record-hero__stat .k { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--text-muted); }
.record-hero__stat .v { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-top: 3px; }
.record-hero__stat .v.pos { color: var(--green); }
.record-hero__stat .v.neg { color: var(--red); }

/* ---- Latest winning play highlight ---- */
.latest-win {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background:
    radial-gradient(90% 160% at 100% 0%, color-mix(in srgb, var(--green) 18%, transparent) 0%, transparent 60%),
    var(--bg-card-alt);
  border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-lg); padding: 14px 16px; margin-top: 10px;
  box-shadow: 0 0 22px color-mix(in srgb, var(--green) 12%, transparent);
}
.latest-win__tag {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 11px; color: var(--green);
  display: inline-flex; align-items: center; gap: 6px;
}
.latest-win__body { flex: 1; min-width: 180px; }
.latest-win__match { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--text-primary); }
.latest-win__detail { font-family: var(--font-heading); font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.latest-win__profit { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 5vw, 30px); color: var(--green); text-shadow: 0 0 18px color-mix(in srgb, var(--green) 45%, transparent); white-space: nowrap; }
.latest-win a, a.latest-win { text-decoration: none; }
a.latest-win:hover { box-shadow: 0 0 30px color-mix(in srgb, var(--green) 28%, transparent); text-decoration: none; }

/* ---- Fixture win / loss treatments ---- */
.fixture--won {
  border-left-color: var(--green) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--green) 9%, transparent) 0%, transparent 45%),
    var(--bg-card);
}
.fixture--won:hover { box-shadow: 0 0 30px color-mix(in srgb, var(--green) 24%, transparent); }
.fixture--lost {
  border-left-color: color-mix(in srgb, var(--red) 70%, var(--border-default)) !important;
}
.fixture__result {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--border-subtle); padding-top: 9px; margin-top: 2px;
}
.fixture__result .what { font-family: var(--font-heading); font-size: 12px; color: var(--text-secondary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture__result .what b { color: var(--text-primary); }
.result-badge {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.result-badge--won { color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 50%, transparent); background: color-mix(in srgb, var(--green) 12%, transparent); }
.result-badge--lost { color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 10%, transparent); }

/* ---- Mobile-first refinements (all phones, ≤600px) ---- */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { padding: 0 14px; }
  .page-head { padding: 20px 0 6px; }
  .section-title { font-size: 16px; margin: 20px 0 10px; }
  .card { padding: 12px; }
  /* shrink the face-off mascots so two + names + score fit a 375px card —
     scale width AND height together so the normalised footprint (~0.56) is
     preserved. Kept tight to cut the vertical whitespace the bottom-anchored
     mascots leave above them. */
  .mascot--md { --mascot-w: 72px;  --mascot-h: 104px; }
  .fixture { gap: 8px; }
  .faceoff { gap: 6px; padding: 2px 2px 0; }
  .faceoff__side { gap: 4px; }
  .faceoff__side .nm { font-size: 13.5px; }
  .faceoff__vs, .faceoff__score { padding-bottom: 6px; }
  .faceoff__score { font-size: 19px; }
  .fixture__foot { padding-top: 7px; }
  /* match hero: compact band stays tidy at 375px — small mascots, names wrap */
  .match-hero { gap: 8px; padding: 12px 12px 11px; }
  .match-hero .side { gap: 8px; }
  .match-hero .side .nm { font-size: clamp(13px, 4.6vw, 17px); }
  .mascot--xs { --mascot-w: 56px; --mascot-h: 80px; }
  .match-meta { font-size: 11px; }
  /* generous tap targets for header controls */
  .theme-toggle, .nav-toggle, .social-link { min-height: 44px; min-width: 44px; }
  .nav-dd__menu a, .nav-link { padding-top: 10px; padding-bottom: 10px; }
  /* predictions: keep the champion lead + group rows tidy on 375px */
  .champ-lead { gap: 12px; }
  .champ-lead .mascot--lg { --mascot-w: 132px; --mascot-h: 236px; }
  .group-row { grid-template-columns: 18px 22px 1fr auto; gap: 7px; padding: 6px; }
  .group-row__track { width: 52px; }
  .group-row__pct { min-width: 38px; }
  .bracket__col { width: 168px; }
  .boot-row { grid-template-columns: 20px 24px 1fr auto; gap: 7px; }
  .barlist .row { grid-template-columns: 84px 1fr 40px; gap: 7px; }
  /* tips-drop card: tighter on phones, keep the countdown headline readable */
  .tips-drop { padding: 18px 16px 16px; }
  .stat-section { margin-top: 22px; }
  .section-lead { font-size: 14px; }
}

/* ---- Footer ---- */
.site-footer {
  margin-top: 48px; border-top: 1px solid var(--border-subtle);
  padding: 22px 0 40px; color: var(--text-muted); font-size: 13px;
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 8px; }
.site-footer .rg { color: var(--text-secondary); }
.site-footer .rg a { color: var(--cyan); text-decoration: underline; }
.site-footer .links { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer .links--site a,
.site-footer .links--legal a { color: var(--text-secondary); font-size: 12px; }
.site-footer .footer-copy { font-size: 12px; color: var(--text-muted); }

/* ---- Skip-to-content link (a11y) ---- */
.wc-skip-link {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  left: 0; top: 0; z-index: 10001;
  background: #fff; color: #0a0a0f;
}
.wc-skip-link:focus {
  width: auto; height: auto; clip: auto; overflow: visible;
  white-space: normal; padding: 8px 16px; border-radius: 4px;
}

/* ---- Age gate modal ---- */
.wc-age-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex; align-items: center; justify-content: center;
}
.wc-age-card {
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 32px 28px;
  max-width: 420px; width: calc(100% - 32px);
  text-align: center;
}
.wc-age-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(18px, 4vw, 24px); margin: 0 0 16px;
  background: var(--gradient-header);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wc-age-body { color: var(--text-secondary); margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.wc-age-question { color: var(--cyan); font-family: var(--font-heading); font-weight: 700; font-size: 17px; margin: 0 0 20px; }
.wc-age-btnrow { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.wc-age-btn {
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  cursor: pointer; border: none; transition: all 0.2s;
}
.wc-age-btn--yes {
  background: var(--gradient-header); color: #fff;
}
.wc-age-btn--yes:hover { opacity: 0.9; box-shadow: var(--glow-magenta); }
.wc-age-btn--no {
  background: var(--bg-card-alt); color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.wc-age-btn--no:hover { color: var(--text-primary); box-shadow: var(--glow-cyan); }
.wc-age-rg { font-size: 12px; color: var(--text-muted); margin: 0; }
.wc-age-rg a { color: var(--cyan); text-decoration: underline; }

/* ---- Back-to-top button ---- */
.wc-back-to-top {
  display: none;
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 45;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted); cursor: pointer;
  align-items: center; justify-content: center;
  transition: all 0.2s;
}
[data-theme="light"] .wc-back-to-top { background: rgba(255,255,255,0.9); }
.wc-back-to-top.is-hovered,
.wc-back-to-top:hover {
  color: var(--magenta); border-color: var(--magenta);
}

/* ============================================================
   PREDICTIONS PAGE
   ============================================================ */

/* "our pick" flag chip (RG-safe) */
.pred-pick {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; font-size: 10px; color: #fff;
  background: var(--gradient-sunset); padding: 2px 8px; border-radius: 999px;
  white-space: nowrap; display: inline-block; vertical-align: middle;
}
.pred-subhead {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; font-size: 12px; color: var(--text-secondary); margin-bottom: 10px;
}

/* flagged bar row (our pick in the title-race barlist) */
.barlist .row--pick .lbl { color: var(--text-primary); }
.barlist .row--pick .fill { background: var(--gradient-sunset); box-shadow: 0 0 14px color-mix(in srgb, var(--magenta) 45%, transparent); }
.barlist .lbl .pred-pick { margin-left: 6px; }

/* ---- Title race: champion lead ---- */
.champ-lead {
  display: flex; align-items: stretch; gap: 20px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 18px 20px;
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--accent, var(--magenta)) 22%, transparent) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--accent, var(--magenta)) 40%, var(--border-default));
  border-left: 4px solid var(--accent, var(--magenta));
  box-shadow: 0 0 36px color-mix(in srgb, var(--accent, var(--magenta)) 18%, transparent);
}
/* info block: generous vertical rhythm between each element */
.champ-lead__info {
  flex: 1; min-width: 180px; display: flex; flex-direction: column;
  gap: 8px; justify-content: center; padding: 4px 0;
}
/* "Punty's champion" chip inherits .pred-pick (gradient pill) — no override needed */
/* team name: large display font, strong contrast, team-accent gradient on the text */
.champ-lead__team {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 6vw, 44px); line-height: 1.02;
  background: var(--gradient-header);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* win % pops with the team accent hue + neon glow — the star number */
.champ-lead__pct {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 5.5vw, 40px);
  line-height: 1; letter-spacing: .01em;
  color: var(--accent, var(--magenta));
  text-shadow: 0 0 28px color-mix(in srgb, var(--accent, var(--magenta)) 50%, transparent);
}
.champ-lead__cap {
  font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .1em;
  font-size: 12px; color: var(--text-muted);
}
/* mobile: mascot panel stacks above info, centred */
@media (max-width: 500px) {
  .champ-lead { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .champ-lead__mascot-panel { min-height: 180px; width: 100%; max-width: 180px; }
  .champ-lead__info { align-items: center; }
}

/* ---- Groups ---- */
.group-card { display: flex; flex-direction: column; gap: 10px; }
.group-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.group-card__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.group-card__winner { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--text-primary); }
.group-rows { display: flex; flex-direction: column; gap: 6px; }
.group-row {
  display: grid; grid-template-columns: 20px 26px 1fr auto; align-items: center; gap: 10px;
  padding: 6px 8px; border-radius: var(--radius-sm); background: var(--bg-card-alt);
  border: 1px solid transparent;
}
.group-row--q { border-color: color-mix(in srgb, var(--green) 40%, transparent); background: color-mix(in srgb, var(--green) 8%, var(--bg-card-alt)); }
.group-row__pos { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-muted); text-align: center; }
.group-row--q .group-row__pos { color: var(--green); }
.group-row .crest { width: 26px; height: 26px; flex-basis: 26px; font-size: 10px; }
.group-row__nm { font-family: var(--font-heading); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-row__meta { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.group-row__track { width: 70px; height: 8px; background: var(--track-bg); border-radius: 999px; overflow: hidden; display: inline-block; }
.group-row__fill { display: block; height: 100%; background: var(--text-muted); border-radius: 999px; }
.group-row__pct { font-family: var(--font-display); font-size: 12px; color: var(--text-secondary); min-width: 42px; text-align: right; }
.group-row__qchip { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); border-radius: 999px; padding: 1px 6px; }
.group-card__cap { font-family: var(--font-heading); font-size: 11px; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }

/* ---- Knockout bracket ---- */
.bracket-lead {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
  background:
    radial-gradient(100% 160% at 0% 0%, color-mix(in srgb, var(--accent, var(--cyan)) 20%, transparent) 0%, transparent 58%),
    var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--accent, var(--cyan)) 38%, var(--border-default));
  border-left: 4px solid var(--accent, var(--cyan));
}
.bracket-lead .crest { width: 52px; height: 52px; flex-basis: 52px; font-size: 18px; border-radius: 8px; }
.bracket-lead__info { display: flex; flex-direction: column; gap: 3px; min-width: 160px; }
.bracket-lead__team { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 5vw, 32px); }
.bracket-lead__cap { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--text-muted); }

.bracket {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  /* right-edge fade hints there's more bracket to swipe to */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.bracket::-webkit-scrollbar { height: 8px; }
.bracket::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 999px; }
.bracket::-webkit-scrollbar-track { background: transparent; }
.bracket__col { flex: 0 0 auto; width: 200px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.bracket__round {
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: 12px; color: var(--text-secondary); padding-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.tie {
  background: var(--bg-card-alt); border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent, var(--magenta));
  border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px;
}
.tie__pick { display: flex; align-items: center; gap: 8px; }
.tie__pick .crest { width: 22px; height: 22px; flex-basis: 22px; font-size: 9px; }
.tie__nm { font-family: var(--font-heading); font-weight: 700; font-size: 14px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tie__pct { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--accent, var(--magenta)); white-space: nowrap; }
.tie__other { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-heading); font-size: 12px; color: var(--text-muted); padding-left: 30px; }
.tie__vs { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.tie__othernm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Golden boot ---- */
.boot-list { display: flex; flex-direction: column; gap: 6px; }
.boot-row {
  display: grid; grid-template-columns: 24px 28px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-card-alt);
  border: 1px solid transparent;
}
.boot-row--pick { border-color: color-mix(in srgb, var(--accent, var(--magenta)) 45%, transparent); border-left: 3px solid var(--accent, var(--magenta)); background: color-mix(in srgb, var(--accent, var(--magenta)) 8%, var(--bg-card-alt)); }
.boot-row__rank { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-muted); text-align: center; }
.boot-row .crest { width: 28px; height: 28px; flex-basis: 28px; font-size: 10px; }
.boot-row__who { display: flex; flex-direction: column; min-width: 0; }
.boot-row__name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boot-row__name .pred-pick { margin-left: 6px; }
.boot-row__team { font-family: var(--font-heading); font-size: 12px; color: var(--text-muted); }
.boot-row__stats { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.boot-row__goals { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-primary); }
.boot-row__pct { font-family: var(--font-heading); font-size: 12px; color: var(--text-secondary); }
.boot-cap { margin-top: 8px; }

/* ============================================================
   FUTURES — Punty's $50 calls
   ============================================================ */
.futures-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .futures-grid { grid-template-columns: 1fr; } }
.future-call {
  display: flex; flex-direction: column; gap: 8px;
  background:
    radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--cyan) 16%, transparent) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--cyan) 32%, var(--border-default));
  border-radius: var(--radius-lg); padding: 16px;
}
.future-call__label { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--text-secondary); }
.future-call__pickrow { display: flex; align-items: center; gap: 12px; }
.future-call__pickrow .crest { width: 44px; height: 44px; flex-basis: 44px; font-size: 15px; border-radius: 8px; }
.future-call__pick { display: flex; flex-direction: column; min-width: 0; }
.future-call__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 4.5vw, 28px); line-height: 1.05; }
.future-call__sub { font-family: var(--font-heading); font-size: 13px; color: var(--text-muted); }
.future-call__odds {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 5vw, 30px);
  color: var(--cyan); text-shadow: 0 0 20px color-mix(in srgb, var(--cyan) 40%, transparent);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.future-call__mult { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--text-secondary); }
.future-call__ctx { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--border-subtle); }
.future-call__ctx .kv .k { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: var(--text-muted); }
.future-call__ctx .kv .v { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.future-call__ctx .kv .v.pos { color: var(--green); }
.futures-note { margin: 6px 0 0; }

/* futures history sparkline / shift list */
.futures-history {
  margin-top: 14px; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 14px 16px;
}
.futures-history__head { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.futures-history__row { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--border-subtle); }
.futures-history__row:first-of-type { border-top: none; }
.futures-history__date { font-family: var(--font-heading); font-size: 12px; color: var(--text-muted); letter-spacing: .04em; }
.futures-history__cell { font-family: var(--font-heading); font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.futures-history__cell b { color: var(--text-primary); font-weight: 700; }
.futures-history__odds { font-family: var(--font-display); color: var(--cyan); }
.futures-history__steady { font-family: var(--font-heading); font-size: 12px; color: var(--text-muted); font-style: italic; padding-top: 4px; }

/* landing teaser for the $50 calls */
.futures-teaser {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px;
  background:
    radial-gradient(90% 160% at 0% 0%, color-mix(in srgb, var(--cyan) 16%, transparent) 0%, transparent 60%),
    var(--bg-card-alt);
  border: 1px solid color-mix(in srgb, var(--cyan) 38%, transparent);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-lg); padding: 14px 16px;
}
.futures-teaser:hover { text-decoration: none; box-shadow: var(--glow-cyan); }
.futures-teaser__tag { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--cyan); }
.futures-teaser__body { flex: 1; min-width: 180px; }
.futures-teaser__line { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--text-primary); }
.futures-teaser__line b { color: var(--cyan); }
.futures-teaser__cta { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

/* ============================================================
   Inline-SVG charts (team rating "market" trend + cumulative ROI)
   ============================================================ */
.chart-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 16px; }
.chart-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.chart-card__title { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--text-primary); }
.chart-card__now { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 5vw, 28px); line-height: 1; }
.chart-card__now.pos { color: var(--green); text-shadow: 0 0 18px color-mix(in srgb, var(--green) 45%, transparent); }
.chart-card__now.neg { color: var(--red); }
.chart-card__sub { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* the SVG itself — neon line, soft area, faint axis. preserveAspectRatio:none
   stretches it full-width while keeping a fixed drawing height. */
.hub-chart { width: 100%; height: auto; display: block; margin-top: 10px; aspect-ratio: 640 / 200; overflow: visible; }
.hub-chart__line { stroke-width: 2.5; fill: none; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 0%, transparent)); }
.hub-chart__area { opacity: .14; }
.hub-chart__dot { stroke: var(--bg-card); stroke-width: 2; }
.hub-chart__axis { stroke: var(--border-subtle); stroke-width: 1; }
.hub-chart__xlabel { font-family: var(--font-heading); font-size: 11px; fill: var(--text-muted); letter-spacing: .04em; }

/* single-point state ("trend builds daily") */
.chart-card__single-note { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ============================================================
   Team landing page (team.html)
   ============================================================ */
.back-link { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--text-secondary); }

.team-hero {
  --accent: var(--magenta);
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  position: relative; overflow: hidden; margin-top: 6px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 58%),
    var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border-default));
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 16%, transparent);
}
@media (max-width: 560px) { .team-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; } }
.team-hero .mascot { --mascot-w: 190px; --mascot-h: 340px; }
@media (max-width: 560px) { .team-hero .mascot { --mascot-w: 150px; --mascot-h: 268px; } }
.team-hero__info { min-width: 0; }
.team-hero__crumb { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--text-secondary); }
.team-hero__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 6vw, 44px); margin: 2px 0 8px; letter-spacing: .01em; }
.team-hero__verdict { display: flex; flex-direction: column; gap: 4px; }
.team-hero__verdict-tag { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--accent); }
.team-hero__verdict-txt { font-family: var(--font-body); font-size: clamp(15px, 2.4vw, 18px); color: var(--text-primary); line-height: 1.4; }

/* stat row */
.team-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0; }
@media (max-width: 640px) { .team-stats { grid-template-columns: repeat(2, 1fr); } }
.team-stat { background: var(--bg-card-alt); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 12px 14px; }
.team-stat__k { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: var(--text-muted); }
.team-stat__v { font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 3vw, 20px); margin-top: 3px; }
.team-stat__v.pos { color: var(--green); }
.team-stat__v.muted { color: var(--text-muted); font-size: 15px; }

.team-market { margin-bottom: 4px; }

/* fixtures & results list */
.team-fx-list { display: flex; flex-direction: column; padding: 4px 0; }
.team-fx {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--border-subtle);
  transition: background .12s ease;
}
.team-fx:last-child { border-bottom: 0; }
a.team-fx:hover { background: var(--bg-card-alt); text-decoration: none; }
.team-fx--nolink { opacity: .82; }
.team-fx__opp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-fx__nm { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-fx__mid { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.team-fx__ko { font-family: var(--font-heading); font-size: 12px; color: var(--text-secondary); }
.team-fx__score { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--text-primary); }
.team-fx__rchip {
  font-family: var(--font-heading); font-weight: 700; font-size: 11px; letter-spacing: .06em;
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; color: #fff;
}
.team-fx__rchip.is-w { background: var(--green); }
.team-fx__rchip.is-d { background: var(--text-muted); }
.team-fx__rchip.is-l { background: var(--red); }

/* projected scorers */
.team-scorers { display: flex; flex-direction: column; gap: 2px; }
.team-scorer { --accent: var(--magenta); display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid var(--border-subtle); }
.team-scorer:last-child { border-bottom: 0; }
.team-scorer__rank { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--accent); width: 18px; text-align: center; flex: 0 0 18px; }
.team-scorer__name { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--text-primary); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-scorer__goals { font-family: var(--font-heading); font-size: 13px; color: var(--text-secondary); white-space: nowrap; }

/* ============================================================
   Teams index (teams.html)
   ============================================================ */
.teams-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 420px) { .teams-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.team-tile {
  --accent: var(--magenta);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent); border-radius: var(--radius-lg);
  padding: 14px 12px 12px; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.team-tile:hover { transform: translateY(-2px); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 24%, transparent); text-decoration: none; }
.team-tile .mascot { --mascot-w: 96px; --mascot-h: 172px; }
.team-tile__nm { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--text-primary); line-height: 1.15; }
.team-tile__grp { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: var(--text-muted); }
.team-tile__pct { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--accent); }
.team-tile__pctlbl { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; color: var(--text-muted); margin-top: -4px; }

/* team-name links woven into existing surfaces (fixture cards, group tables) */
a.team-namelink { color: inherit; }
a.team-namelink:hover { text-decoration: underline; text-decoration-color: var(--cyan); }

/* ============================================================
   MOBILE FIXED BOTTOM NAVIGATION
   A native-app-style bar fixed to the bottom of the viewport.
   Only visible below 860px (same breakpoint as .nav-toggle).
   Theme-aware: uses CSS custom properties from :root / [data-theme="light"].
   Safe-area inset padding for iPhone notch/home-indicator (env()).
   ============================================================ */
.wc-bottom-nav {
  display: none; /* hidden on desktop — revealed only by the media query below */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50; /* above sticky header (z-index:20) and all content */
  /* frosted-glass bar: match the header treatment */
  background: color-mix(in srgb, var(--bg-dark) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-default);
  /* safe-area padding so the bar clears the iOS home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[data-theme="light"] .wc-bottom-nav {
  background: color-mix(in srgb, var(--bg-dark) 94%, transparent);
  box-shadow: 0 -4px 20px rgba(15, 14, 26, .10);
}

/* inner flex row — five items, evenly distributed (mobile only) */
@media (max-width: 860px) {
  .wc-bottom-nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-around;
  }
  /* push body content up so the fixed bar never covers the footer */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* each item: a tap target of at least 44px tall, icon above label */
.wc-bottom-nav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; flex: 1;
  min-height: 56px; padding: 8px 4px 6px;
  color: var(--text-muted);
  font-family: var(--font-heading); font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; font-size: 10px;
  text-decoration: none; border: 0; background: none; cursor: pointer;
  transition: color .15s ease;
  /* focus-visible ring for keyboard/assistive nav */
  outline: none;
}
.wc-bottom-nav__item:hover { color: var(--text-primary); text-decoration: none; }
.wc-bottom-nav__item:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

/* active page item: magenta accent */
.wc-bottom-nav__item.is-active {
  color: var(--magenta);
}
.wc-bottom-nav__item.is-active .wc-bottom-nav__icon {
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--magenta) 55%, transparent));
}

/* icon element */
.wc-bottom-nav__icon {
  display: block; flex: 0 0 auto;
  width: 20px; height: 20px;
  transition: filter .15s ease;
}

/* label under the icon */
.wc-bottom-nav__label {
  display: block; line-height: 1; white-space: nowrap;
}

/* ---- Races item: visually distinct "switch products" button ----
   A subtle left divider + tinted accent to signal it leaves the hub. */
.wc-bottom-nav__item--races {
  color: var(--cyan);
  border-left: 1px solid var(--border-default);
  margin-left: 4px;
}
.wc-bottom-nav__item--races:hover { color: var(--text-primary); }
/* Races is never active (always off-hub) — no .is-active rule needed */
