/* ============================================================
   FANTASY ANALYST · PRIMETIME
   Night broadcast: drenched indigo dark, stadium light, mono data.
   ============================================================ */

:root {
  /* surfaces — indigo night (environmental dark) */
  --bg: #0A0A18;
  --bg2: #0E0E22;
  --surface: #12122A;
  --surface2: #171736;
  --line: #26264D;
  --line2: #34346A;
  /* ink */
  --ink: #F2F2FF;
  --muted: #A8A8D4;
  --faint: #8B8BBE;               /* large/decorative text only */
  /* brand + semantics */
  --violet: #8A6DFF;
  --violet-deep: #4A32B8;
  --signal: #45E0FF;              /* sticky metrics — trust */
  --signal-dim: #45E0FF59;
  --noise: #FFB03B;               /* noisy metrics — discount */
  --noise-dim: #FFB03B4D;
  --start: #3DDC97;
  --sit: #FF7A70;
  --up: #45E0FF;
  --down: #FF7A70;
  --cat1: #1F9469; --cat2: #4B92DE; --cat3: #C68010; --cat4: #DB5E93;
  /* geometry */
  --r: 14px; --r-sm: 9px;
  --maxw: 1180px;
  --navh: 58px; --legh: 30px;    /* sticky chrome: topbar + trust legend */
  --z-nav: 30; --z-tip: 60;
  --mono: "Chivo Mono", ui-monospace, monospace;
  color-scheme: dark;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--violet-deep); color: var(--ink); }
a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface2); padding: 1px 6px; border-radius: 5px; }
strong { font-weight: 700; }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; }
p { max-width: 68ch; }
svg.chart { display: block; width: 100%; height: auto; } svg.chart.totals { max-width: 320px; } svg.chart.range { max-width: 340px; } svg.chart.faab { max-width: 170px; } svg.chart.vel { max-width: 120px; }
svg.chart .ct { font-family: var(--mono); font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
svg.chart .ct-strong { fill: var(--ink); font-weight: 600; }
svg.chart .ct-label { font-family: "Archivo", sans-serif; font-size: 12.5px; }
.chart-empty, .line-missing { color: var(--faint); font-size: 13px; font-style: italic; }

/* display voice — broadcast slab */
.disp {
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 26px; height: var(--navh);
}
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .disp { font-size: 17px; letter-spacing: .01em; }
.brand-variant {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--bg);
  background: var(--signal); padding: 2px 7px; border-radius: 4px; font-weight: 600;
  transform: skewX(-8deg);
}
.top-tabs { display: flex; gap: 2px; margin-left: auto; }
.top-tabs a {
  color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 13px;
  border-radius: 8px; position: relative;
}
.top-tabs a:hover { color: var(--ink); text-decoration: none; background: var(--surface); }
.top-tabs a[aria-current="page"] { color: var(--ink); }
.top-tabs a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px;
  background: var(--signal); border-radius: 2px; box-shadow: 0 0 12px var(--signal);
}
.top-updated { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; }
/* seven tabs + brand need the room back; the stamp still shows in the footer */
@media (max-width: 1180px) { .topbar .top-updated { display: none; } }
@media (max-width: 1024px) {
  .topbar-in { gap: 16px; }
  .top-tabs { gap: 0; }
  .top-tabs a { padding: 8px 8px; font-size: 13.5px; }
  .top-tabs a[aria-current="page"]::after { left: 7px; right: 7px; }
}

/* persistent trust legend — the sticky/noisy system, on every page, always on screen */
.legend-bar {
  position: sticky; top: var(--navh); z-index: calc(var(--z-nav) - 1);
  background: var(--bg2); border-bottom: 1px solid var(--line);
}
.legend-bar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 18px; height: var(--legh);
  font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap;
}
.legend-bar .lg-k { display: inline-flex; align-items: center; gap: 7px; }
.legend-bar .m-ref { margin-left: auto; color: var(--faint); font-size: 10.5px; }
@media (max-width: 560px) {
  .legend-bar-in { gap: 12px; font-size: 10px; padding: 0 14px; }
  .legend-bar .sig-tag { font-size: 9.5px; padding: 2px 6px; }
  .legend-bar .m-ref { display: none; }
}

.bottombar { display: none; }
@media (max-width: 800px) {
  .top-tabs, .topbar .top-updated { display: none; }
  .bottombar {
    display: grid; grid-template-columns: repeat(6, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav);
    background: #0C0C1E; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottombar a {
    display: grid; justify-items: center; gap: 3px; padding: 9px 0 7px;
    color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0;
  }
  .bottombar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottombar a svg { width: 21px; height: 21px; }
  .bottombar a[aria-current="page"] { color: var(--signal); }
  .bottombar a:hover { text-decoration: none; }
  body { padding-bottom: 74px; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
@media (max-width: 520px) { .hide-sm { display: none; } }
main section { margin: 84px 0; }
@media (max-width: 800px) { main section { margin: 56px 0; } }

.sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.sec-head h2 { font-size: 25px; }
.sec-head .sec-q { color: var(--faint); font-size: 14px; font-style: italic; }
.sec-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; max-width: 68ch; }
.sec-rule { height: 3px; width: 64px; border-radius: 2px; margin: 10px 0 14px;
  background: linear-gradient(90deg, var(--signal), var(--violet)); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86vh, 780px); display: grid; align-items: end; overflow: clip;
  border-bottom: 1px solid var(--line); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero.no-gl .hero-canvas { display: none; }
.hero-poster { position: absolute; inset: 0;
  background:
    radial-gradient(120% 60% at 50% 108%, #1B2C5E66 0%, transparent 60%),
    radial-gradient(80% 42% at 50% 100%, #45E0FF14 0%, transparent 55%),
    linear-gradient(180deg, #08081400 30%, #080814 96%),
    linear-gradient(180deg, #0C0C20 0%, #0A0A18 100%);
}
.hero-poster::after { /* poster yard lines for the no-GL fallback */
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: repeating-linear-gradient(180deg, transparent 0 34px, #45E0FF12 34px 35px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
          mask-image: linear-gradient(180deg, transparent, #000 70%);
  transform: perspective(340px) rotateX(48deg) scale(1.6);
  transform-origin: bottom;
}
.hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 130px 20px 66px; }
/* scrim: the beams run straight through the copy column, so sink the light behind it */
.hero-in::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 -20vw -30px -50vw;
  background: radial-gradient(78% 88% at 24% 78%,
    #04040CF2 0%, #04040CE8 38%, #04040CB0 58%, #04040C00 80%);
}
@media (max-width: 800px) {
  .hero-in::before {
    inset: 46px -20vw -30px -20vw;
    background: radial-gradient(120% 74% at 50% 72%,
      #04040CF2 0%, #04040CEC 46%, #04040CBA 66%, #04040C00 86%);
  }
}
.hero-week { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.hero-week .wk { font-size: 15px; letter-spacing: .2em; color: var(--signal); font-family: var(--mono); font-weight: 600; }
.hero h1 { font-size: clamp(52px, 9.5vw, 96px); margin: 2px 0 10px;
  text-shadow: 0 0 44px #45E0FF2E; }
.hero-line { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 44ch; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line2); background: #12122AB8; border-radius: 999px;
  padding: 7px 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hero-chip b { color: var(--ink); font-weight: 600; }
.hero-chip .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--start);
  box-shadow: 0 0 8px var(--start); }

/* ticker */
.ticker { border-bottom: 1px solid var(--line); background: var(--bg2); overflow: hidden;
  display: flex; white-space: nowrap; }
.ticker-row { display: inline-flex; align-items: center; gap: 34px; padding: 9px 34px 9px 0;
  font-family: var(--mono); font-size: 12px; color: var(--muted); flex: none; min-width: 100%; }
.ticker-row b { color: var(--ink); font-weight: 600; }
.ticker-row .t-up { color: var(--up); } .ticker-row .t-down { color: var(--down); }
.ticker-live .ticker-row { animation: tick 46s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- chips & pills ---------- */
.n-chip { font-family: var(--mono); font-size: 10.5px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; vertical-align: 1px; white-space: nowrap; }
.team-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: 12px; font-weight: 600; color: var(--ink); }
.team-chip i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.pos-chip { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line2); padding: 1px 6px; border-radius: 5px; }
.sig-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; padding: 2px 8px;
  border-radius: 999px; white-space: nowrap; }
.sig-signal { color: var(--signal); border: 1px solid var(--signal-dim); background: #45E0FF0D; }
.sig-noise { color: var(--noise); border: 1px dashed var(--noise-dim); background: #FFB03B0D; }
.m-ref { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.m-ref:hover { color: var(--signal); }

.verdict { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 7px; transform: skewX(-8deg); display: inline-block; }
.verdict.start { background: var(--start); color: #04251A; }
.verdict.sit { background: var(--sit); color: #330B08; }
.conf { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.conf i { width: 14px; height: 4px; border-radius: 2px; background: var(--line2); }
.conf[data-level="HIGH"] i, .conf[data-level="MED"] i:nth-child(-n+2), .conf[data-level="LEAN"] i:nth-child(1) { background: var(--signal); }

.pdot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.p-fp { background: var(--start); }
.p-lp { background: linear-gradient(90deg, var(--noise) 50%, #3A3A6E 50%); border: 1px solid var(--noise); }
.p-dnp { background: transparent; border: 2px solid var(--sit); }
.p-none { background: var(--line2); }

.desig { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.desig.q { color: var(--noise); border: 1px solid var(--noise); }
.desig.d { color: #FF9A5A; border: 1px solid #FF9A5A; }
.desig.out { background: var(--sit); color: #330B08; }
.desig.ir { color: var(--faint); border: 1px solid var(--line2); }

.tier { font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; padding: 3px 9px;
  border-radius: 999px; font-weight: 600; }
.tier.league-winner { background: var(--violet); color: #14082E; }
.tier.starter { background: var(--signal); color: #04222E; }
.tier.stash { border: 1px solid var(--signal); color: var(--signal); }
.tier.streamer { border: 1px solid var(--line2); color: var(--muted); }

.flag { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 6px;
  border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.flag.warn { color: var(--noise); border-color: var(--noise-dim); }
.flag.risk { color: var(--sit); border-color: #FF7A7052; }
.flag.good { color: var(--start); border-color: #3DDC9752; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; }
.grid { display: grid; gap: 14px; }
.grid.cols { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid.cols-wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

/* call cards */
.call { display: grid; gap: 10px; }
.call-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.call-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.call-name a { color: var(--ink); }
.call-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.call-reason { color: var(--muted); font-size: 14px; }
.call-range { margin-top: 2px; max-width: 352px; }
.call-range .lbl { display: flex; justify-content: space-between; font-family: var(--mono);
  font-size: 10px; letter-spacing: .1em; color: var(--faint); margin-bottom: -4px; }
.call.stud { grid-column: 1 / -1; border-color: var(--sit);
  background: linear-gradient(180deg, #2A121F44, var(--surface)); position: relative; overflow: clip; }
.call.stud::before { content: "THE HARD CALL"; position: absolute; top: 14px; right: -34px;
  transform: rotate(35deg); background: var(--sit); color: #330B08; font-family: var(--mono);
  font-size: 10px; font-weight: 700; letter-spacing: .12em; padding: 3px 38px; }

/* desktop swaps the card wall for one dense slate; phone keeps the cards */
.calls-desk { display: none; }
@media (min-width: 1024px) {
  .calls-desk { display: grid; gap: 18px; }
  #calls-grid { display: none; }
  .calls-desk .call.stud { max-width: none; }
  .calls-desk .dtable td.why { color: var(--muted); font-size: 13px; min-width: 260px; }
  .calls-desk .dtable td.rng { min-width: 210px; }
  .calls-desk .dtable .sub { color: var(--faint); font-size: 11.5px; display: block; }
  .calls-desk .dtable td.num { white-space: nowrap; }
  .calls-desk .dtable .pname { white-space: nowrap; }
  .calls-desk .dtable .verdict { font-size: 10.5px; padding: 3px 9px; }
}

/* condensed call lines */
.call-line { display: grid; grid-template-columns: 74px 225px 155px 1fr; gap: 14px; align-items: center;
  padding: 10px 20px; border-top: 1px solid var(--line); }
.call-line .cl-name { display: grid; gap: 1px; font-weight: 700; font-size: 14.5px; }
.call-line .cl-range { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.call-line .cl-range b { color: var(--signal); }
.call-line .cl-reason { color: var(--faint); font-size: 12.5px; }
@media (max-width: 900px) {
  .call-line { grid-template-columns: 64px 1fr auto; }
  .call-line .cl-reason { grid-column: 2 / -1; margin-top: -4px; }
}

/* signal vs noise band */
.sig-band { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .sig-band { grid-template-columns: 1fr; } }
.sig-band .card { display: grid; gap: 6px; align-content: start; }
.sig-band .big { font-size: 17px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.sig-band .r-note { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.sig-band .card.noise-card { border-style: dashed; }

/* game environment rows */
.game-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 13px 16px; border-bottom: 1px solid var(--line); }
.game-row:last-child { border-bottom: 0; }
.game-row:hover { background: #16163266; }
.game-teams { display: grid; gap: 5px; }
.game-flags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; align-items: center; }
.game-envs { display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.game-envs b { color: var(--ink); }
@media (max-width: 780px) {
  .game-row { grid-template-columns: 1fr; gap: 10px; }
  .game-flags { justify-content: start; }
}
.env-card { border: 1px solid var(--line); border-radius: var(--r); overflow: clip; background: var(--surface); }

/* movers */
.mover { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mover:last-child { border-bottom: 0; }
.mover .who { display: grid; gap: 1px; }
.mover .who b { font-size: 15px; }
.mover .who span { color: var(--faint); font-size: 12px; }
.delta { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.delta.up { color: var(--up); } .delta.down { color: var(--down); }

/* injury board */
.inj-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); }
.inj-row:last-child { border-bottom: 0; }
.inj-who { display: grid; gap: 2px; }
.inj-who .nm { font-weight: 700; font-size: 15px; }
.inj-who .why { color: var(--muted); font-size: 12.5px; }
.inj-trend { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px;
  color: var(--faint); }
.inj-note { grid-column: 2 / -1; color: var(--faint); font-size: 12.5px; margin-top: -6px; }
.backup-arrow { color: var(--signal); font-size: 12.5px; }

/* injury deep dive — adds the historical played-rate lane beside the practice trend */
.inj-row.deep { grid-template-columns: 76px minmax(0, 1fr) auto 168px; align-items: start; padding: 14px 16px; }
.inj-row.deep .inj-trend { padding-top: 4px; }
.inj-rate { display: grid; gap: 2px; justify-items: end; text-align: right; }
.inj-rate .r-n { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--signal); line-height: 1.2; }
.inj-rate .r-k { color: var(--faint); font-size: 11.5px; line-height: 1.35; }
@media (max-width: 860px) {
  .inj-row.deep { grid-template-columns: 76px minmax(0, 1fr); }
  .inj-row.deep .inj-trend { grid-column: 2 / -1; }
  .inj-rate { grid-column: 2 / -1; justify-items: start; text-align: left;
    display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-top: 2px; }
}

/* practice-pattern evidence rows */
.pat-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 62px; gap: 14px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pat-row:last-child { border-bottom: 0; }
.pat-row .p-l { font-size: 14px; font-weight: 600; }
.pat-row .p-l small { display: block; color: var(--faint); font-weight: 400; font-size: 11.5px; font-family: var(--mono); }
.pat-row .p-v { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--signal); text-align: right; }
@media (max-width: 560px) {
  .pat-row { grid-template-columns: minmax(0, 1fr) 62px; row-gap: 8px; }
  .pat-row .p-bar { grid-column: 1 / -1; }
}

/* accuracy module */
.acc-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; }
@media (max-width: 780px) { .acc-wrap { grid-template-columns: 1fr; } }
.acc-hero { display: grid; gap: 4px; }
.acc-hero .n1 { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.acc-hero .n1 small { font-size: 24px; color: var(--muted); font-weight: 600; }
.acc-hero .sub { color: var(--muted); font-size: 13.5px; }
.acc-list { display: grid; gap: 0; }
.acc-item { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--line);
  font-size: 13.5px; }
.acc-item:last-child { border-bottom: 0; }
.acc-item .ok { color: var(--start); font-weight: 700; }
.acc-item .miss { color: var(--sit); font-weight: 700; }
.acc-item .mono { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-left: auto; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  scrollbar-width: thin; }
table.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.dtable th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line2);
  position: sticky; top: 0; background: var(--surface); white-space: nowrap; }
.dtable td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle;
  font-variant-numeric: tabular-nums; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tbody tr:hover { background: #16163266; }
.dtable .num { font-family: var(--mono); font-size: 12.5px; }
.dtable .pname { font-weight: 700; font-size: 14px; }
.dtable .pname a { color: var(--ink); }

/* ---------- players page ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.filters input[type="search"] { background: var(--surface); border: 1px solid var(--line2); color: var(--ink);
  border-radius: 9px; padding: 9px 14px; font-size: 14px; width: min(300px, 100%); font-family: inherit; }
.filters input::placeholder { color: var(--faint); }
.fbtn { background: var(--surface); border: 1px solid var(--line2); color: var(--muted); border-radius: 999px;
  padding: 7px 15px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.fbtn:hover { color: var(--ink); border-color: var(--signal-dim); }
/* phone is the primary theater and these are the only real controls on it — 44px minimum */
@media (max-width: 800px) { .fbtn { min-height: 44px; padding: 7px 18px; } }
.fbtn[aria-pressed="true"] { background: var(--signal); color: #04222E; border-color: var(--signal); }

.player-hero { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 6px 0 4px; }
.player-hero h1 { font-size: clamp(34px, 6vw, 56px); }
.player-hero .meta { color: var(--muted); font-size: 15px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; display: grid; gap: 3px; align-content: start; }
.stat .lb { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.stat .vl { font-size: 23px; font-weight: 700; letter-spacing: -.01em; }
.stat .vl small { font-size: 13px; color: var(--faint); font-weight: 400; }
.stat.noisy { border-style: dashed; }
.stat.noisy .vl { color: var(--noise); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted);
  margin-top: 10px; }
.legend .key { display: inline-flex; align-items: center; gap: 7px; }
.legend .key i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

.trade-read { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; }
.trade-read .tr-pill { font-family: var(--mono); letter-spacing: .1em; font-size: 12px; padding: 4px 12px;
  border-radius: 7px; transform: skewX(-8deg); }
.tr-pill.buy { background: var(--start); color: #04251A; }
.tr-pill.sell { background: var(--noise); color: #2E1D04; }
.tr-pill.hold { border: 1px solid var(--line2); color: var(--muted); }

/* waivers */
.waiver { display: grid; grid-template-columns: 54px 1fr; gap: 16px; }
.waiver .rank { font-family: var(--mono); font-size: 30px; font-weight: 700; color: var(--faint);
  line-height: 1; padding-top: 3px; }
.waiver-body { display: grid; gap: 8px; }
.waiver-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.waiver-name { font-size: 19px; font-weight: 700; }
.waiver-name a { color: var(--ink); }
.trigger { font-size: 13px; color: var(--muted); }
.trigger b { color: var(--ink); font-weight: 600; }
.evidence { font-family: var(--mono); font-size: 12px; color: var(--signal); }
.waiver-meters { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.waiver-meters .m { display: grid; gap: 3px; }
.waiver-meters .m span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--faint); }

/* methods */
/* clear the sticky topbar + legend bar when jumping to an anchor */
.metric-def, main section[id], main li[id] { scroll-margin-top: calc(var(--navh) + var(--legh) + 16px); }
.metric-def { border-bottom: 1px solid var(--line); padding: 18px 0; }
.metric-def h3 { font-size: 17px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.metric-def .formula { font-family: var(--mono); font-size: 12.5px; color: var(--signal);
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px;
  margin: 8px 0; display: inline-block; }
.metric-def p { color: var(--muted); font-size: 14px; }
.gap-list li, .not-list li { margin: 9px 0; color: var(--muted); }
.gap-list b, .not-list b { color: var(--ink); }

/* missing data */
.missing-block { border: 1px dashed var(--line2); border-radius: var(--r-sm); color: var(--faint);
  font-size: 13.5px; padding: 14px 16px; }

/* ---------- reveals ---------- */
.js:not(.rm) .rv { opacity: 0; transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.js:not(.rm) .rv.in { opacity: 1; transform: none; }

/* ---------- tooltip ---------- */
.tipbox { position: fixed; left: 0; top: 0; z-index: var(--z-tip); pointer-events: none;
  background: #1B1B3EF5; border: 1px solid var(--line2); color: var(--ink); font-family: var(--mono);
  font-size: 12px; line-height: 1.5; padding: 8px 11px; border-radius: 8px; max-width: 300px;
  box-shadow: 0 8px 30px #00000080; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 90px; padding: 34px 0 44px; }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: grid; gap: 18px; }
.foot-note { color: var(--faint); font-size: 12.5px; max-width: 74ch; }
.foot-note code { font-size: 11px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }

.dcd-footer { display: flex; }
.dcd-mark { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px 7px 10px; color: var(--ink); transition: transform .18s ease; }
.dcd-mark:hover { transform: translateY(-1px); text-decoration: none; border-color: var(--line2); }
.dcd-mark-logo { width: 30px; height: 16px; color: var(--ink); }
.dcd-mark-dot { fill: #6D8BFF; }
.dcd-mark-rule { width: 1px; height: 16px; background: var(--line2); }
.dcd-mark-words { display: grid; line-height: 1.15; }
.dcd-mark-name { font-weight: 600; font-size: 13px; }
.dcd-mark-suffix { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }

/* reduced motion: kill everything kinetic */
@media (prefers-reduced-motion: reduce) {
  .ticker-live .ticker-row { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
