/* PokéBench leaderboard — the 'PokeBench Race' layout. Card + replay styles live at the bottom. */
/* Live-site run card + journey replay, extracted from mocks/d-map/index.html (itself copied from site/styles.css).
   Scoped to the modal via its own token set so the card keeps the live-site palette. */
dialog#run-modal { --ink: #101c20; --paper: #f8f7eb; --teal: #2dd4bf; --blue: #38bdf8; --cyan: #00f0f0; --gold: #ffce52; --red: #ff7661; --muted: #506157; --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace; font: 14px/1.6 system-ui, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
dialog#run-modal .tag { display: inline-flex; padding: 2px 5px; border: 1px solid #748379; border-radius: 3px; font: 800 8px/1.5 var(--mono); }
dialog#run-modal .tag.local { background: #d9edbf; }
dialog#run-modal .tag.api { background: #cceef7; }
/* modal chrome */
dialog#run-modal { width: min(560px, calc(100% - 32px)); max-height: 88dvh; overflow: auto; background: var(--paper); color: var(--ink); padding: 0; border: 3px solid var(--ink); border-radius: 9px; box-shadow: 7px 7px 0 var(--teal); }
dialog#run-modal::backdrop { background: #101c20c9; }
.modal-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; border: 2px solid var(--paper); border-radius: 5px; background: var(--ink); color: var(--paper); font: 800 15px var(--mono); }

/* the modal's content = the live site's run card, copied verbatim from site/styles.css */
.sprite-defs { position: absolute; overflow: hidden; }
.run-card { color: var(--ink); min-width: 0; text-align: left; overflow-wrap: anywhere; perspective: 1500px; cursor: pointer; touch-action: manipulation; border-radius: 9px; }
.card-inner { display: grid; position: relative; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.run-card:not(.is-flipped) .card-back, .run-card.is-flipped .card-front { position: absolute; inset: 0; overflow: hidden; }
.run-card.is-flipped .card-inner { transform: rotateY(180deg); }
.card-face { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-radius: 9px; box-shadow: 5px 6px 0 var(--ink); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-front { transform: rotateY(0deg); }
.card-back { transform: rotateY(180deg); }
.card-face[inert] { pointer-events: none; }
.card-front .card-body { display: flex; flex-direction: column; flex: 1; }
.flip-hint { margin-block: auto; padding: 30px 0; color: #35654f; font: 800 12px/1.7 var(--mono); text-align: center; }
.flip-hint span { display: block; font-size: 9px; font-weight: 650; }
.run-card:focus-visible { outline-offset: 9px; }
.card-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 39px; padding: 7px 13px; background: var(--ink); color: #ffa48f; font: 850 9px/1.5 var(--mono); border-radius: 5px 5px 0 0; }
.card-ribbon > span { display: inline-flex; align-items: center; gap: 7px; }
.is-winner .card-face { border-color: #202b21; box-shadow: 0 0 0 2px #ffe597, 6px 8px 0 #15221d; }
.is-winner .card-ribbon { background: var(--gold); color: var(--ink); border-bottom: 2px solid var(--ink); }
.hero-ribbon { padding: 6px 13px; background: var(--teal); border-bottom: 2px solid var(--ink); font: 850 9px/1.5 var(--mono); }
.card-body { padding: 17px; }
.model-name { font: 900 21px/1.25 var(--mono); letter-spacing: -.9px; }
.provider { font-size: 11px; color: var(--muted); margin-top: 5px; }
.ingame-name { font: 700 11px/1.4 var(--mono); color: var(--muted); margin-top: 4px; }
.ingame-name .player-name { color: #b3261e; }
.ingame-name .rival-name { color: #1d4ed8; }
.card-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.furthest { margin-top: 12px; font: 800 11px/1.6 var(--mono); }
.furthest b { background: #dde8cc; padding: 3px 5px; margin-right: 4px; white-space: nowrap; }
.is-winner .furthest b { background: #f9df8b; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin: 13px 0; border-block: 1px solid #bdc9b9; }
.stats > div { padding: 9px 0; }
.stats > div:nth-child(even) { padding-left: 13px; border-left: 1px solid #bdc9b9; }
.stats > div:nth-child(n+3) { border-top: 1px solid #bdc9b9; }
.stats dt { font: 750 8px/1.5 var(--mono); color: var(--muted); }
.stats dd { font: 850 15px/1.5 var(--mono); }
.stats small { font-size: 9px; font-weight: 600; color: #506157; }
.free { color: #096b52; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.compare-select { padding: 7px 9px; background: transparent; border: 1px solid #596d5d; border-radius: 4px; min-height: 36px; font: 800 10px/1.5 var(--mono); }
.compare-select[aria-pressed=true] { background: var(--teal); border-color: var(--ink); }
.compare-select:disabled { opacity: .5; }
.inspect, .button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 38px; border: 2px solid var(--ink); border-radius: 5px; padding: 7px 11px; color: var(--paper); background: var(--ink); font: 800 10px/1.5 var(--mono); text-decoration: none; }
.inspect > span { color: var(--cyan); font-size: 17px; line-height: 1; }
.inspect:hover, .button:hover { background: #294238; }
.inspect:disabled, .button:disabled { background: #dfe3d9; color: #606a60; border-color: #a3afa0; }
.vod-note { font: 650 9px/1.5 var(--mono); color: var(--muted); text-align: right; margin-top: 7px; }
.full-card .card-actions { padding-top: 14px; }
.full-card .stats dd { font-size: 17px; }
.replay-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 2px solid var(--ink); }
.replay-heading h3 { font: 850 11px/1.5 var(--mono); }
.replay-heading .text-button { flex: none; font-size: 9px; }
.text-button { border: 0; padding: 6px 0; text-decoration: underline; text-underline-offset: 4px; background: transparent; font: 800 11px/1.6 var(--mono); }
.replay-map { position: relative; isolation: isolate; }
.run-map { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.map-place-names { font: 800 9px var(--mono); fill: #35513c; }
.replay-trail { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linejoin: round; }
.replay-trainer, .replay-finish, .replay-skulls { pointer-events: none; }
.map-pin { --pin-color: #e5e8cb; position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); width: 24px; height: 24px; padding: 0; display: grid; place-items: center; border: 2px solid #2e513d; border-radius: 50% 50% 50% 2px; color: #173627; background: var(--pin-color); font: 850 10px/1 var(--mono); z-index: 1; }
.map-pin.unreached { background: #c1cba8; color: #65715a; border-color: #819074; }
.map-pin.unknown { border-style: dashed; }
.map-pin.is-hit { --pin-color: var(--teal); box-shadow: 0 0 0 3px var(--gold); }
.map-pin.is-hit:after { content: ""; position: absolute; inset: -5px; border: 2px solid var(--gold); border-radius: 50%; animation: pin-arrival .5s ease-out both; pointer-events: none; }
.run-card:not(.replay-playing) .map-pin.is-hit:after { animation-play-state: paused; }
@keyframes pin-arrival { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.pin-sign { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 180px; padding: 7px 8px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 #101c2066; font: 750 10px/1.5 var(--mono); text-align: left; visibility: hidden; opacity: 0; pointer-events: none; }
.map-pin.sign-left .pin-sign { left: auto; right: -8px; transform: none; }
.map-pin.sign-right .pin-sign { left: -8px; transform: none; }
.map-pin:hover, .map-pin:focus { z-index: 4; }
.map-pin:hover .pin-sign, .map-pin:focus .pin-sign { visibility: visible; opacity: 1; }
.blackout-overlay { position: absolute; inset: 0; background: #000; opacity: 0; z-index: 5; pointer-events: none; }
.map-caption { font: 650 8px/1.6 var(--mono); color: #3b5545; padding: 6px 12px; background: #e3ecd5; border-block: 1px solid #bac7af; }
.replay-body { padding: 11px 12px 5px; }
.running-label { font: 850 9px/1.5 var(--mono); }
.running-label span { font-size: 8px; font-weight: 650; color: var(--muted); }
.replay-stats { margin: 7px 0; }
.replay-stats > div { padding-block: 5px; }
.replay-stats dd { font-variant-numeric: tabular-nums; }
.counter-stage { position: relative; display: inline-block; }
[data-counter="turns"] { display: inline-block; transform-origin: left center; }
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; background: var(--gold); box-shadow: 0 0 5px #ffdf7a; z-index: 2; }
.spark:nth-child(3n+1) { background: #ffe9a3; width: 6px; height: 6px; }
.spark:nth-child(3n+2) { background: #d99a00; width: 7px; height: 7px; }
.replay-toolbar { padding: 8px 12px 0; border-bottom: 2px solid var(--ink); background: #f3f1e4; }
.replay-controls { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.replay-controls button { min-height: 36px; padding: 6px 8px; border: 1px solid #596d5d; background: #e3ecd5; border-radius: 3px; font: 800 9px/1.5 var(--mono); }
.replay-controls [data-replay="play"] { background: var(--ink); color: var(--paper); min-width: 54px; }
.replay-status { margin-left: auto; color: var(--muted); font: 650 8px/1.5 var(--mono); }
.replay-progress { display: block; width: 100%; height: 6px; appearance: none; border: 0; background: #d7dfcc; accent-color: #008577; margin: 8px 0 10px; }
.replay-progress::-webkit-progress-bar { background: #d7dfcc; }
.replay-progress::-webkit-progress-value { background: #008577; }
.replay-progress::-moz-progress-bar { background: #008577; }
.provenance { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 5px 8px; font: 650 10px/1.5 var(--mono); padding: 3px 0 13px; }
.provenance dt { color: var(--muted); }
.run-details { border-top: 1px solid #bdc9b9; padding-top: 9px; }
.ladder-heading { display: flex; justify-content: space-between; gap: 6px; font: 750 8px/1.5 var(--mono); }
.ladder-heading span { color: var(--muted); font-size: 7px; }
.receipt-list { list-style: none; padding: 0; margin: 7px 0; font: 650 10px/1.5 var(--mono); }
.receipt-list li { display: grid; grid-template-columns: 19px minmax(0,1fr) 40px 42px; align-items: center; gap: 4px; padding: 4px 3px; border-top: 1px dotted #b3c1a8; }
.receipt-list .rung-number { font-size: 8px; color: var(--muted); }
.receipt-turn, .receipt-delta { text-align: right; font-variant-numeric: tabular-nums; }
.receipt-list .pending { color: #53674d; }
.receipt-list .is-hit { background: #d8ebd0; color: var(--ink); }
.receipt-list .is-hit .rung-number { background: var(--teal); color: var(--ink); text-align: center; }
.receipt-list .hardest { border-left: 3px solid #aa791c; }
.receipt-list .hardest.is-hit { background: #f5e3aa; }
.receipt-list em { display: block; font-style: normal; color: #795110; font-size: 8px; }
.receipt-list .unreached { color: #798170; }
.receipt-note { font: 650 8px/1.6 var(--mono); color: var(--muted); margin: 8px 0 10px; }
.run-caveat { font: 650 8px/1.6 var(--mono); color: #795110; background: #f6e9c2; border: 1px solid #d9bf7a; padding: 6px 8px; margin: 8px 0 10px; }
.run-caveat b { display: block; letter-spacing: .06em; }
.run-details .provenance { grid-template-columns: 58px minmax(0,1fr) 47px minmax(0,1fr); gap: 4px 8px; font-size: 9px; border-top: 1px solid #bdc9b9; padding-top: 8px; }
.trophy { width: 25px; height: 28px; display: inline-block; flex: none; shape-rendering: crispEdges; }
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .001ms !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .run-card .card-inner, .run-card.is-flipped .card-inner, .run-card .card-face { transform: none; }
  .card-face[inert] { visibility: hidden; }
  .map-pin.is-hit:after { display: none; }
}

/* ---- page ---- */
:root {
  --bg: #f4eed8; --card: #fbf7e8; --ink: #1e1b16; --gold: #f7d45c; --green: #d7e6bf; --blue: #cfe8f0;
  --muted: #4a4539; --progress: #7f9e6c; --track: #e2cf7a; --stuck: #ece5cc; --offline: #c9c1a6; --teal: #7fb5a3;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.4 'IBM Plex Mono', ui-monospace, monospace; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.page { max-width: 1040px; margin: 0 auto; padding: 28px 20px 60px; display: grid; gap: 22px; }
.box { background: var(--card); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn { font-weight: 700; background: var(--card); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 6px 12px; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn[aria-pressed="true"] { background: var(--gold); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* masthead: logo + wordmark + socials, same links as the live site */
.masthead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.wordmark { display: block; font-size: 22px; font-weight: 700; line-height: 1.1; }
.wordmark > span { color: #008577; }
.tagline { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.socials { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.social-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 3px solid var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.social-icon { width: 14px; height: 14px; fill: currentColor; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 3px solid var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-decoration: none; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--offline); border: 2px solid var(--ink); }
.live-pill.live .live-dot { background: #e0524a; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.podium { display: grid; grid-template-columns: 1fr 1.22fr 0.88fr; gap: 24px; align-items: end; margin-top: 12px; }
.pod { display: grid; grid-template-rows: 1fr auto; padding: 0; text-align: left; position: relative; }
.pod .body { padding: 16px 92px 14px 16px; display: grid; gap: 6px; align-content: end; }
.pod .place { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.pod .name { font-size: 18px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pod .meta { color: var(--muted); font-size: 13px; }
.pod .result { font-weight: 700; margin-top: 4px; }
.pod .foot { padding: 8px 16px; border-top: 3px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pod-sprite { position: absolute; right: 14px; bottom: 50px; width: 56px; height: auto; shape-rendering: crispEdges; }
/* Podium sizing is driven by PLACE, not by content. 1st (centre) is biggest, then
   2nd (left), then 3rd (right). The 2-line name clamp above bounds the tallest
   possible content at ~179px, so every floor here sits above it and the ladder is
   deterministic whatever the model ids happen to be. Without the clamp, 3rd place
   rendered TALLEST (meta/muse-spark-1.3-contributor wrapped to two lines). */
.pod-1 { min-height: 214px; }
.pod-2 { min-height: 196px; }
.pod-3 { min-height: 180px; }
.pod-1 .name { font-size: 21px; }
.pod-2 .name { font-size: 18px; }
.pod-3 .name { font-size: 16px; }
.pod-1 .place, .pod-1 .result { font-size: 13px; }
.pod-3 .place, .pod-3 .meta, .pod-3 .result { font-size: 12px; }
.pod-1 .pod-sprite { width: 66px; }
.pod-2 .pod-sprite { width: 56px; }
.pod-3 .pod-sprite { width: 48px; }
.pod-1 .body { padding-right: 104px; }
.pod-3 .body { padding-right: 78px; }
.pod.first { background: var(--gold); }
.pod.first .body { padding-top: 28px; }
.pod.first .place, .pod.first .meta { color: var(--ink); }
.pod.first .foot { background: var(--ink); color: var(--gold); }
.foot.local { background: var(--green); }
.foot.api { background: var(--blue); }

.race { padding: 18px 20px 22px; display: grid; gap: 14px; }
.track { position: relative; height: 12px; background: var(--track); border: 3px solid var(--ink); margin: 20px 4px 44px; }
.stops { position: absolute; inset: -3px; display: flex; justify-content: space-between; align-items: center; }
.stop { position: relative; display: block; padding: 0; border: 0; background: transparent; }
.stop i { display: block; width: 14px; height: 14px; background: var(--card); border: 3px solid var(--ink); }
.stop.filled i { background: var(--ink); }
.stop[aria-pressed="true"] i { background: var(--gold); }
.stop span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; text-align: center; font-size: 10px; font-weight: 700; line-height: 1.2; color: var(--muted); }
.stop[aria-pressed="true"] span { color: var(--ink); }

.rank-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rank-head h2 { margin: 0; font-size: 16px; }
.rank-head .count { color: var(--muted); font-size: 13px; }
.filters { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 4px 8px 4px 10px; font-size: 12px; font-weight: 700; }
.chip button { all: unset; cursor: pointer; font-weight: 700; font-size: 14px; line-height: 1; padding: 0 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin-top: 16px; }
.trainer { display: grid; grid-template-rows: 1fr auto; padding: 0; text-align: left; width: 100%; }
.trainer:hover, .pod:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.trainer .body { padding: 14px; display: grid; gap: 10px; }
.trainer .top { display: flex; align-items: center; gap: 10px; }
.rank { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border: 3px solid var(--ink); font-weight: 700; font-size: 13px; background: var(--card); }
.rank.top3 { background: var(--gold); }
.trainer .name { font-size: 16px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv .label { font-size: 10px; }
.kv .value { font-size: 20px; font-weight: 700; line-height: 1.1; }
.tagrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ptag { font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 2px 6px; border: 2px solid var(--ink); }
.ptag.local { background: var(--green); } .ptag.api { background: var(--blue); }
.ptag.rvb, .tag.rvb { background: var(--gold); justify-self: start; }
.categories { margin-left: 0; }
.bar { width: 96px; height: 10px; border: 2px solid var(--ink); background: var(--card); }
.bar i { display: block; height: 100%; background: var(--progress); }
.trainer .foot { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 3px solid var(--ink); font-size: 12px; font-weight: 700; background: var(--stuck); }
.trainer .foot.won { background: var(--gold); }
.sq { width: 10px; height: 10px; flex: none; border: 2px solid var(--ink); background: var(--green); }
.foot.won .sq { background: var(--ink); }
.empty { grid-column: 1 / -1; border: 3px dashed var(--ink); padding: 36px; text-align: center; color: var(--muted); font-weight: 700; }

dialog#run-modal { width: min(560px, calc(100% - 32px)); max-height: 88dvh; overflow: auto; padding: 0; border: 3px solid var(--ink); background: #f8f7eb; box-shadow: 7px 7px 0 var(--ink); }
dialog#run-modal::backdrop { background: #1e1b16cc; }
/* the dialog frame IS the card frame: drop the card's own border/shadow so nothing overflows */
dialog#run-modal .card-face, dialog#run-modal .is-winner .card-face { border: 0; border-radius: 0; box-shadow: none; }
dialog#run-modal .card-ribbon { border-radius: 0; }
/* hide the inert face outright (swapped at the flip's midpoint) so its replay art can't bleed through on mobile Chrome */
dialog#run-modal .card-face { transition: visibility 0s .4s; }
dialog#run-modal .card-face[inert] { visibility: hidden; }
@media (max-width: 560px) {
  dialog#run-modal { max-height: calc(100dvh - 20px); margin-top: 10px; }
  dialog#run-modal .card-body { padding: 13px; }
  dialog#run-modal .flip-hint { padding: 12px 0; }
  dialog#run-modal .run-details .provenance { grid-template-columns: 78px minmax(0, 1fr); }
  dialog#run-modal .provenance dd { overflow-wrap: anywhere; }
}
.modal-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; border: 2px solid #f8f7eb; border-radius: 5px; background: #101c20; color: #f8f7eb; font-weight: 700; font-size: 15px; }

@media (max-width: 720px) {
  .masthead { gap: 10px; }
  .tagline { display: none; }
  .socials { margin-left: auto; gap: 7px; }
  .live-pill { padding: 0 8px; }
  .podium { grid-template-columns: 1fr; }
  .pod-1, .pod-2, .pod-3 { min-height: 0; }
  .pod-1 .name, .pod-2 .name, .pod-3 .name { font-size: 18px; }
  .pod.first { order: -1; }
  .pod.first .body { padding-top: 16px; }
  /* the track becomes a two-column list of labelled stops */
  .track { height: auto; background: none; border: 0; margin: 4px 0 0; }
  .stops { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .stop { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 3px solid var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
  .stop[aria-pressed="true"] { background: var(--gold); }
  .stop i { flex: none; }
  .stop span { position: static; transform: none; width: auto; text-align: left; font-size: 11px; }
  .filters { margin-left: 0; }
}

.skip { position: fixed; top: -100px; left: 16px; padding: 12px 18px; background: var(--gold); z-index: 100; border: 3px solid var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.data-state { border: 3px dashed var(--ink); padding: 28px; text-align: center; color: var(--muted); font-weight: 700; display: grid; gap: 10px; justify-items: center; }
.data-state h2 { margin: 0; font-size: 16px; color: var(--ink); }
.data-state p { margin: 0; font-weight: 400; }
.data-state a { font-weight: 700; }
.data-state.error { border-color: #b3261e; }


/* colophon: the rules + source, restated at the bottom of the board */
.colophon { margin-top: 16px; padding-top: 20px; border-top: 3px solid var(--ink); display: grid; gap: 10px; color: var(--muted); font-size: 13px; }
.colophon p { margin: 0; max-width: 60ch; }
.colophon-links { display: flex; flex-wrap: wrap; gap: 18px; }
.colophon-links a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.colophon-fine { font-size: 12px; }
