/* Fair Catch · The League Trade Desk
   v3: broadcast matchup identity. Condensed display type, banner verdicts, team-linked check.
   OKLCH throughout. */

:root {
  --bg:        oklch(0.108 0.004 268);
  --surface:   oklch(0.158 0.008 268);
  --surface-2: oklch(0.205 0.010 268);
  --surface-3: oklch(0.250 0.012 268);
  --line:      oklch(0.300 0.016 268);
  --line-soft: oklch(0.230 0.012 268);
  --ink:       oklch(0.950 0.004 268);
  --muted:     oklch(0.720 0.016 268);
  --faint:     oklch(0.565 0.014 268);

  --primary:      oklch(0.630 0.155 268);
  --primary-hi:   oklch(0.700 0.150 268);
  --primary-soft: oklch(0.630 0.155 268 / 0.16);
  --primary-line: oklch(0.630 0.155 268 / 0.45);
  --on-primary:   oklch(0.985 0.002 268);

  --gold:      oklch(0.865 0.125 88);
  --gold-hi:   oklch(0.905 0.110 90);
  --gold-soft: oklch(0.865 0.125 88 / 0.14);
  --on-gold:   oklch(0.240 0.055 88);

  --good:      oklch(0.760 0.140 155);
  --good-soft: oklch(0.760 0.140 155 / 0.13);
  --warn:      oklch(0.800 0.130 75);
  --warn-soft: oklch(0.800 0.130 75 / 0.13);
  --bad:       oklch(0.680 0.185 25);
  --bad-deep:  oklch(0.520 0.180 25);
  --bad-soft:  oklch(0.680 0.185 25 / 0.15);

  --side-a: oklch(0.660 0.150 268);
  --side-b: oklch(0.820 0.125 88);

  --r-card: 16px;
  --r-ctl: 11px;

  --z-dropdown: 30;
  --z-sticky: 40;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Archivo", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);

  --elev-1: inset 0 1px 0 oklch(1 0 0 / 0.05), 0 1px 2px oklch(0 0 0 / 0.4), 0 12px 28px oklch(0 0 0 / 0.34);
  --elev-2: inset 0 1px 0 oklch(1 0 0 / 0.07), 0 2px 4px oklch(0 0 0 / 0.45), 0 18px 44px oklch(0 0 0 / 0.5);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(58% 34% at 50% -6%, oklch(0.45 0.13 268 / 0.22), transparent 70%),
    radial-gradient(40% 26% at 88% 4%, oklch(0.60 0.10 88 / 0.05), transparent 70%),
    radial-gradient(70% 40% at 50% 115%, oklch(0.30 0.09 268 / 0.14), transparent 70%);
}
.top, .tabs, main, .foot { position: relative; z-index: 1; }

a { color: var(--primary-hi); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* display type: the broadcast voice */
.dsp { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; }

/* ---------- header ---------- */

.top { padding: 16px 16px 10px; }
.top-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 40px; border-radius: 11px;
  background: linear-gradient(180deg, var(--primary-hi), oklch(0.55 0.16 268));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.25), 0 6px 16px oklch(0.63 0.155 268 / 0.35);
  color: var(--on-primary);
  font-weight: 900; font-size: 14px; letter-spacing: -0.02em;
  flex: none;
  transform: skewX(-6deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: 0.015em; text-transform: uppercase; }
.brand-tag { font-size: 12px; color: var(--muted); }
.fresh { font-size: 12px; color: var(--faint); text-align: right; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.fresh-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); animation: pulse 2.2s infinite; flex: none; }
.fresh-dot.fresh-stale { background: var(--warn); box-shadow: 0 0 8px var(--warn); animation: none; }

/* ---------- tabs ---------- */

.tabs {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; gap: 3px;
  max-width: 1100px; margin: 0 auto;
  padding: 8px 12px;
  background: oklch(0.108 0.004 268 / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tab {
  flex: 1;
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 4px; border-radius: var(--r-ctl);
  font-family: var(--display);
  font-size: 16px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.tab:hover { color: var(--ink); background: var(--surface); }
.tab[aria-selected="true"] {
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  color: var(--ink);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.07), inset 0 -2px 0 var(--primary);
}

/* ---------- layout ---------- */

main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 44px; }
main:focus { outline: none; }

.view { animation: view-in 240ms var(--ease-out); }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

h2 { font-family: var(--display); font-size: clamp(26px, 5vw, 34px); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; margin: 8px 0 4px; text-wrap: balance; }
h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.005em; }
.lede { color: var(--muted); margin: 0 0 18px; max-width: 62ch; }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: var(--r-card);
  padding: 18px;
  box-shadow: var(--elev-1);
}

.note { font-size: 12.5px; color: var(--faint); margin: 10px 2px 0; max-width: 70ch; }

/* ---------- controls ---------- */

.seg {
  display: inline-flex; flex-wrap: wrap; gap: 3px;
  background: var(--surface); border-radius: 13px; padding: 4px;
  box-shadow: inset 0 1px 3px oklch(0 0 0 / 0.35);
  margin: 0 0 14px;
}
.seg button {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 13.5px; text-align: left;
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--primary-hi), oklch(0.56 0.16 268));
  color: var(--on-primary);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.22), 0 3px 10px oklch(0.63 0.155 268 / 0.35);
}
.seg .seg-sub { display: block; font-size: 10.5px; font-weight: 500; opacity: 0.8; }

.mini-seg { margin: 0; box-shadow: none; background: var(--bg); }
.mini-seg button { padding: 6px 11px; font-size: 12.5px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: 0.02em; }
.custom-grid { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 2px 0 14px; }

.input, .select {
  width: 100%;
  background: oklch(0.09 0.003 268);
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  color: var(--ink);
  padding: 11px 13px;
  font-size: 15px;
}
.select { appearance: none; cursor: pointer; font-weight: 600; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--faint); pointer-events: none; font-size: 13px;
}
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  color: var(--ink);
  border-radius: var(--r-ctl);
  padding: 10px 16px; font-weight: 700; font-size: 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.07), 0 2px 6px oklch(0 0 0 / 0.35);
  transition: filter 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary {
  background: linear-gradient(180deg, var(--primary-hi), oklch(0.55 0.16 268));
  color: var(--on-primary);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.22), 0 4px 14px oklch(0.63 0.155 268 / 0.4);
}
.btn-ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--surface); }

/* ---------- home ---------- */

.hero { padding: 26px 4px 6px; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 9vw, 64px);
  font-weight: 700; letter-spacing: 0.005em; line-height: 0.98;
  text-transform: uppercase;
  margin: 0 0 12px; text-wrap: balance;
}
.hero h1 .hl { color: var(--gold); }
.hero p { color: var(--muted); font-size: clamp(15px, 2.4vw, 17px); max-width: 54ch; margin: 0 0 18px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }

.status-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05);
  border-radius: 999px; padding: 6px 13px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip b { color: var(--ink); font-weight: 800; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* rundown: broadcast-style how-it-works */
.rundown { display: flex; flex-direction: column; }
.run-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 4px;
  border-top: 1px solid var(--line-soft);
}
.run-row:last-child { border-bottom: 1px solid var(--line-soft); }
.run-key {
  flex: none; width: 88px;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold);
  transform: skewX(-6deg);
}
.run-body { flex: 1; min-width: 0; }
.run-body h3 { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.run-body p { margin: 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
.run-demo { flex: none; display: none; align-items: center; }
@media (min-width: 760px) { .run-demo { display: flex; min-width: 210px; justify-content: flex-end; } }

.demo-meter { max-width: 260px; width: 100%; }

/* ---------- trade check ---------- */

.matchup-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end;
  margin: 4px 0 14px;
}
.matchup-bar .vs {
  font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em;
  color: var(--faint); padding-bottom: 9px; transform: skewX(-6deg);
}
.team-pick label { display: block; font-size: 11.5px; font-weight: 700; color: var(--faint); margin: 0 2px 5px; letter-spacing: 0.03em; }

.check-grid { display: grid; gap: 14px; }
@media (min-width: 880px) { .check-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.side-card { border-top: 3px solid transparent; }
.side-card.sa { border-top-color: var(--side-a); }
.side-card.sb { border-top-color: var(--side-b); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.side-title {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase;
}
.side-title .t-ava { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); flex: none; }
.side-title .st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-total { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 27px; flex: none; }
.sa .side-total { color: var(--side-a); }
.sb .side-total { color: var(--side-b); }

.pick-wrap { position: relative; margin-bottom: 10px; }
.pick-list {
  position: absolute; inset-inline: 0; top: calc(100% + 5px);
  z-index: var(--z-dropdown);
  background: var(--surface-2);
  border-radius: 13px;
  max-height: 316px; overflow-y: auto;
  box-shadow: var(--elev-2);
}
.pick-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; border: 0; background: transparent; text-align: left;
  padding: 8px 12px; cursor: pointer;
}
.pick-item:hover, .pick-item[aria-selected="true"] { background: var(--primary-soft); }
.pick-item .pi-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pick-item .pi-val { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; font-weight: 700; }

.face {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-3); object-fit: cover; object-position: center top;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.08);
}
.face-fallback {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-3); color: var(--muted);
  font-size: 12px; font-weight: 800;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.08);
}
.face-pick { background: var(--gold-soft); color: var(--gold); font-size: 10px; letter-spacing: 0.02em; text-align: center; line-height: 1.1; }

.pos {
  flex: none; display: inline-grid; place-items: center;
  min-width: 33px; padding: 2px 6px; border-radius: 6px;
  font-size: 10.5px; font-weight: 900; letter-spacing: 0.04em;
}
.pos-QB { background: var(--bad-soft); color: var(--bad); }
.pos-RB { background: var(--good-soft); color: var(--good); }
.pos-WR { background: var(--primary-soft); color: oklch(0.78 0.12 268); }
.pos-TE { background: var(--warn-soft); color: var(--warn); }
.pos-PICK { background: var(--gold-soft); color: var(--gold); }
.pos-K { background: var(--surface-3); color: var(--muted); }
.pos-DEF { background: var(--surface-3); color: var(--muted); }
.pos-FAAB { background: var(--gold-soft); color: var(--gold); }

.asset-rows { display: flex; flex-direction: column; gap: 7px; min-height: 36px; }
.asset {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, oklch(0.135 0.006 268), oklch(0.118 0.005 268));
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.04);
  animation: rise 260ms var(--ease-out) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.asset .a-body { flex: 1; min-width: 0; line-height: 1.25; }
.asset .a-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.asset .a-sub { color: var(--faint); font-size: 11.5px; display: flex; gap: 7px; align-items: center; }
.asset .a-val { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 19px; }
.a-trend { font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 700; }
.trend-up { color: var(--good); }
.trend-dn { color: var(--bad); }
.trend-flat { color: var(--faint); }
.a-x {
  border: 0; background: transparent; color: var(--faint);
  font-size: 17px; line-height: 1; cursor: pointer; padding: 5px 7px; border-radius: 7px;
}
.a-x:hover { color: var(--bad); background: var(--bad-soft); }

.inj {
  flex: none; font-size: 10px; font-weight: 900; letter-spacing: 0.05em;
  padding: 2px 7px; border-radius: 999px;
  background: var(--bad-soft); color: var(--bad);
}

.empty-side { color: var(--faint); font-size: 13.5px; padding: 6px 2px; }

/* roster tray */
.tray { margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.tray-label { font-size: 11.5px; font-weight: 700; color: var(--faint); letter-spacing: 0.03em; margin-bottom: 8px; }
.tray-pos {
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--faint); margin: 10px 0 5px;
}
.tray-pos:first-of-type { margin-top: 4px; }

.faab-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.faab-row .input { width: 84px; padding: 8px 10px; flex: none; }

.grader-line {
  font-family: var(--display); font-size: 13.5px; font-weight: 600; letter-spacing: 0.07em;
  color: var(--gold); margin: -6px 0 12px; transform: skewX(-6deg); transform-origin: left;
}

.mgr-sub {
  display: block;
  font-family: var(--font); font-size: 11px; font-weight: 500;
  color: var(--faint); text-transform: none; letter-spacing: 0; line-height: 1.3;
}

.trade-card.dead { opacity: 0.6; }
.trade-card.dead .t-inner { filter: saturate(0.55); }
.tray-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; cursor: pointer;
  background: var(--surface-3); color: var(--ink);
  border-radius: 999px; padding: 5px 11px 5px 6px;
  font-size: 12.5px; font-weight: 600;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.06);
  transition: background 140ms var(--ease-out);
}
.tchip:hover { background: var(--primary-soft); }
.tchip img, .tchip .face-fallback { width: 22px; height: 22px; font-size: 9px; }
.tchip .tv { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.tchip .plus { color: var(--good); font-weight: 900; }
.tray-more { background: transparent; box-shadow: none; color: var(--faint); }
.tray-more:hover { color: var(--ink); }

/* verdict banner */

.verdict { margin-top: 14px; padding: 0; overflow: hidden; }
.v-banner {
  padding: 16px 20px 15px;
  color: oklch(0.99 0.002 268);
}
.v-banner.win-a { background: linear-gradient(100deg, oklch(0.50 0.17 268), oklch(0.38 0.14 268)); }
.v-banner.win-b { background: linear-gradient(100deg, oklch(0.62 0.13 85), oklch(0.48 0.12 80)); }
.v-banner.even  { background: linear-gradient(100deg, oklch(0.45 0.10 155), oklch(0.33 0.08 160)); }
.v-banner.warn  { background: linear-gradient(100deg, oklch(0.55 0.13 70), oklch(0.42 0.12 55)); }
.v-banner.alarm { background: linear-gradient(100deg, oklch(0.50 0.19 25), oklch(0.35 0.16 20)); }
.v-read {
  font-family: var(--display);
  font-weight: 700; font-style: italic;
  font-size: clamp(24px, 5.4vw, 37px);
  letter-spacing: 0.015em; line-height: 1.02;
  text-transform: uppercase;
  margin: 0; text-wrap: balance;
}
.v-sub { margin: 5px 0 0; font-size: 13.5px; opacity: 0.92; font-variant-numeric: tabular-nums; }
.v-body { padding: 15px 18px 18px; }

.meter-wrap { display: flex; align-items: center; gap: 12px; }
.meter-pct { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 19px; min-width: 46px; }
.meter-pct.pa { color: var(--side-a); }
.meter-pct.pb { color: var(--side-b); text-align: right; }
.meter {
  flex: 1;
  display: flex; height: 20px; border-radius: 999px; overflow: hidden;
  background: oklch(0.09 0.003 268);
  box-shadow: inset 0 2px 5px oklch(0 0 0 / 0.5);
}
.meter-a, .meter-b { transition: width 480ms var(--ease-out); }
.meter-a { background: linear-gradient(180deg, oklch(0.72 0.14 268), oklch(0.60 0.155 268)); }
.meter-b { background: linear-gradient(180deg, var(--gold-hi), oklch(0.78 0.13 86)); }
.meter-gap { width: 3px; background: var(--bg); flex: none; }

.src-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
.src-table th, .src-table td { text-align: right; padding: 8px 4px; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.src-table th:first-child, .src-table td:first-child { text-align: left; }
.src-table thead th { border-top: 0; color: var(--faint); font-weight: 700; font-size: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800;
  padding: 4px 11px; border-radius: 999px;
}
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad  { background: var(--bad-soft);  color: var(--bad); }
.badge-scream { background: var(--bad); color: oklch(0.98 0.005 25); box-shadow: 0 0 16px oklch(0.68 0.185 25 / 0.45); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-mut  { background: var(--surface-2); color: var(--muted); }

/* collusion risk read */
.risk { margin-top: 14px; border-radius: 13px; padding: 14px 16px; background: oklch(0.135 0.006 268); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.04); }
.risk-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.risk-title { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; color: var(--faint); }
.risk-score { font-family: var(--display); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
.risk-low  .risk-score { color: var(--good); }
.risk-mid  .risk-score { color: var(--warn); }
.risk-high .risk-score { color: var(--bad); }
.risk-rows { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.risk-rows li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.risk-rows li b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; flex: none; }

.news-strip {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--warn-soft);
  border-radius: 13px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13.5px;
  box-shadow: inset 0 0 0 1px oklch(0.80 0.13 75 / 0.3);
}
.news-strip strong { color: var(--warn); }
.news-strip .ns-ico { flex: none; font-size: 16px; line-height: 1.3; }

/* suggestions */
.suggest { margin-top: 14px; }
.suggest .s-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- league feed ---------- */

.connect { display: grid; gap: 12px; max-width: 560px; }
.connect-row { display: flex; gap: 8px; }
.connect-row .input { flex: 1; }

.league-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.league-chip .lc-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.league-chip .lc-meta { color: var(--faint); font-size: 12.5px; }

.trade-list { display: grid; gap: 13px; }
@media (min-width: 900px) { .trade-list { grid-template-columns: 1fr 1fr; } }

.trade-card { padding: 0; overflow: hidden; }
.t-inner { padding: 16px 16px 15px; }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.t-when { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
.t-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.t-side { min-width: 0; }
.t-mgr { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase; }
.t-mgr img { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--surface-3); }
.t-mgr .m-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-items { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.t-item { display: flex; align-items: center; gap: 8px; }
.t-item .face, .t-item .face-fallback { width: 26px; height: 26px; font-size: 9px; }
.t-item .ti-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.t-item .ti-v { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; font-weight: 700; }
.t-total { margin-top: 9px; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 21px; }
.t-total .a-team { font-size: 11px; font-family: var(--font); }
.t-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.a-team { color: var(--faint); font-size: 12px; font-weight: 500; }

.live-line { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }

.skeleton { border-radius: var(--r-card); background: var(--surface); min-height: 130px; position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, oklch(1 0 0 / 0.05) 50%, transparent 70%);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.status-line { color: var(--muted); font-size: 13.5px; margin: 8px 0; }
.error-strip {
  background: var(--bad-soft);
  color: var(--ink);
  border-radius: 13px; padding: 12px 14px; font-size: 13.5px;
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  box-shadow: inset 0 0 0 1px oklch(0.68 0.185 25 / 0.35);
}

/* ---------- receipts ---------- */

.pair-list { display: grid; gap: 9px; }
.pair {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: 13px;
  padding: 13px 15px;
  box-shadow: var(--elev-1);
}
.pair .p-names { font-weight: 800; font-size: 14px; min-width: 0; }
.pair .p-net { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; font-size: 18px; }
.pair .p-meta { grid-column: 1 / -1; color: var(--faint); font-size: 12.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pair .p-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: oklch(0.09 0.003 268); overflow: hidden; box-shadow: inset 0 1px 3px oklch(0 0 0 / 0.4); }
.pair .p-bar > span { display: block; height: 100%; background: linear-gradient(90deg, oklch(0.55 0.15 268), var(--primary-hi)); border-radius: 999px; }
.pair.one-way .p-bar > span { background: linear-gradient(90deg, oklch(0.70 0.13 75), var(--warn)); }

button.pair { border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; }
button.pair:hover { filter: brightness(1.1); }
.p-trades { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 7px; margin-top: 8px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.p-trade {
  display: flex; flex-direction: column; gap: 9px;
  background: oklch(0.125 0.005 268);
  border-radius: 11px; padding: 11px 12px;
  font-size: 12.5px;
}
.p-trade .pt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-trade .pt-when { color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 600; }
.p-trade .pt-who { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.p-trade .t-total { font-size: 16px; margin-top: 6px; }
.p-trade .t-item .face, .p-trade .t-item .face-fallback { width: 22px; height: 22px; font-size: 8px; }
.p-trade .meter { height: 10px; }

/* ---------- system ---------- */

.sys { max-width: 74ch; }
.sys section { margin: 0 0 28px; }
.sys p, .sys li { color: var(--muted); }
.sys strong { color: var(--ink); }
.sys .card p:last-child { margin-bottom: 0; }
.rule-quote {
  background: var(--primary-soft);
  border-radius: 13px;
  padding: 14px 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 12px 0;
  box-shadow: inset 0 0 0 1px var(--primary-line);
}
.bands { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bands th, .bands td { padding: 9px 6px; border-top: 1px solid var(--line-soft); text-align: left; }
.bands thead th { border-top: 0; color: var(--faint); font-size: 12px; font-weight: 700; }
.bands td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 800; }

.option-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .option-grid { grid-template-columns: 1fr 1fr; } }
.option-grid .card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.foot {
  max-width: 1100px; margin: 0 auto;
  padding: 20px 16px 32px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint); font-size: 12.5px;
}
.foot p { margin: 0 0 6px; max-width: 78ch; }
.foot-pledge { color: var(--muted); font-weight: 700; }

/* ---------- charts ---------- */

.a-ch {
  border: 0; background: transparent; color: var(--faint);
  font-size: 13px; cursor: pointer; padding: 5px 6px; border-radius: 7px;
}
.a-ch:hover { color: var(--ink); background: var(--surface-2); }
.chart-row {
  background: oklch(0.125 0.005 268);
  border-radius: 11px;
  padding: 10px 12px 8px;
  animation: rise 220ms var(--ease-out) both;
}
.chart-row svg { display: block; width: 100%; height: 74px; }
.chart-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; margin-top: 4px; }

/* ---------- FAAB tuner ---------- */

.fr-ctl { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; white-space: nowrap; }
.fr-ctl b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fr-btn {
  border: 0; background: var(--surface-2); color: var(--ink);
  width: 22px; height: 22px; border-radius: 6px; cursor: pointer;
  font-weight: 800; line-height: 1;
}
.fr-btn:hover { background: var(--surface-3); }

/* ---------- trade finder ---------- */

.finder { margin-top: 14px; display: grid; gap: 10px; }
.find-sug {
  display: flex; align-items: center; gap: 12px;
  background: oklch(0.125 0.005 268);
  border-radius: 11px; padding: 10px 12px;
}
.find-sug .fs-items { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; }
.find-sug .fs-why { display: block; color: var(--faint); font-size: 11.5px; font-weight: 500; margin-top: 2px; }
.find-sug .fs-gap { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; }

.news-pop {
  background: oklch(0.135 0.006 268);
  border-radius: 12px; padding: 13px 15px; margin: 2px 0 12px;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05);
  animation: rise 200ms var(--ease-out) both;
}
.np-head { margin: 0 0 4px; font-weight: 800; font-size: 14px; }
.np-head + .np-body { margin-bottom: 10px; }
.np-body { margin: 0; color: var(--muted); font-size: 13px; max-width: 75ch; }

/* ---------- news ticker & movers ---------- */

.ticker {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px; margin-bottom: 6px;
  scrollbar-width: thin;
}
.ticker-label {
  flex: none; font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; color: var(--gold); transform: skewX(-6deg);
}
.ticker-chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface);
  border-radius: 999px; padding: 5px 12px 5px 6px;
  font-size: 12.5px; font-weight: 600;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.05);
}
.ticker-chip .face, .ticker-chip .face-fallback { width: 24px; height: 24px; font-size: 9px; }
.ticker-chip .tc-n { white-space: nowrap; }
.ticker-chip .tc-t { color: var(--faint); font-variant-numeric: tabular-nums; }
.ticker-chip .tv { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 11.5px; }

.movers { display: grid; gap: 12px; margin: 0 0 24px; }
@media (min-width: 720px) { .movers { grid-template-columns: 1fr 1fr; } }
.mover-col { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.mover-title { flex-basis: 100%; font-family: var(--display); font-weight: 700; font-size: 13.5px; letter-spacing: 0.05em; }

/* ---------- board: rankings ---------- */

.rank-controls { display: grid; gap: 10px; margin-bottom: 14px; max-width: 640px; }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row {
  display: flex; align-items: center; gap: 11px;
  width: 100%; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: 12px; padding: 8px 12px;
  box-shadow: var(--elev-1);
}
.rank-row:hover { filter: brightness(1.1); }
.rank-row .rr-n { flex: none; min-width: 26px; color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12.5px; text-align: right; }
.rank-row .rr-body { flex: 1; min-width: 0; line-height: 1.3; }
.rank-row .rr-name { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 1px; }
.rank-row .a-sub {
  display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap; row-gap: 2px;
  color: var(--faint); font-size: 11.5px;
}
.rank-row .rr-val { font-family: var(--display); font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; }

/* ---------- board: draft grid ---------- */

.draft-round { display: flex; align-items: stretch; gap: 10px; margin-bottom: 10px; min-width: 0; }
.dr-label {
  flex: none; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.05em;
  color: var(--gold); transform: skewX(-6deg); min-width: 44px;
}
.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 6px;
}
.dc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dc-own { opacity: 0.6; }
.dc-proj {
  margin-left: 6px; font-family: var(--font); font-size: 9px; font-weight: 800;
  letter-spacing: 0.05em; color: var(--faint); vertical-align: 2px;
}
.draft-cell {
  display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: 11px; padding: 10px 12px;
  box-shadow: var(--elev-1);
  min-width: 0;
}
.draft-cell.traded { box-shadow: var(--elev-1), inset 0 0 0 1px oklch(0.865 0.125 88 / 0.35); }
.dc-slot { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--gold); }
.dc-owner { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; min-width: 0; }
.dc-owner img { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.dc-via { color: var(--faint); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-val { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; }

/* ---------- receipts controls ---------- */

.receipt-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.receipt-controls .seg { margin: 0; }

.adj-row td { color: var(--gold); font-weight: 700; }
.composite-row td { color: var(--ink); font-weight: 800; }

/* ---------- watchdog ---------- */

.watchdog {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: var(--r-card);
  padding: 15px 17px;
  margin: 0 0 24px;
  box-shadow: var(--elev-1);
}
.watchdog.alert { box-shadow: var(--elev-1), inset 0 0 0 1px oklch(0.80 0.13 75 / 0.35); }
.wd-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.wd-light {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--good); box-shadow: 0 0 10px var(--good);
  animation: pulse 2.4s infinite;
}
.wd-light.wd-amber { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.wd-title { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.06em; }
.wd-clear { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
.wd-item { display: flex; gap: 9px; margin-top: 9px; font-size: 13.5px; }
.wd-item p { margin: 0; color: var(--muted); }
.wd-item a { font-weight: 700; }

/* what would it take */
.wwit {
  margin: 12px 0 0;
  padding: 11px 14px;
  background: var(--gold-soft);
  border-radius: 12px;
  font-size: 13.5px; color: var(--muted);
  box-shadow: inset 0 0 0 1px oklch(0.865 0.125 88 / 0.25);
}
.wwit strong { color: var(--gold); }

/* the law */
.law { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.law li { color: var(--muted); font-size: 14px; }
.law li strong { color: var(--ink); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .view, .asset, .chart-row { animation: none; }
  .meter-a, .meter-b { transition: none; }
  .skeleton::after, .dot-live { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* rankings source selector: its own row, wraps on phones */
.src-seg { flex-wrap: wrap; }
.src-seg button { flex: 0 1 auto; }
