/* Shut The Door. The Strike Zone brand (the owner's pick, 2026-10-18), set in two faces since the font
   round (the owner, 2026-11-02, option 3): Anton for the big one-off moments only (the home's headline,
   take the mound, the result's outcome and the other screen-sized heads, var(--hero)), Inter for
   everything else: menu rows, titles, names and headings in Inter 700 as the copy is written, chips,
   tags and buttons in Inter 700 capitals, the body in Inter. Both load from Google Fonts in one link
   (index.html). Ink, white and signal orange; a light vintage touch, used sparingly: the seam stitch
   line, a ticket edge on the call to action, a slatted scoreboard on the HUD.
   Mobile first at 390; the column stops at 520 on a desk, 1040 for the home and the result. Light and dark
   follow runthegrid_theme, set on <html> before first paint. */

:root {
  --bg: #f4f5f7; --panel: #ffffff; --panel-2: #eef0f3; --ink: #0b0f17; --dim: #5b6476; --faint: #8a93a6;
  --line: rgba(11, 15, 23, .08); --line-2: rgba(11, 15, 23, .15);
  --signal: #ff4f1f; --signal-ink: #ffffff; --signal-soft: rgba(255, 79, 31, .1); --data: #2b59ff; --data-soft: rgba(43, 89, 255, .1);
  --night: #0b0f17; --night-2: #151b28; --on-night: #f4f5f7;
  --green: #22a45d; --yellow: #f2b827; --orange: #f08424; --red: #e5383b;
  --shadow: 0 1px 2px rgba(11, 15, 23, .05), 0 8px 24px rgba(11, 15, 23, .06);
  --hero: 'Anton', 'Arial Narrow', 'Impact', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 20px;
  --seam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='16'%3E%3Cpath d='M0 8H13' stroke='%23ff4f1f' stroke-opacity='.45' stroke-width='1.4'/%3E%3Cpath d='M6.5 5.3L4.4 1.6M6.5 10.7L4.4 14.4' stroke='%23ff4f1f' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0f17; --panel: #141a26; --panel-2: #1b2231; --ink: #f4f5f7; --dim: #9aa3b5; --faint: #6b7487;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .14);
  --signal-soft: rgba(255, 79, 31, .16); --data-soft: rgba(91, 130, 255, .18); --data: #5b82ff;
  --night: #1a2233; --night-2: #222b3e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
[hidden] { display: none !important; }
.quiet { color: var(--dim); font-size: 13px; }
.center { text-align: center; }
.lbl { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.066em; text-transform: uppercase; color: var(--dim); margin: 0 0 6px; }

.app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ---- header: the outlined lockup, light and dark ---- */
.hdr { height: 56px; flex: 0 0 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 14px; background: var(--bg); position: relative; z-index: 30; }
.lockup { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.lockup .mark { width: 32px; height: 32px; border-radius: 8px; display: block; }
/* the wordmark is one line of Anton (brand/build.py), its box the cap height and a little more */
.lockup .wm { height: 20px; width: auto; display: block; }
:root[data-theme="dark"] .wm-light, :root:not([data-theme="dark"]) .wm-dark { display: none; }
.hdr-r { display: flex; gap: 2px; }
.hdr-btn { width: 42px; height: 42px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; }
.hdr-btn:hover { background: var(--panel-2); }
.hdr-btn svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hdr-btn.in svg { stroke: var(--signal); }
/* the header's account button (the owner, 2026-11-03): signed out a sign in pill, signed in your plate */
.hdr-btn.pill { width: auto; min-width: 38px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--signal); color: var(--signal-ink);
  font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; margin: 0 2px; }
.hdr-btn.pill:hover { background: var(--signal); filter: brightness(1.06); }
.hdr-btn .plate.hp { width: 30px; height: 30px; stroke: none; }
/* the picker, in the account sheet */
.plk-h { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 8px; }
.plk-h b { font-size: 14px; } .plk-h span { font-size: 12px; color: var(--dim); }
.plk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 8px; }
.plk { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 38px; padding: 10px 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font: 600 12px var(--sans); text-align: center; }
.plk .plate { width: 40px; height: 40px; }
.plk[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--signal); border-color: transparent; }
.plk.locked { cursor: default; color: var(--dim); }
.plk small { font-size: 10.5px; font-weight: 500; line-height: 1.25; color: var(--dim); }
.plk { position: relative; }
.plk-era { margin-top: -3px; font: 600 10.5px var(--sans); font-style: normal; color: var(--dim); }
.plk-h.plk-tb { margin-top: 20px; }
/* Diamond (Pro): a cool sheen on its tile and a small PRO chip in the corner. Nothing moves. */
.plk.gem { background: linear-gradient(140deg, var(--panel) 40%, rgba(143, 201, 242, .16)); }
.plk-pro { position: absolute; top: 5px; right: 5px; padding: 2px 6px; border-radius: 999px; background: var(--data); color: #fff;
  font: 700 9.5px/1.3 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
/* the unlock, on the result after the save that earned it */
.r-unlock { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 14px; }
.r-unlock[hidden] { display: none; }
.r-unlock .plate { width: 32px; height: 32px; }
.r-unlock span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ru-go { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--signal); color: #fff; font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
[data-theme="dark"] .th-sun, [data-theme="light"] .th-moon { display: none; }

/* ---- screens ---- */
.screen { display: none; }
.screen.on { display: block; }
#s-home, #s-result { padding: 4px 16px 32px; }

/* ---- buttons ---- */
.btn { border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700; font-size: 15px; min-height: 48px; }
.btn.go { background: var(--ink); color: var(--bg); }
.btn.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); }
.btn:active { transform: translateY(1px); }

/* ---- cards ---- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 12px 0; box-shadow: var(--shadow); }
.ch { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ch b { font-family: var(--sans); font-weight: 700; font-size: 16.8px; letter-spacing: 0; }
.ch span { color: var(--dim); font-size: 13px; }

/* ---- home: the hero (the matchup), the scorebug, the stakes, the ticket, then who you are and who you face ---- */
.load { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 140px 0; color: var(--dim); font-family: var(--sans); font-weight: 600; letter-spacing: 0.077em; text-transform: uppercase; font-size: 13px; }
.load-mark { border-radius: 14px; animation: pulse 1.4s ease-in-out infinite; }

/* ---- THE LOADING SCREEN (ui.js bootLoader, the owner 2026-11-02) ----
   The whole page under it until the first screen is ready. Unseen for 300 ms (a fast load never
   flashes it), then a fade. A broadcast slate: the lockup with its stitch line, today's two clubs in their
   colours on a scorebug once the spot is in, one bar in signal orange with the step and the share
   done. Light is the studio, dark is the night, the same tokens as the home. */
.boot { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(110% 70% at 50% 0%, rgba(255, 255, 255, .9) 0%, rgba(244, 245, 247, .94) 62%), url("home-bg/wide.webp") center / cover, var(--bg); color: var(--ink);
  opacity: 0; animation: boot-in .35s ease-out .3s forwards; transition: opacity .32s ease, visibility 0s linear .32s; }
:root[data-theme="dark"] .boot { background: radial-gradient(110% 70% at 50% 0%, rgba(26, 35, 54, .84) 0%, rgba(11, 15, 23, .95) 64%), url("home-bg/wide.webp") center / cover, #0b0f17; }
/* the lockup for the slate's own theme (the home's rule that whitens the header's marks must not reach it) */
.boot .lk-d, :root[data-theme="dark"] .boot .lk-l { display: none; }
:root[data-theme="dark"] .boot .lk-d { display: block; }
.boot.boot-off { opacity: 0 !important; visibility: hidden; pointer-events: none; animation: none; }
@keyframes boot-in { to { opacity: 1; } }
.boot-in { width: min(340px, 100%); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.boot-lock { height: 168px; width: auto; margin-bottom: 4px; animation: boot-breathe 2.4s ease-in-out infinite; }
@keyframes boot-breathe { 50% { transform: scale(.97); opacity: .86; } }
.boot-card { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.boot-occ { margin: 0; min-height: 16px; font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: 0.088em; text-transform: uppercase; color: var(--signal); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* signal is 3:1 on the light slate, too faint for 12 px: a deeper orange there (4.9:1), signal in the dark (5.6:1) */
:root:not([data-theme="dark"]) .boot-occ { color: #c2390f; }
.boot-bug { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 9px 14px; border-radius: 12px; background: #0b0f17; color: #f4f5f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow); }
/* before the spot is in, each row is a placeholder bar that shimmers */
.boot-bug:not(.on) .bt-row b { width: 46%; height: 13px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, .07) 30%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .07) 70%) 0 0 / 300% 100%; animation: boot-shim 1.4s linear infinite; }
.boot-bug:not(.on) .bt-row + .bt-row b { width: 34%; }
@keyframes boot-shim { from { background-position: 100% 0; } to { background-position: 0 0; } }
.bt-row { display: flex; align-items: center; gap: 10px; height: 28px; }
.bt-row i { flex: none; width: 5px; height: 20px; border-radius: 3px; background: var(--club, rgba(255, 255, 255, .22)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.bt-row b { min-width: 0; font-family: var(--sans); font-weight: 700; font-size: 15.2px; letter-spacing: 0.033em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boot-bar { width: 100%; height: 6px; margin-top: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); transition: transform .25s ease-out; }
.boot-lbl { width: 100%; margin-top: -6px; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.077em; text-transform: uppercase; color: var(--dim); }
.boot-lbl b { font-weight: 700; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.boot-say { margin: 0; min-height: 18px; font-size: 13px; color: var(--dim); text-align: center; }
.boot-re { margin-left: 6px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--signal); color: #0b0f17; font: 700 13px var(--sans); }
@media (min-width: 700px) { .boot-in { width: 380px; gap: 18px; } .boot-lock { height: 196px; } }
@media (prefers-reduced-motion: reduce) { .boot { animation-duration: .01s; } .boot-lock, .boot-bug .bt-row b { animation: none !important; } .boot-bar i { transition: none; } }
/* the mound, in the rare case the 3D is still on its way (the loading screen gave up waiting): a word, no bare zone */
.m-load { display: none; }
.scene.warming .m-load { display: flex; position: absolute; inset: 0; z-index: 5; justify-content: center; padding: 0; background: #0b0f17; color: rgba(255, 255, 255, .72); pointer-events: none; }
.scene.warming .aim { visibility: hidden; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
/* the matchup: away at home, each club with its two colour bar */
.h-occ { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; }
/* the scorebug: the mound's, a size up */
.hbug-wrap { margin: 12px 0 0; }
.scorebar.hb { padding: 10px 16px; border-radius: 18px; gap: 10px; }
/* the runs keep clear of the inning and its walk-off chip (Inter's capitals run wider than the old condensed face) */
.scorebar.hb .sb-teams { gap: 6px; flex: 1; min-width: 0; margin-right: 4px; }
.scorebar.hb .sb-team { height: 28px; gap: 9px; }
/* the rows sit in a grid track: without min-width 0 a long club name grew the row past the track and
   the runs slid under the inning column (main too, at 320). Now the name gives way first */
.scorebar.hb .sb-team { min-width: 0; }
.scorebar.hb .sb-team b { flex: none; }
/* WALK-OFF LIVE stays one line under the inning, small and untracked, so the column stays about the inning's width */
.scorebar.hb .sb-wo { white-space: nowrap; font-size: 8.5px; letter-spacing: 0; padding: 2px 4px 1px; }
.scorebar.hb .sb-club { width: 5px; height: 26px; }
.scorebar.hb .sb-team .tm { font-size: 14px; letter-spacing: .02em; color: #c9cfdb; max-width: none; flex: 1; min-width: 0; }
.scorebar.hb .sb-team b { font-size: 24px; }
.scorebar.hb .sb-inn { font-size: 14px; padding: 8px 10px; }
.sb-innw { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sb-wo { font-family: var(--sans); font-weight: 700; font-size: 9.5px; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: var(--signal); border-radius: 5px; padding: 2px 6px 1px; white-space: nowrap; }
.scorebar.hb .sb-bases { width: 50px; height: 38px; }
.scorebar.hb .sb-outs { height: 13px; gap: 6px; }
.scorebar.hb .sb-outs i { width: 13px; height: 13px; }
@media (max-width: 379px) {
  .scorebar.hb { padding: 10px 12px; gap: 7px; }
  .scorebar.hb .sb-team { gap: 7px; }
  .scorebar.hb .sb-team .tm { font-size: 13px; }
  .scorebar.hb .sb-team b { font-size: 21px; }
  .scorebar.hb .sb-inn { font-size: 13px; padding: 7px 8px; }
  .scorebar.hb .sb-bases { width: 40px; height: 30px; }
}
@media (max-width: 339px) {
  .scorebar.hb { padding: 9px 10px; gap: 6px; }
  .scorebar.hb .sb-team .tm { font-size: 12px; letter-spacing: 0; }
  .scorebar.hb .sb-bases { width: 32px; height: 24px; }
  .scorebar.hb .sb-lbl { display: none; }
}
.scorebar.hb .sb-lbl { font-size: 11px; }
:root[data-theme="dark"] .scorebar { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), var(--shadow); }
/* the stakes, one line from the pack's own setup */
.stakes { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; padding: 11px 14px; border-radius: 16px; background: var(--data-soft); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.3; }
.st-mark { flex: 0 0 28px; height: 28px; border-radius: 8px; background: url(brand/mark.svg?v=2) center / cover no-repeat; }
/* the call to action, cut like a ticket: two notches and a perforation */
.btn.take { width: 100%; min-height: 62px; background: var(--signal); color: #fff; font-family: var(--hero); font-weight: 400; font-size: 30px; letter-spacing: .01em; text-transform: uppercase; border-radius: 14px; box-shadow: 0 3px 0 #c43a12; }
.streak { text-align: center; color: var(--dim); font-size: 14px; margin: 10px 0; }
.streak b { color: var(--ink); font-family: var(--sans); font-weight: 700; font-size: 14.4px; }
/* today, played: the same ticket, with the result on it */
.done { position: relative; margin: 12px 0 6px; background: var(--night); color: var(--on-night); border-radius: 20px; padding: 16px 16px 12px; box-shadow: var(--shadow); }
.d-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dc-lbl { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.077em; text-transform: uppercase; margin: 0 0 4px; color: rgba(244, 245, 247, .7); }
.done .d-out { font-family: var(--hero); font-weight: 400; font-size: 42px; line-height: .9; margin: 0; text-transform: uppercase; color: #fff; }
.done .d-out.tie_held { color: var(--yellow); } .done .d-out.doors_open { color: var(--orange); } .done .d-out.walk_off { color: var(--red); }
.vs-pill { flex: none; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.022em; text-transform: uppercase; padding: 6px 10px 5px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; }
.vs-pill.beat { background: var(--signal); } .vs-pill.matched { background: var(--data); }
.d-mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 10px 0 0; }
.done .strip .sq { width: 14px; height: 14px; }
.d-stats { display: flex; gap: 18px; font-size: 13px; color: rgba(244, 245, 247, .7); }
.d-stats b { font-family: var(--sans); font-weight: 700; font-size: 20.8px; line-height: 1; color: #fff; margin-right: 3px; }
.d-stats sup { font-size: .5em; vertical-align: top; position: relative; top: .15em; }
.d-act { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1.5px dashed rgba(255, 255, 255, .18); }
.d-act .btn { min-height: 48px; padding: 8px 6px; }
.d-act .btn.take { font-size: 21px; box-shadow: 0 2px 0 #c43a12; }
.btn.dk { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); font-size: 14px; }
.d-tmrw { margin: 8px 0 0; text-align: center; font-size: 13px; color: rgba(244, 245, 247, .6); }
/* who you are and who you face: a card each, its band in the club's colours */
.dcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin: 12px 0; box-shadow: var(--shadow); overflow: hidden; }
.dc-band { position: relative; padding: 14px 18px 14px 26px; color: #fff; background: linear-gradient(115deg, var(--club, #2a3346) 0%, color-mix(in srgb, var(--club, #2a3346) 52%, #05070c) 100%); }
.dc-band::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--club2, #5b6478); }
.dc-band::after { content: ''; position: absolute; right: 14px; top: 50%; width: 64px; height: 64px; margin-top: -32px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .12); transform: rotate(12deg); pointer-events: none; }
.pc-name { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 24px; line-height: 1; text-transform: none; }
.dc-band .pc-name { color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.dc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 0; font-size: 13px; color: rgba(255, 255, 255, .85); }
.dc-tag { font-style: normal; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.044em; text-transform: uppercase; background: rgba(255, 255, 255, .16); padding: 2px 8px; border-radius: 6px; }
.dc-body { padding: 14px 18px 16px; }
.dc-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; }
.dc-h b { font-family: var(--sans); font-weight: 700; font-size: 15.2px; text-transform: none; }
.dc-h span { font-size: 12px; color: var(--dim); }
.pc-body { display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: center; }
.brk { background: var(--panel-2); border-radius: 14px; aspect-ratio: 1; position: relative; }
.brk svg { width: 100%; height: 100%; display: block; }
.brk text { font: 600 9px var(--sans); fill: var(--faint); }
.ars { list-style: none; margin: 0; padding: 0; }
.ars li { display: grid; grid-template-columns: 11px 1fr auto 34px; gap: 7px; align-items: center; padding: 5px 0; font-size: 15px; }
.ars .dot { width: 11px; height: 11px; border-radius: 50%; }
.ars .an { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ars .av { font-variant-numeric: tabular-nums; font-weight: 700; }
.ars .ap { text-align: right; color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.pc-body.flat { grid-template-columns: 1fr; }
.du { list-style: none; margin: 0; padding: 4px 12px 8px; }
.du li { display: grid; grid-template-columns: 36px 1fr; grid-template-areas: "n who" "n stats"; gap: 3px 12px; align-items: center; padding: 11px 6px; border-top: 1px solid var(--line); }
.du li:first-child { border-top: 0; }
.du-n { grid-area: n; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); font-family: var(--sans); font-weight: 700; font-size: 16px; }
.du li.now .du-n { background: var(--signal); color: #fff; }
.du-who { grid-area: who; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; min-width: 0; }
.du-who b { font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.05; text-transform: none; }
.du-now { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--signal); }
.du-stats { grid-area: stats; display: flex; align-items: baseline; gap: 12px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.du-hr { text-transform: uppercase; font-size: 12px; font-weight: 600; }
.du-hr b { font-family: var(--sans); font-weight: 700; font-size: 13.6px; color: var(--data); }
.hand { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: 0.033em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.d-act .btn, .r-actions .btn { flex: 1 1 auto; }
.r-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.proxy { font-size: 12px; color: var(--dim); text-align: center; margin: 8px 0; }
.legal { margin-top: 22px; text-align: center; font-size: 12px; color: var(--dim); }
.legal-mark { display: block; margin: 0 auto 10px; height: 96px; width: auto; opacity: .9; }
.legal p { margin: 4px 0; }
.legal a { color: var(--dim); }
.legal span { margin: 0 6px; }
.err { text-align: center; padding: 80px 0; }

/* ---- grade squares, after the outing only ---- */
.strip { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sq { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: var(--line-2); font-style: normal; }
.sq.green { background: var(--green); } .sq.yellow { background: var(--yellow); } .sq.orange { background: var(--orange); } .sq.red { background: var(--red); }
.strip.big { gap: 6px; }
.strip.big .sq { width: 32px; height: 32px; border-radius: 9px; color: #fff; font: 700 13px var(--sans); }
.strip.big .sq.yellow { color: #2a2000; }

/* ---- the mound's scorebug (the home's .hb is a size up). The full screen HUD is at the end ---- */
/* a hand hung scoreboard, slatted, in the brand's ink */
.scorebar { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #f4f5f7; border-radius: 14px; padding: 6px 12px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 24px), linear-gradient(180deg, #1a2130, #0b0f17); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow); }
/* two clubs as two bars: each bar is the club's own two colours, or grey for the side with no colours
   on this page. The numbers are tabular, so a changing score never shifts the bug. */
.scorebar * { font-variant-numeric: tabular-nums; }
.sb-teams { display: grid; gap: 4px; }
.sb-team { display: flex; align-items: center; gap: 7px; height: 22px; }
.sb-club { display: block; width: 4px; height: 20px; border-radius: 2px; background: linear-gradient(180deg, var(--club, #5b6478) 0 55%, var(--club2, #5b6478) 55% 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.sb-team .tm { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.033em; text-transform: uppercase; color: #8a93a6; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-team b { font-family: var(--sans); font-weight: 700; font-size: 19.2px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 14px; text-align: right; }
.sb-inn { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.044em; text-transform: uppercase; background: rgba(255, 255, 255, .07); border-radius: 6px; padding: 5px 8px; line-height: 1; white-space: nowrap; }
.sb-inn b { color: var(--signal); font-weight: 700; }
/* a tie plays on: the bar says so, no popup */
.sb-tied { display: block; margin-top: 3px; font-style: normal; font-size: 10px; letter-spacing: .12em; text-align: center; color: var(--yellow); }
.scorebar.tied .sb-team b { color: var(--yellow); }
.sb-bases { width: 36px; height: 27px; overflow: visible; }
.sb-path { fill: none; stroke: #2a3346; stroke-width: 1.2; }
.sb-bases rect { fill: #121826; stroke: #4a5366; stroke-width: 1.2; transition: fill .4s, stroke .4s; }
.sb-bases rect.on { fill: #f4f5f7; stroke: #f4f5f7; }
.sb-bases.running rect.on { fill: #f4f5f7; stroke: #f4f5f7; }
.sb-bases circle { fill: #f4f5f7; stroke: #0b0f17; stroke-width: 1; }
.sb-bases circle.out { fill: var(--red); }
.sb-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sb-outs-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sb-outs { display: flex; gap: 5px; height: 10px; align-items: center; }
.sb-outs i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #4a5366; transition: background .3s, border-color .3s; }
.sb-outs i.on { background: var(--signal); border-color: var(--signal); }
.sb-lbl { font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: 0.066em; text-transform: uppercase; color: #8a93a6; line-height: 1; }
/* the count: a row of balls, a row of strikes. Filled is on. */
.sb-count { display: grid; gap: 4px; justify-items: start; }
.sb-count .row { display: flex; align-items: center; gap: 4px; }
.sb-count .row em { font-style: normal; font-family: var(--sans); font-weight: 700; font-size: 11px; color: #8a93a6; width: 9px; }
.sb-count .row i { width: 8px; height: 8px; border-radius: 50%; border: 1.4px solid #4a5366; transition: background .3s, border-color .3s; }
.sb-count .row i.on { background: #f4f5f7; border-color: #f4f5f7; }
.sb-pn b { font-family: var(--sans); font-weight: 700; font-size: 19.2px; line-height: 1; }
.scene canvas { position: absolute; left: 0; top: 0; image-rendering: pixelated; }

/* the live field minimap (minimap.js): a small dark card in the scene's top corner. It never takes a tap. */
.mini { position: absolute; z-index: 4; width: 74px; padding: 3px 3px 1px; border-radius: 10px; pointer-events: none;
  background: linear-gradient(180deg, #1a2130, #0b0f17); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 4px 14px rgba(0, 0, 0, .35); }
.mini[hidden] { display: none; }
.mini svg { display: block; width: 100%; height: auto; }
.mm-grass { fill: #1d4632; }
.mm-dirt { fill: #6e4f33; }
.mm-line, .mm-fence { fill: none; stroke: #e8ebf2; stroke-width: 4; stroke-opacity: .55; }
.mm-fence { stroke-opacity: .8; stroke-width: 5; }
.mm-path { fill: none; stroke: #e8ebf2; stroke-opacity: .35; stroke-width: 3; }
.mm-base { fill: #e8ebf2; fill-opacity: .8; }
.mm-mound { fill: #8a5e3c; }
.mm-plate { fill: #e8ebf2; fill-opacity: .8; }
/* a dot is the ball's landing spot. The newest is bright for a moment, then fades to the record. */
.mm-dot { fill: var(--signal); stroke: #0b0f17; stroke-width: 4; opacity: .34; transform-box: fill-box; transform-origin: center; transition: opacity 1.2s ease-out; }
.mm-dot.now { opacity: 1; animation: mmPop .3s ease-out; }
@keyframes mmPop { from { transform: scale(.4); } to { transform: scale(1); } }
/* the 3D play, live (minimap.js live): a white dot a runner (red once he is out), the ball a small orange
   dot ringed white. After the play the dots go and the taken bases light, as the scorebar's do. */
.mini svg.mm-lit .mm-base { fill-opacity: .4; transition: fill-opacity .3s; }
.mini svg.mm-lit .mm-base.on { fill: #f4f5f7; fill-opacity: 1; }
.mm-run { fill: #f4f5f7; stroke: #0b0f17; stroke-width: 4; }
.mm-run.out { fill: var(--red); }
.mm-ball { fill: var(--signal); stroke: #f4f5f7; stroke-width: 3.5; }

/* the coach's mini grid (mound.js Grid), mirrored by screenCol(). The mound aims with aim.js */
.grid { position: absolute; z-index: 3; }
.grid .cell { position: absolute; width: 20%; height: 20%; padding: 0; margin: 0; border: 1px dashed rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); border-radius: 0; color: #fff; display: grid; place-items: center; transition: background .15s, opacity .2s; }
.grid .cell.zone { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .26); }
.grid .zonebox { position: absolute; left: 20%; top: 20%; width: 60%; height: 60%; border: 2px solid rgba(255, 255, 255, .9); border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.grid .hv { font-style: normal; font-family: var(--sans); font-weight: 600; font-size: 12px; text-shadow: 0 1px 0 rgba(0, 0, 0, .7); pointer-events: none; }
.grid.heat .cell { border-color: rgba(0, 0, 0, .25); }
.grid .cell.m-target { box-shadow: inset 0 0 0 3px var(--signal); }
.grid .cell.m-actual::after { content: ''; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .55); }
.grid .cell.m-best::before { content: ''; position: absolute; inset: 18%; border: 2px dashed var(--green); border-radius: 3px; }
.grid.mini { position: relative; width: 112px; height: 112px; flex: 0 0 112px; background: #141a26; border-radius: 10px; overflow: hidden; }
.grid.mini .cell { border-color: rgba(255, 255, 255, .1); }
/* AIM ON THE FIELD (aim.js, the owner's call 2026-10-22): the crosshair on the stage's own zone.
   Under it the batter's heat (the zone's nine strong, the chase ring faded into the field), the
   zone drawn as a broadcast draws it, the outing's pitch dots and the preview's thin line. The
   cells are invisible buttons. touch-action none: a drag aims and never scrolls the page. */
.aim { position: absolute; z-index: 3; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: crosshair; --cw: 40px; }
.aim.off { pointer-events: none; }
.aim-heat { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25), #000 20%, #000 80%, rgba(0, 0, 0, .25)), linear-gradient(180deg, rgba(0, 0, 0, .25), #000 20%, #000 80%, rgba(0, 0, 0, .25));
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, rgba(0, 0, 0, .25), #000 20%, #000 80%, rgba(0, 0, 0, .25)), linear-gradient(180deg, rgba(0, 0, 0, .25), #000 20%, #000 80%, rgba(0, 0, 0, .25)); mask-composite: intersect; }
.aim-heat i { position: absolute; width: 20%; height: 20%; opacity: .34; transition: background .2s, opacity .2s; }
.aim-heat i.zone { opacity: .58; }
.aim-zone { position: absolute; left: 20%; top: 20%; width: 60%; height: 60%; z-index: 1; pointer-events: none; border: 2px solid rgba(255, 255, 255, .95); border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(8, 10, 16, .4), inset 0 0 0 1px rgba(8, 10, 16, .25), 0 0 18px rgba(255, 255, 255, .12); }
.aim-zone i { position: absolute; background: rgba(255, 255, 255, .38); }
.aim-zone .v1, .aim-zone .v2 { top: 0; bottom: 0; width: 1px; }
.aim-zone .v1 { left: 33.333%; } .aim-zone .v2 { left: 66.667%; }
.aim-zone .h1, .aim-zone .h2 { left: 0; right: 0; height: 1px; }
.aim-zone .h1 { top: 33.333%; } .aim-zone .h2 { top: 66.667%; }
.aim .cell { position: absolute; z-index: 2; width: 20%; height: 20%; padding: 0; margin: 0; border: 0; border-radius: 3px; background: transparent; cursor: inherit; }
.aim .cell:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
@media (hover: hover) { .aim:not(.dragging) .cell:hover { background: rgba(255, 255, 255, .12); } }
/* after a pitch, the cell that was called: a thin signal frame until the next pick */
.aim .cell.m-target { box-shadow: inset 0 0 0 2px rgba(255, 79, 31, .9); }
/* free aim: no glide on left and top, so the crosshair is under the finger on every move */
/* the hit marker: the reticle around the 3D aim ball, in the picked pitch's colour (--aim-c, from aim.js) */
.aim-x { position: absolute; z-index: 4; width: calc(var(--cw) * 1); height: calc(var(--cw) * 1); transform: translate(-50%, -50%); pointer-events: none; display: none; }
.aim.aiming .aim-x { display: block; }
.aim-x svg { display: block; width: 100%; height: 100%; overflow: visible; transition: transform .12s ease-out; }
.aim.dragging .aim-x svg { transform: scale(1.14); }
.aim-x .ax-halo { fill: none; stroke: rgba(8, 10, 16, .55); stroke-width: 10; stroke-linecap: round; }
.aim-x .ax-ring { fill: rgba(255, 79, 31, .14); stroke: var(--aim-c, var(--signal)); stroke-width: 5.5; }
.aim-x .ax-tick { fill: none; stroke: var(--aim-c, var(--signal)); stroke-width: 5.5; stroke-linecap: round; }
/* over the 3D stage the ball is the centre: no dot, no fill over it */
.aim.has-ball .aim-x .ax-ring { fill: none; }
.aim.has-ball .aim-x .ax-dot { display: none; }
.aim-x .ax-dot { fill: #fff; stroke: rgba(8, 10, 16, .6); stroke-width: 2; }
/* the break arrows (ui.js breakArrows): the stand-out yellow, a soft dark rim so they read on grass,
   dirt and the light studio, a small stagger as the pitch is picked */
.aim-x .ax-brk { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.aim-x .ab { fill: var(--yellow); stroke: rgba(8, 10, 16, .62); stroke-width: 3.5; stroke-linejoin: round; paint-order: stroke; animation: brk-in .22s calc(var(--i, 0) * 70ms) ease-out both; }
@keyframes brk-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .aim-x .ab { animation: none; } }
/* the tag over the crosshair: where it is, in inside and away words, and the heat's number there */
.aim-tag { position: absolute; bottom: calc(100% + 1px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-size: 12px; font-weight: 600; line-height: 1; color: #fff; background: rgba(11, 15, 23, .86); padding: 5px 9px 5px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 4px 12px rgba(0, 0, 0, .3); font-variant-numeric: tabular-nums; }
.aim-x.low .aim-tag { bottom: auto; top: calc(100% + 1px); }
.aim-x.sl .aim-tag { left: 0; transform: none; }
.aim-x.sr .aim-tag { left: auto; right: 0; transform: none; }
/* the old drawing (no WebGL) plays the pitch over the aim: it goes quiet in flight */
.scene.flying .aim .aim-heat { opacity: .3; }
/* the outing's pitches on the grid, where each crossed the plate. The colour is the result's kind
   (the neutral palette), never a grade band. This batter's pitches are the bright ones. */
.aim .dots { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.pd { position: absolute; display: inline-block; box-sizing: border-box; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--faint); box-shadow: 0 0 0 1.5px var(--bg); opacity: .5; }
.pd.ball { background: transparent; box-shadow: inset 0 0 0 2px var(--dim), 0 0 0 1.5px var(--bg); }
.pd.called { background: var(--ink); }
.pd.swing { background: var(--signal); }
.pd.foul { background: var(--faint); }
.pd.inplay { background: var(--data); }
/* the at bat's dots carry their pitch number (the owner, 2026-10-26). Fixed colours, not the theme's:
   they sit on the 3D scene in both themes, and the number is white on every kind */
.pd.cur { width: 18px; height: 18px; margin: -9px 0 0 -9px; opacity: 1; color: #fff; font: 700 11px/18px system-ui, sans-serif;
  text-align: center; font-style: normal; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 1px 3px rgba(0, 0, 0, .45); }
.pd.called.cur { background: #0b0f17; }
.pd.foul.cur { background: #6b7487; }
.pd.ball.cur { background: rgba(11, 15, 23, .45); box-shadow: inset 0 0 0 2px #fff, 0 1px 3px rgba(0, 0, 0, .45); }
/* on the aim grid the at bat's dots are a ball's size (2.9 inches over a 6.64 inch column, contract.js
   BALL_IN and GRID.COL_FT), so a dot that touches the drawn zone is a ball the ABS calls touching it
   (rules 10, contract.js touchDist) and one clear of it is not */
.aim .pd.cur { width: calc(var(--cw) * .4367); height: calc(var(--cw) * .4367); margin: calc(var(--cw) * -.21835) 0 0 calc(var(--cw) * -.21835);
  line-height: calc(var(--cw) * .4367); }
.dotkey { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 2px 1px; color: var(--g-dim); font-size: 11.5px; line-height: 1; pointer-events: none; }
.dotkey span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dotkey .pd { position: static; margin: 0; width: 8px; height: 8px; opacity: 1; box-shadow: 0 0 0 1px var(--bg); }
.dotkey .pd.ball { box-shadow: inset 0 0 0 1.5px var(--dim); }

/* the scout card: one sentence, the rates as bars, then his line against each pitch of the
   closer's arsenal. A sheet over the scene that keeps off the zone (ui.js placeSheet). Tokens only, so both themes read. */
.scout { padding: 8px 12px 6px; font-size: 12.5px; }
.sc-say { margin: 0 0 5px; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.sc-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 5px; }
.scout .bar { display: grid; grid-template-columns: auto 1fr 32px; align-items: center; gap: 7px; min-width: 0; }
.scout .bar .bl { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.scout .bar b, .scout .pr .cell b { font-family: var(--sans); font-weight: 700; font-size: 13px; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.scout .trk { position: relative; display: block; height: 7px; border-radius: 4px; background: var(--panel-2); min-width: 0; }
.scout .trk i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--data); }
.scout .trk em { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.scout .trk.mx i { background: var(--faint); }
.scout .trk.wh i { background: var(--signal); }
.sc-pitches { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 5px; }
.scout .pr { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 10px; align-items: center; min-height: 16px; }
.scout .pr .pn { font-size: 12px; font-weight: 600; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scout .pr .cell { display: grid; grid-template-columns: 1fr 32px; gap: 6px; align-items: center; min-width: 0; }
.scout .pr.hd { font-family: var(--sans); font-weight: 600; font-size: 10px; letter-spacing: 0.055em; text-transform: uppercase; color: var(--faint); min-height: 12px; }
.sc-note { margin: 4px 0 0; font-size: 11px; color: var(--dim); }
.seg { display: inline-flex; background: rgba(127, 127, 127, .18); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: inherit; min-height: 38px; }   /* a thumb's tap target (QA, 2026-11-02: 31 px) */
.seg button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.seg.sm button { padding: 3px 9px; font-size: 12px; }
.dbg { position: absolute; left: 6px; bottom: 6px; z-index: 6; font: 11px ui-monospace, monospace; background: rgba(0, 0, 0, .65); color: #b6f5c8; padding: 2px 6px; border-radius: 4px; }

/* ---- the result: the clubhouse rail (the owner's pick, 2026-10-26). An ink rail holds the outcome,
   the verdict against the real closer, the three numbers, pitched like, the graded strip and the
   menu; the main side holds the outing pitch by pitch beside the real game, then the chart. Upright
   the rail is the top block and the main side follows it, and everything down to pitched like is on
   screen without a scroll at 375x667 (the owner, 2026-11-10). From 1100 px the rail is fixed on the left. ---- */
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.066em; text-transform: uppercase; color: rgba(244, 245, 247, .65); margin: 0 0 6px; position: relative; z-index: 1; }
.outcome { font-family: var(--hero); font-weight: 400; font-size: 74px; line-height: .9; margin: 4px 0 6px; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.outcome::after { content: '.'; color: var(--signal); }
.outcome.tie_held { color: var(--yellow); } .outcome.doors_open { color: var(--orange); } .outcome.walk_off { color: var(--red); }
.seam { height: 16px; background: var(--seam) repeat-x left center; margin: 2px 0 12px; width: 62%; }
.r-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.fact { display: flex; flex-direction: column; min-width: 84px; padding: 8px 14px 9px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: rgba(244, 245, 247, .7); }
.fact b { font-family: var(--sans); font-weight: 700; font-size: 25.6px; line-height: 1; color: #fff; letter-spacing: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font: 600 11px var(--sans); fill: var(--dim); }
.chart .you { fill: var(--signal); }
.chart .bar { fill: var(--data); fill-opacity: .26; }
.chart .note { font-weight: 500; font-size: 11px; }
.meter { position: relative; height: 12px; border-radius: 999px; background: var(--panel-2); margin: 18px 0 6px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--data-soft), var(--data)); }
.meter b { position: absolute; top: -6px; width: 4px; height: 24px; border-radius: 2px; background: var(--signal); margin-left: -2px; }

#s-result { --rail-bg: #0d1320; --club: #2b3550; padding: 0 0 32px; }
body[data-screen="s-result"] .hdr { background: var(--rail-top, #121a2a); }
body[data-screen="s-result"] .hdr-btn svg { stroke: #fff; }
body[data-screen="s-result"] .hdr-btn:hover { background: rgba(255, 255, 255, .12); }
body[data-screen="s-result"] .wm-light { display: none !important; }
body[data-screen="s-result"] .wm-dark { display: block !important; }

.r-rail { position: relative; overflow: hidden; color: #f4f5f7; padding: 4px 16px 18px 22px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 28px), linear-gradient(180deg, #121a2a 0%, #0a0e17 100%); }
.r-rail::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--club); }
.r-rail::after { content: ''; position: absolute; right: -60px; top: 40px; width: 230px; height: 230px; background: url(brand/mark.svg?v=2) center / contain no-repeat; opacity: .06; transform: rotate(-10deg); pointer-events: none; }
.r-rail > * { position: relative; z-index: 1; }
.r-hero .outcome { font-size: 72px; margin-bottom: 4px; }
.r-hero .seam { width: 280px; max-width: 80%; margin-bottom: 8px; }

/* the verdict against the real closer: signal when you did better, data blue when you matched it,
   red when he did better */
.vsbar { margin: 12px 0 0; padding: 10px 14px 9px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.vsbar.none { display: none; }
.vsbar.beat { background: rgba(255, 79, 31, .14); box-shadow: inset 0 0 0 1px rgba(255, 79, 31, .5); }
.vsbar.matched { background: rgba(91, 130, 255, .14); box-shadow: inset 0 0 0 1px rgba(91, 130, 255, .5); }
.vsbar.lost { background: rgba(229, 56, 59, .12); box-shadow: inset 0 0 0 1px rgba(229, 56, 59, .45); }
.vs-t { display: flex; flex-direction: column; min-width: 0; }
.vs-t small { font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: 0.088em; text-transform: uppercase; color: rgba(244, 245, 247, .65); }
.vs-t b { font-family: var(--sans); font-weight: 700; font-size: 23.2px; line-height: 1; text-transform: uppercase; margin: 3px 0 5px; overflow-wrap: anywhere; }
.vsbar.beat .vs { color: #ff7a52; } .vsbar.matched .vs { color: #8fa8ff; } .vsbar.lost .vs { color: #ff8a8c; }
.vs-t .vs-l { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: rgba(244, 245, 247, .92); }
.vs-t .vs-l i { font-style: normal; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.077em; text-transform: uppercase; color: rgba(244, 245, 247, .6); min-width: 84px; }

/* the three numbers */
.r-kn { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.6fr); margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.kn { padding: 9px 0 8px; display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; color: rgba(244, 245, 247, .62); }
.kn + .kn { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .1); }
.kn[hidden] + .kn { border-left: 0; padding-left: 0; }
.kn b { font-family: var(--sans); font-weight: 700; font-size: 33.6px; line-height: .92; color: #fff; font-variant-numeric: tabular-nums; }
.pct { color: #7b98ff !important; }
.pct sup { font-size: .42em; vertical-align: top; position: relative; top: .14em; margin-left: 2px; }
.kn-pct span span::before { content: '\00a0\00b7\00a0'; }
.kn-pct span span:empty::before { content: none; }

/* pitched like: one line under the numbers, the reason under it, every number the engine's */
.r-like { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 0; padding: 8px 0 9px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.r-like small { font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: 0.077em; text-transform: uppercase; color: rgba(244, 245, 247, .62); }
.r-like b { font-family: var(--sans); font-weight: 700; font-size: 17.6px; line-height: 1.2; color: #fff; }
.r-like .rl-why { flex-basis: 100%; font-size: 12px; line-height: 1.35; color: rgba(244, 245, 247, .62); }
.r-like .rl-why:empty { display: none; }

.r-graded { margin-top: 10px; }
.rg-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font-size: 12.5px; color: rgba(244, 245, 247, .6); }
.rg-h b { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.077em; text-transform: uppercase; color: rgba(244, 245, 247, .85); }
.strip.mid { gap: 4px; }
.strip.mid .sq { width: 24px; height: 24px; border-radius: 7px; color: #fff; font: 700 11.5px var(--sans); }
.strip.mid .sq.yellow { color: #2a2000; }

/* the menu: console rows, the selected one in signal. Arrow keys and a pad's d-pad move it */
.r-nav { display: flex; flex-direction: column; margin: 16px -10px 0; }
.nv { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: 0; border-radius: 12px; background: none; color: #f4f5f7; text-align: left; position: relative; transition: background .15s, box-shadow .15s; }
.nv + .nv::before { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: rgba(255, 255, 255, .07); }
.nv b { font-family: var(--sans); font-weight: 700; font-size: 18.4px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.nv span { margin-left: auto; font-size: 12.5px; color: rgba(244, 245, 247, .55); text-align: right; }
.nv .chev { flex: 0 0 9px; width: 9px; height: 9px; border: solid currentColor; border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); opacity: .6; margin-right: 4px; }
.nv b + .chev { margin-left: auto; }
.nv.sel { background: var(--signal); color: #fff; box-shadow: 0 10px 28px rgba(255, 79, 31, .3); }
.nv.sel span { color: rgba(255, 255, 255, .9); }
.nv.sel::before, .nv.sel + .nv::before { display: none; }
.nv:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.r-promo { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 12px 0 0; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; color: #f4f5f7; text-decoration: none; transition: background .15s, border-color .15s; }
.r-promo[hidden] { display: none; }
.r-promo .rp-ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 9px; display: block; }
.r-promo .rp-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.r-promo b { font-family: var(--sans); font-weight: 700; font-size: 15px; }
.r-promo .rp-t span { font-size: 12.5px; color: rgba(244, 245, 247, .55); text-wrap: balance; }
.r-promo .chev { flex: 0 0 9px; width: 9px; height: 9px; margin: 0 4px 0 auto; border: solid currentColor; border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); opacity: .6; }
.r-promo:hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .2); }
.r-promo:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.r-foot { margin-top: 12px; }
.r-foot .streak { color: rgba(244, 245, 247, .7); margin: 6px 0; font-size: 13px; }
.r-foot .streak b { color: #fff; }
.r-foot .streak:empty, .r-tmr:empty { display: none; }
.r-tmr { margin: 4px 0 0; text-align: center; font-size: 12.5px; color: rgba(244, 245, 247, .55); }
.r-keys { display: none; margin: 10px 0 0; font-size: 12px; color: rgba(244, 245, 247, .5); }
.r-keys kbd { display: inline-block; font: 600 11px var(--sans); border: 1px solid rgba(255, 255, 255, .25); border-radius: 5px; padding: 0 5px; margin-right: 3px; }

/* the main side */
.r-main { padding: 16px 16px 0; }
.r-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 14px 12px; margin: 0 0 12px; }
.r-sec-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; }
.r-sec-h h3 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 18.4px; line-height: 1; text-transform: none; }
.r-sec-h > span { font-size: 12.5px; color: var(--dim); }
.r-sec-h .legend { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--dim); }
.r-sec-h .legend span { display: inline-flex; align-items: center; gap: 6px; }
.r-sec-h .legend i { width: 10px; height: 10px; border-radius: 3px; }

/* you vs the real game: the totals, then one row per batter with your pitches */
.cmp .who { font-family: var(--sans); font-weight: 700; font-size: 13.6px; text-transform: none; text-align: center; padding: 5px 4px 4px; border-radius: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp .who.you { background: var(--signal); color: #fff; }
.cmp .who.him { background: var(--night); color: var(--on-night); }
.cmp .k { font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: 0.077em; text-transform: uppercase; color: var(--dim); }
.cmp .v { text-align: center; padding: 7px 6px; border-radius: 10px; background: var(--panel-2); font-size: 13px; min-width: 0; }
.cmp .v b { font-family: var(--sans); font-weight: 700; font-size: 19.2px; line-height: 1; }
.cmp .v b.o { font-size: 17px; text-transform: uppercase; }
.cmp .v b.o.tie_held { color: var(--data); } .cmp .v b.o.doors_open { color: var(--orange); } .cmp .v b.o.walk_off { color: var(--red); }
.cmp .v.win { background: var(--signal-soft); box-shadow: inset 0 0 0 2px var(--signal); }
.cmp .v.win b { color: var(--signal); }
.cmp .v.none { background: none; color: var(--faint); font-weight: 700; }
.cmp .v.note { font-size: 12px; color: var(--dim); line-height: 1.25; }
.cmp-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; padding: 3px 0; }
.cmp-head { padding-bottom: 5px; }
.cmp-top { padding: 12px; border-radius: 14px; background: var(--panel-2); }
.cmp-top .cmp-row .v { background: var(--panel); }
.cmp-t, .ab-t { margin: 0 0 8px; font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.2; }
.ab-t { margin: 18px 0 6px; }

/* ---- after the outing (postgame.js): the box line, the grade mix ---- */
.bx { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; }
.bx div { background: var(--panel-2); border-radius: 12px; padding: 8px 6px 7px; text-align: center; min-width: 0; }
.bx dt { font-size: 10.5px; line-height: 1.15; color: var(--dim); font-weight: 600; min-height: 2.3em; display: flex; align-items: flex-end; justify-content: center; }
.bx dd { margin: 3px 0 0; font-family: var(--sans); font-weight: 800; font-size: 21px; line-height: 1; font-variant-numeric: tabular-nums; }
.r-mix { margin: 0 0 14px; }
.mx-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 6px; font-size: 13px; }
.mx-h span { color: var(--dim); font-size: 12.5px; }
.mx-bar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.mx-bar i { display: block; min-width: 6px; }
.mx-bar .green { background: var(--green); } .mx-bar .yellow { background: var(--yellow); }
.mx-bar .orange { background: var(--orange); } .mx-bar .red { background: var(--red); }
.mx-k { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 12.5px; color: var(--dim); }
.mx-k span { display: inline-flex; align-items: center; gap: 6px; }
.mx-k span.z { opacity: .55; }
.mx-k b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mx-k i, .dt-b i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---- the K-Zone legend, then one card per at bat ---- */
.kz-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; font-size: 12px; color: var(--dim); }
.kz-key span { display: inline-flex; align-items: center; gap: 4px; }
.kz-key svg { width: 18px; height: 18px; color: var(--dim); }
.kz-key .kz-note { flex-basis: 100%; color: var(--faint); }
.ab-grid { display: grid; gap: 10px; }
.cmp-bat.ab { display: block; margin: 0; padding: 12px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); position: relative; overflow: hidden; }
.cmp-bat.ab::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--bat, var(--line-2)); }
.ab-h { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 0 10px; }
.ab-i { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.066em; color: var(--dim); white-space: nowrap; }
.ab-h .nm { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ab-h small { font-size: 12px; color: var(--dim); white-space: nowrap; }
.ab-end { margin-left: auto; flex: 0 0 auto; min-width: 34px; text-align: center; padding: 4px 8px 3px; border-radius: 8px; font-family: var(--sans); font-weight: 800; font-size: 13px; line-height: 1.1; background: var(--panel-2); color: var(--ink); }
.ab-end.k { background: var(--signal); color: #fff; }
.ab-end.hit { background: var(--red); color: #fff; }
.ab-end.bb { background: var(--yellow); color: #0b0f17; }
.ab-body { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 12px; align-items: start; }
.kz svg { display: block; width: 100%; height: auto; overflow: visible; }
.kz-bg { fill: var(--panel-2); }
.kz-zone { fill: var(--panel); stroke: var(--ink); stroke-width: 1.6; }
.kz-in { stroke: var(--line-2); stroke-width: .7; }
.kz-out { stroke: var(--line); stroke-width: .6; }
.kz-side { display: flex; justify-content: space-between; margin: 4px 2px 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.044em; text-transform: uppercase; color: var(--faint); }
.kd, .kz-key svg { color: var(--ink); }
.kd { cursor: pointer; }
.kd text, .kz-key text { font-family: var(--sans); font-weight: 800; font-size: 7px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.m-fill, .m-ip { stroke: var(--panel); stroke-width: 1; }
.m-ip { stroke: var(--ink); stroke-width: 1.1; }
.m-ball, .m-hbp { fill: var(--panel); stroke-width: 2.1; }
.m-ring { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.m-ring.dash { stroke-dasharray: 2.2 1.6; }
.kd[data-on] .m-fill, .kd[data-on] .m-ball, .kd[data-on] .m-hbp, .kd[data-on] .m-ip { filter: drop-shadow(0 0 2.5px var(--signal)); }
.ab-dt { min-width: 0; padding: 2px 0 0; }
/* the at bat's Clip (clip-ui.js): the pitch Clip's look, the whole row, under its pitches */
.ab-clip { margin-top: 4px; min-height: 40px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 10px; background: none; padding: 0 10px; font-family: var(--sans); font-weight: 700; font-size: 12.5px; color: var(--ink); white-space: nowrap; cursor: pointer; }
.ab-clip svg { width: 9px; height: 9px; fill: var(--signal); }
.ab-clip small { font-weight: 500; font-size: 12px; color: var(--dim); margin-left: 2px; }
.ab-clip:hover { border-color: var(--signal); }
.ab-dt p { margin: 0; }
.dt-n { font-size: 11.5px; font-weight: 600; letter-spacing: 0.044em; color: var(--dim); }
.dt-t { margin-top: 5px !important; font-weight: 700; font-size: 16px; line-height: 1.25; }
.dt-t i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.dt-t span { font-weight: 600; color: var(--dim); font-size: 14px; white-space: nowrap; }
.dt-r { margin-top: 4px !important; font-weight: 700; font-size: 14px; }
.dt-r em { font-style: normal; margin-left: 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--data); }
.dt-w { margin-top: 2px !important; font-size: 13px; color: var(--dim); }
.dt-b { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px !important; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--panel-2); font-size: 12.5px; font-weight: 700; }
.ab-list { margin-top: 10px; display: grid; gap: 4px; }
.pc { display: flex; align-items: stretch; gap: 4px; min-width: 0; }
.pc-pick { flex: 1; min-width: 0; min-height: 40px; display: grid; grid-template-columns: 20px 34px minmax(0, 0.9fr) minmax(0, 1.3fr) 6px; gap: 8px; align-items: center; text-align: left; border: 0; border-radius: 10px; background: var(--panel-2); padding: 4px 8px; }
.pc.on .pc-pick { background: var(--signal-soft); box-shadow: inset 0 0 0 1.5px var(--signal); }
.pc .n { font-family: var(--sans); font-weight: 800; font-size: 15px; line-height: 1; text-align: center; }
.pc .ty { justify-self: start; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.022em; line-height: 1; padding: 4px 5px 3px; border-radius: 5px; background: var(--tc); color: #fff; }
.pc .ty.lt { color: #0b0f17; }
.pc .m { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pc .w { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc .bd { width: 6px; height: 26px; border-radius: 3px; background: var(--line-2); }
.pc .bd.green { background: var(--green); } .pc .bd.yellow { background: var(--yellow); } .pc .bd.orange { background: var(--orange); } .pc .bd.red { background: var(--red); }
.pc-clip { flex: 0 0 auto; min-height: 40px; min-width: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line-2); border-radius: 10px; background: none; padding: 0 10px; font-family: var(--sans); font-weight: 700; font-size: 12.5px; color: var(--ink); }
.pc-clip svg { width: 9px; height: 9px; fill: var(--signal); }
.pc-clip:hover, .pc-pick:hover { border-color: var(--signal); }
.ab-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 10px; }
.ab-vs .v { text-align: left; padding: 7px 10px; border-radius: 10px; background: none; border: 1px solid var(--line-2); font-weight: 600; font-size: 13px; line-height: 1.25; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ab-vs .v i { font-style: normal; font-family: var(--sans); font-weight: 700; font-size: 10.5px; letter-spacing: 0.077em; text-transform: uppercase; color: var(--dim); }
.ab-vs .v.you i { color: var(--signal); }
.ab-vs .v small { font-weight: 500; font-size: 11.5px; color: var(--dim); }
.ab-vs .v b.none { color: var(--faint); }
.cmp-bat.ab.never .ab-h { margin-bottom: 0; }
.cmp-sum { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); font-size: 13px; color: var(--dim); }
.cmp-sum b { margin-right: 6px; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.066em; text-transform: uppercase; color: var(--ink); }

.r-pctline { margin: -4px 0 8px; font-size: 13.5px; color: var(--dim); }
.r-pctline b { color: var(--ink); }

/* the entrance: once, as the result comes up. The outcome slams, the rail and the tiles rise */
@keyframes r-slam { from { opacity: 0; transform: scale(1.14) translateX(-8px); } 60% { opacity: 1; } to { transform: none; } }
@keyframes r-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes r-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes r-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
#s-result.r-play .outcome { animation: r-slam .55s cubic-bezier(.2, .9, .25, 1.15) both; transform-origin: left bottom; }
#s-result.r-play .r-hero .seam { animation: r-wipe .5s .25s ease-out both; }
#s-result.r-play .eyebrow, #s-result.r-play .vsbar, #s-result.r-play .r-kn, #s-result.r-play .rg-h { animation: r-rise .45s ease-out both; }
#s-result.r-play .eyebrow { animation-delay: .05s; } #s-result.r-play .vsbar { animation-delay: .3s; }
#s-result.r-play .r-kn { animation-delay: .4s; } #s-result.r-play .rg-h { animation-delay: .5s; }
#s-result.r-play .strip.mid .sq { animation: r-pop .3s calc(.55s + var(--i, 0) * 35ms) cubic-bezier(.3, 1.4, .5, 1) both; }
#s-result.r-play .nv { animation: r-rise .4s calc(.6s + var(--i, 0) * 50ms) ease-out both; }
#s-result.r-play .r-tile { animation: r-rise .5s calc(.35s + var(--i, 0) * 90ms) ease-out both; }
#s-result.r-play .pc { animation: r-rise .35s calc(.6s + var(--i, 0) * 40ms) ease-out both; }
@media (prefers-reduced-motion: reduce) {
  #s-result.r-play *, #s-result.r-play *::before { animation: none !important; }
  .nv { transition: none; }
}

/* the rail on a desk: fixed on the left, the page behind it a broadcast night (a light studio in light) */
@media (min-width: 1100px) {
  body[data-screen="s-result"] { background:
    radial-gradient(70% 60% at 85% -10%, rgba(0, 90, 156, .40), transparent 60%),
    radial-gradient(60% 50% at 30% 110%, rgba(255, 79, 31, .12), transparent 60%),
    linear-gradient(180deg, #0d1320, #080b12) fixed; }
  :root:not([data-theme="dark"]) body[data-screen="s-result"] { background:
    radial-gradient(70% 60% at 85% -10%, rgba(0, 90, 156, .13), transparent 60%),
    radial-gradient(60% 50% at 30% 110%, rgba(255, 79, 31, .07), transparent 60%),
    linear-gradient(180deg, #f6f7f9, #eaedf1) fixed; }
  body[data-screen="s-result"] .app { max-width: none; border: 0; }
  body[data-screen="s-result"] .hdr { background: transparent; padding: 0 24px 0 30px; }
  body[data-screen="s-result"] .hdr-btn svg { stroke: var(--ink); }
  body[data-screen="s-result"] .hdr-btn:hover { background: var(--panel-2); }
  #s-result { --rail: 452px; padding: 0; }
  #s-result::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .6;
    background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
  :root:not([data-theme="dark"]) #s-result::before { background-image: linear-gradient(rgba(11, 15, 23, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 15, 23, .045) 1px, transparent 1px); }
  .r-rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 20; padding: 64px 32px 16px 38px; display: flex; flex-direction: column; overflow-y: auto; box-shadow: 20px 0 60px rgba(0, 0, 0, .3); scrollbar-width: none; }
  .r-rail::after { right: -70px; top: 90px; width: 320px; height: 320px; }
  .r-hero .outcome { font-size: 96px; margin-top: 6px; }
  .r-kn { margin-top: 14px; } .kn { padding: 10px 0 9px; }
  .r-kn b { font-size: 50px; }
  .r-nav { margin-top: 10px; }
  .nv { min-height: 48px; }
  .cmp-row .k { text-align: right; padding-right: 6px; }
  .r-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
  .r-foot .streak { margin: 0; flex-basis: 100%; text-align: left; }
  .r-tmr { margin: 0; }
  .r-keys { display: block; margin: 0; }
  .r-main { position: relative; z-index: 1; margin-left: var(--rail); padding: 4px 36px 36px; }
  :root[data-theme="dark"] .r-tile { background: rgba(20, 26, 38, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .r-tile { padding: 16px 20px 14px; margin-bottom: 14px; }
  .r-sec-h { margin-bottom: 12px; }
  .r-sec-h h3 { font-size: 20.8px; }
  .r-sec-h .legend { flex-basis: auto; margin-left: auto; }
  .cmp-row { grid-template-columns: minmax(0, 1fr) 150px 150px; gap: 10px; }
  .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ab-body { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
  .bx { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .bx dd { font-size: 24px; }
  .chart { max-width: 480px; }
}
@media (min-width: 1700px) {
  #s-result { --rail: 540px; }
  .r-rail { padding: 76px 42px 20px 50px; }
  .r-hero .outcome { font-size: 140px; }
  .vs-t b { font-size: 30.4px; }
  .r-kn b { font-size: 64px; }
  .nv { min-height: 58px; } .nv b { font-size: 20.8px; }
  .strip.mid .sq { width: 30px; height: 30px; font-size: 12.5px; }
  .r-main { padding: 8px 56px 40px; }
  .r-tile { padding: 20px 26px 18px; }
  .cmp-row { grid-template-columns: minmax(0, 1fr) 190px 190px; }
  .ab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart { max-width: 560px; }
}

/* ---- the board: the ink panel with your rank, then the rows ---- */
#s-board { padding: 4px 16px 32px; }
.bd-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border: 0; background: none; padding: 8px 4px; margin: 0 0 4px; font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0.066em; text-transform: uppercase; color: var(--dim); }
.bd-back i { width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.bd-hero { position: relative; overflow: hidden; padding: 18px 18px 18px; border-radius: 24px; color: var(--on-night); box-shadow: var(--shadow);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 26px), linear-gradient(180deg, #1a2130, #0b0f17); }
:root[data-theme="dark"] .bd-hero { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow); }
.bd-hero > * { position: relative; }
.bd-hero::before { content: ''; position: absolute; right: -46px; top: -44px; width: 150px; height: 150px; background: url(brand/mark.svg?v=2) center / contain no-repeat; opacity: .06; transform: rotate(-10deg); pointer-events: none; }
.bd-head { font-family: var(--hero); font-weight: 400; font-size: 64px; line-height: .9; margin: 4px 0 6px; text-transform: uppercase; color: #fff; }
.bd-head::after { content: '.'; color: var(--signal); }
#bd-head::after { content: none; }
.bd-hero .seam { margin-bottom: 14px; }
.bd-rank { display: flex; align-items: baseline; gap: 10px; }
.bd-rank b { font-family: var(--sans); font-weight: 700; font-size: 51.2px; line-height: .9; color: var(--signal); }
.bd-rank span { font-family: var(--sans); font-weight: 600; font-size: 12.8px; letter-spacing: 0.066em; text-transform: uppercase; color: rgba(244, 245, 247, .75); }
.bd-me { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.bd-me .oc { font-size: 13.5px; padding: 8px 11px 7px; }
.bd-me .fact { min-width: 76px; padding: 6px 12px 7px; flex-direction: row; align-items: baseline; gap: 6px; }
.bd-me .fact b { font-size: 26px; }
.bd-count { margin: 0 0 10px; font-size: 14px; color: rgba(244, 245, 247, .75); }
.bd-count b { font-family: var(--sans); font-weight: 700; font-size: 19.2px; color: #fff; margin-right: 2px; }
.bd-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding-top: 12px; border-top: 1.5px dashed rgba(255, 255, 255, .16); }
.bd-in p { margin: 0; flex: 1 1 180px; font-size: 14px; color: rgba(244, 245, 247, .85); }
.bd-in .btn { min-height: 42px; padding: 8px 16px; }
.bd-in .btn.take { width: auto; min-height: 46px; font-size: 21px; box-shadow: 0 2px 0 #c43a12; }
/* the outcome as a chip, in the result screen's colours */
.oc { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 11px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 8px; white-space: nowrap; color: #fff; background: var(--green); }
.oc.tie_held { background: var(--yellow); color: #2a2000; } .oc.doors_open { background: var(--orange); } .oc.walk_off { background: var(--red); }
.oc.none { background: var(--panel-2); color: var(--faint); }
.bd-list { padding: 14px 10px 8px; }
.bd-lh { display: flex; align-items: baseline; justify-content: space-between; padding: 0 8px; margin: 0 0 8px; }
.bd-lh b { font-family: var(--sans); font-weight: 700; font-size: 16.8px; text-transform: none; }
.bd-lh span { color: var(--dim); font-size: 13px; }
.bd-cols-h, .bd-rows li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 26px 40px; gap: 8px; align-items: center; }
.bd-cols-h { padding: 0 8px 6px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.066em; text-transform: uppercase; color: var(--faint); }
.bd-cols-h span:nth-child(n+4) { text-align: right; }
.bd-rows { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.bd-rows li { padding: 9px 8px; border-bottom: 1px solid var(--line); border-radius: 12px; }
.bd-rows li:last-child { border-bottom: 0; }
.bd-rows .rk { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--panel-2); font-family: var(--sans); font-weight: 700; font-size: 12.8px; }
.bd-rows li.top .rk { background: var(--ink); color: var(--bg); }
.bd-rows .nm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the plates (plate.js): each row's, about 24px, the letters in the club's contrast */
.bd-rows .nm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bd-rows .nm .un { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* the stat line under the name (supabase/166, board.js nameHTML) */
.bd-rows .bst { grid-column: 2 / -1; margin: -6px 0 0; padding-left: 32px; font-weight: 500; font-size: 11.5px; line-height: 1.2; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.bd-rows li.mine .bst { color: var(--ink); opacity: .75; }
.bd-hold { margin: 0 0 6px; padding: 0 8px; font-size: 12px; color: var(--faint); }
.plate { display: block; flex: none; overflow: visible; }
.plate text { stroke: none; }
.plate.bp { width: 24px; height: 24px; }
.plate.locked { opacity: .34; filter: grayscale(1); }
/* the gem keeps an edge on a white panel, and stays a gem (dimmed, not grey) while it is locked */
.plate.gem { filter: drop-shadow(0 0 1px rgba(11, 26, 46, .5)); }
.plate.gem.locked { opacity: .5; filter: saturate(.5) drop-shadow(0 0 1px rgba(11, 26, 46, .5)); }
.bd-rows .nm em { font-style: normal; margin-left: 6px; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.055em; text-transform: uppercase; color: var(--signal); }
.bd-rows .n { text-align: right; font-size: 14px; color: var(--dim); }
.bd-rows .n.sc { font-family: var(--sans); font-weight: 700; font-size: 15.2px; color: var(--ink); }
.bd-rows li.mine { background: var(--signal-soft); box-shadow: inset 0 0 0 2px var(--signal); border-bottom-color: transparent; }
.bd-rows li.mine .rk { background: var(--signal); color: #fff; }
.bd-rows li.mine .n.sc { color: var(--signal); }
.bd-rows li.gap { display: block; text-align: center; padding: 2px 0; color: var(--faint); letter-spacing: .3em; }
.bd-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 16px 30px; }
.bd-empty img { border-radius: 14px; margin-bottom: 8px; }
.bd-empty b { font-family: var(--sans); font-weight: 700; font-size: 20.8px; text-transform: none; }
.bd-empty p { margin: 0; color: var(--dim); font-size: 14px; }
.bd-empty .btn { margin-top: 12px; }
.bd-grid > .card { margin-top: 12px; }
.bd-note { margin: 10px 4px 0; }

/* ---- the share sheet: the card as drawn, its two sizes, then share, save and the text ---- */
.share .sh-seg { margin: 0 0 12px; }
.sh-prev { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 18px; overflow: hidden; background: var(--night); color: var(--on-night); font-size: 13px; box-shadow: var(--shadow); margin: 0 auto; max-width: 340px; }
.sh-prev.tall { aspect-ratio: 1080 / 1350; }
.sh-prev.wide { aspect-ratio: 1200 / 630; max-width: 100%; }
.sh-prev img { display: block; width: 100%; height: 100%; }
.sh-prev .load-mark { width: 44px; height: 44px; border-radius: 12px; background: url(brand/mark.svg?v=2) center / cover no-repeat; }
.sh-act { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.sh-act .btn.go { background: var(--signal); color: #fff; }
.sh-act .btn:disabled { opacity: .5; }

/* ---- sheets ---- */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(5, 7, 12, .45); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(2px); }
/* the only blurs left open over a page that holds still. Asked for less transparency, they go solid */
@media (prefers-reduced-transparency: reduce) {
  .sheet { background: rgba(5, 7, 12, .72); -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root[data-theme="dark"] .r-tile { background: #141a26; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.sh-in { width: 100%; max-width: 520px; max-height: 88vh; max-height: 88dvh; overflow: auto; background: var(--bg); border-radius: 26px 26px 0 0; padding: 0 16px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); box-shadow: var(--shadow); transform: translateY(30px); opacity: 0; transition: transform .22s, opacity .22s; }
.sheet.on .sh-in { transform: none; opacity: 1; }
.sh-h { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg); padding: 16px 0 10px; z-index: 1; }
.sh-h::before { content: ''; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
.sh-h h2 { font-family: var(--sans); font-weight: 700; font-size: 25.6px; line-height: 1; margin: 0; text-transform: none; }
.sh-x { width: 40px; height: 40px; border: 0; background: var(--panel-2); border-radius: 12px; font-size: 24px; line-height: 1; }
.menu-list { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 12px; box-shadow: var(--shadow); }
.menu-list button { display: flex; align-items: center; gap: 14px; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 13px 14px; }
.menu-list button:first-child { border-top: 0; }
.menu-list .mi { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; }
.menu-list .mi svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-list .mi.hot { background: var(--signal-soft); } .menu-list .mi.hot svg { stroke: var(--signal); }
.menu-list .mi.data { background: var(--data-soft); } .menu-list .mi.data svg { stroke: var(--data); }
.menu-list .mt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.menu-list b { font-family: var(--sans); font-weight: 700; font-size: 16.8px; line-height: 1.05; text-transform: none; }
.menu-list .mt span { font-size: 13px; color: var(--dim); }
.menu-list .tag { font-style: normal; font-size: 12px; font-weight: 600; color: var(--dim); background: var(--panel-2); border-radius: 999px; padding: 3px 9px; }
.chev { width: 9px; height: 9px; border: solid var(--faint); border-width: 2px 2px 0 0; transform: rotate(45deg); margin-right: 4px; }
/* the menu sheet's three tiles: the number over its label, each label balanced on at most two lines
   ("doors shut" over "in a row" at 390 px), never one word left alone under the number */
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.tiles3 .tl { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; padding: 12px 8px 11px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; text-align: center; box-shadow: var(--shadow); }
.tiles3 .tl b { display: block; font-family: var(--sans); font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.tiles3 .tl span { display: block; max-width: 100%; font-size: 12.5px; line-height: 1.25; color: var(--dim); white-space: normal; text-wrap: balance; overflow-wrap: break-word; }
/* the unlock row (pro-card.js unlock()): small, the Diamond plate's ice in both themes (the gem's colour,
   as the Pro card's), one still shine. The button is the title; its ::before stretches the tap over the row.
   iOS Safari once drew the gem up and to the left, clipped to a sliver by the row's rounded overflow (the
   owner, 2026-11-19). So nothing here can move or clip it: the shine is a background layer, not an overlay;
   the row has no overflow clip, no isolation and no filter; the gem is a fixed 34 by 35 box holding an svg
   with its pixel size written on it, no filter and no transform. */
.menu-pro { margin: 0 0 12px; }
.mu-pro { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: 60px; padding: 9px 14px 9px 12px; border-radius: 16px; color: #0b1a2e;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, .55) 44%, transparent 52%), radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .9), transparent 55%), linear-gradient(140deg, #f4fbff 0%, #bfe6ff 48%, #d9d2ff 75%, #a8d6f6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 24px -14px rgba(43, 89, 255, .6), 0 0 0 1px rgba(143, 201, 242, .9); }
.mu-gi { position: relative; display: block; flex: 0 0 34px; width: 34px; height: 35px; align-self: center; }
.mu-gi .plate.mu-gem { position: absolute; left: 0; top: 0; display: block; width: 34px; height: 35px; max-width: none; overflow: hidden; filter: none; transform: none; }
.mu-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mu-go { position: static; align-self: flex-start; border: 0; padding: 0; margin: 0; background: none; color: #0b1a2e; text-align: left;
  font: 700 16px/1.15 var(--sans); text-transform: none; letter-spacing: 0; cursor: pointer; }
.mu-go::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
.mu-go:focus { outline: none; }
.mu-go:focus-visible::before { outline: 2px solid #2b59ff; outline-offset: 2px; }
.mu-go:disabled { cursor: default; opacity: .8; }
.mu-t small { font-size: 12.5px; font-weight: 600; color: #2d4361; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-pro .chev { border-color: #2b59ff; }
.mu-pro:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px rgba(43, 89, 255, .7); }
.mu-pro .au-err { flex: 0 0 100%; margin: 6px 0 0; font-size: 13px; color: #b4232a; }
.mu-pro .au-err:empty { display: none; }
.prose h3, .sh-body h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; text-transform: none; margin: 18px 0 4px; }
.prose p { margin: 0 0 8px; }
/* how to play's clips: the real game, one control each, with one line under it */
.hw-clip { margin: 8px 0 14px; }
.hw-clip video { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--panel-2); box-shadow: 0 0 0 1px var(--line, rgba(127, 127, 127, .2)); }
.hw-clip figcaption { margin-top: 7px; font-size: 14px; line-height: 1.35; color: var(--ink); }
.bands, .ends { list-style: none; margin: 6px 0; padding: 0; }
.bands li, .ends li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.ends b { font-family: var(--sans); font-weight: 700; font-size: 13.6px; min-width: 112px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; text-align: center; box-shadow: var(--shadow); }
.tile b { display: block; font-family: var(--sans); font-weight: 700; font-size: 24px; line-height: 1; }
.tile span { font-size: 12px; color: var(--dim); }
.bandbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--panel-2); }
.bandbar i { display: block; height: 100%; }
.bandbar .green { background: var(--green); } .bandbar .yellow { background: var(--yellow); } .bandbar .orange { background: var(--orange); } .bandbar .red { background: var(--red); }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.recent .rd { font-family: var(--sans); font-weight: 700; font-size: 12.8px; width: 38px; }
.recent .ro { font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0.022em; width: 104px; }
.recent .rs { display: flex; flex-wrap: wrap; gap: 2px; }
.recent .sq { width: 9px; height: 9px; border-radius: 2px; }
.past-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.past-t { background: var(--panel); border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--dim); }
.past-t b { font-family: var(--sans); font-weight: 700; font-size: 16px; }
.past-t.empty { grid-column: 1 / -1; font-size: 13px; }
.lock { width: 16px; height: 14px; border: 2px solid currentColor; border-radius: 3px; position: relative; margin-top: 6px; }
.lock::before { content: ''; position: absolute; left: 2px; top: -9px; width: 8px; height: 8px; border: 2px solid currentColor; border-bottom: 0; border-radius: 6px 6px 0 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.set-row span { display: flex; flex-direction: column; }
.set-row b { font-family: var(--sans); font-weight: 700; font-size: 15.2px; text-transform: none; }
.set-row small { color: var(--dim); font-size: 12px; }
.sw { appearance: none; -webkit-appearance: none; width: 48px; height: 30px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; flex: 0 0 auto; transition: background .2s; margin: 0; }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.sw:checked { background: var(--signal); }
.sw:checked::after { transform: translateX(18px); }
.auth .seg { margin: 4px 0 14px; }
.auth form { display: flex; flex-direction: column; gap: 10px; }
.auth label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); }
.auth input { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 13px; }
.auth input:focus { border-color: var(--signal); outline: none; box-shadow: 0 0 0 3px var(--signal-soft); }
.auth .btn { width: 100%; }
.auth .btn.go { background: var(--signal); color: #fff; }
.auth .btn.ghost { margin-top: 10px; }
.au-err { min-height: 18px; margin: 0; color: var(--red); font-size: 13px; }
.src-tag { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.055em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--dim); margin: 0 0 12px; }
.src-tag.account { background: var(--signal); color: #fff; }
.p101-go { width: 100%; margin: 6px 0 2px; }
.p101 { margin: 10px 0; padding: 0; list-style: none; counter-reset: p; }
.p101 li { position: relative; margin: 0 0 8px; padding: 12px 14px 12px 50px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; counter-increment: p; }
.p101 li::before { content: counter(p); position: absolute; left: 14px; top: 10px; font-family: var(--sans); font-weight: 700; font-size: 19.2px; color: var(--signal); }
.p101 b { display: block; font-family: var(--sans); font-weight: 700; font-size: 15.2px; text-transform: none; line-height: 1.1; margin-bottom: 2px; }
.p101 span { color: var(--dim); font-size: 14px; }

/* ---- the pitching coach: a conversation set like the menus ---- */
.sheet.coach .sh-in { display: flex; flex-direction: column; height: 92vh; height: 92dvh; max-height: none; padding-top: 0; padding-bottom: 0; overflow: hidden; }
.sheet.coach .sh-h { flex: 0 0 auto; position: static; padding-top: 18px; border-bottom: 1px solid var(--line); }
.coach-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 14px 2px; }
.cm { max-width: 90%; font-size: 15px; line-height: 1.45; }
.cm.coach { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 6px 18px 18px 18px; padding: 10px 14px; box-shadow: var(--shadow); }
.cm.coach.card { padding: 0; background: none; border: 0; box-shadow: none; max-width: 100%; width: 100%; }
.cm.me { align-self: flex-end; background: var(--ink); color: var(--bg); border-radius: 18px 6px 18px 18px; padding: 9px 14px; font-weight: 600; }
.cm.pattern .lbl { display: block; }
.cm.none { font-weight: 700; border-left: 4px solid var(--green); }
.cm.dots { padding: 11px 14px; }
.typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--dim); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.cc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.cc.lesson { border-top: 4px solid var(--signal); }
.cc.pro { border-top: 4px solid var(--data); }
.cc p { margin: 0 0 6px; }
.cc-head { font-family: var(--sans); font-weight: 700; font-size: 19.2px; line-height: 1.05; margin: 2px 0 12px; text-transform: none; }
.cc-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.cc-mini { flex: 0 0 auto; }
.cc-sit { flex: 1; min-width: 0; font-size: 14px; }
.cc-why { margin: 0 0 8px; padding-left: 18px; }
.cc-why li { margin: 3px 0; }
.cc-next { font-weight: 700; }
.cc-num { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cc-res { font-weight: 700; color: var(--green); }
.key { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border-radius: 3px; }
.key.you { box-shadow: inset 0 0 0 2px var(--signal); }
.key.best { border: 2px dashed var(--green); }
.review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.rv-p { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--line-2); border-radius: 14px; padding: 9px 12px; }
.rv-p.green { border-left-color: var(--green); } .rv-p.yellow { border-left-color: var(--yellow); }
.rv-p.orange { border-left-color: var(--orange); } .rv-p.red { border-left-color: var(--red); }
.rv-p p { margin: 2px 0 0; font-size: 14px; }
.rv-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rv-h b { font-family: var(--sans); font-weight: 700; font-size: 14.4px; }
.rv-band { margin-left: auto; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.055em; text-transform: uppercase; color: var(--dim); }
.rv-call { font-weight: 600; }
.rv-why { color: var(--dim); }
.rv-best { font-size: 13px !important; }
.coach-chips { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.coach-chips:empty { border-top: 0; padding: 0; }
.chip { border: 0; background: var(--signal); color: #fff; border-radius: 999px; padding: 11px 18px; font-family: var(--sans); font-weight: 700; font-size: 13.6px; text-transform: uppercase; letter-spacing: 0.011em; }
.chip.quiet { background: var(--panel); color: var(--dim); border: 1px solid var(--line-2); }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 60; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- a desk ---- */
@media (min-width: 700px) {
  body { font-size: 16px; }
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .sheet { align-items: center; }
  .sh-in { border-radius: 26px; }
  .sheet.coach .sh-in { height: 86vh; }
}
@media (max-width: 370px) {
  .r-hero .outcome { font-size: 64px; }
  .vs-t b { font-size: 20.8px; }
  .kn b { font-size: 30.4px; }
}
/* the home on a desk: a wider page, the spot and the take on the left, the pitcher and the due up on the right */
@media (min-width: 880px) {
  body:not([data-screen]) .app, body[data-screen="s-home"] .app { max-width: 1040px; }
  /* the board on a desk: the panel on the left, the rows on the right */
  body[data-screen="s-board"] .app { max-width: 1040px; }
  #s-board { padding-top: 8px; }
  .bd-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
  .bd-grid > .card { margin-top: 0; }
  .bd-side { position: sticky; top: 12px; }
  .bd-head { font-size: 84px; }
  .bd-list { padding: 18px 14px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-in, .toast, .load-mark { transition: none; animation: none; }
}

/* the mound in 3D (3d/stage.js): a smooth canvas filling the scene, and the grid only while aiming */
.scene.s3d canvas { image-rendering: auto; width: 100%; height: 100%; }
.scene.s3d.flying .aim { opacity: 0; transition: opacity .15s; }
/* a pickoff: he steps off and the broadcast cuts to the throw, so the zone goes at once, not over a fade (ui.js pickoffIt) */
.scene.s3d.flying.po-off .aim { transition: none; }

/* ---- the release meter, the combo (meter-ui.js, the numbers in meter.js). The owner, 2026-10-26:
   "Vertical bar for power, and then the ring around the circle starts to go for accuracy". The
   panel covers the pitch buttons and the throw button as before (the thumb's target, the verb, the
   pitch and spot, the two stops as they land). The column stands beside the zone, away from the
   hitter. The ring closes on the crosshair once power is set. Frames move transforms only. The stop
   locks with the one word. Execution only: no grade colours (signal and data, never green to red). */
.dock.metering .arsenal, .dock.metering .btn.throw { visibility: hidden; }
/* THE PANEL IS NEVER SHORTER THAN WHAT IT SAYS (2026-11-01). It covers the dock, so its height came
   from the pitch buttons: a 2 pitch closer's dock (Tanner Scott, the first daily with one since the
   cue grew) was 181 px on a desk and the cue and the two stops needed 236, so the cue was clipped.
   It sits on the dock's bottom edge and is at least the dock's height; when the words need more it
   grows up, over the running game row and the step line, both hidden while it runs. */
.relm { position: absolute; z-index: 6; inset: auto 0 0; min-height: 100%; box-sizing: border-box; padding: 10px 14px 12px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(34, 43, 62, .96), rgba(11, 15, 23, .97)); color: #f4f5f7; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  box-shadow: 0 3px 0 var(--signal), 0 12px 30px rgba(11, 15, 23, .3); cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
:root[data-theme="dark"] .relm { box-shadow: 0 3px 0 var(--signal), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 12px 30px rgba(0, 0, 0, .45); }
.relm[hidden] { display: none; }
.relm:focus-visible { box-shadow: 0 3px 0 var(--signal), 0 0 0 3px var(--data); }
.rm-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; line-height: 1; }
.rm-verb { flex: none; font-family: var(--sans); font-weight: 700; font-size: 22.4px; letter-spacing: 0.011em; text-transform: uppercase; color: #fff; }
.rm-call { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: rgba(244, 245, 247, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-word { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: center;
  font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.033em; text-transform: uppercase;
  padding: 4px 9px 3px; border-radius: 6px; background: #f4f5f7; color: #0b0f17; }
.rm-word:empty { display: none; }
.relm.is-done .rm-call { display: none; }
.relm.is-done .rm-word { margin-right: auto; animation: rm-pop .26s cubic-bezier(.2, 1.6, .4, 1); }
/* the stop's word whole (2026-11-19): where the verb and "perfect release" do not share a line (every
   corner dock, the panel 216 to 264 px inside) the chip takes its own line under the verb */
.relm.is-done .rm-head { flex-wrap: wrap; row-gap: 8px; }
.relm.is-good .rm-word { background: var(--data); color: #fff; }
.relm.is-best .rm-word { background: var(--signal); color: #fff; }
@keyframes rm-pop { 0% { opacity: 0; transform: scale(1.5); } 100% { opacity: 1; transform: none; } }
/* the two stops, lit in turn, holding what each landed on */
/* NEVER PAST ITS EDGE (the owner, 2026-11-19: at 1010x1020 the 2 pitch desk dock's RELEASE ON TIME ran
   off the panel and the screen, ON TIME on two lines). The tracks may shrink below their words
   (minmax(0, 1fr)) and each step is its own container: a step too narrow for the word and the value
   on one line (under 180 px, so a 2 up phone or a 252 px corner dock) stacks the word over the value,
   each on one line. A long practice value ellipsizes inside its step, never past it. */
.rm-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rm-step { display: flex; align-items: center; min-width: 0; min-height: 40px; padding: 8px 12px; box-sizing: border-box; border-radius: 10px; container-type: inline-size;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: rgba(244, 245, 247, .5); transition: background .15s, color .15s; }
.rm-step[hidden] { display: none; }
.rm-sx { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-style: normal; }
.rm-sx b, .rm-sx span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-step b { flex: none; font-family: var(--sans); font-weight: 700; font-size: 15px; letter-spacing: 0.055em; text-transform: uppercase; }
.rm-step span { font-family: var(--sans); font-weight: 700; font-size: 13.6px; letter-spacing: 0.022em; text-transform: uppercase; color: #fff; font-variant-numeric: tabular-nums; }
@container (max-width: 155.98px) {
  .rm-sx { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; line-height: 1.1; }
  .rm-sx b { flex: none; max-width: 100%; font-size: 12px; }
  .rm-sx span { max-width: 100%; font-size: 14.4px; }
}
.rm-step.on { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.rm-step.perfect { background: var(--signal); box-shadow: none; color: #fff; }
.relm:not(.two) .rm-steps { grid-template-columns: minmax(0, 1fr); }
/* THE CUE (the owner, 2026-10-30: "It needs to be clear you must tap the bottom bar to time your
   pitches"). While the panel waits for a tap it says so in its biggest type, with a breathing dot
   so it reads as live, and the key on a keyboard. After a few pitches (meter-ui.js QUIET_AFTER) it
   steps down: the verb and the call on top, "tap" in the lit step. */
.rm-cue { display: none; align-items: center; gap: 12px; min-width: 0; }
.relm.cue:not(.is-done) .rm-cue { display: flex; }
.relm.cue:not(.is-done) .rm-head { display: none; }
.rm-cue-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.relm.cue:not(.is-done) { gap: 8px; }
.rm-sub { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rm-cue-t b { font-family: var(--sans); font-weight: 700; font-size: 22.4px; letter-spacing: 0.011em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-cue-t small { font-size: 13px; font-weight: 600; color: rgba(244, 245, 247, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-tap { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 7px var(--signal); }
.rm-tap::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2.5px solid var(--signal); opacity: 0; animation: rm-tap 1.1s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes rm-tap { 0% { opacity: .95; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }
.rm-key { display: none; flex: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(244, 245, 247, .72); }
.rm-key kbd { font: 700 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 2px 6px 1px; border-radius: 4px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 2px 0 rgba(255, 255, 255, .22); }
@media (hover: hover) and (pointer: fine) { .rm-key { display: flex; } }
.relm.cue:not(.is-done) .rm-step.on { box-shadow: inset 0 0 0 1.5px var(--signal); }
.relm:not(.cue) .rm-step.on span { color: #ffb59c; }
/* RE-AIM (the owner, 2026-10-30): the zone is a stop while the meter runs, so this is the way back to
   aiming. Small, in the panel's top corner, away from the thumb's target; gone once the release lands */
.rm-back { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 12px 0 8px;
  border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.066em; text-transform: uppercase; touch-action: manipulation; }
.rm-back svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rm-back:hover, .rm-back:focus-visible { background: rgba(255, 255, 255, .16); outline: 0; box-shadow: inset 0 0 0 1.5px #fff; }
.relm.is-done .rm-back { display: none; }
.relm:not(.is-done) .rm-head { padding-right: 96px; }

/* the column: power, beside the zone (placed by meter-ui.js in viewport px), thumb wide */
.rm-col { position: fixed; z-index: 7; width: 40px; border-radius: 11px; background: rgba(11, 15, 23, .72); cursor: pointer; touch-action: manipulation;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 6px 18px rgba(0, 0, 0, .35); }
.rm-col[hidden] { display: none; }
.rm-cclip { position: absolute; inset: 3px; border-radius: 8px; overflow: hidden; pointer-events: none; }
.rm-cfill, .rm-cgrad { position: absolute; inset: 0; will-change: transform; transform: translate3d(0, 100%, 0); }
.rm-cgrad { transform: translate3d(0, -100%, 0); background: linear-gradient(0deg, #5b82ff, #c9d4ff 45%, #ffffff 55%, #ff9a78 75%, var(--signal)); }
.rm-czones { position: absolute; inset: 3px; display: grid; grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.rm-czones i { border-bottom: 1px solid rgba(255, 255, 255, .32); }
.rm-czones i:last-child { border-bottom: 0; }
/* the top 3% is perfect power (meter.js PERFECT_E): a bright cap */
.rm-ctop { position: absolute; left: 3px; right: 3px; top: 3px; height: 3%; min-height: 5px; border-radius: 8px 8px 2px 2px; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 79, 31, .8); pointer-events: none; transform-origin: 50% 0; }
.rm-cneedle { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; will-change: transform; transform: translate3d(0, 0, 0); }
.rm-cneedle::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: -3px; height: 6px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px #0b0f17, 0 2px 8px rgba(0, 0, 0, .4); }
.rm-col .rm-lock { position: absolute; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2.5px solid #fff; opacity: 0; pointer-events: none; }
.rm-clbl { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.055em;
  text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .85); white-space: nowrap; pointer-events: none; }
.rm-col[data-zone="max"] .rm-clbl, .rm-col[data-zone="perfect"] .rm-clbl { color: #ffb59c; }
.rm-col.is-set { opacity: .8; }
/* a cap on power (meter-ui.js opts.cap): the top above it greyed and hatched, no perfect cap */
.rm-ccap { position: absolute; z-index: 1; left: 3px; right: 3px; top: 3px; height: 0; border-radius: 8px 8px 0 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(60, 66, 80, .92) 0 5px, rgba(40, 45, 56, .92) 5px 10px); box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .55); }
.rm-col.is-capped .rm-ctop { display: none; }
.rm-col.is-perfect .rm-ctop { background: var(--signal); }

/* the ring: centred on the crosshair, the target circle and the two bands round it (drawn once),
   the closing ring scaled down from its widest so it stays crisp, the stitches for a perfect */
.rm-ring { position: fixed; z-index: 7; width: 0; height: 0; pointer-events: none; }
.rm-ring[hidden] { display: none; }
.rm-rsvg, .rm-rmove { transition: opacity .22s; }
.rm-ring.is-out .rm-rsvg, .rm-ring.is-out .rm-rmove { opacity: 0; }
.rm-rsvg { position: absolute; left: 0; top: 0; overflow: visible; }
.rm-rgood { fill: none; stroke: rgba(91, 130, 255, .55); }
.rm-rbest { fill: none; stroke: var(--signal); filter: drop-shadow(0 0 4px rgba(255, 79, 31, .9)); }
.rm-rtarget { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 3.5; opacity: .85; }
.rm-rmove { position: absolute; left: 0; top: 0; border-radius: 50%; border: 14px solid #fff; box-shadow: 0 0 0 2px rgba(11, 15, 23, .55), inset 0 0 0 2px rgba(11, 15, 23, .55);
  box-sizing: border-box; will-change: transform; transform: scale(1); }
.rm-ring.is-best .rm-rmove { border-color: #ffd1c2; }
.rm-seams { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; overflow: visible; opacity: 0; pointer-events: none; }
.rm-seams .rm-hide { fill: rgba(255, 255, 255, .18); stroke: none; }
.rm-seam { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.5; }
.rm-stitch { fill: none; stroke: #e2262c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(255, 60, 40, .95)); }
/* the ball landed in the cell that was called: a quiet ring, once */
.aim .cell.m-painted::after { content: ''; position: absolute; inset: 6%; width: auto; height: auto; background: none; border-radius: 6px; box-shadow: 0 0 0 2px #fff, 0 0 12px 2px var(--signal); animation: rm-paint 1.3s ease-out forwards; pointer-events: none; }
@keyframes rm-paint { 0% { opacity: 0; transform: scale(.7); } 18% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .aim .cell.m-painted::after, .relm.is-done .rm-word, .rm-tap::after { animation: none; }
  .rm-tap::after { opacity: .6; transform: scale(1.35); }
}
/* ---- what each pitch does: the break preview's line on the grid, the glyph on each pitch
   button, and the pitch guide. The line sits under the zone numbers (they keep their place above
   it) and under the pitch dots, and takes no taps. */
.aim .gpath { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.aim .gpath path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.aim .gpath .gp-rim { stroke: rgba(8, 10, 16, .45); stroke-width: 4; }
.aim .gpath .gp-core { stroke: rgba(255, 250, 238, .92); stroke-width: 1.6; stroke-dasharray: 7 4; }
.aim .gpath .gp-end { fill: rgba(255, 250, 238, .95); stroke: rgba(8, 10, 16, .55); stroke-width: 1.5; }
.aim .gpath .gp-ref { stroke: rgba(255, 250, 238, .55); stroke-width: 1.3; stroke-dasharray: 1.5 3.5; }
.aim .gpath .gp-refend { fill: none; stroke: rgba(255, 250, 238, .6); stroke-width: 1.3; }
.pitch .glyph { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; margin-right: 3px; }
/* a selected button is ink in light mode: a thin white halo keeps a blue or red glyph readable on it.
   In dark mode it is white, where the colours read as they are */
:root:not([data-theme="dark"]) .pitch.sel .glyph { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 .5px #fff); }
.pitch { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.guide { padding: 6px 12px 8px; }
.gd-head { display: flex; align-items: center; gap: 7px; margin-bottom: 2px; }
.gd-head .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.gd-head b { font-family: var(--sans); font-weight: 700; font-size: 12.8px; line-height: 1; text-transform: none; }
.gd-head span { font-size: 12px; color: var(--dim); }
.gd-x { margin-left: auto; border: 0; background: none; color: var(--dim); font-size: 22px; line-height: 1; width: 32px; height: 24px; margin-right: -6px; padding: 0; }
.gd-body { display: flex; gap: 10px; align-items: flex-start; }
.gd-brk { flex: 0 0 76px; width: 76px; border-radius: 10px; color: var(--ink); }
.gd-brk text { font-size: 13px; }
.gd-brk text:first-of-type { display: none; }
.gd-txt { flex: 1 1 auto; min-width: 0; }
.gd-say { margin: 0 0 3px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.gd-nums { display: flex; gap: 12px; flex-wrap: wrap; }
.gd-nums span { display: flex; flex-direction: column; font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.gd-nums b { font-family: var(--sans); font-weight: 700; font-size: 12.8px; line-height: 1.05; color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.gd-foot { margin: 2px 0 0; font-size: 10px; color: var(--faint); line-height: 1.3; }


/* ---- home: a title screen. The stadium moves slowly behind; every box is one dark glass; one frame, one type scale ---- */
body[data-screen="s-home"] .app { border: 0; }
body[data-screen="s-home"] .hdr { background: transparent; }
body[data-screen="s-home"] .hdr-btn svg { stroke: #fff; }
body[data-screen="s-home"] .hdr-btn:hover { background: rgba(255, 255, 255, .14); }
body[data-screen="s-home"] .wm-light { display: none !important; }
body[data-screen="s-home"] .wm-dark { display: block !important; }
#s-home { position: relative; z-index: 1; padding: 0 16px max(24px, env(safe-area-inset-bottom)); color: #fff; }
.t-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #0b0f17; }
.t-scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 8, 14, .6) 0%, rgba(5, 8, 14, .2) 24%, rgba(5, 8, 14, .16) 50%, rgba(5, 8, 14, .78) 100%); }
:root:not([data-theme="dark"]) .t-scrim { background: linear-gradient(180deg, rgba(8, 14, 26, .5) 0%, rgba(8, 14, 26, .14) 26%, rgba(8, 14, 26, .12) 52%, rgba(8, 14, 26, .74) 100%); }
.t-bgi { position: absolute; top: 0; left: 50%; height: 100%; width: auto; min-width: 100%; object-fit: cover; opacity: 0; will-change: transform, opacity; transform: translate3d(-50%, 0, 0) scale(1.08);
  animation: tbg-fade 64s linear infinite both, tbg-pan-a 64s linear infinite both; }
.t-bgi:first-child { animation-delay: -4s; }
.t-bgi:nth-child(2) { animation-delay: 16s; animation-name: tbg-fade, tbg-pan-b; }
.t-bgi:nth-child(3) { animation-delay: 32s; }
.t-bgi:nth-child(4) { animation-delay: 48s; animation-name: tbg-fade, tbg-pan-b; }
.t-bg.paused .t-bgi { animation-play-state: paused; }
/* each still shows for about 20 s of the 64: a 4 s overlap with the next, a drift and a slow push in */
@keyframes tbg-fade { 0% { opacity: 0; } 6% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; } 100% { opacity: 0; } }
@keyframes tbg-pan-a { 0% { transform: translate3d(-53%, 0, 0) scale(1.08); } 31%, 100% { transform: translate3d(-47%, 0, 0) scale(1.16); } }
@keyframes tbg-pan-b { 0% { transform: translate3d(-47%, 0, 0) scale(1.16); } 31%, 100% { transform: translate3d(-53%, 0, 0) scale(1.08); } }

.title { display: flex; flex-direction: column; gap: 10px; padding-top: 0; }
.t-head { margin: 0; font-family: var(--hero); font-weight: 400; text-transform: uppercase; line-height: .96; letter-spacing: .01em; text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 8px 28px rgba(0, 0, 0, .55); }
.t-l1, .t-l2 { display: block; }
.t-l1 { font-size: 11.4vw; color: #fff; }
.t-l2 { margin-top: 6px; font-size: 16.6vw; color: var(--signal); }

.t-sit { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 20px; background: rgba(10, 14, 22, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.t-sit .h-occ { margin: 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.h-title { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.066em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.h-moment { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.055em; text-transform: uppercase; color: #fff; padding: 3px 9px 2px; border-radius: 999px; background: rgba(255, 79, 31, .3); box-shadow: inset 0 0 0 1.5px var(--signal); }
.t-sit .hbug-wrap { margin: 0; }
.t-sit .scorebar.hb { padding: 8px 12px; border-radius: 14px; box-shadow: none; background: rgba(0, 0, 0, .32); }
.t-sit .stakes { margin: 0; padding: 8px 10px; border-radius: 12px; background: rgba(43, 89, 255, .26); color: #fff; font-size: 14px; }
.t-sit .st-mark { flex-basis: 24px; height: 24px; border-radius: 7px; }
.t-sit .proxy { margin: 0 2px; text-align: left; font-size: 12px; color: rgba(255, 255, 255, .7); }
.t-sit .t-who { display: none; }
.t-who { min-width: 0; }
.t-sit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.t-sit > * { grid-column: 1 / -1; }
.t-sit > .t-who { display: flex; flex-direction: column; gap: 1px; grid-column: auto; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.t-who .tw-lbl { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.077em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.t-who .tw-name { font-family: var(--sans); font-weight: 700; font-size: 16.8px; line-height: 1.05; text-transform: none; color: #fff; overflow-wrap: anywhere; }
.t-who .tw-meta .hand { margin-right: 6px; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .16); font-family: var(--sans); font-size: 11px; font-style: normal; font-weight: 700; color: #fff; }
.t-who .tw-meta { font-size: 12px; color: rgba(255, 255, 255, .72); }
.t-who.due .tw-band { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--club, #5b6478) 0 58%, var(--club2, #5b6478) 58% 100%); }

.t-menu { display: flex; flex-direction: column; gap: 10px; }
.t-go { display: flex; flex-direction: column; gap: 6px; }
.btn.take { width: 100%; min-height: 60px; background: var(--signal); color: #fff; font-family: var(--hero); font-weight: 400; font-size: 32px; letter-spacing: .01em; text-transform: uppercase; border-radius: 14px; box-shadow: 0 3px 0 #c43a12, 0 10px 30px rgba(255, 79, 31, .35); }
.btn.take:active { transform: translateY(2px); box-shadow: 0 1px 0 #c43a12; }
.t-go .streak { margin: 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .78); }
.t-go .streak b { color: #fff; }
#s-home .done { margin: 0; }
#s-home .done::before, #s-home .done::after { display: none; }
.t-list { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(10, 14, 22, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.t-list button { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px 0 18px; border: 0; background: transparent; color: #fff; text-align: left;
  font-family: var(--sans); font-weight: 700; font-size: 16.8px; letter-spacing: 0; text-transform: none; }
.t-list button + button { border-top: 1px solid rgba(255, 255, 255, .09); }
.t-list button::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--signal); transform: scaleY(0); transition: transform .12s; }
.t-list button::after { content: ''; width: 9px; height: 9px; border-top: 2.5px solid rgba(255, 255, 255, .5); border-right: 2.5px solid rgba(255, 255, 255, .5); transform: rotate(45deg); }
.t-list button:hover, .t-list button:focus-visible, .t-list button:active { background: rgba(255, 255, 255, .14); outline: 0; }
.t-list button:hover::before, .t-list button:focus-visible::before, .t-list button:active::before { transform: scaleY(1); }
.t-list button:focus-visible::after, .t-list button:hover::after { border-color: var(--signal); }
#s-home .legal { margin-top: 8px; color: rgba(255, 255, 255, .6); }
#s-home .legal a, #s-home .legal .src { color: rgba(255, 255, 255, .6); }
.legal-mark { opacity: .8; }

/* the first paint: the title slams in, then the spot and the menu slide up. Once. */
@keyframes t-slam { 0% { opacity: 0; transform: translateX(-36px) scale(1.1); } 100% { opacity: 1; transform: none; } }
@keyframes t-up { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: none; } }
.t-l1 { animation: t-slam .34s cubic-bezier(.2, .9, .3, 1) both; }
.t-l2 { animation: t-slam .38s .1s cubic-bezier(.2, .9, .3, 1) both; }
.t-sit { animation: t-up .45s .28s ease-out both; }
.t-menu { animation: t-up .45s .4s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .t-l1, .t-l2, .t-sit, .t-menu { animation: none; }
  .t-bgi { animation: none; transform: translate3d(-50%, 0, 0) scale(1.08); }
  .t-bgi:first-child { opacity: 1; }
  .t-bgi:not(:first-child) { display: none; }
}

/* a desk: the title screen's column hangs on the left and the stadium shows on the right */
@media (min-width: 700px) {
  body[data-screen="s-home"] .app { max-width: none; }
  body[data-screen="s-home"] .hdr { padding: 0 24px; }
  #s-home { padding-left: 5vw; padding-right: 5vw; }
  .title { max-width: 540px; gap: 18px; padding-top: 14px; }
  .t-l1 { font-size: 58px; }
  .t-l2 { font-size: 86px; }
  .t-sit { padding: 14px; }
}

/* THE BOTTOM BANNER (ads.js, the owner 2026-11-01: "we can adjust layouts and gameplay so nothing is
   clashing"). Only while body.rtg-sticky-on is set, so a closed banner leaves the layout as it was.
   The home tightens and its links become a two row panel (one row on a desk), so on a tall phone
   every control sits above the banner. On a short one, homeFold() in ui.js puts the first control
   that would sit under it below the fold instead. */
body.rtg-sticky-on .title { gap: 8px; }
body.rtg-sticky-on .t-sit { gap: 6px; }
body.rtg-sticky-on .t-menu { gap: 8px; }
/* six links on a phone: three on top, stats and settings, then the voice of the ump across the
   panel with its mic and its sub line (twelve columns: 4 4 4, 6 6, 12). The same up to a desk's
   two columns, where the menu is a list again */
body.rtg-sticky-on .t-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
body.rtg-sticky-on .t-list button { grid-column: span 4; justify-content: center; min-height: 40px; padding: 0 6px; font-size: 17px; text-align: center; white-space: nowrap; }
body.rtg-sticky-on .t-list button + button { border-top: 0; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .09); }
/* two rows of three (challenges joined the second, 2026-11-18), then the voice of the ump across the panel */
body.rtg-sticky-on .t-list button:nth-child(4) { box-shadow: none; }
body.rtg-sticky-on .t-list button:nth-child(7) { grid-column: span 12; box-shadow: none; }
body.rtg-sticky-on .t-list button:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .09); }
body.rtg-sticky-on .t-list button::after { display: none; }
@media (max-width: 370px) { body.rtg-sticky-on .t-list button { font-size: 15.5px; } }
@media (min-width: 700px) {
  body.rtg-sticky-on .title { gap: 12px; }
  body.rtg-sticky-on .t-list button { font-size: 16px; }
}
/* the result: the after-the-outing list is a little shorter on a phone, and on a desk the rail stops
   at the banner so its foot is never behind it */
body.rtg-sticky-on .nv { min-height: 48px; }
@media (min-width: 1100px) {
  body.rtg-sticky-on .r-rail { bottom: var(--sticky-ad-h, 0px); }
}
@media (min-width: 1700px) {
  body.rtg-sticky-on .nv { min-height: 54px; }
}

/* ---- THE MOUND, FULL SCREEN (the owner, 2026-10-24: "the game should take up the entire screen with
   the box score in a corner, the pitch selection there for you"). The 3D scene fills the viewport and
   the HUD floats over it like a console game: the scorebug and the batter card top left, the menu
   top right, the pitch buttons and THROW in the dock (along the bottom on a phone held upright, the
   bottom right corner otherwise), the play by play as a lower third that fades. Every panel is glass
   (a semi-opaque fill, never a backdrop blur: a blur over the live canvas redraws every frame and
   lagged iPhones, 2026-11-03) and carries data-hud; none of them covers the zone
   (ui.js placeHud, and the browser check measures it). Everything here is scoped to the mound. */
#s-mound {
  --g: rgba(255, 255, 255, .8); --g-strong: rgba(255, 255, 255, .9); --g-ink: #0b0f17; --g-dim: #4a5366; --g-line: rgba(11, 15, 23, .1); --g-2: rgba(11, 15, 23, .06);
  --g-sel: #0b0f17; --g-sel-ink: #fff; --g-shadow: 0 6px 22px rgba(8, 12, 20, .22);
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px);
  --gut: 12px; --tap: 44px; --col: 100%; --dock-w: auto;
}
:root[data-theme="dark"] #s-mound {
  --g: rgba(12, 16, 25, .76); --g-strong: rgba(14, 19, 29, .9); --g-ink: #f4f5f7; --g-dim: #a3acbd; --g-line: rgba(255, 255, 255, .12); --g-2: rgba(255, 255, 255, .08);
  --g-sel: #f4f5f7; --g-sel-ink: #0b0f17; --g-shadow: 0 8px 26px rgba(0, 0, 0, .42);
}
body[data-screen="s-mound"] { overflow: hidden; }
body[data-screen="s-mound"] .hdr { display: none; }
body[data-screen="s-mound"] .app { max-width: none; border: 0; }
#s-mound.on { display: block; position: fixed; inset: 0; z-index: 20; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; background: #0b1020; }
#s-mound .scene { position: absolute; inset: 0; overflow: hidden; background: #0b1020; touch-action: manipulation; }
.mhud { position: absolute; inset: 0; z-index: 10; pointer-events: none; color: var(--g-ink); }
.mhud [data-hud] { pointer-events: auto; }
.mh-card, .mh-menu, .arsenal, .runbar, .msheet, .pad-say { background: var(--g); border: 1px solid var(--g-line); box-shadow: var(--g-shadow); color: var(--g-ink); }

/* top left: the scorebug, the batter card under it, the proxy note */
.mh-tl { position: absolute; top: calc(var(--st) + var(--gut)); left: calc(var(--sl) + var(--gut)); width: calc(var(--col) - var(--gut) * 2 - var(--sl) - var(--sr));
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mh-bug { max-width: calc(100% - var(--tap) - 8px); gap: 10px; padding: 6px 12px 6px 10px; border-radius: 12px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 24px), linear-gradient(180deg, rgba(26, 33, 48, .94), rgba(11, 15, 23, .94));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 6px 22px rgba(0, 0, 0, .3); }
.mh-bug .sb-team .tm { max-width: 76px; }
.mh-bug .sb-outs-wrap { gap: 4px; }
.mh-bug .sb-bases { width: 32px; height: 24px; }
.mh-bug .sb-outs { gap: 4px; height: 8px; }
.mh-bug .sb-outs i { width: 8px; height: 8px; }
.mh-card { align-self: stretch; border-radius: 14px; padding: 5px 5px 5px 12px; min-width: 0; }
/* an upright phone: the card stops short of the top right rail (menu, sound, home), as the scorebug does */
#s-mound .mh-card { margin-right: calc(var(--tap) + 8px); }
/* THE AT BAT LINE: one slim row (the owner, 2026-10-27). The eyebrow carries at bat, his side and
   his line; the name under it; SCOUT on the right opens the drawer. */
.bb-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bb-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bb-eye { display: flex; align-items: baseline; gap: 7px; min-width: 0; white-space: nowrap; line-height: 1.1; }
.bb-ab { flex: none; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--signal); }
/* light glass over a sunlit field is mid grey green, where orange text cannot reach AA (QA, 2026-11-02).
   In light the label is a small signal chip with ink on it (5.6:1 whatever is behind the glass) */
:root:not([data-theme="dark"]) .bb-ab { color: #0b0f17; background: var(--signal); padding: 2px 5px 1px; border-radius: 4px; letter-spacing: .06em; }
.bb-hand { flex: none; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0; text-transform: uppercase; color: var(--g-dim); }
.bb-line { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0; color: var(--g-ink); opacity: .86; font-variant-numeric: tabular-nums; }
/* a narrow phone: the slash line keeps its room beside AT BAT, the side and SCOUT (Inter runs wider than the old face) */
@media (max-width: 379px) {
  .bb-eye { gap: 5px; }
  .bb-hand { font-size: 10.5px; letter-spacing: 0; }
  .bb-line { font-size: 11px; }
  .bb-drawer { padding: 0 8px 0 10px; gap: 4px; }
  :root:not([data-theme="dark"]) .bb-ab { padding: 2px 4px 1px; letter-spacing: .04em; }
}
/* WHO YOU PITCH AS (the owner, 2026-11-02): one slim line over the at bat row. The label is AT BAT's
   type in the quiet ink (AT BAT keeps the accent), the name in the card's ink, the club dim. */
.bb-pit { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; line-height: 1.1; padding: 1px 0 4px; margin: 0 4px 4px 0; border-bottom: 1px solid var(--g-line); }
.bb-pk { flex: none; font-family: var(--sans); font-weight: 700; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--g-dim); }
.bb-pn { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--sans); font-weight: 700; font-size: 12px; color: var(--g-ink); }
.bb-pt { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--sans); font-weight: 600; font-size: 11px; color: var(--g-dim); }
.bb-pt:not(:empty)::before { content: '\00b7'; margin-right: 6px; }
.bb-nm { display: block; min-width: 0; font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.05; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 2px; }
.bb-drawer { display: inline-flex; align-items: center; gap: 6px; padding: 0 11px 0 13px; }
.bb-drawer svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.bb-drawer[aria-expanded="true"] svg { transform: rotate(180deg); }
/* THE DRAWER: the same card, grown down. It shows at once (the layout is final the moment it opens,
   so the minimap and the sheets place against it), and only its contents fade in. */
.bb-drawer-box { margin: 6px 4px 2px -4px; padding-top: 7px; border-top: 1px solid var(--g-line); }
.bb-drawer-box:not([hidden]) { animation: bb-in .16s ease-out; }
@keyframes bb-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .bb-drawer-box:not([hidden]) { animation: none; } .bb-drawer svg { transition: none; } }
.mh-card .legend { display: flex; align-items: center; gap: 4px; flex: none; font-family: var(--sans); font-weight: 600; font-size: 12.5px; color: var(--g-dim); font-variant-numeric: tabular-nums; padding-right: 2px; }
.mh-card .legend i { width: 10px; height: 10px; border-radius: 3px; }
.mh-card .legend .lo { background: rgb(59, 111, 216); }
.mh-card .legend .hi { background: rgb(221, 64, 52); margin-left: 5px; }
.heatbar { display: flex; align-items: center; gap: 10px; }
.bb-togs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.bb-togs .mh-tog { min-width: 0; }
.mh-tog { flex: none; height: var(--tap); min-width: var(--tap); padding: 0 12px; border-radius: 11px; border: 1px solid var(--g-line); background: var(--g-2); color: var(--g-ink);
  font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.mh-tog.on, .mh-tog[aria-expanded="true"] { background: var(--signal); border-color: var(--signal); color: #fff; }
.mh-card .seg { flex: 1 1 auto; min-width: 0; height: var(--tap); padding: 0; background: var(--g-2); box-shadow: inset 0 0 0 1px var(--g-line); border-radius: 11px; }
.mh-card .seg button { flex: 1 1 0; min-width: 0; height: 100%; padding: 0 8px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--g-dim); }
.mh-card .seg button[aria-selected="true"] { background: var(--g-sel); color: var(--g-sel-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
/* earlier at bats: one chip each; a tap shows that at bat's pitches on the zone */
/* the earlier at bats: ONE row that scrolls sideways, newest in view, so the card never grows with the
   outing (a taller card left the stage too little room and slid the zone off the screen) */
.pa-hist { position: relative; display: flex; flex-wrap: nowrap; gap: 5px; margin-top: 7px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.pa-hist::-webkit-scrollbar { display: none; }
.pa-hist .pa-chip { flex: none; scroll-snap-align: end; }
.pa-chip { height: 30px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--g-line); background: var(--g-2); color: var(--g-dim); font-size: 12px; white-space: nowrap; }
.pa-chip b { color: var(--g-ink); font-weight: 700; }
.pa-chip.on { background: var(--g-sel); border-color: var(--g-sel); color: var(--g-sel-ink); }
.pa-chip.on b { color: var(--g-sel-ink); }
.mh-card .dotkey .pd { box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.mh-tl .proxy.pin { margin: 0; pointer-events: none; background: rgba(10, 14, 22, .82); color: #dfe3ea; padding: 3px 9px; border-radius: 7px; font-size: 11px; }

/* top right: the menu (a header, so a tap on it never skips the play), the minimap under the card */
.mh-tr { position: absolute; top: calc(var(--st) + var(--gut)); right: calc(var(--sr) + var(--gut)); }
.mh-menu { width: var(--tap); height: var(--tap); border-radius: 13px; display: grid; place-items: center; padding: 0; }
.mh-menu svg { width: 21px; height: 21px; fill: none; stroke: var(--g-ink); stroke-width: 1.9; stroke-linecap: round; }
#s-mound .mini { top: calc(var(--hud-top, 200px) + 8px); right: calc(var(--sr) + var(--gut)); background: rgba(11, 15, 23, .72); }

/* the dock: the pitch buttons in one glass tray, THROW under them, the step prompt over them */
.dock { position: absolute; left: calc(var(--sl) + var(--gut)); right: calc(var(--sr) + var(--gut)); bottom: calc(var(--sb) + var(--gut)); width: var(--dock-w);
  display: flex; flex-direction: column; gap: 6px; }
.pad-say { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); margin: 0; max-width: 100%; height: 28px; line-height: 26px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.pad-say:empty { display: none; }
/* THE DOCK GRID (the owner, 2026-10-26: room for the names and a speed range). Two rows stay short
   (44 px buttons, 4 px gaps): the stage frames the set between the batter card and the dock, and a
   taller dock left a long card too little room (the set slid off the left edge on a phone). Six tracks; a button
   takes two (three a row) or three (two a row), so 2 to 6 pitches never squeeze: 5 is 3 + 2, 6 is 3 + 3. */
.arsenal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 15px; }
.arsenal .pitch { grid-column: span 2; }
.arsenal[data-n="1"] .pitch { grid-column: span 6; }
.arsenal[data-n="2"] .pitch, .arsenal[data-n="4"] .pitch, .arsenal[data-n="5"] .pitch:nth-child(n+4) { grid-column: span 3; }
/* BIG PITCH BUTTONS: the name on top; the key, his speed range and the break glyph under it */
.pitch { min-width: 0; border: 1px solid var(--g-line); background: var(--g-2); color: var(--g-ink); border-radius: 11px; padding: 3px 6px 3px 11px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "n n n" "k s v"; align-items: center; column-gap: 5px; row-gap: 3px;
  min-height: 44px; position: relative; overflow: hidden; text-align: left; transition: background .12s, border-color .12s; }
.pitch:hover { border-color: var(--g-dim); }
.pk { grid-area: k; flex: none; width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center; background: var(--g-2); border: 1px solid var(--g-line);
  font-family: var(--sans); font-weight: 700; font-size: 11px; line-height: 1; color: var(--g-dim); }
.pt { display: contents; }
.pt b { grid-area: n; font-family: var(--sans); font-weight: 700; font-size: 13.6px; line-height: 1; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-right: 2px; }
.ps { grid-area: s; min-width: 0; font-family: var(--sans); font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: 0.006em; white-space: nowrap; overflow: hidden; text-overflow: clip;
  color: inherit; opacity: .82; font-variant-numeric: tabular-nums; }
.ps small { font-size: .72em; font-weight: 600; letter-spacing: .02em; margin-left: 2px; }
.pv { grid-area: v; flex: none; display: flex; align-items: center; line-height: 1; }
.pitch .glyph { display: block; width: 15px; height: 15px; margin: 0; }
.pitch.sel { background: var(--g-sel); color: var(--g-sel-ink); border-color: var(--pc, var(--g-sel)); box-shadow: inset 0 0 0 2px var(--pc, transparent); }
.pitch.sel::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--pc, var(--signal)); }
.pitch.sel .pk { background: var(--pc, var(--signal)); border-color: var(--pc, var(--signal)); color: #0b0f17; }
/* each pitch type's own colour (TYPE_COLORS in ui.js): a bar down the button's edge */
.pitch::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--pc, transparent); }
/* ONE CLEAR THROW BUTTON: always the word throw; lit when a pitch and a spot are picked */
.pad { position: relative; }
.btn.throw { width: 100%; height: 54px; min-height: 54px; margin: 0; border-radius: 14px; background: var(--signal); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1;
  font-family: var(--sans); font-weight: 700; text-transform: uppercase; box-shadow: 0 3px 0 #c43a12, 0 8px 24px rgba(0, 0, 0, .3); padding: 4px 14px; }
.btn.throw b { font-size: 28px; letter-spacing: .03em; line-height: 1; }
.btn.throw span { font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.25; text-transform: none; opacity: .92; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.throw:disabled { background: var(--g); color: var(--g-dim); border: 1px solid var(--g-line); box-shadow: var(--g-shadow); }
.btn.throw:disabled b { opacity: .75; }
.btn.throw.shut { background: #0b0f17; color: #fff; box-shadow: 0 3px 0 var(--signal), 0 8px 24px rgba(0, 0, 0, .3); }

/* the play by play: a lower third over the scene after each pitch, then it fades. The result tag on
   signal, the line on ink glass. It takes no tap and is never a grade. */
.pbp { position: absolute; left: 0; right: 0; bottom: calc(100% + 44px); z-index: 2; display: flex; justify-content: center; align-items: stretch; margin: 0; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.pbp.show { opacity: 1; transform: none; }
.pbp-tag { flex: none; display: flex; align-items: center; font-family: var(--sans); font-weight: 700; font-size: 13.6px; letter-spacing: 0.033em; text-transform: uppercase;
  color: #fff; background: var(--signal); border-radius: 9px 0 0 9px; padding: 6px 11px 5px; line-height: 1.1; }
.pbp-tag:empty { display: none; }
.pbp-rest { min-width: 0; display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 12px; font-size: 14px; font-weight: 600; color: #f4f5f7;
  background: rgba(11, 15, 23, .9); border-radius: 0 9px 9px 0; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.pbp-tag:empty + .pbp-rest { border-radius: 9px; }
.mh-card .seg button[aria-selected="true"] { border-radius: 11px; }
.pbp-rest:empty { display: none; }

/* the sheets over the scene (scout, pitch guide): placed by ui.js placeSheet, never over the zone */
.msheet { position: absolute; z-index: 12; left: calc(var(--sl) + var(--gut)); right: calc(var(--sr) + var(--gut)); overflow-y: auto; border-radius: 16px; background: var(--g-strong); }
.msheet .gd-x { width: var(--tap); height: var(--tap); margin: -10px -10px -10px auto; }
#m-scout { bottom: calc(var(--sb) + var(--gut)); }
#m-scout.top, #m-guide { bottom: auto; }
#m-guide.low { top: auto; bottom: calc(var(--sb) + var(--gut)); }

@media (prefers-reduced-motion: reduce) { .pbp { transition: none; } }

/* ---- the running game (rules 7): a row over the pitch buttons while a runner is on. QUICK DELIVERY
   is a switch (the slide step), PICKOFF a button with the disengagements left as two ticks. Glass,
   thumb tall, in the dock (data-hud), so never over the zone, the batter or the plate. */
.runbar { display: flex; gap: 4px; padding: 4px; border-radius: 15px; }
.runbar[hidden] { display: none; }
.dock.metering .runbar, .dock.replaying .runbar { visibility: hidden; }
.rb-quick, .rb-po { min-width: 0; min-height: 44px; margin: 0; padding: 5px 10px 5px 12px; border-radius: 12px; border: 1px solid var(--g-line); background: var(--g-2); color: var(--g-ink);
  display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rb-quick { flex: 1 1 auto; }
.rb-po { flex: 0 0 39%; }
.rb-po[hidden] { display: none; }
.rb-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.rb-t b { font-family: var(--sans); font-weight: 700; font-size: 12.8px; line-height: 1; letter-spacing: 0.017em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-t small { font-size: 10.5px; font-weight: 600; line-height: 1.15; color: var(--g-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-sw { flex: none; position: relative; width: 36px; height: 22px; border-radius: 11px; background: var(--g-line); box-shadow: inset 0 0 0 1px var(--g-line); transition: background .15s; }
.rb-sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .15s; }
.rb-quick[aria-pressed="true"] { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.rb-quick[aria-pressed="true"] .rb-sw { background: var(--signal); }
.rb-quick[aria-pressed="true"] .rb-sw::after { transform: translateX(14px); }
.rb-po .ab-dots { display: inline-flex; gap: 3px; flex: none; }
.rb-po .ab-dots i { width: 6px; height: 14px; border-radius: 2px; background: var(--g-line); }
.rb-po .ab-dots i.on { background: var(--data); box-shadow: 0 0 6px rgba(91, 130, 255, .5); }
.rb-po.balk small { color: var(--signal); }
.rb-quick:active, .rb-po:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) { .rb-sw, .rb-sw::after { transition: none; } }

/* ---- ABS challenges (rules 4). The scorebug's marks, the button beside THROW, the replay ---- */
/* challenges left a side: two ticks after the club's name, lit while one is left */
.sb-ch { display: inline-flex; gap: 3px; flex: none; margin-left: -2px; }
.sb-ch[hidden] { display: none; }
.sb-ch i { width: 5px; height: 9px; border-radius: 1.5px; background: rgba(255, 255, 255, .14); }
.sb-ch i.on { background: #8fb0ff; box-shadow: 0 0 6px rgba(91, 130, 255, .55); }
.mh-bug .sb-team .tm { max-width: 64px; }
/* the button: ink glass with a data blue edge, beside THROW, as tall as it */
.pad.abs-live { display: flex; gap: 8px; }
.pad.abs-live .btn.throw { flex: 1 1 auto; min-width: 0; width: auto; }
.btn.abs-b { position: relative; flex: 0 0 42%; height: 54px; min-height: 54px; margin: 0; padding: 4px 8px; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; line-height: 1;
  background: rgba(11, 15, 23, .93); color: #fff; border: 1.5px solid var(--data); box-shadow: 0 3px 0 #1c3db8, 0 8px 24px rgba(0, 0, 0, .3);
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  animation: ab-in .22s ease-out; }
.btn.abs-b[hidden] { display: none; }
/* the label fits its button on one line at every size (QA, 2026-11-05: an iPhone read "HALLENG", 142 px of
   label in 132 of room, clipped at both ends). Sized by measurement with Inter loaded: 9 capitals at
   .02em run 6.27em, so each size below is the largest whole px that clears its room with a margin.
   test/check-browser.mjs step 16 holds it at the phone, short, sideways and desk sizes. */
.btn.abs-b b { font-size: 18px; letter-spacing: .02em; white-space: nowrap; }
.ab-dots { display: flex; gap: 5px; }
.ab-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); }
.ab-dots i.on { background: #8fb0ff; border-color: #8fb0ff; }
.btn.abs-b:active { transform: translateY(2px); box-shadow: 0 1px 0 #1c3db8, 0 4px 12px rgba(0, 0, 0, .3); }
/* the last call window: a clock drains along the bottom, then the result comes up */
.ab-clock { display: none; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--data); transform-origin: left center; }
.btn.abs-b.clock .ab-clock { display: block; animation: ab-clock var(--clock, 3.5s) linear forwards; }
@keyframes ab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ab-clock { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* the replay: over the dock for a moment, ink in both themes like the meter and the lower third */
.dock.replaying .arsenal, .dock.replaying .pad, .dock.replaying .pad-say { visibility: hidden; }
.absr { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 26, 40, .92), rgba(8, 11, 18, .94)); color: #f4f5f7; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .42); cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; --ar: 1; }
.absr[hidden] { display: none; }
.absr.show { opacity: 1; transform: none; }
.absr.quick { --ar: .67; }
.absr::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--data); }
.absr.over::before { background: var(--signal); }
.ar-zone { flex: none; align-self: stretch; width: 104px; display: grid; place-items: center; }
.ar-zone svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ar-plate { fill: rgba(255, 255, 255, .06); stroke: #f4f5f7; stroke-width: .7; }
.ar-grid line { stroke: rgba(255, 255, 255, .16); stroke-width: .35; }
.ar-edge { stroke: #8fb0ff; stroke-width: .6; stroke-dasharray: 1.2 .9; opacity: 0; }
.absr.over .ar-edge { stroke: var(--signal); }
.ar-ball { stroke: #fff; stroke-width: .45; transform-box: fill-box; transform-origin: center; }
.ar-txt { min-width: 0; display: flex; flex-direction: column; gap: 5px; line-height: 1; }
.ar-k { font-family: var(--sans); font-weight: 700; font-size: 12.5px; letter-spacing: 0.055em; text-transform: uppercase; color: #a3acbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-k b { color: #8fb0ff; font-weight: 700; margin-right: 3px; }
.ar-d { font-size: 14px; font-weight: 600; color: #dfe3ea; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-d b { font-family: var(--sans); font-weight: 700; font-size: 13.6px; letter-spacing: 0.022em; text-transform: uppercase; color: #fff; margin-right: 4px; }
.ar-v { align-self: flex-start; font-family: var(--sans); font-weight: 700; font-size: 20.8px; letter-spacing: 0.022em; text-transform: uppercase; white-space: nowrap;
  padding: 5px 10px 4px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; }
.absr.over .ar-v { background: var(--signal); }
/* the beats: the ball lands, the line to the edge and the inches, then the verdict */
.absr.show .ar-ball { animation: ar-ball calc(.28s * var(--ar)) cubic-bezier(.2, .9, .3, 1.2) both; }
.absr.show .ar-edge { animation: ar-fade calc(.2s * var(--ar)) calc(.3s * var(--ar)) both; }
.absr.show .ar-d { animation: ar-up calc(.2s * var(--ar)) calc(.32s * var(--ar)) both; }
.absr.show .ar-v { animation: ar-stamp calc(.26s * var(--ar)) calc(.62s * var(--ar)) cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes ar-ball { from { opacity: 0; transform: scale(2.4); } to { opacity: 1; transform: none; } }
@keyframes ar-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ar-up { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes ar-stamp { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .absr { transition: none; }
  .absr.show .ar-ball, .absr.show .ar-d, .absr.show .ar-v, .btn.abs-b { animation: none; }
  .absr.show .ar-edge { animation: none; opacity: 1; }
}
/* an overturned call: a data blue ring on its pitch dot, and a tag on its at bat's chip */
.dots .pd.abs { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px #5b82ff; }
.dots .pd.ball.abs { box-shadow: inset 0 0 0 2px var(--dim), 0 0 0 1.5px var(--bg), 0 0 0 3px #5b82ff; }
.dotkey .pd.abs { box-shadow: 0 0 0 1.5px #5b82ff; }
.pa-abs { display: inline-block; margin-left: 5px; padding: 2px 4px 1px; border-radius: 4px; background: #2b59ff; color: #fff; font-style: normal;
  font-family: var(--sans); font-weight: 700; font-size: 10px; letter-spacing: 0.044em; text-transform: uppercase; vertical-align: 1px; }

/* sideways (a phone held flat, a desk): the left column, the dock in the bottom right corner as a
   list, the play by play bottom left. The zone keeps the middle. */
/* THE CORNER LAYOUT (the owner, 2026-10-27: at half a desk's width "the batter is cropped and huge",
   the card full width over his head, the pitches in two rows across the bottom). The card top left
   and the pitch list in the bottom right corner whenever the screen is sideways, or upright but
   big enough to have corners (a tablet, a desk window at half width): 700 px wide and 600 tall. Only a
   phone held upright keeps the full width card and the dock along the bottom. ui.js wideHud asks
   the same question (WIDE_HUD). */
@media (orientation: landscape), (min-width: 700px) and (min-height: 600px) {
  #s-mound { --col: 330px; --dock-w: 252px; }
  .dock { left: auto; }
  /* no wider than the column (the menu button sits in the right corner here, not beside the bug): a long
     club name ellipsizes instead of widening the bar over the hitter (844x390: 317 px of a 260 px column) */
  #s-mound .mh-bug { max-width: 100%; }
  #s-mound .mh-card { margin-right: 0; }
  /* a list: one pitch a row, the key, the name, the speed and the glyph on one line */
  #m-arsenal[data-n] { grid-template-columns: 1fr; gap: 5px; }
  #m-arsenal[data-n] .pitch { grid-column: auto; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "k n s v"; column-gap: 9px;
    min-height: var(--tap); padding: 4px 10px 4px 12px; }
  #m-arsenal[data-n] .pt b { font-size: 18px; }
  #m-arsenal[data-n] .pk { width: 22px; height: 22px; font-size: 13px; }
  /* the lower third in the bottom left corner, a broadcast's place for it */
  .pbp { position: fixed; left: calc(var(--sl) + var(--gut)); right: auto; bottom: calc(var(--sb) + var(--gut)); width: max-content;
    max-width: calc(100vw - var(--dock-w) - var(--gut) * 3 - var(--sl) - var(--sr)); justify-content: flex-start; }
  .msheet { right: auto; width: calc(var(--col) - var(--gut) * 2); }
  #s-mound .mini { top: calc(var(--st) + var(--gut) + var(--tap) * 3 + 24px); }
  /* the dock is a narrow tall corner: the replay stacks, the zone over the words */
  .absr { flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 12px 14px; text-align: center; }
  .ar-zone { align-self: center; width: auto; height: min(46%, 150px); aspect-ratio: 1; flex: 0 1 auto; min-height: 0; }
  .ar-txt { align-items: center; max-width: 100%; }
  .ar-v { align-self: center; }
  /* the narrow dock: the challenge label at 13 px fits its 88 px of room (81.5 px) */
  .btn.abs-b { padding: 4px 6px; }
  .btn.abs-b b { font-size: 13px; }
}
/* a phone on its side is short: two columns of pitches */
@media (orientation: landscape) and (max-height: 520px) {
  /* the at bat line on a phone on its side: the column is 284 px, too narrow for AT BAT, his side, the
     slash line and SCOUT on one row (the line was clipped to 56 of 118 px). The slash line takes its own
     row under AT BAT and his side, as wide as the card's text, and the name stays under it */
  .bb-eye { gap: 2px 5px; flex-wrap: wrap; }
  .bb-hand { font-size: 10px; letter-spacing: 0; }
  .bb-line { font-size: 10.5px; flex-basis: 100%; }
  .bb-drawer { padding: 0 8px 0 10px; gap: 4px; }
  :root:not([data-theme="dark"]) .bb-ab { padding: 2px 4px 1px; letter-spacing: .04em; }
  #s-mound { --col: 284px; --dock-w: 244px; }
  #m-arsenal[data-n="5"], #m-arsenal[data-n="6"] { grid-template-columns: 1fr 1fr; }
  #m-arsenal[data-n="5"] .pitch, #m-arsenal[data-n="6"] .pitch { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "k n v" "k s v"; row-gap: 2px; }
  #m-arsenal[data-n] .pitch { padding: 4px 8px 4px 11px; column-gap: 6px; }
  #m-arsenal[data-n] .ps { font-size: 12px; }
  #m-arsenal[data-n] .pt b { font-size: 15px; }
  #m-arsenal[data-n] .pk { width: 19px; height: 19px; font-size: 12px; }
  .btn.throw { height: 48px; min-height: 48px; padding: 3px 12px; gap: 1px; }
  .btn.throw b { font-size: 24px; }
  .btn.abs-b { height: 48px; min-height: 48px; gap: 4px; }
  .absr { gap: 8px; padding: 10px 10px 12px; }
  .ar-v { font-size: 16.8px; }
  .bb-nm { font-size: 14.4px; }
  /* the meter in the narrow dock (QA, 2026-11-02: "TAP TO SET PO..." clipped, RE-AIM on it): re-aim
     keeps its own row over the cue, as on a desk, and the cue's line wraps rather than clips */
  .relm.cue:not(.is-done) { padding-top: 52px; }
  .relm .rm-cue-t b { font-size: 22px; white-space: normal; line-height: .95; }
  .relm .rm-cue-t small { white-space: normal; }
}
/* a desk: a size up, the pitch list The Show's way (sideways or not: a desk window at half width is
   still a desk) */
@media (min-width: 1000px) and (min-height: 600px) {
  #s-mound { --gut: 20px; --col: 400px; --dock-w: 300px; --tap: 40px; }
  .mh-bug { padding: 8px 16px 8px 12px; gap: 14px; border-radius: 14px; }
  .mh-bug .sb-team { height: 26px; }
  .mh-bug .sb-team .tm { font-size: 14px; max-width: 110px; }
  .mh-bug .sb-team b { font-size: 22.4px; }
  .mh-bug .sb-inn { font-size: 15px; padding: 7px 9px; }
  .mh-bug .sb-bases { width: 40px; height: 30px; }
  .mh-card { padding: 6px 6px 6px 14px; }
  .bb-nm { font-size: 18.4px; }
  .bb-ab, .bb-hand { font-size: 11px; }
  .bb-line { font-size: 12px; }
  #m-arsenal[data-n] .pitch { min-height: 50px; padding: 6px 12px; }
  #m-arsenal[data-n] .pt b { font-size: 21px; }
  #m-arsenal[data-n] .pk { width: 26px; height: 26px; font-size: 16px; }
  #m-arsenal[data-n] .ps { font-size: 16px; }
  .btn.throw { height: 60px; min-height: 60px; }
  .btn.throw b { font-size: 32px; }
  .btn.abs-b { height: 60px; min-height: 60px; padding: 4px 6px; }
  .btn.abs-b b { font-size: 17px; }
  .ar-k { font-size: 14px; }
  .ar-d { font-size: 16px; }
  .ar-d b { font-size: 16px; }
  .ar-v { font-size: 25.6px; }
  .pbp-tag { font-size: 17.6px; padding: 8px 14px 7px; }
  .pbp-rest { font-size: 16px; padding: 8px 16px; }
  #s-mound .mini { width: 128px; }
  /* the meter fills the dock's corner: a bigger target to hit without looking */
  .relm { padding: 18px 18px 20px; gap: 18px; }
  .relm .rm-verb { font-size: 34px; }
  .relm .rm-cue { align-items: flex-start; }
  .relm .rm-sub { flex-direction: column; align-items: flex-start; gap: 8px; }
  .relm.cue:not(.is-done) { gap: 18px; }
  .relm .rm-cue-t b { font-size: 30px; }
  .relm .rm-cue-t small { font-size: 14px; }
  .relm .rm-steps { grid-template-columns: minmax(0, 1fr); }
  .relm .rm-step { min-height: 52px; }
  /* re-aim keeps its own row over the cue: the cue's big line ran under it when the panel was short */
  .relm.cue:not(.is-done) { padding-top: 54px; }
  /* a 2 pitch dock is short: the two stops side by side, so the panel grows as little as it can */
  #m-dock:has(#m-arsenal[data-n="2"]) .relm.two .rm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* A SHORT UPRIGHT PHONE (320x568, the QA audit 2026-11-02). The aim grid and the plate under it need
   about 300 px of the height at the cell rule's frame, and the full dock and card left 234, so the
   pitch buttons sat over the plate. Here the HUD packs tighter: slimmer gutters and rows, and THROW
   stands beside the pitch buttons instead of under them, under the right thumb. */
@media (orientation: portrait) and (max-height: 600px) {
  #s-mound { --gut: 8px; --tap: 40px; }
  #s-mound .mh-tl { gap: 6px; }
  #s-mound .mh-tr { display: flex; flex-direction: column; gap: 6px; }
  #s-mound .mh-bug { padding: 4px 10px 4px 8px; }
  #s-mound .mh-bug .sb-teams { gap: 2px; }
  #s-mound .mh-bug .sb-team { height: 21px; }
  #s-mound .mh-card { padding: 4px 4px 4px 11px; }
  #s-mound .bb-pit { padding: 0 0 3px; margin: 0 4px 3px 0; }
  #s-mound .dock { display: grid; grid-template-columns: minmax(0, 1fr) 92px; column-gap: 6px; row-gap: 4px; }
  #s-mound .dock > .runbar, #s-mound .dock > #m-meter { grid-column: 1 / -1; }
  #s-mound .dock > .arsenal { grid-column: 1; }
  #s-mound .dock > .pad { grid-column: 2; display: flex; flex-direction: column; gap: 4px; }
  #s-mound .arsenal { gap: 3px; padding: 3px; border-radius: 13px; }
  #s-mound .arsenal[data-n="3"] .pitch, #s-mound .arsenal[data-n="5"] .pitch, #s-mound .arsenal[data-n="5"] .pitch:nth-child(n+4) { grid-column: span 3; }
  #s-mound .arsenal[data-n="3"] .pitch:last-child, #s-mound .arsenal[data-n="5"] .pitch:last-child { grid-column: span 6; }
  #s-mound .pitch { min-height: 40px; padding: 2px 6px 2px 11px; row-gap: 2px; }
  /* the number key picks a pitch from a keyboard; a phone this size has none, and the speed needs its room */
  #s-mound .arsenal .pk { display: none; }
  #s-mound .pitch { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n n" "s v"; }
  #s-mound .pt b { font-size: 13px; }
  #s-mound .ps { font-size: 12px; }
  /* the step line over the right of the dock, off the plate (it sat on it, centred) */
  #s-mound .pad-say { left: auto; right: 0; transform: none; bottom: calc(100% + 6px); max-width: 46%; height: auto; min-height: 24px;
    padding: 4px 10px; line-height: 14px; font-size: 12px; white-space: normal; text-align: right; border-radius: 12px; }
  #s-mound .btn.throw { flex: 1 1 auto; height: auto; min-height: 40px; padding: 4px 6px; border-radius: 13px; }
  #s-mound .btn.throw b { font-size: 22px; letter-spacing: .02em; }
  #s-mound .pad.abs-live { flex-direction: column; gap: 4px; }
  #s-mound .btn.abs-b { flex: 1 1 auto; height: auto; min-height: 40px; padding: 3px 4px; }
  #s-mound .btn.abs-b b { font-size: 12px; }
}

/* ---- THE MODES AROUND THE DAILY (modes-ui.js, 2026-10-30): the save, the vote, Survivor ----
   Each is a block on a screen the player opened, never a popup. Ink and signal, the board's look. */

/* sign in to save your score: on the result's rail (ink), one line and one clear button */
.r-save { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 79, 31, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 79, 31, .55); }
.r-save p { margin: 0 0 10px; font-size: 14px; color: rgba(244, 245, 247, .85); }
.r-save p b { color: #fff; }
.r-save.saved { background: rgba(34, 164, 93, .16); box-shadow: inset 0 0 0 1.5px rgba(34, 164, 93, .6); }
.r-save.saved p { margin: 0; }
.btn.save-b { width: 100%; min-height: 48px; background: var(--signal); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 16.8px; letter-spacing: 0.011em; text-transform: uppercase; box-shadow: 0 2px 0 #c43a12; }
.btn.save-b:active { transform: translateY(2px); box-shadow: none; }
.bd-in .btn.save-b { width: auto; flex: 1 1 220px; }

/* the vote for tomorrow: two choices, one line each; after the vote the count fills behind them */
.r-vote .r-sec-h > span { margin-left: auto; }
.vt-opts { display: grid; gap: 8px; }
@media (min-width: 1100px) { .vt-opts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.vt-o { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--panel); text-align: left; transition: border-color .15s, background .15s; }
.vt-o:not([disabled]):hover, .vt-o:not([disabled]):focus-visible { border-color: var(--signal); background: var(--signal-soft); }
.vt-o[disabled] { cursor: default; }
.vt-o.on { border-color: var(--signal); }
.vt-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--data-soft); pointer-events: none; }
.vt-o.on .vt-bar { background: var(--signal-soft); }
.vt-t { position: relative; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vt-t b { font-family: var(--sans); font-weight: 700; font-size: 16.8px; line-height: 1.05; text-transform: none; }
.vt-t span { font-size: 12.5px; color: var(--dim); }
/* the name and the setup read in --ink on the card in both themes: a button inherits its colour, and on
   the result (and the home) the parent's is light text for the dark backdrop, which left the name
   near invisible on the light card in light theme */
.vt-o { color: var(--ink); }
.vt-t b { color: var(--ink); }
.vt-t .vt-s { margin-top: 4px; font-size: 13px; line-height: 1.3; color: var(--ink); opacity: .86; }
.vt-me { position: relative; margin-left: 10px; vertical-align: 3px; font-style: normal; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.066em; text-transform: uppercase; color: var(--signal); }
.vt-n { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.vt-n b { font-family: var(--sans); font-weight: 700; font-size: 17.6px; line-height: 1; color: var(--ink); }
.vt-say { margin: 10px 2px 0; font-size: 13.5px; color: var(--dim); }
.vt-say.ok b { color: var(--ink); }
.vt-say.err { color: var(--red); }
.vt-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; }
.vt-in p { margin: 0; flex: 1 1 120px; font-size: 13.5px; color: var(--dim); }
.vt-in .btn.save-b { width: auto; flex: 1 1 220px; }

/* how today was picked, once the vote is on: one small line in the situation block */
.t-sit .h-pick { margin: 0 2px; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.055em; text-transform: uppercase; color: #9db4ff; }

/* the home's Survivor row, beside the daily: a mode, so a glass bar with its own name and its state */
.t-mode { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 12px; align-items: center; gap: 2px 14px; min-height: 60px; padding: 9px 16px 9px 18px; border: 0; border-radius: 16px; text-align: left; color: #fff;
  background: linear-gradient(90deg, rgba(43, 89, 255, .4), rgba(10, 14, 22, .8) 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.t-mode::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 3px 3px 0; background: var(--data); }
.t-mode.live::before { background: var(--signal); }
.t-mode .tm-k { font-family: var(--sans); font-weight: 700; font-size: 20.8px; letter-spacing: 0; text-transform: none; line-height: 1; }
.t-mode .tm-k { grid-row: 1; grid-column: 1; }
.t-mode .tm-s { grid-row: 2; grid-column: 1; font-size: 13px; color: rgba(255, 255, 255, .8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-mode .chev { grid-row: 1 / span 2; grid-column: 2; }
.t-mode .chev { width: 9px; height: 9px; border: solid rgba(255, 255, 255, .6); border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); }
.t-mode:hover, .t-mode:focus-visible { box-shadow: inset 0 0 0 1.5px var(--signal); outline: 0; }
.t-mode:hover .chev, .t-mode:focus-visible .chev { border-color: var(--signal); }

/* the Survivor screen: the board's frame, your run on the ink panel */
#s-surv { padding: 4px 16px 32px; }
.sv-say { margin: 0 0 14px; font-size: 14.5px; color: rgba(244, 245, 247, .85); }
.sv-hero .btn.sv-go { margin-top: 14px; min-height: 56px; font-size: 26px; }
.sv-hero .bd-head::after { color: var(--data); }
.sv-hero .bd-rank b { color: var(--data); }
:root[data-theme="dark"] .sv-hero .bd-rank b { color: #7d9bff; }
.sv-run { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.sv-run li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; color: rgba(244, 245, 247, .82); }
.sv-run .sv-i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-family: var(--sans); font-weight: 700; font-size: 14px; color: #fff; }
.sv-run .sv-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-next { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 14px; color: rgba(244, 245, 247, .85); }
.sv-next b { font-family: var(--sans); font-weight: 700; font-size: 16px; color: #fff; }
.sv-hero .bd-in { margin-top: 16px; }
.sv-cols, .sv-rows li { grid-template-columns: 32px minmax(0, 1fr) 44px 56px; }
.bd-rows .nm em.live { color: var(--data); }
.bd-rows .n.sv-sv { font-family: var(--sans); font-weight: 700; font-size: 15.2px; color: var(--ink); }
.sv-rows .n.sc { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 13px; color: var(--dim); }
.sv-rows li.mine .n.sv-sv { color: var(--signal); }
@media (min-width: 880px) { body[data-screen="s-surv"] .app { max-width: 1040px; } #s-surv { padding-top: 8px; } }

/* between two Survivor spots: the saves and the next closer, on a night of its own. No grade. */
body[data-screen="s-next"] .hdr { display: none; }
body[data-screen="s-next"] .app { max-width: none; border: 0; }
#s-next.on { display: grid; place-items: center; position: fixed; inset: 0; z-index: 25; padding: 24px 16px; color: #fff; cursor: pointer;
  background: radial-gradient(70% 50% at 50% 0%, rgba(43, 89, 255, .35), transparent 70%), linear-gradient(180deg, #121a2a, #080b12); }
.nx-in { width: 100%; max-width: 560px; }
.nx-in .eyebrow { color: rgba(244, 245, 247, .7); }
.nx-saves { margin: 0; font-family: var(--hero); font-weight: 400; font-size: 92px; line-height: .9; text-transform: uppercase; color: #fff; animation: t-slam .34s cubic-bezier(.2, .9, .3, 1) both; }
.nx-in .seam { width: 70%; margin: 10px 0 16px; }
.nx-next { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 27.2px; line-height: 1; text-transform: none; animation: t-up .4s .18s ease-out both; }
.nx-next span { color: var(--signal); }
.nx-occ { margin: 8px 0 0; font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.055em; text-transform: uppercase; color: rgba(244, 245, 247, .7); animation: t-up .4s .26s ease-out both; }
@media (min-width: 880px) { .nx-saves { font-size: 150px; } .nx-next { font-size: 41.6px; } .nx-occ { font-size: 14.4px; } }
@media (prefers-reduced-motion: reduce) { .nx-saves, .nx-next, .nx-occ { animation: none; } }

/* the archive (Pro): past dailies as a list of days. Shown only when entitlements() says so */
.arc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 12px 0 0; }
.arc-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 58px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); text-align: left; }
.arc-list button b { font-family: var(--sans); font-weight: 700; font-size: 17.6px; line-height: 1; }
.arc-list button span { font-size: 12px; color: var(--dim); }
.arc-list button:hover, .arc-list button:focus-visible { border-color: var(--signal); }
/* the archive as a calendar (menus.js calendar), on a desk only: a phone keeps the tiles and the list */
.arc-cal { display: none; }
@media (min-width: 980px) {
  #past-body .past-grid, #past-body .arc-list { display: none; }
  .arc-cal { display: block; margin-top: 14px; }
  .ac-top { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 8px; }
  .ac-m { flex: 1; font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--ink); }
  .ac-mv { order: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); cursor: pointer; }
  .ac-mv i { width: 9px; height: 9px; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateX(2px) rotate(45deg); }
  .ac-mv.nx i { transform: translateX(-2px) rotate(-135deg); }
  .ac-mv:not(:disabled):hover, .ac-mv:focus-visible { border-color: var(--signal); color: var(--signal); outline: 0; }
  .ac-mv:disabled { opacity: .35; cursor: default; }
  .ac-wk, .ac-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .ac-wk { margin-bottom: 6px; }
  .ac-wk span { text-align: center; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
  .ac-d { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; padding: 6px 2px; border-radius: 12px; font-family: var(--sans); color: var(--dim); }
  .ac-d b { font-weight: 700; font-size: 16px; line-height: 1; font-variant-numeric: tabular-nums; }
  .ac-d .lock { margin-top: 8px; transform: scale(.8); opacity: .8; }
  .ac-d.off { opacity: .38; }
  .ac-d.off b { font-weight: 500; }
  .ac-d.shut { background: var(--panel); border: 1.5px dashed var(--line-2); }
  .ac-d.open { background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); cursor: pointer; }
  .ac-d.open:hover, .ac-d.open:focus-visible { border-color: var(--signal); outline: 0; }
  .ac-d.now { background: var(--signal-soft); box-shadow: inset 0 0 0 2px var(--signal); color: var(--ink); }
  .ac-d.now b { color: var(--signal); }
  .ac-d.now small { font-weight: 700; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
}
.r-vote { scroll-margin-top: 12px; }
/* LEADERBOARD is a longer word than "the board.": on a phone it scales with the width so it stays in its card */
@media (max-width: 879px) { #bd-head { font-size: min(64px, 15.5vw); } }
/* and on a desk it scales with its own card (the left column is 5/12 of the page, so 84px ran past the
   card's edge and the last letter was clipped, the owner 2026-11-10). LEADERBOARD in Anton is about 5.1
   of its size wide, so 19% of the card's width fits with room. Without container units it stays 84px. */
@media (min-width: 880px) {
  #s-board .bd-hero { container-type: inline-size; }
  #bd-head { font-size: min(84px, 19cqi); }
}

/* ---- BETWEEN TWO OF HIS HALVES (rules 8, box-ui.js): his team bats on the line score ----
   The broadcast's look at the other dugout: a night of its own over the whole screen, the line score
   by inning with R H E, the plate appearances ticking in, then where he goes back out. No grade. */
body[data-screen="s-half"] .hdr { display: none; }
body[data-screen="s-half"] .app { max-width: none; border: 0; }
#s-half.on { display: flex; justify-content: center; align-items: flex-start; position: fixed; inset: 0; z-index: 25; padding: max(20px, 7vh) 16px 20px; color: #fff; cursor: pointer; overflow: hidden;
  background: radial-gradient(70% 50% at 50% 0%, rgba(43, 89, 255, .32), transparent 70%), linear-gradient(180deg, #121a2a, #080b12); }
:root:not([data-theme="dark"]) #s-half.on { background: radial-gradient(70% 50% at 50% 0%, rgba(43, 89, 255, .28), transparent 70%), linear-gradient(180deg, #1a2333, #0e1420); }
.hx-in { width: 100%; max-width: 560px; max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.hx-in > * { flex: none; }
.hx-in .eyebrow { margin: 0; color: rgba(244, 245, 247, .7); }
.hx-head { margin: -4px 0 0; font-family: var(--hero); font-weight: 400; font-size: 52px; line-height: .92; text-transform: uppercase; color: #fff; animation: t-slam .34s cubic-bezier(.2, .9, .3, 1) both; }
.hx-line { border-radius: 14px; background: rgba(0, 0, 0, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); padding: 8px 8px 6px; overflow: hidden; }
.hx-ls { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.hx-ls th, .hx-ls td { padding: 4px 0; text-align: center; font-size: 14px; }
.hx-ls thead th { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.044em; text-transform: uppercase; color: rgba(244, 245, 247, .55); }
.hx-ls tbody th { width: 46px; text-align: left; padding-left: 6px; font-family: var(--sans); font-weight: 700; font-size: 12.8px; letter-spacing: 0; color: #fff; }
.hx-ls thead th:first-child { width: 46px; }
.hx-ls td { color: rgba(244, 245, 247, .82); }
.hx-ls .hx-t { width: 30px; font-family: var(--sans); font-weight: 700; font-size: 13.6px; color: #fff; }
.hx-ls thead .hx-t { font-size: 12px; font-style: normal; font-weight: 600; color: rgba(244, 245, 247, .7); }
.hx-ls td.hx-t:first-of-type, .hx-ls thead th.hx-t:first-of-type { border-left: 1px solid rgba(255, 255, 255, .14); }
.hx-ls tr.bat th { color: var(--signal); }
.hx-ls td.live { box-shadow: inset 0 0 0 1.5px var(--signal); border-radius: 6px; color: #fff; font-weight: 700; }
.hx-ls .pop { animation: hx-pop .5s cubic-bezier(.2, 1.6, .4, 1); color: var(--signal); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes hx-pop { 0% { transform: scale(1.7); } 100% { transform: none; } }
.hx-sit { display: flex; align-items: center; gap: 14px; min-height: 30px; }
.hx-bases { width: 40px; height: 30px; }
.hx-bases .sb-path { fill: none; stroke: rgba(255, 255, 255, .25); }
.hx-bases rect { fill: rgba(255, 255, 255, .12); stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.hx-bases rect.on { fill: var(--signal); stroke: var(--signal); }
.hx-outs { display: inline-flex; gap: 6px; }
.hx-outs i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.hx-outs i.on { background: #fff; box-shadow: none; }
.hx-in > .hx-pas { flex: 0 1 auto; min-height: 0; }
.hx-pas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.hx-pas li { flex: none; }
.hx-pas li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); animation: t-up .28s ease-out both; }
.hx-pas li b { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-ev { font-family: var(--sans); font-weight: 700; font-size: 13.6px; letter-spacing: 0; text-transform: none; color: rgba(244, 245, 247, .85); }
.hx-r { font-style: normal; font-family: var(--sans); font-weight: 700; font-size: 15px; color: #fff; background: var(--signal); border-radius: 6px; padding: 2px 7px 1px; }
.hx-sum { margin: 0; min-height: 22px; font-family: var(--sans); font-weight: 700; font-size: 17.6px; text-transform: none; }
.hx-next { margin: 0; min-height: 22px; font-size: 15px; color: rgba(244, 245, 247, .85); opacity: 0; transition: opacity .25s; }
.hx-next.on { opacity: 1; }
.hx-skip { margin: 4px 0 0; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.077em; text-transform: uppercase; color: rgba(244, 245, 247, .45); }
@media (min-width: 880px) { .hx-in { max-width: 720px; gap: 16px; } .hx-head { font-size: 84px; } .hx-ls th, .hx-ls td { font-size: 17px; } .hx-ls .hx-t { width: 40px; font-size: 16.8px; } .hx-pas li b { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .hx-head, .hx-pas li, .hx-ls .pop { animation: none; } .hx-next { transition: none; } }

/* THE MODES SWITCHER (the owner, 2026-11-02): daily, survivor, archive. A glass bar like the menu, one
   pill that slides to the pick, and the panels cross-slide in the direction of travel. Every moving
   part is transform and opacity; the panels' box eases its height so the page below never jumps. */
.h-modes { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: 16px; background: rgba(10, 14, 22, .74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); --n: 3; --i: 0; }
.hm-pill { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 12px; background: var(--signal); box-shadow: 0 2px 0 #c43a12, 0 6px 18px rgba(255, 79, 31, .3); transform: translate3d(calc(var(--i) * 100%), 0, 0); transition: transform .28s cubic-bezier(.22, .8, .24, 1); will-change: transform; pointer-events: none; }
.hm-t { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 6px; border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, .72); font-family: var(--sans); font-weight: 700; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; transition: color .2s; -webkit-tap-highlight-color: transparent; }
.hm-t[hidden] { display: none; }
.hm-t .tm-k { font: inherit; }
.hm-t.on { color: #fff; }
.hm-t:not(.on):hover { color: #fff; }
.hm-t:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.hm-t.live .tm-k::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #3ddc84; vertical-align: 1px; box-shadow: 0 0 0 2px rgba(10, 14, 22, .6); }
.h-panes { position: relative; touch-action: pan-y; }
.h-panes.anim { overflow-x: clip; overflow-clip-margin: 12px; transition: height .28s cubic-bezier(.22, .8, .24, 1); }
.h-pane { display: flex; flex-direction: column; gap: 10px; }
.h-pane[hidden] { display: none; }
.h-pane.go { position: absolute; left: 0; right: 0; top: 0; }
.h-pane.mv { transition: transform .28s cubic-bezier(.22, .8, .24, 1), opacity .22s ease-out; will-change: transform, opacity; }
#hp-surv .bd-hero { padding: 14px 16px 16px; }
#hp-surv .bd-head { font-size: 44px; }
#hp-surv .bd-list, .hp-arc-c { margin: 0; }
#hp-surv .bd-note { margin: 0 4px; color: rgba(255, 255, 255, .75); }
.hp-arc-c { color: var(--ink); }
.hp-h { margin: 0 0 8px; font-family: var(--sans); font-weight: 700; font-size: 17.6px; }
.hp-arc-c p { margin: 0; color: var(--dim); font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .hm-pill { transition-duration: .01s; }
  .h-panes.anim { transition: none; }
  .h-pane.mv { transition: opacity .15s linear; }
}

/* TODAY'S TOP 3 on the daily tab (the owner, 2026-11-03): the Survivor board's look, three rows and a
   way to the full board. Its body keeps one height loading, empty and full, so the switcher's height
   move and the page below never jump when the rows land. */
#hp-daily .hb-top { margin: 0; padding: 12px 10px 10px; }
#hp-daily .hb-top, #hp-surv .bd-list { color: var(--ink); }
/* the vote for tomorrow on the home (modes-ui.js voteBlock, quiet): the result's tile, below today's top 3 */
#hp-daily .h-vote { margin: 12px 0 0; color: var(--ink); }
.hb-body { height: 144px; display: flex; flex-direction: column; overflow: hidden; }
.hb-cols { box-sizing: border-box; height: 24px; padding-bottom: 0; }
.hb-cols, .hb-rows li { grid-template-columns: 30px minmax(0, 1fr) 56px; }
.hb-cols span:nth-child(3) { text-align: right; }
.hb-rows li { box-sizing: border-box; height: 40px; padding: 0 8px; }
.hb-rows .rk { width: 26px; height: 26px; border-radius: 8px; }
.hb-say { margin: auto 0; padding: 8px; text-align: center; color: var(--dim); font-size: 14px; }
.hb-rows + .hb-say { margin: 4px 0 0; padding: 4px 8px 0; font-size: 13px; }
.hb-all { width: 100%; min-height: 44px; margin-top: 8px; font-family: var(--sans); font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; }
.hb-all:hover { border-color: var(--signal); color: var(--signal); }
.hb-all:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* the side column: nothing of its own on a phone. Its icons and sub lines show only on a desk. */
.t-side { display: contents; }
.t-list .tl-i, .t-list .tl-s { display: none; }
.t-list .tl-t { display: contents; }
/* the voice of the ump's row keeps its mic on a phone too (the owner, 2026-11-17: "its own icon"); the
   other rows stay label only. The sub line shows only on a desk, as theirs do */
#h-voice { justify-content: flex-start; gap: 10px; }
#h-voice::after { margin-left: auto; }
#h-voice .tl-i { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; background: rgba(255, 79, 31, .24); }
#h-voice .tl-i svg { width: 16px; height: 16px; fill: none; stroke: #ff8a63; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 979px) {
  body.rtg-sticky-on #h-voice { justify-content: flex-start; gap: 12px; min-height: 54px; padding: 6px 14px; text-align: left; }
  body.rtg-sticky-on #h-voice .tl-i { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; }
  body.rtg-sticky-on #h-voice .tl-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  body.rtg-sticky-on #h-voice .tl-s { display: block; font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, .7); }
}

/* A DESK (the owner, 2026-11-03: "optimize the menu layouts for desktop"). Two columns: the headline across
   the top on one line each, the modes and today's panel on the left at a phone card's reading width,
   the menu and the footer in a column on the right that stays in view. The .app stays full width on the
   home, so the ad rails never stand beside it (rtg-ads.js builds them only with 170 px clear of the
   column), and the stadium shows to the right. */
@media (min-width: 980px) {
  #s-home { padding-left: max(32px, 5vw); padding-right: max(32px, 5vw); }
  .title { display: grid; max-width: 1060px; grid-template-columns: minmax(0, 580px) minmax(280px, 340px); column-gap: clamp(32px, 4vw, 64px); row-gap: 16px; align-items: start; padding-top: 18px; }
  .t-head { grid-column: 1 / -1; }
  .t-l1 { font-size: 56px; }
  .t-l2 { margin-top: 2px; font-size: 84px; }
  #h-modes { grid-column: 1; grid-row: 2; }
  #h-panes { grid-column: 1; grid-row: 3; }
  .t-side { display: flex; flex-direction: column; gap: 16px; grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 72px; }
  #h-menu, body.rtg-sticky-on #h-menu { animation-delay: .32s; }
  #h-menu .t-list { display: flex; flex-direction: column; border-radius: 18px; }
  #h-menu .t-list button { justify-content: flex-start; gap: 14px; min-height: 64px; padding: 10px 16px 10px 14px; text-align: left; white-space: normal; font-size: 16.8px; grid-column: auto; box-shadow: none; }
  #h-menu .t-list button + button { border-top: 1px solid rgba(255, 255, 255, .09); }
  #h-menu .t-list button::after { display: block; margin-left: auto; flex: 0 0 auto; }
  #h-menu .t-list .tl-i { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); transition: background .15s; }
  #h-menu .t-list .tl-i svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #h-menu .t-list .tl-i.hot { background: rgba(255, 79, 31, .24); }
  #h-menu .t-list .tl-i.hot svg { stroke: #ff8a63; }
  #h-menu .t-list .tl-i.data { background: rgba(43, 89, 255, .3); }
  #h-menu .t-list .tl-i.data svg { stroke: #a9bcff; }
  #h-menu .t-list .tl-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  #h-menu .t-list .tl-s { display: block; font-family: var(--sans); font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, .7); }
  #h-menu .t-list button:hover .tl-i, #h-menu .t-list button:focus-visible .tl-i { background: var(--signal); }
  #h-menu .t-list button:hover .tl-i svg, #h-menu .t-list button:focus-visible .tl-i svg { stroke: #fff; }
  #h-menu .t-list button:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
  #s-home .t-side .legal { margin-top: 0; }
  #s-home .t-side .legal .src { font-size: 12px; line-height: 1.5; }
  .t-side .legal-mark { width: 72px; height: 72px; }
  .hm-t { min-height: 48px; font-size: 14px; }
  .hm-t:not(.on):hover { background: rgba(255, 255, 255, .08); }
  .bd-rows li { transition: background .12s; }
  .hb-rows li:not(.mine):hover { background: var(--panel-2); }
  /* the header's menu drops from its button instead of rising from the foot of the screen */
  #sheet-menu { align-items: flex-start; justify-content: flex-end; padding: 60px var(--menu-r, 24px) 0 16px; background: rgba(5, 7, 12, .3); }
  #sheet-menu .sh-in { max-width: 420px; max-height: calc(100vh - 80px); border-radius: 20px; padding-bottom: 14px; transform: translateY(-10px); }
  #sheet-menu .sh-h::before { display: none; }
  #sheet-menu .menu-list button { transition: background .12s; }
  #sheet-menu .menu-list button:hover, #sheet-menu .menu-list button:focus-visible { background: var(--panel-2); outline: 0; }
  #sheet-menu .menu-list button:focus-visible { box-shadow: inset 0 0 0 2px var(--signal); }
}
/* THE FOOTER ON A DESK (the owner, 2026-11-10: "the disclaimer should be at the bottom"). The side column
   lets go of its box (display: contents, as on a phone), so the menu is the grid's own item in the right
   column and stays in view, and the footer takes a row of its own under both columns, centred. The DOM
   and the phone are as they were. */
@media (min-width: 980px) {
  .t-side { display: contents; }
  #h-menu { grid-column: 2; grid-row: 2 / span 2; align-self: start; position: sticky; top: 72px; }
  #s-home .t-side .legal { grid-column: 1 / -1; grid-row: 4; justify-self: center; width: 100%; max-width: 640px; margin: 28px 0 8px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
}
@media (min-width: 1600px) {
  .title { max-width: 1180px; grid-template-columns: minmax(0, 640px) minmax(300px, 380px); padding-top: 28px; row-gap: 20px; }
  .t-l1 { font-size: 64px; }
  .t-l2 { font-size: 96px; }
}

/* ---- sound (sound.js) and the moments that ride with it ------------------------------------ */
.mh-tr { display: flex; flex-direction: column; gap: 8px; }
.mh-snd svg path { fill: none; stroke: var(--g-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mh-snd .mut { display: none; }
.mh-snd.off .wav { display: none; }
.mh-snd.off .mut { display: inline; }
.mh-snd.off { opacity: .72; }
/* strike three: a short shake of the scene, and the zone flashes once in signal orange */
@keyframes k-shake { 0%, 100% { transform: none; } 15% { transform: translate(-6px, 2px); } 30% { transform: translate(5px, -3px); } 45% { transform: translate(-4px, 1px); } 60% { transform: translate(3px, -1px); } 80% { transform: translate(-1px, 0); } }
#m-scene.k-shake { animation: k-shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes k-flash { 0% { box-shadow: 0 0 0 0 rgba(255, 79, 31, 0); } 18% { box-shadow: 0 0 0 3px #fff, 0 0 28px 10px var(--signal); } 100% { box-shadow: 0 0 0 0 rgba(255, 79, 31, 0); } }
.k-flash { animation: k-flash .8s ease-out; border-radius: 8px; }
/* the streak on the home: one pulse when it is new */
@keyframes s-pulse { 0% { transform: scale(1); } 30% { transform: scale(1.08); color: var(--signal); } 100% { transform: scale(1); } }
#h-streak.pulse { animation: s-pulse .9s ease-out 2; transform-origin: left center; }
#h-streak.pulse b { color: var(--signal); }
/* the save: confetti over the result */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 13px; border-radius: 2px; opacity: .95; animation-name: cf-fall; animation-timing-function: cubic-bezier(.25, .6, .5, 1); animation-fill-mode: forwards; }
@keyframes cf-fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  #m-scene.k-shake, .k-flash, #h-streak.pulse { animation: none; }
  .confetti { display: none; }
}
/* HOME on the mound (the owner, 2026-11-03): the third button in the top right stack, a thumb's size like the
   menu. Under the batter card it was a HUD panel by the zone, and the stage's frame of a short phone hung on it */
.mh-home svg { stroke-linejoin: round; }
.mh-home.wait { opacity: .6; }
/* the menu's home: only while an outing is on screen */
body:not([data-screen="s-mound"]):not([data-screen="s-half"]):not([data-screen="s-next"]) #sheet-menu .menu-home { display: none; }

/* ---- CLIPS (clip-ui.js): a pitch's Clip on the result, and the clip screen ------------------- */
#s-clip.on { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 30; background: #0b0f17; color: #f4f5f7; }
.cl-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #0b0f17; }
.cl-stage #m-canvas, .cl-stage #cl-out { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cl-stage #cl-out { z-index: 1; }
/* the overlay's place (clip-ui.js sizeOut sets them from the overlay's own unit) */
.cl-wm, .cl-l3 { position: absolute; pointer-events: none; }
#s-clip .cl-play { position: absolute; z-index: 2; left: 50%; top: 40%; transform: translate(-50%, -50%); width: auto; max-width: calc(100% - 32px); padding: 0 28px; white-space: nowrap; }
.cl-play[hidden] { display: none; }
.cl-panel { flex: 0 0 auto; padding: 14px 16px max(16px, env(safe-area-inset-bottom)); background: #0b0f17; border-top: 1px solid rgba(255, 255, 255, .08); }
.cl-top { display: flex; align-items: center; gap: 10px; }
.cl-top .eyebrow { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-x { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #f4f5f7; display: grid; place-items: center; }
.cl-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cl-head { margin: 8px 0 2px; font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 1.2; }
.cl-sub { margin: 0; font-size: 14px; color: #9aa3b5; }
.cl-say { margin: 6px 0 0; min-height: 18px; font-size: 13px; color: #9aa3b5; }
.cl-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cl-acts .btn { text-transform: uppercase; letter-spacing: .04em; font-size: 14px; min-height: 46px; padding: 10px 12px; }
.cl-acts .btn[hidden] { display: none; }
.cl-acts .btn:disabled { opacity: .5; }
#s-clip .cl-acts .btn.go { background: var(--signal); color: #fff; }
#s-clip .cl-acts .btn.ghost { background: rgba(255, 255, 255, .06); color: #f4f5f7; border-color: rgba(255, 255, 255, .16); }
.cl-acts .cl-daily, .cl-acts #cl-video { grid-column: 1 / -1; }
@media (min-width: 900px) {
  #s-clip.on { flex-direction: row; }
  .cl-panel { flex: 0 0 360px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .08); padding: 28px 28px 24px; display: flex; flex-direction: column; }
  .cl-head { font-size: 26px; margin-top: 18px; }
  .cl-acts { grid-template-columns: 1fr; margin-top: 18px; }
}
/* the voice of the ump (voices.js): the record sheet, the owner's review */
.set-row.set-go { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; color: var(--ink); text-align: left; cursor: pointer; }
/* the record sheet: a booth on a phone. --rec is the one red on it, the record button and its ring */
.voices { --rec: #e5383b; --rec-soft: rgba(229, 56, 59, .14); }
.sh-h h2.vo-h2 { display: flex; align-items: center; gap: 10px; }
.vo-hic { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--signal-soft); }
.vo-hic svg, .vo-badge svg, .rv-ic svg { width: 19px; height: 19px; fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.voices .vo-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 2px -6px 0; }
.voices .vo-n { margin: 0; color: var(--dim); font-size: 13px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.voices .vo-nav { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--dim); font: 600 14px var(--sans); }
.voices #vo-prev { justify-self: start; } .voices #vo-next, .voices #vo-finish { justify-self: end; }
.voices .vo-nav.vo-fin { color: var(--ink); font-weight: 700; background: var(--panel-2); padding: 0 10px 0 14px; }
.voices .vo-nav:hover:not(:disabled) { color: var(--ink); background: var(--panel-2); }
.voices .vo-nav:disabled { opacity: .35; }
.voices .vo-chev { width: 7px; height: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.voices .vo-chev.back { transform: rotate(-135deg); }
.voices .vo-dots { display: flex; justify-content: center; gap: 5px; margin: 6px 0 14px; }
.voices .vo-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line-2); transition: width .2s, background .2s; }
.voices .vo-dots i.sent { background: var(--green); }
.voices .vo-dots i.now { width: 22px; background: var(--ink); }
.voices .vo-card { padding: 18px 16px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow); }
.voices .vo-line { margin: 0; font-family: var(--hero); font-weight: 400; font-size: 46px; line-height: 1.05; letter-spacing: .01em; overflow-wrap: anywhere; text-wrap: balance; }
.voices .vo-hint { margin: 6px 0 0; color: var(--dim); font-size: 14px; }
.voices .vo-stage { display: flex; flex-direction: column; align-items: center; padding: 16px 0 4px; }
.voices .vo-bars { display: flex; align-items: center; justify-content: center; gap: 3px; height: 40px; width: 100%; max-width: 300px; }
.voices .vo-bars i { flex: 1 1 0; max-width: 6px; height: 8%; min-height: 3px; border-radius: 3px; background: var(--line-2); transition: height .06s linear; }
.voices [data-st="rec"] .vo-bars i { background: var(--rec); }
.voices [data-st="take"] .vo-bars i { background: var(--faint); }
.voices [data-st="take"] .vo-bars i.on { background: var(--signal); }
.voices .vo-recb { position: relative; width: 96px; height: 96px; margin: 14px 0 8px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.voices .vo-ringsv { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.voices .vo-ringsv circle { fill: none; stroke-width: 4; }
.voices .vo-ringsv circle:first-child { stroke: var(--line-2); }
.voices .vo-ringsv circle + circle { stroke: var(--rec); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.voices .vo-core { width: 74px; height: 74px; border-radius: 50%; background: var(--rec); box-shadow: 0 6px 20px rgba(229, 56, 59, .4), inset 0 -3px 0 rgba(0, 0, 0, .15); transition: width .18s, height .18s, border-radius .18s, transform .1s; }
.voices .vo-recb:active .vo-core { transform: scale(.94); }
.voices .vo-recb:focus-visible { outline: 3px solid var(--rec); outline-offset: 4px; }
.voices .vo-recb.on .vo-core { width: 34px; height: 34px; border-radius: 8px; }
.voices .vo-recb.on::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: var(--rec-soft); animation: vo-pulse 1.1s ease-out infinite; }
@keyframes vo-pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .voices .vo-recb.on::before { animation: none; } }
.voices .vo-cap { margin: 0; color: var(--dim); font-size: 14px; text-align: center; }
.voices .vo-cap b { color: var(--rec); font-size: 17px; font-variant-numeric: tabular-nums; }
.voices .vo-msg { min-height: 0; margin: 8px 0 0; text-align: center; }
.voices .vo-msg:empty { display: none; }
.voices .vo-msg.ok { color: var(--green); font-weight: 600; }
.voices .vo-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 10px; border: 0; background: none; color: var(--dim); font: 600 13.5px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.voices .vo-link:hover { color: var(--ink); }
.voices .vo-link[hidden] { display: none; }
.voices .vo-upbtn { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; min-width: 200px; cursor: pointer; }
.voices .vo-take { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 4px; }
.voices .vo-playb { width: 52px; height: 52px; flex: 0 0 52px; border: 0; border-radius: 50%; background: var(--ink); display: grid; place-items: center; cursor: pointer; }
.voices .vo-tri { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--bg); }
.voices .vo-playb.on .vo-tri { width: 14px; height: 14px; margin: 0; border: 0; border-radius: 3px; background: var(--bg); }
.voices .vo-dur { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.voices .vo-redo { margin-left: auto; }
.voices .vo-ok { display: flex; gap: 10px; align-items: flex-start; width: 100%; font-size: 13.5px; line-height: 1.4; margin: 10px 0 4px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.voices .vo-ok input { margin-top: 2px; width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--signal); }
.voices .vo-okd { width: 100%; margin: 8px 0 2px; font-size: 13px; color: var(--dim); }
.voices .vo-okd summary { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; }
.voices .vo-okd summary::-webkit-details-marker { display: none; }
.voices .vo-okd summary::after { content: 'read it'; margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }
.voices .vo-okd[open] summary::after { content: 'hide'; }
.voices .vo-okd .vo-ok { color: var(--ink); }
.voices .vo-tick { width: 6px; height: 11px; margin: 0 4px 3px; border: solid var(--green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.voices .vo-credit { display: flex; align-items: center; gap: 10px; width: 100%; margin: 6px 0 0; font-size: 13px; color: var(--dim); }
.voices .vo-credit span { flex: 0 0 auto; }
.voices .vo-credit input { flex: 1 1 auto; min-width: 0; font-size: 16px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.voices .vo-credit input::placeholder { color: var(--faint); }
.voices .vo-send { width: 100%; margin-top: 14px; min-height: 54px; background: var(--signal); color: #fff; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; box-shadow: 0 3px 0 #c43a12; }
.voices .vo-send:disabled { background: var(--panel-2); color: var(--faint); box-shadow: none; }
.voices .vo-pend { margin: 14px 0 0; text-align: center; }
.voices .vo-out { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0 8px; }
.voices .vo-badge { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--signal-soft); margin-bottom: 12px; }
.voices .vo-badge svg { width: 34px; height: 34px; }
.voices .vo-out-h { margin: 0 0 4px; font-weight: 700; font-size: 18px; }
.voices .vo-signin { margin-top: 14px; min-width: 200px; background: var(--signal); color: #fff; }
/* the end screen: every line gone through (sent, or skipped to Finish) */
.voices .vo-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 4px; }
.voices .vo-ok-badge { background: rgba(34, 164, 93, .16); }
.voices .vo-ok-badge svg { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.voices .vo-done-h { margin: 0; font-family: var(--hero); font-weight: 400; font-size: 46px; line-height: 1.05; letter-spacing: .01em; outline: none; }
.voices .vo-done .vo-dots { margin: 12px 0 14px; }
.voices .vo-done-n { margin: 0 0 4px; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.voices .vo-done-p { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.voices .vo-home { margin-top: 22px; }
.voices .vo-again { width: 100%; margin-top: 10px; min-height: 48px; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; }
@media (max-height: 700px) {
  .voices .vo-line { font-size: 38px; }
  .voices .vo-card { padding: 12px 14px; }
  .voices .vo-recb { width: 84px; height: 84px; margin: 8px 0 6px; } .voices .vo-core { width: 64px; height: 64px; }
}
/* the result's row: the Run The Diamond card's quiet style, with the mic */
.r-voice { width: 100%; background: none; font: inherit; text-align: left; cursor: pointer; }
.r-promo + .r-voice { margin-top: 8px; }
.rv-ic { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 9px; background: rgba(255, 79, 31, .2); }
.rv-ic svg { stroke: #ff8a63; }
.voices .vr-list { list-style: none; margin: 12px 0 0; padding: 0; }
.voices .vr-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.voices .vr-h { display: flex; flex-direction: column; }
.voices .vr-h small { color: var(--dim); font-size: 12px; }
.voices .vr-row audio { width: 100%; margin: 8px 0; }
.voices .vr-act { display: flex; gap: 8px; }
.voices .vr-act .btn { flex: 1 1 0; min-height: 42px; }
.voices .vr-h .vr-by { color: var(--ink); }
.voices .vr-ask p { margin: 0 0 8px; font-weight: 700; color: var(--red); }
.voices .vr-act .btn.bad { background: var(--red); color: #fff; }
.voices .vr-tabs { display: flex; width: 100%; }
.voices .vr-tabs button { flex: 1 1 auto; min-width: 0; padding: 6px 6px; }
.voices .vr-lead { margin: 10px 0 0; }
.voices .vr-ok { margin: 8px 0 0; }
.voices .vr-hear { width: 100%; min-height: 42px; margin: 0 0 8px; }
.voices .vr-heard { margin: -4px 0 8px; font-size: 12px; }
/* the review sheet's filters: Person and Call side by side, the picked person's set under them */
.voices .vr-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 12px 0 0; }
.voices .vr-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.voices .vr-f span { color: var(--dim); font-size: 12px; font-weight: 600; }
.voices .vr-f select { width: 100%; min-width: 0; min-height: 42px; padding: 0 30px 0 10px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--ink); font: 600 14px var(--sans); text-overflow: ellipsis;
  -webkit-appearance: none; appearance: none; background-color: var(--panel); background-repeat: no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(-45deg, transparent 50%, var(--dim) 50%);
  background-size: 5px 5px, 5px 5px; background-position: right 15px center, right 10px center; }
.voices .vr-f select:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.voices .vr-f select:disabled { opacity: .5; }
.voices .vr-set { margin: 10px 0 0; padding: 12px 14px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.voices .vr-set-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.voices .vr-set-h b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voices .vr-set-h span { flex: 0 0 auto; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.voices .vr-set .vo-dots { justify-content: flex-start; margin: 8px 0 6px; }
.voices .vr-set p { margin: 0; font-size: 12.5px; }

/* ---- YOUR HISTORY (Pro, history-ui.js): every kept daily and Survivor run, newest first ----
   The board's frame (the night panel on the left on a desk, the rows on the right). A daily is one row:
   its kind and outcome, the closer and the spot, the score and pitches. A Survivor run is a block in
   data blue with its spots as rows. Every row is one tap (44 px and up) that opens its result. */
#s-hist { padding: 4px 16px 32px; }
#hi-head { font-size: min(64px, 15.5vw); }
.hi-tally { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hi-tally span { display: flex; align-items: baseline; gap: 6px; font-family: var(--sans); font-weight: 600; font-size: 12.8px; letter-spacing: 0.066em; text-transform: uppercase; color: rgba(244, 245, 247, .75); }
.hi-tally b { font-weight: 700; font-size: 32px; line-height: .9; letter-spacing: 0; color: var(--signal); font-variant-numeric: tabular-nums; }
.hi-tally span + span b { color: #8fa8ff; }
.hi-list { padding: 14px 10px 10px; }
.hi-day + .hi-day { margin-top: 6px; }
.hi-dh { margin: 10px 8px 6px; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0; color: var(--dim); }
.hi-items, .hi-spots { list-style: none; margin: 0; padding: 0; }
.hi-it { display: grid; grid-template-columns: minmax(0, 1fr) auto 10px; grid-template-areas: "tg sc ch" "tx sc ch"; align-items: center; gap: 4px 12px; width: 100%; min-height: 64px;
  padding: 10px 10px 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); text-align: left; font: inherit; cursor: pointer; margin: 0 0 8px; }
.hi-it:hover { border-color: var(--line-2); background: var(--panel-2); }
.hi-it[aria-busy="true"] { opacity: .55; cursor: progress; }
.hi-it .chev { grid-area: ch; }
.hi-tg { grid-area: tg; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hi-kind { font-family: var(--sans); font-weight: 700; font-size: 11px; line-height: 1; letter-spacing: .066em; padding: 5px 8px 4px; border-radius: 8px; background: var(--ink); color: var(--bg); white-space: nowrap; }
.hi-kind.surv { background: var(--data); color: #fff; }
.hi-tx { grid-area: tx; display: flex; flex-direction: column; min-width: 0; }
.hi-nm { font-family: var(--sans); font-weight: 700; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-wh { font-size: 12.5px; line-height: 1.3; color: var(--dim); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.hi-sc { grid-area: sc; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-variant-numeric: tabular-nums; }
.hi-sc b { font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 1; }
.hi-sc small { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
/* a Survivor run: its block, then its spots */
.hi-run { margin: 0 0 8px; padding: 10px 8px 6px; border-radius: 16px; background: var(--data-soft); box-shadow: inset 3px 0 0 var(--data); }
.hi-rh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 0 4px 8px; }
.hi-rn { font-family: var(--sans); font-weight: 700; font-size: 14px; }
.hi-rs { display: flex; align-items: baseline; gap: 5px; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.hi-rs b { font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--ink); }
.hi-rs b:nth-of-type(2) { margin-left: 8px; }
.hi-spot { grid-template-columns: 28px minmax(0, 1fr) auto 10px; grid-template-areas: "n tx sc ch"; min-height: 56px; margin-bottom: 6px; }
.hi-n { grid-area: n; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--data); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 13px; }
.hi-spot .hi-sc b { font-size: 18px; }
.hi-st { margin: 0 4px 4px; font-size: 12.5px; color: var(--dim); }
.hi-more { display: block; width: 100%; margin: 6px 0 4px; background: var(--panel-2); color: var(--ink); font-family: var(--sans); letter-spacing: .066em; text-transform: uppercase; font-size: 14px; }
.hi-err { margin: 6px 8px; }
.hi-list .bd-empty .lock { color: var(--dim); margin-bottom: 6px; }
/* the way in, at the top of the stats sheet: a button for Pro, a plain locked row for everyone else */
.st-hist:empty { display: none; }
.st-hist { margin: 0 0 14px; }
.hi-row-go { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); color: var(--ink); text-align: left; font: inherit; }
button.hi-row-go { cursor: pointer; }
button.hi-row-go:hover { background: var(--panel-2); }
.hi-row-go.locked { border-style: dashed; background: transparent; color: var(--dim); }
.hi-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--data-soft); color: var(--data); }
.hi-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.locked .hi-ic { background: var(--panel-2); color: var(--faint); }
.hi-rt { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.hi-rt b { font-family: var(--sans); font-weight: 700; font-size: 15px; color: var(--ink); }
.locked .hi-rt b { color: var(--dim); }
.hi-rt small { font-size: 12.5px; line-height: 1.3; color: var(--dim); }
.hi-pro { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--panel-2); color: var(--dim); font: 700 11px/1 var(--sans); letter-spacing: .08em; }
.hi-pro .lock { width: 11px; height: 9px; margin-top: 4px; border-width: 1.6px; }
.hi-pro .lock::before { left: 1px; top: -6.5px; width: 5px; height: 5px; border-width: 1.6px; }
@media (min-width: 880px) {
  body[data-screen="s-hist"] .app { max-width: 1040px; }
  #s-hist { padding-top: 8px; }
  #s-hist .bd-hero { container-type: inline-size; }
  #hi-head { font-size: min(84px, 26cqi); }
  .hi-list { padding: 18px 14px 12px; }
  .hi-it { padding-left: 14px; }
}

/* ---- PRO, THE PROMO CARDS (pro-card.js; the owner's pick, direction A, 2026-11-18) ----
   The Diamond plate's own ice, the same in both themes because it is the gem's colour, not the page's:
   ink on ice, data blue for the second line and the ticks. Anton only for the one headline. */
/* at the foot of the home, over the footer (a phone, and up to 979 px) */
#h-side > .h-pro { margin: 12px 0 0; }
.hp-arc-c .pc-card { margin: 14px 0 0; }
.pc-card { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 18px 14px; color: #0b1a2e; text-align: left;
  background: radial-gradient(130% 90% at 100% 0%, rgba(255, 255, 255, .95), transparent 55%), linear-gradient(140deg, #f4fbff 0%, #bfe6ff 45%, #d9d2ff 70%, #8fc9f2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 18px 40px -16px rgba(43, 89, 255, .55), 0 0 0 1px rgba(143, 201, 242, .9); }
.pc-card::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 42%, transparent 50%), repeating-linear-gradient(60deg, transparent 0 22px, rgba(255, 255, 255, .18) 22px 23px); }
.pc-card > * { position: relative; }
.pc-top { display: flex; gap: 14px; align-items: center; }
.pc-card .plate.pc-big { width: 84px; height: 86px; flex: 0 0 84px; filter: drop-shadow(0 10px 16px rgba(43, 89, 255, .35)); }
.pc-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #2b59ff; color: #fff;
  font: 700 11px/1 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.pc-h { margin: 6px 0 0; font-family: var(--hero); font-weight: 400; font-size: 34px; line-height: .98; letter-spacing: .01em; text-transform: uppercase; color: #0b1a2e; }
.pc-h em { display: block; font-style: normal; color: #2b59ff; }
.pc-you { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .72); box-shadow: 0 0 0 1px rgba(43, 89, 255, .15); }
.pc-card .plate.pc-yg { width: 26px; height: 26px; flex: 0 0 26px; }
.pc-yn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-yn b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-yn small { font-size: 12px; color: #4a5e7a; }
.pc-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.pc-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; }
.pc-list li i { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #2b59ff; color: #fff; display: grid; place-items: center; }
.pc-list li i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pc-buy { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; }
.pc-price { margin: 0; display: flex; flex-direction: column; line-height: 1; }
.pc-price b { font-family: var(--hero); font-weight: 400; font-size: 30px; color: #0b1a2e; }
.pc-price span { font-size: 11.5px; font-weight: 600; color: #3a5070; margin-top: 3px; white-space: nowrap; }
.btn.pc-go { flex: 1; min-height: 48px; background: #0b1a2e; color: #fff; font: 700 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 18px -6px rgba(11, 26, 46, .6); }
.btn.pc-go:active { transform: translateY(1px); }
.btn.pc-go:focus-visible { outline: 2px solid #2b59ff; outline-offset: 2px; }
.pc-card .au-err:empty { display: none; }
.pc-card .au-err { margin: 8px 0 0; color: #b4232a; font-size: 13px; }
.pc-duo { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.pc-card .plate.pc-mid { width: 56px; height: 58px; filter: drop-shadow(0 8px 12px rgba(43, 89, 255, .35)); }
.pc-duo span { font: 400 26px var(--hero); color: #2b59ff; }
.pc-duo img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .4); }
.pc-pair .pc-h { font-size: 30px; margin-top: 8px; }
.pc-sub { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: #2d4361; }
.pc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; }
.pc-two div { background: rgba(255, 255, 255, .72); border-radius: 12px; padding: 10px; box-shadow: 0 0 0 1px rgba(43, 89, 255, .15); }
.pc-two b { display: block; font-size: 13px; }
.pc-two span { display: block; font-size: 12px; line-height: 1.35; color: #2d4361; margin-top: 4px; }
.pc-save { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; color: #0b1a2e; text-align: center; }
@media (max-width: 359px) { .pc-pair .pc-h { font-size: 26px; } .pc-h { font-size: 30px; } }
@media (min-width: 980px) { .pc-h { font-size: 38px; } }

/* ---- THE WELCOME TO PRO (pro-welcome.js; the owner, 2026-11-18) ----
   One full page over everything, once, after a checkout comes back and Pro lands. The Diamond plate
   big in the middle of a field of ice: in dark the night with an ice glow, in light the plate's own
   ice. Anton only for the headline. The gem lands, a band of light crosses it, shards fall once, the
   rows slide up in turn. Reduced motion (.still): all of it in place, no shards. It never depends on the
   home's layout: fixed, its own column, its own two at 980 px and up. */
.pw { --pw-bg: #f2f9ff; --pw-ink: #0b1a2e; --pw-dim: #3a5070; --pw-card: rgba(255, 255, 255, .78); --pw-line: rgba(43, 89, 255, .16); --pw-blue: #2b59ff;
  --pw-glow: rgba(143, 201, 242, .75); --pw-ray: rgba(255, 255, 255, .7);
  position: fixed; inset: 0; z-index: 80; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; color: var(--pw-ink);
  background: radial-gradient(120% 70% at 50% 0%, #ffffff 0%, transparent 60%), linear-gradient(160deg, #f4fbff 0%, #d4ecff 48%, #e3dcff 78%, #bfe0f7 100%); }
:root[data-theme="dark"] .pw { --pw-bg: #070b14; --pw-ink: #f4f7fb; --pw-dim: #a9b6cc; --pw-card: rgba(255, 255, 255, .06); --pw-line: rgba(143, 201, 242, .2); --pw-blue: #7fa2ff;
  --pw-glow: rgba(91, 130, 255, .42); --pw-ray: rgba(143, 201, 242, .16);
  background: radial-gradient(110% 60% at 50% 0%, #17233d 0%, transparent 65%), linear-gradient(170deg, #0b1222 0%, #070b14 60%, #0a0f1d 100%); }
body.pw-open { overflow: hidden; }
.pw-bg { position: absolute; inset: 0 0 auto; height: 560px; pointer-events: none; overflow: hidden; }
.pw-rays { position: absolute; left: 50%; top: 130px; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--pw-ray) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 62%); mask-image: radial-gradient(circle, #000 0%, transparent 62%); }
.pw-glow { position: absolute; left: 50%; top: 130px; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%;
  background: radial-gradient(circle, var(--pw-glow) 0%, transparent 70%); }
.pw-x { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 10px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--pw-card); box-shadow: inset 0 0 0 1px var(--pw-line); display: grid; place-items: center; color: var(--pw-ink); }
.pw-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pw-in { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 16px 0; min-height: 100%; display: flex; flex-direction: column; }
.pw-hero { text-align: center; }
.pw-gem { position: relative; width: 136px; height: 139px; margin: 8px auto 0; }
.pw-gem .plate.pw-plate { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 26px rgba(43, 89, 255, .45)); }
.pw-shine { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: soft-light; }
.pw-band { transform-box: view-box; opacity: 0; }
.pw-gl { position: absolute; width: 22px; height: 22px; color: #fff; opacity: 0; filter: drop-shadow(0 0 6px rgba(143, 201, 242, .95)); }
.pw-gl svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.pw-gl.a { top: 6px; left: -14px; } .pw-gl.b { top: 40px; right: -20px; width: 16px; height: 16px; } .pw-gl.c { bottom: 18px; left: 2px; width: 13px; height: 13px; }
.pw-chip { display: inline-flex; align-items: center; height: 26px; margin: 14px 0 0; padding: 0 12px; border-radius: 999px; background: var(--pw-blue); color: #fff;
  font: 700 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
:root[data-theme="dark"] .pw-chip { background: #2b59ff; }
.pw-h { margin: 10px 0 0; font-family: var(--hero); font-weight: 400; font-size: 46px; line-height: .95; letter-spacing: .01em; text-transform: uppercase; color: var(--pw-ink); }
.pw-h span { display: block; font-size: .52em; letter-spacing: .04em; color: var(--pw-dim); margin-bottom: 4px; }
.pw-h em { font-style: normal; color: var(--pw-blue); }
.pw-sub { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--pw-dim); }
.pw-pair { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 10px 14px 10px 10px; min-height: 60px; border-radius: 16px; text-align: left; text-decoration: none; color: var(--pw-ink);
  background: var(--pw-card); box-shadow: inset 0 0 0 1.5px var(--pw-blue); }
.pw-pair img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px; }
.pw-pair span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pw-pair b { font-size: 14.5px; line-height: 1.25; } .pw-pair small { font-size: 12.5px; font-weight: 700; color: var(--pw-blue); margin-top: 2px; }
.pw-pair > svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--pw-blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pw-side { display: flex; flex-direction: column; flex: 1; }
.pw-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.pw-row { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 10px; border: 0; border-radius: 16px; text-align: left; color: var(--pw-ink);
  background: var(--pw-card); box-shadow: inset 0 0 0 1px var(--pw-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
button.pw-row:hover { box-shadow: inset 0 0 0 1.5px var(--pw-blue); }
button.pw-row:active { transform: translateY(1px); }
.pw-ri { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pw-blue); color: #fff; }
:root[data-theme="dark"] .pw-ri { background: #2b59ff; }
.pw-ri svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pw-ri .plate.pw-ri-gem { width: 32px; height: 33px; stroke: none; }
.pw-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pw-rt b { font-size: 15px; font-weight: 700; line-height: 1.2; }
.pw-rt small { font-size: 12.5px; line-height: 1.35; color: var(--pw-dim); margin-top: 2px; }
.pw-ch svg { width: 18px; height: 18px; display: block; fill: none; stroke: var(--pw-dim); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pw-act { position: sticky; bottom: 0; display: grid; gap: 8px; margin: 18px -16px 0; padding: 14px 16px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--pw-bg) 28%); }
.btn.pw-go { min-height: 54px; background: var(--signal); color: #fff; font: 700 15px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 3px 0 #c43a12, 0 10px 24px -10px rgba(255, 79, 31, .7); }
.btn.pw-home { min-height: 46px; background: transparent; color: var(--pw-ink); box-shadow: inset 0 0 0 1px var(--pw-line); font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.pw :focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
/* the shards: once, then the element goes (pro-welcome.js) */
.pw-shards { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.pw-shards i { position: absolute; top: -16px; width: 9px; height: 9px; transform: rotate(45deg) scale(var(--s)); border-radius: 1.5px; opacity: 0;
  animation: pw-fall 2.6s cubic-bezier(.25, .6, .5, 1) forwards; }
@keyframes pw-fall { 0% { opacity: 1; transform: translate(0, 0) rotate(45deg) scale(var(--s)); } 100% { opacity: .85; transform: translate(var(--dx), 105vh) rotate(var(--r)) scale(var(--s)); } }
/* the motion, once */
.pw.on:not(.still) { animation: pw-in .35s ease-out both; }
.pw.on:not(.still) .pw-gem { animation: pw-gem .8s cubic-bezier(.2, 1.4, .4, 1) .1s both; }
.pw.on:not(.still) .pw-band { animation: pw-shine 1.3s ease-in-out .75s both; }
.pw.on:not(.still) .pw-gl { animation: pw-glint 1.6s ease-in-out both; }
.pw.on:not(.still) .pw-gl.a { animation-delay: .9s; } .pw.on:not(.still) .pw-gl.b { animation-delay: 1.25s; } .pw.on:not(.still) .pw-gl.c { animation-delay: 1.55s; }
.pw.on:not(.still) .pw-rays { animation: pw-rays 1.2s ease-out both, pw-spin 80s linear infinite; }
.pw.on:not(.still) .pw-chip, .pw.on:not(.still) .pw-h, .pw.on:not(.still) .pw-sub, .pw.on:not(.still) .pw-pair { animation: pw-up .5s cubic-bezier(.2, .8, .3, 1) .45s both; }
.pw.on:not(.still) .pw-h { animation-name: pw-slam; animation-delay: .35s; }
.pw.on:not(.still) .pw-list li { animation: pw-up .45s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(.6s + var(--k) * .07s); }
.pw.on:not(.still) .pw-act { animation: pw-up .45s cubic-bezier(.2, .8, .3, 1) 1s both; }
.pw.still .pw-band { opacity: 0; } .pw.still .pw-gl { opacity: .9; }
@keyframes pw-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pw-gem { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
@keyframes pw-shine { 0% { opacity: 1; transform: translateX(-160px) rotate(18deg); } 100% { opacity: 1; transform: translateX(520px) rotate(18deg); } }
@keyframes pw-glint { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes pw-rays { from { opacity: 0; } to { opacity: 1; } }
@keyframes pw-spin { to { transform: rotate(360deg); } }
@keyframes pw-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pw-slam { 0% { opacity: 0; transform: scale(1.25); } 60% { opacity: 1; transform: scale(.98); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pw, .pw *, .pw-shards { animation: none !important; }
  .pw-shards { display: none; }
}
@media (max-width: 359px) { .pw-h { font-size: 40px; } .pw-gem { width: 124px; height: 127px; } }
/* a short phone: the gem smaller, so the rows start higher */
@media (max-height: 700px) and (max-width: 979px) { .pw-gem { width: 116px; height: 118px; } .pw-h { font-size: 40px; } }
/* a desk: the hero on the left, what Pro opens and the buttons on the right, both centred in the window */
@media (min-width: 980px) {
  .pw-in { max-width: 1080px; padding: 0 48px; flex-direction: row; align-items: center; gap: 64px; min-height: 100vh; }
  .pw-hero { flex: 1 1 0; min-width: 0; }
  .pw-side { flex: 0 0 470px; padding: 40px 0; }
  .pw-gem { width: 230px; height: 235px; }
  .pw-h { font-size: 68px; }
  .pw-sub { font-size: 16px; }
  .pw-pair { max-width: 420px; margin: 22px auto 0; }
  .pw-bg { inset: 0 auto 0 0; width: 55%; height: auto; }
  .pw-rays, .pw-glow { top: 42%; }
  .pw-glow { width: 480px; height: 480px; margin: -240px 0 0 -240px; }
  .pw-list { margin: 0; }
  .pw-act { position: static; margin: 18px 0 0; padding: 0; background: none; grid-template-columns: 1.4fr 1fr; }
  .pw-x { top: 18px; right: 18px; }
}
:root:not([data-theme="dark"]) .pw-shards i:nth-child(6n+2) { background: #2b59ff !important; }
/* ---- THE HOME ON A DESK (desk.js; the owner's layout, 2026-11-18, mockup E) ----------------------
   980 px and up, and only under body.std-desk, which desk.js sets there: a phone never matches a rule
   here. One centred container the headline, the three columns, the Pro bar and the footer all align
   to; one gap; one card surface (the night glass of today's card, in both themes, since the home is
   the stadium at night in both). The columns stretch to one height, so they start and end together:
   the daily card, the archive and the vote take the spare height in theirs. */
@media (min-width: 980px) {
  body.std-desk #s-home { padding-left: 40px; padding-right: 40px; }
  body.std-desk .title { display: block; max-width: 1240px; margin: 0 auto; padding-top: 20px; --g: 24px; }
  body.std-desk .t-head { text-align: center; margin-bottom: var(--g); }
  body.std-desk .t-l1 { font-size: 52px; }
  body.std-desk .t-l2 { margin-top: 2px; font-size: 84px; }
  body.std-desk #h-modes, body.std-desk #h-panes { display: none; }
  .d-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--g); align-items: stretch; }
  .d-col { display: flex; flex-direction: column; gap: var(--g); min-width: 0; }
  .d-col > * { margin: 0 !important; }
  /* the one surface, with the night's tokens inside it */
  body.std-desk .d-col .t-sit, body.std-desk .d-col .hb-top, body.std-desk .d-col .h-vote, body.std-desk .d-surv, body.std-desk .d-arc, body.std-desk .d-ump {
    --bg: #0b0f17; --panel: #141a26; --panel-2: #1b2231; --ink: #f4f5f7; --dim: #9aa3b5; --faint: #6b7487;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14); --data: #5b82ff; --data-soft: rgba(91, 130, 255, .18); --signal-soft: rgba(255, 79, 31, .16);
    color-scheme: dark; color: var(--ink); border: 0; border-radius: 20px;
    background: rgba(10, 14, 22, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px -24px rgba(0, 0, 0, .7);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

  /* the centre: the daily card at broadcast scale, take the mound in it, its rows sharing the spare height */
  body.std-desk .d-m .t-sit { display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 12px; padding: 20px; }
  body.std-desk .d-m .h-title { font-size: 16px; }
  body.std-desk .d-m .t-sit .scorebar.hb { padding: 16px 20px; gap: 14px; border-radius: 16px; }
  body.std-desk .d-m .scorebar.hb .sb-teams { gap: 10px; }
  body.std-desk .d-m .scorebar.hb .sb-team { height: 36px; gap: 12px; }
  body.std-desk .d-m .scorebar.hb .sb-club { width: 6px; height: 34px; }
  body.std-desk .d-m .scorebar.hb .sb-team .tm { font-size: 17px; }
  body.std-desk .d-m .scorebar.hb .sb-team b { font-size: 34px; }
  body.std-desk .d-m .scorebar.hb .sb-inn { font-size: 17px; padding: 9px 12px; }
  body.std-desk .d-m .scorebar.hb .sb-wo { font-size: 10px; padding: 3px 6px 2px; }
  body.std-desk .d-m .scorebar.hb .sb-bases { width: 66px; height: 50px; }
  body.std-desk .d-m .scorebar.hb .sb-outs { height: 16px; }
  body.std-desk .d-m .scorebar.hb .sb-outs i { width: 16px; height: 16px; }
  body.std-desk .d-m .scorebar.hb .sb-lbl { font-size: 12px; }
  .d-match { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  body.std-desk .d-match > .t-who { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
  body.std-desk .d-m .t-who .tw-lbl { font-size: 12.5px; }
  body.std-desk .d-m .t-who .tw-name { font-size: 22px; }
  body.std-desk .d-m .t-who .tw-meta { font-size: 13.5px; }
  body.std-desk .d-m .t-sit .stakes { padding: 12px 14px; font-size: 15px; }
  body.std-desk .d-m .t-sit .st-mark { flex-basis: 28px; height: 28px; }
  body.std-desk .d-m .btn.take { min-height: 76px; font-size: 40px; border-radius: 16px; }
  body.std-desk .d-m .t-go { gap: 10px; padding-top: 4px; }
  body.std-desk .d-m .t-go .streak { font-size: 14px; }
  /* today's top 3 under it, compact: no column heads, shorter rows */
  body.std-desk .d-m .hb-top { flex: none; display: flex; flex-direction: column; padding: 14px 14px 12px; }
  body.std-desk .d-m .hb-top .bd-lh { padding: 0 6px; margin-bottom: 2px; }
  body.std-desk .d-m .hb-cols { display: none; }
  body.std-desk .d-m .hb-body { height: 108px; margin-bottom: 8px; }
  body.std-desk .d-m .hb-rows li { height: 36px; }
  body.std-desk .d-m .hb-all { min-height: 40px; margin-top: 0; }

  /* the left: Survivor's hero as a card, then the archive's calendar filling to the foot */
  body.std-desk .d-surv { padding: 18px 20px 20px; }
  body.std-desk .d-surv .sv-hero { padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  body.std-desk .d-surv .sv-hero .bd-head { font-size: 44px; margin: 2px 0 4px; }
  body.std-desk .d-surv .sv-hero .seam { display: none; }
  body.std-desk .d-surv .bd-note { margin: 12px 0 0; font-size: 13px; color: var(--dim); }
  body.std-desk .d-surv .sv-go { min-height: 52px; font-size: 24px; }
  body.std-desk .d-arc { flex: 1; padding: 18px 18px 16px; }
  body.std-desk .d-arc .hp-h { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 18px; }
  body.std-desk .d-arc #past-body > p { margin: 4px 0 0; font-size: 13.5px; color: var(--dim); }
  /* the archive's own Get Pro and the two-game card stay off on a desk: the Pro bar sells it there */
  body.std-desk .d-arc .pro-offer[data-pro-where="archive"], body.std-desk .d-arc .pc-pair { display: none; }
  body.std-desk .d-arc .arc-cal { margin-top: 12px; }
  body.std-desk .d-arc .ac-d { min-height: 44px; padding: 4px 2px; }
  body.std-desk .d-arc .ac-d .lock { margin-top: 4px; transform: scale(.7); }
  body.std-desk .d-arc .ac-wk, body.std-desk .d-arc .ac-grid { gap: 5px; }

  /* the right: the vote takes the height, its two stacked and grown; the ump is one row */
  body.std-desk .d-r .h-vote { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 18px; }
  body.std-desk .d-r .h-vote .r-sec-h { font-size: 22px; }
  body.std-desk .d-r .vt-opts { flex: 1; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 12px; margin-top: 4px; }
  body.std-desk .d-r .vt-o { align-items: center; padding: 18px 20px; border-radius: 16px; }
  body.std-desk .d-r .vt-t { gap: 3px; }
  body.std-desk .d-r .vt-t b { font-size: 24px; }
  body.std-desk .d-r .vt-t span { font-size: 14.5px; }
  body.std-desk .d-r .vt-t .vt-s { margin-top: 10px; font-size: 16px; line-height: 1.45; }
  body.std-desk .d-r .vt-n b { font-size: 22px; }
  body.std-desk .d-r .vt-in { margin-top: 14px; }
  body.std-desk .d-r .vt-in p, body.std-desk .d-r .vt-say { font-size: 14px; }
  body.std-desk .d-ump { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
    background: linear-gradient(90deg, rgba(255, 79, 31, .12), transparent 55%), rgba(10, 14, 22, .82); }
  .d-ump-i { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: rgba(255, 79, 31, .22); }
  .d-ump-i svg { width: 21px; height: 21px; fill: none; stroke: #ff8a63; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .d-ump-h { flex: 1; min-width: 0; margin: 0; font-family: var(--sans); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .btn.d-ump-go { flex: none; min-height: 40px; padding: 0 14px; border-radius: 11px; background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    font: 700 12px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
  .btn.d-ump-go:hover, .btn.d-ump-go:focus-visible { background: var(--signal); box-shadow: none; outline: 0; }

  /* the Pro bar (pro-card.js bar()) and the footer, across the container */
  body.std-desk .title > .h-pro { display: block; margin: var(--g) 0 0; }
  body.std-desk .title > .h-pro[hidden] { display: none; }
  .pb-bar { position: relative; display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 10px 12px 10px 16px; border-radius: 18px; color: #f4f5f7;
    background: linear-gradient(90deg, rgba(143, 201, 242, .1), transparent 40%), rgba(10, 14, 22, .82);
    box-shadow: inset 0 0 0 1px rgba(143, 201, 242, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .pb-bar p { margin: 0; }
  .pb-bar .plate.pb-gem { width: 34px; height: 35px; flex: 0 0 34px; }
  .pb-name { flex: none; font-family: var(--sans); font-weight: 700; font-size: 16px; white-space: nowrap; }
  .pb-name em { font-style: normal; color: #9fd3ff; }
  .pb-perks { flex: 1; min-width: 0; font-size: 13.5px; color: rgba(244, 245, 247, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pb-perks span { margin: 0 8px; color: rgba(159, 211, 255, .6); }
  .pb-price { flex: none; font-size: 13px; color: rgba(244, 245, 247, .7); white-space: nowrap; }
  .pb-price b { font-weight: 700; font-size: 16px; color: #fff; }
  .btn.pb-go { flex: none; min-height: 44px; padding: 0 20px; border-radius: 12px; font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #0b1a2e;
    background: linear-gradient(135deg, #e3f5ff, #bfe6ff 50%, #d9d2ff); box-shadow: none; }
  .btn.pb-go:focus-visible { outline: 2px solid #9fd3ff; outline-offset: 2px; }
  .pb-bar .au-err { position: absolute; right: 16px; top: 100%; margin: 6px 0 0; font-size: 13px; color: #ff8a8a; }
  .pb-bar .au-err:empty { display: none; }
  body.std-desk .title > .legal { margin: 40px 0 8px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
  body.std-desk .title > .legal .legal-mark { width: 72px; height: 72px; }
  body.std-desk .title > .legal p { max-width: 680px; margin-left: auto; margin-right: auto; }
  body.std-desk .title > .legal .src { font-size: 12px; line-height: 1.5; }

  /* THE DRAWER: the header's left button opens it, the scrim, its cross and Escape close it. On the home
     it is the one menu, so the header's right menu button steps aside there */
  .d-menu-b { display: none; }
  body.std-desk[data-screen="s-home"] .d-menu-b { display: grid; }
  body.std-desk[data-screen="s-home"] #b-menu { display: none; }
  body.std-desk .hdr { justify-content: flex-start; gap: 6px; }
  body.std-desk .hdr .hdr-r { margin-left: auto; }
  .d-menu-b svg, .d-dx svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .d-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(5, 7, 12, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .d-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 71; width: 360px; padding: 14px 14px 20px; display: flex; flex-direction: column; gap: 10px; color: #f4f5f7; overflow-y: auto;
    background: rgba(10, 14, 22, .94); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .1), 24px 0 60px -20px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateX(-104%); visibility: hidden; transition: transform .26s cubic-bezier(.22, .8, .24, 1), visibility 0s .26s; }
  body.d-menu-on .d-scrim { opacity: 1; pointer-events: auto; }
  body.d-menu-on .d-drawer { transform: none; visibility: visible; transition: transform .26s cubic-bezier(.22, .8, .24, 1), visibility 0s; }
  .d-dh { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 4px 0 8px; }
  .d-dh b { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 245, 247, .7); }
  .d-dx { color: #fff; }
  .d-drawer #h-menu { position: static; animation: none; margin: 0; align-self: stretch; }
  .d-drawer .d-pro[hidden] { display: none; }
  .d-drawer .mu-pro { min-height: 64px; padding-left: 14px; }
  .d-drawer #h-menu .t-list { display: flex; flex-direction: column; border-radius: 16px; }
  .d-drawer #h-menu .t-list button { min-height: 68px; gap: 14px; padding: 10px 16px 10px 14px; font-size: 16.5px; }
  .d-drawer #h-menu .t-list button + button { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .d-drawer #h-menu .t-list button::after { display: block; margin-left: auto; flex: 0 0 auto; }
  .d-drawer #h-menu .t-list .tl-i { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; }
}
@media (min-width: 1600px) {
  body.std-desk .title { max-width: 1520px; padding-top: 28px; --g: 28px; }
  body.std-desk .t-l1 { font-size: 64px; }
  body.std-desk .t-l2 { font-size: 100px; }
  .pb-bar { min-height: 72px; padding-left: 20px; gap: 20px; }
  body.std-desk .d-arc .ac-d { min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .d-drawer, .d-scrim { transition: none; } }
/* ---- CUSTOM CHALLENGES (Pro, the owner 2026-11-18, CONTRACT.md 18; challenge-ui.js) ----
   The board's frame: the night hero, then a card. The builder is a card of plain pickers in Inter (labels
   in capitals, rows and names as written); the live preview sits right under the two pickers and stays in
   view on a phone, so a change shows as it is made. Anton only for the screen heads and the intro's one
   headline. Data blue marks the challenge (the Pro perk's accent), signal stays for the one action. */
#s-chal, #s-cint { padding: 4px 16px 32px; }
#cb-head { font-size: min(64px, 15.5vw); }
.ch-say { margin: 0; font-size: 14px; color: rgba(244, 245, 247, .82); }
.ch-tabs { display: flex; width: 100%; margin: 12px 0 0; }
.ch-tabs button { flex: 1 1 0; }
#s-chal[data-tab="new"] .ch-mine, #s-chal[data-tab="mine"] .ch-build { display: none; }
.ch-build { padding: 16px 14px 18px; }
.ch-mine { margin-top: 12px; }
.ch-wait, .ch-none { margin: 4px 8px 10px; }
.ch-note { margin: 0 0 10px; }
.ch-code { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--dim); font-variant-numeric: tabular-nums; }
/* the card any screen can carry (the archive tab's) */
.ch-card { padding: 14px; }
.hp-arc-c + #h-chal .ch-card { margin-top: 12px; }
.ch-ct { display: flex; align-items: center; gap: 12px; }
.ch-ic, .cb-lock .lock { flex: 0 0 auto; }
.ch-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--data-soft); color: var(--data); }
.ch-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ch-ctt { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.ch-ctt b { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.ch-card { color: var(--ink); }
.ch-ctt small { font-size: 12.5px; line-height: 1.35; color: var(--dim); }
.ch-card-go { width: 100%; min-height: 44px; margin-top: 12px; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; }
.ch-card-go:hover { border-color: var(--data); color: var(--data); }

/* the builder */
.cb-picks { display: grid; gap: 10px; }
.cb-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cb-l { font-family: var(--sans); font-weight: 700; font-size: 11.5px; letter-spacing: .088em; text-transform: uppercase; color: var(--dim); }
.cb-sel { appearance: none; -webkit-appearance: none; width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); font: 600 15px var(--sans);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a93a6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 15px center / 12px 8px no-repeat; }
.cb-sel:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
.cb-prev { position: sticky; top: 0; z-index: 3; margin: 12px -6px 14px; padding: 10px; border-radius: 16px; background: var(--night); color: var(--on-night); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08); min-height: 72px; transition: opacity .15s; }
.cb-prev.busy { opacity: .72; }
.cb-bug .scorebar.hb { padding: 8px 12px; }
.cb-setup { margin: 8px 2px 0; font-size: 13px; line-height: 1.38; color: rgba(244, 245, 247, .9); }
.cb-hold { display: flex; align-items: baseline; gap: 10px; margin: 6px 2px 0; }
.cb-hold b { font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 1; color: #8fa8ff; font-variant-numeric: tabular-nums; }
.cb-hold span { font-size: 12.5px; color: rgba(244, 245, 247, .7); }
.cb-why { margin: 6px 4px; font-weight: 600; font-size: 14px; color: #ffb199; }
.cb-why::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--signal); vertical-align: 1px; }
.cb-hint { margin: 0; font-size: 12.5px; color: var(--dim); }
.cb-order { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cb-order li { display: flex; align-items: center; gap: 6px; padding: 0 8px 0 0; min-height: 46px; }
.cb-order li + li { border-top: 1px solid var(--line); }
.cb-order li.up { background: var(--signal-soft); box-shadow: inset 3px 0 0 var(--signal); }
.cb-order li.on { background: var(--data-soft); }
.cb-who { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 46px; padding: 0 6px 0 10px; border: 0; background: none; color: var(--ink); text-align: left; }
.cb-n { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--panel-2); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
li.up .cb-n { background: var(--signal); color: #fff; }
li.on .cb-n { background: var(--data); color: #fff; }
.cb-nm { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cb-bt { flex: 0 0 auto; font-style: normal; font-weight: 700; font-size: 11px; color: var(--faint); }
.cb-up { flex: 0 0 auto; padding: 6px 10px 5px; border-radius: 8px; background: var(--signal); color: #fff; font: 700 11.5px/1 var(--sans); letter-spacing: .08em; }
.cb-bases { flex: 0 0 auto; display: flex; gap: 4px; }
.cb-b { width: 40px; min-height: 38px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); color: var(--dim); font: 700 11.5px var(--sans); letter-spacing: .04em; }
.cb-b[aria-pressed="true"] { background: var(--data); border-color: var(--data); color: #fff; }
.cb-b:hover { border-color: var(--data); }
.cb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin: 16px 0 0; }
.cb-grid .cb-f:nth-child(1), .cb-grid .cb-f:nth-child(4), .cb-grid .cb-f:nth-child(5) { grid-column: 1 / -1; }
.cb-seg { display: flex; width: 100%; }
.cb-seg button { flex: 1 1 0; padding: 6px 4px; }
.cb-seg button[aria-checked="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .2), inset 0 -2px 0 var(--signal); }
.cb-step { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px; border-radius: 10px; background: rgba(127, 127, 127, .18); }
.cb-step button { width: 44px; min-height: 38px; border: 0; border-radius: 8px; background: var(--panel); font-weight: 700; font-size: 18px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.cb-step button:disabled { opacity: .4; }
.cb-step b { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.cb-note { margin: 12px 2px 0; font-size: 12.5px; color: var(--dim); }
.cb-go { margin: 16px 0 0; }
.btn.take.cb-make { min-height: 56px; font-size: 26px; }
.btn.take.cb-make:disabled { opacity: .45; box-shadow: none; }
.cb-done { margin: 16px 0 0; padding: 14px; border-radius: 16px; background: var(--data-soft); box-shadow: inset 0 0 0 1.5px var(--data); }
.cb-dh { margin: 0 0 10px; font-size: 14px; }
.cb-link { display: flex; gap: 8px; }
.cb-link input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); color: var(--ink); font: 600 13.5px var(--sans); }
.cb-link .btn { min-height: 44px; padding: 8px 16px; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; }
.cb-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 8px; }
.cb-acts .btn, .ci-send { min-height: 44px; font-size: 13.5px; letter-spacing: .07em; text-transform: uppercase; }
.cb-done .quiet { margin: 0; }
.cb-lock { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 8px 6px; text-align: center; }
.cb-lock .lock { color: var(--data); margin-bottom: 4px; }
.cb-lock b { font-weight: 700; font-size: 20px; }
.cb-lock p { margin: 0 0 4px; font-size: 14px; color: var(--dim); max-width: 380px; }
.cb-lock .pro-offer { width: 100%; max-width: 380px; }
.cb-lock .pro-offer > p.quiet:empty { display: none; }

/* the standings (the intro and the result) */
.ch-rows li { grid-template-columns: 32px minmax(0, 1fr) auto 52px; }
.ch-rows .nm em.mk { color: var(--data); }

/* the intro */
.ci-hero { box-shadow: var(--shadow), inset 4px 0 0 var(--club, var(--data)); }
.ci-head { margin: 4px 0 8px; font-family: var(--hero); font-weight: 400; font-size: min(46px, 11.5vw); line-height: .95; text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.ci-head::after { content: '.'; color: var(--signal); }
.ci-vs { display: flex; flex-direction: column; margin: 0 0 10px; }
.ci-vs b { font-weight: 700; font-size: 19px; }
.ci-vs span { font-size: 13.5px; color: rgba(244, 245, 247, .75); }
.ci-bug { margin: 0 0 10px; }
.ci-setup { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: rgba(244, 245, 247, .9); }
.ci-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 14px; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ci-facts span { display: flex; flex-direction: column; padding: 8px 0 7px; font-size: 11.5px; letter-spacing: .066em; text-transform: uppercase; color: rgba(244, 245, 247, .62); }
.ci-facts span + span { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .1); }
.ci-facts b { font-weight: 700; font-size: 25px; line-height: 1.05; letter-spacing: 0; color: #fff; font-variant-numeric: tabular-nums; }
.ci-facts span:first-child b { color: #8fa8ff; }
.ci-btns { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px; }
.ci-btns .btn.take { min-height: 56px; font-size: 26px; }
.ci-btns .btn.dk { min-height: 56px; letter-spacing: .07em; text-transform: uppercase; }
.ci-said { margin: 10px 0 0; font-size: 13px; color: rgba(244, 245, 247, .78); }
.ci-said b { color: #fff; }
.ci-said:first-child, .ci-save + .ci-said { margin: 0 0 10px; }
.ci-save { margin: 0 0 12px; }
.ci-load { color: var(--on-night); }
.ci-load b { color: #fff; } .ci-load p { color: rgba(244, 245, 247, .75); }
.ci-share { margin: 14px 8px 6px; display: flex; flex-direction: column; gap: 8px; }
.ci-share .cb-link + .ci-send { width: 100%; }

/* the result: you against them, in the rail's verdict bar */
.vsbar.chal .cv { display: flex; align-items: flex-end; gap: 12px; margin: 4px 0 6px; flex-wrap: wrap; }
.cv-s { display: flex; flex-direction: column; min-width: 0; }
.cv-s i { font-style: normal; font-weight: 600; font-size: 11.5px; letter-spacing: .088em; text-transform: uppercase; color: rgba(244, 245, 247, .7); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-s b { font-weight: 700; font-size: 30px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; margin: 2px 0 0; }
.cv-s.win b { color: #ff7a52; }
.vsbar.matched .cv-s.win b { color: #8fa8ff; }
.cv-dot { font-weight: 700; font-size: 26px; line-height: 1; color: rgba(244, 245, 247, .45); padding-bottom: 2px; }
.r-chal .cb-hold b { color: var(--data); }
.r-chal .cb-hold span { color: var(--dim); }
.r-chal .ci-share { margin: 14px 0 4px; }
.r-chal .bd-lh { padding: 0; margin-top: 12px; }
.r-chal .ch-rows li { padding: 8px 4px; }

@media (min-width: 880px) {
  body[data-screen="s-chal"] .app, body[data-screen="s-cint"] .app { max-width: 1040px; }
  #s-chal, #s-cint { padding-top: 8px; }
  .ch-tabs { display: none; }
  #s-chal[data-tab] .ch-mine, #s-chal[data-tab] .ch-build { display: block; }
  .ch-build { padding: 20px 20px 22px; }
  .cb-picks { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .cb-prev { position: static; margin: 14px 0 16px; }
  .cb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cb-grid .cb-f:nth-child(n) { grid-column: auto; }
  .cb-grid .cb-f:nth-child(2) { grid-column: span 2; }
  .cb-grid .cb-f:nth-child(4), .cb-grid .cb-f:nth-child(5) { grid-column: span 1; }
  #s-chal .bd-hero, #s-cint .bd-hero { container-type: inline-size; }
  #cb-head { font-size: min(84px, 22cqi); }
  .ci-head { font-size: 52px; }
}
