/* Stream Rundown — a broadcast instrument panel.
   The league runs 24/7 on a fixed 15-minute cadence across four streams, so the page
   is built like a rundown sheet: amber phosphor readouts, monospace figures, a
   time-ordered rail. Committed to a single dark treatment; every colour is painted
   explicitly so the page holds on any host background. */

:root {
  --ground: #0A0E14;
  --panel: #121821;
  --panel2: #0F141C;
  --raise: #161E29;
  --line: #1E2836;
  --line2: #2A3749;
  --signal: #FFB02E;
  --signal-dim: #7A5417;
  --cool: #46C8DE;
  --cool-dim: #1E5F6E;
  --warn: #FF6B5A;
  --text: #E6EDF6;
  --muted: #7C8CA1;
  --faint: #4A5A6E;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --w: 1240px;

  /* Status is a separate axis from the accent. Amber means "this is the figure";
     green and red mean "this was right" and "this was wrong". Overloading amber for
     both made the results page unreadable at a glance. */
  --hit: #3ED88B;
  --hit-dim: #143D2A;
  --miss: #FF6B5A;
  --miss-dim: #47201C;

  --glow: 0 0 0 1px rgba(255, 176, 46, .16), 0 0 22px -6px rgba(255, 176, 46, .34);
  --sh1: 0 1px 2px rgba(0, 0, 0, .5);
  --sh2: 0 10px 30px -12px rgba(0, 0, 0, .8);
  --r1: 4px;
  --r2: 9px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cool); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cool); outline-offset: 2px; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* ---------- masthead ---------- */

.top {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--panel2), var(--ground));
}
.top-in {
  max-width: var(--w); margin: 0 auto; padding: 18px 20px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.brand { font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin: 0; }
.brand span { color: var(--signal); }
.tagline { color: var(--muted); font-size: 13px; margin: 4px 0 0; max-width: 56ch; }

.status { font-family: var(--mono); font-size: 11.5px; color: var(--faint); line-height: 1.85; text-align: right; }
.status b { color: var(--muted); font-weight: 400; }
.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); margin-right: 7px; vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
.dot.stale { background: var(--warn); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

nav { max-width: var(--w); margin: 0 auto; padding: 14px 20px 0; display: flex; gap: 4px; }
nav a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); padding: 8px 13px; border-bottom: 2px solid transparent; text-decoration: none;
}
nav a:hover { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--signal); border-bottom-color: var(--signal); }

/* ---------- shared ---------- */

main { padding: 26px 0 70px; }
.lbl {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 10px;
}
h2 { font-size: 20px; font-weight: 620; letter-spacing: -.015em; margin: 0 0 4px; text-wrap: balance; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.lede { color: var(--muted); font-size: 14px; margin: 0 0 20px; max-width: 68ch; }
figure { margin: 0; }
svg { display: block; width: 100%; height: auto; }
.axis { font-family: var(--mono); font-size: 9.5px; fill: var(--faint); }
.gridline { stroke: var(--line); stroke-width: 1; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; }
.card { background: var(--panel2); border: 1px solid var(--line); border-radius: 3px; padding: 16px; }
.card p { color: var(--muted); font-size: 12.5px; margin: 9px 0 0; line-height: 1.5; }
.card b { color: var(--text); font-weight: 600; }

.state { padding: 44px 20px; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.state.err { color: var(--warn); }

/* ---------- slate ---------- */

.split { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }

.rail { overflow: hidden; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 13px 9px; }
.rail-scroll { max-height: 560px; overflow-y: auto; }
.fx {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 9px; align-items: center;
  width: 100%; padding: 9px 13px; background: none; border: 0;
  border-left: 2px solid transparent; border-bottom: 1px solid var(--line);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.fx:hover { background: var(--raise); }
.fx:focus-visible { outline: 2px solid var(--cool); outline-offset: -2px; }
.fx[aria-current="true"] { background: var(--raise); border-left-color: var(--signal); }
.fx .t { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.fx .n { min-width: 0; }
.fx .n b { display: block; font-size: 13px; font-weight: 500; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx .n i { display: block; font-style: normal; font-family: var(--mono); font-size: 10.5px;
  color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx .v { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.fx .v b { display: block; font-size: 13px; font-weight: 500; color: var(--signal); }
.fx .v i { display: block; font-style: normal; font-size: 10px; color: var(--faint); margin-top: 1px; }
.rail-cols {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 9px;
  padding: 0 13px 7px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.rail-cols span:last-child { text-align: right; }

.readout { padding: 20px; }
.match { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.match .who { font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.match .vs { color: var(--faint); font-family: var(--mono); font-size: 13px; }
.players { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.comp {
  font-family: var(--mono); font-size: 11px; color: var(--cool);
  letter-spacing: .08em; text-transform: uppercase; margin-top: 3px;
}
.rates { display: flex; gap: 26px; margin: 18px 0 4px; flex-wrap: wrap; }
.rate .k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint);
}
.rate .v { font-family: var(--mono); font-size: 27px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rate.tot .v { color: var(--signal); }
.rates.sub { gap: 22px; margin: 12px 0 0; }
.rates.sub .v { font-size: 19px; }

.lines {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 16px;
}
.line { background: var(--panel2); padding: 11px 12px; }
.line .k { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: .1em; }
.line .m { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.line .v { font-family: var(--mono); font-size: 19px; font-variant-numeric: tabular-nums; margin-top: 3px; }
.line .bar { height: 3px; background: var(--line2); margin-top: 7px; overflow: hidden; }
.line .bar i { display: block; height: 100%; background: var(--signal); }
@media (max-width: 560px) { .lines { grid-template-columns: repeat(2, 1fr); } }
.calbars { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.ctrl { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.ctrl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 9px; }
.ctrl-head .v { font-family: var(--mono); font-size: 13px; color: var(--signal); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--signal); height: 22px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 9px 0 0; max-width: 68ch; }
.reset {
  background: none; border: 1px solid var(--line2); color: var(--muted);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px; cursor: pointer;
}
.reset:hover { color: var(--text); border-color: var(--faint); }

.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
@media (max-width: 860px) { .charts { grid-template-columns: 1fr; } }

/* ---------- operators ---------- */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); font-weight: 400; border-bottom-color: var(--line2); cursor: pointer;
  position: sticky; top: 0; background: var(--panel2);
}
thead th:hover { color: var(--muted); }
thead th[aria-sort] { color: var(--signal); }
tbody tr:hover { background: var(--raise); }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--signal); }
.neg { color: var(--cool); }
.spark { width: 68px; height: 16px; }

/* ---------- method ---------- */

.prose { max-width: 70ch; }
.prose p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose ul { color: var(--muted); font-size: 14px; padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.formula {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: var(--panel2); border: 1px solid var(--line); border-left: 2px solid var(--signal);
  padding: 13px 15px; margin: 0 0 16px; overflow-x: auto; line-height: 1.7;
}
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.stat .v { font-family: var(--mono); font-size: 25px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat .s { color: var(--muted); font-size: 12px; margin-top: 4px; }

footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0 0;
  color: var(--faint); font-size: 12px; line-height: 1.65; max-width: 80ch;
}
footer b { color: var(--muted); font-weight: 500; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- per-match distribution ---------- */

.gdist { display: grid; gap: 3px; margin-bottom: 22px; max-width: 520px; }
.gbar { display: grid; grid-template-columns: 26px 1fr 54px; gap: 10px; align-items: center; }
.gk { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: right; }
.gt { background: var(--panel2); height: 15px; border: 1px solid var(--line); overflow: hidden; }
.gt i { display: block; height: 100%; background: var(--signal); }
.gp { font-family: var(--mono); font-size: 11.5px; color: var(--muted);
      font-variant-numeric: tabular-nums; }

/* ---------- components ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: var(--r1); border: 1px solid var(--line2);
  color: var(--muted); white-space: nowrap; line-height: 1.4;
}
.badge.hit { color: var(--hit); border-color: var(--hit); background: var(--hit-dim); }
.badge.miss { color: var(--miss); border-color: var(--miss); background: var(--miss-dim); }
.badge.over { color: var(--signal); border-color: var(--signal-dim); }
.badge.under { color: var(--cool); border-color: var(--cool-dim); }

.meter { display: block; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 5px; }
.meter i { display: block; height: 100%; background: var(--signal); border-radius: 2px;
  transform-origin: left; animation: grow .6s var(--ease) both; }
.meter.cool i { background: var(--cool); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.pips { display: inline-flex; gap: 4px; align-items: center; }
.pips b {
  width: 8px; height: 8px; border-radius: 50%; display: block;
  background: var(--line2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.pips b.on { background: var(--hit); box-shadow: 0 0 7px -1px var(--hit); }
.pips b.off { background: var(--miss-dim); box-shadow: inset 0 0 0 1px var(--miss); }
.pips em { font-style: normal; font-family: var(--mono); font-size: 11px;
  color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 14px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--muted); cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip[aria-pressed="true"] { color: var(--ground); background: var(--signal); border-color: var(--signal); }
.chip[aria-pressed="true"].hitc { background: var(--hit); border-color: var(--hit); }
.chip[aria-pressed="true"].missc { background: var(--miss); border-color: var(--miss); }

/* ---------- hero stat band ---------- */

.hero {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: linear-gradient(160deg, var(--raise), var(--panel2));
  border: 1px solid var(--line); border-radius: var(--r2);
  padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--sh2);
}
.hero-ring { position: relative; width: 118px; height: 118px; flex: none; }
.hero-ring svg { width: 118px; height: 118px; transform: rotate(-90deg); }
.hero-ring .track { fill: none; stroke: var(--line); stroke-width: 9; }
.hero-ring .val { fill: none; stroke: var(--signal); stroke-width: 9; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255,176,46,.5)); animation: sweep 1s var(--ease) both; }
@keyframes sweep { from { stroke-dashoffset: 999; } }
.hero-ring .mid {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.hero-ring .mid b { font-family: var(--mono); font-size: 27px; font-variant-numeric: tabular-nums;
  letter-spacing: -.03em; line-height: 1; }
.hero-ring .mid span { font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-top: 5px; }
.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 18px; }
.fact .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--faint); }
.fact .v { font-family: var(--mono); font-size: 23px; font-variant-numeric: tabular-nums;
  letter-spacing: -.02em; margin-top: 3px; }
.fact .s { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
@media (max-width: 640px) { .hero { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- calibration bars ---------- */

.calbars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 620px) { .calbars { grid-template-columns: repeat(2, 1fr); } }
.calbar { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r1); padding: 13px; }
.calbar .k { font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: .1em; }
.calbar .m { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.calbar .pair { display: flex; gap: 14px; margin-top: 10px; }
.calbar .pair div { flex: 1; }
.calbar .pair span { font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); display: block; }
.calbar .pair b { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums;
  display: block; margin-top: 2px; }
.calbar .pair .obs b { color: var(--cool); }
.calbar .pair .pre b { color: var(--signal); }

/* ---------- results rows ---------- */

.rtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rtable th {
  font-family: var(--mono); font-size: 10px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--faint); font-weight: 400; text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--line2); position: sticky; top: 0; background: var(--panel);
  z-index: 1;
}
.rtable td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rtable tbody tr { transition: background .16s var(--ease); }
.rtable tbody tr:hover { background: var(--raise); }
.rtable tbody tr td:first-child { border-left: 2px solid transparent; }
.rtable tr.is-hit td:first-child { border-left-color: var(--hit); }
.rtable tr.is-miss td:first-child { border-left-color: var(--miss); }
.rtable .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rtable .mt a { color: var(--text); font-weight: 500; }
.rtable .mt a:hover { color: var(--signal); text-decoration: none; }
.rtable .mt i { display: block; font-style: normal; font-family: var(--mono);
  font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.rtable .conf { font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  font-variant-numeric: tabular-nums; margin-top: 5px; }
.rtable .goals { font-family: var(--mono); font-size: 19px; font-variant-numeric: tabular-nums; }
.rtable .call-cell { min-width: 132px; }
.legend { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; max-width: 74ch;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .5s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(9px); } }
}

/* ---------- match verdict ---------- */

.verdict {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: linear-gradient(160deg, var(--raise), var(--panel2));
  border: 1px solid var(--line); border-left: 3px solid var(--line2);
  border-radius: var(--r2); padding: 18px 22px; margin-bottom: 10px; box-shadow: var(--sh2);
}
.verdict.is-hit { border-left-color: var(--hit); }
.verdict.is-miss { border-left-color: var(--miss); }
.vscore b { display: block; font-family: var(--mono); font-size: 32px;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.1; }
.vscore em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.vcall .badge { margin-right: 6px; }
.vcall .conf { color: var(--muted); font-size: 12.5px; margin-top: 7px; }
.vpips { text-align: right; }
.vpips .pips { margin-top: 4px; }
@media (max-width: 700px) {
  .verdict { grid-template-columns: 1fr; gap: 16px; }
  .vpips { text-align: left; }
}

/* ---------- filter controls ---------- */

.filters { padding: 0 13px 11px; display: grid; gap: 9px; }
.frow { display: flex; align-items: center; gap: 10px; }
.frow .lbl { flex: none; width: 52px; margin: 0; }
.seg {
  display: flex; flex: 1; background: var(--panel2);
  border: 1px solid var(--line2); border-radius: var(--r1); overflow: hidden;
}
.segb {
  flex: 1; padding: 6px 4px; background: none; border: 0; border-right: 1px solid var(--line);
  color: var(--muted); font-family: var(--mono); font-size: 11px; cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.segb:last-child { border-right: 0; }
.segb:hover { color: var(--text); background: var(--raise); }
.segb[aria-pressed="true"] { background: var(--signal); color: var(--ground); font-weight: 600; }
.segb:focus-visible { outline: 2px solid var(--cool); outline-offset: -2px; }

.fx .v i.over { color: var(--signal); }
.fx .v i.under { color: var(--cool); }
.rail-empty {
  color: var(--muted); font-size: 12.5px; padding: 22px 14px; margin: 0; text-align: center;
}

/* ---------- operator ratings ---------- */

.oprank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--panel2);
  border: 1px solid var(--line2); font-family: var(--mono); font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.oprank.top { background: var(--signal); border-color: var(--signal); color: var(--ground); font-weight: 600; }
.opbar { display: flex; align-items: center; gap: 9px; justify-content: flex-end; }
.opbar span { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; min-width: 38px; }
.opbar i { display: block; height: 5px; border-radius: 3px; background: var(--signal); flex: none; }
.opbar i.cool { background: var(--cool); }
.opsearch {
  width: 100%; max-width: 300px; padding: 9px 12px; margin-bottom: 13px;
  background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--r1);
  color: var(--text); font-family: var(--sans); font-size: 13.5px;
}
.opsearch::placeholder { color: var(--faint); }
.opsearch:focus-visible { outline: 2px solid var(--cool); outline-offset: -1px; }

.calplot { max-width: 520px; margin-bottom: 22px; }
.calref { stroke: var(--cool); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .65; }

/* ---------- findings ---------- */

.answer {
  font-size: 17px; line-height: 1.6; color: var(--text); max-width: 68ch;
  border-left: 2px solid var(--signal); padding-left: 16px; margin: 0 0 24px;
}
.fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.fcard {
  display: block; background: var(--panel2); border: 1px solid var(--line);
  border-radius: var(--r2); padding: 20px; color: inherit; text-decoration: none;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.fcard:hover {
  text-decoration: none; border-color: var(--signal);
  background: var(--raise); transform: translateY(-2px);
}
.fcard h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -.01em; text-wrap: balance; }
.fcard p { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.55; }
.fcard .lbl { color: var(--signal); }

/* Five nav items no longer fit a 375px screen. Scrolling keeps every destination
   reachable; wrapping would push the page content down on the smallest phones. */
nav { overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { white-space: nowrap; flex: none; }
@media (max-width: 480px) { nav a { padding: 8px 10px; letter-spacing: .06em; } }

/* ---------- the call ---------- */

.call {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: linear-gradient(160deg, var(--raise), var(--panel2));
  border: 1px solid var(--line); border-left: 3px solid var(--signal);
  border-radius: var(--r2); padding: 18px 22px; margin: 18px 0 10px; box-shadow: var(--sh2);
}
.call.no-call { border-left-color: var(--line2); }
.call-expect { text-align: center; padding-right: 24px; border-right: 1px solid var(--line); }
.call-expect b {
  display: block; font-family: var(--mono); font-size: 46px; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.04em; color: var(--signal);
  margin-top: 6px;
}
.call-expect em {
  font-style: normal; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.rec-line {
  display: block; font-size: 27px; font-weight: 650; letter-spacing: -.02em; margin-top: 5px;
}
.no-call .rec-line { color: var(--muted); font-weight: 500; }
.rec-meaning { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.call-rec .meter { max-width: 260px; margin-top: 10px; }
.call-rec .conf {
  display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  margin-top: 5px; font-variant-numeric: tabular-nums;
}
.no-call .meter { display: none; }
@media (max-width: 620px) {
  .call { grid-template-columns: 1fr; gap: 16px; }
  .call-expect { text-align: left; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
}

.fx .v b.over { color: var(--signal); }
.fx .v b.under { color: var(--cool); }
.fx .v b.skip { color: var(--faint); font-weight: 400; }
.rtable tr.is-skip td:first-child { border-left-color: var(--line2); }
.rtable tr.is-skip { opacity: .62; }

.call-expect .odds {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums; margin-top: 6px; min-width: 148px;
}
.call-expect .odds:first-of-type { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.call-expect .odds span:last-child { color: var(--text); }

/* ---------- faq ---------- */

.faq { margin: 30px 0 0; max-width: 74ch; }
.faq details {
  border-top: 1px solid var(--line); padding: 13px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 550; font-size: 14.5px; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--signal); font-family: var(--mono); font-size: 16px; flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--signal); }
.faq p { color: var(--muted); font-size: 13.5px; margin: 9px 0 0; line-height: 1.6; }

/* ---------- book price ---------- */

.px {
  border: 1px solid var(--line); border-radius: var(--r1); background: var(--panel2);
  padding: 12px 14px; margin: 0 0 18px; max-width: 420px;
}
.px-pair { display: flex; gap: 26px; margin-top: 7px; }
.px-pair span { display: block; }
.px-pair em {
  display: block; font-style: normal; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.px-pair b {
  font-family: var(--mono); font-size: 19px; font-variant-numeric: tabular-nums;
  color: var(--text);
}
.px-note { display: block; color: var(--muted); font-size: 12px; margin-top: 9px; }
.px-note b { color: var(--text); font-family: var(--mono); }
.px-warn { color: var(--warn); }
