@font-face { font-family: "Anton"; src: url("fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #15140f;
  --bg-2: #1c1b14;
  --bg-3: #24221a;
  --line: #34312a;
  --line-2: #4a463b;
  --ink: #ece6d8;
  --muted: #a8a191;
  --dim: #7d776a;
  --yellow: #f2b705;
  --rust: #b8421f;
  --rust-ink: #ef7a52;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--mono);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
  min-height: 100vh;
}
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--yellow); color: var(--bg); padding: 6px 10px; z-index: 10; }

/* Header */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1240px; margin: 0 auto; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { display: block; width: 44px; height: auto; }
.wordmark { font: 400 22px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.wordmark em { font-style: normal; color: var(--yellow); }
.site-head nav { display: flex; gap: 4px; }
.site-head nav a {
  color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  padding: 8px 10px; border: 1px solid transparent;
}
.site-head nav a:hover { color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--yellow); border-color: var(--line-2); }

main { max-width: 1240px; margin: 0 auto; padding: 0 16px 48px; }

/* Type */
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.eyebrow span { color: var(--yellow); }
h1 { font: 400 clamp(44px, 7vw, 84px)/1 var(--display); text-transform: uppercase; margin: 0 0 .32em; letter-spacing: .01em; }
.hl { color: var(--yellow); position: relative; z-index: 0; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; z-index: -1; left: -.1em; right: -.1em; bottom: .04em; height: .42em;
  background: var(--rust); transform: rotate(-1.4deg);
}
h2 { font: 400 28px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 40px 0 14px; }
h3 { font: 700 14px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--yellow); margin: 28px 0 8px; }
.lede { color: var(--muted); font-size: 16px; max-width: 46rem; margin: 0 0 10px; }

/* Hero */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; padding: 28px 0 8px; }
.hero-art img { display: block; width: 168px; height: auto; }
.weekline { font-size: 13px; color: var(--muted); margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--line-2); color: var(--ink);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.badge.final::before { background: #6fbf73; }
.badge.provisional::before { background: var(--yellow); }
.badge.in_progress::before { background: var(--rust-ink); }

/* Wreckage report */
.wreck h2 { margin-top: 28px; }
.wreck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.story { background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--rust); padding: 14px 16px 16px; }
.story .label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin: 0 0 6px; }
.story .who { font: 400 24px/1.05 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.story .who small { font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .08em; margin-left: 6px; }
.story p.text { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.55; }

/* Controls */
.board { margin-top: 32px; }
.controls {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end;
  padding: 14px; background: var(--bg-2); border: 1px solid var(--line);
}
.ctl { display: flex; flex-direction: column; gap: 5px; border: 0; margin: 0; padding: 0; min-width: 0; }
.ctl > label, .ctl > legend { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0; }
.ctl.grow { flex: 1 1 180px; }
.ctl.small input { width: 72px; }
.ctl.actions { flex-direction: row; gap: 8px; margin-left: auto; }
.pair { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
select, input, button { font: inherit; font-size: 13px; color: var(--ink); }
select, input {
  background: var(--bg); border: 1px solid var(--line-2); padding: 7px 9px; min-height: 36px; border-radius: 0;
}
select { padding-right: 26px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 15px, calc(100% - 8px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
input[type="search"] { width: 100%; }
.chips > div, .segbtns { display: flex; flex-wrap: wrap; gap: 4px; }
.chips button, .segbtns button, button.ghost, button.toggle {
  background: var(--bg); border: 1px solid var(--line-2); padding: 7px 10px; min-height: 36px; cursor: pointer;
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
}
.chips button[aria-pressed="true"], .segbtns button[aria-pressed="true"], button.toggle[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--bg); font-weight: 700; }
button.ghost:hover, .chips button:hover, .segbtns button:hover { border-color: var(--ink); }
.count { color: var(--muted); font-size: 12px; margin: 12px 0 6px; }
.histnote { color: var(--muted); font-size: 12px; margin: 12px 0 0; padding: 8px 12px; border-left: 3px solid var(--yellow); background: var(--bg-2); }
[hidden] { display: none !important; }
#board[aria-busy] tbody { opacity: .5; }
.hint { color: var(--dim); font-size: 12px; margin-top: 8px; }

/* Tables */
.table-wrap { overflow: auto; border: 1px solid var(--line); max-height: 78vh; background: var(--bg); }
.table-wrap.plain { max-height: none; margin: 8px 0 16px; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-3); }
td.num, th.num { text-align: right; }
.table-wrap.plain th { position: static; }
#board thead th { position: sticky; top: 0; z-index: 2; }
#board thead tr.groups th { top: 0; color: var(--dim); font-weight: 400; border-bottom: 0; padding-bottom: 0; }
#board thead tr.cols th { top: var(--grp-h, 28px); }
#board th.sticky, #board td.sticky { position: sticky; left: 0; z-index: 1; }
#board td.sticky { background: var(--bg); }
#board th.sticky { z-index: 3; }
#board td.rank, #board th.rank { width: 3.2em; color: var(--dim); text-align: right; padding-right: 6px; }
#board td.player { left: 3.2em; }
#board th.player { left: 3.2em; }
#board td.player { font-weight: 700; }
#board td.player small { display: block; font-weight: 400; color: var(--dim); font-size: 11px; }
#board tbody tr:hover td { background: var(--bg-2); }
#board td.total { color: var(--yellow); font-weight: 700; }
#board td.zero { color: var(--dim); }
#board td.blank { color: var(--line-2); }
#board th button {
  all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; color: inherit;
}
#board th button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
#board th[aria-sort="descending"], #board th[aria-sort="ascending"] { color: var(--yellow); }
#board th .arrow { font-size: 9px; opacity: .9; }
#board th .ord { font-size: 9px; color: var(--muted); }
#board th.grp-start, #board td.grp-start { border-left: 1px solid var(--line); }
td.loading { color: var(--muted); padding: 24px; }

/* Prose pages */
.prose { max-width: 46rem; padding-top: 28px; }
.prose p { margin: 0 0 14px; }
.prose h2 { margin-top: 44px; padding-top: 14px; border-top: 2px solid var(--line-2); }
.example { background: var(--bg-2); border-left: 4px solid var(--rust); padding: 14px 16px 4px; margin: 16px 0; }

/* Footer */
.site-foot { max-width: 1240px; margin: 0 auto; padding: 20px 16px 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.site-foot p { margin: 4px 0; }
.site-foot a { color: var(--muted); }
.foot-status { color: var(--muted); }

@media (max-width: 720px) {
  body { font-size: 14px; }
  .wordmark { font-size: 18px; }
  .brand img { width: 36px; }
  .site-head nav a { padding: 6px 7px; letter-spacing: .06em; }
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 18px; }
  .hero-art img { width: 120px; }
  .controls { padding: 12px; gap: 10px 12px; }
  .ctl.actions { margin-left: 0; }
  .table-wrap { max-height: 72vh; }
  .wreck-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 16px; gap: 10px; margin: 0 -16px; padding: 0 16px 8px; }
  .story { flex: 0 0 82%; scroll-snap-align: start; }
  .wreck-grid .story.alert { flex-basis: 88%; }
  .wreck h2::after { content: " \2192"; color: var(--dim); font-size: 18px; }
  th, td { padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Super Stars */
.rec-group h2 { margin-top: 44px; padding-top: 14px; border-top: 2px solid var(--line-2); }
.rec-row { margin: 22px 0 8px; }
.rec-stat { margin: 0 0 10px; }
.rec-stat small { font: 400 11px/1 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: none; margin-left: 8px; }
.rec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story.rec { display: flex; flex-direction: column; gap: 8px; }
.story.rec p { margin: 0; }
.rec .big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.rec .big .num { font: 400 52px/1 var(--display); color: var(--yellow); }
.rec .big .unit { font: 400 20px/1 var(--display); text-transform: uppercase; color: var(--ink); }
.rec .worth { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); padding: 3px 7px; margin-left: auto; }
.rec .holder { font-weight: 700; }
.rec .holder a { color: var(--ink); text-decoration-color: var(--rust); }
.rec .holder a:hover { color: var(--yellow); }
.rec .tm { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 2px; }
.rec .when { color: var(--muted); font-weight: 400; font-size: 12px; }
.rec .tied { font-size: 12px; color: var(--muted); }
.rec .tied a { color: var(--ink); }
.rec .note { font-size: 11px; color: var(--dim); border-top: 1px dashed var(--line-2); padding-top: 8px; }
@media (max-width: 720px) {
  .rec-cards { grid-template-columns: 1fr; }
  .rec .big .num { font-size: 44px; }
}

/* Record alerts */
.wreck-grid .story.alert { grid-column: span 2; }
.story.alert { border: 1px solid var(--yellow); border-top: 4px solid var(--yellow); background: linear-gradient(180deg, rgba(242,183,5,.08), var(--bg-2) 60%); }
.story.alert.official { border-color: var(--line-2); border-top-color: var(--yellow); background: var(--bg-2); }
.story.alert .label { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.story.alert .label .scope { color: var(--muted); letter-spacing: .1em; }
.story.alert .rec-line { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.story.alert .rec-line .num { font: 400 34px/1 var(--display); color: var(--yellow); margin-right: 4px; }
.story.alert .rec-line .was { margin-left: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.story.alert .more { margin: 10px 0 0; font-size: 12px; }
.rec .alert-note { font-size: 13px; color: var(--ink); border-left: 3px solid var(--yellow); padding-left: 10px; }
.rec .label .badge { margin-left: 8px; }
.more-row { margin: 10px 0 0; }
.more-row button { width: 100%; }

/* ---------- Phase 2 ---------- */
:root { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; }   /* chart slots, validated on #15140f */

/* header search */
.site-head { flex-wrap: wrap; }
.hsearch { position: relative; flex: 0 1 260px; }
.hsearch input { width: 100%; }
.results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.45); max-height: 70vh; overflow: auto; }
.results li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; color: var(--ink); text-decoration: none; }
.results li[aria-selected="true"] a, .results li a:hover { background: var(--bg-3); }
.results li[aria-selected="true"] a { box-shadow: inset 3px 0 0 var(--yellow); }
.results .nm { font-weight: 700; }
.results .meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.results .none { padding: 10px; color: var(--muted); font-size: 13px; }

/* home big search */
.bigsearch { position: relative; margin: 26px 0 6px; }
.bigsearch .field { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-2); border: 1px solid var(--line-2); }
.bigsearch .field:focus-within { border-color: var(--yellow); }
.bigsearch svg { color: var(--yellow); flex: none; }
.bigsearch input { flex: 1; border: 0; background: transparent; font-size: 17px; min-height: 44px; padding: 0; }
.bigsearch input:focus-visible { outline: none; }
.spos { display: flex; gap: 2px; flex-wrap: wrap; }
.spos button { background: transparent; border: 0; padding: 6px 9px; font-size: 12px; letter-spacing: .08em; color: var(--muted); cursor: pointer; }
.spos button[aria-pressed="true"] { background: var(--bg-3); color: var(--yellow); }
.bigsearch .results { font-size: 15px; }

/* links in tables */
a.plink { color: var(--ink); text-decoration: none; }
a.plink:hover { color: var(--yellow); text-decoration: underline; text-decoration-color: var(--rust); }

/* player page */
.phero { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding: 28px 0 6px; border-bottom: 2px solid var(--line-2); }
.phero h1 { margin-bottom: 6px; }
.pmeta { color: var(--muted); margin: 0; letter-spacing: .06em; }
.next-box { margin: 16px 0 0; padding: 10px 14px; background: var(--bg-2); border-left: 3px solid var(--yellow); }
.next-box .eyebrow { margin: 0 0 2px; }
.next-box .next { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 8px; }
.tile { background: var(--bg-2); border: 1px solid var(--line); padding: 12px 14px; }
.tile .k { margin: 0 0 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile .v { margin: 0; font: 400 34px/1.05 var(--display); color: var(--yellow); }
.tile .v small { font: 400 12px/1 var(--mono); color: var(--muted); }
.tape-head, .tape-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) 110px 110px minmax(160px, 2fr); gap: 12px; align-items: center; }
.tape-head { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 6px 0; border-bottom: 1px solid var(--line); }
.tape-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tape-row p { margin: 0; }
.tape-row .val { font: 400 26px/1 var(--display); text-align: right; }
.tape-row .val small, .tape-row .pts small { display: block; font: 400 11px/1.4 var(--mono); color: var(--muted); }
.tape-row .pts { text-align: right; font-weight: 700; color: var(--yellow); }
.pctcell { display: flex; align-items: center; gap: 10px; }
.pctcell .bar { flex: 1; height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.pctcell .bar span { display: block; height: 100%; background: var(--yellow); border-radius: 4px; }
.pctcell .pct { width: 3.2em; text-align: right; font-weight: 700; }
.pctcell .pct small { font-weight: 400; color: var(--muted); }
.chart-box { position: relative; background: var(--bg-2); border: 1px solid var(--line); padding: 12px 12px 4px; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--dim); font: 11px var(--mono); }
.chart .avg { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit.on { fill: rgba(255,255,255,.05); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend i.line { height: 2px; width: 14px; background: var(--ink); vertical-align: 3px; }
.tip { position: absolute; z-index: 5; width: 230px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line-2); font-size: 12px; pointer-events: none; }
td.total { color: var(--yellow); font-weight: 700; }
td.zero { color: var(--dim); }
td.dim, span.dim { color: var(--dim); }
tr.small td { color: var(--dim); }
.sbar { position: relative; min-width: 140px; }
.sbar span { display: block; height: 8px; background: var(--s1); border-radius: 4px; }
.sbar i { position: absolute; top: 50%; width: 2px; height: 16px; margin-top: -8px; background: var(--ink); }

/* defenses page */
.ctl.inline { flex-direction: row; align-items: center; gap: 10px; margin-top: 8px; }
.topcard { margin-top: 26px; background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--rust); padding: 14px 16px; max-width: 560px; }
.topcard .label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin: 0; }
.topcard h2 { margin: 4px 0 8px; }
.top5 { list-style: none; margin: 0; padding: 0; }
.top5 li { display: grid; grid-template-columns: 2em 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.top5 .rk { color: var(--dim); }
.top5 .nm small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.top5 .v { font: 400 28px/1 var(--display); color: var(--yellow); }
#dtab th button { all: unset; cursor: pointer; }
#dtab th[aria-sort="descending"], #dtab th[aria-sort="ascending"] { color: var(--yellow); }
#dtab th .arrow { font-size: 9px; margin-left: 3px; }
#dtab .bk { color: var(--muted); }
tr.focus td { background: rgba(242,183,5,.10) !important; }
table.grid td.cell { background: rgba(184, 66, 31, calc(var(--a) * .95)); color: var(--ink); }
table.grid td, table.grid th { padding: 6px 7px; font-size: 12px; }
p.loading { color: var(--muted); }

@media (max-width: 720px) {
  .hsearch { order: 3; flex: 1 1 100%; }
  .bigsearch .field { flex-wrap: wrap; }
  .bigsearch input { flex: 1 1 100%; font-size: 16px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tape-head { display: none; }
  .tape-row { grid-template-columns: 1fr auto auto; grid-template-areas: "lbl val pts" "bar bar bar"; row-gap: 6px; }
  .tape-row .lbl { grid-area: lbl; } .tape-row .val { grid-area: val; } .tape-row .pts { grid-area: pts; } .tape-row .pctcell { grid-area: bar; }
  .tip { width: 200px; }
}
.tape-head .r { text-align: right; }
@media (max-width: 720px) {
  .chart-box { overflow-x: auto; }
  .chart { min-width: 620px; }
}

/* compare page */
.pctl { display: flex; align-items: end; gap: 10px; }
a.btn { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--yellow); color: var(--yellow);
  text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; }
a.btn:hover { background: var(--yellow); color: var(--bg); }
.picker { margin: 18px 0 14px; }
.cmp-chips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-chips .chip { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; background: var(--bg-2); border: 1px solid var(--line-2); border-left: 4px solid var(--c); }
.cmp-chips .chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cmp-chips .chip a { color: var(--ink); font-weight: 700; text-decoration: none; }
.cmp-chips .chip a:hover { text-decoration: underline; text-decoration-color: var(--rust); }
.cmp-chips .chip .meta { color: var(--muted); font-size: 12px; }
.cmp-chips .chip button { background: transparent; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px 8px; min-height: 32px; cursor: pointer; }
.cmp-chips .chip button:hover { color: var(--ink); }
.cpick { max-width: 420px; }
.picker .hint { margin: 6px 0 0; }
.notice { margin: 14px 0 0; padding: 10px 14px; background: var(--bg-2); border-left: 3px solid var(--rust); font-size: 13px; }
table.cmp th[scope="row"] { font-weight: 400; text-align: left; white-space: nowrap; }
table.cmp th.pcol { white-space: nowrap; }
table.cmp th.pcol i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 0; }
table.cmp td small { display: block; font-size: 11px; color: var(--muted); }
table.cmp td.lead { color: var(--yellow); font-weight: 700; }
table.cmp td.lead small { color: var(--yellow); opacity: .85; }
table.cmp tr.totrow td, table.cmp tr.totrow th { font-weight: 700; font-size: 15px; }
.chart .pline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .pdot { stroke: var(--bg-2); stroke-width: 2; }
.tip { white-space: pre-line; }
.brk { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 28px; }
.brk-group { background: var(--bg-2); border: 1px solid var(--line); padding: 10px 14px 12px; }
.brk-label { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brk-row { display: grid; grid-template-columns: minmax(90px, 140px) 1fr 4.5em; gap: 10px; align-items: center; padding: 4px 0; font-size: 13px; }
.brk-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brk-bar { height: 10px; background: var(--bg-3); border-radius: 0 5px 5px 0; overflow: hidden; }
.brk-bar span { display: block; height: 100%; border-radius: 0 5px 5px 0; }
.brk-v { text-align: right; font-weight: 700; }
@media (max-width: 720px) {
  .pctl { width: 100%; }
  .brk { grid-template-columns: 1fr; }
  .brk-row { grid-template-columns: 96px 1fr 4em; }
}
/* leaderboard compare picks */
button.cadd { margin-left: 8px; width: 22px; height: 22px; min-height: 0; padding: 0; line-height: 20px; text-align: center;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; cursor: pointer; vertical-align: 1px; }
button.cadd:hover { border-color: var(--ink); color: var(--ink); }
button.cadd[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--bg); font-weight: 700; }
.tray { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--bg-2); border-top: 2px solid var(--yellow); box-shadow: 0 -8px 24px rgba(0,0,0,.45); }
.tray-in { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tray .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.tchip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; background: var(--bg-3); font-size: 13px; }
.tchip button { background: transparent; border: 0; color: var(--muted); font-size: 16px; padding: 2px 6px; cursor: pointer; }
.tnote { color: var(--muted); font-size: 12px; }
.tclear { margin-left: auto; background: transparent; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 12px; }
a.btn.off { opacity: .45; pointer-events: none; }
body:has(.tray:not([hidden])) .site-foot { padding-bottom: 90px; }
@media (max-width: 720px) {
  .site-head nav { order: 2; width: 100%; justify-content: space-between; gap: 0; }
  .site-head nav a { padding: 6px 4px; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
  table.cmp th[scope="row"] { white-space: normal; min-width: 120px; }
}
@media (max-width: 360px) { .site-head nav a { font-size: 10px; letter-spacing: 0; } }
table.cmp th[scope="row"] { background: var(--bg); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13px; }
table.cmp tr.totrow th[scope="row"] { font-size: 15px; }
.table-wrap { position: relative; }   /* keeps sr-only text inside the scroll box */

/* video page */
.vlayout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 24px; align-items: start; margin-top: 26px; }
.vlayout .topcard { margin-top: 0; max-width: none; }
.vlayout .topcard h2 { margin: 0 0 6px; }
.vlayout .topcard:empty { display: none; }
.vcard { margin: 0 0 22px; }
.vframe { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line-2); overflow: hidden; display: block; }
.vframe iframe, .vbtn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vbtn { padding: 0; background: #000; cursor: pointer; }
.vframe img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; background: var(--rust); border-radius: 12px; }
.vplay::after { content: ""; position: absolute; left: 31px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--ink); }
.vbtn:hover .vplay, .vbtn:focus-visible .vplay, a.vframe:hover .vplay { background: var(--yellow); }
.vbtn:hover .vplay::after, a.vframe:hover .vplay::after { border-left-color: var(--bg); }
.vnote { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: rgba(21,20,15,.88); color: var(--ink); font-size: 12px; }
.vtitle { font-size: 22px; margin: 12px 0 4px; }
.vby { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.vby a { color: var(--muted); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 12px; margin: 10px 0 16px; }
.vtile { display: block; color: var(--ink); text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); }
.vtile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.vtile span { display: block; padding: 6px 10px; font-size: 12px; letter-spacing: .06em; }
.vtile:hover { border-color: var(--yellow); }
.top5 .nm a.plink { font-weight: 700; }
@media (max-width: 720px) {
  .vlayout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .vtitle { font-size: 18px; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vframe img, .vtile img { max-width: 100%; height: auto; }
.vframe img { height: 100%; }
@media (max-width: 720px) {
  /* six links: two even rows of three */
  .site-head nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .site-head nav a { text-align: center; padding: 7px 2px; font-size: 11px; }
}

/* matchups page */
.mtabs { margin: 6px 0 10px; }
.ggrid { grid-auto-flow: dense; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; margin-top: 10px; }
.gcard { background: var(--bg-2); border: 1px solid var(--line); padding: 12px 14px; }
.gcard h3 { margin: 0 0 4px; font: 400 22px/1.1 var(--display); text-transform: uppercase; }
.gmeta { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.gtop { list-style: none; margin: 10px 0 6px; padding: 0; }
.gtop li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.gtop li .dim { grid-column: 1; font-size: 11px; }
.gtop li b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 400 22px/1 var(--display); color: var(--yellow); }
.gdef { margin: 0; font-size: 12px; color: var(--muted); }
.pproj { margin: 12px 0 0; padding: 10px 14px; background: var(--bg-2); border-left: 3px solid var(--rust); }
.pproj .big { font: 400 30px/1 var(--display); color: var(--yellow); margin-right: 8px; }
.pproj p { margin: 2px 0; }
@media (max-width: 720px) {
  .site-head nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-head nav a { font-size: 10px; letter-spacing: 0; padding: 7px 1px; }
}
/* matchups game cards: summary shows QBs and defenses, opening shows every starter */
details.gcard > summary { list-style: none; cursor: pointer; }
details.gcard > summary::-webkit-details-marker { display: none; }
details.gcard:hover { border-color: var(--line-2); }
details.gcard[open] { grid-column: 1 / -1; border-color: var(--yellow); }
.gqb { list-style: none; margin: 10px 0 4px; padding: 0; }
.gqb li { display: grid; grid-template-columns: 3.2em 1fr auto; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); }
.gqb .slot, .glist .slot { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.gqb b.qb { font: 400 20px/1 var(--display); color: var(--yellow); margin-left: 6px; }
.gmore { margin: 6px 0 0; font-size: 12px; color: var(--yellow); }
.gmore::after { content: " ▾"; }
details[open] .gmore::after { content: " ▴"; }
.gfull { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 8px 28px; margin-top: 8px; }
.gteam { margin: 0 0 4px; font: 400 18px/1 var(--display); text-transform: uppercase; }
.glist { list-style: none; margin: 0; padding: 0; }
.glist li { display: grid; grid-template-columns: 3.2em 1fr auto; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); }
.glist b { font: 400 20px/1 var(--display); color: var(--yellow); }

/* projection review */
.misses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.miss { background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--rust); padding: 12px 14px; }
.miss header p { margin: 0 0 4px; }
.mname a { font-weight: 700; }
.mnums b { font: 400 22px/1 var(--display); color: var(--yellow); }
.mnums .up, .mnums .down { font: 400 22px/1 var(--display); }
.mnums .up { color: var(--rust); }
.mnums .down { color: var(--muted); }
table.mini { width: 100%; font-size: 12px; margin: 8px 0; border-collapse: collapse; }
table.mini th, table.mini td { padding: 3px 4px; border-bottom: 1px solid var(--line); text-align: left; }
table.mini .num { text-align: right; }
.mfacts { font-size: 12px; color: var(--muted); margin: 6px 0; }
ul.why { margin: 6px 0; padding-left: 18px; font-size: 13px; }
ul.why li { margin: 3px 0; }
.tags span { display: inline-block; font-size: 11px; letter-spacing: .06em; padding: 2px 8px; margin: 2px 4px 0 0; background: var(--bg-3); color: var(--yellow); }
.claude { margin-top: 22px; padding: 12px 16px; background: var(--bg-2); border-left: 3px solid var(--yellow); }
.claude p { max-width: 72ch; }
table.wrap td, table.wrap th { white-space: normal; }
table.wrap td:nth-child(3) { min-width: 280px; }

/* injury tags (avail.js) */
.inj { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--line-2); border-radius: 3px;
  font-size: 11px; line-height: 1.6; letter-spacing: .02em; white-space: nowrap; color: var(--ink); text-transform: none; vertical-align: 1px; }
.inj-why { color: var(--muted); }
.inj-q { border-color: var(--yellow); }
.inj-d, .inj-out { border-color: var(--rust-ink); color: var(--rust-ink); }
.inj-p, .inj-old { border-style: dashed; color: var(--muted); }
.inj-block { display: table; margin: 3px 0 0; }
td.num .inj { margin-left: 0; }
.infor { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--yellow); letter-spacing: .02em; }
.pavail { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 2px; }
.pavail .inj { margin-left: 0; }
table.cmp tr.nowrow td { vertical-align: top; }
table.cmp tr.nowrow small { display: block; }

/* depth chart page */
.dhead h2 { margin: 18px 0 2px; }
.dhead p { margin: 2px 0; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; margin: 12px 0 8px; }
.dcol { background: var(--bg-2); border: 1px solid var(--line); padding: 10px 12px; }
.dcol h3 { margin: 0 0 6px; font: 400 20px/1.1 var(--display); text-transform: uppercase; color: var(--yellow); }
.dlist { list-style: none; margin: 0; padding: 0; }
.dent { display: grid; grid-template-columns: 1.6em 1fr; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.dent:first-child { border-top: 0; }
.drank { color: var(--muted); font-size: 12px; text-align: right; }
.dent.on .dn a.plink { font-weight: 700; }
.dent.gone .dn, .dent.gone .dn a.plink { text-decoration: line-through; text-decoration-color: var(--rust-ink); color: var(--muted); }
.dslot { font-size: 11px; color: var(--yellow); letter-spacing: .06em; margin-left: 4px; }
.dmove { font-size: 11px; margin-left: 6px; color: var(--muted); white-space: nowrap; }
.dmove.up { color: var(--yellow); }
.dmove.down { color: var(--rust-ink); }
.dmove.new { color: var(--ink); border: 1px solid var(--line-2); padding: 0 4px; border-radius: 3px; }
.dcard h3 a { color: var(--ink); text-decoration: none; }
.dcard h3 a:hover { color: var(--yellow); }
.dcard h3 .dim { font: 400 13px/1 var(--mono); text-transform: none; margin-left: 6px; }
.dcard .glist li { grid-template-columns: 3.2em 1fr; }
.dout { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
td.dimcol { color: var(--muted); }
.dlast { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.dusage { margin-top: 26px; }
.dcharts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: 16px; }
.dchart { background: var(--bg-2); border: 1px solid var(--line); padding: 10px 12px; }
.dchart h3 { margin: 0 0 4px; font: 400 18px/1.1 var(--display); text-transform: uppercase; }
.dchart .chart-box { position: relative; border: 0; padding: 0; background: none; }
.tgtrow th small { display: inline; margin-left: 6px; color: var(--muted); font-size: 11px; }
/* Leaderboard: the sticky name column must stay narrow, or on a phone it covers the
   stats that scroll under it. Injury tags wrap inside it instead of widening it. */
#board td.player .inj { white-space: normal; max-width: 100%; }
#board td.player { max-width: 230px; }
@media (max-width: 720px) {
  #board td.player { max-width: 150px; white-space: normal; }
  #board td.player .inj { font-size: 10px; }
}
.inj-short { display: none; }
@media (max-width: 720px) {
  #board .inj-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #board .inj-short { display: inline; }
  #board td.player { max-width: 160px; }
}
/* projected vs actual (Matchups) */
.ctl > .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.resctl { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin: 6px 0 8px; }
.ressum { margin: 6px 0 10px; }
.ressum span { display: inline-block; margin: 0 14px 4px 0; }
td.offby.up { color: var(--yellow); }
td.offby.down { color: var(--rust-ink); }
td .inrange { color: var(--muted); font-size: 11px; margin-left: 4px; }
.glist .act, .gqb .act { font: 400 15px/1 var(--mono); color: var(--ink); margin-left: 6px; }
.glist .act small, .gqb .act small { color: var(--muted); font-size: 11px; margin-left: 2px; }
.gscore { font: 400 20px/1 var(--display); color: var(--yellow); margin-left: 8px; }
td.num.up { color: var(--yellow); }
td.num.down { color: var(--rust-ink); }
