/* FRONTIER COLOSSEUM — one CSS system (SITE_SPEC §0)
   White base coat; the casino lives in the moving parts.
   Registers: LOUD (arena, ticker) · WARM (front, standings) · SILENT (docs, footer). */

:root {
  --paper: #ffffff;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink2: #52514e;
  --muted: #898781;
  --hairline: #e1e0d9;
  --baseline: #c3c2b7;
  --usa: #2a78d6;            /* validated pair on white */
  --china: #e34948;
  --win: #0ca30c;            /* stamps, always with letters */
  --win-text: #006300;       /* small green text */
  --loss: #d03b3b;
  --fuse: #eb6834;
  --gold: #eda100;
  --amber-wash: #fff3d6;
  --seal-wash: #f0efec;
  --font-display: "HelveticaNeue-CondensedBlack", "Helvetica Neue Condensed Black",
                  "AvenirNextCondensed-Heavy", "Avenir Next Condensed",
                  "Arial Narrow", "Arial Black", Impact, system-ui, sans-serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.45;
}
a { color: inherit; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
main { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
:focus-visible { outline: 3px solid var(--usa); outline-offset: 2px; border-radius: 2px; }

/* ---------------------------------------------------------- type */
.marquee, .marquee-2, .lock-fc {
  font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; letter-spacing: .5px; line-height: .95;
}
.marquee { font-size: clamp(40px, 7vw, 72px); margin: 18px 0 6px; }
.marquee-2 { font-size: clamp(24px, 4vw, 36px); margin: 44px 0 10px; }

/* ---------------------------------------------------------- ticker (LOUD) */
.ticker {
  background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap;
  border-bottom: 3px solid var(--gold); font-size: 14px;
}
.tk-belt { display: inline-flex; }
.tk-run { display: inline-flex; animation: tkscroll 210s linear infinite; padding: 8px 0; }
.ticker:hover .tk-run, .ticker:focus-within .tk-run { animation-play-state: paused; }
.tk-item { padding: 0 26px; border-right: 1px solid rgba(255,255,255,.22); }
.tk-item a { color: #fff; text-decoration: none; }
.tk-item a:hover { text-decoration: underline; }
.tk-item b { color: #ffe9a8; font-weight: 700; }
.tk-w { color: #7fe08a; font-weight: 700; }
.tk-l { color: #ff9d9d; font-weight: 700; }
.tk-cat { opacity: .55; font-size: .82em; letter-spacing: .1em;
          margin-right: .5em; font-weight: 700; }
@keyframes tkscroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------------------------------------------------------- mast */
.mast {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
  padding: 20px 20px 10px; max-width: 1140px; margin: 0 auto;
}
.lockup { text-decoration: none; display: flex; align-items: center; gap: 12px; }
.lock-words { display: block; }
.lock-fc { display: block; font-size: clamp(30px, 5vw, 44px); }
.lock-tag { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 12px;
  letter-spacing: 3.2px; color: var(--ink2); margin-top: 2px; }

/* THE MARK. One rule for every ™. Sized in em so it scales with whatever it
   rides — the 44px wordmark and the 12px tagline both get a mark in
   proportion. Raised rather than <sup>, which at 44px in a display face lifts
   the glyph clean out of the cap height. The tagline is letter-spaced 3.2px,
   so the mark cancels that or it floats away from the final E. */
.tm { font-family: var(--font-sans); font-weight: 600; font-size: 0.34em;
  letter-spacing: 0; margin-left: 0.18em; vertical-align: 0.85em; line-height: 1; }
.lock-tag .tm, .foot-tagline .tm { font-size: 0.72em; vertical-align: 0.42em; }

/* CHANNEL BAR — the topic switcher. */
.viewbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 22px; }
.viewbar a {
  text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .6px;
  padding: 7px 13px; border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--ink2); background: var(--paper); white-space: nowrap;
}
.viewbar a:hover { border-color: var(--baseline); color: var(--ink); }
.viewbar a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.vb-n { margin-left: 7px; opacity: .6; font-weight: 400;
  font-family: var(--font-mono); font-size: 11px; }

.mastnav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.mastnav a {
  text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 1px;
  padding: 8px 14px; border: 1px solid var(--hairline); border-radius: 999px;
}
.mastnav a.on, .mastnav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.calbanner {
  max-width: 1100px; margin: 6px auto 0; padding: 8px 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .4px; color: var(--ink2);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.fresh {
  max-width: 1100px; margin: 0 auto; padding: 10px 20px 0;
  display: flex; flex-wrap: wrap; gap: 6px 32px;
}
.fresh-fact { font-family: var(--font-sans); font-size: 14.5px;
  font-weight: 800; letter-spacing: .8px; color: var(--ink); }
.fresh-fact .tk-next { font-weight: 800; }

/* ---------------------------------------------------------- hero */
.hook { font-size: 15px; font-weight: 600; color: var(--ink2); max-width: 640px; margin: 26px 0 0; }
.hero-sub { font-size: 18px; font-weight: 700; letter-spacing: 1px; margin: 4px 0 14px; }
.packet { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.packet .hashval { display: inline-block; color: var(--ink); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 6px; padding: 3px 8px;
  word-break: break-all; user-select: all; }
.rigor { font-size: 13px; color: var(--ink2); margin: 8px 0 2px; font-weight: 600; }
.counter { font-size: 15px; margin: 10px 0 18px; letter-spacing: .3px; }
.lock { color: var(--ink2); font-weight: 700; }

/* ---------------------------------------------------------- market blocks */
.blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.blk {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.blk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.blk-q { font-size: 17px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.blk-q:hover { text-decoration: underline; }
.blk-q-id { font-weight: 600; font-size: 14px; }
.blk-note { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.blk-price { font-size: 13px; color: var(--ink2); letter-spacing: .3px; }
.blk-price b { font-size: 16px; color: var(--ink); }
.blk-state { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.fuse-txt { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink2); }
.det-stamp {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .5px;
  font-size: 20px; text-transform: uppercase;
}
.det-tally { font-size: 13px; font-weight: 700; }
.det-tally .tk-w { color: var(--win-text); } .det-tally .tk-l { color: var(--loss); }
.pm-link { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink2); }
.pm-link:hover { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------- chips */
.chip {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--hairline);
  color: var(--ink2); background: var(--paper); text-transform: uppercase;
}
.chip-mlabel { background: var(--ink); color: #fff; border-color: var(--ink); font-family: var(--font-mono); }
.chip-cat { background: var(--seal-wash); }
.chip-look { border-color: var(--usa); color: var(--usa); }
.chip-early { background: var(--amber-wash); border-color: var(--gold); color: #7a5200; }
.chip-sloppy { border-color: var(--fuse); color: #a33e12; }
.chip-void { border-color: var(--loss); color: var(--loss); }
.chip-nocall { background: var(--seal-wash); color: var(--ink2); }
.chip-dq { background: var(--loss); border-color: var(--loss); color: #fff; }
.chip-18 { border: 2px solid var(--ink); font-weight: 900; }

/* ---------------------------------------------------------- bombs & fuses */
.bomb { flex: none; }
.bomb .fuse-burn { stroke-dasharray: 100; stroke-dashoffset: calc((1 - var(--fuse, .5)) * 100); }
.bomb-lit .spark circle:first-child { animation: spark 1.1s ease-in-out infinite alternate; }
@keyframes spark { from { opacity: .55; r: 4px; } to { opacity: 1; r: 6px; } }
.bomb-det .burst { transform-origin: 50% 50%; animation: burst .6s cubic-bezier(.2,1.6,.4,1) 1; }
@keyframes burst { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------------------------------------------------------- arena (LOUD) */
.arena-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.arena-q { max-width: 900px; }
.arena-bomb { display: flex; align-items: center; gap: 22px; margin: 18px 0; flex-wrap: wrap; }
.det-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 6vw, 58px);
  text-transform: uppercase; letter-spacing: 1px; }
.det-sub { flex-basis: 100%; font-size: 13px; color: var(--ink2); }
.fuse-big { font-size: 20px; font-weight: 700; }
.dare { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 8px 0 4px; }
.dare-line { font-size: 22px; font-weight: 700; }
.dare-line b { font-size: 28px; }
.p-rung { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.dare-door { margin: 18px 0; }

.cbomb {
  margin: 16px 0; padding: 14px 18px; border: 2px solid var(--gold);
  border-radius: 12px; background: var(--amber-wash); font-size: 16px;
}
.cbomb-flash { font-weight: 900; letter-spacing: .6px; animation: armedpulse 1.6s ease-in-out infinite; }
@keyframes armedpulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin: 14px 0; }
.reel {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 12px;
}
.nat-usa { border-left: 4px solid var(--usa) !important; }
.nat-china { border-left: 4px solid var(--china) !important; }
.reel-name { font-weight: 800; letter-spacing: .4px; font-size: 14px; min-width: 132px; }
.reel-lock { animation: sealshimmer 2.2s ease-in-out infinite; }
@keyframes sealshimmer { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.reel-spin { background: linear-gradient(100deg, var(--surface) 40%, #f2f1ec 50%, var(--surface) 60%);
  background-size: 220% 100%; animation: reelspin 2.8s linear infinite; }
@keyframes reelspin { from { background-position: 120% 0; } to { background-position: -60% 0; } }
.reel-set { animation: reelstop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--i) * 130ms); }
@keyframes reelstop { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.reel-call { font-family: var(--font-mono); font-weight: 700; font-size: 15px; }
.reel-stake { color: var(--ink2); font-weight: 400; font-size: 12.5px; }
.stamp-w, .stamp-l {
  font-family: var(--font-display); font-weight: 900; font-size: 19px; line-height: 1;
  padding: 4px 9px; border-radius: 7px; color: #fff;
}
.stamp-w { background: var(--win); }
.stamp-l { background: var(--loss); }
.reel-nums { font-size: 12px; color: var(--ink2); }
.rcpt { font-size: 11px; color: var(--muted); border: 1px dashed var(--baseline);
  border-radius: 6px; padding: 2px 6px; }

.looks { margin: 6px 0 10px; }
.lookrow { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--hairline); font-size: 14px; }
.looknote { font-size: 12.5px; color: var(--muted); max-width: 640px; }

.rail { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.rail h3 { font-size: 13px; letter-spacing: 2px; color: var(--muted); margin: 0 0 8px; }
.railrow { font-size: 12px; color: var(--ink2); margin: 4px 0; word-break: break-all; }
.railrow .hashval { user-select: all; }
.railnote { font-size: 12.5px; color: var(--muted); max-width: 640px; }

/* ---------------------------------------------------------- standings preview */
.prev .sortnote { margin-top: -2px; }
.prev-row {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  padding: 10px 12px; border-bottom: 1px solid var(--hairline);
}
.prev-row:hover { background: var(--surface); }
.prev-name { font-weight: 800; letter-spacing: .4px; min-width: 170px; }
.prev-rec { font-weight: 700; min-width: 60px; }
.prev-sharp, .prev-crown { color: var(--ink2); font-size: 14px; }
.more { display: inline-block; margin-top: 14px; font-weight: 900; letter-spacing: 1px; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 999px; padding: 10px 18px; }
.more:hover { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------- big chart (WARM) */
.sortnote { font-size: 14px; color: var(--ink2); margin: 0 0 14px; }
.chart { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px; }
.chart-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.togglerow { display: flex; gap: 6px; flex-wrap: wrap; }
.tog {
  font: 700 13px/1 var(--font-sans); letter-spacing: 1px; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--baseline); background: var(--paper);
}
.tog.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.legend { display: flex; gap: 16px; font-size: 13px; font-weight: 600; }
.swatch { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.swatch.n-usa { background: var(--usa); } .swatch.n-china { background: var(--china); }
.chart-sub { font-size: 13px; color: var(--ink2); margin: 10px 0 16px; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(230px, 305px) 1fr; gap: 12px; align-items: center; }
.bar-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* The door to the tale of the tape. The gladiator pages were rich and
   reachable from nowhere a person would actually look: standings.html had
   ZERO links to /g/ and the homepage's standings preview pointed back at
   standings. A feature nobody can find is a feature nobody has. */
.bar-link, .td-link { display: flex; align-items: center; gap: 8px; min-width: 0;
  text-decoration: none; color: inherit; border-radius: 8px; padding: 2px 4px;
  margin: -2px -4px; transition: background .12s ease; }
.bar-link:hover, .td-link:hover { background: rgba(11,11,11,.055); }
.bar-link:hover .bar-name, .td-link:hover .td-name { text-decoration: underline;
  text-underline-offset: 3px; }
.bar-link:focus-visible, .td-link:focus-visible { outline: 2px solid var(--gold, #c9a227);
  outline-offset: 2px; }
.bar-name { font-weight: 800; font-size: 13.5px; letter-spacing: .3px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.bar-n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.bar-track { position: relative; height: 22px; background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 7px; overflow: hidden; }
.bar-fill { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 4px;
  transition: width .45s ease, left .45s ease; }
.bar-fill.n-usa { background: var(--usa); } .bar-fill.n-china { background: var(--china); }
.bar-val { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: rgba(255,255,255,.82); padding: 0 5px; border-radius: 4px; }
.zeroline { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--baseline); }

/* ---------------------------------------------------------- board table */
.tablewrap { margin-top: 8px; overflow-x: auto; }
.tbl-note { font-size: 13px; color: var(--ink2); max-width: 760px; }
.board { border-collapse: collapse; width: 100%; font-size: 14px; }
.board th {
  text-align: left; font-size: 11.5px; letter-spacing: 1.2px; color: var(--muted);
  border-bottom: 2px solid var(--ink); padding: 8px 10px; white-space: nowrap;
}
.board th.sortable { cursor: pointer; }
.board th.sortable:hover { color: var(--ink); }
.board th[aria-sort]::after { content: " ↓"; color: var(--ink); }
.board th[aria-sort="ascending"]::after { content: " ↑"; }
.board td { border-bottom: 1px solid var(--hairline); padding: 9px 10px; vertical-align: middle; }
.board td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-seat { display: flex; align-items: center; gap: 10px; min-width: 230px; }
.td-name { font-weight: 800; letter-spacing: .3px; display: block; }
.td-model { font-size: 11px; color: var(--muted); display: block; }
.td-sub { display: block; font-size: 11px; color: var(--muted); }
.denoms summary { cursor: pointer; list-style: none; }
.denoms summary::-webkit-details-marker { display: none; }
.denoms[open] summary { font-weight: 700; }
.denoms div { font-size: 12px; color: var(--ink2); padding-top: 4px; max-width: 300px; white-space: normal; }

/* ---------------------------------------------------------- docs (SILENT) */
.doc .prose { max-width: 760px; font-size: 16px; }
.prose h1, .prose h2, .prose h3, .prose h4 { line-height: 1.2; margin: 1.6em 0 .5em; }
.prose h2 { border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.prose pre { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 14px; overflow-x: auto; font-size: 13.5px; }
.prose code { font-family: var(--font-mono); font-size: .92em; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 5px; padding: 1px 5px; }
.prose pre code, .prose pre { border: 0; }
.prose pre { border: 1px solid var(--hairline); }
.prose blockquote { border-left: 3px solid var(--baseline); margin: 1em 0; padding: 2px 18px; color: var(--ink2); }
.prose li { margin: .35em 0; }
.prose li.cont { list-style: none; color: var(--ink2); }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin: 2em 0; }
.constbox { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 16px 18px; margin: 18px 0; max-width: 760px; }
.constbox h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: 1px; color: var(--ink2); }
.constbox table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.constbox th { text-align: left; padding: 5px 12px 5px 0; color: var(--muted); font-weight: 600; white-space: nowrap; }
.constbox td { padding: 5px 0; }

/* ---------------------------------------------------------- footer creed */
.creed {
  border-top: 3px solid var(--ink); margin-top: 60px; padding: 26px 20px 40px;
  max-width: 1100px; margin-left: auto; margin-right: auto;
  font-size: 13px; color: var(--ink2);
}
.foot-tag { display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 900; font-size: 15px; letter-spacing: 1.6px; color: var(--ink); margin: 0 0 10px; }
.creed .four {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  color: var(--ink); font-size: clamp(16px, 2.6vw, 22px); letter-spacing: .8px; margin: 0 0 14px;
}
.doorline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stamp { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.foot-links a { color: var(--ink2); font-weight: 700; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- casino extras */
.fieldline { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border: 2px solid var(--ink); border-radius: 14px; padding: 12px 18px; margin: 0 0 18px;
  background: var(--surface); box-shadow: 4px 4px 0 rgba(11,11,11,.10); }
.fieldline-lab { font-size: 12px; letter-spacing: 2.4px; font-weight: 900; color: var(--ink2); }
.fieldline-val { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 4vw, 40px); }
.fieldline-sub { font-size: 12.5px; color: var(--ink2); }

.slotspin::after { content: "❓"; display: inline-block; width: 1.3em; text-align: center;
  animation: slotglyph 1.2s steps(1) infinite; }
@keyframes slotglyph { 0% { content: "❓"; } 25% { content: "🎲"; } 50% { content: "⚡"; }
  75% { content: "🔮"; } 100% { content: "❓"; } }

.replaybtn { font: 900 13px/1 var(--font-sans); letter-spacing: 1.2px; cursor: pointer;
  margin: 4px 0 10px; padding: 12px 18px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--gold); color: var(--ink); box-shadow: 3px 3px 0 rgba(11,11,11,.25); }
.replaybtn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(11,11,11,.25); }

/* ---------------------------------------------------------- misc */
.seatmini { display: inline-flex; align-items: center; gap: 5px; }
.seatmini-name { font-weight: 700; font-size: 12.5px; }
.sort-row { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 0 0 12px; }
.sortbtn { font: 700 12px/1 var(--font-sans); letter-spacing: 1px; cursor: pointer;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--baseline); background: var(--paper); }
.sortbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------- gladiator (WARM) */
.g-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 22px; margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; }
.g-crest { grid-row: 1 / span 2; }
.g-id { align-self: center; }
.g-name { margin: 0; font-size: clamp(34px, 6vw, 58px); }
.g-spec { font-size: 12.5px; color: var(--ink2); margin: 6px 0 6px; }
.g-scores { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-top: 8px; }
.g-score { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.g-lab { font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 700; }
.g-val { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; }
.g-sub { font-size: 11.5px; color: var(--ink2); margin-top: 2px; }
.g-doors { grid-column: 1 / -1; font-size: 13px; color: var(--ink2); margin: 4px 0 0; }
.nat-page-usa .g-card { border-top: 4px solid var(--usa); }
.nat-page-china .g-card { border-top: 4px solid var(--china); }

.bk-total { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 5vw, 48px); margin: 4px 0; }
.bk-up { color: var(--win-text); }
.bk-down { color: var(--loss); }
.bkchart { max-width: 660px; width: 100%; height: auto; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 12px; padding: 6px; }

.calwrap { margin-top: 10px; }
.calchart { display: flex; gap: 8px; align-items: flex-end; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 14px 10px; max-width: 560px; }
.cal-col { flex: 1; text-align: center; }
.cal-track { height: 110px; display: flex; align-items: flex-end; justify-content: center; }
.cal-fill { width: 18px; border-radius: 4px 4px 0 0; }
.cal-empty { width: 18px; height: 100%; border: 1px dashed var(--baseline); border-radius: 4px; opacity: .45; }
.cal-val { font-family: var(--font-mono); font-size: 11px; font-weight: 700; margin-top: 4px; }
.cal-stake { font-size: 11px; color: var(--ink2); }
.cal-n { font-size: 9.5px; color: var(--muted); }
.cal-sub { font-size: 12px; color: var(--muted); max-width: 640px; }

.rivrow { display: flex; gap: 12px; flex-wrap: wrap; }
.rivcard { display: flex; gap: 10px; align-items: center; text-decoration: none;
  border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.rivcard:hover { border-color: var(--ink); }
.riv-sub { font-size: 12px; color: var(--ink2); }

.ledger { border-top: 1px solid var(--hairline); }
.led-day { padding: 10px 0 4px; font-weight: 700; color: var(--muted); font-size: 12px; letter-spacing: 1px; }
.led-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.led-win { color: var(--muted); font-size: 11.5px; min-width: 64px; }
.led-q { font-weight: 600; text-decoration: none; flex: 1 1 260px; }
.led-q:hover { text-decoration: underline; }
.led-call { font-weight: 700; }
.led-p, .led-brier { font-size: 12px; color: var(--ink2); }
.led-sealed-h { font-size: 13px; letter-spacing: 2px; color: var(--muted); margin: 22px 0 4px; }
.led-row .stamp-w, .led-row .stamp-l { font-size: 14px; padding: 2px 7px; }
.det-mini { font-size: 13px; }

/* ---------------------------------------------------------- main events (LOUD) */
.mainevents { position: relative; }
 100% { transform: translateX(-50%) translateY(26px) scale(1.12); opacity: 0; } }
.fights { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 14px; }
.fight { background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; padding: 16px;
  box-shadow: 5px 5px 0 rgba(11, 11, 11, .12); }
.fight-tag { font-size: 11px; letter-spacing: 2.4px; font-weight: 900; color: var(--ink2); }
.fight-head { display: flex; align-items: center; justify-content: space-around; gap: 8px; margin: 12px 0 6px; }
.fight-side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none;
  font-weight: 900; letter-spacing: .4px; font-size: 14px; text-align: center; }
.fight-side:hover span { text-decoration: underline; }
.fight-vs { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--china); }
.fight-blurb { font-size: 13.5px; color: var(--ink2); margin: 6px 0 10px; }
.tt { border-top: 1px dashed var(--baseline); }
.tt-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid var(--hairline); font-size: 13px; align-items: baseline; }
.tt-a { text-align: right; font-weight: 700; }
.tt-b { font-weight: 700; }
.tt-lab { font-size: 10.5px; letter-spacing: 1.6px; color: var(--muted); font-weight: 700; }
.tt-next { font-size: 12.5px; color: var(--ink2); padding-top: 8px; }
.tt-next a { font-weight: 700; }
.fights-strip .fight { box-shadow: none; border-width: 1px; border-color: var(--hairline); }

/* ---------------------------------------------------------- usa-china (LOUD) */
.vs-mark { color: var(--china); }
.medals { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin: 10px 0; }
.medal { border-radius: 18px; padding: 22px; color: #fff; }
.medal.nat-usa { background: linear-gradient(135deg, #0a3161 0%, var(--usa) 100%); border-left: 0; }
.medal.nat-china { background: linear-gradient(135deg, #a01313 0%, var(--china) 100%); border-left: 0; }
.medal-flag { font-size: 34px; }
.medal-nat { font-family: var(--font-display); font-weight: 900; font-size: 34px; letter-spacing: 1px; }
.medal-rec { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 7vw, 72px); line-height: 1; }
.medal-sub, .medal-line { font-size: 13px; opacity: .92; margin-top: 6px; }
.medal .chip-early { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; }
.medal .bk-up { color: #9df0a8; } .medal .bk-down { color: #ffd2d2; }
.rostrow { display: flex; gap: 14px; flex-wrap: wrap; }
.rost { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 96px;
  text-decoration: none; font-weight: 800; font-size: 11.5px; text-align: center; }
.rost:hover span { text-decoration: underline; }
.uc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 0;
  border-bottom: 1px solid var(--hairline); font-size: 14px; }
.map-verbatim { white-space: pre-wrap; font-size: 12px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 10px; padding: 12px; max-width: 560px; }

/* ---------------------------------------------------------- grid (D1) */
.grid-sec { margin-top: 10px; }
.grid-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.grid-cat { font-family: var(--font-display); font-weight: 900; font-size: 22px; text-decoration: none;
  display: flex; flex-direction: column; }
.grid-cat:hover { text-decoration: underline; }
.grid-n { font-family: var(--font-sans); font-weight: 600; font-size: 11.5px; color: var(--muted); letter-spacing: .4px; }
.grid-rule { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 13px; }
.grid-rule:hover span { text-decoration: underline; }
.grid-field { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.grid-chip { text-decoration: none; }
.hashcell { word-break: break-all; font-size: 11px; }

@media (max-width: 640px) {
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .mastnav { margin-left: 0; }
  .reel-name { min-width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-run, .reel-spin, .reel-set, .cbomb-flash, .bomb-lit .spark circle:first-child,
  .bomb-det .burst, .reel-lock, .slotspin::after { animation: none !important; }
  .bar-fill { transition: none; }
}
@media print {
  .ticker, .mastnav, .sort-row { display: none; }
}

/* M3 — the fighter doors (recovered from the 7/26 blueprint) */
.doorbar { display: flex; gap: 10px; margin: 26px 0 6px; flex-wrap: wrap; }
.door-btn { background: none; border: 1px solid var(--hairline); color: var(--ink2);
  font: inherit; font-weight: 700; letter-spacing: 1.5px; padding: 10px 18px;
  border-radius: 10px; cursor: pointer; text-transform: uppercase; }
.door-btn:hover { border-color: var(--gold); color: var(--ink); }
.door-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.door-btn.on { border-color: var(--gold); color: var(--gold); }
.doors-on .g-panel { display: none; }
.doors-on .g-panel.on { display: block; }
.hist-y > summary, .hist-m > summary { cursor: pointer; font-weight: 800;
  letter-spacing: 1px; margin: 14px 0 4px; list-style: none; }
.hist-y > summary::-webkit-details-marker, .hist-m > summary::-webkit-details-marker { display: none; }
.hist-y > summary::before, .hist-m > summary::before { content: "\25B8  "; color: var(--gold); }
.hist-y[open] > summary::before, .hist-m[open] > summary::before { content: "\25BE  "; }
.hist-m { margin-left: 14px; }
.hist-day { margin-left: 28px; }
.hist-n { color: var(--ink2); font-weight: 400; font-size: 12px; letter-spacing: 0; }
.day-link { color: inherit; text-decoration: none; }
.day-link:hover, .day-link:focus-visible { color: var(--gold); }
.hist-day:target h3 { color: var(--gold); }
a.led-win { text-decoration: none; }
a.led-win:hover, a.led-win:focus-visible { color: var(--gold); }

/* M3.1 — footer: lockup bigger, creed and 18+ retired (owner + counsel 8/1) */
.foot-tag-big { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot-name { font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; letter-spacing: 2.5px; }
.foot-tagline { font-size: clamp(13px, 1.8vw, 17px); letter-spacing: 3px; color: var(--ink2); }
.amuse { font-size: 13px; letter-spacing: 1.2px; color: var(--ink2); text-transform: uppercase; }
.glad-grid { flex-wrap: wrap; }

/* THE PODIUM — top three, each with a banner (M3.5, owner's call).
   The movement between settlements is the show. */
.podium { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 18px; }
.pod-label { font-weight: 900; letter-spacing: 2px; font-size: 12px; color: var(--ink2); }
.podrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-radius: 10px; padding: 10px 16px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 2px solid var(--baseline); }
.podrow:hover { filter: brightness(0.97); }
.pod-rank { font-weight: 900; letter-spacing: 1.5px; font-size: 14px; white-space: nowrap; }
.pod-name { font-weight: 900; letter-spacing: 1px; font-size: clamp(16px, 2.6vw, 24px); }
.pod-nums { font-size: 13px; color: var(--ink2); }
.pod-gold { border: 3px solid var(--gold); box-shadow: 0 2px 0 var(--gold); }
.pod-gold .pod-name { font-size: clamp(20px, 3.2vw, 28px); }
.pod-silver { border: 2px solid #a9a9b4; box-shadow: 0 1px 0 #a9a9b4; }
.pod-bronze { border: 2px solid #b26a2f; box-shadow: 0 1px 0 #b26a2f; }
.podrow.nat-usa, .podrow.nat-china { border-left-width: 8px; }


/* ---- REVEAL-AT-CLOSE (2026-08-02). The picks, once every seat is in.
   The headline is the SPLIT, never the direction of one seat: a reader takes
   "10 of 13 say YES" in half a second and needs nothing explained. Crests
   carry the direction underneath for anyone who wants it. */
.blk-state.blk-open { display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 6px 14px; }
.verdict { font-family: var(--font-display); font-weight: 900; font-size: 19px;
  letter-spacing: .5px; text-transform: uppercase; }
.verdict b { color: var(--win-text); }
.picks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.picks .pick { display: inline-flex; border-radius: 50%; padding: 2px;
  line-height: 0; box-shadow: 0 0 0 2px var(--hairline); }
.picks .pick-yes { box-shadow: 0 0 0 2px var(--win); }
.picks .pick-no  { box-shadow: 0 0 0 2px var(--loss); }


/* MONEY on the big chart — the default view. Losses draw left of the centre
   line in the loss red; the fill's nation color yields to the sign, because
   a red bar growing rightward reads as a win. */
.bar-fill.bk-neg { background: var(--loss) !important; }
.bar-val.bk-up { color: var(--win-text); }
.bar-val.bk-down { color: var(--loss); }


/* TOP EARNER — the banner above the standings. One name, one number. */
.earner { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto;
  align-items: center; gap: 4px 18px; text-decoration: none; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 14px; padding: 18px 22px; margin: 18px 0 10px;
  background: var(--paper); position: relative; overflow: hidden; }
.earner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; }
.earner.nat-usa::before { background: var(--usa); }
.earner.nat-china::before { background: var(--china); }
.earner-label { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 900;
  font-size: 13px; letter-spacing: 3px; opacity: .65; }
.earner-id { display: flex; align-items: center; gap: 14px; }
.earner-name { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 4vw, 34px);
  letter-spacing: .5px; text-transform: uppercase; }
.earner-val { font-size: clamp(26px, 5vw, 44px); font-weight: 800; justify-self: end; }
.earner-sub { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink2); letter-spacing: .3px; }
@media (max-width: 640px) {
  .earner { grid-template-columns: 1fr; }
  .earner-val { justify-self: start; }
}


/* THE LEDGER OF NATIONS — USA money vs CHINA money, on standings. */
.natline { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto auto;
  align-items: center; gap: 2px 16px; text-decoration: none; color: var(--ink);
  border: 2px solid var(--hairline); border-radius: 12px; padding: 14px 20px; margin: 10px 0 14px; }
.natline-lab { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 900;
  font-size: 12px; letter-spacing: 2.6px; opacity: .6; }
.nat-half { display: flex; align-items: baseline; gap: 10px; font-size: clamp(20px, 3.5vw, 30px); }
.nat-half b { font-weight: 800; }
.nat-usa-half { justify-self: end; flex-direction: row-reverse; }
.nat-chn-half { justify-self: start; }
.nat-n { font-size: 12px; color: var(--ink2); letter-spacing: .4px; }
.nat-vs { font-family: var(--font-display); font-weight: 900; font-size: 15px;
  letter-spacing: 1px; opacity: .5; }
.natline-sub { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink2);
  letter-spacing: .3px; text-align: center; }
@media (max-width: 560px) {
  .natline { grid-template-columns: 1fr; }
  .nat-usa-half, .nat-chn-half { justify-self: start; flex-direction: row; }
  .nat-vs { display: none; }
  .natline-sub { text-align: left; }
}

/* USA × CHINA page — money leads the medal box */
.medal-money { font-size: clamp(30px, 6vw, 52px); font-weight: 800; line-height: 1.05; margin: 6px 0 0; }

/* ---- M2.7 (owner, 8/2): the money is the opening shot ---------------- */

/* TOP EARNER, hero scale. The crest and the dollar figure carry the first
   viewport; the contrast line is the writer's sentence, set in the display
   face so it reads as a headline and not a footnote. */
.earner-hero { padding: 24px 26px; border-width: 4px;
  box-shadow: 5px 5px 0 rgba(11,11,11,.12); }
.earner-hero .earner-label { font-size: 15px; letter-spacing: 3.6px; opacity: .75; }
.earner-hero .earner-name { font-size: clamp(30px, 6vw, 52px); }
.earner-hero .earner-val { font-size: clamp(34px, 7vw, 64px); }
.earner-hero .crest { width: clamp(56px, 12vw, 92px); height: auto; }
.earner-contrast { grid-column: 1 / -1; font-family: var(--font-display);
  font-weight: 900; text-transform: uppercase; letter-spacing: .6px;
  font-size: clamp(17px, 3vw, 26px); line-height: 1.1; margin-top: 6px; }

/* LEDGER OF NATIONS — the margin is the verdict, set like one. */
.natline-verdict { grid-column: 1 / -1; text-align: center;
  font-family: var(--font-display); font-weight: 900; letter-spacing: .8px;
  font-size: clamp(18px, 3.2vw, 28px); margin-top: 4px; }
@media (max-width: 560px) { .natline-verdict { text-align: left; } }

/* USA × CHINA — THE VERDICT strip above the medals. */
.uc-verdict { display: flex; align-items: baseline; gap: 10px 18px;
  flex-wrap: wrap; border: 3px solid var(--ink); border-radius: 14px;
  padding: 16px 20px; margin: 14px 0 16px; background: var(--surface);
  box-shadow: 4px 4px 0 rgba(11,11,11,.10); }
.ucv-half { font-size: clamp(24px, 5vw, 44px); }
.ucv-half b { font-weight: 800; }
.ucv-vs { font-family: var(--font-display); font-weight: 900;
  font-size: 15px; letter-spacing: 1px; opacity: .5; }
.ucv-lead { font-family: var(--font-display); font-weight: 900;
  text-transform: uppercase; letter-spacing: .8px;
  font-size: clamp(18px, 3.4vw, 30px); margin-left: auto; }
.ucv-sub { flex-basis: 100%; font-size: 12.5px; color: var(--ink2); }
@media (max-width: 640px) { .ucv-lead { margin-left: 0; } }

/* SIGNATURE MOMENTS — the record's own anecdotes. */
.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px; }
.moment { display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1px solid var(--hairline);
  border-left: 6px solid var(--gold); border-radius: 12px; padding: 14px 16px; }
.moment:hover { border-color: var(--baseline); border-left-color: var(--gold);
  background: var(--paper); }
.mo-tag { font-family: var(--font-display); font-weight: 900; font-size: 12px;
  letter-spacing: 2.6px; color: var(--ink2); }
.mo-id { line-height: 0; min-height: 40px; display: flex; align-items: center; }
.mo-score { font-size: 26px; font-weight: 800; line-height: 1; }
.mo-fact { font-weight: 800; font-size: 15.5px; line-height: 1.35; }
.mo-q { font-size: 13px; color: var(--ink2); line-height: 1.35; }
.mo-tail { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* THE GRID — a topic with no ruler yet keeps its row, crown blank. */
.grid-rule-none { color: var(--muted); font-weight: 800; font-size: 12.5px;
  letter-spacing: .6px; border: 1px dashed var(--baseline); border-radius: 999px;
  padding: 8px 14px; }

/* CARD QUALITY — one glance at how hard the night is. */
.cardq { font-size: 13.5px; color: var(--ink2); font-weight: 600;
  letter-spacing: .3px; margin: 2px 0 6px; }
.cardq b { color: var(--ink); }

/* AWAITING SETTLEMENT — a revealed call standing in the open. */
.chip-wait { background: var(--seal-wash); border-color: var(--baseline);
  color: var(--ink2); }

/* Mobile pass (#8, owner 8/2): the shareable pages hold on a phone. */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .board { min-width: 640px; }
  .earner-hero { padding: 18px 16px; }
  .earner-hero .earner-val { justify-self: start; }
  .medals { grid-template-columns: 1fr; }
  .grid-field { margin-left: 0; }
  .moments { grid-template-columns: 1fr; }
}

/* the little i — the lay reader's door (owner, 8/4) */
.info-i { display:inline-flex; align-items:center; justify-content:center;
  width:16px; height:16px; margin-left:6px; padding:0; border-radius:50%;
  border:1.5px solid var(--gold); color:var(--gold); background:transparent;
  font:italic 700 11px/1 Georgia, serif; cursor:pointer; vertical-align:middle; }
.info-i:hover, .info-i:focus { background:var(--amber-wash); }
.info-pop { position:absolute; z-index:60; max-width:320px; padding:12px 14px;
  background:var(--ink); color:#f5f4ef; border:1px solid var(--gold);
  border-radius:8px; font:13px/1.5 var(--font-sans); white-space:pre-line;
  box-shadow:0 6px 24px rgba(0,0,0,.25); text-align:left; }

/* batch2 (8/5) — phones: nothing drags the page sideways. The two tables
   the 8/2 mobile pass missed now sit in the same .tablewrap the standings
   board already uses (build.py); here, the standings preview learns to
   wrap its numbers under the name instead of running past the edge. */
@media (max-width: 640px) {
  .prev-row { flex-wrap: wrap; gap: 4px 12px; }
  .prev-name { min-width: 0; flex: 1 1 calc(100% - 44px); }
  .prev-rec { min-width: 0; }
}
/* batch2 — the page-age line under the two facts: same family, quieter. */
.fresh-stale { color: var(--ink2); }

/* batch2 second cut (b2b) — the SEALED reason and the ring key: the same
   quiet family as every other gloss line. */
.lock-why { font-size: 12.5px; color: var(--ink2); letter-spacing: .3px; }
.picks-key { font-size: 12.5px; color: var(--ink2); letter-spacing: .3px;
  margin: 2px 0 10px; }
