        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { font-size: 16px; -webkit-text-size-adjust: 100%; }
        body {
            font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg);
            color: var(--ink);
            line-height: 1.5;
            min-height: 100vh;
            min-height: 100dvh;
            padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        img { display: block; max-width: 100%; }
        button { font-family: inherit; cursor: pointer; }
        a { color: inherit; text-decoration: none; }

        /* ─── Top App Header ──────────────────────────────────────
           Sticky bar over the scroll content. Padding-top reserves
           the iOS status-bar zone (notch / Dynamic Island / SOS
           strip) so the brand mark + athlete-switcher pill sit
           BELOW the system UI, not under it. Without this inset,
           iOS owns taps in the top ~47px (PWA standalone) and the
           team dropdown's hit area gets eaten by SOS / signal / battery.
           env() resolves to 0 on desktop + Android so layout is identical
           there — pure premium "designed for iPhone" treatment without
           a hack media query. */
        .app-header {
            position: sticky;
            top: 0;
            z-index: 80;
            background: var(--surface);
            /* v238: dropped backdrop-filter — --surface is opaque white, the
               blur was wasted AND was bleeding into the iOS status-bar zone
               on standalone PWA (status icons appeared blurred/muted). */
            border-bottom: 1px solid var(--border);
            padding:
                calc(14px + env(safe-area-inset-top, 0px))
                calc(20px + env(safe-area-inset-right, 0px))
                14px
                calc(20px + env(safe-area-inset-left, 0px));
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .app-header-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
            flex: 1;
        }
        .app-header-logo {
            height: 28px;
            width: auto;
            display: block;
            flex-shrink: 0;
        }
        /* Vertical divider between logo and team switcher */
        .app-header-brand .divider {
            width: 1px;
            height: 22px;
            background: var(--border-strong);
            flex-shrink: 0;
        }
        /* Athlete switcher trigger + dropdown menu styles are owned by
           athlete/css/athlete-switcher.css (canonical, loaded after this
           file). The duplicated block previously here lost the cascade fight
           but caused subtle drift on properties the canonical didn't redefine.
           May 22 2026 dedup. */

        .app-header-actions {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .header-icon-btn {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            border: 1px solid transparent;
            background: transparent;
            color: var(--ink-muted);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }
        .header-icon-btn:hover {
            background: #f4f4f5;
            color: var(--ink);
        }
        .header-icon-btn svg { width: 20px; height: 20px; stroke-width: 2; }
        /* v251: unified bell dot across all 5 athlete pages — small dot,
           consistent placement, no count text (paintBellDot is boolean). */
        .header-bell-dot {
            position: absolute; top: 7px; right: 7px;
            width: 9px; height: 9px; border-radius: 50%;
            background: var(--live);
            border: 2px solid var(--surface);
            box-shadow: 0 0 0 1px rgba(239,68,68,0.20);
            pointer-events: none;
        }

        /* ─── Container ─────────────────────────────────────────── */
        .container {
            max-width: 720px;
            margin: 0 auto;
            padding: 20px 16px 40px;
        }

        /* ─── Hero State Switcher (localhost preview only) ─── */
        .state-switcher {
            display: flex;
            gap: 6px;
            margin: 0 4px 18px;
            padding: 4px;
            background: var(--ink);
            border-radius: 999px;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .state-switcher::-webkit-scrollbar { display: none; }
        .ss-btn {
            flex: 1;
            padding: 9px 12px;
            border: none;
            background: transparent;
            color: rgba(255,255,255,0.55);
            font-family: 'Manrope', sans-serif;
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.4px;
            border-radius: 999px;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.18s ease;
        }
        .ss-btn:hover { color: rgba(255,255,255,0.9); }
        .ss-btn.active {
            background: #ffffff;
            color: var(--ink);
        }
        .ss-btn--live::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--live);
            margin-right: 5px;
            vertical-align: 1px;
            animation: livePulseSwitcher 1.5s ease-out infinite;
        }
        @keyframes livePulseSwitcher {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.35; }
        }
        .ss-btn--live.active::before { background: var(--live); }

        /* ─── Venue Card (below hero) — v312 REBUILD ───────────────
           Replaces .field-map-card and its accumulated 5 layers of
           band-aid fixes. New design:
           - `hidden` attr-based visibility (renderVenueCard owns it).
           - No ::before gradient strip (the one that bled over the
             dropdown via z-index 401 → 2 → still wrong abstraction).
           - Map slot is a child that's only revealed when tiles load.
           - Text + Directions baseline is always functional. */
        .venue-card {
            position: relative;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow-md);
            overflow: hidden;
            margin-top: 14px;
        }
        .venue-card[hidden] { display: none !important; }
        .venue-card-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 18px;
        }
        .venue-card-text {
            display: flex; flex-direction: column; gap: 2px;
            min-width: 0; flex: 1;
        }
        .venue-card-name {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 16px;
            font-weight: 800;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            color: var(--ink);
            line-height: 1.2;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .venue-card-addr {
            font-family: 'Manrope', sans-serif;
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-muted);
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .venue-card-cta {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 11px 16px;
            background: var(--ink);
            color: var(--surface);
            border-radius: 999px;
            font-family: 'Manrope', sans-serif;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.3px;
            text-decoration: none;
            white-space: nowrap;
            transition: transform 0.08s ease, opacity 0.15s ease;
        }
        .venue-card-cta:active { transform: scale(0.96); opacity: 0.9; }
        .venue-card-cta svg { flex-shrink: 0; }
        .venue-card-map {
            height: 140px;
            width: 100%;
            border-top: 1px solid var(--border);
            background: var(--bg);
            pointer-events: none;
            position: relative;
        }
        .venue-card-map[hidden] { display: none !important; }
        /* Cap every Leaflet pane below app chrome (bottom-nav z:100+) */
        .venue-card-map .leaflet-pane,
        .venue-card-map .leaflet-control,
        .venue-card-map .leaflet-top,
        .venue-card-map .leaflet-bottom { z-index: 1 !important; }

        /* ─── Section title ─────────────────────────────────────── */
        .section-title {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 12px;
            margin: 28px 4px 14px;
        }
        .section-title h2 {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 2.4px;
            text-transform: uppercase;
            color: var(--ink);
        }
        .section-title a {
            font-family: 'Manrope', sans-serif;
            font-size: 12px;
            font-weight: 600;
            color: var(--ink-muted);
            letter-spacing: 0.4px;
            text-transform: uppercase;
        }
        .section-title a:hover { color: var(--accent); }

        /* ─── Child Identity Strip (your kid's avatar + position) ─── */
        .child-strip {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 6px 4px 18px;
        }
        .child-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--team-primary), var(--team-secondary));
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-family: 'Saira Condensed', sans-serif;
            font-weight: 800;
            font-size: 20px;
            letter-spacing: 0.5px;
            box-shadow: 0 6px 16px color-mix(in srgb, var(--team-primary) 30%, transparent);
            flex-shrink: 0;
            /* v247: avatar is now an <a> tag — kill the underline + ensure it's tappable */
            text-decoration: none;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            transition: transform 0.15s ease;
        }
        .child-avatar:active { transform: scale(0.96); }
        .child-meta { min-width: 0; flex: 1; }
        .child-name {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 22px;
            font-weight: 800;
            letter-spacing: 0.3px;
            color: var(--ink);
            line-height: 1.1;
            text-transform: uppercase;
        }
        .child-sub {
            font-family: 'Oswald', sans-serif;
            font-size: 12px;
            font-weight: 400;
            letter-spacing: 1.6px;
            color: var(--ink-muted);
            text-transform: uppercase;
            margin-top: 4px;
        }
        .child-sub .pipe {
            display: inline-block;
            width: 1px;
            height: 10px;
            background: var(--border-strong);
            margin: 0 8px;
            vertical-align: middle;
        }

        /* ─── HERO: Next Game / Live Game ───────────────────────── */
        .hero-card {
            position: relative;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow-md);
            overflow: hidden;
        }
        /* Skeleton loader — shown until hydrateHero swaps in the real
           variant. Pre-fix all hero variants were rendered with hardcoded
           mock data ('Connor Miller', 'RAIDERS vs EAGLES', 'Sat May 17',
           21-14 score) and the user saw that flash before real data loaded. */
        .skeleton-bar {
            display: inline-block;
            background: linear-gradient(90deg, var(--surface) 0%, var(--border) 50%, var(--surface) 100%);
            background-size: 200% 100%;
            animation: skel-shimmer 1.4s linear infinite;
            border-radius: 6px;
            vertical-align: middle;
            color: transparent !important;
        }
        .skeleton-bar * { color: transparent !important; }
        @keyframes skel-shimmer {
            from { background-position: 200% 0; }
            to   { background-position: -200% 0; }
        }
        .hero-skeleton { padding: 18px; min-height: 360px; }
        .hero-skeleton .skel-eyebrow { width: 38%; height: 12px; margin-bottom: 14px; }
        .hero-skeleton .skel-banner { width: 100%; height: 110px; margin-bottom: 16px; border-radius: 10px; display: block; }
        .hero-skeleton .skel-when { width: 60%; height: 16px; margin-bottom: 18px; }
        .hero-skeleton .skel-meta { width: 70%; height: 12px; margin-bottom: 22px; }
        .hero-skeleton .skel-cta { width: 100%; height: 44px; border-radius: 999px; display: block; }
        /* Child strip skeleton */
        .child-strip .child-avatar.skeleton-bar { border-radius: 50%; }
        .child-strip .skel-name { width: 60%; height: 16px; margin-bottom: 6px; display: block; }
        .child-strip .skel-sub { width: 80%; height: 12px; display: block; }
        /* Team-color accent band at the top of the hero card — quiet but tells the parent
           immediately "this is YOUR team's game". 3px tall, no glow. */
        .hero-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--team-primary), var(--team-secondary));
            z-index: 1;
        }
        /* Watermark — big washed-out team monogram behind the content (will swap to
           a real team logo image when data is wired). Adds team identity to the white
           space without fighting the content. */
        .hero-card::after {
            content: attr(data-watermark);
            position: absolute;
            bottom: -42px;
            right: -16px;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 220px;
            font-weight: 900;
            color: var(--team-primary);
            opacity: 0.055;
            line-height: 0.9;
            pointer-events: none;
            z-index: 0;
            letter-spacing: -10px;
            user-select: none;
        }
        .hero-card[data-watermark=""]::after { display: none; }
        /* All content sits above the watermark */
        .hero-card > * { position: relative; z-index: 2; }
        .hero-card.live {
            border-color: rgba(239,68,68,0.35);
        }
        .hero-card.live::before {
            background: linear-gradient(90deg, var(--live), #f87171);
        }
        /* (Old .hero-side.home logo ring removed — superseded by gs-matchup-banner pattern) */
        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 2.6px;
            text-transform: uppercase;
            /* v239: hardcoded light color instead of var(--ink-muted) because
               the hero card has a dark gradient background regardless of
               theme, so the muted ink in dark mode came out as dark blue
               against dark card = unreadable "LAST GAME · 0 DAYS AGO". */
            color: rgba(255, 255, 255, 0.72);
            padding: 14px 18px 0;
        }
        .hero-eyebrow.live {
            color: var(--live);
        }
        .live-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--live);
            box-shadow: 0 0 0 0 rgba(239,68,68,0.6);
            animation: livePulse 1.6s ease-out infinite;
        }
        @keyframes livePulse {
            0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
            70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
            100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
        }
        /* ─── ESPN Matchup Banner — exact same pattern as coach/app.html's start-game modal
               so the parent app feels visually consistent with the coach surface. ─── */
        .gs-matchup-banner {
            position: relative;
            background: linear-gradient(180deg, #444955 0%, #1a1d24 50%, #0d0f12 100%);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 8px 30px rgba(0,0,0,0.5);
            margin: 14px 18px 18px;
        }
        .gs-matchup-banner::after {
            content: '';
            position: absolute;
            inset: 0;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 10px;
            pointer-events: none;
            z-index: 5;
        }
        .gs-matchup-inner {
            display: flex;
            align-items: stretch;
            position: relative;
            z-index: 1;
            /* Taller so the top LIVE/VS badge has breathing room above the
               team names. Was 120, content was tight against the badge. */
            min-height: 140px;
            padding-top: 8px;
        }
        .gs-matchup-home {
            flex: 1;
            display: flex;
            /* stretch so the team-info column fills the height — lets the
               HOME label anchor at the bottom via margin-top:auto. */
            align-items: stretch;
            justify-content: center;
            padding: 20px 24px 14px;
            /* Two-tone gradient driven by --home-color (primary) and --home-secondary
               (if the team has one). When --home-secondary is unset the secondary
               falls back to a darkened primary — same visual as before. */
            background: linear-gradient(135deg, var(--home-color, #22c55e) 0%, var(--home-secondary, color-mix(in srgb, var(--home-color, #22c55e) 55%, black)) 100%);
            clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
            margin-right: -24px;
            position: relative;
            /* Logos are now absolutely positioned (see below) so they don't
               push the team-info text off-center. Keeping overflow visible so
               the logos can clip past the half edge — Carlos likes the peek. */
        }
        .gs-matchup-home::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 50%;
            background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
        }
        .gs-matchup-away {
            flex: 1;
            display: flex;
            align-items: stretch;
            justify-content: center;
            padding: 20px 24px 14px;
            /* Same two-tone scheme as home but mirrored. If the opponent has a
               secondary color (e.g. Rams: yellow), blend to it so the half shows
               BOTH brand colors instead of fading to a generic darker shade. */
            background: linear-gradient(225deg, var(--away-color, #6366f1) 0%, var(--away-secondary, color-mix(in srgb, var(--away-color, #6366f1) 40%, black)) 100%);
            clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
            margin-left: -24px;
            position: relative;
        }
        .gs-matchup-away::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 50%;
            background: linear-gradient(to bottom, rgba(255,255,255,0.06), transparent);
        }
        .gs-team-logo-wrap {
            width: 64px;
            height: 64px;
            flex-shrink: 0;
            filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
        }
        .gs-team-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
        /* Team logo — CLEAR, no white tile, no frame. The logo itself is the
           element. Drop-shadow gives it dimension. Sized large so it's bold,
           positioned with negative margin so it peeks past the banner edges. */
        .gs-team-logo-placeholder {
            width: 110px;
            height: 110px;
            background: transparent;
            border: 0;
            border-radius: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 44px;
            font-weight: 800;
            letter-spacing: 0.5px;
            flex-shrink: 0;
            overflow: visible;
            box-shadow: none;
            filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55)) drop-shadow(0 2px 4px rgba(0,0,0,0.35));
            position: relative;
            /* Sit BEHIND the team names + scores so they read clearly over
               the logo. Opacity drops the logo to a watermark feel — Carlos
               likes the logo as backing texture, not the focal point. */
            z-index: 1;
            opacity: 0.30;
        }
        .gs-team-logo-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: transparent;
            padding: 0;
        }
        /* Logos are absolutely positioned at the outer edge of each half so
           they NEVER push the team-info text off-center. The team-info now
           always sits at the geometric middle of its half, which means the
           central LIVE / VS badge aligns perfectly between the team names.
           Logos can clip past the half boundary (Carlos likes the peek).
           pointer-events:none so they don't eat taps from underlying CTAs. */
        .gs-matchup-home .gs-team-logo-placeholder {
            position: absolute;
            left: -18px;
            top: 50%;
            transform: translateY(-50%);
            margin: 0;
            pointer-events: none;
        }
        .gs-matchup-away .gs-team-logo-placeholder {
            position: absolute;
            right: -18px;
            top: 50%;
            transform: translateY(-50%);
            margin: 0;
            pointer-events: none;
        }
        /* Allow logos to extend beyond the clip-path / banner overflow */
        .gs-matchup-banner { overflow: visible; }
        .gs-matchup-home, .gs-matchup-away { overflow: visible; }
        .gs-team-info {
            text-align: center; z-index: 2; width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            /* Fill the full height of the half so name+score cluster at top
               and the HOME/AWAY label anchors at the very bottom of the box
               (via margin-top:auto below). */
            align-self: stretch;
        }
        /* Flex order so HOME/AWAY sits BELOW name + score (was above). */
        .gs-team-info .gs-team-name   { order: 1; }
        .gs-team-info .gs-final-score { order: 2; }
        /* margin-top:auto pushes the label all the way to the bottom edge of
           the team-info column, so HOME/AWAY anchors to the bottom of the
           box (not directly under the score). */
        .gs-team-info .gs-team-label  { order: 3; margin-top: auto; margin-bottom: 0; padding-top: 10px; }
        .gs-team-label {
            font-family: 'Rajdhani', sans-serif;
            font-size: 10px;
            font-weight: 700;
            /* Wider tracking — reads as a broadcast lower-third label */
            letter-spacing: 3.4px;
            text-transform: uppercase;
            color: rgba(255,255,255,0.6);
            margin-bottom: 2px;
        }
        .gs-team-name {
            font-family: 'Rajdhani', sans-serif;
            font-size: clamp(22px, 5vw, 30px);
            font-weight: 800;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0,0,0,0.4);
            line-height: 1.05;
        }
        .gs-vs-badge {
            position: absolute;
            left: 50%;
            /* Sit at the top of the banner so it never covers team names or
               scores. Vertical-center was overlapping the SEAHAWKS / BROWNS
               text + the score row. */
            top: 14px;
            z-index: 10;
            transform: translateX(-50%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(180deg, #2a2e3a, #0d0f12);
            border: 2px solid rgba(255,255,255,0.15);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Orbitron', sans-serif;
            font-size: 14px;
            font-weight: 700;
            color: rgba(255,255,255,0.7);
            letter-spacing: 1.4px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.6);
        }
        /* Live hero eyebrow clock — Orbitron tabular-nums, matches the
           score numerics + the ribbon clock for typographic consistency
           across the entire live-game surface. The period token (Q1/Q2/...)
           stays in the inherited Saira Condensed since it's text, not a
           number — gives the eye a clean "label · number" contrast. */
        .hero-eyebrow .he-clock {
            font-family: 'Orbitron', 'Saira Condensed', sans-serif;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.4px;
            font-weight: 700;
        }
        /* LIVE variant — overrides the circular VS badge with a clean red pill
           that reads as a deliberate broadcast indicator. Carlos's v221 polish
           call: the previous version had a white-ish border halo + sharp 2px
           corners that made it feel like an accidental overlay. New version:
           no border, rounded pill, soft shadow, pulsing red ring (same beat
           as the live-ribbon's LIVE badge so the two indicators feel like
           one app-wide "on-air" rhythm). */
        .gs-vs-badge.gs-vs-badge--live {
            width: auto; height: auto;
            padding: 5px 11px 5px 9px;
            background: #ef4444;
            border: 0;
            border-radius: 6px;
            color: #ffffff;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 11px; font-weight: 900;
            letter-spacing: 2.4px;
            display: inline-flex; align-items: center; gap: 5px;
            box-shadow: 0 4px 14px rgba(239,68,68,0.40), 0 1px 2px rgba(0,0,0,0.30);
            animation: sc-live-ring 1.8s ease-in-out infinite;
        }
        .gs-vs-badge.gs-vs-badge--live::before {
            content: ''; width: 6px; height: 6px; border-radius: 50%;
            background: #ffffff;
            box-shadow: 0 0 6px rgba(255,255,255,0.85);
            flex-shrink: 0;
        }
        @keyframes sc-live-ring {
            0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.55), 0 4px 14px rgba(239,68,68,0.40), 0 1px 2px rgba(0,0,0,0.30); }
            50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0),    0 4px 14px rgba(239,68,68,0.40), 0 1px 2px rgba(0,0,0,0.30); }
        }
        @media (prefers-reduced-motion: reduce) {
            .gs-vs-badge.gs-vs-badge--live { animation: none; }
        }

        .hero-meta {
            display: flex;
            justify-content: center;
            gap: 18px;
            padding: 0 18px 14px;
            font-family: 'Manrope', sans-serif;
            font-size: 13px;
            font-weight: 500;
            color: var(--ink-muted);
            text-align: center;
            flex-wrap: wrap;
        }
        /* Primary date/time line — bigger + bolder so the parent can read it at a glance */
        .hero-when {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            padding: 10px 18px 6px;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 18px;
            font-weight: 800;
            letter-spacing: 0.5px;
            color: var(--ink);
            text-transform: uppercase;
            font-variant-numeric: tabular-nums;
            text-align: center;
            flex-wrap: wrap;
        }
        .hero-when .sep { color: var(--ink-faint); font-weight: 600; }
        .hero-when .time { color: var(--team-primary); }
        .hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }
        .hero-meta-item svg { width: 14px; height: 14px; stroke-width: 2; color: var(--ink-faint); }

        .hero-countdown {
            display: flex;
            justify-content: center;
            gap: 14px;
            padding: 6px 18px 18px;
        }
        .countdown-cell {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 56px;
        }
        .countdown-num {
            /* Orbitron — matches profile.html stats + scoreboard.html. */
            font-family: 'Orbitron', 'Saira Condensed', sans-serif;
            font-size: 32px;
            font-weight: 800;
            color: var(--ink);
            line-height: 1;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0;
        }
        .countdown-label {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--ink-faint);
            margin-top: 4px;
        }

        /* ─── Live Video Poster (LIVE+VIDEO hero state) ─── */
        .hero-video {
            position: relative;
            margin: 14px 18px 6px;
            border-radius: 10px;
            overflow: hidden;
            background: #0a0a0a;
            aspect-ratio: 16/10;  /* slightly taller than 16/9 so the bar gets headroom */
        }
        /* Broadcast bar sits OVER the bottom of the video — same as scoreboard.html does it */
        .hero-video .pa-broadcast {
            position: absolute;
            left: 0; right: 0; bottom: 0;
            margin: 0;
            z-index: 4;
        }
        /* Soft gradient scrim behind the bar so it pops over busy field video */
        .hero-video::after {
            content: '';
            position: absolute;
            left: 0; right: 0; bottom: 0;
            height: 50%;
            background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
            pointer-events: none;
            z-index: 3;
        }
        .hero-video-poster {
            position: absolute;
            inset: 0;
            cursor: pointer;
        }
        .hero-video-bg {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%),
                /* Faux field — green-to-darker-green gradient w/ subtle stripe pattern */
                repeating-linear-gradient(90deg, #2d5016 0px, #2d5016 50px, #2a4814 50px, #2a4814 100px),
                linear-gradient(180deg, #1f3a0d 0%, #2d5016 100%);
            background-size: 100% 100%, 100px 100%, 100% 100%;
        }
        .hero-video-play {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 64px;
            height: 64px;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
            transition: transform 0.15s ease;
        }
        .hero-video-play:hover { transform: translate(-50%, -50%) scale(1.05); }
        .hero-video-play svg { width: 100%; height: 100%; }
        .hero-video-live-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            padding: 6px 12px;
            background: var(--live);
            color: #ffffff;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 2px;
            border-radius: 2px;
            text-transform: uppercase;
            box-shadow: 0 2px 8px rgba(0,0,0,0.4);
        }

        /* Broadcast-style score strip across the bottom of the video */
        .hero-video-score {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 60%);
            color: #ffffff;
        }
        .hvs-side {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .hvs-abbr {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.5px;
            padding: 4px 8px;
            border-radius: 4px;
        }
        .hvs-num {
            font-family: 'Orbitron', 'Saira Condensed', sans-serif;
            font-size: 26px;
            font-weight: 800;
            line-height: 1;
            font-variant-numeric: tabular-nums;
            color: #ffffff;
        }
        .hvs-mid {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.6px;
            color: rgba(255,255,255,0.85);
            text-transform: uppercase;
        }

        /* Gentle pulse on the matchup VS badge when in LIVE state */
        @keyframes liveBadgePulseSlow {
            0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.6), 0 0 0 0 rgba(239,68,68,0.5); }
            50%      { box-shadow: 0 4px 15px rgba(0,0,0,0.6), 0 0 0 6px rgba(239,68,68,0); }
        }

        /* ═══════════════════════════════════════════════════════
           Broadcast Bar — same pattern as scoreboard.html
           (angled team-color cards + Orbitron clock + possession row)
           sized for the parent-app live-video hero. Visual consistency
           between what plays on the TV and what's in the parent's pocket.
           ═══════════════════════════════════════════════════════ */
        .pa-broadcast {
            position: relative;
            margin: 0 -1px;  /* hide the 1px hero-card border line under the bar */
        }
        .pa-broadcast-bar {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: stretch;
            filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4));
        }
        .pa-bc-home,
        .pa-bc-away {
            position: relative;
            display: grid;
            grid-template-rows: auto auto;
            align-items: center;
            column-gap: 12px;
            row-gap: 1px;
            padding: 10px 14px;
            min-height: 64px;
            z-index: 2;
        }
        /* Home — diagonal team-color gradient + sheen + clip-path angled right edge */
        .pa-bc-home {
            background:
                linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 30%),
                linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 22%),
                linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 42%),
                linear-gradient(135deg,
                    var(--pa-bc-home-light, rgba(29,78,216,0.45)) 0%,
                    var(--pa-bc-home, #1d4ed8) 38%,
                    var(--pa-bc-home-dark, #0a1f5e) 100%);
            clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
            grid-template-areas:
                "name score"
                "name timeouts";
            justify-content: end;
            padding-left: 16px;
            padding-right: 14px;
            margin-right: -16px;
        }
        .pa-bc-away {
            background:
                linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 30%),
                linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 22%),
                linear-gradient(225deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 42%),
                linear-gradient(225deg,
                    var(--pa-bc-away-light, rgba(20,83,45,0.45)) 0%,
                    var(--pa-bc-away, #14532d) 38%,
                    var(--pa-bc-away-dark, #052010) 100%);
            clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
            grid-template-areas:
                "score name"
                "timeouts name";
            justify-content: start;
            padding-right: 16px;
            padding-left: 14px;
            margin-left: -16px;
        }
        /* Top edge accent stripe in team secondary color */
        .pa-bc-home::before,
        .pa-bc-away::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1.5px;
            background: linear-gradient(90deg, transparent 0%, var(--edge, #22c55e) 20%, var(--edge, #22c55e) 80%, transparent 100%);
            opacity: 0.85;
            z-index: 3;
        }
        .pa-bc-home::before { --edge: var(--pa-bc-home-edge, #60a5fa); }
        .pa-bc-away::before { --edge: var(--pa-bc-away-edge, #4ade80); }
        .pa-bc-home > *, .pa-bc-away > * { position: relative; z-index: 2; }

        .pa-bc-name {
            grid-area: name;
            font-family: 'Rajdhani', sans-serif;
            font-size: 13px;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: 1px;
            text-transform: uppercase;
            white-space: normal;
            word-break: keep-all;
            max-width: 90px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.7);
            line-height: 1.05;
            opacity: 0.95;
            align-self: center;
        }
        .pa-bc-home .pa-bc-name { justify-self: start; text-align: left; }
        .pa-bc-away .pa-bc-name { justify-self: end;   text-align: left; }

        .pa-bc-score {
            grid-area: score;
            font-family: 'Orbitron', 'Oswald', sans-serif;
            font-size: 32px;
            font-weight: 800;
            color: #ffffff;
            line-height: 1;
            font-variant-numeric: tabular-nums;
            text-shadow: 0 2px 0 rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.45);
        }
        .pa-bc-home .pa-bc-score { justify-self: end; }
        .pa-bc-away .pa-bc-score { justify-self: start; }

        .pa-bc-timeouts {
            grid-area: timeouts;
            display: flex;
            align-items: center;
            gap: 4px;
            margin-top: 2px;
            justify-self: center;
        }
        .pa-bc-to {
            width: 9px;
            height: 4px;
            border-radius: 1px;
            background: rgba(255,255,255,0.16);
            border: 1px solid rgba(255,255,255,0.08);
        }
        .pa-bc-to.active {
            background: #f59e0b;
            border-color: rgba(245,158,11,0.6);
            box-shadow: 0 0 6px rgba(245,158,11,0.5);
        }

        /* Center clock pocket — sits BEHIND the team cards, black background */
        .pa-bc-clocksection {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: #0a0a0a;
            padding: 8px 28px;
            min-width: 110px;
            grid-column: 2;
            z-index: 1;
        }
        .pa-bc-live {
            font-family: 'Rajdhani', sans-serif;
            font-size: 10px;
            font-weight: 700;
            color: #ef4444;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            margin-bottom: 1px;
        }
        /* ─── Kid Spotlight — premium "Weston's Game" callout ───
           Left 1/4 = athlete's profile photo, right 3/4 = shimmering name +
           stat line. The shimmer uses a moving gradient masked to the text
           so it sweeps a brighter highlight across "WESTON'S GAME". */
        .kid-spotlight {
            display: grid;
            grid-template-columns: 25% 1fr;
            align-items: center;
            gap: 16px;
            margin: 8px 18px 6px;
            padding: 10px 0;
        }
        .kid-spot-avatar {
            position: relative;
            width: 100%;
            aspect-ratio: 1 / 1;
            max-width: 96px;
            margin: 0 auto;
            border-radius: 50%;
            overflow: hidden;
            background: linear-gradient(135deg, var(--team-primary, #1d4ed8), var(--team-secondary, #f59e0b));
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 28px;
            font-weight: 800;
            letter-spacing: 1px;
            box-shadow: 0 6px 22px color-mix(in srgb, var(--team-primary, #1d4ed8) 38%, transparent),
                        0 0 0 3px var(--surface),
                        0 0 0 4px color-mix(in srgb, var(--team-primary, #1d4ed8) 22%, transparent);
        }
        .kid-spot-avatar img {
            width: 100%; height: 100%; object-fit: cover; display: block;
        }
        .kid-spot-body {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .kid-spot-title {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 17px;
            font-weight: 800;
            letter-spacing: 2.4px;
            text-transform: uppercase;
            line-height: 1;
            /* Shimmer — a brighter highlight sweeps across the otherwise
               muted-white text. Background-clip:text masks the gradient to
               the letters. Works on dark + light themes since the gradient
               itself is theme-agnostic. */
            background: linear-gradient(110deg,
                rgba(255, 255, 255, 0.55) 0%,
                rgba(255, 255, 255, 0.55) 38%,
                #ffffff 50%,
                rgba(255, 255, 255, 0.55) 62%,
                rgba(255, 255, 255, 0.55) 100%);
            background-size: 260% 100%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            animation: sc-kid-shimmer 3.6s ease-in-out infinite;
        }
        /* In LIGHT mode the white-on-white shimmer disappears — swap to a
           dark-text shimmer instead (dark base, lighter sweep) so it stays
           legible without going team-blue (which Carlos rejected on dark). */
        html[data-theme="light"] .kid-spot-title {
            background: linear-gradient(110deg,
                #0a0a0a 0%, #0a0a0a 38%,
                #525252 50%,
                #0a0a0a 62%, #0a0a0a 100%);
            background-size: 260% 100%;
            -webkit-background-clip: text;
            background-clip: text;
        }
        @keyframes sc-kid-shimmer {
            0%   { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        @media (prefers-reduced-motion: reduce) {
            .kid-spot-title { animation: none; }
        }
        .kid-spot-stats {
            font-family: 'Manrope', sans-serif;
            font-size: 14.5px;
            font-weight: 700;
            color: var(--ink);
            font-variant-numeric: tabular-nums;
            line-height: 1.3;
        }
        .kid-spot-stats .stat-divider {
            color: var(--ink-faint);
            margin: 0 6px;
            font-weight: 500;
        }

        .pa-bc-clock {
            font-family: 'Orbitron', monospace;
            font-size: 28px;
            font-weight: 700;
            color: #22c55e;
            line-height: 1;
            text-shadow: 0 0 16px rgba(34,197,94,0.4);
            font-variant-numeric: tabular-nums;
        }

        /* Possession + quarter + down row below the bar */
        .pa-bc-status {
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            gap: 14px;
            padding: 7px 18px;
            background: linear-gradient(180deg, rgba(10,12,20,0.94), rgba(6,8,14,0.97));
            border-top: 1px solid rgba(255,255,255,0.06);
            font-family: 'Rajdhani', sans-serif;
            font-size: 11px;
            font-weight: 700;
            color: rgba(255,255,255,0.85);
            letter-spacing: 1.2px;
            text-transform: uppercase;
        }
        .pa-bc-status-side { display: inline-flex; align-items: center; gap: 8px; }
        .pa-bc-status-side.left  { justify-content: flex-end; }
        .pa-bc-status-side.right { justify-content: flex-start; }
        .pa-bc-possession {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-family: 'Rajdhani', sans-serif;
            font-weight: 800;
            font-size: 10px;
            letter-spacing: 1.8px;
            color: rgba(255,255,255,0.55);
        }
        .pa-bc-poss-arrow {
            font-size: 14px;
            color: rgba(255,255,255,0.22);
            line-height: 1;
            transition: color 0.3s ease, text-shadow 0.3s ease;
        }
        .pa-bc-poss-arrow.active {
            color: #22c55e;
            text-shadow: 0 0 8px rgba(34,197,94,0.7);
        }

        .hero-cta {
            display: flex;
            gap: 8px;
            padding: 0 18px 18px;
        }
        .btn {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 13px 16px;
            font-family: 'Manrope', sans-serif;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 0.4px;
            border-radius: var(--radius-sm);
            border: 1px solid transparent;
            transition: all 0.15s ease;
            text-transform: uppercase;
        }
        .btn svg { width: 16px; height: 16px; stroke-width: 2.2; }
        .btn-primary {
            background: var(--ink);
            color: #ffffff;
        }
        .btn-primary:hover { background: #1f1f1f; }
        /* Volunteer row — "Keep Score" / "Film This Game" sit just under the
           live hero's primary CTAs. Quiet by default, primary on tap. */
        .hero-volunteer-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin: 12px 18px 18px;
        }
        .volunteer-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 10px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            color: var(--ink);
            cursor: pointer;
            transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
        }
        .volunteer-btn:hover { border-color: var(--ink-muted); }
        .volunteer-btn:active { transform: scale(0.97); background: var(--bg); }
        .volunteer-btn svg { color: var(--team-primary); }

        .btn-live {
            background: var(--live);
            color: #ffffff;
        }
        .btn-live:hover { background: #dc2626; }
        .btn-ghost {
            background: transparent;
            border-color: var(--border-strong);
            color: var(--ink);
        }
        .btn-ghost:hover { background: #f4f4f5; }

        /* ─── Stat Strip (your child's totals) ───────────────────── */
        .stat-strip {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            margin-top: 8px;
        }
        .stat-tile {
            position: relative;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 14px 10px;
            text-align: center;
            overflow: hidden;
        }
        /* Thin team-color stripe on each stat tile — adds personality without taking over */
        .stat-tile::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: var(--team-primary);
            opacity: 0.85;
        }
        .stat-tile:nth-child(2)::before { background: var(--team-secondary); }
        .stat-tile:nth-child(3)::before { background: var(--team-primary); }
        .stat-tile:nth-child(4)::before { background: var(--team-secondary); }
        .stat-tile-num {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 28px;
            font-weight: 800;
            color: var(--ink);
            line-height: 1;
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.5px;
        }
        .stat-tile-label {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 1.6px;
            text-transform: uppercase;
            color: var(--ink-muted);
            margin-top: 6px;
        }

        /* ─── Game cards (schedule + recent results) ─────────────── */
        .game-card {
            display: flex;
            align-items: center;
            gap: 14px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 14px 16px;
            transition: all 0.15s ease;
        }
        .game-card + .game-card { margin-top: 8px; }
        .game-card:hover {
            border-color: var(--border-strong);
            box-shadow: var(--shadow-sm);
        }
        .game-card-date {
            flex-shrink: 0;
            text-align: center;
            width: 48px;
        }
        .gcd-month {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1.8px;
            text-transform: uppercase;
            color: var(--ink-faint);
        }
        .gcd-day {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 22px;
            font-weight: 800;
            color: var(--ink);
            line-height: 1;
            margin-top: 1px;
            font-variant-numeric: tabular-nums;
        }
        .game-card-body { flex: 1; min-width: 0; }
        .gcb-opponent {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 15px;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: var(--ink);
            text-transform: uppercase;
        }
        .gcb-meta {
            font-family: 'Manrope', sans-serif;
            font-size: 12px;
            font-weight: 500;
            color: var(--ink-muted);
            margin-top: 2px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .gcb-meta .dot {
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background: var(--ink-faint);
        }
        /* REC pill — surfaces on game cards where a camera session recorded
           video. Tells the parent "this one has highlights to watch."
           Matches the pattern on schedule.html (.gbg-cam-pill). */
        .gcb-rec-pill {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 7px 1px;
            border-radius: 999px;
            background: rgba(239, 68, 68, 0.10);
            color: var(--accent-red, #ef4444);
            font-family: 'Saira Condensed', sans-serif;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 1.4px;
            text-transform: uppercase;
            line-height: 1;
        }
        .gcb-rec-pill::before {
            content: '';
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: var(--accent-red, #ef4444);
            box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
        }
        .game-card-result {
            flex-shrink: 0;
            text-align: right;
            min-width: 86px;
        }
        /* Score chip — white background, team-color BORDER + text. Fixes the
           "dark charcoal pill with eagle-collar text" readability bug. */
        .score-chip {
            display: inline-flex;
            align-items: baseline;
            gap: 6px;
            padding: 6px 12px;
            background: #ffffff;
            border: 1.5px solid var(--team-color, #0a0a0a);
            border-radius: 999px;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 14px;
            font-weight: 800;
            color: var(--team-color, #0a0a0a);
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.3px;
        }
        .score-chip .result-tag {
            font-family: 'Saira Condensed', sans-serif;
            font-weight: 700;
            font-size: 10px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            margin-right: 2px;
        }
        .score-chip.win  { --team-color: #22c55e; }
        .score-chip.loss { --team-color: #ef4444; }
        .score-chip.tie  { --team-color: #f59e0b; }
        .game-card-cta {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--ink-muted);
        }
        .game-card.live .game-card-result .live-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 10px;
            background: var(--live-soft);
            border-radius: 999px;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 1.5px;
            color: var(--live);
            text-transform: uppercase;
        }

        /* ─── Highlight reel placeholder card ────────────────────── */
        .highlight-card {
            position: relative;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            aspect-ratio: 16 / 9;
        }
        .highlight-card-thumb {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #d4d4d4 0%, #e5e5e5 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .highlight-card-thumb svg {
            width: 56px;
            height: 56px;
            color: var(--ink-faint);
        }
        .highlight-card-label {
            position: absolute;
            left: 12px;
            bottom: 12px;
            padding: 5px 10px;
            background: rgba(0,0,0,0.7);
            color: #ffffff;
            border-radius: 4px;
            font-family: 'Saira Condensed', sans-serif;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }
        .highlight-card-play {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255,255,255,0.9);
        }
        .highlight-card-play svg {
            width: 52px;
            height: 52px;
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
        }

        /* ─── Bottom Nav ─────────────────────────────────────────── */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            /* v246: opaque + no backdrop-filter — same fix pattern as the
               top headers (v238-v240). Nav's padding-bottom extends into
               env(safe-area-inset-bottom), and a translucent bg + blur
               there bleeds into the iOS home indicator zone. */
            background: var(--surface);
            border-top: 1px solid var(--border);
            height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
            padding-bottom: env(safe-area-inset-bottom, 0px);
            display: flex;
            align-items: stretch;
            z-index: 100;
        }
        .bn-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: var(--ink-muted);
            transition: color 0.15s ease, transform 0.08s ease;
            position: relative;
            padding: 10px 4px;
            margin: 8px 5px;
            border-radius: 16px;
            -webkit-tap-highlight-color: transparent;
        }
        .bn-item:active { transform: scale(0.93); }
        /* Bottom nav icons — high-specificity rules (no !important) so they win
           cleanly over any cascading rule that may have crept in. Explicit display
           keeps iOS Safari from collapsing an unstyled <svg> in flex column layout. */
        nav.bottom-nav .bn-item svg {
            display: block;
            width: 26px;
            height: 26px;
            stroke-width: 2;
            stroke: currentColor;
            fill: none;
            flex-shrink: 0;
        }
        /* Inactive items sit in a faint gray so the active pill reads as
           clearly selected. Light enough to look unselected, dark enough to
           stay readable as a tap target. */
        nav.bottom-nav .bn-item { color: #a1a1aa; }
        nav.bottom-nav .bn-item svg { stroke-width: 1.8; }
        nav.bottom-nav .bn-item.active { color: #ffffff; }
        nav.bottom-nav .bn-item.active svg { stroke-width: 2.4; }
        .bn-label {
            font-family: 'Saira Condensed', sans-serif;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }
        /* Active item — solid team-color gradient rect with white icon + label.
           Matches the portal pattern. */
        .bn-item.active {
            background: linear-gradient(135deg, var(--team-primary), var(--team-secondary));
            color: #ffffff;
            box-shadow: 0 4px 14px color-mix(in srgb, var(--team-primary) 28%, transparent),
                        inset 0 1px 0 rgba(255,255,255,0.18);
        }

        /* ─── Small screen tweaks ─── */
        @media (max-width: 380px) {
            .stat-strip { grid-template-columns: repeat(2, 1fr); }
            .hero-logo { width: 60px; height: 60px; }
            .hero-team-name { font-size: 12px; }
        }
    