/*
  World Predict, the daily paper.
  Every market is a news story, so the game is set like a newspaper: a blackletter
  nameplate, serif headlines, column rules, racing-form odds with dotted leaders,
  a ticker tape for market movers, and bets drawn as betting tickets that get
  rubber-stamped when they settle. The night edition (dark) is the default; the day edition is ink on newsprint.
  Green and red ink only ever mean Yes/No or gain/loss.
  Type: serif for headlines and reading, a plain sans for labels and controls,
  and mono only where digits need to line up.
*/
:root {
  --paper: #13120f;
  --paper-2: #1c1a16;
  --paper-3: #26231d;
  --slip: #1b1915;
  --ink: #ece5d5;
  --ink-2: #d2cab8;
  --muted: #a69d8b;
  --dim: #978e7c;
  --rule: #ece5d5;
  --rule-soft: #39342b;
  --rule-mid: #5d574b;
  --yes: #5cc58a;
  --yes-bg: #183424;
  --no: #ff7266;
  --no-bg: #3b1814;
  --live: #ff5e52;
  --focus: #93b3ff;
  --overlay: rgba(0, 0, 0, 0.66);
  --grain-a: 0.1;

  --f-mast: 'UnifrakturMaguntia', 'Old English Text MT', 'Times New Roman', serif;
  --f-serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-sans: 'IBM Plex Sans', system-ui, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --top-h: 56px;
  color-scheme: dark;
}

[data-theme='day'] {
  --paper: #f3eee3;
  --paper-2: #ebe4d4;
  --paper-3: #e0d7c3;
  --slip: #fbf8f0;
  --ink: #1b1915;
  --ink-2: #3a362f;
  --muted: #5f594e;
  --dim: #6c665a;
  --rule: #1b1915;
  --rule-soft: #cdc3ae;
  --rule-mid: #a39a86;
  --yes: #1d6b3c;
  --yes-bg: #dce8d6;
  --no: #b3261e;
  --no-bg: #f1d9d0;
  --live: #c0261c;
  --focus: #2449b5;
  --overlay: rgba(27, 25, 21, 0.55);
  --grain-a: 0.07;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
/* Newsprint grain: one small noise tile, fixed behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-a);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--ink) 22%, transparent); }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
code { font: 0.88em var(--f-mono); background: var(--paper-2); padding: 1px 5px; }
kbd { font: 500 11px var(--f-mono); color: var(--dim); border: 1px solid var(--rule-soft); padding: 0 5px; }

.ic { width: 16px; height: 16px; flex: none; }
.num, .pct, .sb, .wl b, .wl em, .rank, .fi-num, .seg-t b, .sum dd, .chart-top b, .tk, .chg { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.up { color: var(--yes); }
.down { color: var(--no); }
.flat { color: var(--muted); }
/* Small uppercase labels in the sans: kickers, table heads, field labels. */
.page-k, .ear-k, .bs-k, .stub-k, .tk-top, .field label, .toast-k, .rail-h, .odds-head, .kicker {
  font: 600 12px/1.4 var(--f-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- controls: square, inked, with a hard printed shadow */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 600 14px var(--f-sans); white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .06s, box-shadow .06s, background-color .1s;
}
.btn:hover:not(:disabled) { background: var(--paper-2); }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover:not(:disabled) { background: var(--ink-2); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.wide { width: 100%; margin-top: 14px; }
.btn.ghost { box-shadow: none; border-color: transparent; }
.btn.ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn.armed, .btn.armed:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn .ic { width: 15px; height: 15px; }
.more { display: inline-flex; align-items: center; gap: 5px; font: 600 13.5px var(--f-sans); color: var(--ink); }
.more .ic { width: 13px; height: 13px; transition: transform .12s; }
.more:hover .ic { transform: translateX(3px); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); border: 1.5px solid transparent; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn .ic { width: 17px; height: 17px; }

.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; font: 700 10.5px var(--f-sans); text-transform: uppercase; letter-spacing: .05em; flex: none; }
.tag.yes { color: var(--yes); background: var(--yes-bg); }
.tag.no { color: var(--no); background: var(--no-bg); }

.rank { font: 700 17px/1 var(--f-serif); font-variant-numeric: lining-nums; color: var(--muted); }
.rank.first { color: var(--ink); }
.online { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--yes); flex: none; }

.live-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--f-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.live-pill.off { color: var(--muted); }
.live-pill.off i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

.boot { min-height: 100vh; display: grid; place-content: center; gap: 16px; text-align: center; padding: 24px; color: var(--muted); }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--rule-soft); border-top-color: var(--ink); animation: spin .8s linear infinite; margin: 0 auto; }
.spinner.sm { width: 16px; height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- top bar */

.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-in { height: var(--top-h); padding: 0 32px; display: flex; align-items: center; gap: 28px; }
.np-mini { font: 400 25px/1 var(--f-mast); white-space: nowrap; letter-spacing: .01em; }
.brand { min-width: 0; overflow: hidden; }
.top-right { flex: none; }
.menu .theme-item { display: none; }
.brand .np-mini { display: block; }
.views { display: flex; align-self: stretch; gap: 4px; }
.views button { position: relative; display: flex; align-items: center; padding: 0 12px; font: 500 15px var(--f-sans); color: var(--muted); white-space: nowrap; }
.views button:hover, .views button.on { color: var(--ink); }
.views button.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.wallet { display: flex; align-items: center; gap: 18px; text-align: left; padding: 0 2px; }
.wl { display: flex; flex-direction: column; line-height: 1.2; }
.wl small { font: 600 10.5px var(--f-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.wl b { font-size: 14.5px; font-weight: 600; }
.wl-v { display: flex; align-items: baseline; gap: 6px; }
.wl em { font-style: normal; font-size: 11.5px; font-weight: 600; }
.wallet:hover b { text-decoration: underline; text-underline-offset: 3px; }
.menu-wrap { position: relative; }
.avatar-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 13px var(--f-sans); }
.menu { position: absolute; right: 0; top: calc(100% + 10px); width: 230px; background: var(--slip); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 6px; z-index: 30; }
.menu-head { display: flex; flex-direction: column; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--rule-soft); }
.menu-head b { font-size: 17px; }
.menu-head small { color: var(--muted); font-size: 13px; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; font-size: 15px; }
.menu button:hover { background: var(--paper-2); }

/* ---------- page layout */

.layout { padding: 8px 32px 56px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 19vw, 400px); gap: 32px; align-items: stretch; }
#main { container-type: inline-size; min-width: 0; }
#side { margin-top: 20px; display: flex; flex-direction: column; gap: 40px; min-width: 0; padding-left: 28px; border-left: 1px solid var(--rule); }
.bnav { display: none; }

/* ---------- masthead */

.masthead { text-align: center; padding-top: 18px; }
.mh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; padding-bottom: 14px; }
.nameplate { display: flex; align-items: center; justify-content: center; gap: .18em; font: 400 clamp(44px, 6.4cqi, 112px)/1 var(--f-mast); letter-spacing: .005em; white-space: nowrap; }
.nameplate .globe { width: .72em; height: .72em; margin: 0 .04em; transform: translateY(.04em); }
.ear { max-width: 240px; border: 1px solid var(--rule-soft); padding: 10px 12px 11px; text-align: left; display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.35; }
.ear.left { justify-self: start; }
.ear.right { justify-self: end; }
.ear b { font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ear span:last-child { color: var(--muted); }
.ear-k { color: var(--live); }
.edition { display: flex; justify-content: space-between; gap: 12px; padding: 7px 2px 6px; border-top: 4px double var(--rule); border-bottom: 1px solid var(--rule); font: 600 11.5px var(--f-sans); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.edition span:first-child { font-weight: 600; }

/* ---------- signed-out lede and join coupon */

.lede { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 24cqi, 420px); gap: clamp(28px, 3cqi, 56px); align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.lede-text { font-size: clamp(19px, 1.7cqi, 30px); line-height: 1.42; text-wrap: pretty; }
.lede-text b { font-weight: 700; }
.lede-text::first-letter { float: left; font-weight: 700; font-size: 3.15em; line-height: .78; padding: .1em .06em 0 0; }
.coupon { position: relative; padding: 20px 20px 18px; border: 2px dashed var(--ink); background: var(--slip); display: flex; flex-direction: column; gap: 12px; }
.coupon-h { display: flex; align-items: baseline; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--rule-soft); }
.coupon-h .ic { position: absolute; top: -10px; left: 14px; width: 20px; height: 20px; padding: 1px; background: var(--paper); transform: rotate(-90deg); }
.coupon-h span { font: 700 21px var(--f-serif); }
.coupon-h b { margin-left: auto; font: 600 12.5px var(--f-sans); text-transform: uppercase; letter-spacing: .05em; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { color: var(--muted); }
.field label span { text-transform: none; letter-spacing: 0; margin-left: 4px; color: var(--dim); }
.coupon input { height: 40px; padding: 0 10px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; font: 400 17px var(--f-serif); outline: 0; }
.coupon input:focus { border-bottom-width: 2.5px; }
.coupon input::placeholder { color: var(--dim); }
.field.pin input { font-family: var(--f-mono); letter-spacing: .4em; }
.coupon .btn { height: 42px; margin-top: 4px; font-size: 14.5px; }
.form-err { color: var(--no); font-size: 14px; }
.form-err:empty { display: none; }
.form-note { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- market movers ticker tape */

.ticker { display: flex; align-items: stretch; margin-top: 14px; background: var(--paper-2); color: var(--ink); height: 40px; overflow: hidden; border-block: 1px solid var(--rule-soft); }
.ticker-label { flex: none; display: flex; flex-direction: column; justify-content: center; padding: 0 16px 0 2px; font: 700 11.5px/1.2 var(--f-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--live); border-right: 1px solid var(--rule-soft); }
.ticker-label small { font-weight: 500; font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }
.ticker-track { flex: 1; min-width: 0; display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.ticker-run { flex: none; display: flex; align-items: center; animation: tape var(--dur, 60s) linear infinite; }
.ticker:hover .ticker-run, .ticker:focus-within .ticker-run { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-100%); } }
.tk { display: inline-flex; align-items: baseline; gap: 7px; padding: 0 4px; font-size: 13px; white-space: nowrap; }
.tk b { font-weight: 600; font-family: var(--f-serif); font-size: 15px; }
.tk:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tk-p { color: var(--muted); }
.tk-d.up { color: var(--yes); }
.tk-d.down { color: var(--no); }
.tk-sep { padding: 0 18px; font-size: 7px; color: var(--dim); }

/* ---------- section index and search */

.toolbar { display: flex; align-items: flex-end; gap: 24px; border-bottom: 1px solid var(--rule); }
.sections { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; column-gap: 24px; }
.tab { position: relative; flex: none; padding: 14px 0 13px; font: 500 15px var(--f-sans); color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); }
.tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink); }
.search { flex: none; display: flex; align-items: center; gap: 8px; width: 260px; height: 34px; margin-bottom: 8px; border-bottom: 1.5px solid var(--ink); color: var(--muted); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 400 15px var(--f-sans); color: var(--ink); }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { border-bottom-width: 2.5px; }
.search:focus-within kbd { display: none; }

/* ---------- the front page: stories in columns with column rules */

.front { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); overflow: hidden; }
.story { display: flex; flex-direction: column; min-width: 0; padding: 26px 30px 18px; margin: -1px 0 0 -1px; border-top: 1px solid var(--rule-mid); border-left: 1px solid var(--rule-soft); }
.story-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.story-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; margin-bottom: 14px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-bottom: 7px; color: var(--muted); font-size: 11.5px; }
.kicker .cat { color: var(--live); font-weight: 600; }
.kicker > .live-dot:not(.on) { display: none; }
.when.soon { color: var(--ink); font-weight: 600; }
.when.past { color: var(--dim); }
.live-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--live); font-weight: 600; }
.live-dot i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hed { font: 700 22px/1.2 var(--f-serif); letter-spacing: -0.01em; text-wrap: balance; }
.hed button { text-align: left; }
.hed button:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.hed.big { font-size: 27px; }
.dek { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ev-head .dek { -webkit-line-clamp: 3; }

/* Halftone newsprint photos: greyscale, pushed contrast, a dot screen on top. */
.photo { position: relative; display: block; overflow: hidden; background: var(--paper-2); color: var(--muted); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.82); }
.photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(0, 0, 0, .4) .7px, transparent 1.15px); background-size: 3px 3px; }
.photo.broken { display: grid; place-items: center; }
.photo.broken::after { display: none; }
.photo.thumb { width: 60px; height: 60px; border: 1px solid var(--rule); }
.photo.thumb .ic { width: 22px; height: 22px; }
.photo.thumb.lg { width: 76px; height: 76px; }
.photo.big { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--rule); }
.photo.big .ic { width: 48px; height: 48px; }
[data-theme='day'] .photo img { mix-blend-mode: multiply; filter: grayscale(1) contrast(1.3) brightness(1.06); }
[data-theme='day'] .photo::after { mix-blend-mode: multiply; background-image: radial-gradient(circle, rgba(0, 0, 0, .28) .7px, transparent 1.15px); }
.thumb-btn, .lead-art { display: block; align-self: flex-start; }

/* The lead story spans two columns with a big photo. */
@container (min-width: 760px) {
  .story.lead { grid-column: span 2; flex-direction: row; gap: 32px; }
  .story.lead .lead-art { flex: 0 0 40%; }
  .story.lead .hed { font-size: 34px; line-height: 1.1; }
  .story.lead .dek { font-size: 16.5px; -webkit-line-clamp: 2; }
}
@container (max-width: 759px) {
  .story.lead .lead-art { display: none; }
}

/* Odds, set like a racing form: name … dotted leader … chance, then the prices. */
.odds { flex: 1; }
.row { display: grid; grid-template-columns: minmax(0, max-content) minmax(14px, 1fr) 46px auto; align-items: center; gap: 10px; padding: 6px 0; }
.lbl { text-align: left; font-size: 16px; line-height: 1.3; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.lbl:hover { text-decoration: underline; text-underline-offset: 3px; }
.dots { align-self: center; height: 0; border-bottom: 1.5px dotted var(--rule-soft); transform: translateY(3px); }
.pct { text-align: right; font-size: 15px; font-weight: 600; transition: color .8s; }
/* Buy buttons are quiet tinted chips; they only fill with colour on hover. */
.bets { display: flex; gap: 6px; }
.sb { display: inline-flex; align-items: center; justify-content: space-between; gap: 5px; width: 74px; height: 30px; padding: 0 9px; font-size: 12.5px; font-weight: 600; transition: background-color .1s, color .1s; }
.sb span { font: 600 11.5px var(--f-sans); text-transform: uppercase; letter-spacing: .04em; }
.sb.yes { color: var(--yes); background: var(--yes-bg); }
.sb.no { color: var(--no); background: var(--no-bg); }
.sb.yes:hover:not(:disabled) { background: var(--yes); color: var(--paper); }
.sb.no:hover:not(:disabled) { background: var(--no); color: var(--paper); }
.sb:active:not(:disabled) { transform: translateY(1px); }
.sb:disabled { color: var(--dim); background: transparent; box-shadow: inset 0 0 0 1px var(--rule-soft); }
.resolved { width: 154px; height: 30px; display: grid; place-items: center; font: 700 11px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; border: 2px solid currentColor; transform: rotate(-2deg); }
.resolved.yes { color: var(--yes); }
.resolved.no { color: var(--no); }
.flash-up .pct { color: var(--yes); transition: none; }
.flash-down .pct { color: var(--no); transition: none; }
.story-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--rule-soft); }
.vol { font: 400 13px var(--f-sans); font-variant-numeric: tabular-nums; color: var(--dim); }

.grid-msg { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); padding: 48px 10px; text-align: center; border-top: 1px solid var(--rule-mid); }
.grid-msg .ic { width: 22px; height: 22px; }
.grid-more { grid-column: 1 / -1; text-align: center; padding: 22px; border-top: 1px solid var(--rule-mid); margin-top: -1px; }

.colophon { margin-top: 40px; padding-top: 14px; border-top: 4px double var(--rule); display: flex; align-items: baseline; gap: 18px; color: var(--muted); font-size: 14px; }
.colophon .np-mini { font-size: 20px; color: var(--ink); }
.colophon a { color: var(--ink); text-underline-offset: 2px; }

/* ---------- right rail */

.rail-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0 7px; border-top: 3px solid var(--rule); border-bottom: 1px solid var(--rule-mid); margin-bottom: 6px; font-weight: 700; }
.rail-h .more { font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.rail-sub { color: var(--dim); font-weight: 500; }
.board li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 52px; gap: 10px; align-items: baseline; padding: 8px 0; font-size: 16px; }
.board li + li { border-top: 1px dotted var(--rule-soft); }
.board li.me .who-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.board .num { text-align: right; font-size: 13px; }
.board .chg { font-size: 11.5px; }
.who { display: flex; align-items: center; gap: 7px; min-width: 0; }
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.empty-li { color: var(--muted); font-size: 14.5px; padding: 10px 0; }

.wire .fi { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 11px 0; font-size: 15px; line-height: 1.45; }
.wire .fi + .fi { border-top: 1px solid var(--rule-soft); }
.fi time { font: 500 11.5px var(--f-mono); color: var(--dim); padding-top: 3px; }
.fi-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fi-text b { font-weight: 700; }
.fi-text .tag { height: 17px; font-size: 10px; vertical-align: 2px; }
.fi-num { font-size: 12.5px; white-space: nowrap; color: var(--ink-2); }
.fi-num.up { color: var(--yes); font-weight: 600; }
.fi-num.down { color: var(--no); font-weight: 600; }
.fi-ctx { color: var(--dim); font: 400 13px var(--f-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wire.big .fi { grid-template-columns: 64px minmax(0, 1fr); font-size: 16.5px; padding: 13px 0; }
.wire.big .fi-ctx { font-size: 14px; }
.wire.big { border-top: 1px solid var(--rule); }

.sbet { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 8px 0; font-size: 15px; }
.sbet + .sbet { border-top: 1px dotted var(--rule-soft); }
.sbet-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbet:hover .sbet-l { text-decoration: underline; text-underline-offset: 3px; }
.sbet .num { font-size: 12px; }

/* ---------- inner pages */

.page-h { padding: 26px 0 20px; border-bottom: 4px double var(--rule); margin-bottom: 24px; }
.page-k { color: var(--live); font-weight: 600; }
.page-h h1 { font-size: clamp(36px, 5cqi, 52px); line-height: 1.02; letter-spacing: -0.02em; margin-top: 4px; }
.page-h p { color: var(--muted); font-size: 17px; margin-top: 8px; }

.box-score { display: grid; grid-template-columns: 1.5fr 1fr 1fr; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.bs { display: flex; flex-direction: column; gap: 2px; padding: 4px 22px 18px; min-width: 0; }
.bs:first-child { padding-left: 0; }
.bs + .bs { border-left: 1px solid var(--rule-soft); }
.bs-k { color: var(--muted); }
.bs b { font: 700 32px/1.1 var(--f-serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.bs.main b { font-size: 44px; }
.bs small { font: 500 13px var(--f-mono); }
@container (max-width: 600px) {
  .box-score { grid-template-columns: 1fr 1fr; }
  .bs.main { grid-column: 1 / -1; padding: 4px 0 16px; border-bottom: 1px solid var(--rule-soft); }
  .bs:nth-child(2) { border-left: 0; padding-left: 0; padding-top: 14px; }
  .bs:nth-child(3) { padding-top: 14px; }
}

.notice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: -12px 0 28px; border: 1.5px solid var(--ink); background: var(--slip); }
.notice > .ic { width: 22px; height: 22px; }
.notice > div { flex: 1; }
.notice p { color: var(--muted); font-size: 14.5px; }

.tsec { margin-bottom: 36px; }
.sec-title { display: flex; align-items: baseline; gap: 10px; font-size: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.count { font: 600 12px var(--f-mono); color: var(--muted); }

/* Open bets as ticket stubs with a perforated tear-off. */
.stubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.stub { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 168px; background: var(--slip); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.stub-main { padding: 14px 16px 14px; min-width: 0; }
.stub-k { display: flex; align-items: center; gap: 8px; color: var(--muted); min-width: 0; }
.stub-k span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13.5px; }
.stub-pick { font: 700 21px/1.2 var(--f-serif); margin: 6px 0 10px; }
.stub-nums { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 18px; margin: 0; justify-content: start; }
.stub-nums div { display: flex; flex-direction: column; }
.stub-nums dt { font: 600 10.5px var(--f-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.stub-nums dd { margin: 0; font: 600 14px var(--f-mono); }
.stub-nums small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.stub-nums small.up { color: var(--yes); }
.stub-nums small.down { color: var(--no); }
.stub-act { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px; border-left: 2px dashed var(--ink); }
.stub-act::before, .stub-act::after { content: ''; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.stub-act::before { top: -10px; clip-path: inset(50% 0 0 0); }
.stub-act::after { bottom: -10px; clip-path: inset(0 0 50% 0); }
.stub-act .btn { width: 100%; }
.status { font-size: 14px; color: var(--muted); }

/* Settled bets get a rubber stamp. */
.stamp { display: inline-grid; place-items: center; padding: 2px 7px; border: 2.5px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px; font: 700 11px var(--f-mono); text-transform: uppercase; letter-spacing: .12em; transform: rotate(-5deg); white-space: nowrap; }
.stamp.won { color: var(--yes); }
.stamp.lost { color: var(--no); }
.stamp.sold, .stamp.void { color: var(--muted); }
.settled { border-top: 1px solid var(--rule); }
.st { display: grid; grid-template-columns: 118px minmax(0, 1fr) 120px 100px 100px; gap: 16px; align-items: center; padding: 13px 0 13px 6px; }
.st + .st { border-top: 1px dotted var(--rule-soft); }
.st .stamp { justify-self: start; }
.st-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.st-main b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.st-main small { flex-basis: 100%; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .num { text-align: right; font-size: 13.5px; }
.st .num small { display: block; color: var(--dim); font-size: 11.5px; }
.st .pl { font-weight: 600; }
@container (max-width: 640px) {
  .st { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .st .stamp { grid-column: 2; grid-row: 1; justify-self: end; }
  .st-main { grid-column: 1; grid-row: 1; }
  .st .num { text-align: left; grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .st .num::before { content: attr(data-l); font: 600 10.5px var(--f-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); min-width: 70px; }
  .st .num small { display: inline; }
}

/* Standings, set like a sports table. */
.standings { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.standings th { font: 600 11.5px var(--f-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; padding: 0 10px 8px 0; border-bottom: 1.5px solid var(--rule); }
.standings td { padding: 13px 10px 13px 0; border-bottom: 1px dotted var(--rule-soft); vertical-align: middle; }
.standings .num { text-align: right; font-size: 14px; }
.standings th.num { text-align: right; }
.standings td.num small { display: block; font-size: 11.5px; }
.standings .rk { width: 48px; }
.standings .rank { font-size: 30px; }
.pl-name { font: 700 20px var(--f-serif); }
.pl-name em { font: 600 10.5px var(--f-sans); font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); vertical-align: 3px; margin-left: 6px; }
.standings td small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; }
.standings tr.me .nm { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@container (max-width: 640px) { .standings .hide-sm { display: none; } .pl-name { font-size: 17px; } .standings .rank { font-size: 24px; } }

.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--muted); padding: 10px 0 20px; font-size: 16.5px; }

/* ---------- dialogs */

.overlay { position: fixed; inset: 0; z-index: 50; background: var(--overlay); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; overflow-y: auto; }
.sheet { position: relative; width: 100%; max-width: 460px; background: var(--slip); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 22px 22px 20px; opacity: 0; transform: translateY(8px) rotate(-.4deg); transition: opacity .16s ease-out, transform .18s ease-out; }
.sheet:focus { outline: none; }
.sheet.in { opacity: 1; transform: none; }
.ev-sheet { max-width: 640px; }
.x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); border: 1.5px solid transparent; }
.x:hover { border-color: var(--ink); }
.x .ic { width: 18px; height: 18px; }
.ev-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding-right: 36px; padding-bottom: 14px; border-bottom: 4px double var(--rule); margin-bottom: 4px; }
.odds-head { display: grid; grid-template-columns: minmax(0, 1fr) 46px 154px; gap: 10px; padding: 8px 0 6px; color: var(--dim); }
.odds-head span:nth-child(2) { text-align: right; }
.odds.full { max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.odds.full .row { grid-template-columns: minmax(0, max-content) minmax(14px, 1fr) 46px auto; }
.src { color: var(--muted); font-size: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule-soft); }

/* The bet slip: a betting ticket. */
.ticket { padding-top: 18px; }
.tk-top { display: flex; justify-content: space-between; gap: 12px; padding: 0 40px 8px 0; border-bottom: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; }
.tk-code { color: var(--dim); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-ev { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.tk-pick { font: 700 27px/1.12 var(--f-serif); letter-spacing: -0.015em; margin: 2px 0 14px; }
.chart { min-height: 120px; margin-bottom: 14px; }
.chart-empty { display: grid; place-items: center; min-height: 110px; color: var(--muted); font-size: 14px; border-block: 1px solid var(--rule-soft); }
.chart-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.chart-top b { font-size: 21px; color: var(--ink); margin-right: 3px; }
.chart-top .chg { font-size: 12px; }
.chart-plot { position: relative; height: 72px; margin-right: 34px; color: var(--ink); }
.chart-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-plot .grid-l { stroke: var(--rule-soft); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.chart-plot .dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--live); }
.chart-plot .axis { position: absolute; right: -34px; font: 10.5px var(--f-mono); color: var(--dim); transform: translateY(-50%); }
.chart-plot .axis.hi { top: 4px; }
.chart-plot .axis.lo { top: calc(100% - 4px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-b { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px; border: 1.5px solid currentColor; background: var(--paper); box-shadow: 2px 2px 0 currentColor; transition: transform .06s, box-shadow .06s, background-color .1s, color .1s; }
.seg-t { font: 700 15px var(--f-sans); text-transform: uppercase; letter-spacing: .04em; }
.seg-b small { font-size: 13.5px; }
.seg-b.yes { color: var(--yes); }
.seg-b.no { color: var(--no); }
.seg-b.yes.on { background: var(--yes); color: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.seg-b.no.on { background: var(--no); color: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.seg-b:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.seg-b:disabled { opacity: .45; box-shadow: none; border-style: dashed; }
.tear { position: relative; height: 0; margin: 20px -22px 18px; border-top: 2px dashed var(--ink); }
.tear .ic { position: absolute; left: 14px; top: -11px; width: 20px; height: 20px; padding: 1px; background: var(--slip); }
.amt-box { display: flex; align-items: center; gap: 4px; height: 50px; border-bottom: 2px solid var(--ink); }
.amt-box span { font: 400 26px var(--f-serif); color: var(--muted); }
.amt-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 600 28px var(--f-mono); }
.chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.chips button { height: 30px; border: 1px solid var(--rule-soft); font: 600 12px var(--f-mono); color: var(--ink-2); text-align: center; }
.chips button:hover { border-color: var(--ink); color: var(--ink); }
.sum { margin: 16px 0 0; display: grid; gap: 3px; }
.sum div { display: grid; grid-template-columns: max-content minmax(10px, 1fr) max-content; align-items: baseline; gap: 6px; font-size: 15px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }
.sum .dots { transform: none; align-self: baseline; }
.sum .payout { margin-top: 8px; padding-top: 10px; border-top: 1.5px solid var(--ink); }
.sum .payout dt { color: var(--ink); font-weight: 700; font-size: 17px; }
.sum .payout dd { display: flex; flex-direction: column; align-items: flex-end; }
.sum .payout b { font-size: 22px; }
.sum .payout span { font-size: 12px; color: var(--yes); font-weight: 500; }
.slip-msg { margin-top: 12px; padding: 8px 10px; border-left: 3px solid var(--live); background: var(--paper-2); font-size: 14.5px; }
.slip-msg:empty { display: none; }
.confirm { width: 100%; height: 48px; margin-top: 14px; border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 700 15.5px var(--f-sans); text-align: center; transition: transform .06s, box-shadow .06s; }
.confirm.yes { background: var(--yes); color: var(--paper); }
.confirm.no { background: var(--no); color: var(--paper); }
.confirm:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.confirm:disabled { background: var(--paper-2); color: var(--muted); box-shadow: none; border-style: dashed; font: 500 15px var(--f-sans); }
.rules { margin-top: 16px; font-size: 14px; }
.rules summary { cursor: pointer; color: var(--muted); }
.rules summary:hover { color: var(--ink); }
.rules-body { margin-top: 10px; max-height: 220px; overflow-y: auto; padding-right: 6px; font-size: 14px; line-height: 1.5; columns: 2 220px; column-gap: 20px; column-rule: 1px solid var(--rule-soft); }
.rules-body p { margin: 0 0 8px; break-inside: avoid-column; }
.pre { white-space: pre-line; }

/* The stamp that lands on a slip when the bet goes through. */
.stamp.big { position: absolute; left: 50%; top: 46%; z-index: 2; padding: 8px 22px; font-size: 38px; letter-spacing: .14em; border-width: 4px; outline-width: 2px; outline-offset: 4px; background: color-mix(in srgb, var(--slip) 70%, transparent); transform: translate(-50%, -50%) rotate(-11deg); animation: stamp-in .3s cubic-bezier(.2, 1.4, .4, 1) both; }
.stamp.big.yes { color: var(--yes); }
.stamp.big.no { color: var(--no); }
@keyframes stamp-in { from { transform: translate(-50%, -50%) rotate(-11deg) scale(2.4); opacity: 0; } }

.invite h2 { font-size: 30px; margin: 4px 0 6px; }
.invite > p { margin-bottom: 18px; color: var(--muted); }
.copy-row { display: flex; gap: 10px; align-items: stretch; }
.copy-row input { flex: 1; min-width: 0; height: 38px; padding: 0 2px; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; font: 14px var(--f-mono); color: var(--ink); }
.note { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule-soft); font-size: 14px; color: var(--muted); }

/* ---------- toasts: bulletins clipped to the corner */

#toasts { position: fixed; z-index: 70; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(92vw, 380px); pointer-events: none; }
.toast { pointer-events: auto; width: 100%; display: flex; flex-direction: column; gap: 3px; background: var(--slip); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 10px 14px 12px; font-size: 15px; line-height: 1.4; animation: toast-in .2s ease-out; transition: opacity .3s, transform .3s; }
.toast-k { color: var(--live); font-weight: 600; }
.toast.ok .toast-k, .toast.win .toast-k { color: var(--yes); }
.toast.bad .toast-k { color: var(--no); }
.toast b { font-weight: 700; }
.toast.out { opacity: 0; transform: translateY(6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) rotate(1deg); } }

/* ---------- smaller screens */

@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; }
  #side { padding-left: 24px; }
  .invite-btn span { display: none; }
  .invite-btn { width: 36px; padding: 0; }
  .ear { max-width: 170px; font-size: 12.5px; }
  .ear b { font-size: 14px; }
}

/* Laptop widths: the search folds into its icon so the section tabs keep to one line. */
@media (min-width: 961px) and (max-width: 1500px) {
  .toolbar { position: relative; }
  .sections { padding-right: 48px; column-gap: clamp(16px, 1.5vw, 24px); }
  .search { position: absolute; right: 0; bottom: 0; z-index: 1; width: 38px; height: 47px; margin: 0; padding: 0 10px; background: var(--paper); border-bottom: 0; transition: width .18s ease-out; }
  .search kbd { display: none; }
  .search:focus-within, .search:has(input:not(:placeholder-shown)) { width: min(300px, 100%); border-bottom: 2.5px solid var(--ink); }
}

@media (max-width: 960px) {
  .top-in { padding: 0 16px; gap: 14px; justify-content: space-between; }
  .views, .top .live-pill span, .wl.cash { display: none; }
  .top-right { gap: 12px; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 0 16px 96px; }
  .signed-out .layout { padding-bottom: 40px; }
  #side { display: none; }
  .mh-row { grid-template-columns: minmax(0, 1fr); padding-bottom: 10px; }
  .ear { display: none; }
  .nameplate { font-size: clamp(34px, 11.5cqi, 64px); }
  .edition { font-size: 10.5px; letter-spacing: .05em; }
  .edition .ed-mid { display: none; }
  .lede { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 20px 0 24px; }
  .lede-text { font-size: 18px; }
  .lede { grid-template-columns: minmax(0, 1fr); }
  .toolbar { flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .search { width: auto; margin-top: 12px; }
  .search kbd { display: none; }
  .sections { column-gap: 18px; border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 2px; }
  .tab { padding: 9px 0 8px; font-size: 14.5px; }
  .search { margin-bottom: 0; }
  .ticker { margin: 12px -16px 0; border-inline: 0; }
  .ticker-label { padding-left: 16px; }
  .front { grid-template-columns: minmax(0, 1fr); margin: 0 -16px; }
  .story { padding: 22px 16px 14px; border-left: 0; margin-left: 0; }
  .bnav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1.5px solid var(--ink);
  }
  .bnav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font: 600 11.5px var(--f-sans); }
  .bnav button.on { color: var(--ink); }
  .bnav button.on::before { content: ''; position: absolute; top: -5px; left: 30%; right: 30%; height: 3px; background: var(--ink); }
  .bnav .ic { width: 21px; height: 21px; }
  .bnav .badge { position: absolute; top: 1px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--live); color: #fff; font: 600 10.5px/17px var(--f-sans); font-style: normal; text-align: center; }
  #toasts { right: 16px; left: 16px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .signed-out #toasts { bottom: 16px; }
  .overlay { padding: 0; place-items: end center; }
  .sheet { max-width: none; border-width: 1.5px 0 0; box-shadow: 0 -6px 0 rgba(0, 0, 0, .12); padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 94vh; overflow-y: auto; transform: translateY(24px); }
  .tear { margin-inline: -16px; }
  .odds.full { max-height: none; }
  .stub { grid-template-columns: minmax(0, 1fr); }
  .stub-act { border-left: 0; border-top: 2px dashed var(--ink); flex-direction: row; align-items: center; justify-content: space-between; }
  .stub-act::before, .stub-act::after { top: -9px; left: auto; }
  .stub-act::before { left: -10px; clip-path: inset(0 0 0 50%); }
  .stub-act::after { right: -10px; bottom: auto; clip-path: inset(0 50% 0 0); }
  .stub-act .btn { width: auto; }
}

@media (max-width: 520px) {
  .top .np-mini { font-size: 20px; }
  .top #theme-btn, .top .invite-btn { display: none; }
  .menu .theme-item { display: flex; }
  .wl small { font-size: 9px; }
  .row { grid-template-columns: minmax(0, 1fr) 42px auto; gap: 8px; }
  .row .dots { display: none; }
  .sb { width: 64px; padding: 0 7px; }
  .resolved, .odds-head span:last-child { width: 134px; }
  .odds-head { grid-template-columns: minmax(0, 1fr) 42px 134px; gap: 8px; }
  .odds.full .row { grid-template-columns: minmax(0, 1fr) 42px auto; }
  .hed { font-size: 20px; }
  .tk-pick { font-size: 23px; }
  .chart { min-height: 100px; }
  .chart-plot { height: 54px; }
  .chart-empty { min-height: 84px; }
  .notice { flex-direction: column; align-items: stretch; }
  .stub-nums { grid-template-columns: repeat(2, auto); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { overflow-x: auto; scrollbar-width: none; }
  .ticker-run[aria-hidden] { display: none; }
}
