/* ============================================================
   Eggbeater tvOS — panel + screen styles (part 2)
   ============================================================ */

/* ── STANDINGS ── */
.pools { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pool { border-radius: var(--r-lg); overflow: hidden; }
.pool-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; color: #fff;
  background: linear-gradient(120deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border-bottom: 1px solid var(--glass-rim);
}
.pool-hd .pool-sub { font-size: 16px; font-weight: 600; color: var(--tx-3); letter-spacing: 0; text-transform: none; }
table.stand { width: 100%; border-collapse: collapse; }
.stand th {
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx-3);
  padding: 14px 10px; text-align: center;
}
.stand th.l { text-align: left; padding-left: 28px; }
.stand td { padding: 15px 10px; text-align: center; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tx-2); }
.stand td.l { text-align: left; padding-left: 28px; }
.stand tr + tr td { border-top: 1px solid rgba(255,255,255,0.07); }
.stand .seed { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.1); font-size: 19px; font-weight: 800; color: var(--tx-2); }
.stand tr.top .seed { background: var(--gold); color: var(--navy-3); }
.stand tr.top td { color: #fff; }
.stand .teamc { display: inline-flex; align-items: center; gap: 14px; font-size: 25px; font-weight: 700; color: var(--tx-1); }
/* dense: 9-row session tables (real-data standings) fit the un-scrolled panel */
.stand.dense td { padding: 7px 10px; font-size: 20px; }
.stand.dense .teamc { font-size: 21px; gap: 10px; }
.stand.dense td.pts { font-size: 21px; }
.stand td.pts { font-size: 26px; font-weight: 800; color: #fff; }
.stand td.pos { color: var(--teal-bright); }
.stand td.neg { color: var(--tx-3); }
.pool.tvf.is-focused { transform: scale(1.025) translateY(-4px); }

/* ── BRACKET ── */
.bracket { display: flex; gap: 64px; align-items: stretch; padding-top: 6px; }
.round { display: flex; flex-direction: column; justify-content: flex-start; gap: 26px; flex: 1; min-width: 0; }
.round.final { justify-content: center; }
.round-hd { font-size: 17px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-bright); text-align: center; margin-bottom: 4px; }
.round.final .round-hd { color: var(--gold); }
.match { padding: 18px 22px 18px 27px; border-radius: var(--r); display: flex; flex-direction: column; gap: 12px; }
/* 5px accent left rail — gold on the final */
.match::after, .champ-card::after {
  content: ""; position: absolute; left: 8px; top: 16px; bottom: 16px; width: 5px;
  border-radius: 3px; background: var(--teal-bright); opacity: 0.75; pointer-events: none;
}
.match.champ::after, .champ-card.final::after, .champ-card.winner::after { background: linear-gradient(180deg, var(--gold), #d99a2b); opacity: 0.95; }
.match-meta { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--tx-3); letter-spacing: 0.02em; min-width: 0; }
.match-meta .mm-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* flight chip — colored dot + flight name */
.flight-chip {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tx-2);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
}
.flight-chip .fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(255,212,94,0.5); }
[data-theme="light"] .flight-chip { background: rgba(20,40,90,0.06); border-color: rgba(20,40,90,0.1); }
.mside { display: flex; align-items: center; gap: 13px; }
.mside .seedtag { font-size: 15px; font-weight: 700; color: var(--tx-4); width: 30px; flex-shrink: 0; }
.mside .mname { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; color: var(--tx-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* heavier, tighter score numerals (compressed feel) */
.mside .mscore { margin-left: auto; font-family: var(--font-display); font-size: 31px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -1.2px; color: var(--tx-2); }
.mside.win .mname { color: #fff; }
.mside.win .mscore { color: var(--gold); }
.mside.lose { opacity: 0.5; }
.mside.win .seedtag { color: var(--gold); }
.match-vs { height: 1px; background: rgba(255,255,255,0.1); }
.match.champ { background: linear-gradient(150deg, rgba(255,212,94,0.16), rgba(255,212,94,0.04)); border-color: rgba(255,212,94,0.45); }
.champ-trophy { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.champ-trophy svg { width: 22px; height: 22px; stroke: var(--gold); }
.match.tvf.is-focused { transform: scale(1.05) translateY(-5px); }

/* round-robin grid degrade */
.rr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rr-card { padding: 16px 20px; border-radius: var(--r); display: flex; flex-direction: column; gap: 11px; }
.rr-card.tvf.is-focused { transform: scale(1.04) translateY(-4px); }
.rr-hd { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx-3); }
.rr-row { display: flex; align-items: center; gap: 11px; }
.rr-row .mname { font-size: 21px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-row .mscore { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ── SCHEDULE / SCORES rows ── */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.daygroup { margin-bottom: 6px; }
.day-hd {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx-3);
  padding: 10px 4px 12px;
}
.day-hd::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.srow {
  display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 18px;
  padding: 11px 18px; border-radius: var(--r); margin-bottom: 9px;
}
.srow.tvf.is-focused { transform: scale(1.02) translateY(-3px); }
.srow-when { display: flex; flex-direction: column; gap: 2px; }
.srow-when .t { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tx-1); }
.srow-when .p { font-size: 14px; font-weight: 600; color: var(--tx-3); }
.srow-match { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.srow-team { display: flex; align-items: center; gap: 11px; }
.srow-team .nm { font-size: 21px; font-weight: 700; color: var(--tx-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow-team.win .nm { color: #fff; }
.srow-team.lose .nm { color: var(--tx-3); }
.srow-end { display: flex; align-items: center; gap: 16px; justify-self: end; flex-shrink: 0; }
.srow-score { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.srow-score .s { font-size: 29px; font-weight: 800; color: var(--tx-3); flex-shrink: 0; }
.srow-score .s.w { color: #fff; }
/* NB: the dashboard layout rule below is `.dash` (the <div class="dash">
   shell) and ALSO matches this span — neutralize every inherited box prop so
   the score dash actually sits between the two scores. */
.srow-score .dash { font-size: 24px; color: var(--tx-4); position: static; display: inline; width: auto; height: auto; inset: auto; z-index: auto; }
.srow-tag { font-size: 17px; font-weight: 700; padding: 7px 15px; border-radius: var(--r-pill); }
.srow-tag.up { background: rgba(255,255,255,0.08); color: var(--tx-2); }
.srow-tag.next { background: rgba(77,214,210,0.16); color: var(--teal-bright); border: 1px solid rgba(77,214,210,0.4); }
.srow-live { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; color: var(--live); }
.srow.final-emph { background: linear-gradient(150deg, rgba(255,212,94,0.12), rgba(255,255,255,0.04)); border-color: rgba(255,212,94,0.35); }

/* scrollable panel body (auto-scroll on focus handled by engine) */
.panel-body { overflow: hidden; }

/* ============================================================
   SEGMENT BAR (Bracket sub-segments · game-detail team toggle)
   Quiet text segments, accent underline on the active one.
   Pills do not scale on focus.
   ============================================================ */
.segbar { display: flex; align-items: center; flex-shrink: 0; }
.seg {
  position: relative; padding: 8px 4px 12px;
  font-size: 18px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tx-3); border-radius: 10px;
}
.seg.on { color: var(--tx-1); }
.seg.on::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 4px; height: 3px;
  border-radius: 2px; background: linear-gradient(90deg, var(--teal-bright), var(--teal));
}
[data-skin="jo"] .seg.on::after { background: linear-gradient(90deg, #F8CF5A, #F2983C); }
.seg.tvf.is-focused {
  color: var(--tx-1);
  box-shadow: 0 0 0 3px var(--teal-glow);
  background: var(--glass-fill);
}

/* ============================================================
   MY PATH (Bracket › My Path) — the real medal-round rows
   ============================================================ */
.mypath { display: flex; flex-direction: column; gap: 22px; max-width: 1240px; }
.mp-tier { border-radius: var(--r-lg); padding: 22px 26px; }
.mp-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mp-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 10px rgba(255,212,94,0.45); }
.mp-tier-lbl { font-size: 19px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.mp-cond { font-size: 17px; font-weight: 600; color: var(--tx-3); margin-left: 6px; }
.mp-row {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px; border-radius: var(--r); margin-bottom: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
}
.mp-row:last-child { margin-bottom: 0; }
.mp-row.tvf.is-focused {
  background: var(--glass-focus-fill); border-color: var(--glass-focus-rim);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.55), 0 0 22px 1px var(--teal-glow), 0 14px 30px rgba(0,4,18,0.4);
  transform: translateY(-2px);
}
[data-theme="light"] .mp-row { background: rgba(255,255,255,0.55); border-color: rgba(8,30,72,0.07); }
.mp-num { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--tx-4); width: 64px; flex-shrink: 0; }
.mp-txt { display: flex; flex-direction: column; gap: 3px; width: 240px; flex-shrink: 0; }
.mp-title { font-size: 21px; font-weight: 800; color: var(--tx-1); letter-spacing: -0.2px; }
.mp-meta { font-size: 15px; font-weight: 600; color: var(--tx-3); }
.mp-seed { font-size: 19px; font-weight: 600; color: var(--tx-2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-fin { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-bright); flex-shrink: 0; }
.mp-fin svg { width: 18px; height: 18px; stroke: currentColor; }

/* ============================================================
   CHAMPIONSHIP — fullscreen-feel bracket canvas
   Design plane 1760×420 (cardW 380 · matchH 200 · pitch 460),
   JS-scaled: k = min(w/1760, h/420). Info bar anchors bottom.
   ============================================================ */
.champ-stage { position: relative; height: 100%; display: flex; flex-direction: column; gap: 20px; overflow: visible; }
/* the measured box: plane children position in design space; the JS transform
   on .champ-plane scales + centers the whole plane inside this wrap */
.champ-planewrap { position: relative; flex: 1; min-height: 0; overflow: visible; }
.champ-plane { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

/* rounds strip — flat mono caps, tracking wide; CHAMPION gold */
.champ-rounds { position: absolute; top: 0; left: 0; right: 0; height: 34px; }
.champ-rounds .cr {
  position: absolute; top: 0; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 16px; font-weight: 700;
  letter-spacing: 0.24em; text-indent: 0.24em; text-transform: uppercase; color: var(--tx-3);
}
.champ-rounds .cr.gold { color: var(--gold); text-shadow: 0 0 22px rgba(255,212,94,0.35); }

/* wires — gradient stops read --wa/--wb (theme/skin-tuned below); the CSS
   stroke property must carry url(#…) itself or it overrides the attribute */
.champ-wires { position: absolute; top: 0; left: 0; pointer-events: none; --wa: var(--accent-glow); --wb: var(--gold); }
[data-theme="light"] .champ-wires { --wa: #0c8a93; --wb: #b8860b; }
[data-skin="jo"] [data-theme] .champ-wires { --wa: #FCEBB8; --wb: #F8CF5A; }
.champ-wires .cw { fill: none; stroke: var(--tx-3); stroke-width: 2.5; opacity: 0.55; }
.champ-wires .cw.champ {
  stroke: url(#champWireGrad);
  stroke-width: 3; opacity: 0.95;
  stroke-dasharray: 7 9;
  animation: champWireFlow 3.6s linear infinite;
}
@keyframes champWireFlow { to { stroke-dashoffset: -64; } }
@media (prefers-reduced-motion: reduce) { .champ-wires .cw.champ { animation: none; } }

/* cards — slot handles entrance stagger; card handles the gentle 3D + focus */
.champ-slot { position: absolute; animation: champIn .55s var(--ease) backwards; }
@keyframes champIn { from { opacity: 0; transform: translateX(-26px); } }
.champ-card {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
  padding: 20px 24px 20px 29px; border-radius: var(--r);
  transform: perspective(1400px) rotateX(2.5deg) rotateY(-2.5deg);
}
.champ-card.tvf.is-focused {
  transform: perspective(1400px) rotateX(0deg) rotateY(0deg) scale(1.05) translateY(-4px);
  z-index: 30;
}
.champ-card .cc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.champ-card .cc-meta { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.champ-card .mside .mname { font-size: 27px; }
.champ-card .mside .mscore { font-size: 34px; letter-spacing: -1.4px; }
.champ-card.final { background: linear-gradient(150deg, rgba(255,212,94,0.14), rgba(255,212,94,0.03)); border-color: rgba(255,212,94,0.4); }

/* champion card */
.champ-card.winner {
  align-items: center; text-align: center; justify-content: center; gap: 14px;
  padding: 26px 24px;
  background: linear-gradient(160deg, rgba(255,212,94,0.2), rgba(255,212,94,0.05) 55%, rgba(237,106,94,0.08));
  border-color: rgba(255,212,94,0.55);
}
.champ-card.winner .cc-trophy { color: var(--gold); filter: drop-shadow(0 0 18px rgba(255,212,94,0.45)); }
.champ-card.winner .cc-trophy svg { stroke: var(--gold); }
.champ-card .cc-name {
  font-family: var(--font-display); font-size: 46px; font-weight: 800; letter-spacing: -1.4px; line-height: 1;
  background: linear-gradient(97deg, #F8CF5A 8%, #F2983C 55%, #ED6A5E 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.champ-card .cc-defeated { font-size: 19px; font-weight: 600; color: var(--tx-2); }
.champ-card .cc-line {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; line-height: 1.7;
  letter-spacing: 0.12em; text-indent: 0.12em; text-transform: uppercase; color: var(--gold);
}
[data-theme="light"] .champ-card .cc-name { background-image: linear-gradient(97deg, #d99a15 8%, #d4761c 55%, #c8503f 96%); }
[data-theme="light"] .champ-card .cc-line { color: #b8860b; }
[data-theme="light"] .champ-rounds .cr.gold { color: #b8860b; text-shadow: none; }
[data-theme="light"] .champ-wires .cw:not(.champ) { stroke: rgba(10,42,94,0.8); }

/* bronze note under the final column */
.champ-note {
  position: absolute; text-align: center;
  font-size: 15px; font-weight: 600; color: var(--tx-3); letter-spacing: 0.01em;
  animation: champNoteIn .5s var(--ease) .45s backwards;
}
@keyframes champNoteIn { from { opacity: 0; } }

/* bottom info bar — narrates the focused card */
.champ-bar {
  flex-shrink: 0; height: 72px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 34px; min-width: 0;
  animation: champNoteIn .5s var(--ease) .5s backwards;
}
.champ-bar .cb-round { font-family: var(--font-mono); font-size: 17px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-bright); flex-shrink: 0; }
[data-skin="jo"] .champ-bar .cb-round { color: var(--gold); }
.champ-bar .cb-dash { color: var(--tx-4); font-size: 18px; }
.champ-bar .cb-line { font-size: 21px; font-weight: 700; color: var(--tx-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.champ-bar .cb-hint { font-size: 17px; font-weight: 600; color: var(--tx-3); flex-shrink: 0; }

/* ============================================================
   SPLASH
   ============================================================ */
.splash { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; }
.splash-mark { display: flex; flex-direction: column; align-items: center; gap: 30px; animation: splashIn .9s var(--ease); }
@keyframes splashIn { from { transform: scale(.94); } }
/* JO splash mark: the transparent sun (native SunMark 240) — a drawing, not an
   icon: no rounded-tile clip, no shadow (owner 2026-11-06, the sun is the only mark). */
.splash-icon { width: 240px; height: 240px; object-fit: contain; }
.splash-word { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.splash-word .w { font-size: 76px; font-weight: 800; letter-spacing: -2.5px; color: var(--tx-1); line-height: 1; }
.splash-word .sub { font-size: 24px; font-weight: 700; letter-spacing: 0.42em; text-indent: 0.42em; color: var(--teal-bright); text-transform: uppercase; }
.splash-loading { position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; color: var(--tx-3); font-size: 20px; font-weight: 600; }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.18); border-top-color: var(--teal-bright); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TOURNAMENT ENTRY
   ============================================================ */
.entry { position: absolute; inset: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1.05fr; }
.entry-brand {
  position: absolute; top: 44px; left: var(--safe-x); z-index: 8;
  display: flex; align-items: center; gap: 14px;
}
.entry-brand img { width: 58px; height: 58px; object-fit: contain; } /* JO: the sun (SunMark 58), no clip, no shadow */
.entry-brand .ew { display: flex; flex-direction: column; gap: 2px; }
.entry-brand .ew .w { font-size: 30px; font-weight: 800; letter-spacing: -1.2px; color: var(--tx-1); line-height: 1; }
.entry-brand .ew .sub { font-size: 12px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--teal-bright); }
.entry-theme {
  position: absolute; top: 46px; right: var(--safe-x); z-index: 8;
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: var(--r-pill);
  font-size: 18px; font-weight: 700; color: var(--tx-1);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
}
.entry-theme svg { width: 20px; height: 20px; stroke: var(--teal-bright); }
.entry-theme.tvf.is-focused {
  transform: scale(1.06); background: #fff; color: var(--navy-2); border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.55), 0 0 22px 1px var(--teal-glow), 0 14px 30px rgba(0,4,18,0.45);
}
.entry-theme.tvf.is-focused svg { stroke: var(--navy-2); }
[data-theme="light"] .entry-theme { background: rgba(20,40,90,0.06); border-color: rgba(20,40,90,0.14); }
.entry-left { display: flex; flex-direction: column; justify-content: center; padding: 0 70px 0 var(--safe-x); gap: 34px; }
.entry-eyebrow { font-size: 19px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-bright); }
.entry-h1 { font-size: 58px; font-weight: 800; letter-spacing: -2px; line-height: 1.02; }
.entry-sub { font-size: 23px; font-weight: 500; color: var(--tx-2); line-height: 1.5; max-width: 560px; }
.code-display { display: flex; gap: 14px; }
.code-cell {
  width: 78px; height: 96px; border-radius: 18px; display: grid; place-items: center;
  font-size: 52px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff;
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.14);
}
.code-cell.filled { border-color: rgba(77,214,210,0.55); background: rgba(77,214,210,0.1); }
.code-cell.caret { border-color: var(--teal-bright); box-shadow: 0 0 30px var(--teal-glow); }
.entry-right { display: flex; flex-direction: column; justify-content: center; padding: 0 var(--safe-x) 0 0; gap: 26px; }
.keygrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.key {
  aspect-ratio: 1.15; border-radius: 16px; display: grid; place-items: center;
  font-size: 30px; font-weight: 700; color: var(--tx-1);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
}
.key.wide { grid-column: span 2; aspect-ratio: auto; font-size: 20px; font-weight: 700; gap: 8px; display: flex; align-items: center; justify-content: center; }
.key svg { width: 24px; height: 24px; stroke: currentColor; }
.key.tvf.is-focused {
  transform: scale(1.12); background: #fff; color: var(--navy-2); border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 0 36px 5px var(--teal-glow), 0 18px 40px rgba(0,4,18,0.5);
}
.key.tvf.is-focused svg { stroke: var(--navy-2); }
.entry-or { display: flex; align-items: center; gap: 18px; color: var(--tx-3); font-size: 17px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.entry-or::before, .entry-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.12); }
.tlist { display: flex; flex-direction: column; gap: 12px; }
.titem {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--r);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
}
.titem.tvf.is-focused {
  transform: scale(1.03) translateY(-3px);
  background: rgba(255,255,255,0.16); border-color: var(--glass-focus-rim);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.6), 0 0 36px 4px var(--teal-glow), 0 22px 44px rgba(0,4,18,0.5);
}
.titem .tc { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; flex-shrink: 0; }
.titem .tt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.titem .tt .n { font-size: 23px; font-weight: 700; color: #fff; }
.titem .tt .m { font-size: 16px; color: var(--tx-3); }
.titem .tlive { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--live); flex-shrink: 0; }
.pair-note { display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--tx-3); padding: 16px 0 0; }
.pair-note svg { width: 22px; height: 22px; stroke: var(--tx-3); }

/* ============================================================
   IDLE SCREENSAVER
   ============================================================ */
.idle-badge {
  position: absolute; top: 170px; left: var(--safe-x); z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 13px 22px; border-radius: var(--r-pill);
  background: rgba(0,10,30,0.45); border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.idle-badge .lbl { font-size: 17px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tx-2); }
.idle-dots { display: flex; gap: 9px; }
.idle-dots .d { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.22); transition: all .3s var(--ease); }
.idle-dots .d.on { width: 30px; border-radius: 6px; background: var(--teal-bright); box-shadow: 0 0 14px var(--teal-glow); }
.idle-progress { position: absolute; left: 0; bottom: 0; height: 5px; background: var(--teal-bright); box-shadow: 0 0 16px var(--teal-glow); z-index: 41; }
.idle-hint { position: absolute; bottom: var(--safe-y); left: 50%; transform: translateX(-50%); z-index: 40; font-size: 19px; color: var(--tx-3); font-weight: 600; display: flex; align-items: center; gap: 12px; }
.idle-rotate-enter { animation: idleSwap .7s var(--ease); }
@keyframes idleSwap { from { transform: scale(1.02); } }

/* ============================================================
   SYSTEM STATES
   ============================================================ */
.state { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; }
.state-box { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; max-width: 760px; }
.state-icon { width: 110px; height: 110px; border-radius: 28px; display: grid; place-items: center; background: rgba(255,255,255,0.07); border: 1px solid var(--glass-rim); }
.state-icon svg { width: 56px; height: 56px; stroke: var(--teal-bright); }
.state-icon.err svg { stroke: var(--live); }
.state-icon.err { background: rgba(255,107,107,0.12); border-color: rgba(255,107,107,0.4); }
.state-h { font-size: 46px; font-weight: 800; letter-spacing: -1.2px; }
.state-p { font-size: 24px; font-weight: 500; color: var(--tx-2); line-height: 1.5; }
.state-actions { display: flex; gap: 14px; margin-top: 12px; }
.btn-tv {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 34px; border-radius: var(--r-pill);
  font-size: 23px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
}
.btn-tv.tvf.is-focused {
  transform: scale(1.07); background: #fff; color: var(--navy-2); border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 0 36px 5px var(--teal-glow), 0 18px 40px rgba(0,4,18,0.5);
}

/* loading skeleton shimmer */
.skel { background: linear-gradient(100deg, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* remote hint footer */
.remote-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 38;
  display: flex; align-items: center; gap: 18px;
  padding: 9px 20px; border-radius: var(--r-pill);
  background: rgba(0,8,26,0.5); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 15px; color: var(--tx-3); font-weight: 600;
}
.remote-hint .k { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 7px; background: rgba(255,255,255,0.12); color: var(--tx-1); font-weight: 700; font-size: 14px; }
.remote-hint .grp { display: inline-flex; align-items: center; gap: 7px; }

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dash {
  position: absolute; top: var(--safe-y); left: var(--safe-x); right: var(--safe-x); bottom: var(--safe-y);
  display: flex; flex-direction: column; gap: 22px; z-index: 3;
}
.dash-hdr { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.dash-content { flex: 1; min-height: 0; position: relative; }
.dash-content-inner { position: absolute; inset: 0; }

.tab-row { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

/* footer — quiet one-row brand band (the wordmark's home now; hidden on the
   Championship canvas + while idle) */
.dash-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-shrink: 0; min-height: 30px; }
.dash-foot .df-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dash-foot img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,8,24,0.35)); }
.dash-foot .df-word { font-size: 20px; font-weight: 800; letter-spacing: -0.6px; color: var(--tx-1); }
.dash-foot .df-tag { font-size: 16px; font-weight: 600; color: var(--tx-3); margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-foot .df-code { font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tx-3); flex-shrink: 0; }

/* persistent compact live strip */
.livestrip {
  display: flex; align-items: center; gap: 22px; flex-shrink: 0;
  padding: 16px 26px; border-radius: var(--r);
}
.livestrip .ls-live { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: 0.06em; color: var(--live); flex-shrink: 0; }
.livestrip .ls-team { display: inline-flex; align-items: center; gap: 11px; }
.livestrip .ls-name { font-size: 24px; font-weight: 700; }
.livestrip .ls-name.trail { color: var(--tx-3); }
.livestrip .ls-score { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.livestrip .ls-score.trail { color: var(--tx-3); }
.livestrip .ls-dash { color: var(--tx-4); font-size: 22px; }
.livestrip .ls-clock { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--teal-bright); }
.livestrip .ls-meta { margin-left: auto; font-size: 17px; color: var(--tx-3); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.livestrip .ls-open { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--tx-2); }
.livestrip .ls-open svg { width: 20px; height: 20px; stroke: var(--teal-bright); }
.livestrip.tvf.is-focused { transform: scale(1.015) translateY(-3px); }

/* live tab: big rail + recent strip */
.live-tab { display: flex; flex-direction: column; gap: 22px; height: 100%; justify-content: center; }
.live-tab .rail { flex: none; }
.lastplay {
  display: flex; align-items: center; gap: 16px; padding: 16px 26px; border-radius: var(--r); flex-shrink: 0;
}
.lastplay .lp-lbl { font-size: 15px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-bright); flex-shrink: 0; }
.lastplay .lp-txt { font-size: 21px; font-weight: 600; color: var(--tx-1); }
.lastplay .lp-feed { margin-left: auto; font-size: 16px; color: var(--amber, #d97706); display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }

/* ============================================================
   LIGHT THEME — fix hardcoded white text to read on light glass
   ============================================================ */
[data-theme="light"] .pool-hd { color: var(--tx-1); }
[data-theme="light"] .pool-hd { background: linear-gradient(120deg, rgba(20,40,90,0.08), rgba(20,40,90,0.02)); }
[data-theme="light"] .stand tr.top td { color: var(--tx-1); }
[data-theme="light"] .stand td.pts { color: var(--tx-1); }
[data-theme="light"] .stand .teamc { color: var(--tx-1); }
[data-theme="light"] .gteam.lead .gteam-name,
[data-theme="light"] .gteam.lead .gteam-score { color: var(--tx-1); }
[data-theme="light"] .mside.win .mname { color: var(--tx-1); }
[data-theme="light"] .mside.win .mscore { color: #b8860b; }
[data-theme="light"] .srow-team.win .nm { color: var(--tx-1); }
[data-theme="light"] .srow-score .s.w { color: var(--tx-1); }
[data-theme="light"] .gcard-foot .gcard-venue { color: var(--tx-2); }
[data-theme="light"] .seed { background: rgba(20,40,90,0.1); color: var(--tx-1); }
[data-theme="light"] .stand tr.top .seed { background: var(--gold); color: var(--navy-3); }
[data-theme="light"] .live-pill { background: rgba(204,31,31,0.12); border-color: rgba(204,31,31,0.4); color: #cc1f1f; }
[data-theme="light"] .clock { color: var(--tx-1); }
[data-theme="light"] .round.final .round-hd { color: #b8860b; }
[data-theme="light"] .champ-trophy { color: #b8860b; }
[data-theme="light"] .champ-trophy svg { stroke: #b8860b; }
[data-theme="light"] .gcard-live, [data-theme="light"] .srow-live { color: #cc1f1f; }
[data-theme="light"] .tab.active { background: rgba(20,40,90,0.12); color: var(--tx-1); border-color: rgba(20,40,90,0.18); }
[data-theme="light"] .titem .tt .n { color: var(--tx-1); }
[data-theme="light"] .code-cell { color: var(--tx-1); }
[data-theme="light"] .gcard-tag, [data-theme="light"] .day-hd { color: var(--tx-3); }
[data-theme="light"] .remote-hint, [data-theme="light"] .idle-badge { background: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════════════════════════════════════
   NAVY AND SUN (2026-10-04) — the STANDARD look: panels + screens
   Tokens, the tile/active/focus shell and the lockup live in tv.css; these are
   the rules in THIS sheet that hard-coded the old teal/night stage. Scoped to
   :root:not([data-skin="jo"]) like tv.css, so JO is untouched. The scope also
   lifts them over tv.css's tile rule — states that rule would flatten are
   restated here. LIVE stays broadcast red (nothing live is touched).
   ═══════════════════════════════════════════════════════════════════════════ */

/* Emphasis that was hard white for the old night stage → the ink token. */
:root:not([data-skin="jo"]) [data-theme] .pool-hd,
:root:not([data-skin="jo"]) [data-theme] .stand td.pts,
:root:not([data-skin="jo"]) [data-theme] .stand tr.top td,
:root:not([data-skin="jo"]) [data-theme] .mside.win .mname,
:root:not([data-skin="jo"]) [data-theme] .srow-team.win .nm,
:root:not([data-skin="jo"]) [data-theme] .srow-score .s.w,
:root:not([data-skin="jo"]) [data-theme] .titem .tt .n,
:root:not([data-skin="jo"]) [data-theme] .code-cell,
:root:not([data-skin="jo"]) [data-theme] .btn-tv { color: var(--tx-1); }

/* Hairlines: white-on-white vanished on paper; the line token reads in both. */
:root:not([data-skin="jo"]) [data-theme] .stand tr + tr td { border-top-color: var(--line-soft); }
:root:not([data-skin="jo"]) [data-theme] .match-vs,
:root:not([data-skin="jo"]) [data-theme] .day-hd::after,
:root:not([data-skin="jo"]) [data-theme] .entry-or::before,
:root:not([data-skin="jo"]) [data-theme] .entry-or::after { background: var(--line-soft); }

/* Standings: a positive goal difference is the WIN colour (native Theme.green →
   win #1B6B3A / #6FD69A), not the accent. The leader's seed is a SUN FILL under
   navy ink (on-sun, 9.4:1) in both themes — sun-deep is gold as TEXT, and as a
   fill it sank the navy numeral (fill vs ink). */
:root:not([data-skin="jo"]) [data-theme] .stand td.pos { color: var(--win); }
:root:not([data-skin="jo"]) [data-theme] .stand tr.top .seed { background: #FFD862; color: #002F6C; }

/* Gold as text = the token (the sun at night, sun-deep #7A5200 on paper, 6.8:1)
   — replaces the old ochre #b8860b light overrides. */
:root:not([data-skin="jo"]) [data-theme] .round.final .round-hd,
:root:not([data-skin="jo"]) [data-theme] .champ-trophy,
:root:not([data-skin="jo"]) [data-theme] .mside.win .mscore,
:root:not([data-skin="jo"]) [data-theme] .champ-rounds .cr.gold,
:root:not([data-skin="jo"]) [data-theme] .champ-card .cc-line { color: var(--gold); }
:root:not([data-skin="jo"]) [data-theme] .champ-trophy svg { stroke: var(--gold); }
/* Gold rails are decoration — the sun as a FILL, sun into orange. */
:root:not([data-skin="jo"]) [data-theme] .match.champ::after,
:root:not([data-skin="jo"]) [data-theme] .champ-card.final::after,
:root:not([data-skin="jo"]) [data-theme] .champ-card.winner::after { background: linear-gradient(180deg, #FFD862, #F7884A); }

/* Championship canvas: the wire runs navy-text → sun; the champion's name is the
   site's headline gradient (native sunsetText): sun → orange → pink at night,
   navy → plum → pink on paper (the old gold ramp failed as text on paper). */
:root:not([data-skin="jo"]) [data-theme] .champ-wires { --wa: #9DBDF2; --wb: #FFD862; }
:root:not([data-skin="jo"]) [data-theme="light"] .champ-wires { --wa: #2A5DB8; --wb: #7A5200; }
:root:not([data-skin="jo"]) [data-theme] .champ-card .cc-name { background-image: linear-gradient(97deg, #FFD862 8%, #F7884A 55%, #FF7FAE 96%); }
:root:not([data-skin="jo"]) [data-theme="light"] .champ-card .cc-name { background-image: linear-gradient(97deg, #002F6C 8%, #5A2F7A 55%, #B02A5E 96%); }

/* "Next" tag = the accent wash (was the teal wash). */
:root:not([data-skin="jo"]) [data-theme] .srow-tag.next { background: var(--accent-wash); color: var(--teal-bright); border-color: var(--accent-edge); }

/* Segment bar: the active underline is the sun bar's first stops at night and
   the navy family on paper; focus is the standard ring. */
:root:not([data-skin="jo"]) [data-theme] .seg.on::after { background: linear-gradient(90deg, #FFD862, #F7884A); }
:root:not([data-skin="jo"]) [data-theme="light"] .seg.on::after { background: linear-gradient(90deg, #002F6C, #2A5DB8); }
:root:not([data-skin="jo"]) [data-theme] .seg.tvf.is-focused { box-shadow: 0 0 0 3px var(--focus-ring); }

/* My Path rows — the standard focus ring + glow. */
:root:not([data-skin="jo"]) [data-theme] .mp-row.tvf.is-focused {
  box-shadow: 0 0 0 3px 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 {
  box-shadow: 0 0 0 3px var(--focus-ring), 0 0 22px 1px var(--teal-glow), 0 14px 30px rgba(0, 47, 108, 0.18);
}

/* Splash spinner: a visible track on paper. */
:root:not([data-skin="jo"]) [data-theme="light"] .spinner { border-color: rgba(0, 47, 108, 0.14); border-top-color: var(--teal-bright); }

/* Tournament entry — code cells, keys, picks, retry button (restated over the
   tile rule): accent wash when filled, the accent caret, the standard focus. */
:root:not([data-skin="jo"]) [data-theme] .code-cell.filled { background: var(--accent-wash); border-color: var(--accent-edge); }
:root:not([data-skin="jo"]) [data-theme] .code-cell.caret { border-color: var(--teal-bright); box-shadow: 0 0 30px var(--teal-glow); }
:root:not([data-skin="jo"]) [data-theme] .key.tvf.is-focused,
:root:not([data-skin="jo"]) [data-theme] .btn-tv.tvf.is-focused {
  background: #fff; color: #002F6C; border-color: #fff;
  box-shadow: 0 0 0 3px var(--focus-ring), 0 0 36px 5px var(--teal-glow), 0 18px 40px rgba(0, 0, 0, 0.45);
}
:root:not([data-skin="jo"]) [data-theme] .titem.tvf.is-focused {
  background: rgba(255, 255, 255, 0.12); border-color: var(--glass-focus-rim);
  box-shadow: 0 0 0 3px var(--focus-ring), 0 0 36px 4px var(--teal-glow), 0 22px 44px rgba(0, 0, 0, 0.45);
}
: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 {
  box-shadow: 0 0 0 3px var(--focus-ring), 0 0 36px 5px var(--teal-glow), 0 18px 40px rgba(0, 47, 108, 0.20);
}
:root:not([data-skin="jo"]) [data-theme="light"] .titem.tvf.is-focused {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 3px var(--focus-ring), 0 0 36px 4px var(--teal-glow), 0 22px 44px rgba(0, 47, 108, 0.20);
}
