/* dnode Stats — shared design system.
 *
 * ONE stylesheet for every page so the homepage and competition pages can never
 * drift apart in color or feel. Premium / Apple-like, but ZERO runtime cost:
 *  - System font stack (San Francisco on Apple devices) — no web-font download.
 *  - Static gradient glow + layered surfaces for depth — no animation loops.
 *  - No backdrop-blur and no infinite animations (both are GPU-costly).
 *  - The CHROME accent (--brand) is constant everywhere; a tenant's brand color
 *    is only ever used as a small IDENTITY marker (an org swatch), never to
 *    repaint the whole UI — that was what made the pages clash.
 */

/* DARK is the default. Every overlay (lines, card sheens, chips) is rgba(var(--ov),a)
 * so the SINGLE --ov knob flips them; the light theme just re-points the palette.
 * Theme is set on <html data-theme="…"> by a tiny inline boot script per page. */
:root {
  color-scheme: dark;
  --ov: 255,255,255;         /* overlay base — white on the dark surface */
  --brand: #2f6df6;          /* constant system-blue accent for chrome */
  --brand-soft: #5b8bff;
  --bg: #07090d;             /* near-black with a faint cool cast */
  --surface: #10131a;        /* card */
  --surface-2: #161a23;      /* raised card / hover */
  --line: rgba(var(--ov),0.07);
  --line-2: rgba(var(--ov),0.12);
  --text: #f4f6fb;
  --dim: #98a0b0;            /* secondary text */
  --dim-2: #6b7384;          /* tertiary */
  --ok: #34d399;
  --ok-rgb: 52,211,153;      /* rgb triplet of --ok, for rgba() tints (mirrors --bad-rgb) */
  --bad: #f87171;
  --bad-rgb: 248,113,113;    /* rgb triplet of --bad, for rgba() tints (mirrors --ov/--awc/--hmc) */
  --notice: #F2A93B;         /* operator notice — amber (dark theme) */
  --notice-rgb: 242,169,59;
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1080px;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-num: 'Geist Mono', ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, monospace;
  --awc: 16,19,26;             /* away-team wash colour (rgb) — defaults to surface, invisible */
  --hmc: 16,19,26;             /* home-team wash colour (rgb) — defaults to surface, invisible */
  --wash-a: .30;               /* wash alpha — dark theme */
}

/* LIGHT theme — re-point the palette; --ov flips every overlay to slate-alpha. */
[data-theme="light"] {
  color-scheme: light;
  --ov: 15,23,42;            /* overlay base — slate on the light surface */
  --bg: #f3f5f9;             /* soft light-grey page */
  --surface: #ffffff;        /* white card */
  --surface-2: #eceff5;      /* raised card / hover */
  --text: #111824;           /* near-black ink */
  --dim: #586172;
  --dim-2: #8b95a6;
  --ok: #0a9d57;             /* darker for contrast on white */
  --ok-rgb: 10,157,87;
  --bad: #e0273a;
  --bad-rgb: 224,39,58;
  --notice: #C77A06;         /* darkened amber — the OTT's #F2A93B fails contrast on white */
  --notice-rgb: 199,122,6;
  --awc: 255,255,255;          /* away wash defaults to white — invisible on white surface */
  --hmc: 255,255,255;          /* home wash defaults to white — invisible on white surface */
  --wash-a: .18;               /* softer alpha for light theme */
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
html, body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font);
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}
a { color: inherit; text-decoration: none; }

/* Static ambient glow — one fixed layer, composited once, no per-frame paint. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% -8%, rgba(47,109,246,0.16), transparent 60%),
    radial-gradient(48% 38% at 100% 0%, rgba(120,90,255,0.07), transparent 55%);
}

/* ---- top bar (not sticky — scrolls away with the page) ---- */
.top { background: var(--bg); border-bottom: 1px solid var(--line); }
/* Centered, logo-less brand header. */
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 14px 22px; display: flex; justify-content: center; align-items: center; }
.mark { display: none; }
.brand { text-align: center; }
.brand b { font-weight: 650; letter-spacing: -0.02em; font-size: 15px; }
.brand small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); margin-top: 1px; }

/* ---- page shell ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 30px 22px 96px; }
/* Premium back affordance — a real, tappable pill, not bare text. */
.back { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px 8px 12px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  transition: background .15s, border-color .15s, color .15s, transform .1s; }
.back:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.back:active { transform: scale(0.97); }
button.back { font-family: inherit; cursor: pointer; }
/* Watch + Report carry [hidden] until the data confirms they apply. Because .back
   sets display:inline-flex, an AUTHOR display rule beats the UA [hidden]{display:none},
   so the attribute was DEFEATED: the pill painted from first paint — before the fetch —
   with .back's colour transition armed, so it briefly showed a transient (theme-tinted)
   fill and animated to the accent = the load flicker (and Watch wrongly showed on
   stats-only matches). Restore hidden so they stay display:none until revealed; a
   display:none→flex reveal runs no transition, so the pill appears in its final colour. */
.back[hidden] { display: none; }
/* Match page: Back (left) + Share (right) on one row, same pill styling. */
.match-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; margin-bottom: 20px; flex-wrap: wrap; }
.match-topbar .back { margin-bottom: 0; }
.back-nav .back-chev { font-size: 17px; line-height: 1; margin-right: 6px; }
.topbar-actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* Mobile: collapse "Back to schedule" to just the ‹ chevron and tighten the
   action pills so Back + Report + Share + Watch stay on ONE row (no wrap). */
@media (max-width: 560px) {
  .back-nav .back-lbl { display: none; }
  .back-nav .back-chev { margin-right: 0; }
  .back-nav { padding: 8px 12px; }
  .match-topbar .back { padding: 7px 11px; font-size: 12.5px; }
  .topbar-actions { gap: 6px; }
}
/* Watch — the criss-cross CTA to the OTT. Filled accent so it stands out from
   the outline Back/Report/Share pills. --brand is constant in both themes and
   white reads on it, so this needs no light-mode override. */
.watch-btn { background: var(--brand); border-color: var(--brand); color: #fff; padding-left: 13px; }
.watch-btn:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: #fff; }
.watch-btn.is-live { background: var(--live, #ef4444); border-color: var(--live, #ef4444); }
.watch-btn.is-live:hover { filter: brightness(1.08); }
.watch-btn .watch-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 1px; }
h1 { font-size: 32px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 680; margin: 16px 0 4px; }
.sub { color: var(--dim); margin: 0 0 22px; }
/* Consistent section rhythm app-wide: clear top gap before every section label,
   so a table/cards never sit flush against the next section's heading. */
.section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); margin: 30px 0 14px; }
.section-label:first-child { margin-top: 0; }
.muted { color: var(--dim); }

/* ---- hero (home) ---- */
/* Compact, premium header — tight on vertical space so the pickers lead. */
.hero { padding: 6px 0 16px; }
.hero h1 { font-size: 27px; letter-spacing: -0.025em; max-width: 22ch; line-height: 1.12; }
.hero p { color: var(--dim); margin: 7px 0 0; max-width: 56ch; font-size: 13.5px; line-height: 1.5; }
@media (max-width: 640px) { .hero h1 { font-size: 22px; } h1 { font-size: 25px; } }

/* ---- cards / pick grid ---- */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: linear-gradient(180deg, rgba(var(--ov),0.02), transparent 60%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; color: inherit; font: inherit;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface-2); }
.card .ic {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; flex: none;
  background: rgba(var(--ov),0.04); border: 1px solid var(--line);
}
.card .swatch {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: #fff; border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(var(--ov),0.12);
}
.card .meta { min-width: 0; flex: 1; overflow: hidden; }
/* display:block is REQUIRED for text-overflow:ellipsis to apply — inline spans
   ignore it, which is what let a long org name overflow the card. */
.card .meta .t { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta .s { display: block; font-size: 12.5px; color: var(--dim); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .chev { margin-left: 6px; color: var(--dim-2); flex: none; font-size: 20px; transition: transform .16s, color .16s; }
.card:hover .chev { transform: translateX(2px); color: var(--brand-soft); }

/* ---- organization tile grid (square cards w/ logo + full name) ---- */
.org-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* Homepage: organizations sit on top, so give the block clear separation from
   the filter chips / live scores below it (only once it has content). */
#leagues:not(:empty) { display: block; margin-bottom: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.org-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 150px; padding: 18px 16px; text-align: center; cursor: pointer; color: inherit; font: inherit;
  background: linear-gradient(180deg, rgba(var(--ov),0.025), transparent 55%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.org-tile:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); }
.org-logo-wrap { width: 64px; height: 64px; display: grid; place-items: center; flex: none; }
.org-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.org-initial {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; font-size: 26px; color: #fff; border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(var(--ov),0.12);
}
.org-name { font-weight: 600; font-size: 14px; line-height: 1.3; } /* full name, wraps — no truncation */
/* Mobile: compact org tiles so a small org list (e.g. 3) sits on ONE row
   instead of one card stranded on its own line. Desktop keeps the big tiles. */
@media (max-width: 640px) {
  .org-grid { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 9px; }
  .org-tile { aspect-ratio: auto; min-height: 104px; padding: 14px 8px; gap: 9px; border-radius: 13px; }
  .org-logo-wrap { width: 42px; height: 42px; }
  .org-initial { width: 42px; height: 42px; border-radius: 11px; font-size: 18px; }
  .org-name { font-size: 11.5px; line-height: 1.22; }
}
@media (max-width: 480px) { .org-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- breadcrumb ---- */
/* Premium breadcrumb — clickable ancestors are real pill buttons; the current
   location is plain bold text. Reads like an Apple/Netflix path, not bare links. */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 22px; font-size: 13px; }
.crumbs button { background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--dim); cursor: pointer; font: inherit; font-weight: 600; padding: 7px 12px;
  transition: background .15s, color .15s, border-color .15s, transform .1s; }
.crumbs button:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.crumbs button:active { transform: scale(0.97); }
.crumbs .sep { color: var(--dim-2); font-size: 12px; }
.crumbs .cur { color: var(--text); font-weight: 700; padding: 7px 2px; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: none; color: var(--dim); cursor: pointer; font: inherit; font-weight: 600; padding: 11px 16px; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--brand); }
/* Mobile: run the competition tab bar FULL-BLEED — escape the .wrap's 22px
   padding so the row spans edge-to-edge and the last tab ("Schedule") scrolls
   fully into view (with a soft fade on the right) instead of being clipped at
   the content boundary. Tighter tab padding helps all four fit. */
@media (max-width: 640px) {
  #tabs { margin-left: -22px; margin-right: -22px; padding: 0 22px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); }
  #tabs .tab { padding-left: 13px; padding-right: 13px; }
}

/* ---- panel + tables ---- */
.panel {
  background: linear-gradient(180deg, rgba(var(--ov),0.02), transparent 50%), var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px;
  box-shadow: 0 12px 40px -24px rgba(0,0,0,0.9);
  /* Safety net: if a table still can't fit (e.g. one absurdly long token),
     it scrolls WITHIN the card instead of pushing the whole page sideways. */
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 11px 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
/* Text columns (names, opponents) may wrap to a 2nd line so a long surname can't
   force the table wider than the screen. Numeric columns stay nowrap (above). */
td.pname, td.opp { white-space: normal; line-height: 1.25; word-break: break-word; }
/* Keep the rank flush with the first line of a wrapped name. */
.pname .rank { vertical-align: top; }
th { font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim-2); border-bottom: 1px solid var(--line-2); }
td { border-bottom: 1px solid var(--line); font-size: 14.5px; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: rgba(var(--ov),0.02); }
.rank { color: var(--dim-2); width: 1.7em; display: inline-block; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.team, .pname { font-weight: 600; }
.pts { font-weight: 800; color: var(--brand-soft); }
/* standings momentum: streak chip, colored by result */
.strk { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13px; }
.strk-W { color: var(--ok); }
.strk-L { color: var(--bad); }
.strk-T { color: var(--dim); }
/* Form guide — last-5 result pills (W/L/D). */
.form-pills { display: inline-flex; gap: 3px; }
.fp { width: 16px; height: 16px; border-radius: 4px; font-size: 9px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.fp-W { background: var(--ok); }
.fp-L { background: var(--bad); }
.fp-T { background: var(--dim-2); }

/* ---- Scoring Leaders front door (top of the Standings tab) ---- */
.fd-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 9px; }
.fd-all { background: none; border: none; color: var(--brand-soft); font: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 0; }
.fd-all:hover { text-decoration: underline; }
.leaders-fd { display: flex; gap: 10px; overflow-x: auto; margin: 0 0 24px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.leaders-fd::-webkit-scrollbar { display: none; }
.lead-card { flex: none; min-width: 186px; display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer; transition: border-color .15s, transform .1s; }
.lead-card:hover { border-color: var(--brand); }
.lead-card:active { transform: scale(0.98); }
.lead-rk { flex: none; width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.lead-rk.r1 { background: rgba(245,197,66,0.16); color: #f5c542; }
.lead-rk.r2 { background: rgba(207,212,220,0.14); color: #cfd4dc; }
.lead-rk.r3 { background: rgba(208,139,82,0.16); color: #d08b52; }
.lead-info { min-width: 0; flex: 1; }
.lead-nm { display: block; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-tm { display: block; color: var(--dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.lead-g { flex: none; text-align: center; }
.lead-g b { display: block; font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--brand-soft); line-height: 1; font-family: var(--font-num); }
.lead-g small { font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2); }
/* Leaderboard with relative-length bars (competition Scoring Leaders front door). */
.lb { display: flex; flex-direction: column; gap: 2px; }
.lb-row { display: grid; grid-template-columns: 20px 22px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.lb-row:hover { background: var(--surface-2); }
.lb-rk { font-size: 12px; font-weight: 800; color: var(--dim-2); text-align: center; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.lb-rk.r1 { color: #f5c542; }
.lb-crest { width: 22px; height: 22px; object-fit: contain; display: inline-block; }
.lb-mid { min-width: 0; }
.lb-nm { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-tm { font-weight: 500; color: var(--dim-2); font-size: 11px; }
.lb-bar { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 5px; overflow: hidden; }
.lb-fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-soft)); }
.lb-val { font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; min-width: 20px; text-align: right; font-family: var(--font-num); }
/* Player game-by-game scoring strip: bar per game, coloured by result. */
.gl { margin: 22px 0 8px; }
.gl-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.gl-ttl { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); }
.gl-leg { display: flex; gap: 11px; font-size: 10px; color: var(--dim); }
.gl-leg span { display: inline-flex; align-items: center; }
.gl-leg i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 4px; }
.gl-bars { display: flex; align-items: flex-end; gap: 6px; height: 88px; }
.gl-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.gl-v { font-size: 11px; font-weight: 700; color: var(--text); margin-bottom: 4px; height: 14px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.gl-bar { width: 100%; max-width: 30px; border-radius: 4px 4px 0 0; min-height: 3px; }
.gl-w { background: var(--ok); }
.gl-l { background: var(--bad); }
.gl-t { background: var(--dim-2); }
/* Per-game averages line (player + team pages). */
.pg-avg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin: 14px 0 4px; font-size: 13px; color: var(--dim); }
.pg-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2); }
.pg-avg b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.pg-sep { color: var(--dim-2); }

/* Horizontal rails (scorebar + leaders on desktop): fade the edges so a clipped
   card reads as "swipe for more" — the Netflix/Apple rail treatment — instead of
   an ugly hard cut. The scorebar fades BOTH edges (symmetric); leaders fades only
   the right. */
.scorebar { -webkit-mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to right, transparent, #000 26px, #000 calc(100% - 26px), transparent); }
@media (min-width: 561px) {
  .leaders-fd { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); }
}
/* On phones the 3 scoring-leader cards STACK into a clean, fully-padded list
   (matches the standings table) — no horizontal clip at all. */
@media (max-width: 560px) {
  .leaders-fd { flex-direction: column; overflow-x: visible; gap: 8px; }
  .leaders-fd .lead-card { min-width: 0; }
}
/* clickable player rows */
.prow { cursor: pointer; }
.prow .go { color: var(--dim-2); font-size: 18px; transition: transform .15s, color .15s; }
.prow:hover .go { transform: translateX(2px); color: var(--brand-soft); }

/* player page header */
.player-hd { display: flex; align-items: center; gap: 16px; margin: 8px 0 22px; }
.player-avatar { width: 60px; height: 60px; border-radius: 16px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: #fff; background: radial-gradient(circle at 50% 38%, rgba(var(--oc-rgb,47,109,246),0.85), #16224a); border: 1px solid var(--line-2); }
.player-id { display: flex; align-items: baseline; gap: 10px; }
.player-id h1 { margin: 0; }
.player-id .jersey { font-weight: 800; color: var(--dim); font-size: 20px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
@media (max-width: 480px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }
/* team page uses a 4-up summary (Games/Points/Diff/Streak) */
.stat-cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 480px) { .stat-cards-4 { grid-template-columns: repeat(2, 1fr); } }
/* team logo inside the hero avatar */
.player-avatar.logo { background: var(--surface); padding: 8px; }
.player-avatar.logo img { width: 100%; height: 100%; object-fit: contain; }
/* in-table links (opponent team names) — keep row legible, hint on hover */
.lnk { color: inherit; text-decoration: none; }
.lnk:hover { color: var(--brand-soft); text-decoration: underline; }
/* team logos (from matrix) — small, contained, never distort */
.team-logo { width: 22px; height: 22px; object-fit: contain; flex: none; }
.team-logo.sm { width: 20px; height: 20px; }
.team-logo.inl { display: inline-block; vertical-align: middle; margin-right: 8px; }
/* logo + name group inside a schedule tile line (keeps score right-aligned) */
.mh-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mh-side .mh-team { min-width: 0; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-card .v { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-family: var(--font-num); }
.stat-card .v.accent { color: var(--brand-soft); }
.stat-card .k { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2); margin-top: 7px; }
.res { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 800; font-size: 11px; }
.res-W { background: rgba(52,211,153,0.16); color: var(--ok); }
.res-L { background: rgba(248,113,113,0.16); color: var(--bad); }
.res-T { background: rgba(var(--ov),0.08); color: var(--dim); }
/* ---- live scorebar: always-on game strip on the competition page ---- */
/* top+bottom padding so a tile's hover border/ring is never clipped by the
   horizontal-scroll container (overflow-x:auto also clips the y-axis). */
.scorebar { display: flex; gap: 9px; overflow-x: auto; margin: 0 0 20px; padding: 5px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
/* Mobile: run the rail FULL-BLEED (escape the .wrap's 22px padding) so it spans
   edge-to-edge and reads as an intentional ticker. First tile still aligns with
   the page content (padding-left), and the right fade lands at the browser edge. */
@media (max-width: 640px) {
  .scorebar { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 18px; }
}
.scorebar::-webkit-scrollbar { display: none; }
.sb-tile { flex: none; width: 172px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; cursor: pointer; transition: border-color .15s; -webkit-tap-highlight-color: transparent; color: inherit; text-decoration: none; }
.sb-tile:hover, .sb-tile:focus-visible { border-color: var(--brand); outline: none; }
.sb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; min-height: 13px; }
.sb-state { font-size: 9px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.sb-live { color: var(--bad); display: inline-flex; align-items: center; gap: 5px; }
.sb-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bad); animation: pulse 1.4s ease-in-out infinite; }
.sb-final, .sb-soon { color: var(--dim-2); }
.sb-clock { font-size: 10px; color: var(--dim); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.sb-row { display: flex; align-items: center; gap: 8px; padding: 1.5px 0; }
.sb-row img { width: 19px; height: 19px; object-fit: contain; flex: none; }
.sb-code { font-weight: 600; font-size: 12.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-num { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13.5px; font-family: var(--font-num); }
.sb-row.lose .sb-code, .sb-row.lose .sb-num { color: var(--dim-2); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---- box-score scorebug header (broadcast-style; live pill or Final) ---- */
.bxbug { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 4px 18px; }
.bxbug-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bxbug-team.home { flex-direction: row-reverse; }
.bxbug-team img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.bxbug-tn { font-weight: 700; font-size: 14px; line-height: 1.15; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bxbug-team.home .bxbug-tn { text-align: right; }
.bxbug-score { font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; flex: none; font-family: var(--font-num); }
.bxbug-center { text-align: center; min-width: 70px; }
.bxbug-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--bad); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 999px; }
.bxbug-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.bxbug-final { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2); }
.bxbug-per { font-size: 11px; color: var(--dim); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.06em; }
/* Narrow phones: shrink logo/score/gaps so the team CODE (e.g. "QUIN") fits
   without truncating to "Q…". */
@media (max-width: 480px) {
  .bxbug { gap: 8px; padding: 10px 2px 16px; }
  .bxbug-team { gap: 7px; }
  .bxbug-team img { width: 32px; height: 32px; }
  .bxbug-score { font-size: 26px; }
  .bxbug-center { min-width: 58px; }
}

/* ---- dedicated match page: big broadcast scorebug header ---- */
/* The full scorebug is plain IN-FLOW content — it scrolls away normally and
   NEVER changes position or size. (The old sticky+shrink toggle changed the
   document height mid-scroll, which moved the scroll position and re-triggered
   the toggle → the multi-flicker.) Once it's scrolled out of view, a SEPARATE
   fixed compact bar (.matchbug-mini) fades in: pure opacity/transform, no
   reflow, no feedback loop — durable, reliable, GPU-cheap. */
.matchbug { position: relative; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background:
    linear-gradient(90deg,  rgba(var(--awc), var(--wash-a)), transparent 42%),
    linear-gradient(270deg, rgba(var(--hmc), var(--wash-a)), transparent 42%),
    var(--surface); margin-bottom: 22px; }
/* The scoreline is the headline of this page, so it is sized like one. The block
   below the scores is the glance line (#m-glance), joined to the scorebug so the
   result and the fact that explains it read as ONE object. .has-foot is set by
   scorebug() only when a glance will actually render (i.e. not masked) — without
   it the bug would square its bottom edge against nothing. */
.matchbug.has-foot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; margin-bottom: 0; }
.matchbug.has-foot .matchbug-in { padding-bottom: 15px; }

/* One-line interpretive state summary — the scorebug's foot (lead / last play / kickoff). */
.match-glance { font-size: 13px; line-height: 1.45; color: var(--dim);
  margin: 0 0 22px; padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-top: 1px solid var(--line);
  border-radius: 0 0 16px 16px; }
.match-glance:empty { display: none; }
.match-glance .mg-main { color: var(--text); font-weight: 700; }
.match-glance .mg-sub { color: var(--dim); }

/* --- Season story (player page) ----------------------------------------------
   The same game log read as facts: best match, scoring run, record when playing.
   Derived client-side; each tile is omitted when it cannot be computed, so a quiet
   appearance shows nothing rather than a row of zeros. */
.season { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 0 0 18px; }
.season-t { background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 12px 14px; min-width: 0; }
.season-k { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim-2); font-weight: 700; }
.season-v { font-family: var(--font-num); font-size: 27px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px;
  font-variant-numeric: tabular-nums; }
.season-s { font-size: 12px; color: var(--dim); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- One moment of motion, when something actually happens -------------------
   A live score used to change by silent innerHTML swap — the difference between a
   page that updates and one that feels live.

   NO TIMERS AND NO LOOPS (PLATFORM.md §4): render() recreates these elements, so a
   one-shot `animation` on a freshly-created node runs exactly once and is done.
   Nothing removes a class, nothing polls. The classes are only emitted when the
   score actually moved / a play actually arrived, and never on first paint. */
@keyframes score-bump {
  0%   { transform: scale(1);    color: var(--text); }
  28%  { transform: scale(1.16); color: var(--ok); }
  100% { transform: scale(1);    color: var(--text); }
}
.matchbug-score.is-bump { animation: score-bump 620ms cubic-bezier(.22,1,.36,1) both;
  display: inline-block; transform-origin: center; will-change: transform; }

@keyframes play-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.ctl-row.is-new { animation: play-in 340ms cubic-bezier(.22,1,.36,1) both; }

/* Motion is decoration here, never information — the score and the play are both
   fully legible without it, so honouring the OS preference costs nothing. */
@media (prefers-reduced-motion: reduce) {
  .matchbug-score.is-bump, .ctl-row.is-new { animation: none; }
}

/* --- Share sheet (match page) ------------------------------------------------
   A picture, not just a link. The card is drawn client-side on a <canvas>, so this
   costs nothing on the server or at the edge. */
.shsheet { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center;
  background: rgba(0,0,0,0.84); padding: 16px; }
.shsheet-in { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); }
.shsheet-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 15px; border-bottom: 1px solid var(--line); position: sticky; top: 0;
  background: var(--surface); }
.shsheet-t { font-size: 13.5px; font-weight: 700; }
.shsheet-x { background: none; border: 0; color: var(--dim); font-size: 24px; line-height: 1;
  padding: 0 4px; cursor: pointer; }
.shsheet-x:hover { color: var(--text); }
.shsheet-body { display: flex; gap: 16px; padding: 15px; flex-wrap: wrap; }
.shsheet-prev { border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; background: #000; flex: none; }
.shsheet-prev canvas { display: block; width: 330px; height: auto; }
.shsheet-prev.is-v canvas { width: 200px; }
.shsheet-ctl { flex: 1 1 200px; min-width: 180px; display: flex; flex-direction: column; gap: 9px; }
.shsheet-seg { display: flex; gap: 6px; }
.shsheet-seg button { flex: 1 1 auto; font: inherit; font-size: 12px; font-weight: 600; padding: 7px 10px;
  border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--dim); cursor: pointer; }
.shsheet-seg button.on { background: rgba(var(--ov),0.10); color: var(--text); }
.shsheet-b { font: inherit; font-size: 13px; font-weight: 600; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(var(--ov),0.06); color: var(--text); cursor: pointer; }
.shsheet-b.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.shsheet-b.quiet { background: transparent; color: var(--dim); }
@media (max-width: 560px) {
  .shsheet-body { flex-direction: column; align-items: center; }
  .shsheet-prev canvas { width: min(300px, 78vw); }
  .shsheet-prev.is-v canvas { width: min(190px, 50vw); }
  .shsheet-ctl { width: 100%; }
}

/* --- ▶ Watch this play (match timeline → replay clip) -----------------------
   Only on SCORING rows of a FINISHED match that has a Cloudflare recording and a
   captured anchor. Quiet by default so a dozen of them don't shout; the brand fill
   arrives on hover/focus. */
.ctl-play { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px 4px 8px; border-radius: 999px; cursor: pointer;
  background: rgba(var(--ov),0.06); border: 1px solid var(--line-2); color: var(--dim);
  transition: background .16s ease, border-color .16s ease, color .16s ease; }
.ctl-play svg { width: 9px; height: 9px; }
.ctl-play:hover, .ctl-play:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; }
.ctl-side.r .ctl-play { margin-left: auto; }   /* home side is right-aligned */

/* The clip dialog. Built and destroyed per open — never left mounted. */
.clipbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(0,0,0,0.84); padding: 16px; }
.clipbox-in { width: min(880px, 100%); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden; }
.clipbox-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); }
.clipbox-t { font-size: 13.5px; font-weight: 700; }
.clipbox-s { font-size: 11.5px; color: var(--dim-2); font-family: var(--font-num); }
.clipbox-x { background: none; border: 0; color: var(--dim); font-size: 24px; line-height: 1;
  padding: 0 4px; cursor: pointer; }
.clipbox-x:hover { color: var(--text); }
.clipbox-v { aspect-ratio: 16/9; background: #000; }
.clipbox-v iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Form & history card (match page Summary) -------------------------------
   Both sides' last five results + every previous meeting, derived client-side
   from kind=schedule. Everything shown pre-dates THIS match, which is what makes
   the card meaningful as a preview AND safe under the hide-scores toggle. */
.ctx { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; margin: 0 0 18px; }
.ctx-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ctx-ttl { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2); font-weight: 700; }
.ctx-sub { font-size: 11.5px; color: var(--dim-2); }
.ctx-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ctx-cell { padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ctx-cell + .ctx-cell { border-left: 1px solid var(--line); }
.ctx-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ctx-team img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.ctx-team-nm { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-line { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ctx-form { display: inline-flex; align-items: center; gap: 3px; }
.ctx-form-lbl { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2); }
.ctx-none { font-size: 12px; color: var(--dim-2); }
.ctx-h2h { padding: 0 16px 14px; }
.ctx-h2h-hd { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2);
  font-weight: 700; padding: 13px 0 9px; border-top: 1px solid var(--line); }
.ctx-meet { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.ctx-meet + .ctx-meet { border-top: 1px solid var(--line); }
.ctx-meet-d { color: var(--dim-2); font-size: 11.5px; font-family: var(--font-num); flex: none; }
.ctx-meet-r { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12.5px;
  color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .ctx-grid { grid-template-columns: 1fr; }
  .ctx-cell + .ctx-cell { border-left: none; border-top: 1px solid var(--line); }
}

/* Fixed compact scoreboard — fades/slides in when the full one is scrolled off. */
.matchbug-mini { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line-2); box-shadow: 0 6px 20px rgba(0,0,0,0.28); transform: translateY(-101%); opacity: 0; transition: transform .22s ease, opacity .2s ease; pointer-events: none; will-change: transform, opacity; }
.matchbug-mini.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mbm-in { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 7px 16px; }
.mbm-side { display: flex; flex-direction: row; align-items: center; gap: 9px; min-width: 0; }
.mbm-side.home { flex-direction: row-reverse; }
.mbm-side img, .mbm-ph { width: 24px; height: 24px; object-fit: contain; flex: none; }
.mbm-ph { display: grid; place-items: center; border-radius: 7px; background: rgba(var(--ov),0.07); font-weight: 800; font-size: 11px; color: var(--text); }
.mbm-sc { font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums; color: var(--text); font-family: var(--font-num); }
.mbm-c { text-align: center; min-width: 54px; }
.mbm-live { display: inline-flex; align-items: center; gap: 5px; background: var(--bad); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 999px; }
.mbm-live .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.mbm-st { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2); }

/* Each side is a HORIZONTAL row (crest + code/score), with the HOME side mirrored
   (row-reverse) so both crests sit on the OUTER edges and both scores sit toward
   the CENTER. Halves the header height vs the old stacked layout. */
.matchbug-in { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 17px 16px; }
.matchbug-side { display: flex; flex-direction: row; align-items: center; gap: 11px; min-width: 0; }
.matchbug-side.home { flex-direction: row-reverse; }
.matchbug-meta { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; }
.matchbug-side img { width: 46px; height: 46px; object-fit: contain; }
/* The losing side recedes so the RESULT reads before the digits are parsed.
   Applied only on a decided, unmasked, finished match (see scorebug()). */
.matchbug-side.lost img { opacity: 0.62; }
.matchbug-side.lost .matchbug-code,
.matchbug-side.lost .matchbug-name { color: var(--dim-2); }
.matchbug-side.lost .matchbug-score { color: var(--dim); font-weight: 700; }
.matchbug-fallback { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: var(--text); background: rgba(var(--ov),0.10); border: 1px solid rgba(var(--ov),0.22); }
.matchbug-code { font-weight: 700; font-size: 12.5px; letter-spacing: 0.02em; text-align: center; max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
.matchbug-score { font-weight: 800; font-size: 44px; font-variant-numeric: tabular-nums; line-height: 1.02; letter-spacing: -0.03em; font-family: var(--font-num); }
.matchbug-center { text-align: center; min-width: 78px; }
.matchbug-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; padding: 4px 11px; border-radius: 999px; }
.matchbug-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.matchbug-final { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2); }
.matchbug-per { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 7px; font-family: var(--font-num); }
.matchbug-meta-strip { display: flex; justify-content: space-between; gap: 10px; padding: 9px 16px 0;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim-2); }
/* Mobile: drop the competition + kickoff-date eyebrow from the scorebug — it's
   redundant with the game-details below and phone real estate is tight. Desktop keeps it. */
@media (max-width: 640px) { .matchbug-meta-strip { display: none; } }

/* Full team NAME in the main scorebug — DESKTOP ONLY. Mobile keeps the short code
   (untouched). On desktop it sits between the crest (outer edge) and the score
   (toward centre): [crest] Full Name … SCORE  /  SCORE … Full Name [crest]. */
.matchbug-name { display: none; }
@media (min-width: 800px) {
  .matchbug-name { display: block; flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.18; letter-spacing: -0.01em; color: var(--text); }
  .matchbug-side:not(.home) .matchbug-name { text-align: left; }
  .matchbug-side.home .matchbug-name { text-align: right; }
  .matchbug-code { display: none; }   /* full name replaces the short code on desktop */
  .matchbug-meta { flex: none; }      /* meta is just the score now */
  .matchbug-side { gap: 16px; }
  .matchbug-score { font-size: 38px; }  /* a touch larger — there's room, keeps it the focal point */
}

/* lineups (rosters) on the match page */
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* Lineup team tabs: hidden on desktop (both columns show side-by-side). */
.lineups-tabs { display: none; }
.ltab { background: var(--surface); border: 1px solid var(--line); color: var(--dim); font: inherit; font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 9px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s, border-color .15s; }
/* Active tab takes the team's brand colour (--tc set inline per tab); falls back
   to the system brand when a team has no colour. Outlined + tinted (no solid fill
   with white text → readable for any brand hue, even bright yellows). */
.ltab.active { background: color-mix(in srgb, var(--tc, var(--brand)) 16%, transparent); border-color: var(--tc, var(--brand)); color: var(--tc, var(--brand)); }
@media (max-width: 600px) {
  /* On phones the two lineups go behind tabs — only the active team shows, so
     no long scroll. */
  .lineups-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
  .lineups { grid-template-columns: 1fr; }
  .lineups[data-lt="0"] .lineup-col[data-team="1"] { display: none; }
  .lineups[data-lt="1"] .lineup-col[data-team="0"] { display: none; }
  .lineup-col h4 { display: none; }   /* the active tab already names the team */
}
.lineup-col h4 { margin: 0 0 9px; }
.lineup-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lineup-row { display: flex; align-items: center; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.lineup-row:last-child { border-bottom: none; }
.lineup-num { width: 26px; flex: none; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--dim); font-family: var(--font-num); }
.lineup-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineup-pos { color: var(--dim-2); font-size: 11px; flex: none; }
.lineup-onice { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 6px var(--ok); }

/* ---- box score: Three Stars (ranked medallion cards) + scoring summary ---- */
.three-stars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 2px 0 18px; }
.tstar {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 13px 14px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(var(--ov),0.045), transparent 72%), var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--tc, var(--line-2));
}
/* gold / silver / bronze numbered medallion */
.tstar-rank {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: #14110a; font-family: var(--font-num);
  box-shadow: inset 0 0 0 1px rgba(var(--ov),0.3), 0 2px 8px rgba(0,0,0,0.35);
}
.tstar.s1 .tstar-rank { background: linear-gradient(160deg, #ffe27a, #f2b007); }
.tstar.s2 .tstar-rank { background: linear-gradient(160deg, #eef2f7, #b4bdca); }
.tstar.s3 .tstar-rank { background: linear-gradient(160deg, #e9ad6f, #c87a39); }
.tstar.s1 { border-top-color: rgba(242,176,7,0.4); }
.tstar-info { min-width: 0; flex: 1; }
.tstar-name { font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tstar-stat { margin-top: 2px; font-size: 12px; color: var(--dim); }
.tstar-stat b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.tstar-team { flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; align-self: flex-start; }
@media (max-width: 640px) { .three-stars { grid-template-columns: 1fr; gap: 8px; } }
.score-list { margin: 2px 0 16px; }
.score-row { display: flex; align-items: center; gap: 11px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: none; }
.score-row .sr-time { width: 64px; flex: none; color: var(--dim-2); font-size: 12.5px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.score-row .sr-main { flex: 1; min-width: 0; font-size: 13.5px; }
.score-row .sr-main .sr-assist { color: var(--dim); font-size: 12px; }
.score-row .sr-score { font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; font-family: var(--font-num); }

@media (max-width: 640px) {
  th.hide-sm, td.hide-sm { display: none; }
  /* Reclaim horizontal room on phones so dense tables (e.g. the 6-column game
     log) fit without scrolling. */
  th, td { padding: 11px 6px; }
  td, .pname .rank { font-size: 14px; }
  .panel { padding: 4px 12px; }
}

/* ---- leaders ---- */
.lead-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .lead-grid { grid-template-columns: 1fr; } }
.lead-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.lead-row { display: flex; align-items: center; gap: 11px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.lead-row:last-child { border-bottom: none; }
.lead-rank { width: 1.6em; color: var(--dim-2); font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.lead-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-val { font-weight: 800; color: var(--brand-soft); font-variant-numeric: tabular-nums; font-family: var(--font-num); }

/* ---- schedule + box score ---- */
.match { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 11px; overflow: hidden; background: var(--surface); }
/* schedule tiles now link to the dedicated match page */
.match-link { display: block; text-decoration: none; color: inherit; }
.match-head { display: flex; align-items: center; gap: 13px; padding: 13px 15px; cursor: pointer; transition: background .12s; }
.match-head:hover { background: var(--surface-2); }
/* Left column: status chip + (optional) gender badge stacked. */
.mh-statuscol { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: none; }
.mh-status { font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; flex: none; }
.st-final { background: rgba(var(--ov),0.06); color: var(--dim); }
.st-live { background: rgba(248,113,113,0.16); color: var(--bad); }
.st-upcoming { background: rgba(47,109,246,0.14); color: var(--brand-soft); }
.mh-teams { flex: 1; min-width: 0; }
.mh-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mh-team { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-score { font-weight: 800; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.mh-meta { font-size: 11.5px; color: var(--dim-2); margin-top: 3px; }
.mh-chev { color: var(--dim-2); flex: none; font-size: 18px; transition: transform .16s; }
.match.open .mh-chev { transform: rotate(90deg); }
.box { border-top: 1px solid var(--line); padding: 16px; display: none; background: rgba(0,0,0,0.18); }
.match.open .box { display: block; }
.box-cols { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .box-cols { grid-template-columns: 1fr; } }
.box h4 { font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--dim-2); margin: 0 0 10px; }
/* play-by-play: grouped by period so it stays organized as events pile up */
.pbp-period { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2);
  padding: 13px 0 7px; border-bottom: 1px solid var(--line-2); margin-bottom: 2px; }
.pbp-period:first-child { padding-top: 2px; }
.pbp { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pbp:last-child { border-bottom: none; }
.pbp-time { width: 46px; flex: none; text-align: right; color: var(--dim-2); font-variant-numeric: tabular-nums; font-size: 12.5px; font-family: var(--font-num); }
.pbp-main { min-width: 0; flex: 1; }
.pbp-type { font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim-2); display: inline-flex; align-items: center; gap: 7px; }
.pbp-type.t-goal { color: var(--brand-soft); }
.pbp-type.t-penalty { color: var(--bad); }
.pbp-type.t-card-y { color: #f5c542; } /* yellow card / sin-bin — amber, not red */
.pbp-type.t-sub { color: var(--text); } /* subs/goalie changes: lit, but neutral (not a good/bad outcome) */
.pbp-who { font-size: 13.5px; margin-top: 2px; }
/* Goal strength pill (PP/SH/EN/PS) — small accent chip after the scorer (Summary + Feed). */
.strength-badge { display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--brand-soft); background: rgba(91,139,255,0.12); vertical-align: middle; }
/* Team shot rows (player-less) render muted/compact so goals stand out — the
   Feed shows every detail; the Summary tab is the highlights view. */
.pbp-shot { opacity: 0.6; }
.pbp-shot .pbp-type { color: var(--dim-2); }
/* Per-match goaltending line (hockey), under the Stats-tab comparison bars. */
.gtend { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.gtend-h { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 8px; }
.gtend-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; }
.gtend-name { font-size: 13.5px; font-weight: 600; }
.gtend-stat { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--font-num); }
/* Scoring by period (hockey) — compact 3-col table: Period · Away · Home */
.psc { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.psc-h { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 8px; }
.psc-row { display: grid; grid-template-columns: 1fr 44px 44px; align-items: baseline; gap: 8px; padding: 5px 0; }
.psc-per { font-size: 13px; font-weight: 600; }
.psc-num { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.psc-head { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.psc-head .psc-per, .psc-head .psc-num { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim-2); }
.psc-foot { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 8px; }
.psc-foot .psc-per, .psc-foot .psc-num { font-weight: 800; }
/* Scoring-momentum ribbon (match Summary tab): team-coloured dots per scoring
   play, positioned by minute-within-half; away above the line, home below. */
.srib { margin: 0 0 6px; }
.srib-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.srib-ttl { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); }
.srib-leg { display: flex; gap: 12px; }
.srib-lg { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--dim); }
.srib-lg i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.srib-track { position: relative; height: 48px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.srib-track::before { content: ''; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: var(--line-2); transform: translateY(-50%); }
.srib-div { position: absolute; top: 8px; bottom: 8px; width: 0; border-left: 1px dashed var(--line-2); }
.srib-mk { position: absolute; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2.5px var(--surface-2); cursor: help; transition: transform 0.1s; }
.srib-mk:hover { transform: translate(-50%, -50%) scale(1.35); z-index: 2; }
.srib-mk.srib-a { top: 30%; }
.srib-mk.srib-h { top: 70%; }
.srib-labels { display: grid; margin-top: 7px; }
.srib-labels span { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim-2); text-align: center; }
.srib-mk:focus { outline: none; }
/* Custom hover/tap tooltip for the ribbon dots (replaces the native title popup). */
.srib-tip { position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity 0.12s ease, transform 0.12s ease; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 12px; box-shadow: 0 12px 34px rgba(0,0,0,0.45); max-width: 240px; }
.srib-tip.on { opacity: 1; transform: translateY(0); }
.srib-tip-hd { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.srib-tip-hd i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.srib-tip-who { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-top: 4px; }
.srib-tip-meta { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
/* Match momentum chart (Stats tab): lead-over-time area, team-tinted. */
.mom { margin: 0 0 18px; }
.mom-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.mom-ttl { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); }
.mom-lead { font-size: 11px; font-weight: 700; color: var(--dim); display: inline-flex; align-items: center; }
.mom-lead i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.mom-cap { font-size: 11px; color: var(--dim-2); margin-top: 7px; }
/* Scoring breakdown (Stats tab): how each team's points were composed. */
.sbk { margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
.sbk-ttl { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 12px; }
.sbk-row { display: grid; grid-template-columns: 46px 1fr 30px; align-items: center; gap: 10px; margin-bottom: 9px; }
.sbk-team { font-size: 13px; font-weight: 700; color: var(--text); }
.sbk-bar { display: flex; height: 14px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.sbk-seg { height: 100%; }
.sbk-seg + .sbk-seg { box-shadow: -1px 0 0 var(--bg); }
.sbk-tot { font-size: 13px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-family: var(--font-num); }
.sbk-leg { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.sbk-lg { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--dim); }
.sbk-lg i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
/* Team-comparison radar (match Stats tab). Theme-var driven so it flips light/dark. */
.rdr { margin: 0 0 20px; }
.rdr-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.rdr-ttl { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-2); }
.rdr-leg { display: flex; gap: 12px; }
.rdr-lg { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--dim); }
.rdr-lg i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.rdr svg { max-width: 340px; margin: 4px auto 0; }
.rdr-pt { cursor: help; }
.rdr-cap { font-size: 11px; color: var(--dim-2); margin-top: 6px; text-align: center; }
.rdr-tip { position: fixed; z-index: 60; left: 0; top: 0; pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity 0.12s ease, transform 0.12s ease; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 12px; box-shadow: 0 12px 34px rgba(0,0,0,0.45); min-width: 134px; }
.rdr-tip.on { opacity: 1; transform: translateY(0); }
.rdr-tip-hd { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); margin-bottom: 5px; }
.rdr-tip-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.rdr-tip-row i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.rdr-tip-row b { margin-left: auto; padding-left: 14px; color: var(--text); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
/* Per-period scoring detail: the period tally row + the goals beneath it. */
.psc-sec { padding: 2px 0 4px; }
.psc-perhead { padding-bottom: 2px; }
.psc-perhead .psc-per { font-weight: 700; }
.psc-perhead .psc-num { font-weight: 700; color: var(--dim); }
.psc-goal { display: flex; align-items: baseline; gap: 9px; padding: 3px 0 3px 2px; font-size: 12.5px; }
.psc-team { flex: none; width: 40px; font-weight: 800; font-size: 11px; letter-spacing: 0.02em; }
.psc-scorer { flex: 1; min-width: 0; color: var(--text); }
.psc-assist { color: var(--dim); }
.psc-str { font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--brand); }
.psc-time { flex: none; color: var(--dim); font-size: 11.5px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.psc-empty { color: var(--dim); font-style: italic; }
/* Match Stats: title lives INSIDE the table header (top-left cell) */
.ms-panel { margin-top: 30px; }
.ms-title { color: var(--dim) !important; letter-spacing: 0.06em !important; }
.chip { font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(var(--ov),0.08); margin-left: 7px; vertical-align: middle; }

/* ---- match page: tabs (Summary / Stats / Lineup / Feed) ---- */
/* Reuses the global .tabs/.tab underline style; panels are toggled inline.
   Center the match-page tabs (Summary/Stats/Lineup/Feed) on every width — they
   fit comfortably, so centering reads more balanced than left-aligned. */
.mtabs { margin-top: 2px; justify-content: center; }
.mtab-panel { animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---- match summary: key-events timeline (goals/cards/subs) ---- */
.te-list { margin: 2px 0 8px; }
.te { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.te:last-child { border-bottom: none; }
.te-min { width: 70px; flex: none; color: var(--dim-2); font-size: 12px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.te-body { flex: 1; min-width: 0; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.te-ic { width: 18px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--dim); }
.te-ic svg { display: block; }
.te-ic.te-dim { color: var(--dim-2); }
.te-who { color: var(--text); font-weight: 600; }
.te-in { color: var(--ok); font-weight: 600; }
.te-out { color: var(--dim); }
.te-note { color: var(--dim-2); font-size: 11px; }
.te-score { font-weight: 800; font-variant-numeric: tabular-nums; margin-left: auto; padding-left: 8px; font-family: var(--font-num); }
.te-card { width: 10px; height: 14px; border-radius: 2px; display: inline-block; vertical-align: middle; }
/* feed event icons — inherit the .pbp-type colour (goal=team, card/pen=red, else dim) */
.pbp-ic { display: inline-flex; align-items: center; flex: none; }
.pbp-ic svg { display: block; }
.pbp-ic .te-card { width: 9px; height: 13px; }
/* period-boundary marker row (kick-off / half-time / period start-end / full-time) */
.tl-marker { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.tl-marker:first-child { margin-top: 2px; }
.tl-marker-line { flex: 1; height: 1px; background: var(--line); }
.tl-marker-label { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tl-marker-label svg { display: block; opacity: 0.85; }
.te-card.te-yellow { background: #f5c542; }
.te-card.te-red { background: var(--bad); }

/* Centered "match centre" timeline (Summary tab) — a spine with the minute +
   node (score chip for goals/tries, icon disc for cards/subs) on it, and the
   player on their team's side (away left, home right). Keeps the dark theme. */
.ctl { position: relative; margin: 16px 0 10px; }
.ctl::before { content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; background: var(--line); transform: translateX(-50%); }
.ctl-row { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; column-gap: 12px; padding: 13px 0; }
.ctl-side { min-width: 0; }
.ctl-side.l { text-align: right; }
.ctl-side.r { text-align: left; }
.ctl-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ctl-min { font-size: 11px; font-weight: 600; color: var(--dim-2); font-variant-numeric: tabular-nums; background: var(--bg); padding: 1px 6px; border-radius: 6px; line-height: 1.3; font-family: var(--font-num); }
.ctl-node { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--tc, var(--line-2)); color: var(--text); }
.ctl-node svg { display: block; width: 16px; height: 16px; }
.ctl-node.ctl-dim { color: var(--dim-2); }
.ctl-chip { min-width: 46px; height: 32px; padding: 0 10px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; background: var(--text); color: var(--bg); font-family: var(--font-num); }
.ctl-name { font-weight: 700; font-size: 14px; color: var(--text); line-height: 1.25; overflow-wrap: anywhere; }
.ctl-sub { font-size: 11.5px; color: var(--dim-2); margin-top: 2px; }
.ctl .tl-marker { margin: 16px 0; }
.ctl .tl-marker-label { background: var(--bg); padding: 0 8px; }

/* ---- match facts ---- */
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 11px 15px; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: none; }
.fact-k { color: var(--dim-2); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.fact-v { color: var(--text); font-weight: 600; font-size: 13.5px; text-align: right; }
.fact-watch { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-soft); text-decoration: none; }
.fact-watch:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---- stats: team comparison bars (sport-aware) ---- */
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; }
.cmp-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cmp-head .cmp-team:last-of-type { flex-direction: row-reverse; } /* home mirrors to the right */
.cmp-team img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.cmp-team-fb { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(150deg, var(--brand), #16224a); }
.cmp-team-name { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-head-vs { color: var(--dim-2); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; flex: none; }
.cmp-list { display: flex; flex-direction: column; gap: 14px; }
.cmp-label { text-align: center; font-size: 12px; font-weight: 600; color: var(--dim); margin-bottom: 6px; }
.cmp-row { display: flex; align-items: center; gap: 12px; }
.cmp-num { width: 40px; flex: none; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.cmp-row .cmp-num:first-child { text-align: left; }
.cmp-row .cmp-num:last-child { text-align: right; }
.cmp-track { flex: 1; min-width: 0; display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.cmp-fill { height: 100%; transition: width .4s ease; }
.cmp-fill:first-child { border-radius: 999px 0 0 999px; }
.cmp-fill:last-child { border-radius: 0 999px 999px 0; }

/* ---- skeleton + footer ---- */
/* Loading placeholder SHIMMER so it clearly reads as "loading" (the old static
   box was ambiguous). Animates background-POSITION of a gradient on the element
   itself — NOT a transformed ::after inside overflow:hidden, which renders
   FROZEN on mobile Safari (a compositing bug: worked on desktop, static on
   iOS). This background-position technique is what mobile-tested skeleton libs
   use. rgba(var(--ov),a) keeps it correct in dark + light; runs only while the
   skeleton is on screen. Under reduced-motion, a gentle opacity pulse STILL
   signals loading (a fully static box read as "not loading"). */
.skel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background-color: var(--surface);
  background-image: linear-gradient(90deg, rgba(var(--ov),0) 0%, rgba(var(--ov),0.15) 50%, rgba(var(--ov),0) 100%);
  background-repeat: no-repeat;
  background-size: 200% 100%;
  animation: skel-shimmer 1.5s ease-in-out infinite;
}
@keyframes skel-shimmer { 0% { background-position: -100% 0; } 100% { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skel { background-image: none; animation: skel-pulse 1.6s ease-in-out infinite; }
}
@keyframes skel-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.skel.h64 { height: 64px; margin-bottom: 12px; }
.foot { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim-2); text-align: center; }
.foot a { color: var(--brand-soft); }
.skel.h96 { height: 96px; margin-bottom: 13px; }

/* ====== HOME (scores hub) — live/recent match cards across every org ====== */

/* org filter chips */
/* Full-bleed: escape the .wrap's 22px padding so the chip rail spans edge-to-edge
   and the overflow scroll fades off the screen edge (intentional), instead of a
   chip getting clipped mid-pill at the content boundary (looks like a bug). */
.org-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -22px 16px; padding: 0 22px 4px; -ms-overflow-style: none; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); }
.org-chips::-webkit-scrollbar { display: none; }
.chip-org { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--dim); font-weight: 600; font-size: 13px; white-space: nowrap; cursor: pointer; flex: none; transition: color .12s, background .12s, border-color .12s; }
.chip-org img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.chip-org:hover { color: var(--text); border-color: var(--text); }
.chip-org.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* match-card grid */
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 13px; margin: 6px 0 14px; }
.mc { display: block; border: 1px solid var(--line); border-left: 3px solid var(--oc, var(--brand)); border-radius: 14px; background: var(--surface); padding: 13px 15px 14px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.mc:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mc-badge { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--dim); font-size: 11.5px; font-weight: 600; }
.mc-badge img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; flex: none; }
.mc-badge span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-st { font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.mc-st.live { background: var(--bad); color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.mc-st.live .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.mc-st.final { background: rgba(var(--ov),0.07); color: var(--dim-2); }
.mc-st.soon { background: transparent; color: var(--dim-2); padding-right: 0; }
.mc-teams { display: flex; flex-direction: column; gap: 9px; }
.mc-team { display: flex; align-items: center; gap: 11px; }
.mc-team img, .mc-ph { width: 27px; height: 27px; flex: none; object-fit: contain; }
.mc-ph { display: grid; place-items: center; border-radius: 7px; background: rgba(var(--ov),0.06); font-weight: 800; font-size: 12px; color: var(--text); }
.mc-tn { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-sc { font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; color: var(--text); font-family: var(--font-num); }
.mc-team.lose .mc-tn, .mc-team.lose .mc-sc { color: var(--dim); font-weight: 600; }
.mc-team.lose img { opacity: 0.65; }
/* Match-card right cluster: gender badge + status, grouped so the competition
   badge on the left keeps its ellipsis. Gender colours mirror matrix's pills. */
.mc-top-right { display: flex; align-items: center; gap: 7px; flex: none; }
.mc-gender { flex: none; font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(var(--ov),0.08); color: var(--dim); white-space: nowrap; }
.mc-gender.g-boys, .mc-gender.g-men { background: rgba(59,130,246,0.16); color: #bfdbfe; }
.mc-gender.g-girls, .mc-gender.g-women { background: rgba(236,72,153,0.16); color: #fbcfe8; }
/* the pale dark-mode text washes out on a light pill → darker ink for light mode */
[data-theme="light"] .mc-gender.g-boys, [data-theme="light"] .mc-gender.g-men { background: rgba(59,130,246,0.13); color: #1d4ed8; }
[data-theme="light"] .mc-gender.g-girls, [data-theme="light"] .mc-gender.g-women { background: rgba(236,72,153,0.13); color: #be185d; }

/* =========================================================================
   ORGANIZATION HUB (organization.html) — premium, shareable org landing.
   --oc / --oc2 = the org's brand primary / secondary, set inline on .org-hero.
   ========================================================================= */
.org-hero { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 26px 24px; margin-bottom: 8px; }
.org-hero-grad { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--oc, #2f6df6) 32%, transparent), transparent 55%),
    radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--oc2, #2f6df6) 22%, transparent), transparent 60%);
  opacity: 0.9; }
.org-hero-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.org-id { display: flex; align-items: center; gap: 17px; min-width: 0; }
.org-crest { flex: none; }
.org-crest-img { width: 66px; height: 66px; object-fit: contain; border-radius: 15px; background: rgba(var(--ov),0.92); padding: 7px; box-shadow: 0 6px 22px rgba(2,6,23,0.4); }
.org-crest-fb { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 15px; font-weight: 800; font-size: 30px; color: #fff; box-shadow: 0 6px 22px rgba(2,6,23,0.4); }
.org-id-meta { min-width: 0; }
.org-h-sport { display: flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.org-live { display: inline-flex; align-items: center; gap: 5px; color: var(--bad); font-weight: 800; }
.org-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bad); animation: pulse 1.4s ease-in-out infinite; }
.org-h-name { font-size: 30px; font-weight: 720; letter-spacing: -0.02em; line-height: 1.08; margin: 5px 0 13px; color: var(--text); }
.org-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.org-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid transparent; background: var(--text); color: var(--bg); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease; }
.org-btn:hover { transform: translateY(-1px); }
.org-btn:active { transform: scale(0.97); }
.org-btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.org-btn.ghost:hover { border-color: var(--text); }
/* Icon-only action (e.g. "open site in new tab") — compact, stretches to match the
   text buttons' height on the same line (flex stretch), freeing real estate. */
.org-btn.icon { padding: 0; width: 42px; justify-content: center; gap: 0; }
.org-kpis { display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 13px; background: rgba(var(--ov),0.03); padding: 12px 14px; text-align: center; min-width: 72px; }
.kpi-n { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; font-family: var(--font-num); }
.kpi-l { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim-2); }

/* Sticky filter bar */
.org-filters { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 12px 0 6px; margin: 6px 0 2px; }
.org-years { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 9px; -ms-overflow-style: none; scrollbar-width: none; }
.org-years::-webkit-scrollbar { display: none; }
.year-btn { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--dim); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; transition: color .12s, background .12s, border-color .12s; }
.year-btn:hover { color: var(--text); border-color: var(--text); }
.year-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.comp-chips { margin-bottom: 0; }

/* Competitions directory */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 13px; margin: 6px 0 10px; }
.comp-card { display: block; border: 1px solid var(--line); border-left: 3px solid var(--oc, var(--brand)); border-radius: 14px; background: var(--surface); padding: 15px 16px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.comp-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.comp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comp-card-name { font-weight: 700; font-size: 15.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-card-tags { display: flex; align-items: center; gap: 6px; flex: none; }
.comp-tag { flex: none; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(var(--ov),0.07); color: var(--dim-2); white-space: nowrap; }
.comp-tag.done { color: var(--dim-2); }
.comp-live { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--bad); color: #fff; }
.comp-live .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
.comp-card-meta { margin-top: 7px; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.comp-card-go { margin-top: 11px; font-size: 12px; font-weight: 700; color: var(--brand-soft); }
/* Current standings leader chip on a competition card */
.comp-leader { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
.comp-leader-ic { flex: none; font-size: 12px; line-height: 1; }
.comp-leader-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; flex: none; }
.comp-leader-tm { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-leader-pts { margin-left: auto; flex: none; color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; font-family: var(--font-num); }

/* Org search box (team / competition filter) */
.org-search-wrap { position: relative; margin-bottom: 11px; }
.org-search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim-2); pointer-events: none; }
/* font-size:16px is deliberate — iOS Safari auto-zooms when focusing an input
   smaller than 16px; 16px keeps the page from zooming in on tap. */
.org-search { width: 100%; box-sizing: border-box; padding: 11px 14px 11px 36px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.org-search::placeholder { color: var(--dim-2); }
.org-search:focus { outline: none; border-color: var(--brand-soft); }
.org-search::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Filter bar: search + a single Filters button (options live in a popup). */
.org-filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.org-filter-bar .org-search-wrap { flex: 1; margin-bottom: 0; }
.org-filter-spacer { flex: 1; }
.org-filter-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: border-color .12s, background .12s; }
.org-filter-btn svg { color: var(--dim); }
.org-filter-btn:hover { border-color: var(--text); }
.org-filter-btn.has { border-color: var(--brand-soft); }
.org-filter-btn.has svg { color: var(--brand-soft); }
.org-filter-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; font-family: var(--font-num); }

/* Filters popup — a bottom sheet on phones, a centered card on desktop. */
.filter-sheet { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; justify-items: stretch; background: rgba(3,5,9,0.72); backdrop-filter: blur(3px); }
.filter-sheet[hidden] { display: none; }
.filter-card { width: 100%; max-height: 82vh; overflow-y: auto; background: var(--surface-2); border: 1px solid var(--line-2); border-bottom: none; border-radius: 20px 20px 0 0; padding: 18px 18px 20px; }
@media (min-width: 560px) {
  .filter-sheet { align-items: center; justify-items: center; }
  .filter-card { width: 460px; max-width: calc(100% - 32px); border-bottom: 1px solid var(--line-2); border-radius: 18px; }
}
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.filter-head-actions { display: flex; align-items: center; gap: 4px; }
.filter-reset { background: none; border: none; color: var(--brand-soft); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; padding: 6px 8px; }
.filter-close { background: none; border: none; color: var(--dim); font-size: 24px; line-height: 1; cursor: pointer; width: 32px; height: 32px; border-radius: 8px; }
.filter-close:hover { color: var(--text); background: var(--surface); }
.filter-group { margin-bottom: 16px; }
.filter-group-h { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 9px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--dim); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: color .12s, background .12s, border-color .12s; }
.filter-chip:hover { color: var(--text); border-color: var(--text); }
.filter-chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter-done { width: 100%; justify-content: center; margin-top: 6px; }

/* QR + share modal */
.qr-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(3,5,9,0.72); backdrop-filter: blur(3px); }
.qr-modal[hidden] { display: none; }
.qr-card { position: relative; width: 100%; max-width: 320px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface-2); padding: 22px 22px 20px; text-align: center; }
.qr-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: none; background: none; color: var(--dim); font-size: 24px; line-height: 1; cursor: pointer; border-radius: 8px; }
.qr-close:hover { color: var(--text); background: var(--surface); }
.qr-h { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim-2); margin-bottom: 14px; }
.qr-svg { background: #fff; border-radius: 14px; padding: 14px; display: grid; place-items: center; margin: 0 auto 13px; }
.qr-svg svg { width: 100%; height: auto; max-width: 230px; display: block; }
.qr-url { font-size: 12.5px; color: var(--dim); word-break: break-all; margin-bottom: 15px; }

@media (max-width: 640px) {
  .org-hero { padding: 20px 17px; border-radius: 17px; }
  .org-hero-in { gap: 18px; }
  .org-h-name { font-size: 25px; }
  .org-crest-img, .org-crest-fb { width: 56px; height: 56px; }
  /* 2×2 on phones — 4-across cramped the long labels ("COMPETITIONS" /
     "MATCHES PLAYED") against the box edge; two columns give them room. */
  .org-kpis { width: 100%; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { padding: 12px 13px; min-width: 0; }
  .kpi-n { font-size: 22px; }
  .kpi-l { font-size: 9.5px; letter-spacing: 0.05em; }
  /* Full-bleed the competition chips (escape the .wrap 22px padding), like .org-chips. */
  .org-filters { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
  .org-years { padding-left: 0; }
}

/* ---- Day strip (NHL-style calendar chips) — competition Schedule tab ------ */
.daystrip{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;margin:0 0 14px;-ms-overflow-style:none;scrollbar-width:none}
.daystrip::-webkit-scrollbar{display:none}
.daychip{position:relative;flex:0 0 auto;width:92px;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:9px 14px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;text-align:left;font:inherit}
.daychip:hover{border-color:var(--line-2)}
.daychip.today{border-color:rgba(47,109,246,0.45);width:120px}
.daychip.active{border-color:var(--brand);background:rgba(47,109,246,0.12)}
.dc-wd{font-size:9px;font-weight:800;letter-spacing:0.22em;text-transform:uppercase;color:var(--dim)}
.dc-date{font-size:15px;font-weight:700}
.dc-n{font-size:10px;font-weight:600;color:var(--dim)}
.dc-live{position:absolute;top:8px;right:8px;width:7px;height:7px;border-radius:50%;background:var(--bad);animation:dcping 1.6s infinite}
@keyframes dcping{0%{box-shadow:0 0 0 0 rgba(248,113,113,0.5)}70%{box-shadow:0 0 0 7px rgba(248,113,113,0)}100%{box-shadow:0 0 0 0 rgba(248,113,113,0)}}
/* Schedule List|Calendar toggle */
.sched-toggle{display:inline-flex;gap:2px;margin:0 0 14px;border:1px solid var(--line);border-radius:999px;padding:3px;background:var(--surface)}
.sched-toggle .seg{appearance:none;border:0;background:none;color:var(--dim);font:inherit;font-weight:700;font-size:12px;padding:6px 14px;border-radius:999px;cursor:pointer;transition:color .15s,background .15s}
.sched-toggle .seg.active{background:var(--brand);color:#fff}
.sched-toggle .seg:not(.active):hover{color:var(--text)}
/* Month-grid calendar (an overview; tap a day → that day's tiles render below) */
.cal-nav{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}
.cal-arrow{appearance:none;width:36px;height:36px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--dim);font-size:18px;line-height:1;cursor:pointer}
.cal-arrow:hover{border-color:var(--line-2);color:var(--text)}
.cal-month{font-weight:800;font-size:18px;letter-spacing:0.02em}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.cal-wd{margin-bottom:4px}
.cal-wdc{text-align:center;font-size:10px;font-weight:800;letter-spacing:0.12em;text-transform:uppercase;color:var(--dim);padding:4px 0}
.cal-cell{appearance:none;position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;aspect-ratio:4/3;border:1px solid transparent;border-radius:var(--radius-sm);background:rgba(var(--ov),0.015);padding:6px 4px;font:inherit;color:var(--dim);text-align:center}
.cal-cell.has{background:var(--surface);border-color:var(--line);color:var(--text);cursor:pointer}
.cal-cell.has:hover{border-color:var(--line-2)}
.cal-cell.today{border-color:rgba(47,109,246,0.45)}
.cal-cell.active{border-color:var(--brand);background:rgba(47,109,246,0.12)}
.cal-cell.cal-blank{border:0;background:none;pointer-events:none}
.cal-d{font-size:12px;font-weight:700}
.cal-n{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:rgba(var(--ov),0.10);color:var(--text);font-size:10px;font-weight:800}
.cal-live{position:absolute;top:6px;right:6px;width:7px;height:7px;border-radius:50%;background:var(--bad);animation:dcping 1.6s infinite}
.cal-detail{margin-top:22px}
.cal-dayhead{font-size:13px;font-weight:800;letter-spacing:0.12em;text-transform:uppercase;color:var(--text);margin:0 0 12px;text-align:center}
@media(max-width:560px){.cal-grid{gap:4px}.cal-cell{aspect-ratio:1/1;padding:4px 2px}.cal-month{font-size:16px}}
.cal-dots{display:flex;gap:3px;flex-wrap:wrap;justify-content:center}
.cal-dot{width:6px;height:6px;border-radius:50%}

/* ===== Homepage — today-anchored hub ===== */
.home-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;flex-wrap:wrap}
.sport-tabs{display:flex;gap:6px;flex-wrap:wrap}
.sport-tab{appearance:none;border:1px solid var(--line);background:var(--surface);color:var(--dim);font:inherit;font-size:12.5px;font-weight:600;padding:7px 14px;border-radius:999px;cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.sport-tab:hover{color:var(--text);border-color:var(--line-2)}
.sport-tab.active{background:var(--brand);border-color:var(--brand);color:#fff}
.cal-btn{appearance:none;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:600;padding:8px 14px;border-radius:999px;cursor:pointer;transition:border-color .15s,background .15s}
.cal-btn:hover{border-color:var(--line-2)}
.cal-btn.active{border-color:var(--brand);background:rgba(47,109,246,0.12)}
.cb-i{font-size:14px;line-height:1}
.hero{display:block;text-decoration:none;border:1px solid var(--line);border-top:3px solid var(--oc,var(--brand));border-radius:18px;background:var(--surface);background-image:linear-gradient(90deg,rgba(var(--awc,0,0,0),var(--wash-a,0)),transparent 42%),linear-gradient(270deg,rgba(var(--hmc,0,0,0),var(--wash-a,0)),transparent 42%);padding:18px 20px 16px;margin:0 0 26px;transition:border-color .15s,transform .15s}
.hero:hover{border-color:var(--line-2);transform:translateY(-2px)}
.hero-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.hero-org{display:inline-flex;align-items:center;gap:9px;min-width:0;color:var(--dim);font-size:12.5px;font-weight:600}
.hero-org img{width:22px;height:22px;object-fit:contain;border-radius:5px;flex:none}
.hero-org span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hero-flag{font-size:10.5px;font-weight:800;letter-spacing:0.05em;text-transform:uppercase;padding:4px 11px;border-radius:999px;white-space:nowrap;flex:none}
.hero-flag.live{background:var(--bad);color:#fff;display:inline-flex;align-items:center;gap:6px}
.hero-flag.live .dot{width:6px;height:6px;border-radius:50%;background:#fff;animation:pulse 1.4s ease-in-out infinite}
.hero-flag.next{background:rgba(var(--ov),0.07);color:var(--dim)}
.hero-teams{display:flex;align-items:center;gap:10px}
.hero-team{flex:1;display:flex;flex-direction:column;align-items:center;gap:9px;min-width:0;text-align:center}
.hero-team img,.hero-team .mc-ph.lg{width:54px;height:54px;object-fit:contain}
.mc-ph.lg{display:grid;place-items:center;border-radius:12px;background:rgba(var(--ov),0.06);font-weight:800;font-size:20px;color:var(--text)}
.hero-tn{font-weight:700;font-size:15px;line-height:1.2;color:var(--text);max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-bug{flex:none;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:92px}
.hero-score{font-weight:800;font-size:32px;line-height:1;font-variant-numeric:tabular-nums;color:var(--text);display:flex;align-items:center;gap:9px;font-family:var(--font-num)}
.hero-score span{color:var(--dim-2);font-weight:600;font-size:22px}
.hero-kick{font-weight:800;font-size:24px;line-height:1;color:var(--text)}
.hero-cl{font-size:10.5px;font-weight:800;letter-spacing:0.06em;text-transform:uppercase;padding:3px 10px;border-radius:999px;white-space:nowrap;font-family:var(--font-num)}
.hero-cl.live{background:var(--bad);color:#fff}
.hero-cl.final{background:rgba(var(--ov),0.07);color:var(--dim)}
.hero-cl.next{background:transparent;color:var(--dim-2);padding:0;font-size:11.5px;letter-spacing:0;text-transform:none}
.hero-last{margin-top:12px;text-align:center;font-size:12px;color:var(--dim)}
.hero-last:empty{display:none}
.hl-tag{font-size:9px;font-weight:800;letter-spacing:0.1em;text-transform:uppercase;color:var(--brand-soft);margin-right:7px}
.hl-clk{color:var(--dim-2)}
.tn-short{display:none}
.hero-cta{margin-top:16px;padding-top:13px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.hero-cta-go{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--brand-soft)}
.hero-cta-go span{transition:transform .15s}
.hero:hover .hero-cta-go span{transform:translateX(3px)}
/* Cross-match LIVE NOW strip (homepage) — replaces the single hero when 2+ live. */
.livestrip{margin:0 0 26px}
.lvs-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.lvs-ttl{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;letter-spacing:0.03em;color:var(--text)}
.lvs-dot{width:8px;height:8px;border-radius:50%;background:var(--bad);animation:pulse 1.4s ease-in-out infinite;flex:none}
.lvs-count{font-size:11.5px;font-weight:700;color:var(--dim-2)}
.lvs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(248px,1fr));gap:12px}
.lvt{display:block;text-decoration:none;border:1px solid var(--line);border-top:3px solid var(--oc,var(--brand));border-radius:14px;background:var(--surface);padding:12px 14px 13px;transition:border-color .15s,transform .15s}
.lvt:hover{border-color:var(--line-2);transform:translateY(-2px)}
.lvt-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.lvt-comp{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600;color:var(--dim)}
.lvt-cl{flex:none;font-size:10px;font-weight:800;letter-spacing:0.05em;text-transform:uppercase;padding:3px 8px;border-radius:999px;background:var(--bad);color:#fff;white-space:nowrap;font-family:var(--font-num)}
.lvt-teams{display:flex;flex-direction:column;gap:7px}
.lvt-team{display:flex;align-items:center;gap:9px}
.lvt-team img,.lvt-team .mc-ph{width:22px;height:22px;flex:none;object-fit:contain}
.lvt-tn{flex:1;min-width:0;font-weight:600;font-size:13px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lvt-sc{font-weight:800;font-size:17px;font-variant-numeric:tabular-nums;color:var(--text);font-family:var(--font-num)}
.lvt-last{margin-top:9px;font-size:11px;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lvt-last:empty{display:none}
.lvt-more{display:flex;align-items:center;justify-content:center;color:var(--brand-soft);font-weight:700;font-size:13px;border-style:dashed;border-top-color:var(--line)}
/* Recently-viewed rail (homepage) — a horizontal strip of where you've been. */
.rv-wrap{margin:6px 0 26px}
.rv-head{font-size:13px;font-weight:800;letter-spacing:.03em;color:var(--text);margin:0 0 8px}
/* Full-bleed the chip rail (escape the .wrap's 22px padding) so it scrolls
   edge-to-edge like the day rail above — no awkward mid-container clip. The
   "Recently viewed" head stays at content alignment; only the scroller goes
   full width. Mirrors .daystrip. */
.rv-row{display:flex;gap:10px;overflow-x:auto;margin:0 -22px;padding:4px 22px;scrollbar-width:none}
.rv-row::-webkit-scrollbar{display:none}
/* Desktop only: soften the L/R edges with a fade so overflow doesn't hard-cut
   (mobile keeps the hard edge, matching .daystrip). */
@media(min-width:641px){.rv-row{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 30px,#000 calc(100% - 30px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 30px,#000 calc(100% - 30px),transparent 100%)}}
.rv-chip{flex:0 0 auto;display:flex;align-items:center;gap:9px;max-width:230px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:8px 13px 8px 9px;text-decoration:none;transition:border-color .15s,transform .15s}
.rv-chip:hover{border-color:var(--line-2);transform:translateY(-2px)}
.rv-chip img,.rv-ph{width:26px;height:26px;flex:none;object-fit:contain;border-radius:6px}
.rv-ph{display:grid;place-items:center;background:rgba(var(--ov),0.06);font-weight:800;font-size:12px;color:var(--text)}
.rv-tx{min-width:0;display:flex;flex-direction:column;gap:1px}
.rv-lb{font-size:13px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-sb{font-size:11px;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.day-head{font-size:13px;font-weight:800;letter-spacing:0.03em;color:var(--text);margin:26px 0 14px}
.lg-group{margin:0 0 22px}
.lg-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 11px}
.lg-badge{display:inline-flex;align-items:center;gap:9px;min-width:0;font-size:13px;font-weight:700;color:var(--text);border-left:3px solid var(--oc,var(--brand));padding-left:10px}
.lg-badge img{width:22px;height:22px;object-fit:contain;border-radius:5px;flex:none}
.lg-ic{font-size:16px}
.lg-badge span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fav-star{appearance:none;border:0;background:none;cursor:pointer;font-size:17px;line-height:1;color:var(--dim-2);padding:2px 4px;transition:color .15s}
.fav-star:hover{color:var(--text)}
.fav-star.on{color:#f5b301}
.mc-sub{min-width:0;color:var(--dim);font-size:11.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.org-section{margin:0 0 22px}
.org-sec-label{font-size:11px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--dim-2);margin:0 0 12px}
.org-tile-wrap{position:relative}
.org-tile-wrap .fav-star.tile{position:absolute;top:8px;right:8px;z-index:2}
/* header nav icons: calendar (left, every page) + home (right, every page but home) */
.top-in{position:relative}
.hdr-icon{position:absolute;top:50%;transform:translateY(-50%);appearance:none;border:1px solid var(--line);background:var(--surface);color:var(--dim);width:38px;height:38px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none;transition:color .15s,border-color .15s,background .15s}
.hdr-icon:hover{color:var(--text);border-color:var(--line-2)}
.hdr-cal{left:22px}
.hdr-theme{left:66px}
.hdr-home{right:22px}
.hdr-cal.active{color:#fff;background:var(--brand);border-color:var(--brand)}
/* sun shows in dark mode (→ click for light); moon shows in light mode */
.hdr-theme .ic-moon{display:none}
[data-theme="light"] .hdr-theme .ic-sun{display:none}
[data-theme="light"] .hdr-theme .ic-moon{display:inline}
/* "Hide scores" toggle (right side). On the home page there is no home icon, so
   it sits at the far right (22px); everywhere else it sits just left of home
   (66px) — resolved by whether a preceding .hdr-home sibling exists. */
.hdr-hide{right:22px}
.hdr-home ~ .hdr-hide{right:66px}
.hdr-hide.active{color:#fff;background:var(--brand);border-color:var(--brand)}
.hdr-hide .ic-eyeoff{display:none}
.hdr-hide.active .ic-eye{display:none}
.hdr-hide.active .ic-eyeoff{display:inline}
.tn-full{display:inline}
@media(max-width:560px){.tn-full{display:none}.tn-short{display:inline}.hdr-cal{left:14px}.hdr-theme{left:58px}.hdr-home{right:14px}.hdr-hide{right:14px}.hdr-home ~ .hdr-hide{right:58px}}
/* hero rich meta row */
.hero-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:15px;font-size:12.5px;color:var(--dim)}
.hm-live{display:inline-flex;align-items:center;gap:6px;color:var(--bad);font-weight:700}
.hm-live .dot{width:6px;height:6px;border-radius:50%;background:var(--bad);animation:pulse 1.4s ease-in-out infinite}
.hm-venue{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:62%}
.hm-sep{color:var(--dim-2)}
.hero-dash{color:var(--dim-2)}
/* full-bleed day rail (edge-to-edge scroll, never clipped) + Earlier/Later chips */
.daystrip{margin:0 -22px 14px;padding:2px 22px 12px}
/* Desktop only: soften the L/R edges with a fade (mobile keeps the hard edge). */
@media(min-width:641px){.daystrip{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 30px,#000 calc(100% - 30px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 30px,#000 calc(100% - 30px),transparent 100%)}}
.daychip.more{flex-direction:row;align-items:center;justify-content:center;gap:6px;width:auto;min-width:78px;color:var(--dim);background:transparent}
.daychip.more:hover{color:var(--text);border-color:var(--line-2)}
.daychip.more .more-i{font-size:18px;line-height:1}
.daychip.more .more-t{font-size:10px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase}

/* =========================================================================
   OPERATOR NOTICES (assets/notice.js) — a tenant-wide strip under the header
   on every TENANT-SCOPED page, a per-match card above the scorebug on
   match.html, and a card badge that REPLACES the status pill on a match tile.
   severity 'urgent' reuses --bad (already AA-contrast on both themes, same
   colour the LIVE pill uses); 'notice' uses the new --notice amber — a
   DARKENED value on the light theme, since the OTT's dark-theme #F2A93B fails
   contrast on a white ground. Additive throughout: with no notice set,
   assets/notice.js's helpers return '' and none of this renders anything.
   ========================================================================= */
.opn-strip{background:rgba(var(--notice-rgb),0.10);border-bottom:1px solid rgba(var(--notice-rgb),0.32)}
.opn-strip.opn-urgent{background:rgba(var(--bad-rgb),0.10);border-bottom-color:rgba(var(--bad-rgb),0.32)}
.opn-strip-in{max-width:var(--maxw);margin:0 auto;padding:10px 22px;display:flex;align-items:flex-start;gap:9px}
.opn-ic{flex:none;color:var(--notice);margin-top:1px;line-height:0}
.opn-urgent .opn-ic{color:var(--bad)}
.opn-body{min-width:0;font-size:13px;line-height:1.45;color:var(--text)}
.opn-head{font-weight:700;color:var(--notice);margin-right:6px}
.opn-urgent .opn-head{color:var(--bad)}

.opn-card{display:flex;align-items:flex-start;gap:10px;border:1px solid rgba(var(--notice-rgb),0.32);border-left:3px solid var(--notice);border-radius:var(--radius-sm);background:rgba(var(--notice-rgb),0.08);padding:12px 14px;margin-bottom:14px}
.opn-card.opn-urgent{border-color:rgba(var(--bad-rgb),0.32);border-left-color:var(--bad);background:rgba(var(--bad-rgb),0.08)}
.opn-card .opn-body{font-size:13.5px}
.opn-card .opn-head{display:block;font-size:14px;margin:0 0 2px}
#m-notice:not(:empty){margin-bottom:14px}

/* Card badge — REPLACES the normal status pill (.mc-st/.mh-status) on a match
   tile when the operator set a cardLine, except while the match is live (the
   callers gate that; see assets/notice.js noticeBadgeHtml). Sized to drop
   into the same slot as those badges. Amber is dark ink both themes (measured:
   white text on #F2A93B is ~2:1, unreadable) — urgent stays white-on-red,
   matching .mc-st.live. */
.opn-badge{display:inline-flex;align-items:center;font-size:10px;font-weight:800;letter-spacing:0.05em;text-transform:uppercase;padding:3px 9px;border-radius:999px;white-space:nowrap;flex:none;background:var(--notice);color:#1a1200}
.opn-badge.opn-urgent{background:var(--bad);color:#fff}
/* Hero flag variant — the homepage marquee's "Up next" pill, recoloured when
   the featured match carries an operator notice. Inherits .hero-flag's box so
   only the colours change. */
.hero-flag.opn-flag{background:var(--notice);color:#1a1200;border-color:transparent}
.hero-flag.opn-flag.urgent{background:var(--bad);color:#fff}

/* ── "Hide scores" reveal chip ─────────────────────────────────────────────
   Shown where a finished match's score would render when Hide-scores is ON and
   the match hasn't been revealed this session. Theme-aware (uses the shared
   tokens), keyboard-focusable, and sized to roughly occupy the score's box so
   revealing doesn't shift the layout dramatically. Tap/Enter/Space → reveal
   (delegated handler on each page). */
.hs-reveal{display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  padding:4px 10px;border-radius:999px;border:1px solid var(--line-2);
  background:rgba(var(--ov),0.04);color:var(--dim);
  font-size:11px;font-weight:700;letter-spacing:.02em;line-height:1.2;
  white-space:nowrap;vertical-align:middle;-webkit-user-select:none;user-select:none;
  transition:color .15s,border-color .15s,background .15s}
.hs-reveal:hover{color:var(--text);border-color:var(--brand);background:rgba(47,109,246,0.10)}
.hs-reveal:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.hs-reveal .hs-eye{flex:none;opacity:.9}
.hs-reveal-tx{font-weight:800;color:var(--text)}
.hs-reveal-cta{color:var(--dim-2);font-weight:600}
/* Bigger variant for the match-page scorebug centre — the primary reveal
   affordance for the whole page. Stacks the label under the icon. */
.hs-reveal.hs-bug{flex-direction:column;gap:3px;padding:8px 12px}
.hs-reveal.hs-bug .hs-eye{width:19px;height:19px}
.hs-reveal.hs-bug .hs-reveal-tx{font-size:12px}
.hs-reveal.hs-bug .hs-reveal-cta{font-size:10px;text-transform:uppercase;letter-spacing:.08em}
/* In-tab "scores hidden" placeholder (Summary / Feed) — centres the chip in the
   space the timeline/feed would occupy. */
.hs-hidden{display:flex;justify-content:center;padding:26px 12px}
/* Compact contexts: keep the reveal chip narrow where space is tight — the
   scorebar strip tiles and the match page's sticky mini scoreboard. The eye-off
   icon + "Score hidden" carry the meaning; the aria-label keeps "tap to reveal". */
.sb-top .hs-reveal{padding:2px 7px;font-size:10px}
.sb-top .hs-reveal .hs-reveal-cta{display:none}
.hs-reveal.hs-mini{padding:2px 8px;font-size:10px;gap:5px}
.hs-reveal.hs-mini .hs-reveal-cta{display:none}
.hs-reveal.hs-mini .hs-eye{width:13px;height:13px}
/* On the competition schedule tile the chip sits in the narrow status column —
   let it wrap its label rather than force the row wider. */
.mh-statuscol .hs-reveal{white-space:normal;text-align:center}

/* ── PENALTY SHOOTOUT (soccer) ────────────────────────────────────────────────
   The match score keeps its real value; the shootout sits BESIDE it. Three
   pieces, all additive (every one is absent unless the API sent a shootout):
     .so-br   bracket notation next to each score  -> "2 (3) · (4) 2"
     .so-line the plain-language sentence          -> "Home won 4-3 on penalties"
     .pso*    the dedicated block (match page Summary)
   Uses only existing tokens (--ok / --bad / --dim / --line / --font-num), so
   both themes follow automatically. */
.so-br{font-family:var(--font-num);font-weight:800;font-size:17px;color:var(--dim);letter-spacing:-.02em;line-height:1}
.matchbug-scorew{display:flex;flex-direction:row;align-items:baseline;gap:7px;min-width:0}
.matchbug-side.home .matchbug-scorew{flex-direction:row-reverse}
.matchbug-side.lost .so-br{color:var(--dim-2)}
/* The sticky mini bar already sets gap on .mbm-side, so the bracket needs no
   margin of its own: it inherits the row gap and mirrors with row-reverse. */
.mbm-so{font-family:var(--font-num);font-weight:800;font-size:12px;color:var(--dim);flex:none}
@media (max-width:640px){ .so-br{font-size:14px} }
/* The homepage hero already styles every <span> inside .hero-score as the "–"
   separator (dim, 600, 22px) and that selector out-specifies .so-br, so the
   bracket needs its own rule there or it reads as punctuation. */
.hero-score .so-br{font-size:19px;font-weight:800;color:var(--dim)}
.hero-bug .so-line{margin-top:0;text-align:center}
.lvt-team .so-br{font-size:13px}
/* Card status line: one sentence under a match card's teams. */
.so-line{margin-top:9px;font-size:11.5px;font-weight:700;color:var(--dim);letter-spacing:.01em}
.so-line.sm{margin-top:6px;font-size:10.5px}
/* The block: two columns of takers, round numbers down the middle. Rows are a
   grid so a name that wraps cannot push the round marker off the centre line. */
.pso{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);padding:14px 14px 12px;margin:0 0 16px}
.pso-h{font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--dim-2);margin-bottom:11px}
.pso-grid{display:flex;flex-direction:column;gap:4px}
.pso-row{display:grid;grid-template-columns:1fr 34px 1fr;align-items:center;gap:8px}
.pso-row.pso-head{padding-bottom:7px;border-bottom:1px solid var(--line);margin-bottom:4px}
.pso-side{display:flex;align-items:center;gap:8px;min-width:0}
.pso-side.pso-home{flex-direction:row-reverse}
.pso-no{font-family:var(--font-num);font-size:11px;font-weight:700;color:var(--dim-2);text-align:center}
.pso-code{font-size:11.5px;font-weight:800;letter-spacing:.04em;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pso-tot{font-family:var(--font-num);font-size:20px;font-weight:800;color:var(--text);line-height:1}
.pso-nm{font-size:13px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pso-nm.pso-unk{color:var(--dim-2);font-weight:500;font-style:italic}
.pso-mk{flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:50%}
.pso-mk.ok{color:var(--ok);background:rgba(var(--ok-rgb),.14)}
.pso-mk.no{color:var(--bad);background:rgba(var(--bad-rgb),.14)}
.pso-mk.unk{color:var(--dim-2);background:rgba(var(--ov),.07)}
.pso-foot{margin-top:11px;padding-top:10px;border-top:1px solid var(--line);font-size:12.5px;font-weight:700;color:var(--text)}
@media (max-width:520px){
  .pso{padding:12px 11px 10px}
  .pso-row{grid-template-columns:1fr 26px 1fr;gap:6px}
  .pso-nm{font-size:12px}
  .pso-side{gap:6px}
}
