@font-face {
  font-family: "JetBrains Mono";
  src: url(/static/fonts/JetBrainsMono.ttf) format("truetype");
  font-weight: 100 800; font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url(/static/fonts/Saira.ttf) format("truetype");
  font-weight: 100 900; font-stretch: 50% 125%; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url(/static/fonts/Archivo.ttf) format("truetype");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}

:root {
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-in: cubic-bezier(.5, 0, .75, 0);
  --r: 6px; --gutter: 20px;
  --font: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-num: inherit; --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  /* Classic dark (also the fallback before a theme is set) */
  --paper: #11110f; --raised: #1b1a17; --ink: #eeebe3; --ink-2: #a8a59b; --ink-3: #6f6c64;
  --rule: #2b2a26; --accent: #ff6040; --on-ink: #11110f; --warn: #f5b301;
  --c-off: var(--ink); --c-def: var(--accent); --good: var(--ink); --bad: var(--accent);
  color-scheme: dark;
}
/* Classic light: the original paper and ink. */
:root[data-theme="light"] {
  --paper: #f3f0e8; --raised: #ebe7dc; --ink: #141412; --ink-2: #57554f; --ink-3: #8d8a82;
  --rule: #d8d3c6; --accent: #df4a2a; --on-ink: #f3f0e8; --warn: #a86b00;
  color-scheme: light;
}
/* HUD: navy glass, cyan readouts, amber for the defense, a faint grid. */
:root[data-theme="hud"] {
  --paper: #060a10; --raised: #0c1520; --ink: #dcf4ff; --ink-2: #8fb0c2; --ink-3: #587687;
  --rule: #173040; --accent: #2ee6ff; --on-ink: #03121a;
  --c-off: #2ee6ff; --c-def: #ffa51f; --good: #3dffa8; --bad: #ff5470;
  --font-num: "JetBrains Mono", ui-monospace, monospace; --font-display: "Saira", var(--font);
  --r: 3px;
}
/* Neon: black glass, magenta and cyan glow, scanlines. */
:root[data-theme="neon"] {
  --paper: #07060c; --raised: #120f1d; --ink: #f6eeff; --ink-2: #b4a7d8; --ink-3: #75689a;
  --rule: #2a2142; --accent: #ff2bd6; --on-ink: #0b0612;
  --c-off: #22f0ff; --c-def: #ff2bd6; --good: #22f0ff; --bad: #ff4f9a;
  --font-num: "JetBrains Mono", ui-monospace, monospace; --font-display: "Saira", var(--font);
  --r: 4px;
}
/* Volt: graphite and electric lime, hard edges, condensed type. */
:root[data-theme="volt"] {
  --paper: #0e0f11; --raised: #17191c; --ink: #eef2e6; --ink-2: #a5ab9c; --ink-3: #6d7267;
  --rule: #272b2f; --accent: #c6ff3d; --on-ink: #0e0f11;
  --c-off: #c6ff3d; --c-def: #ff7a45; --good: #c6ff3d; --bad: #ff7a45;
  --font-num: "JetBrains Mono", ui-monospace, monospace;
  --r: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--font); font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

/* ---- frame ---------------------------------------------------------------- */
.bar {
  display: flex; align-items: baseline; gap: 20px; padding: 18px var(--gutter);
  max-width: 1040px; width: 100%; margin: 0 auto;
}
.mark {
  font-weight: 900; font-stretch: 62%; font-size: 26px; letter-spacing: .01em; line-height: 1;
  text-decoration: none; text-transform: uppercase;
}
.bar nav { display: flex; gap: 18px; font-size: 14px; }
.bar nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; position: relative; }
.bar nav a.on { color: var(--ink); }
.bar nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--ink); }
.bar .wk { margin-left: auto; font-size: 13px; color: var(--ink-3); }
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 8px var(--gutter) 64px; }
.foot {
  max-width: 1040px; width: 100%; margin: 0 auto; padding: 20px var(--gutter) calc(72px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--rule);
}
.foot a { color: var(--ink-2); }
.foot .ver { margin-left: auto; font-variant-numeric: tabular-nums; }
.demo-flag { margin: 0 auto; max-width: 1040px; padding: 0 var(--gutter); font-size: 13px; color: var(--accent); }

/* ---- type ------------------------------------------------------------------ */
.eyebrow { margin: 20px 0 6px; font-size: 13px; color: var(--ink-2); letter-spacing: .02em; }
.wk-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.wk-arrow {
  width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: var(--r);
  color: var(--ink); font-size: 18px; line-height: 1; display: inline-grid; place-items: center;
}
.wk-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.wk-arrow:disabled { opacity: .35; cursor: default; }
.wk-label { padding: 0 6px; color: var(--ink); font-weight: 600; }
.display {
  font-weight: 850; font-stretch: 64%; line-height: .92; letter-spacing: -.005em;
  font-size: clamp(56px, 15vw, 112px); margin: 0 0 24px; text-wrap: balance;
}
.lede { color: var(--ink-2); max-width: 46ch; margin: -8px 0 28px; }
h2.sec {
  font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em;
  margin: 48px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink);
}
.muted { color: var(--ink-3); }

/* ---- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: var(--r);
  background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .15s var(--ease), background-color .2s, color .2s, opacity .2s;
  position: relative; overflow: hidden;
}
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { background: var(--raised); color: var(--ink-3); }
.btn.wide { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover:not(:disabled) .arrow { transform: translateX(4px); }
.btn.loading::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%;
  background: var(--accent); animation: sweep 1s var(--ease) infinite;
}
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.link {
  font-size: 15px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: 4px; padding: 10px 0;
  transition: color .2s, text-decoration-color .2s;
}
.link:hover { color: var(--ink); text-decoration-color: var(--ink); }
.ghost {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--r);
  font-size: 15px; font-weight: 600; transition: border-color .2s, background-color .2s;
}
.ghost:hover { border-color: var(--ink); }
.err { color: var(--accent); font-size: 15px; min-height: 22px; margin: 12px 0 0; }

/* ---- start/sit: slots -------------------------------------------------------- */
.board { display: grid; gap: 0; }
.vs {
  justify-self: start; font-size: 13px; color: var(--ink-3); padding: 8px 0 8px 2px; letter-spacing: .04em;
}
@media (min-width: 760px) {
  .board { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
  .board.three { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .board.four { grid-template-columns: 1fr 1fr; gap: 12px; }
  .board.four .vs { display: none; }
  .vs { align-self: center; padding: 0 16px; }
}
.slot {
  position: relative; text-align: left; width: 100%; min-height: 128px; padding: 18px 20px;
  border: 1px solid var(--rule); border-radius: var(--r); background: transparent;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  transition: border-color .2s, background-color .35s var(--ease), color .35s var(--ease), opacity .35s;
}
.slot.empty { min-height: 104px; border-style: dashed; justify-content: center; color: var(--ink-3); }
.slot.empty:hover { border-color: var(--ink-2); color: var(--ink); }
.slot.empty .plus { font-size: 17px; font-weight: 600; }
.slot .meta { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slot .name {
  font-weight: 800; font-stretch: 66%; font-size: clamp(34px, 9vw, 44px); line-height: .95; margin: 0;
}
.slot .foot-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }
.slot .x {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink-3); font-size: 22px; line-height: 40px; text-align: center;
}
.slot .x:hover { color: var(--ink); background: var(--raised); }
.sw { width: 9px; height: 9px; border-radius: 2px; background: var(--c, var(--ink-3)); display: inline-block; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.spark { width: 88px; height: 26px; overflow: visible; }
.spark polyline { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: currentColor; }
.add-third { margin: 4px 0 20px; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

/* ---- result ------------------------------------------------------------------ */
.slot.win { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.slot.win .meta, .slot.win .foot-row { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.slot.lose { opacity: .55; }
.verdict-label { font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.slot.win .verdict-label { color: var(--accent); }
.lean { display: flex; align-items: baseline; gap: 6px; }
.lean b { font-weight: 850; font-stretch: 70%; font-size: 40px; line-height: 1; }
.slot.lose .lean b { font-size: 28px; }
.lean span { font-size: 13px; }
.meter { height: 3px; background: color-mix(in srgb, currentColor 18%, transparent); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .9s var(--ease); }
.slot.lose .meter i { background: currentColor; }

.stamp { animation: stamp .5s var(--ease) both; }
@keyframes stamp { from { opacity: 0; transform: translateY(6px); letter-spacing: .4em; } to { opacity: 1; transform: none; } }

.tape { width: 100%; max-width: 760px; border-collapse: collapse; margin-top: 12px; font-size: 15px; }
.tape th, .tape td { padding: 13px 0; border-bottom: 1px solid var(--rule); text-align: right; font-weight: 400; }
.tape th:first-child, .tape td:first-child { text-align: left; color: var(--ink-2); font-size: 14px; }
.tape thead th { font-size: 13px; color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--ink); padding-top: 0; }
.tape td.best { font-weight: 700; }
.tape td.best::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.tape tr { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 350ms); }
.tape .bars { display: inline-flex; gap: 3px; align-items: end; height: 26px; }
.tape .bars i { width: 7px; background: var(--ink-3); border-radius: 1px; transform-origin: bottom; animation: grow .6s var(--ease) both; animation-delay: calc(var(--j) * 40ms + 500ms); }
.tape td.best .bars i { background: var(--ink); }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 16px; max-width: 60ch; }
.fine a { color: var(--ink-2); }

/* ---- lists ------------------------------------------------------------------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--rule); }
.rows button, .rows a.row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; text-align: left; text-decoration: none; font-size: 16px;
}
.rows .r-main { font-weight: 600; }
.rows .r-side { color: var(--ink-3); font-size: 13px; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.rows .r-side .arrow { transition: transform .25s var(--ease), color .2s; }
.rows button:hover .arrow, .rows a.row:hover .arrow { transform: translateX(4px); color: var(--ink); }
@media (min-width: 760px) {
  .home-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
}

/* ---- search sheet ------------------------------------------------------------ */
.scrim {
  position: fixed; inset: 0; background: rgb(0 0 0 / .32); z-index: 20;
  opacity: 0; transition: opacity .25s var(--ease);
}
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 88dvh; height: 88dvh;
  background: var(--paper); border-radius: 14px 14px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .38s var(--ease);
  box-shadow: 0 -1px 0 var(--rule);
}
.sheet.open { transform: none; }
@media (min-width: 760px) {
  .sheet { left: 50%; top: 10vh; bottom: auto; width: 560px; height: auto; max-height: 72vh; border-radius: 10px;
    transform: translate(-50%, 12px); opacity: 0; transition: transform .28s var(--ease), opacity .2s; box-shadow: 0 24px 60px rgb(0 0 0 / .18); }
  .sheet.open { transform: translate(-50%, 0); opacity: 1; }
}
.sheet-head { padding: 12px var(--gutter) 0; }
.grab { width: 36px; height: 4px; border-radius: 2px; background: var(--rule); margin: 0 auto 12px; }
@media (min-width: 760px) { .grab { display: none; } .sheet-head { padding-top: 18px; } }
.sheet input {
  width: 100%; font: inherit; font-size: 20px; font-weight: 500; color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--ink); padding: 10px 0; outline: none; border-radius: 0;
}
.sheet input::placeholder { color: var(--ink-3); }
.filters { display: flex; gap: 18px; padding: 12px 0 4px; font-size: 14px; }
.filters button { color: var(--ink-3); padding: 6px 0; position: relative; }
.filters button.on { color: var(--ink); font-weight: 600; }
.filters button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); }
.list { overflow-y: auto; padding: 4px var(--gutter) 24px; overscroll-behavior: contain; flex: 1; }
.opt {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
  padding: 12px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: var(--r); border-bottom: 1px solid var(--rule);
}
.opt:hover, .opt.hl { background: var(--raised); }
.opt b { font-weight: 600; display: block; }
.opt small { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.opt .p { font-size: 14px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.empty-note { color: var(--ink-3); padding: 20px 0; font-size: 15px; }

/* ---- draft ------------------------------------------------------------------- */
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); padding: 3px; gap: 2px; }
.seg button { min-width: 52px; height: 40px; border-radius: 4px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg button.on { background: var(--ink); color: var(--on-ink); }
.field { margin: 0 0 24px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 460px; }
.slots button {
  aspect-ratio: 1; border: 1px solid var(--rule); border-radius: var(--r); font-weight: 700; font-stretch: 75%; font-size: 18px;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.slots button:hover { border-color: var(--ink); }
.slots button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); transform: scale(1.04); }

.clock {
  position: sticky; top: 0; z-index: 5; background: var(--paper); margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) 0;
}
.clock-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.clock-row b { font-weight: 800; font-stretch: 70%; font-size: 22px; }
.progress { height: 2px; background: var(--rule); margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .35s var(--ease); }
.room { display: grid; gap: 8px; }
@media (min-width: 860px) { .room { grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; } .room aside { position: sticky; top: 72px; } }
.onclock { font-weight: 850; font-stretch: 64%; font-size: clamp(44px, 11vw, 72px); line-height: .95; margin: 28px 0 8px; }
.onclock.wait { color: var(--ink-3); }
.picks { list-style: none; padding: 0; margin: 16px 0 0; }
.pick {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 4px 14px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 50ms);
}
.pick .n { font-weight: 800; font-stretch: 70%; font-size: 22px; color: var(--ink-3); }
.pick .who b { font-weight: 700; font-size: 17px; }
.pick .who small { display: block; font-size: 13px; color: var(--ink-2); }
.pick .meter { grid-column: 2 / 3; }
.pick.best .n { color: var(--accent); }
.pick .go { min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--rule); font-weight: 600; font-size: 14px; transition: all .2s; }
.pick .go:hover { border-color: var(--ink); }
.pick.best .go { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pick.taking { animation: take .45s var(--ease-in) forwards; }
@keyframes take { to { opacity: 0; transform: translateX(24px); } }
.draft-tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 16px 0 0; }
.search-inline { position: relative; flex: 1; min-width: 220px; }
.search-inline input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0;
  border-bottom: 1px solid var(--rule); padding: 10px 0; outline: none; border-radius: 0;
}
.search-inline input:focus { border-bottom-color: var(--ink); }
.search-inline .list { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); z-index: 4; padding: 0; max-height: 320px; box-shadow: 0 16px 40px rgb(0 0 0 / .12); border-radius: 0 0 var(--r) var(--r); }
.search-inline .opt { margin: 0; width: 100%; padding: 12px; }

.lineup { list-style: none; padding: 0; margin: 12px 0 0; }
.lineup li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.lineup .pos { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.lineup .nm { font-weight: 600; }
.lineup .nm.none { color: var(--ink-3); font-weight: 400; }
.lineup .rd { font-size: 12px; color: var(--ink-3); }
.lineup li.fresh .nm { animation: land .6s var(--ease) both; }
@keyframes land { from { opacity: 0; transform: translateY(-6px); background: var(--accent); } }
.ticker { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.ticker li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.ticker li span:first-child { color: var(--ink-3); }
.ticker li.new { animation: tick .35s var(--ease) both; }
@keyframes tick { from { opacity: 0; transform: translateY(-10px); } }

.bignum { font-weight: 850; font-stretch: 66%; font-size: clamp(64px, 18vw, 120px); line-height: .9; margin: 8px 0 18px; }

/* ---- prose ------------------------------------------------------------------- */
.prose { max-width: 62ch; }
.prose h2 { font-size: 18px; margin: 36px 0 8px; }
.prose p { color: var(--ink-2); }

/* ---- motion ------------------------------------------------------------------ */
.fade-in { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
.btn.loading:disabled { background: var(--ink); color: var(--on-ink); }

/* ---- weekly lineup ----------------------------------------------------------- */
.week { margin-top: 32px; }
.week .eyebrow { margin-top: 0; }
.week-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.display.sm { font-size: clamp(40px, 10vw, 64px); margin: 0 0 12px; }
:root .week .display.sm { font-size: clamp(30px, 7vw, 44px); margin: 0 0 8px; }
.proj-total { margin: 0 0 10px; text-align: right; }
.proj-total b { display: block; font-weight: 850; font-stretch: 70%; font-size: 30px; line-height: 1; }
.proj-total span { font-size: 12px; color: var(--ink-3); }
.wk-lede { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
/* Starters on the left; bench and IR stacked on the right. One column on phones. */
.roster { display: grid; gap: 20px; }
@media (min-width: 860px) { .roster { grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; } }
.rside { display: grid; gap: 20px; }
.rg-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0;
  padding: 0 0 6px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.rg-head small { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.irs .rg-head { border-bottom-color: var(--bad); color: var(--bad); }
.lw { list-style: none; padding: 0; margin: 0; }
.lw-row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: start;
  padding: 7px 0; border-bottom: 1px solid var(--rule); line-height: 1.3;
  animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.lw-row .pos {
  font-size: 11px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; text-align: center;
  border: 1px solid var(--rule); border-radius: var(--r); padding: 2px 0; margin-top: 1px;
}
.lw-row .who { min-width: 0; }
.lw-row .l1 { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.lw-row .l1 b { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-row .who b.none { color: var(--ink-3); font-weight: 500; }
.lw-row .l2, .lw-row .note { display: flex; align-items: center; gap: 0 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.lw-row .note { color: var(--ink-3); }
.lw-row .note .up { color: var(--good); }
.lw-row .mates { display: block; font-size: 12px; color: var(--ink-3); }
.lw-row .mates.down { color: var(--bad); }
.lw-row .mates.up { color: var(--good); }
.lw-row .pts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lw-row .pts b { font-weight: 800; font-stretch: 75%; font-size: 18px; line-height: 1.1; font-family: var(--font-num); }
.lw-row.call { position: relative; }
.lw-row.call::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent);
  transform-origin: top; animation: grow .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms + 350ms);
}
.callnote { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; }
.callnote .arrow { transition: transform .25s var(--ease); }
.callnote:hover .arrow { transform: translateX(3px); }
.lw-row.bench .l1 b { font-weight: 600; }
.lw-row.bench .pts b { color: var(--ink-3); font-size: 16px; }
.lw-row.ir .pos { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, var(--rule)); }
.lw-row.ir.loose .pos { color: var(--ink-2); border-color: var(--rule); }
.lw-row .tag.out { color: var(--bad); border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; font-size: 10px; line-height: 15px; }
.why-t { font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); padding: 0; background: none; border: 0; cursor: pointer; }
.why-t[aria-expanded="true"]::after { content: " –"; }
.why-l { margin: 4px 0 2px; padding-left: 16px; font-size: 13px; color: var(--ink-2); }
.why-l li { margin: 2px 0; }
.why-l li.good { color: var(--ink); }
.why-l li.good::marker { color: var(--good); }
.why-l li.bad::marker { color: var(--bad); }
.skel { display: grid; gap: 10px; margin-top: 12px; }
.skel i { height: 44px; border-radius: 4px; background: linear-gradient(90deg, var(--raised) 30%, var(--paper) 50%, var(--raised) 70%); background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.planner { margin-top: 40px; }
.plan-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.plan { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 14px; }
.plan th { font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: center; padding: 10px 6px; border-bottom: 1px solid var(--ink); }
.plan td { padding: 10px 6px; border-bottom: 1px solid var(--rule); text-align: center; }
.plan td:first-child { text-align: left; white-space: nowrap; }
.plan td:first-child small { color: var(--ink-3); font-size: 11px; font-weight: 700; }
.plan td:first-child b { font-weight: 600; }
.plan tr { animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.plan td.good { font-weight: 700; }
.plan td.good::before, .fine .dot { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 2px; }
.plan td.tough, .fine .faint { color: var(--ink-3); }
.plan td.bye { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.plan tr.holes td { border-bottom: 0; padding-top: 14px; font-size: 13px; color: var(--ink-2); }
.plan tr.holes td:first-child { font-weight: 600; }

.userform { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; max-width: 560px; }
.userform input {
  flex: 1 1 240px; font: inherit; font-size: 22px; font-weight: 500; color: var(--ink); background: transparent;
  border: 0; border-bottom: 2px solid var(--ink); padding: 10px 0; outline: none; border-radius: 0;
}
.userform input::placeholder { color: var(--ink-3); }
@media (max-width: 559px) { .userform .btn { width: 100%; } }

/* ---- trade check -------------------------------------------------------------- */
.deal { display: grid; gap: 8px; margin-bottom: 20px; }
@media (min-width: 760px) { .deal { grid-template-columns: 1fr 1fr; gap: 48px; } }
.deal .sec { margin-top: 0; }
.deal .side + .side .sec { margin-top: 28px; }
@media (min-width: 760px) { .deal .side + .side .sec { margin-top: 0; } }
.tps { list-style: none; margin: 0; padding: 0; }
.tp {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.tp .who b { display: block; font-weight: 800; font-stretch: 70%; font-size: 26px; line-height: 1.05; }
.tp .who small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.tp .pts { font-weight: 800; font-stretch: 75%; font-size: 20px; text-align: right; line-height: 1; }
.tp .pts small { display: block; font-size: 11px; font-weight: 500; font-stretch: 100%; color: var(--ink-3); margin-top: 3px; }
.deal:not(.result) .tp { padding-right: 44px; }
.tp .x {
  position: absolute; right: -4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  color: var(--ink-3); font-size: 22px; line-height: 40px; text-align: center;
}
.tp .x:hover { color: var(--ink); background: var(--raised); }
.deal .add {
  width: 100%; margin-top: 10px; min-height: 64px; border: 1px dashed var(--rule); border-radius: var(--r);
  font-size: 16px; font-weight: 600; color: var(--ink-3); transition: border-color .2s, color .2s;
}
.deal .add:hover { border-color: var(--ink-2); color: var(--ink); }

.verdict { margin-bottom: 28px; }
.verdict .display { margin-bottom: 14px; }
.verdict .verdict-label { color: var(--accent); margin: 0 0 10px; }
.verdict-lean { max-width: 320px; display: grid; gap: 8px; }
.deal.result { gap: 12px; }
.deal.result .side { border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 20px 18px; transition: background-color .35s var(--ease), color .35s var(--ease), opacity .35s; }
.deal.result .side.win { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.deal.result .side.win .tp { border-bottom-color: color-mix(in srgb, var(--on-ink) 16%, transparent); }
.deal.result .side.win small, .deal.result .side.win .side-foot { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
.deal.result .side.lose { opacity: .6; }
.side-label { margin: 0 0 2px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.side.win .side-label { color: var(--accent); }
.side-foot { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); }
.side-foot b { font-weight: 850; font-stretch: 70%; font-size: 28px; color: var(--ink); margin-right: 4px; }
.side.win .side-foot b { color: var(--on-ink); }
.trade-tape { font-size: 14px; }
.trade-tape td:first-child small { color: var(--ink-3); font-size: 11px; font-weight: 700; }
.trade-tape th { white-space: nowrap; padding-left: 10px; }
.trade-tape td { padding-left: 10px; }
.trade-tape th:first-child, .trade-tape td:first-child { padding-left: 0; }
.trade-tape tr.grp td { padding: 20px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--ink-3); }
@media (max-width: 480px) { .bar nav { gap: 14px; } .bar { gap: 16px; } }

/* ---- hover notes ------------------------------------------------------------- */
.tip { text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; cursor: help; border-radius: 2px; }
.tip:hover { text-decoration-color: var(--ink); }
.tipbox {
  position: absolute; z-index: 50; padding: 10px 12px; border-radius: var(--r);
  background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1.45;
  box-shadow: 0 6px 24px rgb(0 0 0 / .18); pointer-events: none;
}
.tipbox b { display: block; font-size: 13px; margin-bottom: 2px; }
.tipbox .tip-rows { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 6px 0 0; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--on-ink) 25%, transparent); }
.tipbox .tip-rows dt { opacity: .75; }
.tipbox .tip-rows dd { margin: 0; }
.tipbox .tip-extra { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--on-ink) 25%, transparent); }

/* ---- lookback picker and filters ------------------------------------------------ */
.lookback { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 16px; }
.lookback .sec { flex: 1 1 100%; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.seg button { min-height: 36px; min-width: 52px; padding: 0 12px; font-size: 14px; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.seg-note { font-size: 13px; color: var(--ink-3); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 6px; }
.filters select { min-height: 36px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
h3.sub { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 26px 0 0; letter-spacing: .02em; }
.tape thead.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.up { color: var(--good); font-weight: 700; }
.down { color: var(--bad); }

/* ---- similar players vs defense --------------------------------------------------- */
.vsds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; }
.vsd-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 4px; font-size: 14px; color: var(--ink-2); }
.vsd-sum b { font-size: 17px; }
.vsd-t td:nth-child(2) { white-space: normal; }

/* ---- usage tables -------------------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.grid { border-collapse: collapse; width: 100%; font-size: 14px; }
.grid th { font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: right; padding: 8px 8px; white-space: nowrap; border-bottom: 1px solid var(--rule); }
.grid th:first-child, .grid td:first-child { text-align: left; padding-left: 0; }
.grid th.grp { text-align: center; border-bottom: 1px solid var(--ink); }
.grid td { text-align: right; padding: 9px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.grid td.who { font-weight: 600; }
.grid .sort { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.grid .sort.on { color: var(--ink); }
.share-bar { display: inline-block; min-width: 64px; padding: 2px 6px; border-radius: 4px; font-weight: 600;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c-off) 22%, transparent) var(--w), transparent var(--w)); }
.vsd-t th:nth-child(2), .vsd-t td:nth-child(2) { text-align: left; padding-left: 12px; }

/* ---- display menu ------------------------------------------------------------------- */
.disp { position: relative; margin-left: auto; }
.bar .wk { margin-left: 0; }
.disp-btn { width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: var(--r); display: grid; place-items: center; color: var(--ink-2); }
.disp-btn:hover, .disp-btn[aria-expanded="true"] { color: var(--ink); border-color: var(--ink-2); }
.disp-btn svg { width: 18px; height: 18px; }
.disp-menu {
  position: absolute; right: 0; top: 44px; z-index: 40; width: 240px; padding: 10px;
  background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: 0 12px 40px rgb(0 0 0 / .45);
}
.disp-menu p { margin: 2px 6px 8px; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.disp-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border-radius: var(--r); font-size: 14px; text-align: left; }
.disp-menu button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.disp-menu button[aria-checked="true"] { color: var(--accent); font-weight: 700; }
.disp-menu .chip { position: relative; width: 30px; height: 22px; border-radius: 6px; flex: none; background: var(--bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); overflow: hidden; }
.disp-menu .chip i { position: absolute; left: 5px; height: 3px; border-radius: 2px; }
.disp-menu .chip i:first-child { top: 6px; width: 14px; background: var(--ac); box-shadow: 0 0 6px var(--ac); }
.disp-menu .chip i:last-child { top: 13px; width: 20px; background: var(--ink); opacity: .55; }
.disp-menu button[aria-checked="true"] .chip { box-shadow: inset 0 0 0 1px var(--ac), 0 0 0 2px color-mix(in srgb, var(--ac) 45%, transparent); }
.disp-menu small { margin-left: auto; color: var(--ink-3); font-size: 12px; font-weight: 400; }
@media (max-width: 420px) { .bar { gap: 12px; } .bar nav { gap: 12px; font-size: 13px; } .mark { font-size: 22px; } }

/* ---- heatmap cells ---------------------------------------------------------------------- */
.grid td.heat { background: color-mix(in srgb, var(--c-off) var(--h), transparent); font-weight: 600; }
.grid.cells-heat td.heat { color: var(--ink); }

/* ---- futuristic themes: shared ---------------------------------------------------------------- */
:root[data-theme="hud"], :root[data-theme="neon"], :root[data-theme="volt"] {
  & .tape td, & .grid td, & .lean b, & .rl .rv, & .rl .rank, & .vsd-sum b, & .share-bar, & .seg-note,
  & .bar .wk, & .proj, & .tipbox .tip-extra, & .tipbox .tip-rows dd { font-family: var(--font-num); font-stretch: 100%; letter-spacing: -.01em; }
  & h2.sec, & h3.sub, & .eyebrow, & .grid th, & .tape thead th, & .verdict-label, & .seg button, & .radar-key {
    font-family: var(--font-num); text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
  }
  & h2.sec { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, var(--rule)); }
  & .tape, & .grid { font-size: 14px; }
  /* Hover lifts the row without covering heatmap colors: plain cells get a light tint, every
     cell gets a bright edge, so numbers stay as readable as before. */
  & .tape tbody tr:hover td, & .grid tbody tr:hover td:not(.heat) { background: color-mix(in srgb, var(--c-off) 9%, transparent); }
  & .grid tbody tr:hover td { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 70%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  & .grid tbody tr:hover td.heat { filter: brightness(1.12); }
  & .tape td.best::before { background: var(--good); box-shadow: 0 0 8px var(--good); }
  & .tape td.best { color: var(--good); }
  & .seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-ink); }
  & .btn { background: var(--accent); color: var(--on-ink); }
  & .slot { background: color-mix(in srgb, var(--raised) 70%, transparent); }
  & .slot.win { background: color-mix(in srgb, var(--accent) 12%, var(--raised)); color: var(--ink); border-color: var(--accent); }
  & .slot.win .meta, & .slot.win .foot-row { color: var(--ink-2); }
  & .slot.win .lean b { color: var(--accent); }
  & .meter i { background: var(--accent); }
  & .tipbox { background: var(--raised); color: var(--ink); border: 1px solid var(--accent); }
  & .tipbox b { color: var(--accent); }
  & .rl .tip { color: var(--ink); }
}

/* HUD: blueprint grid, corner brackets, glass panels. */
:root[data-theme="hud"] {
  & body {
    background:
      radial-gradient(1200px 600px at 50% -10%, rgb(46 230 255 / .10), transparent 70%),
      linear-gradient(rgb(46 230 255 / .035) 1px, transparent 1px) 0 0 / 32px 32px,
      linear-gradient(90deg, rgb(46 230 255 / .035) 1px, transparent 1px) 0 0 / 32px 32px,
      var(--paper);
  }
  & .display, & .mark, & .slot .name { font-family: var(--font-display); font-stretch: 82%; letter-spacing: -.005em; font-weight: 800; }
  & .display { font-size: clamp(40px, 9vw, 76px); line-height: 1; }
  & .slot .name { font-size: clamp(26px, 6vw, 34px); }
  & .tape, & .grid, & .radar, & .vsd {
    background: color-mix(in srgb, var(--raised) 75%, transparent); border: 1px solid var(--rule);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  }
  & .tape th:first-child, & .tape td:first-child, & .grid th:first-child, & .grid td:first-child { padding-left: 14px; }
  & .tape th:last-child, & .tape td:last-child, & .grid th:last-child, & .grid td:last-child { padding-right: 14px; }
  & .radar, & .vsd { padding: 10px 14px 6px; }
  & h2.sec::before { content: "▸ "; }
  & .slot.win { box-shadow: 0 0 0 1px var(--accent), 0 0 28px rgb(46 230 255 / .18) inset; }
}

/* Neon: scanlines and glow. */
:root[data-theme="neon"] {
  & body::after {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
    background: repeating-linear-gradient(0deg, rgb(255 255 255 / .025) 0 1px, transparent 1px 3px);
  }
  & body { background: radial-gradient(900px 500px at 85% -5%, rgb(255 43 214 / .14), transparent 70%),
    radial-gradient(900px 500px at 0% 110%, rgb(34 240 255 / .10), transparent 70%), var(--paper); }
  & .display, & .mark, & .slot .name { font-family: var(--font-display); font-stretch: 82%; font-weight: 800; letter-spacing: -.005em;
    text-shadow: 0 0 18px rgb(255 43 214 / .55); }
  & .display { font-size: clamp(40px, 9vw, 76px); line-height: 1; }
  & .slot .name { font-size: clamp(26px, 6vw, 34px); }
  & .lean b, & .tape td.best, & .up, & .rl .rv { text-shadow: 0 0 10px currentColor; }
  & .slot.win { box-shadow: 0 0 24px rgb(255 43 214 / .35), 0 0 0 1px var(--accent) inset; }
  & .tape, & .grid { border: 1px solid var(--rule); border-radius: var(--r); background: rgb(18 15 29 / .7); }
  & .tape th:first-child, & .tape td:first-child, & .grid th:first-child, & .grid td:first-child { padding-left: 12px; }
  & .tape th:last-child, & .tape td:last-child, & .grid th:last-child, & .grid td:last-child { padding-right: 12px; }
  & .radar .off { filter: drop-shadow(0 0 6px var(--c-off)); }
  & .radar .def { filter: drop-shadow(0 0 6px var(--c-def)); }
}

/* Volt: hard slabs of lime. */
:root[data-theme="volt"] {
  & .slot.win { background: var(--accent); color: var(--on-ink); border-color: var(--accent); }
  & .slot.win .meta, & .slot.win .foot-row, & .slot.win .lean b, & .slot.win .verdict-label { color: var(--on-ink); }
  & .slot.win .meter { background: rgb(0 0 0 / .2); }
  & .slot.win .meter i { background: var(--on-ink); }
  & h2.sec { color: var(--ink); border-bottom: 3px solid var(--accent); }
  & .tape tbody tr:nth-child(even) td, & .grid tbody tr:nth-child(even) td { background: rgb(255 255 255 / .025); }
  & .tape th:first-child, & .tape td:first-child, & .grid th:first-child, & .grid td:first-child { padding-left: 10px; }
  & .tape th:last-child, & .tape td:last-child, & .grid th:last-child, & .grid td:last-child { padding-right: 10px; }
  & .share-bar { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 38%, transparent) var(--w), color-mix(in srgb, var(--accent) 6%, transparent) var(--w)); }
  & .display { text-transform: uppercase; }
}
.seg-wrap { display: inline-flex; align-items: center; gap: 8px; }
.seg-label { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.unit { font-size: 11px; color: var(--ink-3); margin-left: 3px; font-weight: 400; }
.grid.cells-heat td.heat.hot { color: var(--on-ink); }
.bar nav a { white-space: nowrap; }
@media (max-width: 420px) {
  .bar { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .bar nav { gap: 10px; }
  :root[data-theme="hud"] .mark, :root[data-theme="neon"] .mark { font-size: 17px; letter-spacing: 0; }
  .disp-btn { width: 32px; height: 32px; }
}

/* ---- customizable tables --------------------------------------------------------------- */
.tbl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0 8px; }
.cols-btn { min-height: 36px; font-size: 14px; }
.cols-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 18px; padding: 14px;
  margin-bottom: 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--raised); }
.cols-panel fieldset { border: 0; margin: 0; padding: 0; }
.cols-panel legend { font-size: 12px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.cols-panel label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; }
.cols-panel input { accent-color: var(--accent); }
.cols-actions { grid-column: 1 / -1; display: flex; gap: 18px; justify-content: flex-end; }
/* Change cells: real green, yellow and red in every theme, so up, flat and down read at a glance. */
:root { --chg-up: #2fbf5b; --chg-flat: #e8b512; --chg-down: #e5484d; }
:root[data-theme="light"] { --chg-up: #1f9d48; --chg-flat: #d9a300; --chg-down: #d93036; }
.grid td.heat.chg-up { background: color-mix(in srgb, var(--chg-up) var(--h), transparent); }
.grid td.heat.chg-flat { background: color-mix(in srgb, var(--chg-flat) var(--h), transparent); }
.grid td.heat.chg-down { background: color-mix(in srgb, var(--chg-down) var(--h), transparent); }
.grid td.heat.chg { color: var(--ink); font-weight: 600; }
.grid td.chg-up:not(.heat) { color: var(--chg-up); font-weight: 700; }
.grid td.chg-flat:not(.heat) { color: var(--chg-flat); }
.grid td.chg-down:not(.heat) { color: var(--chg-down); font-weight: 700; }
.grid th[aria-sort] .sort .tip { text-decoration: none; }
/* Out or on IR, by the player's name on the waiver tables and gem cards. */
.inj-tag { display: inline-block; vertical-align: 1px; margin-left: 6px; padding: 0 5px; border-radius: 3px; background: var(--chg-down);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .05em; line-height: 16px; text-transform: uppercase; white-space: nowrap; }

/* ---- hidden gems -------------------------------------------------------------------------- */
.gems { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.gem { border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; background: color-mix(in srgb, var(--raised) 80%, transparent); display: flex; flex-direction: column; gap: 8px; }
.gem header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.gem-rank { font-family: var(--font-num); font-size: 12px; color: var(--accent); margin-right: 6px; }
.gem-name { font-size: 19px; font-weight: 800; }
.gem-meta { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.gem-proj { text-align: right; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.gem-proj b { display: block; font-family: var(--font-num); font-size: 30px; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.gem-odds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.gem-odds span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.gem-odds b { display: block; font-family: var(--font-num); font-size: 17px; color: var(--ink); text-transform: none; }
.gem-odds span:first-child b { color: var(--good); }
.gem h3.sub { margin: 4px 0 0; }
.gem-why { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.gem-why li { margin: 3px 0; }
.gem-why li::marker { color: var(--accent); }
.gems-more { grid-column: 1 / -1; text-align: center; margin: 4px 0 0; }
.hurt-strip { border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 12px 16px; margin-top: 14px;
  background: color-mix(in srgb, var(--raised) 80%, transparent); }
.hurt-strip h3 { margin: 0; font-size: 15px; }
.hurt-strip > p { margin: 4px 0 8px; font-size: 13px; }
.hurt-strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hurt-strip li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; }
.hurt-strip .hurt-why { color: var(--ink-2); font-size: 13px; }
.hurt-strip .hurt-proj { margin-left: auto; font-family: var(--font-num); color: var(--accent); }
@media (max-width: 600px) {
  .hurt-strip .hurt-why { order: 5; flex-basis: 100%; padding-left: 18px; }
}

.gem-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gem-chips + .gem-chips { margin-top: 6px; }
.gem-chips > small { align-self: center; min-width: 3.4em; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.chip-stat { font-size: 11px; color: var(--ink-3); border: 1px solid var(--rule); border-radius: var(--r); padding: 3px 7px; text-transform: uppercase; letter-spacing: .04em; }
.chip-stat b { font-family: var(--font-num); color: var(--ink); margin-left: 5px; text-transform: none; }
.gem-sched { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; font-family: var(--font-num); color: var(--ink-2); }
.gem-sched > .tip { font-family: var(--font); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.gem-sched small { color: var(--ink-3); }
:root[data-theme="hud"] .gem { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.fade-in { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
/* Six sections: on narrow screens the nav row scrolls sideways inside the header. */
.bar nav { min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
.bar nav::-webkit-scrollbar { display: none; }
.disp { flex: none; }
@media (max-width: 520px) { .bar nav { mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 14px; } }

/* ---- lookback picker ---------------------------------------------------------------- */
.lb { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lb input[type=range] { width: 160px; accent-color: var(--accent); }
.lb-step { width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: var(--r); font-size: 18px; line-height: 1; color: var(--ink-2); }
.lb-step:hover:not(:disabled) { border-color: var(--accent); color: var(--ink); }
.lb-step:disabled { opacity: .35; }
.lb-out { min-width: 72px; font-family: var(--font-num); font-weight: 700; color: var(--accent); }
#deep.loading { opacity: .5; transition: opacity .2s; }
.pastpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.pastpick select { min-height: 36px; max-width: 100%; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.check select { min-height: 32px; padding: 0 6px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; }

/* ---- trend chips ---------------------------------------------------------------------- */
.tchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tchip { font-size: 11px; padding: 1px 6px; border-radius: var(--r); border: 1px solid; font-weight: 600; letter-spacing: .02em; }
.tchip.down { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.tchip.up { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.tchip .tip { text-decoration: none; }

/* ---- draft trends ------------------------------------------------------------------------ */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 14px; }
.rule { border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; background: color-mix(in srgb, var(--raised) 80%, transparent); display: flex; flex-direction: column; gap: 8px; }
.rule header { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.rule h3 { margin: 0; font-size: 18px; }
.verdict { font-family: var(--font-num); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--r); border: 1px solid var(--accent); color: var(--accent); }
.verdict.up { border-color: var(--good); color: var(--good); }
.verdict.down { border-color: var(--bad); color: var(--bad); }
.verdict.muted { border-color: var(--rule); color: var(--ink-3); }
.rule-nums { display: grid; grid-template-columns: 1fr 1.6fr .8fr .7fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rule-nums b { display: block; font-family: var(--font-num); font-size: 20px; }
.rule-nums span { font-size: 11px; color: var(--ink-3); line-height: 1.3; display: block; }
.rule-why { margin: 0; font-size: 14px; color: var(--ink-2); }
.rule details summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.mini-t { width: 100%; font-size: 13px; border-collapse: collapse; margin: 8px 0; font-family: var(--font-num); }
.mini-t td { padding: 3px 0; border-bottom: 1px solid var(--rule); }
.mini-t td:last-child { text-align: right; }
.minis { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { font-size: 13px; border: 1px solid var(--rule); border-radius: var(--r); padding: 3px 8px; }
.mini small { color: var(--ink-3); font-family: var(--font-num); }
:root[data-theme="hud"] .rule { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }

/* ---- lineup reasons --------------------------------------------------------------------- */
.rules-read { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.fine.warn { color: var(--accent); }

/* ---- league sync ---------------------------------------------------------------------------- */
.sync { margin-top: 28px; }
.sync-box { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--rule)); border-radius: var(--r); padding: 16px;
  background: color-mix(in srgb, var(--accent) 6%, var(--raised)); display: grid; gap: 10px; }
.sync-box h3 { margin: 0; font-size: 16px; }
.sync-box .fine { margin: 4px 0 0; }
.sync-on { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--raised); }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }

/* ---- similar players: the headline ring ------------------------------------------------- */
.vsd { border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px 6px; margin-top: 12px; background: color-mix(in srgb, var(--raised) 70%, transparent); }
.vsd.good { border-color: color-mix(in srgb, var(--good) 55%, var(--rule)); box-shadow: 0 0 24px color-mix(in srgb, var(--good) 12%, transparent); }
.vsd.bad { border-color: color-mix(in srgb, var(--bad) 55%, var(--rule)); }
.vsd h3.sub { margin-top: 0; }
.vsd-hero { display: flex; gap: 16px; align-items: center; margin: 10px 0 6px; }
.ring { --c: var(--accent); width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), color-mix(in srgb, var(--ink) 10%, transparent) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--paper); }
.ring b { position: relative; font-family: var(--font-num); font-size: 26px; line-height: 1; }
.ring small { font-size: 14px; color: var(--ink-3); }
.ring.good { --c: var(--good); } .ring.bad { --c: var(--bad); }
.vsd-big { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.15; }
.vsd-big.good { color: var(--good); } .vsd-big.bad { color: var(--bad); }
.vsd-verdict { margin: 4px 0 0; font-size: 14px; color: var(--ink); }
.vsd-diff { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.vsd-diff b { font-family: var(--font-num); }

/* ---- at a glance ------------------------------------------------------------------------------ */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.glance-card { border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; background: color-mix(in srgb, var(--raised) 70%, transparent); }
.glance-card.win { border-color: var(--accent); box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 15%, transparent); }
.glance-card > b { font-size: 16px; }
.glance-card ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.glance-card li b { font-family: var(--font-num); color: var(--good); }

/* ---- side by side: make the winning cell pop ---------------------------------------------- */
.tape td.best { background: color-mix(in srgb, var(--good) 10%, transparent); }

/* ---- career game log ------------------------------------------------------------------------- */
#career .seg { margin: 10px 0 4px; flex-wrap: wrap; }
.career-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 12px 0; }
.ctile { border: 1px solid var(--rule); border-radius: var(--r); padding: 8px 10px; background: color-mix(in srgb, var(--raised) 70%, transparent); }
.ctile > .tip, .ctile > span { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.ctile b { display: block; font-family: var(--font-num); font-size: 20px; color: var(--ink); margin-top: 2px; }
.ctile small { display: block; font-size: 11px; color: var(--ink-3); }
.ctile.hi { border-color: var(--accent); }
.ctile.hi b { color: var(--accent); }
#career select { min-height: 36px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; }
.sync-box .err:empty, .sync-box #synclist:empty { display: none; }

.lock { min-height: 36px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r); font-size: 13px; color: var(--ink-2); }
.lock.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.trend { display: block; font-family: var(--font-num); font-size: 12px; margin-top: 2px; }
.trend.up { color: var(--good); } .trend.down { color: var(--bad); } .trend.flat, .trend.none { color: var(--ink-3); }

/* ---- defense report --------------------------------------------------------------------------- */
#defense .seg { flex-wrap: wrap; margin: 10px 0; }
.dhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; margin: 6px 0 10px; }
.dteam { font-size: 20px; font-weight: 800; margin-right: 10px; }
.dscore { display: flex; gap: 12px; font-family: var(--font-num); font-size: 13px; }
.dscore .soft { color: var(--good); } .dscore .tough { color: var(--bad); }
.dnotes { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.dnotes li { font-size: 14px; padding: 8px 12px; border-radius: var(--r); border-left: 3px solid; background: color-mix(in srgb, var(--raised) 80%, transparent); }
.dnotes li.good { border-color: var(--good); } .dnotes li.bad { border-color: var(--bad); }
.dnotes li span { font-family: var(--font-num); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-right: 6px; }
.dnotes li.good span { color: var(--good); } .dnotes li.bad span { color: var(--bad); }
.dtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.dtile { position: relative; border: 1px solid var(--rule); border-radius: var(--r); padding: 9px 10px 12px; background: color-mix(in srgb, var(--raised) 70%, transparent); }
.dtile.soft { border-color: color-mix(in srgb, var(--good) 45%, var(--rule)); }
.dtile.tough { border-color: color-mix(in srgb, var(--bad) 45%, var(--rule)); }
.dtile .dl { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; min-height: 26px; padding-right: 50px; }
.dtile b { font-family: var(--font-num); font-size: 20px; }
.dtile .drank { position: absolute; top: 8px; right: 10px; font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.dtile .drank small { font-size: 10px; color: var(--ink-3); }
.dtile .drank.soft { color: var(--good); } .dtile .drank.tough { color: var(--bad); }
.dtile .dlg { display: block; font-size: 11px; color: var(--ink-3); font-family: var(--font-num); }
.dtile .dbar { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.dtile .dbar i { display: block; height: 100%; border-radius: 2px; background: var(--ink-3); }
.dtile.soft .dbar i { background: var(--good); } .dtile.tough .dbar i { background: var(--bad); }
.dchart { margin: 0 0 8px; }
.dchart figcaption { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.dchart svg { width: 100%; max-width: 640px; height: auto; display: block; }
.dchart rect { fill: color-mix(in srgb, var(--c-off) 55%, transparent); }
.dchart rect.hi { fill: var(--good); }
.dchart .dbarg:hover rect { stroke: var(--ink); stroke-width: 1.5; }
.dchart .dgrid { stroke: var(--rule); }
.dchart .davg { stroke: var(--ink-3); stroke-dasharray: 4 3; }
.dchart .dax { fill: var(--ink-3); font-size: 10px; font-family: var(--font-num); }
.dchart .dval { fill: var(--ink); font-size: 11px; font-family: var(--font-num); }
#gems.loading { opacity: .5; transition: opacity .2s; }
#gf { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }

/* ---- Start/Sit dashboard ------------------------------------------------------------------------ */
.sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.kd { font-family: var(--font-num); font-size: 11px; }
.kd.up { color: var(--good); } .kd.down { color: var(--bad); } .kd.flat { color: var(--ink-3); }
.dash-charts { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 760px) { .dash-charts { grid-template-columns: 1fr; } }
.chart { margin: 0; border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; background: color-mix(in srgb, var(--raised) 80%, transparent); }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.chart-wrap { position: relative; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .cgrid, .srow-chart .cgrid { stroke: var(--rule); stroke-width: 1; }
.chart .cax, .srow-chart .cax { fill: var(--ink-3); font-size: 10px; font-family: var(--font-num); }
.chart .clabel, .srow-chart .clabel { fill: var(--ink-2); font-size: 11px; font-family: var(--font-num); }
.chart .cross, .srow-chart .cross { stroke: var(--ink-3); stroke-width: 1; }
.ctip[hidden] { display: none !important; }
.ctip { position: absolute; top: 4px; width: max-content; max-width: 260px; padding: 8px 10px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--rule); font-size: 12px; pointer-events: none; display: grid; gap: 3px; box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.ubars { display: grid; gap: 12px; }
.ub-row { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: center; }
.ub-l { font-size: 12px; color: var(--ink-2); }
.ub-bars { display: grid; gap: 4px; }
.ub { display: flex; align-items: center; gap: 8px; height: 14px; }
.ub i { display: block; height: 10px; border-radius: 0 4px 4px 0; }
.ub span { font-family: var(--font-num); font-size: 11px; color: var(--ink-2); }

/* ---- account links in the header ------------------------------------------------------------- */
.acct { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.acct + .disp { margin-left: 0; }
.acct a, .acct button { font-size: 13px; padding: 7px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.acct-in { color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--rule)); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.acct-up { color: var(--on-ink); background: var(--accent); font-weight: 700; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.acct-name { font-size: 13px; color: var(--ink-2); }
.acct-out { color: var(--ink-2); border: 1px solid var(--rule); }
@media (max-width: 520px) { .acct-in { display: none; } .acct a, .acct button { padding: 6px 10px; } .acct-name { display: none; } }

/* ---- landing ----------------------------------------------------------------------------------------- */
body[data-view="landing"] main, body[data-view="auth"] main { max-width: 1160px; position: relative; overflow: hidden; }
.beams { position: absolute; inset: -40px -10% auto; height: 620px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 60% at 50% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 46px, color-mix(in srgb, var(--accent) 7%, transparent) 46px 48px, transparent 48px 120px),
    radial-gradient(1.5px 1.5px at 12% 30%, color-mix(in srgb, var(--ink) 60%, transparent), transparent),
    radial-gradient(1.5px 1.5px at 82% 18%, color-mix(in srgb, var(--ink) 50%, transparent), transparent),
    radial-gradient(1.5px 1.5px at 64% 52%, color-mix(in srgb, var(--ink) 40%, transparent), transparent),
    radial-gradient(1.5px 1.5px at 30% 64%, color-mix(in srgb, var(--ink) 40%, transparent), transparent);
  mask-image: linear-gradient(#000 40%, transparent); }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; font-size: 12px; color: var(--ink-2);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--rule)); background: color-mix(in srgb, var(--accent) 8%, var(--raised)); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.glass { display: block; text-decoration: none; color: var(--ink); border-radius: 18px; padding: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--rule));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--raised)), color-mix(in srgb, var(--raised) 85%, transparent));
  box-shadow: 0 20px 60px rgb(0 0 0 / .45); backdrop-filter: blur(8px); transition: transform .25s var(--ease), border-color .2s; }
.glass:hover { transform: translateY(-4px); border-color: var(--accent); }

/* ---- sign up / sign in ------------------------------------------------------------------------------------ */
.auth { position: relative; display: grid; place-items: center; min-height: 70vh; padding: 40px 0; }
.auth-card { position: relative; z-index: 1; width: min(420px, 100%); display: grid; gap: 12px; }
.auth-card h1 { margin: 4px 0 0; font-family: var(--font-display); font-stretch: 82%; font-size: 36px; }
.auth-card .muted { margin: 0 0 6px; font-size: 14px; }
.auth-card label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.auth-card input { min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 70%, transparent); color: var(--ink); font: inherit; }
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.auth-card .btn { border-radius: 999px; margin-top: 6px; }
.auth-card .switch { margin: 0; font-size: 14px; color: var(--ink-3); text-align: center; }
.auth-card .switch a { color: var(--accent); }
.auth-card .fine { margin: -4px 0 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.auth-card .pill { justify-self: start; }

/* ---- start/sit: side by side ------------------------------------------------------------------- */
.h2h { display: grid; gap: 2px; }
.hh-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.hh-l { font-size: 13px; color: var(--ink-2); }
.hh-bars { display: grid; gap: 5px; }
.hh { display: grid; grid-template-columns: minmax(60px, 1fr) 54px 150px; align-items: center; gap: 10px; min-height: 18px; }
.hh-track { height: 10px; border-radius: 0 5px 5px 0; background: color-mix(in srgb, var(--ink) 5%, transparent); overflow: hidden; }
.hh-track i { display: block; height: 100%; width: 0; background: var(--c); opacity: .55; border-radius: 0 5px 5px 0; animation: grow-x .7s var(--ease) both; }
.hh b { font-family: var(--font-num); font-size: 14px; color: var(--ink-2); text-align: right; font-weight: 600; }
.hh.best .hh-track i { opacity: 1; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.hh.best b { color: var(--ink); font-weight: 800; }
.hh-inj { font-size: 12px; color: var(--ink-3); } .hh-inj.on { color: var(--bad); font-weight: 700; }
.hh-note { margin: 8px 0 0; }
@keyframes grow-x { from { transform: scaleX(0); transform-origin: left; } }
.mtag { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; color: var(--ink-2); white-space: nowrap; }
.mtag.good { color: var(--good); } .mtag.bad { color: var(--bad); }
@media (max-width: 560px) { .hh-row { grid-template-columns: 1fr; gap: 4px; } }
.chart .seg-wrap { margin-bottom: 10px; }
.ub { height: auto; min-height: 14px; display: grid; grid-template-columns: minmax(40px, 1fr) 50px 48px; gap: 8px; }
.ub i { max-width: 100%; }
.ub .kd { white-space: nowrap; }
.dash-charts { grid-template-columns: 1fr; }
.dash-charts #usage .ubars { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 28px; }
.srow-chart .chart-wrap { max-width: 760px; }
.chart line.cavg, .srow-chart line.cavg { stroke-dasharray: 3 4; stroke-width: 1; opacity: .55; }

/* ---- start/sit: every stat as a visual row ------------------------------------------------------- */
.sgroup-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.srow-chart > .legend { margin-bottom: 6px; }
.sgroup h3.sub .muted { font-weight: 400; font-size: 12px; margin-left: 6px; text-transform: none; letter-spacing: 0; }
.srows { display: grid; border-top: 1px solid var(--rule); }
.srow { display: grid; grid-template-columns: 170px 1fr; gap: 4px 14px; padding: 8px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.srow-l { all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.srow-l:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.srow-l .chev { color: var(--ink-3); transition: transform .2s var(--ease); font-size: 11px; }
.srow-l[aria-expanded="true"] .chev { transform: rotate(90deg); color: var(--accent); }
.srow:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.srow-ps { display: grid; gap: 4px; }
.sp { display: grid; grid-template-columns: 10px 56px minmax(60px, 1fr) 44px 64px 62px; gap: 8px; align-items: center; font-size: 12px; }
.sp b { font-family: var(--font-num); font-size: 13px; color: var(--ink-2); text-align: right; }
.sp.best b { color: var(--ink); font-weight: 800; }
.pbar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 6%, transparent); position: relative; overflow: hidden; }
.pbar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--ink-3); opacity: .6; }
.pbar i { display: block; height: 100%; background: var(--c); opacity: .5; border-radius: 4px; }
.sp.best .pbar i { opacity: 1; }
.rk { font-family: var(--font-num); font-size: 11px; color: var(--ink-3); }
.ms { width: 64px; height: 18px; display: block; }
.ms polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ms.none { display: block; }
.srow-chart { grid-column: 1 / -1; padding: 8px 0 4px; }
@media (max-width: 640px) {
  .srow { grid-template-columns: 1fr; }
  .sp { grid-template-columns: 10px 52px minmax(40px, 1fr) 40px 56px; }
  .sp .kd { grid-column: 2 / -1; }
}

/* ---- start/sit: the matchup ---------------------------------------------------------------------- */
.mcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.mcard { border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; background: color-mix(in srgb, var(--raised) 80%, transparent); display: grid; gap: 10px; }
.mcard.good { border-color: color-mix(in srgb, var(--good) 45%, var(--rule)); }
.mcard.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--rule)); }
.mc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mc-head .mtag { margin-left: auto; }
.mc-proj { display: flex; align-items: end; gap: 14px; }
.mc-proj span { display: grid; }
.mc-proj small { font-size: 11px; color: var(--ink-3); }
.mc-proj b { font-family: var(--font-num); font-size: 26px; line-height: 1.1; }
.mc-proj .arrow { color: var(--ink-3); font-size: 20px; padding-bottom: 4px; }
.mc-chg { font-family: var(--font-num); font-weight: 700; font-size: 14px; padding-bottom: 6px; }
.mc-split { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--ink-2); }
.mc-split b { font-family: var(--font-num); }
/* Matchup radar: dashed = his usual game, solid = against this defense; green = what the defense gives him, red = what it takes. */
.mradar, .radar-key { --c-gain: var(--good); --c-loss: var(--bad); }
.mradar { position: relative; margin: 18px 6px 14px; }
.mradar svg { width: 100%; height: auto; display: block; overflow: visible; }
.mr-ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.mr-base { fill: var(--ink); fill-opacity: .08; }
.mr-usual { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linejoin: round; }
.mr-gain { fill: var(--c-gain); fill-opacity: .6; }
.mr-loss { fill: var(--c-loss); fill-opacity: .6; }
.mr-here { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.mr-dot { fill: var(--ink-3); } .mr-dot.him { fill: var(--c-gain); } .mr-dot.def { fill: var(--c-loss); }
.mr-l { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; line-height: 1.15; white-space: nowrap; cursor: help; }
.mr-l.left { transform: translate(-100%, -50%); justify-items: end; }
.mr-l.right { transform: translate(0, -50%); justify-items: start; }
.mr-l span { font-size: 12px; color: var(--ink-2); }
.mr-l.tip { text-decoration: none; }
.mr-l.tip span { text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }
.mr-l b { font-family: var(--font-num); font-size: 15px; color: var(--ink-3); }
.mr-l.him b { color: var(--c-gain); } .mr-l.def b { color: var(--c-loss); }
.radar-key .k { display: inline-block; width: 14px; height: 9px; margin: 0 6px 1px 0; vertical-align: middle; border-radius: 2px; }
.radar-key .k.gain { background: var(--c-gain); margin-left: 10px; }
.radar-key .k.here { height: 0; border-top: 2px solid var(--ink); margin-left: 10px; border-radius: 0; }
.radar-key .k.loss { background: var(--c-loss); margin-left: 10px; }
.radar-key .k.avg { height: 0; border-top: 2px dashed var(--ink-2); border-radius: 0; }
.cdiv { position: relative; height: 8px; background: color-mix(in srgb, var(--ink) 5%, transparent); border-radius: 4px; }
.cdiv::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--ink-3); }
.cdiv i { position: absolute; top: 0; bottom: 0; width: var(--w); border-radius: 4px; }
.cdiv i.pos { left: 50%; background: var(--good); }
.cdiv i.neg { right: 50%; background: var(--bad); }
.comps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
/* Name on top, bar and score below, details under that, so a narrow card never squeezes the name into a sliver. */
.comps li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "sim cn cn" "sim bar cv" "sim cd cd";
  gap: 4px 10px; align-items: center; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.comps .sim { grid-area: sim; align-self: start; margin-top: 1px; font-family: var(--font-num); font-size: 11px; font-weight: 700; text-align: center; padding: 3px 0; border-radius: var(--r);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, transparent) var(--s), color-mix(in srgb, var(--ink) 6%, transparent) var(--s)); }
.comps .cn { grid-area: cn; min-width: 0; } .comps .cn .muted { white-space: nowrap; }
.comps .cdiv { grid-area: bar; }
.comps .cv { grid-area: cv; font-family: var(--font-num); font-size: 12px; text-align: right; white-space: nowrap; }
.comps .cd { grid-area: cd; color: var(--ink-3); font-size: 11px; line-height: 1.4; }
@media (max-width: 520px) { .comps li { grid-template-columns: 40px minmax(0, 1fr) auto; } }

/* ---- lock ------------------------------------------------------------------------------------------ */
.lock { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: border-color .2s, color .2s, box-shadow .2s; }
.lock-ic { width: 15px; height: 15px; flex: none; }
.lock:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, var(--rule)); }
.lock.on { box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent); }
.srow-chart svg { width: 100%; height: auto; display: block; }
#pprchart svg, .srow-chart svg { max-height: 280px; }

/* ---- news ------------------------------------------------------------------------------------------ */
.newsline { margin: 2px 0 8px; font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.tmline { margin: 2px 0 8px; font-size: 12px; color: var(--ink-2); line-height: 1.35; border-left: 2px solid var(--rule); padding-left: 8px; }
.nl-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 6px var(--accent); }
.news { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.news li { display: grid; grid-template-columns: 12px 1fr; gap: 8px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.news li .sdot { margin-top: 6px; }
.news small { display: block; margin-top: 2px; font-size: 12px; }
.news small a { color: var(--ink-2); }
.news-src b { color: var(--bad); }
.nl-more { color: var(--accent); white-space: nowrap; }
.ai-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3);
  border: 1px solid var(--rule); border-radius: 999px; padding: 0 6px; vertical-align: 1px; }
.news details.full summary { cursor: pointer; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.news details.full p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }

/* ---- team rosters (Start/Sit) ------------------------------------------------------------------- */
.rosters { margin-top: 48px; }
.rs-drop > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.rs-drop > summary::-webkit-details-marker { display: none; }
.rs-drop > summary::before { content: "▸"; color: var(--accent); font-size: 14px; width: 12px; }
.rs-drop[open] > summary::before { content: "▾"; }
.rs-drop > summary .muted { font-size: 13px; }
.rs-title { font-size: 17px; font-weight: 700; }
.rs-cards { display: grid; gap: 14px; margin-top: 16px; }
.rs-card { border: 1px solid var(--rule); border-radius: var(--r); background: var(--raised); padding: 16px; min-width: 0; }
.rs-card.win { border-color: var(--accent); }
.rs-card h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rs-card h3 .muted { font-size: 14px; font-weight: 400; display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }
.rs-sum { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; max-width: 90ch; }
.rs-tabs { display: none; }
.rs-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.rs-g { min-width: 0; }
.rs-g h4 { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--rule); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.rs-g h4 .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.rs-g ul { list-style: none; margin: 0; padding: 0; }
.rs-g li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 8px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.rs-g li.me { background: color-mix(in srgb, var(--accent) 10%, transparent); margin: 0 -6px; padding: 7px 6px; border-radius: 4px; }
.rs-g li.me .rs-n { font-weight: 700; }
.rs-d { font-family: var(--font-num); font-size: 11px; color: var(--ink-3); }
.rs-n { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.rs-n small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }
.rs-s { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  border: 1px solid currentColor; border-radius: 999px; padding: 3px 6px; white-space: nowrap; color: var(--ink-2); }
.rs-s.st-questionable, .rs-s.st-doubtful { color: var(--warn, var(--ink)); }
.rs-s.st-out, .rs-s.st-ir, .rs-s.st-gone { color: var(--bad); }
.rs-s.st-back { color: #3ddc84; }
.rs-w { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-num); font-size: 12px;
  color: var(--ink-2); white-space: nowrap; line-height: 1.3; }
@media (max-width: 900px) { .rs-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phone: one group at a time, picked with the QB/RB/WR/TE tabs (his own position first). */
@media (max-width: 600px) {
  .rs-card { padding: 14px 12px; }
  .rs-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
  .rs-tabs button { height: 36px; border: 1px solid var(--rule); border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
  .rs-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }
  .rs-groups { display: block; margin-top: 10px; }
  .rs-g { display: none; }
  .rs-g.on { display: block; }
  .rs-g h4 { display: none; }
  .rs-g li { font-size: 14px; }
}

/* ---- trade breakdown --------------------------------------------------------------------------- */
.tr-summary { font-size: 17px; line-height: 1.5; max-width: 70ch; margin: 12px 0; }
.tr-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.tr-reasons { border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; background: color-mix(in srgb, var(--raised) 70%, transparent); }
.tr-reasons h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.tr-reasons.pro h3 { color: var(--good); } .tr-reasons.con h3 { color: var(--bad); }
.tr-reasons ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.tfs { display: grid; gap: 2px; margin-top: 8px; }
.tf { display: grid; grid-template-columns: 200px minmax(70px, 1fr) 120px minmax(70px, 1fr) 150px; gap: 4px 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13px; animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
.tf-l { color: var(--ink); font-weight: 600; }
.tf-v { font-family: var(--font-num); color: var(--ink-2); } .tf-v.give { text-align: right; }
.tf.give .tf-v.give, .tf.get .tf-v.get { color: var(--ink); font-weight: 700; }
.tf-bar { position: relative; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tf-bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); }
.tf-bar i { position: absolute; top: 0; bottom: 0; width: 46%; border-radius: 4px; }
.tf.get .tf-bar i { left: 50%; background: var(--good); } .tf.give .tf-bar i { right: 50%; background: var(--bad); }
.tf.even .tf-bar i { left: 47%; width: 6%; background: var(--ink-3); }
.tf-tag { font-size: 11px; color: var(--ink-3); text-align: right; }
.tf.get .tf-tag { color: var(--good); } .tf.give .tf-tag { color: var(--bad); }
.tf-t { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-2); }
@media (max-width: 720px) { .tf { grid-template-columns: 1fr 1fr; } .tf-l, .tf-bar, .tf-tag { grid-column: 1 / -1; } .tf-tag { text-align: left; } .tf-v.give { text-align: left; } }
.tr-weeks { margin-top: 16px; }
.tr-weeks svg { width: 100%; height: auto; display: block; }
.tr-weeks .tw-give { fill: var(--ink-3); } .tr-weeks .tw-get { fill: var(--accent); }
.tprofs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.tprof { border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; background: color-mix(in srgb, var(--raised) 70%, transparent); }
.tprof.get { border-color: color-mix(in srgb, var(--accent) 35%, var(--rule)); }
.tprof header { display: grid; gap: 2px; } .tprof header b { font-size: 18px; } .tprof header .side-label { margin: 0; font-size: 11px; }
.tp-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tp-nums span { display: grid; } .tp-nums b { font-family: var(--font-num); font-size: 18px; } .tp-nums small { font-size: 11px; color: var(--ink-3); }
.tp-range, .tp-sched { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.tp-rl { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; width: 44px; }
.tp-track { position: relative; flex: 1; min-width: 100px; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tp-track i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.tp-track em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.tp-rv { font-family: var(--font-num); }
.tp-line { margin: 0; font-size: 13px; color: var(--ink-2); }
.op { font-family: var(--font-num); font-size: 11px; padding: 2px 6px; border-radius: var(--r); border: 1px solid var(--rule); color: var(--ink-2); }
.op.soft { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--rule)); }
.op.tough { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--rule)); }
.op.bye { color: var(--ink-3); border-style: dashed; }

/* ---- under construction ------------------------------------------------------------------------ */
.wip { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid color-mix(in srgb, #ffb020 55%, var(--rule)); background: color-mix(in srgb, #ffb020 10%, var(--raised));
  font-size: 14px; color: var(--ink-2); }
.wip svg { width: 20px; height: 20px; flex: none; color: #ffb020; margin-top: 1px; }
.wip b { color: var(--ink); }

/* ---- beta calls to action ------------------------------------------------------------------------ */
.beta-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 1040px; margin: 8px auto 0; padding: 10px 14px;
  border-radius: var(--r); font-size: 14px; color: var(--ink-2);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--rule)); background: color-mix(in srgb, var(--accent) 8%, var(--raised)); }
.beta-bar[hidden] { display: none; }
.beta-bar b { color: var(--ink); }
.beta-bar span:nth-child(2) { flex: 1; min-width: 200px; }
.beta-go { padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--on-ink); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.beta-x { color: var(--ink-3); font-size: 18px; line-height: 1; padding: 2px 6px; }
@media (max-width: 1080px) { .beta-bar { margin: 8px var(--gutter) 0; } }
.beta-nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 20px 0 0; padding: 14px 16px;
  border-radius: var(--r); border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--rule)); background: color-mix(in srgb, var(--accent) 6%, transparent); font-size: 14px; }
.beta-nudge > div { flex: 1; min-width: 240px; }
.beta-nudge .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ---- draft capital explorer -------------------------------------------------------------------- */
.cap-head { font-size: 15px; color: var(--ink-2); max-width: 75ch; } .cap-head b { color: var(--accent); font-size: 20px; font-family: var(--font-num); }
.cap-curves { display: grid; gap: 6px; margin: 12px 0; }
.cap-row { display: grid; grid-template-columns: 150px 1fr 110px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--r);
  border: 1px solid var(--rule); text-align: left; background: color-mix(in srgb, var(--raised) 60%, transparent); cursor: pointer; }
.cap-row.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--raised)); }
.cap-l { display: grid; font-weight: 600; } .cap-l small { color: var(--ink-3); font-weight: 400; font-size: 11px; }
.cap-years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 48px; align-items: end; }
.cap-y { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.cap-y i { display: block; width: 70%; max-width: 46px; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 65%, transparent); }
.cap-row.on .cap-y i { background: var(--accent); }
.cap-y small { font-size: 10px; color: var(--ink-3); }
.cap-ever { display: grid; text-align: right; } .cap-ever b { font-family: var(--font-num); font-size: 18px; } .cap-ever small { font-size: 11px; color: var(--ink-3); }
.cap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 32px; }
@media (max-width: 560px) { .cap-row { grid-template-columns: 1fr 90px; } .cap-years { grid-column: 1 / -1; grid-row: 2; } }
.tr-weeks svg { max-height: 220px; }

/* ---- gem kinds ---------------------------------------------------------------------------------- */
.gem-kind { display: grid; gap: 2px; margin: -2px 0 8px; padding: 6px 10px; border-radius: var(--r); font-size: 12px; color: var(--ink-2);
  border-left: 3px solid var(--ink-3); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.gem-kind b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.gem-kind.start { border-color: var(--good); } .gem-kind.start b { color: var(--good); }
.gem-kind.stash { border-color: #b48cff; } .gem-kind.stash b { color: #b48cff; }
.gem.stash { border-style: dashed; }
.gem-snaps { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--ink-2); padding: 2px 0 6px; }
.gem-snaps > .tip { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.gem-snaps .nums { font-family: var(--font-num); }
.gem-snaps b { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.gem-score { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 10px;
  padding: 10px 0 8px; border-top: 1px solid var(--rule); }
.gem-score-n { display: grid; justify-items: center; font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.gem-score-n b { font-family: var(--font-num); font-size: 28px; line-height: 1; color: var(--ink); text-transform: none; }
.gem-score-n b small { font-size: 13px; color: var(--ink-3); }
.gem-score-txt { display: grid; gap: 2px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.gem-score-txt b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.gem-score-txt small { font-size: 11px; }
.gem-score-bar { position: absolute; left: 0; top: -1px; height: 2px; width: calc(var(--s) * 10%); background: var(--ink-3); }
.gem-score.hi .gem-score-n b, .gem-score.hi .gem-score-txt b { color: var(--good); } .gem-score.hi .gem-score-bar { background: var(--good); }
.gem-score.lo .gem-score-n b { color: var(--ink-3); }
.gem-ahead { margin: 4px 0 8px; padding: 8px 10px; border-left: 2px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.gem-ahead p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; }
.gem-ahead p > .tip { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.gem-ahead p > b { font-family: var(--font-num); font-size: 18px; line-height: 1; color: var(--ink); }
.gem-ahead > small { display: block; font-size: 11px; margin-top: 2px; }
.gem-ahead ul { margin: 4px 0 0; padding-left: 18px; }
.gem-ahead li { margin: 1px 0; }
.gem-ahead.high { border-left-color: var(--good); } .gem-ahead.high p > b { color: var(--good); }
.gem-ahead.low p > b { color: var(--ink-3); }
.gem-proj small { display: block; font-size: 11px; font-family: var(--font-num); }


/* ---- sticky table headers ------------------------------------------------------------------------
   Tables live in a box that scrolls sideways, which stops a header from sticking to the page. So a
   tall table scrolls inside its own box (up to most of the screen) with the column names pinned to
   the top, and the player column pinned to the left for sideways scrolling on phones. */
.tbl-wrap { max-height: min(80vh, 920px); overflow: auto; }
/* Each header cell sticks (sticking the whole thead misbehaves with collapsed borders); with a
   group row above the column names, the second row sits right under it. */
.tbl-wrap table thead th { position: sticky; top: 0; z-index: 3; background: color-mix(in srgb, var(--raised) 94%, var(--ink));
  box-shadow: inset 0 -1px 0 var(--rule); }
.tbl-wrap table thead tr:first-child:not(:last-child) th { height: 34px; box-sizing: border-box; }
.tbl-wrap table thead tr + tr th { top: 34px; }
.tbl-wrap table thead tr:last-child th { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 55%, var(--rule)); }
.tbl-wrap .grid td.who { position: sticky; left: 0; z-index: 2; background: var(--raised); }
.tbl-wrap .grid thead th:first-child { left: 0; z-index: 4; }
.tbl-wrap .grid td.who { box-shadow: inset -1px 0 0 var(--rule); }
.tbl-wrap .grid tbody tr:hover td.who { background: color-mix(in srgb, var(--c-off) 9%, var(--raised)); }
/* Themes tint hovered cells with a see-through color; the pinned name cell has to stay solid or the scrolled cells show through. */
:root .tbl-wrap .grid tbody tr:hover td.who:not(.heat) { background: color-mix(in srgb, var(--c-off) 9%, var(--raised)); }
@media (max-width: 560px) {
  .tbl-wrap .grid td.who { max-width: 132px; white-space: normal; font-size: 13px; line-height: 1.25; }
  .tbl-wrap .grid td.who .muted { display: block; font-size: 11px; }
}
/* Segmented switches wrap instead of pushing the page wider on phones. */
.seg-wrap { max-width: 100%; flex-wrap: wrap; }
.seg-wrap .seg { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 560px) {
  /* No bleed into the side gutter on phones: the pinned player column sits flush with the box's
     left edge, so nothing scrolls by in a strip beside it. */
  .tbl-wrap { margin-left: 0; padding-left: 0; }
}

/* ---- landing ------------------------------------------------------------------------------------
   Few words, one moving picture: a radar sweeping for this week's close call over a grid floor that
   scrolls toward the viewer. Every color comes from the theme, so Neon and Volt get their own glow. */
.g-k { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-num); }
.lx-hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; min-height: min(620px, 78vh); padding: 32px 0 24px; }
.lx-floor { position: absolute; inset: 0 -20% -6% -20%; pointer-events: none; z-index: 0; overflow: hidden;
  mask-image: linear-gradient(transparent 35%, #000 75%, transparent); }
.lx-floor::before { content: ""; position: absolute; left: -50%; right: -50%; bottom: 0; height: 60%; transform-origin: 50% 100%;
  transform: perspective(420px) rotateX(62deg);
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 38%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, transparent) 1px, transparent 1px) 0 0 / 56px 56px;
  animation: lx-floor 2.4s linear infinite; }
.lx-floor::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(45% 50% at 72% 42%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
  linear-gradient(transparent 0, color-mix(in srgb, var(--accent) 10%, transparent) 50%, transparent 52%) 0 0 / 100% 300%;
  animation: lx-scanline 6s linear infinite; }
@keyframes lx-floor { to { background-position: 0 56px, 0 56px; } }
@keyframes lx-scanline { from { background-position: 0 0, 0 100%; } to { background-position: 0 0, 0 -200%; } }
.lx-copy, .lx-play { position: relative; z-index: 1; }
.lx-copy { display: grid; gap: 22px; justify-items: start; }
.lx-h { margin: 0; font-family: var(--font-display); font-stretch: 82%; font-weight: 800; font-size: clamp(60px, 9vw, 112px); line-height: .92; letter-spacing: -.01em; }
.lx-h em { font-style: normal; color: var(--accent); text-shadow: 0 0 32px color-mix(in srgb, var(--accent) 55%, transparent); }
.lx-h [data-decode] { white-space: nowrap; }
.lx-sub { margin: 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 32ch; }
.lx-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.lx-ctas .btn { background: var(--accent); color: var(--on-ink); box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent); }
.lx-ghost { color: var(--ink-2); font-size: 15px; text-underline-offset: 4px; }
.lx-ghost:hover { color: var(--accent); }

/* the play: a top-down field drawn like a tracking feed, tipped back in perspective */
.lx-play { display: block; width: min(100%, 560px); justify-self: center; text-decoration: none; color: var(--ink); padding-bottom: 84px; }
.lx-tilt { perspective: 900px; }
.lx-field { display: block; width: 100%; height: auto; transform: rotateX(32deg) rotateZ(-4deg); transform-origin: 50% 70%; border-radius: 10px; overflow: visible;
  filter: drop-shadow(0 30px 50px color-mix(in srgb, var(--accent) 22%, transparent)); transition: transform .5s var(--ease); }
.lx-play:hover .lx-field { transform: rotateX(26deg) rotateZ(-3deg); }
.lx-turf { fill: color-mix(in srgb, var(--accent) 6%, var(--paper)); stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1.5; }
.lx-ez { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.lx-ezt { fill: color-mix(in srgb, var(--accent) 70%, transparent); font: 700 12px var(--font-display); letter-spacing: .3em; text-anchor: middle;
  writing-mode: vertical-rl; dominant-baseline: middle; }
.lx-yd { stroke: color-mix(in srgb, var(--accent) 26%, transparent); stroke-width: 1; }
.lx-num text { fill: color-mix(in srgb, var(--accent) 38%, transparent); font-size: 14px; font-weight: 700; font-family: var(--font-num); text-anchor: middle; }
.lx-los { stroke: var(--ink-2); stroke-width: 2; opacity: .6; }
.lx-1st { stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 4px var(--accent)); }
.lx-route { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 4px var(--accent)); animation: lx-route 5s linear infinite; }
@keyframes lx-route { 0%, 8% { stroke-dashoffset: 1; opacity: 1; } 62%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.lx-throw { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .35; }
.lx-o circle { fill: var(--accent); stroke: var(--paper); stroke-width: 2; filter: drop-shadow(0 0 6px var(--accent)); }
.lx-o text { fill: var(--ink); font-size: 11px; font-weight: 700; font-family: var(--font-num); }
.lx-o .lx-mph { fill: var(--accent); font-weight: 400; font-size: 10px; }
.lx-star circle { fill: var(--ink); }
.lx-qb circle { fill: var(--ink-2); filter: none; }
.lx-x path { stroke: var(--c-def, var(--ink-2)); stroke-width: 2.5; stroke-linecap: round; }
.lx-ball { fill: #c47a3a; stroke: #fff; stroke-width: 1; }
.lx-catch { fill: none; stroke: var(--accent); stroke-width: 2; }
.lx-call { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(82%, 300px); display: grid; gap: 6px; padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--rule)); border-radius: var(--r);
  background: color-mix(in srgb, var(--raised) 82%, transparent); backdrop-filter: blur(6px); transition: border-color .2s, transform .25s var(--ease); }
.lx-play:hover .lx-call { border-color: var(--accent); transform: translateX(-50%) translateY(-3px); }
.lx-who { font-size: 15px; line-height: 1.25; }
.lx-meter { height: 3px; background: var(--rule); overflow: hidden; border-radius: 2px; }
.lx-meter i { display: block; height: 100%; width: 40%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: lx-meter 1.8s var(--ease) infinite; }
@keyframes lx-meter { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
/* Two fixed lines, and the dots get a fixed slot, so nothing in the card reflows while they tick. */
.lx-read { display: grid; gap: 2px; font-size: 12px; line-height: 18px; font-family: var(--font-num); color: var(--ink-3); }
.lx-read > span { white-space: nowrap; min-height: 18px; }
.lx-tap { color: var(--accent); }
.lx-dots { display: inline-block; width: 3ch; text-align: left; }
.lx-dots::after { content: ""; animation: lx-dots 1.2s steps(4) infinite; }
@keyframes lx-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* numbers */
.lx-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 40px; border-block: 1px solid var(--rule); }
.lx-stats div { display: grid; gap: 2px; padding: 22px 16px; text-align: center; }
.lx-stats div + div { border-left: 1px solid var(--rule); }
.lx-stats b { font-weight: 700; font-size: clamp(30px, 4.4vw, 48px); line-height: 1; font-family: var(--font-num); color: var(--accent); text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.lx-stats span { font-size: 13px; color: var(--ink-3); }

/* three doors */
.lx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.lx-tile { display: grid; gap: 4px; padding: 18px; text-decoration: none; color: var(--ink); border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--rule));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--raised)), color-mix(in srgb, var(--raised) 70%, transparent));
  transition: transform .25s var(--ease), border-color .2s, box-shadow .2s; }
.lx-tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 16%, transparent); }
.lx-tile h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; }
.lx-go { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--accent); }
.lx-viz { height: 92px; margin-bottom: 12px; border-radius: 10px; padding: 14px; background: color-mix(in srgb, var(--paper) 65%, transparent); border: 1px solid var(--rule); }
.lx-viz.lx-vs { display: grid; align-content: center; gap: 12px; }
.lx-viz.lx-vs i { display: block; height: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  animation: lx-vs 3.2s var(--ease) infinite alternate; }
.lx-viz.lx-vs i + i { background: linear-gradient(90deg, var(--ink-3), transparent); animation-delay: -1.6s; }
@keyframes lx-vs { from { width: var(--a); } to { width: var(--b); } }
.lx-viz.lx-bars { display: flex; align-items: end; gap: 8px; }
.lx-viz.lx-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--ink-3) 70%, transparent); transform-origin: bottom;
  animation: lx-grow 2.8s var(--ease) infinite alternate; }
.lx-viz.lx-bars i:nth-child(2n) { animation-delay: -.7s; }
.lx-viz.lx-bars i.lx-hot { background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 25%, transparent)); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent); }
@keyframes lx-grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.lx-viz.lx-line svg { width: 100%; height: 100%; overflow: visible; }
.lx-viz.lx-line polyline { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px var(--accent));
  stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: lx-draw 3.6s var(--ease) infinite; }
@keyframes lx-draw { 0% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }

.lx-beta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin: 0 0 48px; padding: 20px 24px;
  border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--rule)); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.lx-beta p { margin: 0; font-size: 17px; color: var(--ink-2); }
.lx-beta .pulse { display: inline-block; margin-right: 8px; vertical-align: middle; }
.lx-beta b { color: var(--ink); }

@media (max-width: 860px) {
  .lx-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; gap: 28px; }
  .lx-copy { justify-items: center; text-align: center; }
  .lx-sub { margin-inline: auto; }
  .lx-ctas { justify-content: center; }
  .lx-call { text-align: center; }
  .lx-tile { text-align: center; }
  .lx-beta { justify-content: center; text-align: center; }
  .lx-play { padding-bottom: 0; }
  .lx-call, .lx-play:hover .lx-call { position: relative; left: auto; transform: none; width: 100%; margin-top: -8px; }
  .lx-stats { grid-template-columns: repeat(2, 1fr); }
  .lx-stats div:nth-child(3) { border-left: 0; }
  .lx-stats div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .lx-tiles { grid-template-columns: 1fr; }
  .lx-viz { height: 72px; }
  .lx-beta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-floor::before, .lx-floor::after, .lx-route, .lx-meter i, .lx-viz i, .lx-viz polyline, .lx-dots::after { animation: none !important; }
  .lx-route { stroke-dashoffset: 0; }
  .lx-viz polyline { stroke-dashoffset: 0; }
}

/* ---- header: league sync and the settings menu ------------------------------------------ */
.lsync, .lsync + .acct, .acct + .disp { align-self: center; }
.lsync { position: relative; margin-left: auto; flex: none; }
.lsync + .acct { margin-left: 0; }
/* A quiet text link, sized like the nav, so it sits in the header instead of competing with it. */
.lsync-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 4px; font-size: 13px; line-height: 1;
  color: var(--ink-2); white-space: nowrap; border-radius: var(--r);
}
.lsync-btn:hover, .lsync-btn[aria-expanded="true"] { color: var(--ink); }
.lsync-btn svg { width: 13px; height: 13px; flex: none; }
.lsync-btn.on { color: var(--ink); }
.lsync-btn.on svg { display: none; }
.lsync-btn .sync-dot { width: 7px; height: 7px; flex: none; }
.lsync-label { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.lsync-menu {
  position: absolute; right: 0; top: 36px; z-index: 40; width: min(280px, calc(100vw - 32px)); padding: 12px;
  background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 12px 40px rgb(0 0 0 / .45);
}
.lsync-menu h3 { margin: 0 0 4px; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.lsync-menu .fine { margin: 0 0 10px; font-size: 12px; }
.lsync-menu form { display: flex; gap: 6px; }
.lsync-menu input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 6px 8px; border-radius: var(--r);
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.lsync-menu .btn { padding: 6px 12px; font-size: 13px; }
.lsync-menu ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.lsync-menu li button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 6px; border-radius: var(--r);
  font-size: 13px; text-align: left; }
.lsync-menu li button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lsync-menu li small { color: var(--ink-3); white-space: nowrap; }
.lsync-menu .err { margin: 8px 0 0; font-size: 12px; }
.lsync-menu .err:empty { display: none; }
.lsync-menu .lsync-acts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 10px; }
.lsync-menu .lsync-acts a, .lsync-menu .lsync-acts .link { font-size: 12px; padding: 0; white-space: nowrap; }
.lsync-menu .lsync-acts a { color: var(--accent); }
.lsync-menu .lsync-acts .link { color: var(--ink-2); }

/* Settings button: the icon and the format on one line, inside the box. */
.disp-btn { width: auto; min-width: 32px; height: 32px; padding: 0 8px; gap: 5px; display: inline-flex; align-items: center;
  justify-content: center; flex-direction: row; white-space: nowrap; line-height: 1; }
.disp-btn svg { width: 15px; height: 15px; flex: none; }
.disp-fmt { font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 1; color: var(--accent); }

/* Settings menu: compact, two small dropdowns. */
.disp-menu { width: 208px; padding: 6px; top: 38px; }
.disp-menu > p { margin: 2px 4px 6px; font-size: 10px; }
.disp-menu button { gap: 8px; padding: 5px 6px; font-size: 13px; }
.disp-menu .dd + .dd { margin-top: 4px; }
.disp-menu .dd-head { border: 1px solid var(--rule); padding: 5px 8px; }
.disp-menu .dd-head > span { color: var(--ink-3); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.disp-menu .dd-head b { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.disp-menu .dd-head svg { width: 8px; height: 8px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--ink-3);
  transition: transform .2s var(--ease); }
.disp-menu .dd.open .dd-head { border-color: var(--ink-2); }
.disp-menu .dd.open .dd-head svg { transform: rotate(180deg); }
.disp-menu .dd-list { padding: 2px 0; }
.disp-menu .chip { width: 22px; height: 15px; border-radius: 4px; }
.disp-menu .chip i { left: 4px; height: 2px; }
.disp-menu .chip i:first-child { top: 4px; width: 9px; }
.disp-menu .chip i:last-child { top: 9px; width: 13px; }
.disp-menu .dd-head .chip { width: 18px; height: 12px; }
.disp-menu .dd-head .chip i:first-child { top: 3px; width: 7px; }
.disp-menu .dd-head .chip i:last-child { top: 7px; width: 10px; }
.disp-menu small { font-size: 11px; }
.disp-menu .fmt-ic { width: 22px; height: 15px; border-radius: 4px; flex: none; display: grid; place-items: center; font-weight: 800;
  font-size: 10px; line-height: 1; color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); }
.disp-menu button[aria-checked="true"] .fmt-ic { box-shadow: inset 0 0 0 1px var(--accent); }
.disp-menu button[aria-checked="true"] .chip { box-shadow: inset 0 0 0 1px var(--ac); }

@media (max-width: 760px) {
  .lsync-label { display: none; }
  .lsync-btn { width: 28px; padding: 0; justify-content: center; }
  .lsync-menu { position: fixed; left: 16px; right: 16px; top: 60px; width: auto; }
}
@media (max-width: 520px) { .disp-fmt { display: none; } .disp-btn { padding: 0; width: 32px; } }
.disp-menu .dd-list button { white-space: nowrap; }
.lsync-menu input, .lsync-menu .btn { height: 32px; min-height: 0; box-sizing: border-box; }
.lsync-menu .btn { display: inline-flex; align-items: center; }

/* ---- table filters ---------------------------------------------------------------------------
   The Filter button opens a dropdown: one row per stat (name, then min – max), an "Add a stat"
   picker, and Clear all / Done. It floats over the table instead of living inside it. */
.tbl-tools { position: relative; }
.filt-wrap { position: relative; display: inline-flex; }
.filt-btn .muted:empty { display: none; }
.filt-btn .muted { color: var(--accent); font-weight: 700; }
.filt-caret { font-size: 10px; color: var(--ink-3); margin-left: 2px; transition: transform .2s var(--ease); display: inline-block; }
.filt-btn[aria-expanded="true"] .filt-caret { transform: rotate(180deg); }
.filt-btn[aria-expanded="true"] { border-color: var(--accent); }
.filt-count:not(:empty) { color: var(--accent); font-weight: 600; margin-right: 6px; }
.filt-clear { margin-right: 6px; }
.filt-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 360px; max-width: calc(100vw - 32px);
  padding: 8px 12px 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--raised);
  box-shadow: 0 16px 40px rgb(0 0 0 / .35); animation: rise .18s var(--ease) both; }
.filt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.filt-name { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filt-name small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.filt-row.on .filt-name { color: var(--accent); }
.frange { display: inline-flex; align-items: center; gap: 4px; }
.frange input { width: 58px; height: 30px; padding: 0 7px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--paper); color: var(--ink); font: 13px/1 var(--font-num); text-align: right; }
.frange input::placeholder { color: var(--ink-3); opacity: .8; }
.frange input:not(:placeholder-shown) { border-color: color-mix(in srgb, var(--accent) 60%, var(--rule)); }
.filt-unit { width: 10px; font-size: 12px; color: var(--ink-3); }
.fsel { height: 30px; max-width: 150px; padding: 0 6px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--paper); color: var(--ink); font: 13px var(--font); }
.frange input:focus, .fsel:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.filt-x { width: 24px; height: 24px; border-radius: var(--r); color: var(--ink-3); font-size: 17px; line-height: 1; }
.filt-x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.filt-empty { margin: 4px 0 8px; }
.filt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.filt-add { max-width: none; flex: 0 1 auto; color: var(--ink-2); }
.filt-acts { display: flex; gap: 16px; }
@media (max-width: 560px) {
  /* On phones the dropdown spans the table's width under the toolbar. */
  .filt-wrap { position: static; }
  .filt-pop { left: 0; right: 0; width: auto; max-width: none; }
}
/* Phones zoom into any box under 16px when it's tapped. */
@media (pointer: coarse) {
  .frange input { width: 62px; height: 34px; font-size: 16px; }
  .fsel { height: 34px; font-size: 16px; }
}
.trackline { margin-top: 14px; color: var(--ink-2); }
.verdict-label .toss { margin-left: 6px; padding: 0 5px; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; letter-spacing: .06em; vertical-align: 1px; }

/* ---- suggestion box: a button pinned bottom-right, opening a short form ---------------------------- */
.sugg { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 19;
  display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 10px; }
.sugg-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--raised); border: 1px solid var(--rule); box-shadow: 0 6px 20px rgb(0 0 0 / .25); cursor: pointer; }
.sugg-btn:hover, .sugg.open .sugg-btn { border-color: var(--accent); color: var(--accent); }
.sugg-card { width: min(340px, calc(100vw - 32px)); display: grid; gap: 10px; padding: 16px; border-radius: var(--r);
  background: var(--raised); border: 1px solid var(--rule); box-shadow: 0 16px 40px rgb(0 0 0 / .35); }
.sugg-card[hidden] { display: none; }
.sugg-head { display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.sugg-x { color: var(--ink-3); font-size: 22px; line-height: 1; padding: 2px 6px; background: none; border: 0; cursor: pointer; }
.sugg-x:hover { color: var(--ink); }
.sugg-card .muted { margin: 0; font-size: 14px; }
.sugg-card label { display: grid; gap: 5px; font-size: 13px; color: var(--ink-2); }
.sugg-card input, .sugg-card textarea { min-height: 40px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.sugg-card textarea { min-height: 92px; }
.sugg-card input:focus, .sugg-card textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.sugg-card .btn { border-radius: 999px; min-height: 42px; font-size: 15px; }
.sugg-card .err { margin: 0; min-height: 0; font-size: 14px; }
.sugg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) {
  .sugg-btn { padding: 8px 12px; }
  .sugg.open { left: 16px; }
  .sugg-card { width: 100%; max-height: calc(100dvh - 90px); overflow: auto; }
}
.sugg-list ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.sugg-list li { padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--raised); }
.sugg-list .sugg-body { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.sugg-list li .muted { margin: 0; font-size: 13px; }

/* ---- admin: signups by day and source ------------------------------------------------------- */
.adm .muted a, .sugg-list .muted a { color: var(--accent); }
.adm code { font-family: "JetBrains Mono", monospace; font-size: .92em; overflow-wrap: anywhere; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 20px; }
.adm-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-t th, .adm-t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.adm-t th { color: var(--ink-2); font-weight: 500; font-size: 13px; }
.adm-t .n { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- why the pick (Start/Sit) ------------------------------------------------------------------ */
.why { margin-top: 22px; }
.why-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.why-head .sec { margin: 0; }
.why-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.why-tabs button { font-size: 13px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); }
.why-tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--ink); }
.why-verdict { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin: 14px 0 6px; }
.wv { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r);
  background: color-mix(in srgb, var(--raised) 70%, transparent); min-width: 0; }
.wv.p { border-color: var(--accent); } .wv.o { text-align: right; }
.wv.mid { text-align: center; justify-content: center; border-style: dashed; }
.wv b { font-family: var(--font-num); font-size: 30px; line-height: 1.1; font-weight: 800; }
.wv.p b { color: var(--accent); } .wv.o b { color: var(--ink-2); }
.wv-n { font-weight: 700; font-size: 15px; }
.wv-s { font-size: 12px; color: var(--ink-3); }
.wv-tier { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.why-note { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; max-width: 70ch; }
/* One grid for every row (subgrid), so the bars' centre lines stay aligned whatever the name lengths. */
.wrs { list-style: none; margin: 12px 0 0; padding: 0; display: grid;
  grid-template-columns: minmax(110px, 170px) minmax(120px, 1fr) max-content minmax(0, 1.4fr); column-gap: 14px; }
.wr { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; row-gap: 4px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--rule); }
.wr-key { padding: 0 0 4px; font-size: 12px; color: var(--ink-3); }
.wr-key .h.l { justify-content: flex-start; } .wr-key .h.r { justify-content: flex-end; }
.wr-l { font-weight: 600; font-size: 14px; }
.wr-v { font-family: var(--font-num); font-weight: 700; font-size: 15px; white-space: nowrap; }
.wr-v span { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--ink-2); }
.wr.p .wr-v { color: var(--accent); }
.wr-bar { display: grid; grid-template-columns: 1fr 1fr; height: 10px; position: relative; }
.wr-bar::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--ink-3); }
.wr-bar .h { display: flex; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.wr-bar .l { justify-content: flex-end; border-radius: 3px 0 0 3px; } .wr-bar .r { border-radius: 0 3px 3px 0; }
.wr-bar i { display: block; height: 100%; width: 0; transition: width .8s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.wr-bar i.p { background: var(--accent); border-radius: 3px 0 0 3px; } .wr-bar i.o { background: var(--ink-3); border-radius: 0 3px 3px 0; }
.wr-t { font-size: 13px; color: var(--ink-2); line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.wr-l { min-width: 0; }
.wr-key .wr-bar { height: auto; } .wr-key .wr-bar::after { display: none; } .wr-key .wr-bar .h { background: none; }
.why.still i { transition: none; }
@media (prefers-reduced-motion: reduce) { .why i { transition: none; } }
@media (max-width: 900px) {
  .wrs { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; } .wr { row-gap: 6px; }
  .wr-bar, .wr-t { grid-column: 1 / -1; } .wr-l { grid-row: 1; grid-column: 1; } .wr-v { grid-row: 1; grid-column: 2; }
  .wr-key { grid-template-columns: 1fr; } .wr-key > span:not(.wr-bar) { display: none; }
}
@media (max-width: 760px) {
  .why-verdict { gap: 6px; } .wv { padding: 10px; } .wv b { font-size: 24px; } .wv-s { font-size: 11px; }
}

/* ---- player profile: the sheet from any linked name, and /player/<id> ------------------------------ */
.pname { text-decoration: none; cursor: pointer; }
.pname:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
@media (min-width: 760px) { .prof-sheet { width: min(640px, calc(100vw - 48px)); } }
.prof-sheet .sheet-head { position: relative; padding-bottom: 0; }
.prof-x { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center;
  font-size: 22px; line-height: 1; color: var(--ink-2); border-radius: var(--r); z-index: 1; }
.prof-x:hover { color: var(--ink); background: var(--raised); }
@media (min-width: 760px) { .prof-x { top: 12px; right: 12px; } }
.prof-sheet .list { overflow-x: hidden; }
.prof { min-width: 0; }
.prof section { margin-top: 22px; }
/* Header: a modest headshot beside the name, position and team. */
.prof-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 4px 40px 18px 0; border-bottom: 1px solid var(--rule); }
.prof-pic { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; position: relative; flex: none;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--tc);
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--tc) 40%, var(--raised)), var(--raised) 75%); }
.prof-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
/* Initials stand in only when there's no photo (a failed photo is removed, so they show then). */
.prof-pic img ~ span { display: none; }
.prof-pic span { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--ink); letter-spacing: .02em; }
.prof-id { min-width: 0; }
.prof-id h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; }
.prof-id p { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 14px; color: var(--ink-2); }
.prof-id .nw { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 760px) {
  .prof-pic { width: 84px; height: 84px; } .prof-head { gap: 18px; } .prof-id h2 { font-size: 28px; }
}
.prof-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 20px;
  margin: 0; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.prof-facts div { min-width: 0; }
.prof-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.prof-facts dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.prof-facts dd small { display: block; font-size: 12px; color: var(--ink-3); }
.prof-h { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.prof-bio, .prof-note { margin: 0; font-size: 15px; line-height: 1.55; }
.prof-note b { font-weight: 500; }
.prof-note small { font-size: 12px; }
.prof-path { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prof-path li { display: grid; gap: 2px; padding: 8px 12px; border-left: 3px solid var(--tc); border-radius: var(--r); background: var(--raised); }
.prof-path b { font-size: 14px; font-weight: 600; }
.prof-path span { font-family: var(--font-num); font-size: 13px; color: var(--ink-2); }
.prof-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .prof-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.prof-tiles div { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--r); background: var(--raised); min-width: 0; }
.prof-tiles span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-tiles b { font-family: var(--font-num); font-size: 20px; font-weight: 700; line-height: 1.1; }
.prof-t td.tm { text-align: left; } .prof-t th:nth-child(2) { text-align: left; }
.prof-t .tm .sw { margin-right: 5px; }
.prof-t tfoot td { font-weight: 600; border-bottom: 0; }
.prof-more { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; }

/* Caution: a teammate at his position is back this week. */
.caution { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 16px; padding: 0 5px;
  border: 1px solid currentColor; border-radius: 3px; color: var(--warn, #f5b301); white-space: nowrap; cursor: help; vertical-align: 1px; }
