/* ============================================================
   Eggbeater tvOS — EASIER FROM THE COUCH (tvOS 5.0 (76) + (77), 2026-10-15)
   The Settings sheet, the View pill, the remote legend, Help, the team
   picker, the goal banner, the thicker focus ring, high contrast and
   larger text — a transcription of native Settings.swift + Theme.swift.
   Loaded after tv.css / tv-panels.css / tv-detail.css so it wins ties.
   ============================================================ */

/* ── Tokens the native theme added: the solid card (high contrast), the
      focus plate + its ink (focusFill / onAccent). ── */
:root:not([data-skin="jo"]) [data-theme] { --card-solid: #0D1830; --focus-fill: #ffffff; --on-accent: #002F6C; }
:root:not([data-skin="jo"]) [data-theme="light"] { --card-solid: #ffffff; }
[data-skin="jo"] [data-theme] { --card-solid: #1E1530; --focus-fill: #ffffff; --on-accent: #1B1226; }
[data-skin="jo"] [data-theme="light"] { --card-solid: #FFFAEE; }

/* ============================================================
   FOCUS — the thicker, higher-contrast ring (Theme.boldFocus, on by default:
   the thin specular ring was the thing an elderly viewer could not find).
   Cards: a 6px ring in the brightest token + a second 3px ring in the accent
   just inside it (native ebFocus: strokeBorder 6 + an inner stroke 3 at
   padding 6). Pills and rows: the 6px ring (rowFocus); Settings / View: 5px.
   ============================================================ */
:root:not([data-skin="jo"]) [data-theme] .glass.tvf.is-focused {
  box-shadow: 0 0 0 6px var(--focus-ring), 0 0 22px 1px var(--teal-glow), 0 22px 50px rgba(0, 0, 0, 0.45);
  outline: 3px solid var(--teal-bright); outline-offset: -9px;
}
:root:not([data-skin="jo"]) [data-theme="light"] .glass.tvf.is-focused {
  box-shadow: 0 0 0 6px var(--focus-ring), 0 0 30px 2px var(--teal-glow), 0 30px 60px rgba(0, 47, 108, 0.22);
}
:root:not([data-skin="jo"]) [data-theme] :is(.tab, .tab-exit, .hdr-pill, .divpill, .entry-theme, .gd-back, .gd-tab).tvf.is-focused {
  box-shadow: 0 0 0 6px var(--focus-ring), 0 14px 30px rgba(0, 0, 0, 0.38);
}
:root:not([data-skin="jo"]) [data-theme="light"] :is(.tab, .tab-exit, .hdr-pill, .divpill, .entry-theme, .gd-back, .gd-tab).tvf.is-focused {
  box-shadow: 0 0 0 6px var(--focus-ring), 0 14px 30px rgba(0, 47, 108, 0.18);
}
:root:not([data-skin="jo"]) [data-theme] :is(.set-pill, .view-pill).tvf.is-focused {
  box-shadow: 0 0 0 5px var(--focus-ring), 0 14px 30px rgba(0, 0, 0, 0.38);
}
:root:not([data-skin="jo"]) [data-theme] .mp-row.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme] .set-row.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme] .picker-tile.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme] .set-done.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme] .key.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme] .btn-tv.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme] .titem.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme] .seg.tvf.is-focused {
  box-shadow: 0 0 0 6px var(--focus-ring), 0 0 22px 1px var(--teal-glow), 0 14px 30px rgba(0, 0, 0, 0.40);
}
:root:not([data-skin="jo"]) [data-theme="light"] .mp-row.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme="light"] .set-row.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme="light"] .picker-tile.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme="light"] .set-done.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme="light"] .key.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme="light"] .btn-tv.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme="light"] .titem.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme="light"] .seg.tvf.is-focused {
  box-shadow: 0 0 0 6px var(--focus-ring), 0 0 22px 1px var(--teal-glow), 0 14px 30px rgba(0, 47, 108, 0.18);
}
/* The championship canvas cards and the board's cards are .glass too and take
   the card ring above. The seg underline bar is text, so no inner ring. */
.seg.tvf.is-focused { outline: none; }

/* ============================================================
   HEADER PILLS — Settings (gear + the word, tx2 on glass) and View (the
   accent on its wash, 1.5px accent edge). Native SettingsPill / ViewPill:
   .eb 20 bold, padding 12 × 22, capsule.
   ============================================================ */
.hdr-pill.set-pill, .hdr-pill.view-pill { padding: 12px 22px; font-size: 20px; font-weight: 700; gap: 10px; }
:root:not([data-skin="jo"]) [data-theme] .hdr-pill.set-pill { color: var(--tx-2); }
:root:not([data-skin="jo"]) [data-theme] .hdr-pill.set-pill svg { stroke: var(--tx-2); }
:root:not([data-skin="jo"]) [data-theme] .hdr-pill.view-pill {
  color: var(--teal-bright); background: var(--accent-wash); border: 1.5px solid var(--accent-edge);
}
:root:not([data-skin="jo"]) [data-theme] .hdr-pill.view-pill svg { stroke: var(--teal-bright); }
:root:not([data-skin="jo"]) [data-theme] .hdr-pill.view-pill.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme] .hdr-pill.set-pill.tvf.is-focused { background: var(--focus-fill); color: var(--on-accent); border-color: var(--focus-fill); }
:root:not([data-skin="jo"]) [data-theme] .hdr-pill.view-pill.tvf.is-focused svg,
:root:not([data-skin="jo"]) [data-theme] .hdr-pill.set-pill.tvf.is-focused svg { stroke: var(--on-accent); }
.view-pill .vp-lbl { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   OVERLAYS — Settings · Help · the team picker. A scrim (black .55 at night,
   .35 by day) and a glass panel (padding 36, radius rLg, width 1340; the
   picker 1400). Presented over the dashboard behind a focus fence.
   ============================================================ */
.set-overlay {
  position: absolute; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.55);
  animation: setIn .22s var(--ease);
}
[data-theme="light"] .set-overlay { background: rgba(0, 0, 0, 0.35); }
@keyframes setIn { from { opacity: 0; } }
.set-panel {
  width: 1340px; padding: 36px; border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 18px;
}
.set-title {
  font-family: var(--font-mono); font-size: 20px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal-bright);
}
.set-cols { display: flex; align-items: flex-start; gap: 28px; }
.set-col { width: 620px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.set-eyebrow {
  font-family: var(--font-mono); font-size: 15px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--tx-3); padding-left: 6px;
}
/* a row (native RowButton, radius EB.r): icon · title + hint · value */
.set-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; border-radius: var(--r);
  background: var(--glass-fill); border: 1px solid var(--glass-rim);
}
.set-ico { width: 40px; flex-shrink: 0; display: inline-flex; justify-content: center; color: var(--teal-bright); }
.set-ico svg { stroke: var(--teal-bright); }
.set-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.set-ttl { font-size: 25px; font-weight: 700; color: var(--tx-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-hint { font-size: 16px; font-weight: 500; color: var(--tx-3); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set-val { font-size: 23px; font-weight: 800; color: var(--teal-bright); max-width: 220px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.set-chev { color: var(--tx-3); display: inline-flex; flex-shrink: 0; }
.set-chev svg { stroke: var(--tx-3); }
:root:not([data-skin="jo"]) [data-theme] .set-row.tvf.is-focused { background: var(--focus-fill); border-color: var(--focus-fill); }
:root:not([data-skin="jo"]) [data-theme] .set-row.tvf.is-focused .set-ttl,
:root:not([data-skin="jo"]) [data-theme] .set-row.tvf.is-focused .set-hint,
:root:not([data-skin="jo"]) [data-theme] .set-row.tvf.is-focused .set-val { color: var(--on-accent); }
:root:not([data-skin="jo"]) [data-theme] .set-row.tvf.is-focused .set-hint { opacity: .78; }
:root:not([data-skin="jo"]) [data-theme] .set-row.tvf.is-focused svg { stroke: var(--on-accent); }
.set-donerow { display: flex; justify-content: flex-end; }
.set-done {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 44px; border-radius: var(--r-pill);
  font-size: 24px; font-weight: 700; color: var(--tx-1);
  background: var(--glass-fill); border: 1px solid var(--glass-rim);
}
:root:not([data-skin="jo"]) [data-theme] .set-done.tvf.is-focused { background: var(--focus-fill); color: var(--on-accent); border-color: var(--focus-fill); }
.set-foot { font-size: 18px; font-weight: 500; color: var(--tx-4); text-align: center; white-space: pre; }

/* ── Help: the drawn remote (210 × 440) and two columns of lines (470 wide, gap 48) ── */
.help-cols { display: flex; align-items: flex-start; gap: 48px; }
.help-col { width: 470px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.help-sec {
  font-family: var(--font-mono); font-size: 15px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--tx-3);
}
.help-line { display: flex; align-items: flex-start; gap: 14px; font-size: 21px; font-weight: 500; color: var(--tx-1); line-height: 1.3; }
.help-ico { width: 34px; flex-shrink: 0; display: inline-flex; justify-content: center; color: var(--teal-bright); padding-top: 2px; }
.help-ico svg { stroke: var(--teal-bright); }
.help-n {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal-bright); color: var(--on-accent); font-size: 15px; font-weight: 800;
}
[data-theme="dark"] .help-n { color: #002F6C; }
.rd {
  position: relative; width: 210px; height: 440px; flex-shrink: 0;
  border-radius: 46px; background: rgba(20, 24, 43, 0.06); border: 2px solid rgba(59, 66, 86, 0.55);
  display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 32px 0 24px;
}
[data-theme="dark"] .rd { background: rgba(246, 241, 231, 0.10); border-color: rgba(201, 207, 221, 0.55); }
.rd-pad { position: relative; width: 130px; height: 130px; border-radius: 50%; border: 3px solid var(--tx-2); flex-shrink: 0; }
.rd-center { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--teal-bright); }
.rd-ch { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -7px 0 0 -7px; color: var(--tx-2); display: inline-flex; }
.rd-ch svg { stroke: var(--tx-2); stroke-width: 3; }
.rd-ch.up { transform: translateY(-50px) rotate(-90deg); }
.rd-ch.down { transform: translateY(50px) rotate(90deg); }
.rd-ch.left { transform: translateX(-50px) rotate(180deg); }
.rd-ch.right { transform: translateX(50px); }
.rd-row { display: flex; gap: 22px; }
.rd-key { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(20, 24, 43, 0.10); color: var(--tx-1); }
[data-theme="dark"] .rd-key { background: rgba(246, 241, 231, 0.16); }
.rd-key svg { stroke: var(--tx-1); }

/* ── The team picker: crest tiles four across, "Just watching" last ── */
.picker-panel { width: 1400px; }
.picker-h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.8px; color: var(--tx-1); line-height: 1.1; }
.picker-sub { font-size: 21px; font-weight: 500; color: var(--tx-3); margin-top: -6px; }
.picker-grid { max-height: 560px; overflow: hidden; padding: 6px; }
.picker-grid-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.picker-tile {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 18px 12px; border-radius: var(--r);
  background: var(--glass-fill); border: 1px solid var(--glass-rim);
}
.picker-tile.active { background: var(--accent-wash); border: 2px solid var(--accent-edge); }
.picker-tile .tlogo, .picker-tile .tcrest, .picker-tile .tdot { width: 56px !important; height: 56px !important; }
.picker-eye { height: 84px; display: inline-flex; align-items: center; color: var(--tx-3); }
.picker-eye svg { stroke: var(--tx-3); }
.picker-name {
  font-size: 22px; font-weight: 700; color: var(--tx-1); text-align: center; line-height: 1.25;
  height: 58px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
:root:not([data-skin="jo"]) [data-theme] .picker-tile.tvf.is-focused { background: var(--focus-fill); border-color: var(--focus-fill); }
:root:not([data-skin="jo"]) [data-theme] .picker-tile.tvf.is-focused .picker-name { color: var(--on-accent); }
:root:not([data-skin="jo"]) [data-theme] .picker-tile.tvf.is-focused .picker-eye,
:root:not([data-skin="jo"]) [data-theme] .picker-tile.tvf.is-focused .picker-eye svg { color: var(--on-accent); stroke: var(--on-accent); }

/* ============================================================
   REMOTE LEGEND — one line along the bottom for ten seconds after any
   press (native RemoteLegend: ebDisplay 21 semibold tx2, icons 20 bold in
   the accent, spacing 34, padding 12 × 30, a glass capsule, 22 off the edge).
   The key chips name the keyboard keys the embed listens for.
   ============================================================ */
.legend {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 58;
  display: flex; align-items: center; gap: 34px;
  padding: 12px 30px; border-radius: var(--r-pill);
  background: var(--glass-base); border: 1px solid var(--glass-rim);
  backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur));
  font-size: 21px; font-weight: 600; color: var(--tx-2); white-space: nowrap;
  animation: legendIn .25s var(--ease); pointer-events: none;
}
@keyframes legendIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.legend-it { display: inline-flex; align-items: center; gap: 10px; }
.legend-it svg { stroke: var(--teal-bright); flex-shrink: 0; }
.legend .k {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px;
  border-radius: 7px; background: var(--accent-wash); color: var(--tx-1); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
}

/* ============================================================
   GOAL BANNER — "GOAL · Alameda 5–4 Granite Bay" top center for a few
   seconds after a goal lands (native GoalBanner: ink on the sun, GOAL in
   mono 26 heavy tracking 3, the line 30 heavy, padding 14 × 34).
   ============================================================ */
.goal-banner {
  position: absolute; top: 30px; left: 50%; transform: translateX(-50%); z-index: 70;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 34px; border-radius: var(--r-pill);
  background: #FFD862; color: #14182B; border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  animation: goalIn .35s var(--ease-focus); pointer-events: none;
}
@keyframes goalIn { from { opacity: 0; transform: translate(-50%, -40px); } }
.gb-goal { font-family: var(--font-mono); font-size: 26px; font-weight: 800; letter-spacing: 3px; }
.gb-line { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; max-width: 1100px; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   HIGH CONTRAST (Settings → High contrast): cards go solid instead of glass,
   the photo behind them goes away, and the two muted inks step up one rung
   (native Theme.highContrast → glassFill solid, GlassCard solid, tx3 → tx2,
   tx4 → muted, Backdrop photo off).
   ============================================================ */
:root:not([data-skin="jo"]) [data-theme="dark"][data-contrast="high"] { --tx-3: #C9CFDD; --tx-4: #98A2B8; }
:root:not([data-skin="jo"]) [data-theme="light"][data-contrast="high"] { --tx-3: #3B4256; --tx-4: #5D6577; }
[data-contrast="high"] .tv-scene, [data-contrast="high"] .tv-scene-vig { display: none; }
[data-contrast="high"] .glass {
  background: var(--card-solid);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
[data-contrast="high"] .glass::before { content: none; }
[data-theme][data-contrast="high"] :is(.key, .code-cell, .titem, .tab, .tab-exit, .hdr-pill, .divpill, .entry-theme, .gd-back, .gd-tab, .gd-clockpill, .btn-tv, .set-row, .set-done, .picker-tile, .mp-row, .legend) {
  background: var(--card-solid);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
[data-theme][data-contrast="high"] .tab.active,
[data-theme][data-contrast="high"] .divpill.on,
[data-theme][data-contrast="high"] .gd-tab.on,
[data-theme][data-contrast="high"] .hdr-pill.view-pill,
[data-theme][data-contrast="high"] .picker-tile.active { background: var(--accent-wash); }
[data-theme][data-contrast="high"] :is(.tab, .tab-exit, .hdr-pill, .divpill, .entry-theme, .gd-back, .gd-tab, .set-row, .set-done, .picker-tile, .key, .btn-tv, .titem, .mp-row).tvf.is-focused { background: var(--focus-fill); }

/* ============================================================
   LARGER TEXT (Settings → Larger text): native multiplies every size that
   goes through ebDisplay / ebMono by 1.18; the bespoke glyph sizes stay.
   The rungs that carry names, scores, rows and the sheets, × 1.18.
   ============================================================ */
[data-text="large"] .hdr-name { font-size: 40px; }
[data-text="large"] .hdr-host { font-size: 21px; }
[data-text="large"] .hdr-chip { font-size: 21px; }
[data-text="large"] .clock { font-size: 40px; }
[data-text="large"] .tab { font-size: 25px; width: auto; padding: 0 22px; }
[data-text="large"] .divpill { font-size: 22px; }
[data-text="large"] .divs-lbl { font-size: 18px; }
[data-text="large"] .sec-hd { font-size: 20px; }
[data-text="large"] .gteam-name { font-size: 35px; }
[data-text="large"] .gteam-score { font-size: 66px; }
[data-text="large"] .gcard-tag { font-size: 19px; }
[data-text="large"] .gcard-clock { font-size: 26px; }
[data-text="large"] .gcard-venue { font-size: 19px; }
[data-text="large"] .pool-hd { font-size: 26px; }
[data-text="large"] .pool-hd .pool-sub { font-size: 19px; }
[data-text="large"] .stand th { font-size: 18px; }
[data-text="large"] .stand td { font-size: 28px; padding: 13px 10px; }
[data-text="large"] .stand .teamc { font-size: 30px; }
[data-text="large"] .stand td.pts { font-size: 31px; }
[data-text="large"] .stand .seed { font-size: 22px; width: 40px; height: 40px; }
[data-text="large"] .day-hd { font-size: 19px; }
[data-text="large"] .srow-when .t { font-size: 24px; }
[data-text="large"] .srow-when .p { font-size: 17px; }
[data-text="large"] .srow-team .nm { font-size: 25px; }
[data-text="large"] .srow-score .s { font-size: 34px; }
[data-text="large"] .srow-tag { font-size: 20px; }
[data-text="large"] .mside .mname { font-size: 31px; }
[data-text="large"] .mside .mscore { font-size: 37px; }
[data-text="large"] .match-meta { font-size: 18px; }
[data-text="large"] .round-hd { font-size: 20px; }
[data-text="large"] .livestrip .ls-name { font-size: 28px; }
[data-text="large"] .livestrip .ls-score { font-size: 35px; }
[data-text="large"] .livestrip .ls-meta, [data-text="large"] .livestrip .ls-open { font-size: 20px; }
[data-text="large"] .mp-title { font-size: 25px; }
[data-text="large"] .mp-seed { font-size: 22px; }
[data-text="large"] .mp-meta { font-size: 18px; }
[data-text="large"] .champ-bar .cb-line { font-size: 25px; }
[data-text="large"] .champ-card .mside .mname { font-size: 32px; }
[data-text="large"] .champ-card .mside .mscore { font-size: 40px; }
[data-text="large"] .gd-team-name { font-size: 38px; }
[data-text="large"] .gd-meta .val { font-size: 26px; }
[data-text="large"] .set-ttl { font-size: 30px; }
[data-text="large"] .set-hint { font-size: 19px; }
[data-text="large"] .set-val { font-size: 27px; }
[data-text="large"] .set-done { font-size: 28px; }
[data-text="large"] .set-foot { font-size: 21px; }
[data-text="large"] .help-line { font-size: 25px; }
[data-text="large"] .picker-h1 { font-size: 47px; }
[data-text="large"] .picker-sub { font-size: 25px; }
[data-text="large"] .picker-name { font-size: 26px; }
[data-text="large"] .legend { font-size: 25px; }
[data-text="large"] .gb-line { font-size: 35px; }
[data-text="large"] .hs-line { font-size: 19px; }
[data-text="large"] .entry-h1 { font-size: 68px; }
[data-text="large"] .entry-sub { font-size: 27px; }
[data-text="large"] .titem .tt .n { font-size: 27px; }
[data-text="large"] .titem .tt .m { font-size: 19px; }
[data-text="large"] .bd-teams .nm { font-size: 33px; }
[data-text="large"] .bd-when .t { font-size: 26px; }
[data-text="large"] .bd-tr .c2 .nm { font-size: 31px; }
[data-text="large"] .bd-tr .c3, [data-text="large"] .bd-tr .c5 { font-size: 28px; }
[data-text="large"] .bd-score .nm { font-size: 50px; }
[data-text="large"] .bd-score .sc { font-size: 71px; }
[data-text="large"] .bd-champ-name { font-size: 52px; }
[data-text="large"] .bd-ticker { font-size: 35px; }

/* ============================================================
   THE BOARD (TV Mode) — native IdleScreen.swift, always drawn dark:
   header · the page · dots · "PRESS ANY BUTTON TO RETURN TO LIVE".
   ============================================================ */
.board {
  position: absolute; inset: 0; z-index: 55; overflow: hidden;
  display: flex; flex-direction: column; padding: var(--safe-y) var(--safe-x);
  color: var(--tx-1); animation: boardIn .6s var(--ease);
}
@keyframes boardIn { from { opacity: 0; } }
.board-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle 1100px at 100% -8%, rgba(247, 136, 74, 0.14), transparent),
    radial-gradient(circle 1500px at 78% -16%, rgba(204, 59, 114, 0.12), transparent),
    #060D1F;
}
[data-skin="jo"] .board-bg {
  background:
    radial-gradient(85% 80% at 82% -8%, rgba(248, 207, 90, 0.20), transparent 50%),
    radial-gradient(80% 75% at 4% 110%, rgba(237, 94, 44, 0.28), transparent 55%),
    linear-gradient(168deg, #2B2A57 0%, #402D61 40%, #4A2E63 62%, #7A2F66 84%, #B23A5E 100%);
}
.board > .tv-scene, .board > .tv-scene-vig { z-index: 0; }
.board-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.board-top .ss-brand span, .board-top .ss-clock { color: var(--tx-1); text-shadow: none; }
.board-center { position: relative; z-index: 2; flex: 1; min-height: 0; display: grid; place-items: center; }
.board-bottom { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.bd-page { display: grid; place-items: center; width: 100%; animation: bdPage .5s var(--ease); }
@keyframes bdPage { from { opacity: 0; } }
.bd-dots { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.bd-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--tx-1); opacity: .3; transition: opacity .3s var(--ease); }
.bd-dots span.on { opacity: .9; }
.bd-foot {
  font-family: var(--font-mono); font-size: 16px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--tx-2);
  padding: 11px 22px; border-radius: var(--r-pill); background: var(--glass-fill); border: 1px solid var(--glass-rim);
}
.bd-empty { font-size: 30px; font-weight: 700; color: var(--tx-2); text-align: center; }
.bd-ticker { margin-top: 10px; font-size: 30px; font-weight: 700; color: var(--tx-2); font-variant-numeric: tabular-nums; white-space: pre; max-width: 1700px; overflow: hidden; text-overflow: ellipsis; text-align: center; }

/* cards */
.bd-card { border-radius: 40px; }
.bd-kicker { font-family: var(--font-mono); font-size: 18px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--tx-3); display: inline-flex; align-items: center; gap: 10px; }
.bd-kicker.accent { color: var(--teal-bright); }
.bd-kicker.seg { letter-spacing: 2px; }
.bd-kicker.when { letter-spacing: 0; color: var(--tx-2); text-transform: none; }
.bd-kicker.live { color: var(--live); }
.bd-kickrow { display: flex; align-items: center; gap: 12px; }
.bd-kickrow .sp { flex: 1; }
.hair { border-top: 1px solid var(--line-soft); }

/* UP NEXT */
.bd-upnext { width: 1240px; padding: 30px 44px; display: flex; flex-direction: column; gap: 14px; }
.bd-row { display: flex; align-items: center; gap: 22px; }
.bd-row.hair { padding-top: 14px; }
.bd-when { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-when .t { font-family: var(--font-mono); font-size: 22px; font-weight: 800; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.bd-when .d { font-size: 16px; font-weight: 600; color: var(--tx-3); }
.bd-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bd-teams { display: flex; align-items: center; gap: 12px; white-space: nowrap; overflow: hidden; }
.bd-teams .nm { font-size: 28px; font-weight: 800; color: var(--tx-1); overflow: hidden; text-overflow: ellipsis; }
.bd-teams .vs { font-size: 20px; font-weight: 600; color: var(--tx-3); }
.bd-seg { font-size: 20px; font-weight: 600; color: var(--tx-3); max-width: 260px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }

/* STANDINGS, two pools a page */
.bd-pools { display: flex; align-items: flex-start; gap: 28px; }
.bd-pool { width: 600px; padding: 26px 34px; border-radius: 36px; display: flex; flex-direction: column; gap: 10px; }
.bd-pool.one { width: 760px; }
.bd-th, .bd-tr { display: flex; align-items: center; gap: 10px; }
.bd-th { font-family: var(--font-mono); font-size: 15px; font-weight: 800; color: var(--tx-4); }
.bd-tr { padding-top: 10px; }
.bd-th .c1, .bd-tr .c1 { width: 34px; flex-shrink: 0; }
.bd-th .c2, .bd-tr .c2 { flex: 1; min-width: 0; }
.bd-th .c3, .bd-tr .c3 { width: 90px; flex-shrink: 0; text-align: right; }
.bd-th .c4, .bd-tr .c4 { width: 70px; flex-shrink: 0; text-align: right; }
.bd-th .c5, .bd-tr .c5 { width: 80px; flex-shrink: 0; text-align: right; }
.bd-tr .c1 { font-family: var(--font-mono); font-size: 22px; font-weight: 800; color: var(--tx-3); }
.bd-tr.lead .c1 { color: var(--gold); }
.bd-tr .c2 { display: flex; align-items: center; gap: 12px; }
.bd-tr .c2 .nm { font-size: 26px; font-weight: 600; color: var(--tx-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-tr.lead .c2 .nm { font-weight: 800; }
.bd-tr .c3 { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--tx-1); font-variant-numeric: tabular-nums; }
.bd-tr .c4 { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--tx-3); font-variant-numeric: tabular-nums; }
.bd-tr .c4.pos { color: var(--win); }
.bd-tr .c4.neg { color: #FF8A8A; }
.bd-tr .c5 { font-family: var(--font-mono); font-size: 24px; font-weight: 800; color: var(--tx-1); font-variant-numeric: tabular-nums; }

/* score card */
.bd-scorecard { max-width: 920px; min-width: 760px; padding: 34px 48px; display: flex; flex-direction: column; gap: 20px; }
.bd-score { display: flex; align-items: center; gap: 18px; }
.bd-score .nm { font-size: 42px; font-weight: 800; color: var(--tx-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.bd-score .eq { font-size: 30px; font-weight: 700; color: var(--tx-2); }
.bd-score .sc { font-size: 60px; font-weight: 800; color: var(--tx-1); font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1; }
.bd-score.win .nm, .bd-score.win .sc { color: var(--gold); }
.bd-so { font-family: var(--font-mono); font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--tx-3); }

/* champion */
.bd-champ { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 44px; border-radius: 30px; text-align: center; }
.bd-trophy { color: var(--gold); filter: drop-shadow(0 0 16px rgba(255, 216, 98, 0.6)); display: inline-flex; }
.bd-trophy svg { stroke: var(--gold); }
.bd-champ .tlogo, .bd-champ .tcrest, .bd-champ .tdot { width: 64px !important; height: 64px !important; }
.bd-champ-name { font-size: 44px; font-weight: 800; letter-spacing: -1px; color: var(--tx-1); line-height: 1.1; }
.bd-champ-line { font-family: var(--font-mono); font-size: 22px; font-weight: 800; letter-spacing: 3px; color: var(--gold); }

/* ============================================================
   THE MATCHUP LINE + COMPARE BLOCK (native HSMatchupViews)
   ============================================================ */
.hs-line { display: inline-flex; align-items: baseline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; line-height: 1.3; }
.hs-pair { font-weight: 500; color: var(--tx-1); font-variant-numeric: tabular-nums; }
.hs-pair .hs-lbl { color: var(--tx-3); }
.hs-pair b { font-weight: 700; color: var(--tx-1); }
.hs-pair .hs-dash { color: var(--tx-3); }
.hs-call { font-weight: 800; color: var(--gold); }
.srow-hs { font-size: 17px; margin-top: 2px; }
.match .hs-line { margin-top: 2px; }
.gd-hs-line { position: absolute; left: 0; right: 0; bottom: 8px; justify-content: center; display: flex; }
.gd-hs { display: flex; flex-direction: column; gap: 14px; padding: 10px 14px; border-radius: 14px; margin: 6px 0 14px; border: 1px solid transparent; }
.gd-hs-eyebrow { font-family: var(--font-mono); font-size: 15px; font-weight: 800; letter-spacing: 1px; color: var(--tx-4); }
:root:not([data-skin="jo"]) [data-theme] .gd-hs.tvf.is-focused { border-color: var(--teal-bright); box-shadow: 0 0 0 6px var(--focus-ring); background: var(--glass-fill); }
.hs-compare { display: flex; flex-direction: column; gap: 13px; }
.hs-grid { border-collapse: collapse; width: auto; align-self: flex-start; }   /* hugs its columns inside the flex column */
.hs-grid th { font-size: 19px; font-weight: 800; color: var(--tx-1); text-align: right; padding: 0 0 7px 22px; max-width: 198px; }
.hs-grid th:first-child { text-align: left; padding-left: 0; }
.hs-grid td { border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--tx-1); text-align: right; padding: 8px 0 8px 22px; font-variant-numeric: tabular-nums; }
.hs-grid td.l { font-family: var(--font); font-size: 19px; font-weight: 500; color: var(--tx-3); text-align: left; padding-left: 0; }
.hs-pred { align-self: flex-start; font-size: 22px; font-weight: 800; color: var(--tx-1); padding: 10px 15px; border-radius: 11px; background: rgba(255, 216, 98, 0.22); border: 1px solid rgba(255, 216, 98, 0.55); }
[data-theme="light"] .hs-pred { background: rgba(122, 82, 0, 0.14); border-color: rgba(122, 82, 0, 0.45); }
.hs-note { font-size: 15px; font-weight: 400; color: var(--tx-3); line-height: 1.4; }

/* the live strip as UP NEXT (native UpNextCard): the accent kicker, the line beside the teams */
.livestrip .ls-next { color: var(--teal-bright); }
.livestrip .ls-next svg { stroke: var(--teal-bright); }
.livestrip .hs-line { font-size: 17px; margin-left: 6px; flex-shrink: 1; min-width: 0; }
.livestrip.upnext .ls-name { white-space: nowrap; }
.livestrip.upnext .ls-meta { white-space: nowrap; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gd-card table.hs-grid { width: auto; }

/* the day's header chip: TODAY (the accent) / TOMORROW (muted), tvOS 5.0 (77) */
.day-chip {
  display: inline-flex; align-items: center; margin-left: 10px; padding: 3px 10px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 14px; font-weight: 800; letter-spacing: 2px;
  color: var(--tx-2); border: 2px solid rgba(93, 101, 119, 0.75);
}
.day-chip.today { color: var(--teal-bright); border-color: var(--accent-edge); }

/* the dashboard under an open overlay: dimmed and blurred (native .blur(16)) */
.dash { transition: filter .25s var(--ease); }
.dash.dim { filter: blur(16px); }
