/* ════════════════════════════════════════════════════════════════════════════
   THEME: STADIUM SCOREBOARD (v2 mobile-first redesign)

   Scoped under `body.theme-stadium` so this stylesheet doesn't affect pages
   that haven't been redesigned yet. Mobile-first: base styles target ~375px,
   tablet styles kick in at 768px, desktop at 1100px.

   Palette: deep Phantoms purple as the page background, white as the
   foundation text colour, club green (#1a9e18) as the LED/neon accent,
   Phantoms purple (#7c3aed) as the secondary glow/shadow accent.
   ════════════════════════════════════════════════════════════════════════════ */

body.theme-stadium {
  /* ── Theme tokens (per-theme: override these in theme-X.css) ──── */
  --s-bg:          #1a0d33;
  --s-bg-deep:     #0e0620;
  --s-bg-card:     #251943;
  --s-ink:         #ffffff;
  --s-ink-soft:    rgba(255, 255, 255, 0.78);
  --s-ink-faded:   rgba(255, 255, 255, 0.55);
  --s-line:        rgba(255, 255, 255, 0.18);
  --s-line-strong: rgba(255, 255, 255, 0.42);
  --s-purple:      #7c3aed;
  --s-purple-glow: rgba(124, 58, 237, 0.55);
  --s-green:       #1a9e18;
  --s-green-deep:  #0d6b12;
  --s-green-glow:  rgba(26, 158, 24, 0.4);

  --s-font-display: "Barlow Condensed", system-ui, sans-serif;
  --s-font-body:    "DM Sans", system-ui, sans-serif;

  /* ── Design-system scales (shared across themes — DO NOT override per theme) ──
     Reflect actual usage frequencies in this file as of W1.2:
     - Glow workhorse is 18px (6 hits); 14/24/28/32 used sparingly.
       36px (pulse keyframe) and 10px (text-shadow) stay literal — semantic one-offs.
     - Radius five-tier scale matches real distribution (4/6/8/10/12/14).
       999px pills and 1-3px hairlines stay literal — converting would lose intent.
     - Transitions: 0.15s is the workhorse (13 hits), 0.12s next (7 hits), 0.5s outlier.
     New themes (e.g. theme-athletics-trackside) reuse these scales as-is. */
  --s-glow-sm:  14px;
  --s-glow-md:  18px;
  --s-glow-lg:  24px;
  --s-glow-xl:  32px;

  --s-radius-xs: 4px;
  --s-radius-sm: 6px;
  --s-radius:    8px;
  --s-radius-md: 10px;
  --s-radius-lg: 12px;
  --s-radius-xl: 14px;

  --s-transition-fast: 0.12s;
  --s-transition:      0.15s;
  --s-transition-slow: 0.25s;

  background: var(--s-bg);
  color: var(--s-ink);
  font-family: var(--s-font-body);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.theme-stadium .skip-link {
  background: var(--s-green); color: var(--s-bg-deep);
  font-family: var(--s-font-body); font-weight: 700;
  /* WCAG 2.5.5 hit target — when focused on Tab the skip link must be
     large enough to use, ≥44x44. Legacy default sized it at ~38px. */
  padding: 14px 22px;
  min-height: 44px;
  display: inline-flex; align-items: center;
  /* Legacy positions the skip-link at top:-40px (off-screen until
     keyboard focus). The bumped padding above made the element ~48px
     tall, leaving ~8px peeking below the viewport edge as a green
     sliver. Push it further off-screen so any future size change is
     forgiving. :focus already restores top:0 from the legacy rule. */
  top: -120px;
}

/* ────────────────────────────────────────────────────────────────────────────
   NAV
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14, 6, 32, 0.92);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--s-line);
  padding-top: env(safe-area-inset-top);
}
body.theme-stadium .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  max-width: 1280px; margin: 0 auto;
}
body.theme-stadium .nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
body.theme-stadium .nav-logo {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1.5px solid var(--s-line-strong);
  border-radius: var(--s-radius-sm); padding: 4px;
  background: var(--s-bg-deep);
}
body.theme-stadium .nav-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
body.theme-stadium .nav-title {
  display: flex; flex-direction: column; line-height: 1;
}
body.theme-stadium .nav-title span:first-child {
  font-family: var(--s-font-display);
  font-weight: 800; font-size: 18px;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--s-ink);
}
body.theme-stadium .nav-title span:last-child {
  font-family: var(--s-font-body);
  font-weight: 600; font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--s-green); margin-top: 3px;
}

body.theme-stadium .nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: transparent; border: 1px solid var(--s-line-strong);
  width: 44px; height: 44px;
  border-radius: var(--s-radius-sm);
  align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
body.theme-stadium .nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--s-ink); border-radius: 1px;
  transition: transform 0.2s ease, opacity var(--s-transition) ease;
}
body.theme-stadium .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.theme-stadium .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
body.theme-stadium .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.theme-stadium .nav-links {
  /* lightningcss was collapsing top/right/bottom/left into `inset`
     shorthand. The browser was treating the resulting `inset: 66px 0 0`
     as if only `top: 66px` applied — leaving `bottom: auto` and the
     element sized to content (~25px). Use min-height + height: 100vh
     based explicitly so the menu fills the viewport regardless of how
     the longhand position properties are interpreted. */
  position: fixed !important;
  top: 66px !important;
  right: 0px !important;
  bottom: 0px !important;
  left: 0px !important;
  width: 100vw !important;
  min-height: calc(100vh - 66px) !important;
  min-height: calc(100dvh - 66px) !important;
  height: calc(100vh - 66px) !important;
  height: calc(100dvh - 66px) !important;
  z-index: 1050 !important;
  background-color: var(--s-bg-deep);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(26, 158, 24, 0.12), transparent 50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 24px 24px env(safe-area-inset-bottom);
  margin: 0;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  opacity: 1 !important;
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.theme-stadium .nav-links.open {
  transform: translateX(0) !important;
  pointer-events: auto !important;
}
body.theme-stadium .nav-links li { border-bottom: 1px solid var(--s-line); }
body.theme-stadium .nav-links li:last-child { border-bottom: none; padding-top: 20px; }
body.theme-stadium .nav-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  font-family: var(--s-font-display);
  font-weight: 800; font-size: 32px;
  letter-spacing: 0.005em; text-transform: uppercase;
  color: var(--s-ink); text-decoration: none;
  transition: color var(--s-transition) ease;
}
body.theme-stadium .nav-links a::after {
  content: "→"; font-family: var(--s-font-display);
  font-size: 28px; color: var(--s-green);
  opacity: 0; transform: translateX(-8px);
  transition: opacity var(--s-transition) ease, transform var(--s-transition) ease;
}
body.theme-stadium .nav-links a:hover,
body.theme-stadium .nav-links a:focus-visible { color: var(--s-green); }
body.theme-stadium .nav-links a:hover::after,
body.theme-stadium .nav-links a:focus-visible::after { opacity: 1; transform: translateX(0); }
body.theme-stadium .nav-links a.active { color: var(--s-green); }
body.theme-stadium .nav-cta {
  background: var(--s-green) !important; color: var(--s-bg-deep) !important;
  border-radius: var(--s-radius);
  padding: 18px 22px !important;
  font-size: 22px !important;
  justify-content: center !important;
  box-shadow: 0 0 var(--s-glow-xl) var(--s-green-glow);
}
body.theme-stadium .nav-cta::after { display: none !important; }

@media (min-width: 768px) {
  body.theme-stadium .nav-inner { padding: 14px 24px; }
  body.theme-stadium .nav-toggle { display: none; }
  body.theme-stadium .nav-links {
    /* The mobile rule sets top/right/bottom/left/width/height/min-height
       and position:fixed all as !important to defeat lightningcss's
       inset-shorthand minimisation. The desktop reset has to do the
       same or the menu stays fixed-positioned at the top of the
       viewport on tablet/desktop. */
    position: static !important; transform: none !important;
    inset: auto !important;
    top: auto !important; right: auto !important;
    bottom: auto !important; left: auto !important;
    width: auto !important;
    height: auto !important; min-height: 0 !important;
    pointer-events: auto !important;
    background-color: transparent !important;
    background-image: none !important;
    display: flex; flex-direction: row; align-items: center; gap: 6px;
    padding: 0;
    overflow: visible;
  }
  body.theme-stadium .nav-links li { border-bottom: none; padding: 0; }
  body.theme-stadium .nav-links li:last-child { padding-top: 0; padding-left: 8px; }
  body.theme-stadium .nav-links a {
    padding: 10px 14px; font-size: 13px; letter-spacing: 0.14em;
    border-radius: var(--s-radius-sm);
  }
  body.theme-stadium .nav-links a::after { display: none; }
  body.theme-stadium .nav-links a:hover { background: rgba(255,255,255,0.05); color: var(--s-ink); }
  body.theme-stadium .nav-links a.active { background: rgba(255,255,255,0.08); color: var(--s-ink); }
  body.theme-stadium .nav-cta {
    font-size: 13px !important; padding: 10px 18px !important;
  }
  body.theme-stadium .nav-cta:hover { color: var(--s-bg-deep) !important; }
}

body.theme-stadium main { padding-top: 66px; }
@media (min-width: 768px) { body.theme-stadium main { padding-top: 70px; } }

/* ────────────────────────────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .s-hero {
  position: relative; overflow: hidden;
  background: var(--s-bg-deep);
  padding: 24px 0 32px;
}
body.theme-stadium .s-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
}
body.theme-stadium .s-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.12;
  background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 4px);
}
body.theme-stadium .s-hero-inner {
  position: relative;
  max-width: 1280px; margin: 0 auto;
}
body.theme-stadium .s-ticker {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px;
  background: var(--s-bg-deep);
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  border-top: 1px solid var(--s-line);
  border-bottom: 1px solid var(--s-line);
  overflow: hidden; white-space: nowrap;
  color: var(--s-ink);
}
body.theme-stadium .s-ticker::before {
  content: ""; width: 8px; height: 8px; background: var(--s-green); border-radius: 50%;
  box-shadow: 0 0 10px var(--s-green), 0 0 20px var(--s-green);
  flex-shrink: 0;
  animation: s-pulse 1.8s ease-in-out infinite;
}
@keyframes s-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

body.theme-stadium .s-scoreboard { position: relative; padding: 20px 12px 0; }
body.theme-stadium .s-scoreboard-num {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(150px, 52vw, 280px); line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--s-ink);
  text-shadow:
    -2px -2px 0 var(--s-purple),
    3px 3px 0 var(--s-green),
    0 0 80px var(--s-purple-glow);
  margin: 0;
  display: inline-block;
}
body.theme-stadium .s-scoreboard-num small {
  font-size: 0.16em; vertical-align: super;
  letter-spacing: 0.4em;
  color: var(--s-green);
  text-shadow: none;
  margin-left: 8px;
}

body.theme-stadium .s-stamps {
  display: flex; gap: 8px; padding: 0 16px; margin-top: 12px;
  flex-wrap: wrap;
}
body.theme-stadium .s-stamp {
  display: inline-flex; align-items: center;
  padding: 6px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--s-line-strong); border-radius: var(--s-radius-xs);
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--s-ink);
}
body.theme-stadium .s-stamp--hot {
  background: var(--s-green); color: var(--s-bg-deep); border-color: var(--s-green);
  box-shadow: 0 0 var(--s-glow-md) var(--s-green-glow);
}

body.theme-stadium .s-headline {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(54px, 16vw, 110px); line-height: 0.86;
  letter-spacing: -0.01em; text-transform: uppercase;
  padding: 28px 16px 0; margin: 0;
}
body.theme-stadium .s-headline .s-accent { color: var(--s-green); }
body.theme-stadium .s-headline .s-ghost {
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.45); color: transparent;
}
body.theme-stadium .s-subline {
  font-family: var(--s-font-body); font-weight: 500;
  font-size: 16px; line-height: 1.5;
  padding: 16px 16px 0; max-width: 38ch;
  color: var(--s-ink-soft);
}

body.theme-stadium .s-cta-row {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 16px 0;
}
body.theme-stadium .s-btn {
  display: inline-flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  transition: transform var(--s-transition-fast) ease, box-shadow var(--s-transition-fast) ease;
}
body.theme-stadium .s-btn::after { content: "▸"; font-size: 14px; margin-left: 8px; }
body.theme-stadium .s-btn--prim {
  background: var(--s-green); color: var(--s-bg-deep);
  box-shadow: 0 0 var(--s-glow-lg) var(--s-green-glow);
}
body.theme-stadium .s-btn--prim:hover { transform: translateY(-1px); box-shadow: 0 4px 32px var(--s-green-glow); }
body.theme-stadium .s-btn--sec {
  background: transparent; color: var(--s-ink);
  border: 1.5px solid var(--s-ink);
}
body.theme-stadium .s-btn--sec:hover { background: rgba(255,255,255,0.05); }

body.theme-stadium .s-data-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--s-line);
  margin: 28px 0 0; border-top: 1px solid var(--s-line);
  border-bottom: 1px solid var(--s-line);
}
body.theme-stadium .s-data-row .s-cell { background: var(--s-bg-deep); padding: 16px 12px; }
body.theme-stadium .s-data-row b {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 36px; line-height: 0.9; display: block;
  color: var(--s-ink);
}
body.theme-stadium .s-data-row span {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--s-green); margin-top: 6px; display: block;
}

@media (min-width: 768px) {
  body.theme-stadium .s-hero { padding: 40px 0 48px; }
  body.theme-stadium .s-scoreboard, body.theme-stadium .s-stamps,
  body.theme-stadium .s-headline, body.theme-stadium .s-subline,
  body.theme-stadium .s-cta-row { padding-left: 24px; padding-right: 24px; }
  body.theme-stadium .s-cta-row { flex-direction: row; }
  body.theme-stadium .s-btn { flex: 0 0 auto; min-width: 240px; }
}
@media (min-width: 1100px) {
  body.theme-stadium .s-hero { padding: 56px 0 64px; }
  body.theme-stadium .s-scoreboard, body.theme-stadium .s-stamps,
  body.theme-stadium .s-headline, body.theme-stadium .s-subline,
  body.theme-stadium .s-cta-row { padding-left: 48px; padding-right: 48px; }
  body.theme-stadium .s-data-row .s-cell { padding: 24px 32px; }
  body.theme-stadium .s-data-row b { font-size: 48px; }
}

/* ────────────────────────────────────────────────────────────────────────────
   SECTION PRIMITIVES
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .s-section { padding: 48px 16px; max-width: 1280px; margin: 0 auto; }
body.theme-stadium .s-section-head {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px;
}
body.theme-stadium .s-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--s-green);
}
body.theme-stadium .s-kicker::before { content: ""; width: 24px; height: 2px; background: var(--s-green); }
body.theme-stadium .s-section-head h2 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(40px, 9vw, 64px); line-height: 0.92;
  letter-spacing: -0.01em; text-transform: uppercase;
  margin: 0; color: var(--s-ink);
}
body.theme-stadium .s-section-link {
  align-self: flex-start; margin-top: 4px;
  color: var(--s-green); font-family: var(--s-font-body);
  font-weight: 700; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
  display: inline-flex; gap: 8px; align-items: center;
}
body.theme-stadium .s-section-link::after { content: "→"; font-size: 16px; }
body.theme-stadium .s-section-link:hover { color: var(--s-ink); }
/* Alt section uses the same vertical rhythm as .s-section but spans full
   width (no max-width on the outer) so its background colour runs edge to
   edge. The inner wrapper re-applies the 1280px content cap. */
body.theme-stadium .s-section--alt {
  background: var(--s-bg-deep);
  padding: 48px 16px;
}
body.theme-stadium .s-section--alt > .s-section-inner { max-width: 1280px; margin: 0 auto; }

@media (min-width: 768px) {
  body.theme-stadium .s-section { padding: 64px 24px; }
  body.theme-stadium .s-section--alt { padding: 64px 24px; }
  body.theme-stadium .s-section-head { flex-direction: row; align-items: end; justify-content: space-between; }
  body.theme-stadium .s-section-head .s-kicker-wrap { display: flex; flex-direction: column; gap: 8px; }
  body.theme-stadium .s-section-head .s-section-link { margin-top: 0; }
}
@media (min-width: 1100px) {
  body.theme-stadium .s-section { padding: 80px 48px; }
  body.theme-stadium .s-section--alt { padding: 80px 48px; }
}

/* ────────────────────────────────────────────────────────────────────────────
   TILES (Next Game / Register / Training)
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .s-tiles {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
body.theme-stadium .s-tile {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-xl);
  padding: 22px;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--s-transition) ease, border-color var(--s-transition) ease;
}
body.theme-stadium .s-tile:hover { transform: translateY(-2px); border-color: var(--s-line-strong); }
body.theme-stadium .s-tile--primary {
  background: linear-gradient(135deg, #2c1657 0%, var(--s-bg-card) 70%);
  border-color: var(--s-purple);
}
body.theme-stadium .s-tile--primary::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--s-purple-glow), transparent 70%);
}
body.theme-stadium .s-tile-kicker {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--s-green); position: relative;
}
body.theme-stadium .s-tile-value {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(28px, 8vw, 38px); line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--s-ink);
  margin: 0; position: relative;
}
body.theme-stadium .s-tile-sub {
  font-family: var(--s-font-body); font-size: 13px; color: var(--s-ink-soft);
  margin: 0; position: relative;
}
body.theme-stadium .s-tile-cta {
  margin-top: auto; padding-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--s-green);
}
body.theme-stadium .s-tile-cta::after { content: "→"; font-size: 14px; }

@media (min-width: 768px) {
  body.theme-stadium .s-tiles { grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; }
  body.theme-stadium .s-tile--primary .s-tile-value { font-size: clamp(40px, 5vw, 56px); }
}

/* ────────────────────────────────────────────────────────────────────────────
   CARD GRID
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .s-card-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
body.theme-stadium .s-card {
  background: var(--s-bg-card); border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg); padding: 22px;
}
body.theme-stadium .s-card h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 24px; line-height: 1.05; text-transform: uppercase;
  margin: 6px 0 8px; color: var(--s-ink);
}
body.theme-stadium .s-card p { font-size: 14px; color: var(--s-ink-soft); margin: 0; line-height: 1.55; }
body.theme-stadium .s-card-icon {
  width: 40px; height: 40px; border-radius: var(--s-radius);
  background: var(--s-green); color: var(--s-bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--s-font-display); font-weight: 800; font-size: 22px;
  margin-bottom: 4px;
}
/* index.js emits special-event cards as <a class="home-event-link"><div class="card event-card">…</div></a>
   The legacy .card class brings a light/transparent background; override
   it here so the cards render against the stadium dark theme with
   readable text. */
body.theme-stadium .home-event-link,
body.theme-stadium .event-card {
  text-decoration: none; color: inherit; display: block;
}
body.theme-stadium .event-scroll {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
body.theme-stadium .card.event-card {
  background: var(--s-bg-card); border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg); padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--s-ink);
}
body.theme-stadium .card.event-card .card-icon {
  width: 44px; height: 44px; border-radius: var(--s-radius-md);
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid var(--s-line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 4px;
}
body.theme-stadium .card.event-card h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 22px; line-height: 1.05; text-transform: uppercase;
  margin: 0; color: var(--s-ink);
}
body.theme-stadium .home-event-desc {
  font-family: var(--s-font-body); font-size: 14px;
  color: var(--s-ink-soft); margin: 0; line-height: 1.55;
}
body.theme-stadium .event-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--s-line);
  gap: 10px;
}
body.theme-stadium .home-game-date {
  margin: 0; font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--s-ink-soft);
}
body.theme-stadium .home-event-cta {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--s-green); white-space: nowrap;
}
body.theme-stadium .home-event-link:hover .card.event-card {
  border-color: var(--s-line-strong);
  transform: translateY(-2px);
  transition: transform var(--s-transition) ease, border-color var(--s-transition) ease;
}

@media (min-width: 768px) {
  body.theme-stadium .event-scroll { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1100px) {
  body.theme-stadium .event-scroll { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  body.theme-stadium .s-card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1100px) {
  body.theme-stadium .s-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  body.theme-stadium .s-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ────────────────────────────────────────────────────────────────────────────
   STATS BAR
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .s-stats {
  display: grid;
  /* --stat-count is set by site-content.js renderStats() to the actual
     number of items, so we always render exactly that many columns and
     never leave a phantom empty cell. Fallback handles the case where
     the CSS loads before the JS runs. */
  grid-template-columns: repeat(var(--stat-count, 3), 1fr);
  gap: 1px;
  background: var(--s-line);
  border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line);
}
body.theme-stadium .s-stats .stat {
  background: var(--s-bg-deep); padding: 24px 12px; text-align: left;
}
body.theme-stadium .s-stats .stat-number {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(32px, 9vw, 64px); line-height: 0.9;
  color: var(--s-ink); margin: 0;
}
body.theme-stadium .s-stats .stat-label {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--s-green); margin-top: 8px;
  line-height: 1.3;
}
/* Legacy styles.css has `.stat:last-child:nth-child(odd) { grid-column: 1/-1 }`
   to even out a 2-column layout with an odd stat count. We always render
   exactly --stat-count columns so the last cell must NOT span the row. */
body.theme-stadium .s-stats .stat:last-child:nth-child(odd) { grid-column: auto; }
@media (min-width: 768px) {
  body.theme-stadium .s-stats .stat { padding: 32px 20px; }
  body.theme-stadium .s-stats .stat-number { font-size: clamp(48px, 7vw, 80px); }
}

/* ────────────────────────────────────────────────────────────────────────────
   GALLERY CAROUSEL
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .gallery-carousel {
  position: relative; overflow: hidden;
  border-radius: var(--s-radius-xl); background: var(--s-bg-deep);
  border: 1px solid var(--s-line);
}
body.theme-stadium .gallery-carousel-track { display: flex; transition: transform 0.5s ease; }
body.theme-stadium .gallery-carousel-slide {
  flex: 0 0 100%; aspect-ratio: 4/3;
  position: relative; cursor: pointer;
}
body.theme-stadium .gallery-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.theme-stadium .gallery-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  font-family: var(--s-font-body); font-size: 13px;
}
body.theme-stadium .gallery-progress {
  display: flex; gap: 6px; justify-content: center; padding: 14px 0;
}
body.theme-stadium .gallery-progress-dot {
  width: 24px; height: 4px; background: var(--s-line); border: none;
  cursor: pointer; padding: 0; border-radius: 2px;
  transition: background var(--s-transition) ease;
}
body.theme-stadium .gallery-progress-dot.active { background: var(--s-green); }
body.theme-stadium .gallery-controls { display: flex; gap: 8px; }
body.theme-stadium .gallery-prev, body.theme-stadium .gallery-next {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--s-bg-card); border: 1px solid var(--s-line-strong); color: var(--s-ink);
  cursor: pointer; font-family: var(--s-font-display); font-size: 20px;
}
/* Legacy .gallery-progress-dot has padding:10px to inflate the hit area
   around a tiny 8px circle. Our pill-shaped dots already take the full
   width, so the inherited padding just throws spacing off. */
body.theme-stadium .gallery-progress-dot { padding: 0; }
/* Legacy stylesheet pins .gallery-carousel-slide img to aspect-ratio:4/3.
   On desktop our slides are 1/1, so that legacy rule squashes the image.
   Let the parent slide define the box and object-fit handle the crop. */
body.theme-stadium .gallery-carousel-slide img { aspect-ratio: auto; }
@media (min-width: 768px) { body.theme-stadium .gallery-carousel-slide { flex: 0 0 calc(100% / 3); aspect-ratio: 1/1; } }
@media (min-width: 1100px) { body.theme-stadium .gallery-carousel-slide { flex: 0 0 25%; } }

/* ────────────────────────────────────────────────────────────────────────────
   SPONSORS
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .sponsor-major-row {
  display: grid;
  grid-template-columns: repeat(var(--major-cols, auto-fit), minmax(150px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
body.theme-stadium .sponsor-major-item {
  background: rgba(255,255,255,0.04); border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md); padding: 16px; min-height: 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--s-ink-soft); text-align: center;
  overflow: hidden; min-width: 0;
}
body.theme-stadium .sponsor-major-item img { max-width: 100%; max-height: 50px; object-fit: contain; }
body.theme-stadium .sponsor-name {
  font-family: var(--s-font-display); font-size: 14px; font-weight: 800; text-transform: uppercase;
  max-width: 100%; overflow-wrap: anywhere; line-height: 1.2;
}
body.theme-stadium .sponsor-name-promoted { font-size: 16px; }
body.theme-stadium .sponsor-name-sub { font-size: 12px; opacity: 0.7; }
body.theme-stadium .sponsor-scroll {
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
body.theme-stadium .sponsor-scroll-track {
  display: flex; gap: 24px; animation: s-marquee 44s linear infinite;
  align-items: center;
}
body.theme-stadium .sponsor-scroll-item {
  flex-shrink: 0; min-width: 140px; max-width: 220px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: var(--s-ink-faded);
  font-family: var(--s-font-body); font-size: 12px;
  overflow: hidden;
}
body.theme-stadium .sponsor-scroll-item .sponsor-name { font-size: 11px; }
body.theme-stadium .sponsor-scroll-item img { max-height: 32px; opacity: 0.7; }
@keyframes s-marquee { from { transform: translateX(0); } to { transform: translateX(var(--scroll-dist, -50%)); } }

/* ────────────────────────────────────────────────────────────────────────────
   FB FEED
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .fb-feed-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
body.theme-stadium .fb-post-card {
  background: var(--s-bg-card); border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg); overflow: hidden;
}
body.theme-stadium .fb-post-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
body.theme-stadium .fb-post-body { padding: 16px 18px 8px; }
body.theme-stadium .fb-post-body p { font-size: 13px; line-height: 1.55; color: var(--s-ink-soft); margin: 0; }
body.theme-stadium .fb-post-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 18px 16px; font-size: 11px; color: var(--s-ink-faded);
  font-family: var(--s-font-body); letter-spacing: 0.05em;
}
body.theme-stadium .fb-post-link { color: var(--s-green); text-decoration: none; font-weight: 700; }
body.theme-stadium .fb-feed-empty {
  text-align: center; padding: 32px 16px;
  background: var(--s-bg-card); border: 1px dashed var(--s-line); border-radius: var(--s-radius-lg);
}
@media (min-width: 768px) { body.theme-stadium .fb-feed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { body.theme-stadium .fb-feed-grid { grid-template-columns: repeat(3, 1fr); } }

/* ────────────────────────────────────────────────────────────────────────────
   SHOP PREVIEW
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium #shopPreviewGrid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
body.theme-stadium #shopPreviewGrid .product-card {
  background: var(--s-bg-card); border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md); overflow: hidden;
  display: flex; flex-direction: column;
}
body.theme-stadium #shopPreviewGrid .product-image {
  aspect-ratio: 1/1; background: var(--s-bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--s-green);
}
body.theme-stadium #shopPreviewGrid .product-image img { width: 100%; height: 100%; object-fit: cover; }
body.theme-stadium #shopPreviewGrid .product-info { padding: 12px 14px; }
body.theme-stadium #shopPreviewGrid .product-info h3 {
  font-family: var(--s-font-display); font-weight: 800; font-size: 16px;
  text-transform: uppercase; margin: 0 0 4px; color: var(--s-ink);
}
body.theme-stadium #shopPreviewGrid .product-desc { display: none; }
body.theme-stadium #shopPreviewGrid .product-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 14px 14px;
}
body.theme-stadium #shopPreviewGrid .product-price {
  font-family: var(--s-font-display); font-weight: 800; font-size: 18px; color: var(--s-green);
}
body.theme-stadium #shopPreviewGrid .product-card .btn {
  font-size: 10px; padding: 6px 12px; border-radius: var(--s-radius-xs);
  background: var(--s-green); color: var(--s-bg-deep); border: none;
  font-family: var(--s-font-body); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
}
/* Legacy .product-card:hover applies a mid-purple border + light-theme
   shadow that disappears against the dark page background. Override
   the hover to use the strong line colour and a glow that reads on dark. */
body.theme-stadium #shopPreviewGrid .product-card:hover {
  border-color: var(--s-line-strong);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.22);
}
@media (min-width: 768px) { body.theme-stadium #shopPreviewGrid { grid-template-columns: repeat(4, 1fr); } }

/* Loading skeletons. Legacy .skeleton-card uses a bright white
   background which flashes on the dark page during shop-preview load. */
body.theme-stadium .skeleton-card {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
}
body.theme-stadium .skeleton-line {
  background: linear-gradient(90deg, var(--s-bg-deep) 25%, var(--s-bg-card) 50%, var(--s-bg-deep) 75%);
  background-size: 200% 100%;
}

/* ────────────────────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .footer {
  background: var(--s-bg-deep);
  border-top: 1px solid var(--s-line);
  padding: 48px 16px 24px;
  color: var(--s-ink-soft);
}
/* The footer partial wraps content in <div class="container"> which
   legacy styles as max-width:1200px; padding:0 24px. That stacks 24px
   on top of the footer's 16px horizontal padding on mobile and caps
   the layout 80px shy of the theme's 1280px max. Reset both. */
body.theme-stadium .footer .container { max-width: 1280px; padding: 0; }
body.theme-stadium .footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  max-width: 1280px; margin: 0 auto;
}
body.theme-stadium .footer-brand p { font-size: 13px; line-height: 1.6; color: var(--s-ink-soft); margin: 12px 0 0; }
body.theme-stadium .footer h3 {
  font-family: var(--s-font-display); font-weight: 800; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--s-ink);
  margin: 0 0 14px;
}
body.theme-stadium .footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
body.theme-stadium .footer-links a {
  color: var(--s-ink-soft); text-decoration: none; font-size: 13px;
  transition: color var(--s-transition) ease;
}
body.theme-stadium .footer-links a:hover { color: var(--s-green); }
body.theme-stadium .footer-bottom {
  max-width: 1280px; margin: 32px auto 0;
  padding-top: 24px; border-top: 1px solid var(--s-line);
  display: flex; flex-direction: column; gap: 14px;
  /* Legacy .footer-bottom is a horizontal flex row with
     justify-content:space-between; align-items:center. Now that we're
     stacked as a column those rules space items vertically — reset
     them so each row starts flush-left. */
  justify-content: flex-start; align-items: flex-start; flex-wrap: nowrap;
  font-size: 12px;
  /* WCAG 1.4.3 — was --s-ink-faded (0.55 alpha) which audits at ~4.4:1
     against --s-bg-deep, below the 4.5:1 AA threshold for body text.
     Bumped to --s-ink-soft (0.78 alpha) which clears 4.5:1. */
  color: var(--s-ink-soft);
}
body.theme-stadium .footer-legal { display: flex; gap: 8px; flex-wrap: wrap; }
body.theme-stadium .footer-legal a {
  /* Same contrast bump as the footer text; plus a hit-target floor.
     Padding gives a 44x44 target around the small link text. */
  color: var(--s-ink-soft); text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 3px;
  padding: 12px 8px;
  display: inline-block;
}
body.theme-stadium .footer-legal a:hover { color: var(--s-green); text-decoration-color: var(--s-green); }
body.theme-stadium .footer-social { display: flex; gap: 10px; }
body.theme-stadium .footer-social a {
  /* WCAG 2.5.5 — bumped from 36 to 44 to clear the AAA hit-target floor
     and match the AA-effective minimum once you account for surrounding
     padding. */
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--s-bg-card); border: 1px solid var(--s-line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--s-ink-soft); transition: all var(--s-transition) ease;
}
body.theme-stadium .footer-social a:hover { background: var(--s-green); color: var(--s-bg-deep); border-color: var(--s-green); }
@media (min-width: 768px) { body.theme-stadium .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
@media (min-width: 1100px) { body.theme-stadium .footer { padding: 64px 48px 32px; } }

/* ────────────────────────────────────────────────────────────────────────────
   PAGE LOAD ANIMATION
   Transform-only reveal — earlier iteration used opacity:0 -> 1 which
   left below-the-fold content invisible until the IntersectionObserver
   fired on scroll. WCAG perceivability + axe contrast checks both saw
   that as a real violation (transparent text on dark bg). The slide-up
   alone is enough of a reveal effect and content is always rendered.
   ──────────────────────────────────────────────────────────────────────────── */
body.theme-stadium .fade-up {
  opacity: 1; transform: translateY(20px);
  animation: s-slide-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
body.theme-stadium .stagger-1 { animation-delay: 0.08s; }
body.theme-stadium .stagger-2 { animation-delay: 0.16s; }
body.theme-stadium .stagger-3 { animation-delay: 0.24s; }
body.theme-stadium .stagger-4 { animation-delay: 0.32s; }
body.theme-stadium .stagger-5 { animation-delay: 0.40s; }
body.theme-stadium .stagger-6 { animation-delay: 0.48s; }
@keyframes s-slide-up { to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  body.theme-stadium .fade-up,
  body.theme-stadium .s-ticker::before,
  body.theme-stadium .sponsor-scroll-track,
  body.theme-stadium .announcement-track.scrolling { animation: none !important; }
  body.theme-stadium .fade-up { transform: none; }
  body.theme-stadium .sponsor-scroll-track { flex-wrap: wrap; }
}

/* The legacy .announcement rule adds margin-top:72px (for a non-fixed
   nav layout that no longer exists), uppercase + letter-spacing for an
   all-caps banner, a 5px white border-bottom, and a purple box-shadow.
   Theme intends a low-key scrolling ticker below the fixed nav, so all
   of those need explicit overrides. */
body.theme-stadium .announcement {
  background: var(--s-bg-deep); color: var(--s-ink-soft);
  border-bottom: 1px solid var(--s-line);
  font-family: var(--s-font-body); font-size: 13px; font-weight: 500;
  padding: 10px 16px;
  margin-top: 0;
  text-align: left; letter-spacing: normal; text-transform: none;
  box-shadow: none; overflow: hidden;
  position: sticky; top: 66px; z-index: 50;
}
body.theme-stadium .announcement a { color: var(--s-green); text-decoration: none; }
body.theme-stadium .announcement-divider { color: var(--s-green); margin: 0 12px; opacity: 0.7; }
body.theme-stadium .announcement-item { padding: 0 4px; }

/* Keyboard focus rings on the stadium theme. The dark page background
   tends to swallow the default browser ring, so explicit green outlines
   give a high-contrast visual indicator across every interactive
   element a keyboard user can reach. WCAG 2.4.11. */
body.theme-stadium .s-btn:focus-visible,
body.theme-stadium .s-tile:focus-visible,
body.theme-stadium .s-section-link:focus-visible,
body.theme-stadium .nav-toggle:focus-visible,
body.theme-stadium .nav-brand:focus-visible,
body.theme-stadium .gallery-prev:focus-visible,
body.theme-stadium .gallery-next:focus-visible,
body.theme-stadium .gallery-progress-dot:focus-visible,
body.theme-stadium .footer-social a:focus-visible,
body.theme-stadium .footer-links a:focus-visible,
body.theme-stadium .home-event-link:focus-visible {
  outline: 2px solid var(--s-green);
  outline-offset: 3px;
}

/* Belt-and-braces against the legacy ".fade-up.visible" pattern. The
   theme animation is now transform-only so this is mostly defensive,
   but if any shared common.js handler also toggles a .visible class
   that adds opacity rules, force the visible state. */
body.theme-stadium .fade-up.visible { opacity: 1; transform: none; }

/* ── Inline prose link styling ──────────────────────────────────────────
   WCAG 1.4.1: information conveyed by colour must also be conveyed
   non-colour. Inline links that sit inside prose paragraphs / lists /
   table cells need an underline so users who can't perceive the green
   accent (colour-blind, low contrast environments) still see them as
   interactive. Buttons (.s-btn, .s-btn--prim/sec/sm) own their own
   styling and are excluded. */
body.theme-stadium p > a:not(.s-btn):not(.s-btn-sm),
body.theme-stadium li > a:not(.s-btn):not(.s-btn-sm),
body.theme-stadium .s-state-list a:not(.s-btn):not(.s-btn-sm),
body.theme-stadium .s-bullet-list a:not(.s-btn):not(.s-btn-sm) {
  text-decoration: underline;
  text-decoration-color: rgba(26, 158, 24, 0.65);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
body.theme-stadium p > a:not(.s-btn):not(.s-btn-sm):hover,
body.theme-stadium li > a:not(.s-btn):not(.s-btn-sm):hover {
  text-decoration-color: var(--s-green);
}

/* Override the legacy renderer's inline-styled "See full schedule" link
   inside the training tile body — site-content.js trn() emits
     <a href="about.html#training" style="font-size:13px;color:var(--phantom-purple);">
   which on the dark theme renders as a barely-visible dark purple. !important
   beats the inline style. WCAG 1.4.3 contrast fix. */
body.theme-stadium #trainingTileBody a[href*="about.html#training"] {
  color: var(--s-green) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(26, 158, 24, 0.65) !important;
  text-underline-offset: 3px;
}

/* ── Cookie banner ────────────────────────────────────────────────────────
   cookie-consent.js inserts a banner with <p>...<a href="privacy.html">...</a></p>
   + <button>. The legacy CSS styles it for a light theme — privacy link
   contrast fails and the 'Got it' button is only 33px tall. Theme it
   here so it matches the dark stadium look and meets WCAG. */
body.theme-stadium .cookie-banner {
  background: var(--s-bg-deep) !important;
  border-top: 1px solid var(--s-line-strong) !important;
  color: var(--s-ink) !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45) !important;
}
body.theme-stadium .cookie-banner p {
  color: var(--s-ink-soft) !important;
  font-family: var(--s-font-body) !important;
  font-size: 13px !important; line-height: 1.5 !important;
}
body.theme-stadium .cookie-banner a {
  color: var(--s-green) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(26, 158, 24, 0.65) !important;
  text-underline-offset: 3px;
}
body.theme-stadium .cookie-banner button {
  background: var(--s-green) !important;
  color: var(--s-bg-deep) !important;
  border: none !important;
  font-family: var(--s-font-body) !important;
  font-weight: 800 !important;
  font-size: 12px !important; letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  /* WCAG 2.5.5 — was ~33px tall. */
  padding: 12px 22px !important;
  min-height: 44px !important; min-width: 44px !important;
  border-radius: var(--s-radius-sm) !important; cursor: pointer !important;
  box-shadow: 0 0 var(--s-glow-md) var(--s-green-glow) !important;
}
body.theme-stadium .cookie-banner button:hover { background: #1ab418 !important; }

/* ── Home shop preview product-price contrast finisher ───────────────────
   axe was flagging the price as failing 4.5:1 small-text contrast (it's
   large bold text so should be subject to the 3:1 threshold but axe
   can't always see font-weight reliably). Brighten the green here so
   the small-text rule passes even without the font-weight benefit. */
body.theme-stadium #shopPreviewGrid .product-price {
  color: #2ecc71;
}

/* ════════════════════════════════════════════════════════════════════════════
   SHOP PAGE
   ════════════════════════════════════════════════════════════════════════════ */

/* Compact page hero — shop-side variant of the home hero. No scoreboard
   number, smaller headline. The product grid is the visual anchor on this
   page, so the hero stays out of the way. */
body.theme-stadium .s-hero--page { padding: 36px 0 28px; }
body.theme-stadium .s-hero--page .s-stamps { padding: 0 16px; margin-top: 0; }
body.theme-stadium .s-headline--page {
  font-size: clamp(44px, 12vw, 84px); line-height: 0.92;
  padding: 18px 16px 0;
}
@media (min-width: 768px) {
  body.theme-stadium .s-hero--page { padding: 56px 0 40px; }
  body.theme-stadium .s-hero--page .s-stamps { padding-left: 24px; padding-right: 24px; }
  body.theme-stadium .s-headline--page { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 1100px) {
  body.theme-stadium .s-hero--page { padding: 72px 0 48px; }
  body.theme-stadium .s-hero--page .s-stamps { padding-left: 48px; padding-right: 48px; }
  body.theme-stadium .s-headline--page { padding-left: 48px; padding-right: 48px; }
}

/* ── Filter tabs ────────────────────────────────────────────────────────────
   Horizontal scrolling chip row on mobile, wrapped row on tablet+. The
   legacy .filter-tabs styles a row of buttons with white bg + purple text;
   we override fully here for the dark theme. */
body.theme-stadium .s-filter-tabs {
  display: flex; gap: 8px; flex-wrap: nowrap;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 0 0 16px;
  margin: 0 0 20px;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none;
}
body.theme-stadium .s-filter-tabs::-webkit-scrollbar { display: none; }
body.theme-stadium .s-filter-tabs .filter-tab {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--s-line);
  color: var(--s-ink-soft);
  /* WCAG 2.5.5 — was 10/18 = ~38px tall, bumped to 13/18 so each chip
     clears the 44px minimum hit target. */
  padding: 13px 18px;
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  transition: background var(--s-transition) ease, border-color var(--s-transition) ease, color var(--s-transition) ease;
  white-space: nowrap;
  display: inline-flex; align-items: center;
}
body.theme-stadium .s-filter-tabs .filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--s-line-strong);
  color: var(--s-ink);
}
body.theme-stadium .s-filter-tabs .filter-tab.active {
  background: var(--s-green); border-color: var(--s-green);
  color: var(--s-bg-deep);
  box-shadow: 0 0 var(--s-glow-md) var(--s-green-glow);
}
@media (min-width: 768px) {
  body.theme-stadium .s-filter-tabs { flex-wrap: wrap; }
}

/* ── Product grid (full shop, not just preview) ────────────────────────────
   The shop renderer outputs <div class="shop-section">…<div class="grid grid-4">…cards…</div></div>.
   The legacy .grid.grid-4 is a 4-column desktop grid — we override for the
   theme so it's responsive without horizontal scroll. */
body.theme-stadium #productsGrid .shop-section { margin: 0 0 40px; }
body.theme-stadium #productsGrid .shop-section-heading {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(26px, 6vw, 38px); line-height: 1; text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--s-ink); margin: 0 0 18px;
}
body.theme-stadium #productsGrid .shop-section-heading::before {
  content: ""; display: inline-block; width: 4px; height: 0.8em;
  background: var(--s-green); margin-right: 12px; vertical-align: middle;
}
body.theme-stadium #productsGrid .grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  body.theme-stadium #productsGrid .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 1100px) {
  body.theme-stadium #productsGrid .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
body.theme-stadium #productsGrid .product-card {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform var(--s-transition) ease, border-color var(--s-transition) ease, box-shadow var(--s-transition) ease;
}
body.theme-stadium #productsGrid .product-card:hover {
  transform: translateY(-2px);
  border-color: var(--s-line-strong);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.22);
}
body.theme-stadium #productsGrid .product-image {
  aspect-ratio: 1/1; background: var(--s-bg-deep);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
body.theme-stadium #productsGrid .product-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
body.theme-stadium #productsGrid .product-image-placeholder {
  font-family: var(--s-font-display); font-weight: 800; font-size: 64px;
  color: var(--s-green-deep);
}
body.theme-stadium #productsGrid .product-info {
  padding: 14px 16px 8px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
body.theme-stadium #productsGrid .product-info h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 17px; line-height: 1.1; text-transform: uppercase;
  margin: 0; color: var(--s-ink);
}
body.theme-stadium #productsGrid .product-desc {
  font-family: var(--s-font-body); font-size: 13px;
  color: var(--s-ink-soft); line-height: 1.45; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
body.theme-stadium #productsGrid .product-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px 14px; gap: 10px;
  margin-top: auto;
}
body.theme-stadium #productsGrid .product-price {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 22px; color: var(--s-green); line-height: 1;
  display: flex; align-items: baseline; gap: 2px;
  /* Keep "From $67" on a single line — without this the space inside the
     currency span ("From $") becomes a wrap point on narrow cards and the
     dollar sign drops to its own line under the number. */
  white-space: nowrap;
}
body.theme-stadium #productsGrid .product-price .currency {
  font-size: 11px; font-family: var(--s-font-body); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--s-ink-soft);
  white-space: nowrap;
}
/* On the 2-column mobile grid each card is ~150px wide — not enough for the
   price + Add to Cart button side-by-side. Stack them so each line gets the
   full card width, which also stops the price from ever needing to wrap. */
@media (max-width: 767px) {
  body.theme-stadium #productsGrid .product-footer {
    flex-direction: column; align-items: stretch; gap: 8px;
  }
  body.theme-stadium #productsGrid .product-price {
    justify-content: flex-start;
  }
}
body.theme-stadium #productsGrid .product-card .btn,
body.theme-stadium #productsGrid .product-card .js-add-to-cart {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--s-radius-sm);
  background: var(--s-green); color: var(--s-bg-deep); border: none;
  cursor: pointer; text-decoration: none;
  transition: background var(--s-transition-fast) ease, transform var(--s-transition-fast) ease;
}
body.theme-stadium #productsGrid .product-card .btn:hover,
body.theme-stadium #productsGrid .product-card .js-add-to-cart:hover {
  background: #1ab418; transform: translateY(-1px);
}

/* ── Loading / closed / error states ───────────────────────────────────── */
body.theme-stadium .s-shop-loading {
  padding: 60px 16px; text-align: center;
  color: var(--s-ink-soft); font-family: var(--s-font-body);
  font-size: 14px; letter-spacing: 0.05em;
}
body.theme-stadium .s-shop-closed {
  background: var(--s-bg-card); border: 1px solid var(--s-line);
  border-radius: var(--s-radius-xl); padding: 40px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
body.theme-stadium .s-shop-closed-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid var(--s-line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--s-green);
}
body.theme-stadium .s-shop-closed h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 28px; text-transform: uppercase; margin: 0;
  color: var(--s-ink);
}
body.theme-stadium .s-shop-closed p {
  margin: 0; max-width: 44ch; color: var(--s-ink-soft); font-size: 14px;
}
body.theme-stadium #productsGrid .shop-error {
  background: var(--s-bg-card); border: 1px solid var(--s-line);
  border-radius: var(--s-radius-xl); padding: 40px 24px; text-align: center;
}
body.theme-stadium #productsGrid .shop-error h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 24px; text-transform: uppercase; margin: 12px 0 8px;
  color: var(--s-ink);
}
body.theme-stadium #productsGrid .shop-error p { color: var(--s-ink-soft); }

/* ── Featured product banner ────────────────────────────────────────────
   Operator-selected promoted item shown above the category grid on /shop.
   Banner mirrors the product card chassis but laid out horizontally with
   image-left / info-right so the feature is unmissable on first scroll. */
body.theme-stadium .s-shop-feature { margin: 0 0 32px; }
body.theme-stadium .s-shop-feature[hidden] { display: none; }
body.theme-stadium .s-shop-feature-inner {
  display: grid; grid-template-columns: 1fr;
  gap: 0;
  background: var(--s-bg-card); border: 1px solid var(--s-line-strong);
  border-radius: var(--s-radius-xl); overflow: hidden;
  box-shadow: 0 18px 48px rgba(124, 58, 237, 0.18);
}
@media (min-width: 720px) {
  body.theme-stadium .s-shop-feature-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}
body.theme-stadium .s-shop-feature-media {
  aspect-ratio: 4 / 3; background: var(--s-bg-deep);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
@media (min-width: 720px) {
  body.theme-stadium .s-shop-feature-media { aspect-ratio: auto; min-height: 320px; }
}
body.theme-stadium .s-shop-feature-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
body.theme-stadium .s-shop-feature-placeholder {
  font-family: var(--s-font-display); font-weight: 800; font-size: 96px;
  color: var(--s-green-deep);
}
body.theme-stadium .s-shop-feature-info {
  padding: 24px 22px 24px; display: flex; flex-direction: column;
  gap: 12px; justify-content: center;
}
@media (min-width: 720px) {
  body.theme-stadium .s-shop-feature-info { padding: 32px 32px 32px; gap: 14px; }
}
body.theme-stadium .s-shop-feature-kicker {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--s-green);
}
body.theme-stadium .s-shop-feature-info h2 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(24px, 4.5vw, 36px); line-height: 1.05; text-transform: uppercase;
  letter-spacing: -0.01em; margin: 0; color: var(--s-ink);
}
body.theme-stadium .s-shop-feature-info p {
  font-family: var(--s-font-body); font-size: 14px; line-height: 1.5;
  color: var(--s-ink-soft); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
body.theme-stadium .s-shop-feature-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 4px;
}
body.theme-stadium .s-shop-feature-price {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 28px; color: var(--s-green); line-height: 1;
  display: inline-flex; align-items: baseline; gap: 3px;
}
body.theme-stadium .s-shop-feature-price .currency {
  font-size: 12px; font-family: var(--s-font-body); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--s-ink-soft);
}
body.theme-stadium .s-shop-feature-inner .btn,
body.theme-stadium .s-shop-feature-inner .js-add-to-cart {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 22px; border-radius: var(--s-radius-sm);
  background: var(--s-green); color: var(--s-bg-deep); border: none;
  cursor: pointer; text-decoration: none;
  transition: background var(--s-transition-fast) ease, transform var(--s-transition-fast) ease;
}
body.theme-stadium .s-shop-feature-inner .btn:hover,
body.theme-stadium .s-shop-feature-inner .js-add-to-cart:hover {
  background: #1ab418; transform: translateY(-1px);
}
body.theme-stadium .s-shop-feature-inner.is-sold-out .s-shop-feature-media { opacity: 0.55; }

/* ── Cart toggle (floating circular button) ────────────────────────────── */
body.theme-stadium .cart-toggle {
  position: fixed; right: 16px; bottom: 16px;
  z-index: 1090;
  background: var(--s-green); color: var(--s-bg-deep);
  border: none; border-radius: 999px;
  padding: 14px 22px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--s-font-body); font-weight: 800;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 8px 28px var(--s-green-glow);
  cursor: pointer;
  transition: transform var(--s-transition) ease, box-shadow var(--s-transition) ease;
}
body.theme-stadium .cart-toggle:hover { transform: translateY(-1px); }
body.theme-stadium .cart-toggle.cart-flash {
  animation: s-cart-flash 0.6s ease;
}
@keyframes s-cart-flash {
  0%, 100% { transform: scale(1); }
  40%      { transform: scale(1.1); box-shadow: 0 0 36px var(--s-green); }
}
body.theme-stadium .cart-toggle-icon {
  width: 20px; height: 20px;
  /* currentColor inherits from .cart-toggle's `color` so the icon matches the
     dark-purple label rather than rendering as a muddy emoji. */
}
body.theme-stadium .cart-toggle-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--s-bg-deep); color: var(--s-green);
  border-radius: 999px; font-size: 11px; font-weight: 800;
}
@media (max-width: 480px) {
  body.theme-stadium .cart-toggle-label { display: none; }
  body.theme-stadium .cart-toggle { padding: 14px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CART DRAWER — "Match Day Ticket" redesign
   ───────────────────────────────────────────────────────────────────────────
   Depth model (back-to-front):
     1. Drawer outer chrome (header + footer): --s-bg-deep — recedes
     2. Drawer body (scrollable middle):       lighter purple — the "page"
     3. Cart line cards + section cards:       --s-bg — pop forward
     4. Inset controls (form inputs, toggle):  --s-bg-deep — recessed slots

   Error semantics:
     - Alert banner + invalid-line accent + strikethrough: RED (blocking)
     - Repairable line accent + Update button: GREEN (one-click recovery)
   ═══════════════════════════════════════════════════════════════════════════ */

body.theme-stadium .cart-backdrop {
  position: fixed; inset: 0; z-index: 1099;
  background: rgba(14, 6, 32, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
body.theme-stadium .cart-backdrop.is-open { opacity: 1; pointer-events: auto; }

body.theme-stadium .cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  z-index: 1100;
  background: var(--s-bg-deep);
  border-left: 1px solid var(--s-line-strong);
  color: #ffffff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
body.theme-stadium .cart-drawer.is-open { transform: translateX(0); }

/* Subtle inner glow — top has a hint of green energy, bottom fades to purple.
   Adds atmosphere without weight. Sits behind everything via pointer-events:none. */
body.theme-stadium .cart-drawer::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(26, 158, 24, 0.04) 0%,
    transparent 18%,
    transparent 82%,
    rgba(124, 58, 237, 0.06) 100%);
  z-index: 0;
}

/* Chrome — header + footer share a deep, dark surface. They visually recede
   so the body content lifts forward. */
body.theme-stadium .cart-drawer-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--s-line);
  background: var(--s-bg-deep);
}
body.theme-stadium .cart-drawer-header h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 22px; text-transform: uppercase; margin: 0;
  color: #ffffff; letter-spacing: 0.02em;
  line-height: 1;
  display: flex; align-items: center; gap: 8px;
}
body.theme-stadium .cart-drawer-header h3::before {
  content: "▶"; color: var(--s-green); font-size: 13px;
  transform: translateY(-1px);
}
body.theme-stadium .cart-close-btn {
  background: transparent; border: 1px solid var(--s-line-strong);
  color: #ffffff;
  /* WCAG 2.5.5 hit target — clear 44x44 even when "Close" label hides at ≤480px. */
  padding: 10px 14px; min-height: 44px; min-width: 44px;
  border-radius: var(--s-radius-sm);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background var(--s-transition-fast) ease, border-color var(--s-transition-fast) ease;
}
body.theme-stadium .cart-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}
body.theme-stadium .cart-close-btn span:first-child { font-size: 20px; line-height: 1; }
@media (max-width: 480px) {
  body.theme-stadium .cart-close-label { display: none; }
}

/* Body — the "page" inside the ticket pocket. Lighter than the chrome so
   item cards and section cards (each at --s-bg) pop forward. */
body.theme-stadium .cart-drawer-body {
  position: relative; z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 12px;
  background:
    radial-gradient(ellipse at top, rgba(124, 58, 237, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #2a1a4d 0%, #251943 100%);
  scrollbar-width: thin;
  scrollbar-color: var(--s-line-strong) transparent;
}
body.theme-stadium .cart-drawer-body::-webkit-scrollbar { width: 6px; }
body.theme-stadium .cart-drawer-body::-webkit-scrollbar-thumb {
  background: var(--s-line-strong); border-radius: 3px;
}

body.theme-stadium .cart-empty {
  text-align: center; padding: 40px 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

/* Catalog-not-yet-loaded skeleton — shown for the ~500ms between cart-open
   and the catalog fetch resolving. Better than rendering every line as
   "no longer available" for that window. */
body.theme-stadium .cart-loading {
  text-align: center; padding: 32px 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-style: italic;
}

/* Alert banner — RED ERROR. Surfaces when one or more lines have become
   un-buyable since the customer added them. Checkout is blocked until they're
   cleared, so this is an error (not a warning). Cross glyph + red glow. */
body.theme-stadium .cart-alert {
  margin: 14px 0 8px;
  padding: 13px 14px 13px 44px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.20), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.6);
  border-left: 3px solid #ef4444;
  border-radius: var(--s-radius);
  color: #ffcaca;
  font-size: 12.5px; line-height: 1.5;
  position: relative;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.12);
}
body.theme-stadium .cart-alert::before {
  content: "✕"; position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  background: #ef4444; color: #ffffff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--s-font-body); font-weight: 800;
  font-size: 11px; line-height: 1;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}
body.theme-stadium .cart-alert strong {
  color: #ffffff;
  display: block; font-family: var(--s-font-display); font-weight: 800;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* ── Cart line — darker card on the lighter body ── */
body.theme-stadium .cart-line {
  display: flex; gap: 14px;
  padding: 14px 16px;
  margin: 8px 0;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg);
  background: linear-gradient(180deg, #1a0d33 0%, #170b2e 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
body.theme-stadium .cart-line:hover {
  border-color: var(--s-line-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
body.theme-stadium .cart-line-info { flex: 1; min-width: 0; }
body.theme-stadium .cart-line-name {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 16px; text-transform: uppercase; line-height: 1.15;
  color: #ffffff; margin-bottom: 4px;
  letter-spacing: 0.01em;
}
body.theme-stadium .cart-line-mods {
  font-size: 12px; color: rgba(255, 255, 255, 0.82);
  line-height: 1.4; margin-bottom: 8px;
}
body.theme-stadium .cart-line-controls {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
body.theme-stadium .cart-line-controls button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--s-line-strong);
  color: #ffffff;
  width: 30px; height: 30px;
  border-radius: var(--s-radius-sm);
  cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--s-transition-fast) ease, border-color var(--s-transition-fast) ease, transform 0.08s ease;
}
body.theme-stadium .cart-line-controls button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}
body.theme-stadium .cart-line-controls button:active { transform: translateY(1px); }
body.theme-stadium .cart-line-controls .cart-line-remove {
  width: auto; padding: 0 10px; font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--s-font-body); font-weight: 700;
  margin-left: 4px;
  background: transparent; border-color: transparent;
  color: rgba(255, 255, 255, 0.55);
}
body.theme-stadium .cart-line-controls .cart-line-remove:hover {
  color: #ff8a80; background: transparent; border-color: transparent;
  text-decoration: underline; text-underline-offset: 2px;
}
body.theme-stadium .cart-line-controls .cart-qty {
  width: 36px; text-align: center;
  background: var(--s-bg-deep);
  border: 1px solid var(--s-line-strong);
  color: #ffffff;
  padding: 4px; border-radius: var(--s-radius-sm);
  font-family: var(--s-font-display); font-weight: 800; font-size: 15px;
  font-variant-numeric: tabular-nums;
}
body.theme-stadium .cart-line-price {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 19px; color: var(--s-green);
  white-space: nowrap; align-self: flex-start;
  font-variant-numeric: tabular-nums;
}

/* Invalid line — blocking error in RED. Customer must remove. Left accent
   stripe, red strikethrough, red reason text. */
body.theme-stadium .cart-line--invalid {
  opacity: 0.85;
  border-color: rgba(239, 68, 68, 0.42);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, #170b2e 100%);
}
body.theme-stadium .cart-line--invalid::before {
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px;
  width: 3px; background: #ef4444; border-radius: 1px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
body.theme-stadium .cart-line--invalid .cart-line-name {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.75);
  text-decoration-thickness: 1.5px;
}
body.theme-stadium .cart-line-invalid-reason {
  font-size: 12px;
  color: #ffcaca;
  line-height: 1.35;
  margin: 4px 0 8px;
}
body.theme-stadium .cart-line-price--invalid {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  text-decoration: line-through;
}

/* Repairable line (variation_renamed) — KEEPS GREEN because one click on
   Update recovers it. Same structural treatment as invalid, different colour
   so the customer reads "recoverable" not "blocked". */
body.theme-stadium .cart-line--repairable {
  opacity: 0.96;
  border-color: rgba(26, 158, 24, 0.42);
  background: linear-gradient(180deg, rgba(26, 158, 24, 0.04) 0%, #170b2e 100%);
}
body.theme-stadium .cart-line--repairable::before {
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px;
  width: 3px; background: var(--s-green); border-radius: 1px;
  box-shadow: 0 0 8px var(--s-green-glow);
}
body.theme-stadium .cart-line--repairable .cart-line-name {
  text-decoration: none;
}
body.theme-stadium .cart-line--repairable .cart-line-invalid-reason {
  color: rgba(255, 255, 255, 0.85);
}

/* Update button — green/positive, lifts on hover. Visually wins over Remove. */
body.theme-stadium .cart-line-repair {
  background: var(--s-green);
  color: var(--s-bg-deep);
  border: none;
  padding: 0 14px; min-height: 30px;
  border-radius: var(--s-radius-sm);
  font-family: var(--s-font-body); font-weight: 800;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
  margin-right: 4px;
  box-shadow: 0 2px 12px var(--s-green-glow);
  transition: transform 0.12s ease, background var(--s-transition-fast) ease, box-shadow 0.15s ease;
}
body.theme-stadium .cart-line-repair:hover {
  background: #1ab418;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--s-green-glow);
}
body.theme-stadium .cart-line-repair:active { transform: translateY(0); }

/* "Clear cart" — small text link, low chrome. Not a primary action. */
body.theme-stadium .cart-clear-btn {
  background: transparent; border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0; margin: 4px 0 10px;
  transition: color var(--s-transition-fast) ease;
}
body.theme-stadium .cart-clear-btn:hover {
  color: #ff8a80; text-decoration: underline; text-underline-offset: 2px;
}

/* ── Perforation — ticket-stub divider with edge cutouts ── */
body.theme-stadium .cart-perf {
  margin: 6px -18px;
  height: 18px;
  position: relative;
  pointer-events: none;
}
body.theme-stadium .cart-perf::before {
  /* dashed hairline */
  content: ""; position: absolute;
  left: 22px; right: 22px; top: 50%;
  transform: translateY(-50%); height: 1px;
  background-image: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0.32) 0 4px, transparent 4px 8px);
}
body.theme-stadium .cart-perf::after {
  /* circular punch-out cuts on each edge, coloured to match the drawer
     outer chrome so they read as actual cutouts in the ticket. */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0 50%, var(--s-bg-deep) 0 9px, transparent 9.5px),
    radial-gradient(circle at 100% 50%, var(--s-bg-deep) 0 9px, transparent 9.5px);
}

/* ── Scoreboard — the hero total. Lives between perforations, no card
       chrome, deliberate scale jump. Tabular-nums so the digits don't shift
       width as the total changes. ── */
body.theme-stadium .cart-scoreboard {
  display: flex; align-items: end; justify-content: space-between;
  padding: 14px 4px 18px;
  gap: 16px;
}
body.theme-stadium .cart-scoreboard-label {
  display: flex; flex-direction: column; gap: 4px;
}
body.theme-stadium .cart-scoreboard-kicker {
  font-family: var(--s-font-body);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
body.theme-stadium .cart-scoreboard-sub {
  font-size: 11px; font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em; text-transform: uppercase;
}
body.theme-stadium .cart-scoreboard-total {
  font-family: var(--s-font-display); font-weight: 900;
  font-size: clamp(40px, 10vw, 52px);
  line-height: 0.9; color: var(--s-green);
  letter-spacing: -0.02em;
  text-shadow: 0 0 28px rgba(26, 158, 24, 0.35);
  font-variant-numeric: tabular-nums;
}

/* ── Section card — fulfillment / shipping / customer-details. Each gets
       a faint top-gradient + green accent next to the title. Lifts forward
       from the body. ── */
body.theme-stadium .cart-section {
  background: linear-gradient(180deg, #1a0d33 0%, #170b2e 100%);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg);
  padding: 16px 16px 14px;
  margin: 0 0 12px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
body.theme-stadium .cart-section-title {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 4px; color: #ffffff;
  display: flex; align-items: center; gap: 8px;
}
body.theme-stadium .cart-section-title::before {
  content: ""; width: 3px; height: 14px;
  background: var(--s-green);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--s-green-glow);
  flex-shrink: 0;
}
body.theme-stadium .cart-section-help {
  font-size: 12.5px; color: rgba(255, 255, 255, 0.82);
  margin: 0 0 12px; line-height: 1.4;
}
/* Backwards-compat: old class names that some markup or JS strings still
   produce. Keep them aliased to the new treatment so nothing falls through. */
body.theme-stadium .cart-shipping h4,
body.theme-stadium .cart-customer h4,
body.theme-stadium .cart-fulfillment h4 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 4px; color: #ffffff;
}
body.theme-stadium .cart-customer-help {
  font-size: 12.5px; color: rgba(255, 255, 255, 0.82);
  margin: 0 0 12px; line-height: 1.4;
}

/* ── Fulfillment — segmented turnstile control. Recessed slot, active half
       fills with green. Sub-text per option is suppressed in favour of a
       single static caption beneath. ── */
body.theme-stadium .fulfillment-note {
  padding: 11px 13px;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.42);
  border-radius: var(--s-radius);
  font-size: 12.5px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
body.theme-stadium .fulfillment-note strong { color: #ffffff; }

body.theme-stadium .fulfillment-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--s-bg-deep);
  border: 1px solid var(--s-line);
  border-radius: 999px;
  padding: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.4);
}
body.theme-stadium .fulfillment-option {
  position: relative;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 6px;
  text-align: center;
  transition: background var(--s-transition) ease, color var(--s-transition) ease;
}
body.theme-stadium .fulfillment-option:hover .fulfillment-option-body strong {
  color: #ffffff;
}
body.theme-stadium .fulfillment-option:has(input:checked) {
  background: var(--s-green);
  box-shadow: 0 4px 14px var(--s-green-glow);
}
body.theme-stadium .fulfillment-option:has(input:checked) .fulfillment-option-body strong {
  color: var(--s-bg-deep);
}
body.theme-stadium .fulfillment-option input {
  position: absolute; opacity: 0; pointer-events: none;
}
body.theme-stadium .fulfillment-option-body {
  display: block;
  padding: 0;
}
body.theme-stadium .fulfillment-option-body strong {
  font-family: var(--s-font-display); font-weight: 800; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--s-transition) ease;
}
/* The per-option <small> sub-text is replaced by a single static caption
   below the toggle — segmented controls don't have room for descriptions. */
body.theme-stadium .fulfillment-option-body small { display: none; }
body.theme-stadium .fulfillment-caption {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ── Form fields — labels above, inputs recessed (deep background) ── */
body.theme-stadium .cart-drawer .form-group {
  margin-bottom: 12px;
}
body.theme-stadium .cart-drawer .form-group label {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
}
body.theme-stadium .form-req {
  color: var(--s-green); font-size: 14px; line-height: 1;
}
body.theme-stadium .form-opt {
  color: rgba(255, 255, 255, 0.55); font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
body.theme-stadium .cart-drawer .form-group input,
body.theme-stadium .cart-drawer .form-group select {
  width: 100%;
  padding: 12px 13px;
  background: var(--s-bg-deep);
  border: 1px solid var(--s-line-strong);
  border-radius: var(--s-radius-sm);
  color: #ffffff;
  font-family: var(--s-font-body);
  /* 16px floor prevents iOS Safari auto-zoom on focus. */
  font-size: 16px;
  font-weight: 500;
  transition: border-color var(--s-transition-fast) ease, background var(--s-transition-fast) ease, box-shadow var(--s-transition-fast) ease;
}
body.theme-stadium .cart-drawer .form-group input:hover:not(:focus),
body.theme-stadium .cart-drawer .form-group select:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.6);
}
body.theme-stadium .cart-drawer .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
body.theme-stadium .cart-drawer .form-group input:focus,
body.theme-stadium .cart-drawer .form-group select:focus {
  outline: none;
  border-color: var(--s-green);
  background: #15082b;
  box-shadow: 0 0 0 3px rgba(26, 158, 24, 0.22);
}
body.theme-stadium .cart-drawer .form-group select option {
  background: var(--s-bg-deep); color: #ffffff;
}

/* Checkout feedback (server-side error after submit) — same RED treatment as
   the alert banner for visual consistency. */
body.theme-stadium #checkoutFeedback {
  margin: 12px 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.06));
  border: 1px solid rgba(239, 68, 68, 0.55);
  border-left: 3px solid #ef4444;
  border-radius: var(--s-radius);
  color: #ffcaca;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ── Sticky footer — Checkout CTA always visible regardless of body scroll.
       Gradient fade above means content scrolling under it has visual
       continuation rather than a hard cut. ── */
body.theme-stadium .cart-drawer-foot {
  position: relative; z-index: 2;
  padding: 14px 20px 18px;
  background:
    linear-gradient(180deg,
      rgba(14, 6, 32, 0) 0%,
      rgba(14, 6, 32, 0.92) 18%,
      var(--s-bg-deep) 100%);
  border-top: 1px solid var(--s-line);
  flex-shrink: 0;
}

body.theme-stadium .cart-checkout-btn {
  width: 100%;
  background: var(--s-green); color: var(--s-bg-deep);
  border: none; border-radius: var(--s-radius);
  padding: 18px 22px;
  font-family: var(--s-font-display); font-weight: 900;
  font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 24px var(--s-green-glow), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  transition: transform var(--s-transition-fast) ease, background var(--s-transition-fast) ease, box-shadow var(--s-transition-fast) ease;
  position: relative;
  overflow: hidden;
}
body.theme-stadium .cart-checkout-btn::after {
  /* Shimmer sweep on hover — CSS-only, very subtle. */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
body.theme-stadium .cart-checkout-btn:hover:not(:disabled) {
  transform: translateY(-1px); background: #1ab418;
  box-shadow: 0 6px 30px var(--s-green-glow), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
body.theme-stadium .cart-checkout-btn:hover:not(:disabled)::after { transform: translateX(100%); }
body.theme-stadium .cart-checkout-btn:active:not(:disabled) { transform: translateY(0); }
body.theme-stadium .cart-checkout-btn:disabled {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  box-shadow: none; cursor: not-allowed;
}

body.theme-stadium .cart-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin: 12px 0 8px;
  font-size: 11px; color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
}
body.theme-stadium .cart-trust svg {
  color: var(--s-green);
  flex-shrink: 0;
}

body.theme-stadium .cart-continue-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  padding: 6px 0 2px;
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  display: block; text-align: center;
  transition: color var(--s-transition-fast) ease;
}
body.theme-stadium .cart-continue-btn:hover {
  color: #ffffff;
}

/* Legacy disclaimer paragraph — only present in markup variants that
   haven't migrated yet. Hide it so we don't double up with .cart-trust. */
body.theme-stadium .cart-disclaimer { display: none; }

/* ── Picker modal (variation + modifier selection) ──────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════
   PICKER MODAL — variation + modifier selection
   ──────────────────────────────────────────────────────────────────────────
   Matches the cart drawer aesthetic: dark chrome header with ▶ accent,
   lighter body with darker variation cards, perforation between options
   and the action row, hero submit button with shimmer.
   ═══════════════════════════════════════════════════════════════════════════ */
body.theme-stadium .modal {
  position: fixed; inset: 0; z-index: 1200;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
body.theme-stadium .modal.is-open { display: flex; }
body.theme-stadium .modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(14, 6, 32, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body.theme-stadium .modal-panel {
  position: relative; z-index: 1;
  background: var(--s-bg-deep);
  border: 1px solid var(--s-line-strong);
  border-radius: var(--s-radius-xl);
  width: min(480px, 100%);
  max-height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
body.theme-stadium .modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--s-line);
  background: var(--s-bg-deep);
}
body.theme-stadium .modal-header h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 22px; text-transform: uppercase; margin: 0;
  color: #ffffff; letter-spacing: 0.02em;
  line-height: 1;
  display: flex; align-items: center; gap: 8px;
}
body.theme-stadium .modal-header h3::before {
  content: "▶"; color: var(--s-green); font-size: 13px;
  transform: translateY(-1px);
}
body.theme-stadium .modal-close {
  background: transparent;
  border: 1px solid var(--s-line-strong);
  color: #ffffff;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; padding: 0;
  cursor: pointer;
  border-radius: var(--s-radius-sm);
  transition: background var(--s-transition-fast) ease, border-color var(--s-transition-fast) ease;
}
body.theme-stadium .modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}
body.theme-stadium .modal-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at top, rgba(124, 58, 237, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #2a1a4d 0%, #251943 100%);
}

/* Picker hero + description — shown when the customer opens the picker
   for details (clicked the card, not the Add to Cart button). The image
   anchors recognition; the description renders in full (no line clamp). */
body.theme-stadium .picker-hero {
  margin: -18px -22px 16px;
  aspect-ratio: 16 / 9;
  background: var(--s-bg-deep);
  overflow: hidden;
}
body.theme-stadium .picker-hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
body.theme-stadium .picker-desc {
  font-family: var(--s-font-body); font-size: 14px; line-height: 1.55;
  color: var(--s-ink-soft);
  margin: 0 0 18px;
  white-space: pre-wrap;
}

/* Card click affordance — the whole card now opens the picker for details.
   Cursor + subtle focus ring telegraph that the card is interactive,
   not just the button inside it. */
body.theme-stadium #productsGrid .product-card { cursor: pointer; }
body.theme-stadium #productsGrid .product-card:focus-visible {
  outline: 2px solid var(--s-green);
  outline-offset: 2px;
}
body.theme-stadium #productsGrid .product-card.is-sold-out { cursor: default; }

/* Picker fieldset — section legend gets the same green accent stripe as
   cart sections, so cart and picker speak the same visual language. */
body.theme-stadium .picker-fieldset {
  border: none; padding: 0; margin: 0 0 18px;
}
body.theme-stadium .picker-fieldset legend {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 10px; color: #ffffff;
  padding: 0;
  display: flex; align-items: center; gap: 8px;
}
body.theme-stadium .picker-fieldset legend::before {
  content: ""; width: 3px; height: 14px;
  background: var(--s-green);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--s-green-glow);
  flex-shrink: 0;
}
body.theme-stadium .picker-required {
  color: var(--s-green); font-size: 10px;
  font-family: var(--s-font-body); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* Picker-option (modifier rows still use this shape — variation rows have
   their own .picker-variation-row block further down). Darker card on the
   lighter modal body, with a left-edge green accent when checked. */
body.theme-stadium .picker-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: linear-gradient(180deg, #1a0d33 0%, #170b2e 100%);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color var(--s-transition-fast) ease, background var(--s-transition-fast) ease;
  color: #ffffff;
  font-family: var(--s-font-body); font-size: 14px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
body.theme-stadium .picker-option:hover {
  border-color: var(--s-line-strong);
}
body.theme-stadium .picker-option:has(input:checked) {
  border-color: var(--s-green);
  background: linear-gradient(180deg, rgba(26, 158, 24, 0.12) 0%, #170b2e 100%);
}
body.theme-stadium .picker-option:has(input:checked)::before {
  content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px;
  width: 3px; background: var(--s-green); border-radius: 1px;
  box-shadow: 0 0 8px var(--s-green-glow);
}
body.theme-stadium .picker-option input { accent-color: var(--s-green); }
body.theme-stadium .picker-option span { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
body.theme-stadium .picker-price {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 15px; color: var(--s-green);
  font-variant-numeric: tabular-nums;
}

/* Picker actions — dashed perforation separator above (same ticket
   metaphor), plus a hero submit button that mirrors the cart's
   .cart-checkout-btn including the shimmer sweep. */
body.theme-stadium .picker-actions {
  display: flex; gap: 10px; margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--s-line-strong);
  flex-direction: column-reverse;
}
@media (min-width: 480px) {
  body.theme-stadium .picker-actions { flex-direction: row; }
}
body.theme-stadium .picker-actions .btn,
body.theme-stadium .picker-actions button {
  padding: 13px 22px;
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--s-radius); cursor: pointer; text-decoration: none;
  text-align: center;
  transition: transform 0.12s ease, background var(--s-transition-fast) ease, box-shadow var(--s-transition-fast) ease, border-color var(--s-transition-fast) ease;
}
body.theme-stadium .picker-actions .btn-primary,
body.theme-stadium .picker-actions .picker-submit {
  background: var(--s-green); color: var(--s-bg-deep);
  border: none;
  flex: 1;
  box-shadow: 0 4px 18px var(--s-green-glow), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}
body.theme-stadium .picker-actions .btn-primary::after,
body.theme-stadium .picker-actions .picker-submit::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg,
    transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
body.theme-stadium .picker-actions .btn-primary:hover:not(:disabled),
body.theme-stadium .picker-actions .picker-submit:hover:not(:disabled) {
  background: #1ab418;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--s-green-glow), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}
body.theme-stadium .picker-actions .btn-primary:hover:not(:disabled)::after,
body.theme-stadium .picker-actions .picker-submit:hover:not(:disabled)::after {
  transform: translateX(100%);
}
body.theme-stadium .picker-actions .btn-primary:active:not(:disabled),
body.theme-stadium .picker-actions .picker-submit:active:not(:disabled) {
  transform: translateY(0);
}
body.theme-stadium .picker-actions .btn-outline {
  background: transparent;
  border: 1px solid var(--s-line-strong);
  color: #ffffff;
  flex-shrink: 0;
}
body.theme-stadium .picker-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #ffffff;
}

/* ── FAQ section (rendered by faqs.js) ──────────────────────────────────
   faqs.js emits a wrapper heading with class .faq-section-heading that
   the legacy theme styles with a low-contrast colour. Override fully
   here so the title is legible on the dark theme. */
body.theme-stadium .s-faq-section .faq-section-heading,
body.theme-stadium .faq-section .faq-section-heading {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(28px, 6vw, 40px); line-height: 1;
  text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--s-ink) !important;
  margin: 0 0 18px;
}
body.theme-stadium .s-faq-section .faq-item {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}
body.theme-stadium .s-faq-section .faq-question {
  width: 100%; padding: 16px 18px;
  background: transparent; border: none; color: #ffffff;
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 16px; text-transform: uppercase; letter-spacing: 0.02em;
  text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
body.theme-stadium .s-faq-section .faq-question:hover { background: rgba(255, 255, 255, 0.04); }
body.theme-stadium .s-faq-section .faq-answer {
  padding: 0 18px 16px;
  color: var(--s-ink-soft); font-size: 14px; line-height: 1.55;
}

/* The cart-drawer scroll lock when open — prevents body scroll behind. */
body.theme-stadium.cart-open { overflow: hidden; }

/* ════════════════════════════════════════════════════════════════════════════
   ORDER-CONFIRMED PAGE
   ════════════════════════════════════════════════════════════════════════════ */

/* Narrow content rail — confirmation copy reads better at ~640px line length
   than the full 1280px content cap used on the home and shop pages. */
body.theme-stadium .s-section--narrow {
  max-width: 720px;
}

/* Padded card variant — content sits in a single dark card rather than
   floating freely on the page background. */
body.theme-stadium .s-card--padded {
  padding: 28px 24px;
}
@media (min-width: 768px) {
  body.theme-stadium .s-card--padded { padding: 36px 32px; }
}

/* Info chips (order ref + total) — two pill-style chips above the state card
   that surface the key facts at a glance. */
body.theme-stadium .s-info-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 0 18px;
}
body.theme-stadium .s-info-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 8px 14px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.36);
  border-radius: 999px;
  font-size: 13px;
}
body.theme-stadium .s-info-chip-label {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--s-ink-faded);
}
body.theme-stadium .s-info-chip-value {
  font-family: var(--s-font-body); font-weight: 700;
  color: var(--s-ink);
  word-break: break-all;
}
body.theme-stadium .s-info-chip-value--money {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 16px; color: var(--s-green);
  letter-spacing: 0.01em;
}

/* State pills — one short status label per state block, colour-coded so the
   outcome reads at a glance before the customer parses the heading. */
body.theme-stadium .s-state-pill {
  display: inline-flex; align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 12px;
}
body.theme-stadium .s-state-pill--success {
  background: var(--s-green); color: var(--s-bg-deep);
  box-shadow: 0 0 var(--s-glow-md) var(--s-green-glow);
}
body.theme-stadium .s-state-pill--info {
  background: rgba(124, 58, 237, 0.2);
  color: #c5a4ff;
  border: 1px solid rgba(124, 58, 237, 0.5);
}
body.theme-stadium .s-state-pill--neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--s-ink-soft);
  border: 1px solid var(--s-line-strong);
}
body.theme-stadium .s-state-pill--error {
  background: rgba(239, 68, 68, 0.16);
  color: #ff9b9b;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

/* State block typography + spacing */
body.theme-stadium .s-state-heading {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(28px, 7vw, 40px); line-height: 1; text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--s-ink);
}
body.theme-stadium .s-state-subheading {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em;
  margin: 22px 0 10px;
  color: var(--s-ink);
}
body.theme-stadium .s-card--padded p {
  font-family: var(--s-font-body); font-size: 15px; line-height: 1.6;
  color: var(--s-ink-soft);
  margin: 0 0 12px;
}
body.theme-stadium .s-card--padded p strong { color: var(--s-ink); }
/* Inline links within paragraphs/lists get the green accent. Exclude the
   .s-btn / .s-btn-sm variants — those own their own colour rules and
   without this guard the rule painted green text on the green s-btn--prim
   background (invisible until hover bumped the colour back to white). */
body.theme-stadium .s-card--padded a:not(.s-btn):not(.s-btn-sm) { color: var(--s-green); }
body.theme-stadium .s-card--padded a:not(.s-btn):not(.s-btn-sm):hover { color: var(--s-ink); }

body.theme-stadium .s-state-list {
  font-family: var(--s-font-body); font-size: 14px;
  line-height: 1.7; color: var(--s-ink-soft);
  padding-left: 20px;
  margin: 0 0 14px;
}
body.theme-stadium .s-state-list li { margin-bottom: 4px; }
body.theme-stadium .s-state-list li::marker { color: var(--s-green); }

body.theme-stadium .s-state-reason {
  margin: 12px 0;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.36);
  border-radius: var(--s-radius);
  font-size: 14px !important;
  color: #ffd7d7 !important;
}
body.theme-stadium .s-state-reason-label {
  font-weight: 700; color: #ff9b9b;
  font-family: var(--s-font-body);
  margin-right: 4px;
}

body.theme-stadium .s-state-receipt-link { margin: 18px 0 4px; }

body.theme-stadium .s-state-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 22px;
}
@media (min-width: 480px) {
  body.theme-stadium .s-state-actions .s-btn { min-width: 180px; }
}

/* Small secondary button variant — used for the receipt link inside the
   completed state where the main CTAs sit below. */
body.theme-stadium .s-btn-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--s-radius-sm);
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--s-line-strong);
  background: transparent;
  color: var(--s-ink);
  transition: background var(--s-transition-fast) ease;
}
body.theme-stadium .s-btn-sm:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--s-green);
}

/* Loading bar — pure-CSS indeterminate progress indicator. The animated
   fill slides left-to-right across the track on a 1.4s loop. */
body.theme-stadium .s-loading-bar {
  height: 4px;
  background: rgba(124, 58, 237, 0.18);
  border-radius: 2px;
  overflow: hidden;
  margin: 22px 0 0;
  position: relative;
}
body.theme-stadium .s-loading-bar-fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 40%;
  background: var(--s-green);
  box-shadow: 0 0 var(--s-glow-sm) var(--s-green-glow);
  animation: s-loading-slide 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes s-loading-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(280%); }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-stadium .s-loading-bar-fill {
    animation: none;
    width: 100%;
    opacity: 0.6;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════════════════════════════════════════ */

/* Who we are — image + text two-up. Mobile stacks image-first then copy;
   desktop drops them side by side with the image on the left. */
body.theme-stadium .s-about-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  align-items: start;
}
body.theme-stadium .s-about-image img {
  width: 100%; height: auto;
  border-radius: var(--s-radius-xl); display: block;
  border: 1px solid var(--s-line);
  aspect-ratio: 16/9; object-fit: cover;
}
body.theme-stadium .s-about-text h2 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(34px, 9vw, 56px); line-height: 0.95;
  letter-spacing: -0.01em; text-transform: uppercase;
  margin: 8px 0 16px; color: var(--s-ink);
}
body.theme-stadium .s-about-text p {
  font-family: var(--s-font-body); font-size: 15px;
  line-height: 1.65; color: var(--s-ink-soft);
  margin: 0 0 14px;
}
body.theme-stadium .s-bullet-list {
  list-style: none; padding: 0; margin: 18px 0 0;
}
body.theme-stadium .s-bullet-list li {
  position: relative; padding-left: 22px;
  font-size: 14px; line-height: 1.5;
  color: var(--s-ink-soft);
  margin-bottom: 8px;
}
body.theme-stadium .s-bullet-list li::before {
  content: "▸"; position: absolute; left: 0; top: 0;
  color: var(--s-green); font-weight: 700;
}
body.theme-stadium .s-bullet-list li strong { color: var(--s-ink); }
@media (min-width: 768px) {
  body.theme-stadium .s-about-grid { grid-template-columns: 5fr 6fr; gap: 36px; }
}
@media (min-width: 1100px) {
  body.theme-stadium .s-about-grid { gap: 56px; }
}

/* ── Timeline ───────────────────────────────────────────────────────────────
   site-content.js renderHistory() writes:
     <div class="timeline-item fade-up stagger-N">
       <div class="timeline-dot"></div>
       <div class="timeline-year">YEAR</div>
       <h3>TITLE</h3>
       <p>DESC</p>
     </div>
   Mobile lays them out as a vertical list with a left rail; desktop keeps the
   same layout but with bigger spacing. */
body.theme-stadium .s-timeline {
  position: relative;
  padding-left: 28px;
}
body.theme-stadium .s-timeline::before {
  content: ""; position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--s-green) 0%,
    rgba(26, 158, 24, 0.45) 50%,
    var(--s-purple) 100%);
  border-radius: 1px;
}
body.theme-stadium .s-timeline .timeline-item {
  position: relative;
  padding: 0 0 26px;
}
body.theme-stadium .s-timeline .timeline-item:last-child { padding-bottom: 0; }
body.theme-stadium .s-timeline .timeline-dot {
  position: absolute; left: -28px; top: 6px;
  width: 16px; height: 16px;
  background: var(--s-green); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--s-bg-deep), 0 0 16px var(--s-green-glow);
  /* The shadow ring tonally separates the dot from the rail so each entry
     reads as a discrete event rather than a continuous line. */
}
body.theme-stadium .s-timeline .timeline-year {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 32px; line-height: 1; color: var(--s-green);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
body.theme-stadium .s-timeline .timeline-item h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 20px; line-height: 1.15; text-transform: uppercase;
  letter-spacing: 0.01em; color: var(--s-ink);
  margin: 0 0 6px;
}
body.theme-stadium .s-timeline .timeline-item p {
  font-family: var(--s-font-body); font-size: 14px;
  line-height: 1.6; color: var(--s-ink-soft);
  margin: 0;
}
@media (min-width: 768px) {
  body.theme-stadium .s-timeline { padding-left: 36px; }
  body.theme-stadium .s-timeline::before { left: 11px; }
  body.theme-stadium .s-timeline .timeline-dot {
    left: -36px; width: 22px; height: 22px;
  }
  body.theme-stadium .s-timeline .timeline-year { font-size: 40px; }
}

/* ── Age formats ────────────────────────────────────────────────────────────
   site-content.js renderAgeFormats() writes each card as:
     <div class="card text-center fade-up stagger-N">
       <h3 class="text-purple" style="font-size: 32px;">AGES</h3>
       <h4>TITLE</h4>
       <p>DESC</p>
     </div>
   The legacy .card has a light background and .text-purple uses the dark
   phantom purple — barely visible on the dark theme. Override both. */
body.theme-stadium .s-age-formats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { body.theme-stadium .s-age-formats { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { body.theme-stadium .s-age-formats { grid-template-columns: repeat(4, 1fr); } }

body.theme-stadium .s-age-formats .card {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg);
  padding: 20px 16px;
  text-align: center;
}
body.theme-stadium .s-age-formats .card h3.text-purple {
  font-family: var(--s-font-display); font-weight: 800;
  /* Override the inline font-size:32px the renderer hard-codes. !important
     beats the inline style so we get one consistent token across the
     responsive range. */
  font-size: clamp(36px, 8vw, 52px) !important;
  line-height: 0.9; letter-spacing: -0.02em;
  color: var(--s-green) !important;
  margin: 0 0 6px;
}
body.theme-stadium .s-age-formats .card h4 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 16px; line-height: 1.1; text-transform: uppercase;
  letter-spacing: 0.02em; color: var(--s-ink);
  margin: 0 0 8px;
}
body.theme-stadium .s-age-formats .card p {
  font-family: var(--s-font-body); font-size: 13px;
  line-height: 1.5; color: var(--s-ink-soft);
  margin: 0;
}

/* ── Committee grid + cards ─────────────────────────────────────────────────
   site-content.js renderCommittee() writes each entry as:
     <div class="committee-member">
       <strong>ROLE</strong>
       <span>NAME or vacant</span>
       [<span class="committee-contact">CONTACT</span>]
     </div> */
body.theme-stadium .s-committee-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 600px) { body.theme-stadium .s-committee-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1100px) { body.theme-stadium .s-committee-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

body.theme-stadium .s-committee-grid .committee-member {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
  transition: border-color var(--s-transition) ease, transform var(--s-transition) ease;
}
body.theme-stadium .s-committee-grid .committee-member::before {
  content: ""; position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  background: var(--s-green);
  border-radius: 0 2px 2px 0;
}
body.theme-stadium .s-committee-grid .committee-member:hover {
  border-color: var(--s-line-strong); transform: translateY(-2px);
}
body.theme-stadium .s-committee-grid .committee-member strong {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--s-green);
}
body.theme-stadium .s-committee-grid .committee-member span {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 20px; line-height: 1.15; text-transform: uppercase;
  letter-spacing: 0.01em; color: var(--s-ink);
}
body.theme-stadium .s-committee-grid .committee-member .committee-contact {
  font-family: var(--s-font-body); font-weight: 500;
  font-size: 13px; letter-spacing: normal; text-transform: none;
  color: var(--s-ink-soft); margin-top: 2px;
}

/* ── Training card body ────────────────────────────────────────────────────
   renderTraining() puts multiple <div> entries inside .js-training-block.
   Make them legible against the dark card background. The legacy <em>
   wrapper uses var(--phantom-text-muted) which doesn't exist in the theme
   scope — fall back to the ink-faded variable. */
body.theme-stadium .s-card .js-training-block {
  font-family: var(--s-font-body); font-size: 14px;
  line-height: 1.5; color: var(--s-ink-soft);
}
body.theme-stadium .s-card .js-training-block div {
  padding: 4px 0;
}
body.theme-stadium .s-card .js-training-block strong {
  color: var(--s-ink); font-weight: 700;
}
body.theme-stadium .s-card .js-training-block em {
  color: var(--s-ink-faded) !important; font-style: italic;
}

/* ════════════════════════════════════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════════════════════════════════════ */

/* Two-column layout — info cards left, form right. On mobile the form
   sits below the info stack so users can scan club details first. */
body.theme-stadium .s-contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 1100px) {
  body.theme-stadium .s-contact-grid { grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
}
body.theme-stadium .s-contact-info {
  display: flex; flex-direction: column; gap: 14px;
}

body.theme-stadium .s-contact-card { padding: 22px 22px 18px; }
/* s-contact-heading is rendered as <h2> for valid heading order (h1 in
   the hero -> h2 in each card). Style applies regardless of tag so the
   class can be reused if the structure changes. */
body.theme-stadium .s-contact-heading {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 20px; line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--s-ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--s-line);
}

body.theme-stadium .s-contact-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
body.theme-stadium .s-contact-item {
  display: grid; grid-template-columns: 32px 1fr; gap: 12px;
  align-items: start;
}
body.theme-stadium .s-contact-icon {
  width: 32px; height: 32px;
  background: rgba(26, 158, 24, 0.14);
  border: 1px solid rgba(26, 158, 24, 0.42);
  border-radius: var(--s-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--s-green);
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
body.theme-stadium .s-contact-detail {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
body.theme-stadium .s-contact-label {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--s-ink-faded);
}
body.theme-stadium .s-contact-value {
  font-family: var(--s-font-body); font-size: 14px;
  line-height: 1.45; color: var(--s-ink);
  word-break: break-word;
}
body.theme-stadium .s-contact-value a {
  color: var(--s-green); text-decoration: none;
}
body.theme-stadium .s-contact-value a:hover { color: var(--s-ink); }
/* The training block can render multiple <div> rows when there are several
   schedules. Keep them stacked tidily inside the contact value. */
body.theme-stadium .s-contact-value .js-training-block div { padding: 2px 0; }
body.theme-stadium .s-contact-value .js-training-block strong { color: var(--s-ink); font-weight: 700; }

/* renderKeyContacts() in site-content.js writes legacy markup:
     <div class="contact-item">
       <div class="contact-icon">…</div>
       <div class="contact-detail"><label>ROLE</label><span>…</span></div>
     </div>
   Translate that legacy class structure into the same visual treatment as
   our s-contact-item list so the rendered key-contacts match the rest of
   the card. */
body.theme-stadium .s-key-contacts {
  display: flex; flex-direction: column; gap: 12px;
}
body.theme-stadium .s-key-contacts .contact-item {
  display: grid; grid-template-columns: 32px 1fr; gap: 12px;
  align-items: start;
  margin: 0;
}
body.theme-stadium .s-key-contacts .contact-icon {
  width: 32px; height: 32px;
  background: rgba(26, 158, 24, 0.14);
  border: 1px solid rgba(26, 158, 24, 0.42);
  border-radius: var(--s-radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--s-green) !important;
  font-size: 14px;
  flex-shrink: 0;
}
/* The icon HTML entities (&#9993; envelope, &#128100; user) render as
   coloured glyphs by default. Reset that so they pick up the green parent
   colour instead of the emoji palette. */
body.theme-stadium .s-key-contacts .contact-icon img,
body.theme-stadium .s-key-contacts .contact-icon svg {
  filter: brightness(0) saturate(100%) invert(56%) sepia(67%) saturate(2244%) hue-rotate(85%) brightness(96%) contrast(86%);
}
body.theme-stadium .s-key-contacts .contact-detail {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
body.theme-stadium .s-key-contacts .contact-detail label {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--s-ink-faded);
}
body.theme-stadium .s-key-contacts .contact-detail span {
  font-family: var(--s-font-body); font-size: 14px;
  line-height: 1.45; color: var(--s-ink);
  word-break: break-word;
}
body.theme-stadium .s-key-contacts .contact-detail span a { color: var(--s-green); text-decoration: none; }
body.theme-stadium .s-key-contacts .contact-detail span a:hover { color: var(--s-ink); }

/* ── Stadium form styling (s-form) ─────────────────────────────────────────
   Shared with the contact page and the upcoming register page. Form inputs
   on a dark page need a darker fill, generous touch targets, and a high-
   contrast green focus ring. */
body.theme-stadium .s-form .form-group { margin-bottom: 14px; }
body.theme-stadium .s-form .form-group label {
  display: block;
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--s-ink-soft);
  margin-bottom: 6px;
}
body.theme-stadium .s-form .form-group input,
body.theme-stadium .s-form .form-group select,
body.theme-stadium .s-form .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--s-bg-deep);
  border: 1px solid var(--s-line-strong);
  border-radius: var(--s-radius);
  color: var(--s-ink);
  font-family: var(--s-font-body);
  /* 16px floor — same iOS Safari zoom-prevention rationale as the cart
     drawer inputs. The contact form is form-heavy; auto-zoom across
     six fields in a row is genuinely disorienting. */
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--s-transition-fast) ease, box-shadow var(--s-transition-fast) ease, background var(--s-transition-fast) ease;
}
body.theme-stadium .s-form .form-group textarea {
  min-height: 120px;
  resize: vertical;
}
body.theme-stadium .s-form .form-group input::placeholder,
body.theme-stadium .s-form .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}
body.theme-stadium .s-form .form-group input:focus,
body.theme-stadium .s-form .form-group select:focus,
body.theme-stadium .s-form .form-group textarea:focus {
  outline: none;
  border-color: var(--s-green);
  box-shadow: 0 0 0 2px rgba(26, 158, 24, 0.28);
}
body.theme-stadium .s-form .form-group select option {
  background: var(--s-bg); color: var(--s-ink);
}
body.theme-stadium .s-form-hint {
  font-family: var(--s-font-body); font-size: 14px;
  line-height: 1.5; color: var(--s-ink-soft);
  margin: 0 0 6px;
}
body.theme-stadium .s-form-required-key {
  font-family: var(--s-font-body); font-size: 12px;
  color: var(--s-ink-faded);
  margin: 0 0 14px;
}
body.theme-stadium .s-form-optional {
  color: var(--s-ink-faded); font-weight: normal; font-size: 0.85em;
}
body.theme-stadium .s-required-mark { color: var(--s-green); font-weight: 700; }
body.theme-stadium .s-btn-full { width: 100%; justify-content: center; }
body.theme-stadium .s-form-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--s-radius);
  text-align: center;
  font-family: var(--s-font-body); font-size: 14px; font-weight: 500;
  line-height: 1.4;
}
/* contact.js will toggle classes for success / error feedback. Provide
   themed colours for whichever convention it uses (data-status, or class
   names). */
body.theme-stadium .s-form-feedback.success,
body.theme-stadium .s-form-feedback[data-status="success"] {
  background: rgba(26, 158, 24, 0.14);
  border: 1px solid rgba(26, 158, 24, 0.5);
  color: #b6f0b6;
}
body.theme-stadium .s-form-feedback.error,
body.theme-stadium .s-form-feedback[data-status="error"] {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ffb3b3;
}

/* ── Map fallback ───────────────────────────────────────────────────────────
   Until / unless an actual map embed lands, the venue address sits in a
   themed card. */
body.theme-stadium .s-map-container {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-xl);
  overflow: hidden;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
body.theme-stadium .s-map-fallback {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 32px 20px;
  gap: 12px;
}
body.theme-stadium .s-map-pin {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--s-green); color: var(--s-bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  box-shadow: 0 0 28px var(--s-green-glow);
}
body.theme-stadium .s-map-venue {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(22px, 5vw, 30px); text-transform: uppercase;
  letter-spacing: 0.01em; color: var(--s-ink);
  margin: 8px 0 4px;
}
body.theme-stadium .s-map-location {
  font-family: var(--s-font-body); font-size: 14px;
  color: var(--s-ink-soft); margin: 0 0 12px;
}
@media (min-width: 768px) {
  body.theme-stadium .s-map-container { min-height: 360px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   REGISTER PAGE
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Player paths (new / returning) ────────────────────────────────────────
   Two large cards side by side. Mobile stacks them; desktop sits them in
   a 1fr 1fr grid. The returning-player card uses --alt as a subtle visual
   differentiator (no primary glow, secondary CTA). */
body.theme-stadium .s-reg-paths {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 768px) { body.theme-stadium .s-reg-paths { grid-template-columns: 1fr 1fr; gap: 22px; } }

body.theme-stadium .s-reg-path {
  background: linear-gradient(135deg, #2c1657 0%, var(--s-bg-card) 70%);
  border: 1px solid var(--s-purple);
  border-radius: var(--s-radius-xl);
  padding: 28px 26px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
}
body.theme-stadium .s-reg-path::before {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--s-purple-glow), transparent 70%);
  pointer-events: none;
}
body.theme-stadium .s-reg-path--alt {
  background: var(--s-bg-card);
  border-color: var(--s-line);
}
body.theme-stadium .s-reg-path--alt::before { display: none; }
body.theme-stadium .s-reg-path-icon {
  width: 48px; height: 48px; border-radius: var(--s-radius-lg);
  background: var(--s-green); color: var(--s-bg-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  box-shadow: 0 0 var(--s-glow-md) var(--s-green-glow);
  position: relative;
}
body.theme-stadium .s-reg-path h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(24px, 5vw, 30px); line-height: 1.1; text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0; color: var(--s-ink);
  position: relative;
}
body.theme-stadium .s-reg-path p {
  font-family: var(--s-font-body); font-size: 14px;
  line-height: 1.6; color: var(--s-ink-soft);
  margin: 0;
  position: relative;
}
body.theme-stadium .s-reg-path .s-btn {
  margin-top: 8px;
  align-self: flex-start;
  position: relative;
}

/* ── 3-step process ─────────────────────────────────────────────────────────
   Stadium-tinted step cards with a large overlay numeral and the body
   content sitting beneath. */
body.theme-stadium .s-step-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 768px) { body.theme-stadium .s-step-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

body.theme-stadium .s-step {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg);
  padding: 22px 22px 24px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
}
body.theme-stadium .s-step-num {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 72px; line-height: 1;
  color: rgba(26, 158, 24, 0.16);
  position: absolute; top: 8px; right: 14px;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1px rgba(26, 158, 24, 0.35);
  pointer-events: none;
}
body.theme-stadium .s-step h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 20px; line-height: 1.15; text-transform: uppercase;
  letter-spacing: 0.01em; color: var(--s-ink);
  margin: 16px 0 4px;
  position: relative;
}
body.theme-stadium .s-step p {
  font-family: var(--s-font-body); font-size: 14px;
  line-height: 1.6; color: var(--s-ink-soft);
  margin: 0;
  position: relative;
}
body.theme-stadium .s-step-aside {
  font-size: 12px !important;
  color: var(--s-ink-faded) !important;
  margin-top: 8px !important;
  padding-top: 10px;
  border-top: 1px solid var(--s-line);
}

/* ── Fee table ──────────────────────────────────────────────────────────────
   On desktop, traditional table. On mobile (≤ 720px), each row becomes a
   stacked card using the data-label attributes the renderer writes on
   every <td>. */
body.theme-stadium .s-fee-description {
  font-family: var(--s-font-body); font-size: 15px;
  line-height: 1.55; color: var(--s-ink-soft);
  max-width: 60ch; margin: 0 0 22px;
}
body.theme-stadium .s-fee-table-wrap {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-xl);
  padding: 18px;
  overflow: hidden;
}
body.theme-stadium .s-fee-table {
  width: 100%; border-collapse: collapse;
  background: transparent;
  font-family: var(--s-font-body);
}
body.theme-stadium .s-fee-table thead th {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--s-green);
  text-align: left;
  padding: 8px 12px 12px;
  border-bottom: 1px solid var(--s-line-strong);
}
body.theme-stadium .s-fee-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--s-line);
  color: var(--s-ink-soft);
  font-size: 14px; line-height: 1.5;
  vertical-align: top;
}
body.theme-stadium .s-fee-table tbody tr:last-child td { border-bottom: none; }
body.theme-stadium .s-fee-table tbody td:first-child {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 17px; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--s-ink);
}
/* renderRegistrationFees() wraps the fee amount in
   <span class="text-purple" style="font-weight:700;">. Override .text-purple
   to use the theme green and beat the inline style. */
body.theme-stadium .s-fee-table .text-purple {
  color: var(--s-green) !important;
  font-family: var(--s-font-display); font-weight: 800 !important;
  font-size: 20px; letter-spacing: 0.005em;
}
body.theme-stadium .s-fee-note {
  text-align: center;
  font-family: var(--s-font-body); font-size: 13px;
  color: var(--s-ink-faded);
  margin: 22px 0 0;
}

/* Mobile card-style layout — each row becomes a vertical card with the
   data-label attribute revealed as an overline above the value. */
@media (max-width: 720px) {
  body.theme-stadium .s-fee-table thead { display: none; }
  body.theme-stadium .s-fee-table,
  body.theme-stadium .s-fee-table tbody,
  body.theme-stadium .s-fee-table tr,
  body.theme-stadium .s-fee-table td { display: block; width: 100%; }
  body.theme-stadium .s-fee-table tbody tr {
    background: var(--s-bg-deep);
    border: 1px solid var(--s-line);
    border-radius: var(--s-radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  body.theme-stadium .s-fee-table tbody tr:last-child { margin-bottom: 0; }
  body.theme-stadium .s-fee-table tbody td {
    padding: 8px 0;
    border-bottom: 1px solid var(--s-line);
  }
  body.theme-stadium .s-fee-table tbody td:last-child { border-bottom: none; }
  body.theme-stadium .s-fee-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--s-font-body); font-weight: 700;
    font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--s-green);
    margin-bottom: 4px;
  }
  body.theme-stadium .s-fee-table tbody td:first-child {
    font-size: 22px; padding-top: 0;
  }
}

/* ── about-grid reverse modifier (volunteers section: text + image-right) */
@media (min-width: 768px) {
  body.theme-stadium .s-about-grid--reverse {
    grid-template-columns: 6fr 5fr;
  }
  body.theme-stadium .s-about-grid--reverse .s-about-text { order: 1; }
  body.theme-stadium .s-about-grid--reverse .s-about-image { order: 2; }
}

/* ════════════════════════════════════════════════════════════════════════════
   DRAW PAGE
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Section head with right-aligned year picker on desktop ─────────────── */
body.theme-stadium .s-draw-head { gap: 14px; }
@media (min-width: 768px) {
  body.theme-stadium .s-draw-head { align-items: end; }
}

/* ── Year picker (draw.js ee() emits a select with inline styles) ──────── */
body.theme-stadium .year-picker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  padding: 10px 14px;
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md);
}
body.theme-stadium .year-picker label {
  /* Beat the inline style="font-family:var(--font-display);..." the
     renderer hard-codes. Tied to !important because inline styles win. */
  font-family: var(--s-font-body) !important; font-weight: 700 !important;
  font-size: 11px !important; letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--s-ink-faded) !important;
}
body.theme-stadium .year-picker #yearSelect {
  /* Inline styles set padding/border/font-size; override fully. */
  font-family: var(--s-font-display) !important; font-weight: 800 !important;
  font-size: 16px !important;
  padding: 6px 12px 6px 10px !important;
  background: var(--s-bg-deep) !important;
  border: 1px solid var(--s-line-strong) !important;
  border-radius: var(--s-radius-sm) !important;
  color: var(--s-ink) !important;
  letter-spacing: 0.02em;
  cursor: pointer;
}
body.theme-stadium .year-picker #yearSelect option {
  background: var(--s-bg); color: var(--s-ink);
}

/* ── Filter tabs (draw.js W() uses .filter-tabs, .filter-tab — same
       class names as shop's, so the same chip styling works) ─────────── */
body.theme-stadium #filter-tabs-container .filter-tabs {
  /* Wrap on all viewports — the earlier nowrap+overflow-x:auto pattern
     hid the trailing pills (U7/U8) on mobile with no visible scroll
     affordance, so users couldn't discover the horizontal scroll. With
     ~10 age groups across U7..U17G, two or three pill rows on a phone
     is the right tradeoff. */
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 0 0 16px; margin: 0 0 24px;
}
body.theme-stadium #filter-tabs-container .filter-tab {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--s-line);
  color: var(--s-ink-soft);
  /* WCAG 2.5.5 — same 44px floor as the shop filter chips. */
  padding: 13px 18px; min-height: 44px;
  border-radius: 999px;
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: background var(--s-transition) ease, border-color var(--s-transition) ease, color var(--s-transition) ease;
  display: inline-flex; align-items: center;
}
body.theme-stadium #filter-tabs-container .filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--s-line-strong);
  color: var(--s-ink);
}
body.theme-stadium #filter-tabs-container .filter-tab.active {
  background: var(--s-green); border-color: var(--s-green);
  color: var(--s-bg-deep);
  box-shadow: 0 0 var(--s-glow-md) var(--s-green-glow);
}

/* ── Next-game highlight card (draw.js _() ) ───────────────────────────── */
body.theme-stadium .next-game {
  background: linear-gradient(135deg, #2c1657 0%, var(--s-bg-card) 70%);
  border: 1px solid var(--s-purple);
  border-radius: var(--s-radius-xl);
  padding: 22px 24px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  margin: 0 0 28px;
}
body.theme-stadium .next-game::before {
  content: ""; position: absolute; right: -50px; top: -50px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--s-purple-glow), transparent 70%);
  pointer-events: none;
}
body.theme-stadium .next-game-content { position: relative; }
body.theme-stadium .next-game-label {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--s-green);
  margin-bottom: 6px;
}
body.theme-stadium .next-game-content h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(26px, 6vw, 36px); line-height: 1; text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0 0 10px; color: var(--s-ink);
}
body.theme-stadium .next-game-details {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-family: var(--s-font-body); font-size: 14px;
  color: var(--s-ink-soft);
}
body.theme-stadium .next-game-actions { position: relative; }
body.theme-stadium .next-game-actions .btn,
body.theme-stadium .next-game-actions .btn-primary {
  display: inline-flex; align-items: center;
  padding: 12px 22px;
  background: var(--s-green); color: var(--s-bg-deep);
  border: none; border-radius: var(--s-radius);
  font-family: var(--s-font-body); font-weight: 800;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 18px var(--s-green-glow);
  transition: transform var(--s-transition-fast) ease;
}
body.theme-stadium .next-game-actions .btn:hover { transform: translateY(-1px); }
@media (min-width: 600px) {
  body.theme-stadium .next-game { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ── Round sections (draw.js X() ) ─────────────────────────────────────── */
body.theme-stadium .round-section {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg);
  margin: 0 0 16px;
  overflow: hidden;
  transition: border-color var(--s-transition) ease;
}
body.theme-stadium .round-section.round-next {
  border-color: var(--s-green);
  box-shadow: 0 0 0 1px var(--s-green-glow);
}
body.theme-stadium .round-header,
body.theme-stadium .round-section .round-header,
body.theme-stadium .round-section:not(.collapsed) .round-header,
body.theme-stadium .round-section.collapsed .round-header,
body.theme-stadium .round-section.collapsed .round-header:hover {
  padding: 18px 22px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  cursor: pointer;
  /* Solid fill (not a gradient) so the h3 text always meets WCAG AA
     contrast against the header bg. Also: legacy styles.css sets
     :not(.collapsed) .round-header { background: var(--phantom-white) }
     and :hover { background: var(--phantom-white) } at specificity 0,2,1
     and 0,3,1 which would flash a bright-white header behind white h3
     text on the dark theme. The selector list above raises this rule
     to 0,5,1 to beat both legacy variants. */
  background: var(--s-bg-deep);
  border-bottom: 1px solid var(--s-line);
  border-color: var(--s-line);
  position: relative;
}
/* Chevron drawn with CSS borders, not a Unicode glyph. The previous
   '▾' / '▸' characters were rendering inconsistently across platforms —
   some OS font stacks substitute the emoji variant (a small coloured
   square or play-button icon) instead of the text triangle, producing
   the "> with a little triangle in the middle" composite the user
   reported. Border triangles render identically on every browser,
   scale crisply at any zoom level, and accept currentColor for
   themeable colouring. */
body.theme-stadium .round-header::after {
  content: "";
  width: 0; height: 0;
  margin-left: auto;
  flex-shrink: 0;
  /* Down-pointing triangle for the EXPANDED state (default). The top
     border is the visible inked area; the left + right borders are
     transparent and form the angles. */
  border-style: solid;
  border-width: 7px 5px 0 5px;
  border-color: var(--s-ink-faded) transparent transparent transparent;
  transition: border-color var(--s-transition) ease, transform 0.18s ease;
}
body.theme-stadium .round-section.collapsed .round-header { border-bottom: none; }
body.theme-stadium .round-section.collapsed .round-header::after {
  /* Right-pointing triangle for the COLLAPSED state. Swap which sides
     of the border are inked — the left side is now coloured, the top /
     bottom are transparent. */
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--s-ink-soft);
}
body.theme-stadium .round-header:hover::after { border-top-color: var(--s-green); }
body.theme-stadium .round-section.collapsed .round-header:hover::after {
  border-top-color: transparent;
  border-left-color: var(--s-green);
}
body.theme-stadium .round-section.collapsed .round-body { display: none; }
/* The next-round visual treatment uses a left-side green rail rather
   than a translucent gradient overlay on the title row. Same emphasis,
   no contrast loss on the heading text. */
body.theme-stadium .round-section.round-next .round-header {
  border-left: 4px solid var(--s-green);
  padding-left: 18px;
}
/* Wider selector list to beat several more-specific legacy rules in
   styles.css that set .round-section.collapsed .round-header h3 to
   var(--phantom-text-muted) (specificity 0,3,1, higher than the bare
   .round-header h3 we'd otherwise use). axe was correctly catching
   contrast failures when collapsed round titles rendered in muted grey
   on the dark theme. Listing every state explicitly gives us 0,4,2 /
   0,5,2 specificity which beats all legacy variants. */
body.theme-stadium .round-section .round-header h3,
body.theme-stadium .round-section.collapsed .round-header h3,
body.theme-stadium .round-section.collapsed .round-header:hover h3,
body.theme-stadium .round-section.round-next .round-header h3 {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(20px, 4.5vw, 26px); line-height: 1; text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin: 0;
}
/* Round-date pill also gets caught by .round-section.collapsed legacy
   rules — bring it in here too. */
body.theme-stadium .round-section .round-date,
body.theme-stadium .round-section.collapsed .round-date {
  color: var(--s-green);
}

/* Home Games event cards on the draw page (draw.js j() ) emit two
   paragraphs the legacy theme styles in muted grey:
     - <p>venue</p>  (no class — caught by .card p { color: --phantom-text-muted })
     - <p class="text-muted" style="font-size:13px;">venueNote</p>
   Both fail WCAG contrast on the dark event-card background. Force the
   soft-ink colour for every <p> inside an event-card on the dark theme. */
body.theme-stadium .card.event-card p,
body.theme-stadium .event-card.card p,
body.theme-stadium .home-event-link p,
body.theme-stadium .event-card .text-muted,
body.theme-stadium .home-event-link .text-muted {
  color: var(--s-ink-soft) !important;
}
body.theme-stadium .round-date {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--s-green);
  padding: 4px 10px;
  background: rgba(26, 158, 24, 0.1);
  border: 1px solid rgba(26, 158, 24, 0.36);
  border-radius: 999px;
}
body.theme-stadium .round-venues {
  font-family: var(--s-font-body); font-size: 13px;
  color: var(--s-ink-soft);
}
body.theme-stadium .round-venue-note {
  font-family: var(--s-font-body); font-size: 12px;
  color: var(--s-ink-faded);
  font-style: italic;
}
body.theme-stadium .round-forecast {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--s-font-body); font-size: 12px;
  color: var(--s-ink-soft);
  flex-wrap: wrap;
}
body.theme-stadium .round-forecast-venue {
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-sm);
}
body.theme-stadium .round-forecast-venue-label {
  color: var(--s-green); font-weight: 700;
}
body.theme-stadium .round-photos-btn {
  background: transparent;
  border: 1px solid var(--s-line-strong);
  color: var(--s-ink);
  padding: 6px 12px; border-radius: var(--s-radius-sm);
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
}
body.theme-stadium .round-photos-btn:hover { background: rgba(255, 255, 255, 0.05); }
body.theme-stadium .round-body { padding: 18px 22px 22px; }
body.theme-stadium .round-placeholder {
  font-family: var(--s-font-body); font-size: 14px;
  color: var(--s-ink-faded); font-style: italic;
  margin: 0;
  text-align: center;
  padding: 28px 12px;
}

/* ── Field map downloads ──────────────────────────────────────────────── */
body.theme-stadium .round-field-maps {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--s-bg-deep);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
body.theme-stadium .field-maps-label {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--s-ink-faded);
}
body.theme-stadium .field-maps-links {
  display: flex; flex-wrap: wrap; gap: 8px;
}
body.theme-stadium .field-map-download {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 12px; padding: 6px 12px;
  background: rgba(26, 158, 24, 0.12);
  border: 1px solid rgba(26, 158, 24, 0.42);
  color: var(--s-green);
  border-radius: var(--s-radius-sm);
  text-decoration: none;
}
body.theme-stadium .field-map-download:hover {
  background: rgba(26, 158, 24, 0.2); color: var(--s-ink);
}

/* ── Round photo gallery (draw.js renders .round-gallery > .gallery-grid > .gallery-thumb) */
body.theme-stadium .round-gallery {
  margin: 0 0 18px;
  padding-top: 6px;
}
body.theme-stadium .round-gallery .gallery-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 600px) { body.theme-stadium .round-gallery .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { body.theme-stadium .round-gallery .gallery-grid { grid-template-columns: repeat(6, 1fr); } }
body.theme-stadium .round-gallery .gallery-thumb {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--s-radius);
  overflow: hidden;
  border: 1px solid var(--s-line);
  cursor: pointer;
  background: var(--s-bg-deep);
}
body.theme-stadium .round-gallery .gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.2s ease;
}
body.theme-stadium .round-gallery .gallery-thumb:hover img { transform: scale(1.05); }
body.theme-stadium .gallery-thumb-badges {
  position: absolute; left: 4px; bottom: 4px;
  display: flex; flex-wrap: wrap; gap: 3px;
}
body.theme-stadium .gallery-thumb-badge {
  padding: 2px 6px;
  background: rgba(14, 6, 32, 0.85);
  color: var(--s-green);
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px;
}

/* ── Fixture table (desktop) — draw.js renders both this AND fixture-cards;
       CSS show/hide based on viewport. Desktop = table, mobile = cards. */
body.theme-stadium .fixture-table-wrapper {
  display: none;
}
@media (min-width: 768px) {
  body.theme-stadium .fixture-table-wrapper { display: block; overflow-x: auto; }
  body.theme-stadium .fixture-cards { display: none; }
}
body.theme-stadium .fixture-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--s-font-body);
}
body.theme-stadium .fixture-table thead th {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--s-green);
  text-align: left;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--s-line-strong);
}
body.theme-stadium .fixture-table tbody td {
  padding: 12px;
  background: transparent;
  border-top: none;
  border-bottom: 1px solid var(--s-line);
  color: var(--s-ink-soft);
  font-size: 14px; line-height: 1.45;
  vertical-align: top;
}
/* Override legacy styles.css decorations on the first/last cell of each
   row. The legacy theme renders rows as separated white pills with rounded
   ends and a light-grey 1px side-border; under the dark stadium theme that
   leaves stray pale lines hugging each row. Flatten them. */
body.theme-stadium .fixture-table tbody tr td:first-child,
body.theme-stadium .fixture-table tbody tr td:last-child {
  border-left: none; border-right: none; border-radius: 0;
}
body.theme-stadium .fixture-table tbody tr:last-child td { border-bottom: none; }
/* Subtle zebra striping for desktop table — preview-only A/B. Even rows
   pick up a near-imperceptible white tint so the eye has a horizontal
   anchor to follow across the wide row. Kept lighter than the hover
   value below (rgba 0.018 vs 0.025) so :hover still reads as a distinct
   state change on top of the stripe. */
body.theme-stadium .fixture-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}
body.theme-stadium .fixture-table tbody tr:hover td { background: rgba(255, 255, 255, 0.035); }
body.theme-stadium .fixture-round {
  font-family: var(--s-font-display); font-weight: 800;
  text-transform: uppercase;
  color: var(--s-ink); font-size: 14px;
}
body.theme-stadium .fixture-teams { color: var(--s-ink); font-weight: 500; }
body.theme-stadium .fixture-teams .vs {
  font-family: var(--s-font-display); font-weight: 800;
  color: var(--s-green); text-transform: uppercase;
  margin: 0 4px;
  font-size: 12px; letter-spacing: 0.08em;
}
body.theme-stadium .fixture-note {
  font-family: var(--s-font-body); font-size: 12px;
  color: var(--s-ink-faded); font-style: italic;
}
body.theme-stadium .fixture-venue { color: var(--s-ink-soft); }
/* Anchor the Open-in-maps button to the right edge of the venue cell on
   the desktop fixture table. Earlier attempt used `display: flex` on the
   td itself — that strips the cell's `display: table-cell` semantics so
   the venue cell stops sharing row height with the other cells and its
   border-bottom no longer lines up with theirs. Use `float: right` on
   the link instead — it keeps the td a real table cell and still anchors
   the button to the right edge of the cell content area. */
body.theme-stadium .fixture-table td.fixture-venue .venue-directions {
  float: right;
  margin-left: 8px;
}
body.theme-stadium .fixture-score {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 16px; color: var(--s-ink);
  margin-right: 8px;
}

/* ── Fixture cards (mobile) ──────────────────────────────────────────────
   Must stay wrapped in a max-width media query — without it, the
   `display: grid` unconditionally overrides the `display: none` at
   line ~3488 (same specificity, later wins), so the cards leak into
   the desktop view alongside the table. */
@media (max-width: 767px) {
  body.theme-stadium .fixture-cards {
    display: grid; grid-template-columns: 1fr; gap: 10px;
  }
}
body.theme-stadium .fixture-card {
  background: var(--s-bg-deep);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md);
  padding: 14px 16px;
}
body.theme-stadium .fixture-card-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
body.theme-stadium .fixture-card-age {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--s-green);
}
body.theme-stadium .fixture-card-score {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 24px; color: var(--s-ink);
  line-height: 1; margin: 4px 0 8px;
}
body.theme-stadium .fixture-card-teams {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 16px; color: var(--s-ink); line-height: 1.25;
  text-transform: uppercase; letter-spacing: 0.005em;
}
body.theme-stadium .fixture-card-teams .vs {
  color: var(--s-green); font-size: 12px;
  margin: 0 4px;
}
body.theme-stadium .fixture-card-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 8px;
  font-family: var(--s-font-body); font-size: 13px;
  color: var(--s-ink-soft);
}
body.theme-stadium .fixture-card-note {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--s-green);
  font-family: var(--s-font-body); font-size: 12px;
  color: var(--s-ink-faded);
  font-style: italic;
}

/* ── Fixture badges (semantic colours) ─────────────────────────────────── */
body.theme-stadium .fixture-badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
}
body.theme-stadium .fixture-badge.badge-win {
  background: var(--s-green); color: var(--s-bg-deep);
}
body.theme-stadium .fixture-badge.badge-loss {
  background: rgba(239, 68, 68, 0.18);
  color: #ff9b9b;
  border: 1px solid rgba(239, 68, 68, 0.5);
}
body.theme-stadium .fixture-badge.badge-played {
  background: rgba(255, 255, 255, 0.08);
  color: var(--s-ink-soft);
  border: 1px solid var(--s-line-strong);
}
body.theme-stadium .fixture-badge.badge-tbc {
  background: rgba(245, 158, 11, 0.16);
  color: #ffd08a;
  border: 1px solid rgba(245, 158, 11, 0.5);
}
body.theme-stadium .fixture-badge.badge-home {
  background: rgba(26, 158, 24, 0.16);
  color: var(--s-green);
  border: 1px solid rgba(26, 158, 24, 0.5);
}
body.theme-stadium .fixture-badge.badge-away {
  background: rgba(124, 58, 237, 0.18);
  color: #c5a4ff;
  border: 1px solid rgba(124, 58, 237, 0.5);
}

/* ── Venue directions link (Google Maps SVG icon next to venue name) ──── */
body.theme-stadium .venue-directions {
  display: inline-flex; align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: var(--s-radius-xs);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  vertical-align: middle;
}
body.theme-stadium .venue-directions:hover { background: rgba(255, 255, 255, 0.12); }
body.theme-stadium .venue-directions-label {
  font-family: var(--s-font-body); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--s-ink-soft);
}

/* ── Skeleton loader (initial loading state) ───────────────────────────── */
body.theme-stadium .s-skeleton { margin: 0 0 16px; }
body.theme-stadium .s-skeleton .skeleton-round-header {
  height: 60px;
  background: linear-gradient(90deg, var(--s-bg-card) 25%, var(--s-bg-deep) 50%, var(--s-bg-card) 75%);
  background-size: 200% 100%;
  border-radius: var(--s-radius-lg) 12px 0 0;
  margin-top: 16px;
  animation: s-skeleton-shimmer 1.6s ease-in-out infinite;
}
body.theme-stadium .s-skeleton .skeleton-table {
  height: 160px;
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-top: none;
  border-radius: 0 0 12px 12px;
}
@keyframes s-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Load error ───────────────────────────────────────────────────────── */
body.theme-stadium .s-load-error {
  text-align: center;
  padding: 48px 16px;
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg);
}
body.theme-stadium .s-load-error p {
  font-family: var(--s-font-body); font-size: 15px;
  color: var(--s-ink-soft);
  margin: 0 0 18px;
}

/* ── Season calendar (draw.js q() emits .card.text-center inside .grid grid-N)
       Each card has a .season-cal-label and .season-cal-value. */
body.theme-stadium .s-season-calendar {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { body.theme-stadium .s-season-calendar { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1100px) { body.theme-stadium .s-season-calendar { grid-template-columns: repeat(4, 1fr); } }

body.theme-stadium .s-season-calendar .card {
  background: var(--s-bg-card);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg);
  padding: 22px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
body.theme-stadium .s-season-calendar .card::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 50%; height: 3px;
  background: var(--s-green);
  border-radius: 0 0 2px 2px;
}
body.theme-stadium .s-season-calendar .card .season-cal-label {
  font-family: var(--s-font-body); font-weight: 700;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--s-green);
  margin: 0 0 6px;
}
body.theme-stadium .s-season-calendar .card .season-cal-value {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: clamp(24px, 5vw, 32px); line-height: 1; text-transform: uppercase;
  color: var(--s-ink); letter-spacing: -0.01em;
  margin: 0 0 6px;
}
body.theme-stadium .s-season-calendar .card .text-muted {
  font-family: var(--s-font-body); font-size: 12px;
  color: var(--s-ink-soft); line-height: 1.4;
  margin: 0;
}

/* ─── Shop stock badges & sold-out states ───────────────────────────────────
   Driven by phantoms.stock on each item in the /api/catalogue response.
   `.is-sold-out` greys the whole card; `.product-stock-badge` is the corner
   label (red for Sold Out, gold for Only N left). Picker modal sold-out
   variations get the same colour treatment so the customer can see at a
   glance which sizes are still buyable. */
body.theme-stadium .product-card { position: relative; }
body.theme-stadium .product-card .product-image { position: relative; }
body.theme-stadium .product-stock-badge {
  position: absolute; top: 10px; right: 10px;
  z-index: 2;
  display: inline-block;
  padding: 5px 10px;
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--s-radius);
  pointer-events: none;
}
body.theme-stadium .product-stock-badge.is-sold-out {
  background: #c62828; color: #fff;
  box-shadow: 0 0 var(--s-glow-sm) rgba(198, 40, 40, 0.4);
}
body.theme-stadium .product-stock-badge.is-low {
  /* Use the same gold tone we earmarked for the athletics theme — works
     equally well as an urgency colour against the dark stadium card. */
  background: #fac600; color: #1a0c2e;
  box-shadow: 0 0 var(--s-glow-sm) rgba(250, 198, 0, 0.32);
}
body.theme-stadium .product-card.is-sold-out {
  opacity: 0.55;
  filter: grayscale(40%);
}
body.theme-stadium .product-card.is-sold-out:hover {
  /* Suppress the lift/hover effect on sold-out cards so they don't
     advertise themselves as interactive. */
  transform: none;
  box-shadow: none;
  border-color: var(--s-line);
}
body.theme-stadium .product-soldout-btn,
body.theme-stadium .product-soldout-btn:hover,
body.theme-stadium .product-soldout-btn:focus {
  background: rgba(255, 255, 255, 0.06);
  color: var(--s-ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: not-allowed;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--s-font-body); font-weight: 700;
  box-shadow: none;
}

/* Picker modal — disabled variation rows + per-row stock badges. Pill-shaped
   colour-coded chips next to the variation name, matching the storefront's
   stock-badge language (red sold-out, gold low-stock). */
body.theme-stadium .picker-option.is-sold-out {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(0, 0, 0, 0.25);
}
body.theme-stadium .picker-option.is-sold-out input { cursor: not-allowed; }
body.theme-stadium .picker-soldout {
  background: rgba(239, 68, 68, 0.18);
  color: #ff8a80;
  font-family: var(--s-font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px;
  margin-left: 6px;
}
body.theme-stadium .picker-low {
  background: rgba(250, 198, 0, 0.18);
  color: #fac600;
  font-family: var(--s-font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 3px;
  margin-left: 6px;
}

/* Multi-variation quantity picker — darker card on the lighter modal body
   (matching the cart-line model), with a green left-edge accent stripe
   when the customer has selected qty ≥ 1. */
body.theme-stadium .picker-variation-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-lg);
  background: linear-gradient(180deg, #1a0d33 0%, #170b2e 100%);
  margin-bottom: 8px;
  color: #ffffff;
  font-family: var(--s-font-body); font-size: 14px;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: border-color var(--s-transition) ease, transform var(--s-transition) ease, box-shadow var(--s-transition) ease;
}
body.theme-stadium .picker-variation-row:hover:not(.is-sold-out) {
  border-color: var(--s-line-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
body.theme-stadium .picker-variation-row.is-sold-out {
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.3);
}
/* Active row — at least one unit picked. Green left edge + tinted background. */
body.theme-stadium .picker-variation-row:has(.picker-step-qty:not([value="0"])) {
  border-color: rgba(26, 158, 24, 0.42);
  background: linear-gradient(180deg, rgba(26, 158, 24, 0.08) 0%, #170b2e 100%);
}
body.theme-stadium .picker-variation-row:has(.picker-step-qty:not([value="0"]))::before {
  content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px;
  width: 3px; background: var(--s-green); border-radius: 1px;
  box-shadow: 0 0 8px var(--s-green-glow);
}

body.theme-stadium .picker-variation-info {
  flex: 1;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  min-width: 0;
}
body.theme-stadium .picker-variation-name {
  font-family: var(--s-font-display); font-weight: 800;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em;
}

/* Stepper — circular feel, tactile press state, tabular-nums quantity. */
body.theme-stadium .picker-stepper {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
body.theme-stadium .picker-step {
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--s-line-strong);
  color: #ffffff;
  border-radius: var(--s-radius-sm);
  font-family: var(--s-font-display); font-weight: 800; font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--s-transition-fast) ease, border-color var(--s-transition-fast) ease, transform 0.08s ease;
}
body.theme-stadium .picker-step:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
}
body.theme-stadium .picker-step:active:not(:disabled) { transform: translateY(1px); }
body.theme-stadium .picker-step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
body.theme-stadium .picker-step-qty {
  width: 40px; height: 32px; text-align: center;
  background: var(--s-bg-deep);
  border: 1px solid var(--s-line-strong);
  color: #ffffff;
  border-radius: var(--s-radius-sm);
  /* 16px floor prevents iOS Safari focus-zoom (same rationale as cart form). */
  font-family: var(--s-font-display); font-weight: 800; font-size: 16px;
  padding: 0 4px;
  font-variant-numeric: tabular-nums;
}
body.theme-stadium .picker-step-qty:focus {
  outline: none;
  border-color: var(--s-green);
  box-shadow: 0 0 0 2px rgba(26, 158, 24, 0.35);
}
body.theme-stadium .picker-step-qty:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Submit button reflects "nothing picked yet" via the disabled state. */
body.theme-stadium .picker-submit:disabled {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  box-shadow: none; cursor: not-allowed;
}
