/* Daily Sport Stats — design tokens
   Court-line geometry, condensed jersey numerals, one heat color reserved for momentum. */
:root {
  --bg: #EEF1F5;
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --ink: #121826;
  --ink-2: #4B5568;
  --ink-3: #6B7488;
  --line: #D6DCE5;
  --blue: #1E4BFF;
  --blue-soft: #E3E9FF;
  --heat: #E2550B;
  --heat-soft: #FDE9DC;
  --rose: #C8336A;
  --good: #0E7C55;
  --bad: #B42318;
  --sample: #6D4AFF;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-lg: 22px;
  --r-md: 12px;
  --r-sm: 6px;
  --shadow: 0 1px 0 rgba(18, 24, 38, .04), 0 8px 24px -16px rgba(18, 24, 38, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1120;
    --surface: #141B2C;
    --surface-2: #1A2236;
    --ink: #EDF0F7;
    --ink-2: #B1BAD0;
    --ink-3: #8C96AE;
    --line: #2A3450;
    --blue: #7D96FF;
    --blue-soft: #1E2950;
    --heat: #FF8A3D;
    --heat-soft: #3A2316;
    --rose: #FF77A8;
    --good: #4BD69C;
    --bad: #FF8A80;
    --sample: #A894FF;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -18px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--body); font-variant-numeric: tabular-nums;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* Sample-data notice: always visible, never dismissible */
.sample-bar {
  background: var(--sample); color: #fff; font-size: 13px; line-height: 1.35;
  padding: 7px 16px; text-align: center;
}
.sample-bar strong { font-weight: 700; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 700 23px/1 var(--display); letter-spacing: .005em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.top nav { display: none; gap: 4px; margin-left: 16px; }
.top nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.search-btn {
  margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 999px; padding: 8px 14px; cursor: pointer; color: var(--ink-2); min-width: 44px; min-height: 40px;
}
.search-btn svg { width: 18px; height: 18px; }
.search-btn span { display: none; }

/* Bottom tab bar (mobile) */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; text-decoration: none; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.tabs a svg { width: 22px; height: 22px; }
.tabs a[aria-current="page"] { color: var(--blue); }

@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .top nav { display: flex; }
  .tabs { display: none; }
  .search-btn span { display: inline; }
  .search-btn { min-width: 240px; }
}

main { max-width: 1120px; margin: 0 auto; padding: 18px 16px 48px; }
main:focus { outline: none; }

/* Section rhythm */
.sec { margin-top: 34px; }
.sec:first-child { margin-top: 6px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 12px; flex-wrap: wrap; }
.sec-h h2 { font: 700 28px/1.05 var(--display); margin: 0; letter-spacing: .005em; }
.sec-h a, .sec-h .aside { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.lede { color: var(--ink-2); margin: -4px 0 14px; max-width: 62ch; font-size: 15px; }
.source { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tag-sample { color: var(--sample); font-weight: 700; }

/* Tonight strip */
.slate-date { font: 600 15px/1.2 var(--body); color: var(--ink-2); margin: 0 0 6px; }
.slate { scroll-padding-inline: 16px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.game {
  scroll-snap-align: start; flex: 0 0 auto; min-width: 200px; background: var(--surface); border-radius: var(--r-md);
  padding: 12px 14px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.game .when { font-size: 12.5px; color: var(--ink-3); font-weight: 600; display: flex; justify-content: space-between; }
.game .row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.game .row b { font: 700 20px/1 var(--display); min-width: 42px; }
.game .row span { color: var(--ink-2); font-size: 14px; }
.game .row .rec { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.chip-team { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

/* Who's on fire */
.fire { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fire { grid-template-columns: 1fr 1fr; } }
.fire-card {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; text-decoration: none;
  background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; border: 1px solid var(--line);
  border-left: 5px solid var(--heat);
}
.fire-card:hover { border-color: var(--heat); }
.fire-card h3 { margin: 0; font: 700 22px/1.1 var(--display); }
.fire-card .meta { color: var(--ink-3); font-size: 13px; }
.fire-card .delta { grid-row: 1 / span 2; grid-column: 2; text-align: right; color: var(--heat); font: 700 40px/0.9 var(--display); }
.fire-card .delta small { display: block; font: 600 12px/1.2 var(--body); color: var(--ink-3); margin-top: 4px; }
.fire-card p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 14.5px; color: var(--ink-2); }
.spark { grid-column: 1 / -1; height: 34px; width: 100%; margin-top: 8px; }

/* Split grid for home lower sections */
.split { display: grid; gap: 0 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr .85fr; } }

/* Discoveries */
.disc { list-style: none; margin: 0; padding: 0; }
.disc li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.disc li:last-child { border-bottom: 1px solid var(--line); }
.disc a { font-weight: 600; }

/* Quiz */
.quiz { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 18px; box-shadow: var(--shadow); }
.quiz .q-head { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.pips { display: flex; gap: 5px; }
.pips i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.pips i.right { background: var(--good); }
.pips i.wrong { background: var(--bad); }
.pips i.now { background: var(--blue); }
.quiz h3 { font: 700 26px/1.1 var(--display); margin: 12px 0 14px; }
.opts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.opt {
  text-align: left; cursor: pointer; border: 2px solid var(--line); background: var(--surface-2); border-radius: var(--r-md);
  padding: 12px; min-height: 72px; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  transition: border-color .15s, transform .15s;
}
.opt:hover:not(:disabled) { border-color: var(--blue); }
.opt:active:not(:disabled) { transform: scale(.98); }
.opt strong { font: 700 19px/1.1 var(--display); }
.opt span { font-size: 13px; color: var(--ink-3); }
.opt .reveal { font: 700 28px/1 var(--display); margin-top: 6px; }
.opt.is-right { border-color: var(--good); }
.opt.is-wrong { border-color: var(--bad); }
.opt:disabled { cursor: default; }
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; min-height: 44px; }
.q-foot p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.btn {
  border: 0; cursor: pointer; background: var(--blue); color: #fff; font-weight: 700; border-radius: 999px; padding: 11px 18px;
  min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .btn { color: #0C1120; } }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.q-score { font: 700 64px/1 var(--display); margin: 8px 0 4px; }

/* Standings */
.tbl-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: right; font-weight: 600; color: var(--ink-3); font-size: 12.5px; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl td.team { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.tbl tr.hl td { background: var(--blue-soft); }
.tbl .sticky { position: sticky; left: 0; background: var(--bg); z-index: 1; }
.tbl tr.hl .sticky { background: var(--blue-soft); }
.tbl .best td { font-weight: 700; }
.conf-h { font: 700 20px/1 var(--display); margin: 20px 0 4px; }

/* ===== Player profile ===== */
.hero {
  --team: #155E75;
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  background: var(--team); padding: 22px 20px 20px; min-height: 260px; isolation: isolate;
}
.hero::before { /* court key + arc, in team color */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background:
    radial-gradient(circle at 100% 100%, transparent 0 158px, #fff 159px 161px, transparent 162px),
    linear-gradient(#fff, #fff) right 0 bottom 0 / 2px 100% no-repeat;
}
.hero .jersey {
  position: absolute; right: -8px; bottom: -0.17em; z-index: -1; font: 800 clamp(200px, 56vw, 330px)/1 var(--display);
  color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .55); letter-spacing: -.02em; pointer-events: none;
}
.hero .team-line { font-size: 14px; font-weight: 600; opacity: .9; }
.hero h1 { font: 800 clamp(48px, 13vw, 92px)/.88 var(--display); margin: 10px 0 14px; max-width: 9ch; letter-spacing: -.005em; }
.hero .bio { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; opacity: .95; max-width: 30ch; }
.hero .bio div b { display: block; font: 700 22px/1 var(--display); }
.hero .bio div span { font-size: 12px; opacity: .8; }
.hero .status { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .25); padding: 4px 10px; border-radius: 999px; }

.story { font-size: 19px; line-height: 1.45; margin: 18px 0 0; max-width: 60ch; }
.story b { font-weight: 700; }

.prof-grid { display: grid; gap: 0 32px; }
.prof-grid > *, .split > * { min-width: 0; }
@media (min-width: 900px) { .prof-grid { grid-template-columns: 1.2fr .8fr; } }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2); min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* Percentile ladder */
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ladder .lbl { font-size: 14.5px; color: var(--ink-2); }
.ladder .lbl button { border: 0; background: none; padding: 4px 0 4px 4px; color: var(--ink-3); cursor: pointer; font-size: 13px; text-decoration: underline dotted; }
.ladder .val { font: 700 30px/1 var(--display); text-align: right; }
.ladder .bar { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 4px; margin-top: 6px;
  background: repeating-linear-gradient(90deg, var(--line) 0 calc(25% - 2px), transparent calc(25% - 2px) 25%); }
.ladder .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--blue); width: var(--w); transform-origin: left; animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; }
.ladder .bar i.top { background: var(--heat); }
.ladder .rank { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.help { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; margin-top: 8px; }
@keyframes grow { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .ladder .bar i { animation: none; } * { scroll-behavior: auto !important; } }

.adv { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (min-width: 560px) { .adv { grid-template-columns: repeat(3, 1fr); } }
.adv div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.adv b { display: block; font: 700 26px/1 var(--display); }
.adv span { font-size: 13px; color: var(--ink-3); }

/* Charts */
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 12px 10px; }
.chart-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-box .axis { font: 600 12px var(--body); fill: var(--ink-3); }
.chart-box .grid { stroke: var(--line); stroke-width: 1; }
.chart-box .pt { cursor: pointer; }
.chart-box .pt:focus { outline: none; }
.chart-box .pt:focus circle.ring, .chart-box .pt.sel circle.ring { stroke: var(--ink); stroke-width: 2; }
.readout { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; padding: 4px 4px 8px; min-height: 42px; }
.readout b { font: 700 30px/1 var(--display); }
.readout span { color: var(--ink-2); font-size: 14px; }
.legend { display: flex; gap: 14px; font-size: 13.5px; color: var(--ink-2); padding: 0 4px 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

.highs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .highs { grid-template-columns: repeat(4, 1fr); } }
.highs div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.highs b { font: 700 32px/1 var(--display); display: block; }
.highs span { font-size: 13px; color: var(--ink-3); }

.feats { list-style: none; padding: 0; margin: 0; }
.feats li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; gap: 10px; }
.feats li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--heat); transform: rotate(45deg); }

.people { list-style: none; padding: 0; margin: 0; }
.people li a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mono { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 700 20px/1 var(--display); }
.people .nm { font-weight: 700; display: block; }
.people .sub { font-size: 13px; color: var(--ink-3); }
.people .side { font: 700 22px/1 var(--display); text-align: right; }
.people .side small { display: block; font: 600 11px var(--body); color: var(--ink-3); }

.next { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .next { grid-template-columns: repeat(3, 1fr); } }
.next a { display: block; text-decoration: none; padding: 16px; border-radius: var(--r-md); background: var(--ink); color: var(--bg); }
.next a b { display: block; font: 700 21px/1.1 var(--display); margin-bottom: 4px; }
.next a span { font-size: 14px; opacity: .8; }

/* ===== Compare ===== */
.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.cmp-side { border-radius: var(--r-lg); padding: 14px; color: #fff; position: relative; overflow: hidden; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; }
.cmp-side .n { font: 800 clamp(21px, 5.6vw, 44px)/.95 var(--display); overflow-wrap: anywhere; hyphens: auto; display: block; }
.cmp-side .t { font-size: 13px; opacity: .9; }
.cmp-side .chg { align-self: flex-start; margin-top: 10px; background: rgba(0, 0, 0, .25); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 32px; }
.cmp-side .marker { position: absolute; top: 12px; right: 12px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
.vs { align-self: center; font: 800 22px/1 var(--display); color: var(--ink-3); }
.swap { display: block; margin: 6px auto 0; }
.cmp-rows { list-style: none; margin: 0; padding: 0; }
.cmp-rows li { display: grid; grid-template-columns: 1fr minmax(86px, auto) 1fr; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cmp-rows .mid { text-align: center; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.cmp-rows .side { display: flex; align-items: center; gap: 8px; }
.cmp-rows .side.a { flex-direction: row-reverse; }
.cmp-rows .bar { height: 10px; border-radius: 5px; background: var(--line); flex: 1; position: relative; overflow: hidden; }
.cmp-rows .bar i { position: absolute; top: 0; bottom: 0; width: var(--w); border-radius: 5px; }
.cmp-rows .a .bar i { right: 0; background: var(--blue); }
.cmp-rows .b .bar i { left: 0; background: var(--rose); }
.cmp-rows .v { font: 700 22px/1 var(--display); min-width: 52px; }
.cmp-rows .a .v { text-align: right; }
.cmp-rows .lose .v { color: var(--ink-3); font-weight: 600; }
.cmp-rows .lose .bar i { opacity: .45; }
.verdict { font-size: 18px; margin: 14px 0 0; }
.note { font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 10px 12px; margin-top: 14px; }

/* Leaders */
.chips { scroll-padding-inline: 16px; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px; }
.chips a { flex: none; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; background: var(--surface); }
.chips a[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rank-n { font: 700 18px/1 var(--display); color: var(--ink-3); width: 28px; text-align: right; }
.lead-row { display: grid !important; grid-template-columns: 28px 44px 1fr auto !important; }

/* Search overlay */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8, 12, 22, .55); padding: 10px; }
body.lock { overflow: hidden; }
.sheet { max-width: 640px; margin: 6vh auto 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); overflow: hidden; }
.sheet .field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet input { flex: 1; border: 0; background: transparent; font: 600 20px/1.2 var(--body); color: var(--ink); outline: none; min-width: 0; }
.sheet .close { border: 0; background: var(--surface-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600; min-height: 36px; }
.results { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow-y: auto; }
.results a { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r-md); text-decoration: none; }
.results a.active, .results a:hover { background: var(--blue-soft); }
.results .mono { width: 40px; height: 40px; font-size: 18px; }
.results .sub { font-size: 13px; color: var(--ink-3); }
.results .empty { padding: 18px; color: var(--ink-2); }

.empty-state { padding: 40px 0; }
.empty-state h1 { font: 700 40px/1 var(--display); }

footer { max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--line); }
footer p { margin: 4px 0; max-width: 80ch; }
@media (min-width: 900px) { .prof-grid .highs { grid-template-columns: repeat(2, 1fr); } }

/* Today's edition: the daily front page */
.sec[id] { scroll-margin-top: 76px; }
.edition h1 { font: 800 clamp(40px, 11vw, 76px)/.92 var(--display); margin: 4px 0 10px; letter-spacing: -.005em; max-width: 12ch; }
.edition p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.edition a { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--heat); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.edition a:hover { text-decoration-color: var(--ink); }
.edition .nw { white-space: nowrap; }

/* ---- Production additions ---- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.stale-bar { background: var(--heat-soft); color: var(--ink); font-size: 13.5px; padding: 8px 16px; text-align: center; border-bottom: 1px solid var(--heat); }
.h2 { font: 700 30px/1.05 var(--display); margin: 0; letter-spacing: .005em; }
.h-sub { display: block; font: 600 15px/1.3 var(--body); color: var(--ink-2); margin-top: 4px; }
.crumbs { font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; margin: 2px 0 4px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero .team-line a { color: inherit; text-decoration-color: rgba(255,255,255,.5); }
.team-hero .jersey { font-size: clamp(96px, 27vw, 230px); -webkit-text-stroke-color: rgba(255,255,255,.28); bottom: -0.12em; }
.team-hero { padding-bottom: 26px; }
@media (max-width: 520px) { .team-hero .jersey { top: 14px; bottom: auto; right: 12px; font-size: 64px; } }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; font-size: 14.5px; }
.facts div { display: flex; gap: 6px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }
.seg-a { text-decoration: none; padding: 7px 13px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); min-height: 36px; display: inline-flex; align-items: center; }
.seg-a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.cmp-rows .lb { font-weight: 400; font-size: 11px; }
.cmp-side .n { color: #fff; text-decoration: none; }
.swap { width: fit-content; margin: 8px auto 14px; display: flex; }
.game .ab { font: 700 20px/1 var(--display); min-width: 42px; text-decoration: none; }
.game .rec.score { font: 700 20px/1 var(--display); color: var(--ink); }
.game .rec.lost { color: var(--ink-3); }
.game.is-live { border-color: var(--heat); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--heat); margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.scoregrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top: 6px; }
.scoregrid .game { min-width: 0; }
.top-perf { font-size: 13.5px; color: var(--ink-2); margin: 6px 4px 0; }
.daynav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin: 4px 0 12px; }
.daynav a { font-weight: 700; text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.daynav a[rel="prev"] { justify-self: start; } .daynav a[rel="next"] { justify-self: end; }
.daynav a[rel="prev"]::before { content: "‹ "; } .daynav a[rel="next"]::after { content: " ›"; }
.rosters { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.roster { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.roster h3 { margin: 0 0 6px; font: 700 19px/1.1 var(--display); display: flex; gap: 8px; align-items: center; }
.roster h3 a { text-decoration: none; }
.roster ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.roster li { padding: 4px 0; font-size: 15px; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; }
.letters a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font: 700 20px/1 var(--display); background: var(--surface); }
.az { list-style: none; padding: 0; margin: 0; columns: 2 220px; }
.az li { padding: 6px 0; break-inside: avoid; }
.sub { color: var(--ink-3); font-size: 13px; }
.results-list { list-style: none; margin: 0; padding: 0; }
.results-list li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.results-list .wl { font: 700 16px/1 var(--display); color: var(--ink-3); min-width: 22px; }
.results-list .wl.w { color: var(--good); } .results-list .wl.l { color: var(--bad); }
.results-list .sc { font: 700 18px/1 var(--display); }
.results-list .dt { font-size: 13px; color: var(--ink-3); }
.next-inline { margin-top: 14px; font-weight: 600; }
.narrow { max-width: 640px; }
.prose { max-width: 68ch; }
.prose h2 { font: 700 24px/1.1 var(--display); margin: 28px 0 6px; }
.prose p { margin: 0 0 12px; color: var(--ink-2); }
.q-msg { margin: 0 0 14px; font-size: 17px; }
.q-foot.wrap { justify-content: flex-start; flex-wrap: wrap; }
.recap { margin-top: 14px; font-size: 14.5px; }
.recap summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.recap ul { margin: 8px 0 0; padding-left: 18px; columns: 2; }
.results .hint { padding: 6px 10px; }
footer a { color: var(--ink-2); }
ol.people { padding: 0; }

/* ---- Game cards (whole card is one link) ---- */
a.game { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.game:hover { border-color: var(--blue); }
a.game:active { transform: scale(.99); }
.game .go { color: var(--blue); font-weight: 700; }
.game .ab { font: 700 20px/1 var(--display); min-width: 42px; }
.results-list a.sc { text-decoration: none; }
.results-list a.sc:hover { text-decoration: underline; }

/* ---- Game page ---- */
.ghead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 12px; box-shadow: var(--shadow); }
.gh-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gh-side.home { flex-direction: row-reverse; text-align: right; }
.gh-team { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-decoration: none; min-width: 0; }
.gh-side.home .gh-team { align-items: flex-end; }
.gh-team .mono { width: 44px; height: 44px; font-size: 15px; }
.gh-name { font: 700 18px/1.05 var(--display); overflow-wrap: anywhere; }
.gh-city { display: block; font: 600 12px/1.2 var(--body); color: var(--ink-3); }
.gh-rec { font-size: 12px; color: var(--ink-3); }
.gh-score { font: 800 clamp(34px, 10vw, 60px)/1 var(--display); }
.gh-team.lost + .gh-score, .gh-side .lost ~ .gh-score { color: var(--ink-3); }
.gh-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.gh-status { font-size: 12.5px; font-weight: 700; color: var(--ink-2); max-width: 11ch; }
.gh-status.live { color: var(--heat); }
.gh-at { font: 700 20px/1 var(--display); color: var(--ink-3); }
@media (min-width: 640px) { .ghead { padding: 22px 24px; } .gh-name { font-size: 26px; } .gh-team .mono { width: 52px; height: 52px; } .gh-status { max-width: none; } }
.linescore { margin-top: 12px; }
.linescore .tbl th, .linescore .tbl td { text-align: center; }
.linescore .tbl th:first-child { text-align: left; }
.linescore .tot { font-weight: 700; }
.gleaders { list-style: none; margin: 0; padding: 0; }
.gleaders li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gl-side { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.gl-side.home { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.gl-side a { font-weight: 600; overflow-wrap: break-word; }
@media (max-width: 560px) {
  .gl-side, .gl-side.home { flex-direction: column; align-items: flex-start; gap: 3px; }
  .gl-side.home { align-items: flex-end; }
  .gl-side b { order: -1; font-size: 22px; }
  .gl-side a { font-size: 14.5px; line-height: 1.25; }
  .gl-label { font-size: 11px; }
}
.gl-side b { font: 700 24px/1 var(--display); }
.gl-label { font-size: 12.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.gtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; position: sticky; top: 61px; z-index: 5; background: var(--bg); overflow-x: auto; }
.gtabs button { border: 0; background: none; padding: 12px 14px; font-weight: 700; font-size: 15px; color: var(--ink-3); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px; }
.gtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--heat); }
.gpanel + .gpanel { margin-top: 28px; }
.gtabs:not([hidden]) ~ .gpanel + .gpanel { margin-top: 0; }
.panel-h { font: 700 24px/1.1 var(--display); margin: 0 0 10px; }
.box-h { display: flex; align-items: center; gap: 8px; font: 700 20px/1.1 var(--display); margin: 18px 0 8px; }
.box-h a { text-decoration: none; }
.tbl.box th.sticky { min-width: 150px; }
.tbl.box th.sticky a { font-weight: 600; }
.bpos { color: var(--ink-3); font-size: 12px; margin-left: 6px; font-weight: 400; }
.tbl.box td.pts { font-weight: 700; }
.tstats th, .tstats td { text-align: center !important; }
.tstats th[scope="row"] { color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.tstats td { font: 600 18px/1 var(--display); }
.tstats td.win { font-weight: 800; color: var(--ink); }
.tstats td:not(.win) { color: var(--ink-2); }
.two-col { display: grid; gap: 0 24px; }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } }
.ginfo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0; }
.ginfo div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.ginfo dt { font-size: 12.5px; color: var(--ink-3); }
.ginfo dd { margin: 2px 0 0; font-weight: 700; }

/* Comfortable tap targets for links inside tables and list headings (24px+ tall) */
td a:not(.btn), th a:not(.btn), h3 > a, .crumbs a, .sec-h a, li > a.dt, li > a.sc, a.n, .lbl button, .gl-side a, p.source a { padding-block: 4px; }
