/* Type is the pair Kefir uses on robrun.com, both under the SIL Open Font License (fonts/*-OFL.txt). No game art is in the styling. */
@font-face { font-family: "Sofia Sans Extra Condensed"; font-style: normal; font-weight: 700 900; font-display: swap; src: url(../fonts/sofia-sans-extra-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../fonts/roboto-condensed-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../fonts/roboto-condensed-latin-700-normal.woff2) format("woff2"); }

/* The game's own colours: warm black, warm white and its lime, used as a flat marker and never as a glow. */
:root {
  --ink: #171514; --ink-2: #4b4743; --ink-3: #736e68;
  --paper: #f2efe9; --panel: #fbfaf7; --line: #d3cdc2; --line-2: #e5e0d7; --wash: #eae6de;
  --sea: #2c6a00; --hot: #c8361e; --ok: #2c6a00;
  --lime: #c5fb31; --bar: #171514; --bar-ink: #ede9e4; --bar-line: #45413d;
  --top: 52px; --rail: 312px; --detail: 360px;
  --font: "Roboto Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", Impact, sans-serif;
  font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--paper); }
body { display: flex; flex-direction: column; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
kbd { font: 600 12px/1 var(--font); padding: 3px 6px; border: 1px solid currentColor; border-radius: 3px; opacity: .7; }

/* Top bar: the six sections and the search, on every page */
.top { position: relative; z-index: 20; height: var(--top); flex: none; display: flex; align-items: center; gap: 20px; padding: 0 16px; background: var(--bar); color: var(--bar-ink); }
.mark { display: flex; align-items: center; gap: 7px; font: 800 26px/1 var(--display); text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.mark b { padding: 4px 7px 2px; background: var(--lime); color: var(--bar); }
.nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav a { display: flex; align-items: center; height: 32px; padding: 2px 11px 0; font: 800 21px/1 var(--display); text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--lime); }
.nav a[aria-current] { background: var(--lime); color: var(--bar); }
.find { position: relative; margin-left: auto; flex: 0 1 440px; min-width: 150px; }
.top-q { width: 100%; height: 34px; padding: 0 34px 0 12px; border: 1px solid var(--bar-line); border-radius: 3px; background: #262422; color: #fff; }
.top-q::placeholder { color: #a39d95; }
.top-q:focus { outline: 2px solid var(--lime); outline-offset: -1px; }
.top-q::-webkit-search-cancel-button { filter: invert(1); }
.find-key { position: absolute; right: 8px; top: 8px; color: #a39d95; pointer-events: none; }
.top-q:focus + .find-key, .top-q:not(:placeholder-shown) + .find-key { display: none; }
.hits { position: absolute; right: 0; top: calc(100% + 8px); width: min(600px, calc(100vw - 20px)); max-height: min(72vh, 600px); overflow-y: auto; background: var(--panel); color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 14px 34px #0005; }
.hit { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 7px 12px; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.hit > span { display: grid; min-width: 0; }
.hit b, .hit small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit small { font-size: 13px; color: var(--ink-2); }
.hit > i { font-style: normal; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.hit:hover { background: var(--wash); }
.hit[data-on], .hit-all[data-on] { background: var(--lime); }
.hit[data-on] > i { color: var(--ink); }
.hit-all { display: block; padding: 9px 12px; font-weight: 700; }
.hits-note { padding: 9px 12px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.pic { flex: none; object-fit: contain; }
.pic.none { display: block; }

/* The pages inside the section you are in */
.subnav { flex: none; display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 clamp(6px, 4vw - 10px, 30px); background: var(--panel); border-bottom: 1px solid var(--line); }
.subnav a { padding: 9px 11px 6px; border-bottom: 3px solid transparent; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.view { display: contents; }
#app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.loading { padding: 40px; color: var(--ink-3); }

/* Map page */
.map-page { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) auto; }
.rail { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); }
.rail-head { padding: 12px 12px 0; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.field select, .field input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.field select { font-weight: 700; }
.field input::placeholder { color: var(--ink-3); }
.tabs { display: flex; gap: 2px; margin-top: 2px; }
.tabs button { flex: 1; padding: 8px 4px 9px; border: 0; background: none; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs b { display: inline-block; min-width: 18px; margin-left: 2px; padding: 0 5px; border-radius: 9px; background: var(--hot); color: #fff; font-size: 11px; line-height: 17px; }
.tabs b:empty { display: none; }
.rail-body { flex: 1; overflow-y: auto; padding: 4px 0 20px; overscroll-behavior: contain; }
.group { padding: 10px 12px 4px; }
.group + .group { border-top: 1px solid var(--line-2); }
.group header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.group h3 { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.link { border: 0; background: none; padding: 0; color: var(--sea); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.layer { display: grid; grid-template-columns: 16px 20px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.layer input { margin: 0; width: 15px; height: 15px; accent-color: var(--ink); }
.layer i, .row i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 12px; }
.layer:has(input:not(:checked)) span, .layer:has(input:not(:checked)) .glyph { opacity: .45; }
.glyph { flex: none; display: block; }
.rail-note, .src { padding: 14px 12px 0; font-size: 12px; color: var(--ink-3); }
.result-count { padding: 10px 12px 6px; font-size: 12px; color: var(--ink-2); }
.empty { padding: 16px 12px; color: var(--ink-2); }
.row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 12px; border: 0; border-bottom: 1px solid var(--line-2); background: none; text-align: left; }
.row:hover { background: var(--wash); }
.row span { flex: 1; min-width: 0; display: grid; }
.row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.slim { padding: 5px 0; border: 0; }
.plan-sum { display: grid; gap: 2px; padding: 12px; border-bottom: 1px solid var(--line); background: var(--wash); }
.plan-sum span { font-size: 12px; color: var(--ink-2); }
.plan-row { display: flex; align-items: center; border-bottom: 1px solid var(--line-2); }
.plan-row em { flex: none; width: 30px; text-align: center; font-style: normal; font-weight: 700; color: var(--ink-2); }
.plan-row .row { border: 0; padding-left: 0; }
.plan-actions { display: flex; gap: 8px; padding: 12px; }
.icon { flex: none; width: 30px; height: 30px; border: 0; background: none; border-radius: 4px; font-size: 17px; line-height: 1; color: var(--ink-2); }
.icon:hover { background: var(--wash); }
.icon:disabled { opacity: .25; cursor: default; }
.btn { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }

.stage { position: relative; min-width: 0; min-height: 0; background: #78c2c9; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; }
.stage-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: flex-start; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
.floors { display: flex; align-items: center; background: var(--panel); border: 1px solid #b9ae98; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px #0002; }
.floors span { padding: 0 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.floors button { min-width: 36px; height: 34px; padding: 0 9px; border: 0; border-left: 1px solid var(--line); background: none; font-weight: 700; }
.floors button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip-btn { height: 36px; padding: 0 12px; border: 1px solid #b9ae98; border-radius: 4px; background: var(--panel); font-weight: 700; box-shadow: 0 1px 2px #0002; }
.zoom { position: absolute; right: 12px; bottom: 34px; display: grid; background: var(--panel); border: 1px solid #b9ae98; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px #0002; }
.zoom button { width: 36px; height: 36px; border: 0; background: none; font-size: 19px; line-height: 1; }
.zoom button + button { border-top: 1px solid var(--line); }
.zoom button:hover { background: var(--wash); }
.scale { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #1d3a40; }
.scale span { display: block; height: 6px; border: 2px solid #1d3a40; border-top: 0; }
.showing { position: absolute; right: 12px; bottom: 10px; font-size: 11px; font-weight: 600; color: #1d3a40; }
.tip { position: absolute; top: 0; left: 0; max-width: 220px; padding: 6px 9px; background: var(--ink); color: #fff; border-radius: 4px; pointer-events: none; display: grid; font-size: 12px; z-index: 3; }
.tip span { color: #b9c7c6; }
.three { position: absolute; inset: 0; background: #f3ecdc; z-index: 2; }
.three canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.three #gl-pins { cursor: grab; }
.three-hint { position: absolute; left: 12px; bottom: 10px; font-size: 11px; font-weight: 600; color: #1d3a40; pointer-events: none; }
.only-phone { display: none; }

.detail { width: var(--detail); min-height: 0; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--line); padding-bottom: 24px; overscroll-behavior: contain; }
.d-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 8px 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.d-head > div { flex: 1; min-width: 0; }
.d-head h2 { font-size: 19px; line-height: 1.2; }
.kicker { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.detail section, .lede, .facts, .d-actions, .quote, .check, .stats { margin: 14px 16px 0; }
.detail h3 { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 4px; }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 10px; }
.facts div + div { border-top: 1px solid var(--line-2); }
.facts dt { color: var(--ink-3); font-size: 12px; padding-top: 1px; }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.facts .need { background: #fdf1e7; }
.facts .need dd { color: #8f3610; }
.facts .good { background: #eef6ec; }
.facts .good dd { color: #1f5b36; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.quote { padding: 10px 12px; border-left: 3px solid var(--line); color: var(--ink-2); background: var(--wash); }
.pub ul { border: 1px solid var(--line); border-radius: 4px; }
.pub li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 7px 10px; }
.pub li + li { border-top: 1px solid var(--line-2); }
.pub li span { color: var(--ink-3); font-size: 12px; }
.pub li.wide { display: block; font-size: 12px; color: var(--ink-2); }
.pub .src { padding: 6px 0 0; }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.near .row { padding-left: 0; padding-right: 0; }
.lede { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.stats div { padding: 8px 10px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: grid; }
.stats b { font-size: 19px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--ink-3); }
.plain li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line-2); }
.plain span { color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); }
.tags span::before { content: "· "; color: var(--ink-3); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.floor-block h3 { border-bottom: 1px solid var(--line); padding-bottom: 5px; }

/* Reference pages */
.page { flex: 1; overflow-y: auto; padding: 24px clamp(16px, 4vw, 40px) 60px; }
.page > * { max-width: 1180px; margin-inline: auto; }
.page h1 { font-size: 26px; line-height: 1.15; }
.page .lede { margin: 6px auto 18px; max-width: 1180px; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.bar input[type=search], .bar select, .bar input[type=number] { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.bar input[type=search] { flex: 1; min-width: 200px; }
.bar label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.seg button { height: 34px; padding: 0 11px; border: 0; background: none; font-weight: 600; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg a { display: flex; align-items: center; height: 34px; padding: 0 11px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a[aria-current] { background: var(--ink); color: #fff; }
.bar .seg { flex-wrap: wrap; }
.tabs-line { margin-bottom: 16px; }
.tabs-line .seg { width: max-content; max-width: 100%; }
.table-wrap { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); overflow: auto; max-height: calc(100vh - 230px); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td.wrap { white-space: normal; min-width: 220px; color: var(--ink-2); }
th { position: sticky; top: 0; background: var(--wash); font-size: 12px; color: var(--ink-2); z-index: 1; }
th button { border: 0; background: none; padding: 0; font-weight: 700; color: inherit; }
th[aria-sort] button::after { content: " ↓"; }
th[aria-sort="ascending"] button::after { content: " ↑"; }
td.num, th.num { text-align: right; }
tbody tr:hover { background: var(--wash); }
tr.best td { background: #eef6ec; }
.note { margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.cols { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.cols.half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols.lean { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.linkbox { flex: 1; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: 12.5px ui-monospace, Consolas, monospace; color: var(--ink-2); }
.toc { position: sticky; top: 0; display: grid; gap: 1px; max-height: calc(100vh - 150px); overflow-y: auto; }
.toc button { text-align: left; padding: 7px 10px; border: 0; border-left: 3px solid var(--line); background: none; font-weight: 600; color: var(--ink-2); }
.toc button[aria-current="true"] { border-left-color: var(--ink); color: var(--ink); background: var(--wash); }
.prose h2 { font-size: 18px; margin: 22px 0 6px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 10px; max-width: 72ch; }
.prose mark { background: none; color: var(--sea); font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.place { background: var(--panel); padding: 12px 14px; text-decoration: none; display: grid; gap: 6px; align-content: start; }
.place:hover { background: var(--wash); }
.place h3 { font-size: 15px; }
.place p { font-size: 12px; color: var(--ink-3); }
.place ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 8px; font-size: 12px; color: var(--ink-2); }
.place li b { color: var(--ink); font-variant-numeric: tabular-nums; }
#f-matches { display: flex; flex-wrap: wrap; gap: 4px; }
.callout { border: 1px solid #e3c9a0; background: #fdf4e3; border-radius: 4px; padding: 12px 14px; margin-bottom: 14px; max-width: 1180px; }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.fact { background: var(--panel); padding: 12px 14px; text-decoration: none; display: grid; gap: 2px; }
.fact:hover { background: var(--wash); }
.fact b { font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { font-size: 12px; color: var(--ink-2); }
.sub { font-size: 16px; margin: 20px auto 8px; }
.proof { max-width: 1180px; margin: 0 auto; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.proof > div { display: grid; grid-template-columns: 190px 1fr; gap: 4px 16px; padding: 10px 12px; }
.proof > div + div { border-top: 1px solid var(--line-2); }
.proof dt { font-weight: 700; }
.proof dd { margin: 0; }
@media (max-width: 820px) { .proof > div { grid-template-columns: 1fr; } }
.muted { color: var(--ink-3); font-weight: 400; }
.toc-head { padding: 12px 10px 4px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.toc-head:first-child { padding-top: 0; }
.mini { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 16px 0 6px; }
.bullets { list-style: disc; padding-left: 20px; max-width: 72ch; }
.bullets li { margin-bottom: 4px; }
.bullets.warn li::marker { color: var(--hot); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; max-width: 76ch; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; padding: 9px 12px 9px 0; }
.steps li + li { border-top: 1px solid var(--line-2); }
.steps li::before { content: counter(step); font-weight: 700; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-decoration: none; font-weight: 600; }
.jump a:hover { border-color: var(--ink-3); }
.live { border: 1px solid #b8d4bd; background: #f1f8f1; border-radius: 4px; padding: 12px 14px; margin-bottom: 16px; max-width: 1180px; }
.live h2 { font-size: 18px; margin: 2px 0 10px; }
.live .facts-row { margin-bottom: 8px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: #00000010; padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.o-got { color: #1f6b3a; } .o-died { color: #a32e2e; } .o-arrested { color: #a0660c; }
.share { margin: 16px auto; }
label.btn { display: inline-flex; align-items: center; cursor: pointer; }
.feed { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.feed-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-left: 3px solid currentColor; }
.feed-row + .feed-row { border-top: 1px solid var(--line-2); }
.feed-row span { color: var(--ink); } .feed-row i { font-style: normal; color: var(--ink-3); white-space: nowrap; font-size: 12px; }
.meter { display: inline-block; width: 70px; height: 6px; margin-right: 8px; background: var(--line-2); border-radius: 3px; overflow: hidden; vertical-align: middle; }
.meter i { display: block; height: 100%; background: var(--sea); }
.calc { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); margin-bottom: 14px; }
.calc label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.calc input, .calc select { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.calc output { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.box { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); padding: 14px 16px; }
.box h2 { font-size: 15px; margin-bottom: 8px; }
.big { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }

@media (max-width: 1100px) { :root { --rail: 272px; --detail: 320px; } }
@media (max-width: 820px) {
  .map-page { display: block; position: relative; }
  .stage { position: absolute; inset: 0; }
  .only-phone { display: inline-flex; align-items: center; }
  .rail { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: min(70%, 560px); border-right: 0; border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; box-shadow: 0 -6px 24px #0003; transform: translateY(100%); transition: transform .18s ease-out; }
  .rail[data-open="1"] { transform: none; }
  .detail { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; width: auto; max-height: 58%; border-left: 0; border-top: 1px solid var(--line); border-radius: 10px 10px 0 0; box-shadow: 0 -6px 24px #0003; }
  .zoom, .showing { display: none; }
  .cols, .cols.half, .cols.lean { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; display: flex; overflow-x: auto; }
  .toc button { white-space: nowrap; border-left: 0; border-bottom: 3px solid var(--line); }
  .toc-head { display: none; }
  .toc button[aria-current="true"] { border-bottom-color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }

/* Status page: the verdict, the day's strip and good/bad marks. */
.status { border: 1px solid var(--line); border-left: 6px solid var(--ink-3); border-radius: 4px; background: var(--panel); padding: 12px 16px; margin-bottom: 10px; max-width: 1180px; }
.status h2 { font-size: 26px; margin: 2px 0 4px; }
.status-up { border-left-color: var(--ok); } .status-up h2 { color: var(--ok); }
.status-problems { border-left-color: #b7791f; } .status-problems h2 { color: #8a5a12; }
.status-down { border-left-color: var(--hot); } .status-down h2 { color: #a33d12; }
.status-maintenance { border-left-color: var(--sea); } .status-maintenance h2 { color: var(--sea); }
.strip { display: grid; grid-template-columns: repeat(49, minmax(0, 1fr)); gap: 2px; max-width: 1180px; margin-top: 4px; }
.strip i { height: 22px; border-radius: 2px; background: var(--line-2); }
.strip .t-up { background: var(--ok); } .strip .t-problems { background: #d69e2e; } .strip .t-down { background: var(--hot); } .strip .t-maintenance { background: var(--sea); }
b.ok { color: var(--ok); } b.bad { color: #a33d12; }

/* Items: the game's own item icons, and the use-from-your-bag list. */
td.i-name span { display: flex; align-items: center; gap: 8px; }
td.i-name img, .b-icon img, .b-out img { object-fit: contain; }
.b-group { max-width: 1180px; margin: 0 auto 8px; }
.b-how, .b-times { color: var(--ink-2); margin-bottom: 8px; max-width: 80ch; }
.b-times { font-size: 13px; }
.b-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.b-item { box-shadow: 1px 1px 0 var(--line); display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; background: var(--panel); align-items: start; }
.b-icon { width: 72px; height: 72px; display: grid; place-items: center; background: #26333a; border-radius: 4px; }
.b-icon img { width: 60px; height: 60px; }
.b-text { display: grid; gap: 4px; min-width: 0; }
.b-text h3 { font-size: 15px; }
.b-what { font-size: 13px; }
.b-desc { font-size: 12.5px; color: var(--ink-2); }
.b-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; color: var(--ink-3); }
.b-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.b-out { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; font-weight: 600; white-space: nowrap; }
.b-out img { background: #26333a; border-radius: 3px; }
@media (max-width: 820px) { .b-list { grid-template-columns: 1fr; } }
.b-outs { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 4px; }

/* Map: what opens a safe or a locked door, at the top of its panel. */
.opens { display: grid; grid-template-columns: 64px 1fr; gap: 12px; margin: 12px 16px 0; padding: 12px; border: 1px solid var(--line); border-left: 4px solid #4a5568; border-radius: 4px; background: var(--wash); }
.opens.key { border-left-color: #b07a12; background: #fbf3e2; }
.opens-icon { width: 64px; height: 64px; display: grid; place-items: center; background: #26333a; border-radius: 4px; }
.opens-icon img { width: 52px; height: 52px; object-fit: contain; }
.opens h3 { font-size: 17px; margin: 1px 0 4px; }
.opens p { font-size: 12.5px; color: var(--ink-2); margin-bottom: 3px; }
.tip .tip-need { color: #f2c46b; }

/* City shops: each seller's stock as the game shows it, a dark window of tiles tinted by the game's rarity colours. */
.sh-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.sh-pick { display: grid; position: sticky; top: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); overflow: hidden; }
.sh-pick a { display: grid; gap: 1px; padding: 10px 12px; text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
.sh-pick a + a { border-top: 1px solid var(--line-2); }
.sh-pick a:hover { background: var(--wash); }
.sh-pick a[aria-current] { background: var(--ink); color: #f4efe4; border-left-color: #ffd500; }
.sh-pick span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-pick a[aria-current] span { color: #b9c4c6; }
.sh-window { background: #172126; border-radius: 6px; padding: 18px; color: #e9eef0; }
.sh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #2c3a40; }
.sh-head h2 { font-size: 22px; line-height: 1.15; }
.sh-head p { color: #9fb0b5; margin-top: 3px; }
.sh-head a { color: #e9eef0; text-underline-offset: 2px; }
.sh-count { text-align: right; font-weight: 700; white-space: nowrap; color: #e9eef0 !important; }
.sh-count span { font-weight: 400; color: #9fb0b5; font-variant-numeric: tabular-nums; }
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.sh-tile { display: grid; grid-template-rows: auto 1fr; background: #1f2b31; border-radius: 4px; overflow: hidden; box-shadow: inset 0 -3px 0 var(--r); }
.sh-art { position: relative; display: grid; place-items: center; height: 132px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--r) 30%, transparent), transparent 70%), #243238; }
.sh-art img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 4px 6px #0007); }
.sh-rarity { position: absolute; top: 8px; left: 10px; font-size: 11px; font-weight: 700; color: var(--r); letter-spacing: .02em; }
.sh-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 14px; }
.sh-body h3 { font-size: 14px; color: #fff; }
.sh-price { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.sh-does { font-size: 12.5px; color: #e9eef0; }
.sh-about { font-size: 12px; color: #9fb0b5; }
.sh-foot { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 6px; font-size: 11.5px; color: #8a9ca1; }
.sh-keep { color: #9be37f; }
@media (max-width: 820px) {
  .sh-layout { grid-template-columns: 1fr; }
  .sh-pick { position: static; display: flex; overflow-x: auto; }
  .sh-pick a { flex: none; border-left: 0; border-bottom: 3px solid transparent; }
  .sh-pick a + a { border-top: 0; border-left: 1px solid var(--line-2); }
  .sh-pick a[aria-current] { border-bottom-color: #ffd500; }
  .sh-pick span { display: none; }
  .sh-window { padding: 12px; margin-inline: -4px; }
  .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sh-art { height: 104px; }
  .sh-art img { width: 76px; height: 76px; }
  .sh-head { flex-direction: column; align-items: flex-start; }
  .sh-count { text-align: left; }
}

/* The same stock, compact, in a seller's panel on the map. */
.sh-mini { border: 1px solid var(--line); border-radius: 4px; }
.sh-mini li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 5px 10px 5px 6px; }
.sh-mini li + li { border-top: 1px solid var(--line-2); }
.sh-mini-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 3px; background: radial-gradient(circle, color-mix(in srgb, var(--r) 28%, transparent), transparent 75%), #243238; box-shadow: inset 0 -2px 0 var(--r); }
.sh-mini-icon img { object-fit: contain; }
.sh-mini li span { display: grid; font-size: 13px; color: var(--ink); }
.sh-mini li small { font-size: 11.5px; color: var(--ink-3); }
.sh-mini b { font-variant-numeric: tabular-nums; }

/* Upgrades: car, grow room and lab numbers. Tiles reuse the shop's dark art well and rarity colour. */
.u-tile { flex: none; display: inline-grid; place-items: center; border-radius: 3px; vertical-align: middle; background: radial-gradient(circle, color-mix(in srgb, var(--r, #888) 28%, transparent), transparent 75%), #243238; box-shadow: inset 0 -2px 0 var(--r, #555); }
.u-tile img { object-fit: contain; }
.u-tile.blank { width: 44px; height: 44px; background: var(--wash); box-shadow: none; }
.u-item { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.u-cars { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.u-cars a { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); text-decoration: none; color: var(--ink); }
.u-cars a span { display: grid; line-height: 1.2; }
.u-cars a small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.u-cars a[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--r); }
.u-car { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); padding: 16px; }
.u-car-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.u-car-head h2 { font-size: 20px; }
.u-car-head p { color: var(--ink-2); margin-top: 2px; }
.u-car .facts-row em, .fact em { font-style: normal; font-size: 13px; color: #1f7a3a; margin-left: 4px; }
.u-build { display: grid; gap: 8px; margin-bottom: 16px; }
.u-pick { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 10px; }
.u-pick-name { display: grid; font-weight: 700; line-height: 1.2; }
.u-pick-name small { font-weight: 400; color: var(--ink-3); }
.u-pick .seg { width: max-content; max-width: 100%; overflow-x: auto; }
.u-pick .seg button { display: flex; align-items: center; gap: 6px; height: 38px; }
.u-pick .seg button .u-tile { box-shadow: none; }
.u-spend { color: var(--ink-2); margin-top: 4px; }
.u-chart { margin: 0 0 16px; }
.u-chart svg { width: 100%; height: auto; display: block; font-size: 11px; fill: var(--ink-3); }
.u-chart .grid { stroke: var(--line-2); }
.u-chart .axis { font-weight: 700; }
.u-chart .fill { fill: color-mix(in srgb, #1f7a3a 12%, transparent); stroke: none; }
.u-chart .line { fill: none; stroke: #1f7a3a; stroke-width: 2.5; }
.u-chart .stock { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 4 3; }
.u-chart .gear { fill: var(--ink); font-weight: 700; font-size: 12px; }
.u-chart .topline { stroke: var(--ink); stroke-dasharray: 2 3; }
.u-chart figcaption { font-size: 12px; color: var(--ink-2); }
.u-chart .key { display: inline-block; width: 16px; height: 0; vertical-align: middle; margin: 0 4px 0 0; border-top: 2.5px solid #1f7a3a; }
.u-chart .key.stock { border-top: 1.5px dashed var(--ink-3); margin-left: 8px; }
.u-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; margin-bottom: 8px; }
.u-specs dt { font-size: 12px; color: var(--ink-3); }
.u-specs dd { margin: 0; font-weight: 600; }
.u-compare tr.on td { background: var(--wash); }
.u-bar { display: flex; width: 120px; height: 8px; margin-bottom: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.u-bar i { display: block; background: var(--ink-2); }
.u-bar i.more { background: #1f7a3a; }
.u-bar.big { width: auto; height: 12px; margin: 0; }
.u-bars { display: grid; gap: 6px; margin: 10px 0 4px; }
.u-bar-row { display: grid; grid-template-columns: minmax(150px, 280px) 1fr 90px 110px; gap: 10px; align-items: center; }
.u-bar-row b { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.u-bar-row small { color: #1f7a3a; font-variant-numeric: tabular-nums; }
.u-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); counter-reset: step; }
.u-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 14px; counter-increment: step; }
.u-steps li + li { border-top: 1px solid var(--line-2); }
.u-steps b::before { content: counter(step) ". "; color: var(--ink-3); }
.u-steps p { color: var(--ink-2); margin-top: 2px; }
.u-time { margin-left: 8px; padding: 1px 6px; border-radius: 3px; background: var(--wash); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.u-tier { font-weight: 700; color: color-mix(in srgb, var(--r) 70%, var(--ink)); }
@media (max-width: 820px) {
  .u-car { padding: 12px; margin-inline: -4px; }
  .u-pick { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .u-bar-row { grid-template-columns: 1fr auto; }
  .u-bar-row .u-bar { grid-column: 1 / -1; grid-row: 2; }
  .u-bar-row small { display: none; }
}

/* Lenny's Motel in the shop picker, and what a barter trade asks for. */
.sh-group { padding: 12px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--wash); }
.sh-for { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a9ca1; }
.sh-give { display: grid; gap: 4px; }
.sh-give li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: center; font-size: 13px; color: #e9eef0; }
.sh-give li span:last-child { display: grid; line-height: 1.25; }
.sh-give small { font-size: 11.5px; color: #8a9ca1; }
.sh-give-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 3px; background: radial-gradient(circle, color-mix(in srgb, var(--r, #888) 28%, transparent), transparent 75%), #243238; box-shadow: inset 0 -2px 0 var(--r, #555); }
.sh-give-icon img { object-fit: contain; }
.sh-cash .sh-give-icon { color: #9be37f; font-weight: 700; --r: #4f8a3a; }
@media (max-width: 820px) { .sh-group { display: none; } }

/* Shipments: the game's unlock tree on a dark board, and the panel for the clicked item. */
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.sp-view { position: relative; height: calc(100vh - 250px); min-height: 460px; overflow: hidden; border-radius: 6px; background: radial-gradient(circle at 50% 50%, #1f2c32, #121a1e 75%); cursor: grab; touch-action: none; user-select: none; }
.sp-view:active { cursor: grabbing; }
.sp-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.sp-lines { position: absolute; inset: 0; overflow: visible; }
.sp-lines path { fill: none; stroke: #4a5a60; stroke-width: 3; }
.sp-lines path.sp-bus { stroke: #6f8288; stroke-width: 4; }
.sp-lines path.way { stroke: #ffd500; stroke-width: 5; }
.sp-node { position: absolute; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 6px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--r) 30%, transparent), transparent 70%), #24323a; box-shadow: inset 0 -4px 0 var(--r), 0 2px 6px #0006; cursor: pointer; }
.sp-node img { width: 54px; height: 54px; object-fit: contain; margin-top: -10px; pointer-events: none; }
.sp-node span { position: absolute; bottom: 6px; left: 0; right: 0; font-size: 12px; font-weight: 700; color: #e9eef0; font-variant-numeric: tabular-nums; pointer-events: none; }
.sp-node i { position: absolute; top: 3px; right: 5px; font-style: normal; font-size: 12px; color: #ffb4a8; pointer-events: none; }
.sp-node:hover, .sp-node:focus-visible { outline: 2px solid #e9eef0; outline-offset: 2px; }
.sp-node.way { outline: 3px solid #ffd50099; outline-offset: 2px; }
.sp-node.on { outline: 4px solid #ffd500; outline-offset: 3px; }
.sp-hub { position: absolute; transform: translate(-50%, -50%); padding: 3px 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #cfd9dc; background: #121a1e; white-space: nowrap; pointer-events: none; }
.sp-tools { position: absolute; right: 10px; bottom: 10px; display: grid; gap: 4px; }
.sp-tools button { width: 36px; height: 36px; border: 1px solid #3a4a50; border-radius: 4px; background: #1b262b; color: #e9eef0; font-size: 18px; }
.sp-find { position: absolute; left: 10px; top: 10px; width: min(280px, calc(100% - 20px)); height: 36px; padding: 0 10px; border: 1px solid #3a4a50; border-radius: 4px; background: #121a1e; color: #e9eef0; }
.sp-hits { position: absolute; left: 10px; top: 50px; width: min(280px, calc(100% - 20px)); background: #1b262b; border: 1px solid #3a4a50; border-radius: 4px; }
.sp-hits button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; color: #e9eef0; text-align: left; }
.sp-hits button:hover { background: #24323a; }
.sp-hits small { color: #9fb0b5; }
.sp-panel { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 14px; max-height: calc(100vh - 250px); min-height: 460px; overflow-y: auto; }
.sp-empty { color: var(--ink-2); }
.sp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.sp-head h2 { font-size: 19px; line-height: 1.2; }
.sp-head p { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.sp-big { flex: none; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 6px; background: radial-gradient(circle, color-mix(in srgb, var(--r) 30%, transparent), transparent 75%), #24323a; box-shadow: inset 0 -4px 0 var(--r); }
.sp-big img { object-fit: contain; }
.sp-head h2 a { color: inherit; text-decoration: none; }
.sp-head h2 a:hover { text-decoration: underline; }
/* Big numbers side by side: what it takes to reach it and what each one costs after. */
.sp-two, .sp-car { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1px; margin: 10px 0; border: 1px solid var(--ink); background: var(--line); }
.sp-two > div, .sp-car > div { padding: 8px 10px; background: var(--panel); }
.sp-two dd, .sp-car dd { font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.sp-two dt, .sp-car dt { margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.sp-car { border-color: var(--line); }
.sp-race { display: inline-block; margin: -4px 0 4px; font-weight: 700; }
/* The way there, picture by picture with the unlock price under each. */
.sp-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 8px 0; }
.sp-step { display: grid; justify-items: center; gap: 3px; padding: 3px; border: 0; border-radius: 4px; background: none; color: var(--ink); cursor: pointer; }
.sp-step:hover { background: var(--wash); }
.sp-step[aria-current] .sp-mini { outline: 3px solid #ffd500; outline-offset: 1px; }
.sp-step b { font-size: 12px; font-variant-numeric: tabular-nums; }
.sp-mini { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 4px; background: #24323a; box-shadow: inset 0 -3px 0 var(--r); }
.sp-mini img { object-fit: contain; }
.sp-arrow { flex: none; position: relative; width: 14px; height: 2px; margin-bottom: 16px; background: var(--ink-3); }
.sp-arrow::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-right: 0; border-left: 5px solid var(--ink-3); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.sp-chips span { padding: 3px 8px; border: 1px solid var(--ink); border-radius: 3px; font-size: 13px; font-weight: 600; }
.sp-other { font-size: 13px; color: var(--ink-2); }
.sp-next { margin-top: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
@media (max-width: 900px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-view { height: 62vh; min-height: 360px; margin-inline: -4px; }
  .sp-panel { max-height: none; min-height: 0; }
}

/* ───────── Shared page type: the game's tall condensed capitals for every title ───────── */
.page h1 { font: 800 46px/.95 var(--display); text-transform: uppercase; }
.page .lede { font-size: 16px; max-width: 78ch; margin-inline: 0; }
.page > .lede, .page > h1, .page > .bar, .page > .note, .page > .picks, .page > .crumbs { margin-inline: auto; max-width: 1180px; }
.sub, .prose h2, .w-body h2, .index h2, .sitemap h2, .box h2, .live h2 { font: 800 26px/1 var(--display); text-transform: uppercase; }
.sub { margin: 30px auto 10px; }
.kicker { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.table-wrap { border-color: var(--ink); border-radius: 0; }
.table-wrap.flat { max-height: none; }
th { background: var(--panel); color: var(--ink); font-size: 13px; border-bottom: 2px solid var(--ink); }
tbody tr:hover { background: var(--wash); }
.btn, .seg, .jump a, .bar input[type=search], .bar select, .bar input[type=number], .field select, .field input, .box, .steps, .callout, .stats, .chip-btn { border-radius: 2px; }
.btn { text-decoration: none; display: inline-flex; align-items: center; }
.btn.primary:hover { background: #000; }
.prose mark { color: inherit; background: linear-gradient(transparent 62%, var(--lime) 62%); }
.toc button[aria-current="true"] { background: var(--lime); border-left-color: var(--ink); }
.callout { border-color: var(--ink); background: var(--panel); border-left: 6px solid var(--lime); }
.muted { color: var(--ink-3); font-weight: 400; }

/* ───────── Wiki ───────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin-bottom: 12px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs i { font-style: normal; }
.picks { display: flex; flex-wrap: wrap; gap: 0 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.picks a { margin-bottom: -1px; padding: 6px 0 4px; border-bottom: 3px solid transparent; font-weight: 700; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.picks a:hover { color: var(--ink); }
.picks a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.picks i, .index h2 i, .index-links i { font: 400 14px/1 var(--font); font-style: normal; text-transform: none; color: var(--ink-3); }
.w-name a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.w-name a:hover b { text-decoration: underline; }
.w-list td { height: 44px; }
.w-list td.wrap { min-width: 0; color: inherit; }
.rare { box-shadow: inset 0 -3px var(--r, var(--line)); }
.src-tag { font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.src-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 4px; background: var(--ink-3); }
.src-tag[data-src=file]::before { background: var(--sea); }
.src-tag[data-src=text]::before { background: var(--ink); }
.src-tag[data-src=community]::before { background: #b98a00; }
.src-tag[data-src=server]::before { background: var(--hot); }
.legend { display: grid; gap: 5px; margin-top: 30px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.legend > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; }
.w-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.w-head .lede { margin: 8px 0 0; }
.w-head .glyph { margin-top: 4px; }
.pic.big { padding: 8px; background: #262422; border-bottom: 5px solid var(--r, #736e68); }
.w-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.infobox { grid-column: 2; grid-row: 1; background: var(--panel); border: 1px solid var(--ink); }
.infobox dl > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line-2); }
.infobox dl > div:last-child { border-bottom: 0; }
.infobox dt { font-size: 13.5px; color: var(--ink-2); }
.infobox dd { font-weight: 600; overflow-wrap: anywhere; }
.infobox dd .src-tag { display: block; margin-top: 1px; font-weight: 400; }
.w-actions { display: grid; gap: 6px; padding: 12px; border-top: 1px solid var(--ink); }
.w-actions .btn { justify-content: center; }
.w-body { grid-column: 1; grid-row: 1; min-width: 0; }
.w-body section { margin-bottom: 28px; scroll-margin-top: 10px; }
.w-body h2 { margin-bottom: 10px; padding-bottom: 5px; border-bottom: 2px solid var(--ink); }
.w-body p { max-width: 76ch; margin-bottom: 8px; }
.w-body a { color: var(--sea); font-weight: 600; text-underline-offset: 2px; }
.w-body .table-wrap { margin-bottom: 8px; }
.w-body h3 { margin: 18px 0 6px; font-size: 15px; font-weight: 700; }
.w-body .steps { margin-bottom: 10px; }
.w-toc { display: flex; flex-wrap: wrap; gap: 3px 16px; margin-bottom: 20px; font-size: 14px; }
.w-toc a { color: var(--ink-2); font-weight: 400; }
.quote { padding: 2px 0 2px 12px; border-left: 5px solid var(--lime); font-style: italic; color: var(--ink-2); }
.unknown { color: var(--hot); }
.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.index section, .sitemap section { padding: 14px 0 16px; border-top: 2px solid var(--ink); }
.index h2 a, .sitemap h2 a { text-decoration: none; }
.index h2 a:hover, .sitemap h2 a:hover { background: var(--lime); }
.index p, .sitemap p { margin-top: 4px; color: var(--ink-2); }
.index-links { display: flex; flex-wrap: wrap; gap: 3px 15px; margin-top: 8px !important; }
.index-links a { font-weight: 600; color: var(--ink); white-space: nowrap; }
.toc-list { display: grid; border-top: 2px solid var(--ink); }
.toc-list a { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 10px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.toc-list a:hover { background: var(--wash); }
.toc-list span { color: var(--ink-2); }
.toc-list.tight { border-top: 0; }
.toc-list.tight a { grid-template-columns: 1fr; gap: 0; padding: 7px 0; }
.hits-page { border-top: 2px solid var(--ink); }
.hits-page .hit { padding: 9px 4px; }
.hero { padding: 14px 0 26px; }
.hero h1 { font-size: 68px; max-width: 16ch; }
.hero .lede { margin-top: 12px; }
.hero-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 720px; height: 50px; margin-top: 18px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 2px; background: #fff; font-size: 16px; color: var(--ink-2); text-align: left; }
.hero-q:hover { box-shadow: 4px 4px 0 var(--lime); }
.front-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.starts section:first-child .sub { margin-top: 0; }

@media (max-width: 1180px) { .nav a { padding-inline: 8px; font-size: 20px; } .top { gap: 12px; } }
@media (max-width: 900px) {
  .w-cols, .front-cols, .index { grid-template-columns: 1fr; gap: 0 24px; }
  .infobox, .w-body { grid-column: 1; grid-row: auto; }
  .infobox { margin-bottom: 24px; }
}
@media (max-width: 820px) {
  .top { height: auto; flex-wrap: wrap; gap: 8px 10px; padding: 8px 10px 0; }
  .mark { font-size: 23px; }
  .find { flex: 1; }
  .find-key { display: none; }
  .hits { position: fixed; left: 8px; right: 8px; top: 50px; width: auto; max-height: 70vh; }
  .nav { order: 3; width: calc(100% + 20px); margin: 0 -10px; height: 38px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 1px solid var(--bar-line); }
  .nav a { justify-content: center; height: 100%; padding: 2px 0 0; font-size: 19px; }
  .subnav { padding: 0 4px; }
  .page h1 { font-size: 36px; }
  .hero h1 { font-size: 46px; }
  .w-head { gap: 12px; }
  .pic.big { width: 72px; height: 72px; }
  .toc-list a { grid-template-columns: 1fr; gap: 0; }
  .legend > div { grid-template-columns: 1fr; gap: 0; }
  .hit { grid-template-columns: 30px minmax(0, 1fr); }
  .hit > i { display: none; }
}

/* A name that opens its wiki page keeps the look of the name. */
.sh-body h3 a, .b-list h3 a { color: inherit; text-decoration: none; }
.sh-body h3 a:hover, .b-list h3 a:hover { text-decoration: underline; }
@media (max-width: 820px) { .toc { scrollbar-width: none; } }
.w-body mark, .w-head mark { color: inherit; background: linear-gradient(transparent 62%, var(--lime) 62%); }
.table-wrap.flat td.wrap { min-width: 0; }

/* ───────── A wiki page drawn: the game's pictures, headline numbers, rows, bars, flows and a small map ───────── */
.pic { border-radius: 2px; }
/* The game's map markers are white with no colour of their own; they sit on a dark tile, as on its map. */
.pic.mono { padding: 5px; background: #262422; box-sizing: border-box; }
.token .pic.mono, .w-name .pic.mono { padding: 3px; }
img.pic.wide { object-fit: cover; }
/* A kind of thing the game has no picture for keeps the map's symbol, on the same dark tile. */
.wiki svg.glyph, .w-list svg.glyph, .hit svg.glyph { flex: none; border-radius: 2px; background: #262422; }
.wiki svg.glyph circle, .w-list svg.glyph circle, .hit svg.glyph circle { fill: none; }
.w-pic { flex: none; display: grid; place-items: center; width: 132px; height: 132px; background: #262422; border-bottom: 5px solid var(--r, #736e68); }
.w-pic .pic { width: 112px; height: 112px; padding: 0; background: none; }
.w-pic .pic.mono { width: 84px; height: 84px; padding: 0; }
.w-pic.wide { width: 236px; }
.w-pic.wide .pic { width: 236px; height: 127px; }
.w-head { align-items: stretch; margin-bottom: 16px; }
.w-head > div { align-self: center; min-width: 0; }
.lede.said { padding-left: 12px; border-left: 5px solid var(--lime); font-style: italic; }
.from { display: inline-block; width: 7px; height: 7px; margin-left: 5px; vertical-align: middle; background: var(--ink-3); }
.from[data-src=file] { background: var(--sea); }
.from[data-src=text] { background: var(--ink); }
.from[data-src=community] { background: #b98a00; }
.from[data-src=server] { background: var(--hot); }
.from[data-src=dev] { background: #2f5fb3; }
.from[data-src=players] { background: #b98a00; border-radius: 50%; }
.from[data-src=unknown] { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.legend dt .from { margin: 0 6px 0 0; }
.legend dt { font-weight: 600; }
.token { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; font-weight: 600; text-decoration: none; }
.token span { text-decoration: underline; text-underline-offset: 2px; }

.w-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, auto); gap: 1px; width: fit-content; max-width: 100%; margin-bottom: 18px; border: 1px solid var(--ink); background: var(--line); }
.w-strip > div { padding: 10px 14px 9px; background: var(--panel); }
.w-strip dd { font: 800 30px/1.02 var(--display); overflow-wrap: anywhere; }
.w-strip dd a { color: inherit; }
.w-strip dt { margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.wiki .w-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding: 0; border: 0; }

.w-rows { margin: 0 0 12px; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 860px; }
.w-rows li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.w-rows li > div > b { font-weight: 700; }
.w-rows li > div > b a { font-weight: 700; }
.w-rows p { margin: 1px 0 0; max-width: none; font-size: 14px; color: var(--ink-2); }
.w-rows p a, .w-right a { font-weight: 600; }
.w-right { max-width: 190px; font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.w-order { counter-reset: order; }
.w-order li { counter-increment: order; grid-template-columns: 18px 40px minmax(0, 1fr) auto; }
.w-order li::before { content: counter(order); font: 800 22px/1 var(--display); color: var(--ink-3); text-align: center; }
.w-tokens { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: none; }
.w-groups { margin: 0 0 12px; max-width: 860px; border-top: 1px solid var(--line); }
.w-groups > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.w-groups dt { font-weight: 700; }
.w-groups dd { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.w-beside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px; align-items: start; }
.w-beside .w-rows { margin-top: 0; }
.w-cols.one { grid-template-columns: minmax(0, 1fr); }
.w-cols.one .w-body { max-width: 1000px; }
.w-counts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 12px; padding: 0; list-style: none; }
.w-counts li { display: flex; align-items: center; gap: 9px; }
.w-counts b { font: 800 30px/1 var(--display); }
.w-counts span { font-size: 14px; color: var(--ink-2); }

.w-meter { display: grid; grid-template-columns: fit-content(46%) minmax(40px, 1fr) max-content max-content; gap: 5px 10px; margin: 0 0 12px; padding: 0; list-style: none; max-width: 720px; }
.w-meter li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; }
.w-meter li > span { min-width: 0; font-size: 14.5px; }
.w-meter i { height: 16px; background: var(--wash); }
.w-meter i b { display: block; height: 100%; background: var(--ink); }
.w-meter i b[data-top] { background: var(--lime); box-shadow: inset 0 0 0 1px var(--ink); }
.w-meter strong { text-align: right; font-variant-numeric: tabular-nums; }
.w-meter small { font-size: 12.5px; color: var(--ink-3); }

.flow { margin: 2px 0 16px; }
.flow-line { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; }
.flow-or > .flow-line { flex-wrap: nowrap; }
.flow-node { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px 8px 8px; border: 1px solid var(--ink); background: var(--panel); }
.flow-node > div { min-width: 0; }
.flow-node b { display: block; font-size: 14px; line-height: 1.2; }
.flow-node strong { display: block; font: 800 25px/1.05 var(--display); }
.flow-node small { display: block; font-size: 12.5px; line-height: 1.25; color: var(--ink-2); }
.flow-arrow { flex: none; position: relative; width: 28px; height: 2px; background: var(--ink); }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-right: 0; border-left: 7px solid var(--ink); }
.flow-or { display: grid; gap: 8px; border-left: 2px solid var(--ink); }
.flow-or > .flow-line::before { content: ""; flex: none; width: 16px; height: 2px; background: var(--ink); }
.flow-or .flow-arrow { width: 20px; }

.minimap { margin: 0 0 12px; max-width: 560px; border: 1px solid var(--ink); background: #78c2c9; }
.minimap svg { display: block; width: 100%; height: auto; }
.minimap figcaption { padding: 5px 9px; border-top: 1px solid var(--ink); font-size: 13px; color: var(--ink-2); background: var(--panel); }
.mm-ring { fill: none; stroke: #171514; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.mm-here { fill: #c8361e; stroke: #fff; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.mm-there { fill: #171514; stroke: #fff; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.minimap a:hover .mm-here, .minimap a:hover .mm-there { fill: var(--lime); stroke: #171514; }

@media (max-width: 820px) {
  .w-pic { width: 88px; height: 88px; }
  .w-pic .pic { width: 76px; height: 76px; }
  .w-pic .pic.mono { width: 58px; height: 58px; }
  .w-pic.wide { width: 132px; }
  .w-pic.wide .pic { width: 132px; height: 83px; }
  .w-strip { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; }
  .w-strip > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .w-beside { grid-template-columns: 1fr; gap: 0; }
  .wiki .infobox { order: 2; margin: 0 0 24px; }
  .w-groups > div { grid-template-columns: 1fr; gap: 4px; }
  .w-beside .minimap { order: -1; }
  .w-order li { grid-template-columns: 14px 40px minmax(0, 1fr) auto; gap: 8px; }
  .w-strip dd { font-size: 26px; }
  .w-rows li { gap: 10px; }
  .w-right { max-width: 96px; }
  .flow > .flow-line { flex-direction: column; align-items: stretch; }
  .flow > .flow-line > .flow-arrow { width: 2px; height: 18px; margin-left: 20px; }
  .flow > .flow-line > .flow-arrow::after { right: -4px; top: auto; bottom: -1px; border: 5px solid transparent; border-bottom: 0; border-top: 7px solid var(--ink); }
  .flow-or { margin-left: 20px; }
  .flow-or > .flow-line::before { width: 10px; }
  .flow-or .flow-arrow { width: 12px; }
  .flow-or .flow-node { flex: 1 1 0; gap: 7px; padding: 6px 8px 6px 6px; }
  .flow-or .flow-node .pic { width: 30px; height: 30px; }
  .flow-or .flow-node strong { font-size: 21px; }
}
.d-art { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.with-pic { display: flex; align-items: center; gap: 10px; }
td.w-name a { color: inherit; }
td.w-name .muted { margin-left: 6px; }
.w-name > span { display: flex; align-items: center; gap: 10px; }
.index-links { gap: 6px 16px; }
/* The strip hugs its numbers, so it lines up with the page's column by hand instead of being centred in it. */
.page > .w-strip { margin-inline: max(0px, calc((100% - 1180px) / 2)) auto; }

/* Collection Table: each set is its pieces (tick the ones you hold) beside what its crate pays. */
.coll-verdict { margin: 0 0 12px; font-size: 17px; max-width: 72ch; }
.coll-verdict b { padding: 1px 6px; background: var(--lime); box-shadow: inset 0 0 0 1px var(--ink); }
.coll-note { margin: 0 0 10px; color: var(--ink-2); max-width: 72ch; }
.coll-sets { margin: 0 0 12px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.coll-sets > li { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.coll-sets > li[data-done] { background: linear-gradient(90deg, color-mix(in srgb, var(--lime) 30%, transparent), transparent 70%); }
.coll-pieces { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.coll-piece { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); cursor: pointer; }
.coll-piece[data-have] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: color-mix(in srgb, var(--lime) 35%, var(--panel)); }
.coll-piece input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.coll-piece small { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.coll-n { font: 800 18px/1 var(--display); }
.coll-pay { display: grid; justify-items: end; gap: 2px; text-align: right; }
.coll-pay > span { display: flex; align-items: center; gap: 8px; }
.coll-pay strong { font: 800 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.coll-pay small { font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 820px) {
  .coll-sets > li { grid-template-columns: 1fr; gap: 6px; }
  .coll-pay { justify-items: start; text-align: left; }
}

/* Cars: a race between every car, speed against time, and a card per car. */
.g-bar { margin-top: 4px; }
.g-race { margin-bottom: 8px; border: 1px solid var(--ink); background: #2b2926; padding: 10px 12px 4px; }
.g-track { display: grid; gap: 4px; }
.g-lane { display: grid; grid-template-columns: 150px minmax(0, 1fr) 96px; gap: 10px; align-items: center; color: #ede9e4; }
.g-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-name b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 2px; background: var(--c); color: #171514; font: 800 15px/1 var(--display); }
.g-road { position: relative; height: 40px; border-bottom: 1px dashed #5b5650; background: linear-gradient(90deg, transparent calc(100% - 3px), #ede9e4 calc(100% - 3px)); }
.g-car { position: absolute; left: 0; top: 3px; width: 34px; height: 34px; border-radius: 3px; box-shadow: 0 0 0 2px var(--c); background: #171514; }
.g-car .g-pic { display: block; width: 34px; height: 34px; object-fit: cover; border-radius: 3px; }
.g-time { font: 800 19px/1 var(--display); text-align: right; font-variant-numeric: tabular-nums; opacity: .25; transition: opacity .2s; }
.g-time small { display: block; font: 600 12px/1.3 var(--body, inherit); color: #b9b2a8; }
.g-lane.in .g-time { opacity: 1; }
.g-legend { display: flex; justify-content: space-between; margin: 2px 106px 0 160px; font-size: 12px; color: #b9b2a8; }
.g-speed svg path { vector-effect: non-scaling-stroke; }
.g-key { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.g-key span { display: inline-flex; align-items: center; gap: 6px; }
.g-key i { width: 14px; height: 4px; border-radius: 2px; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.g-card { display: grid; align-content: start; gap: 6px; padding: 12px 14px 14px; border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 4px; background: var(--panel); }
.g-card-pic { justify-self: center; }
.g-card-pic .g-pic { display: block; width: 150px; height: 150px; object-fit: contain; }
.g-card h3 { font: 800 24px/1 var(--display); text-transform: uppercase; }
.g-card h3 a { color: inherit; text-decoration: none; }
.g-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.g-price small { font-weight: 400; color: var(--ink-3); }
.g-stats { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 10px; align-items: center; margin: 4px 0; font-size: 13.5px; }
.g-stats dt { color: var(--ink-2); }
.g-stats dd { display: grid; grid-template-columns: minmax(40px, 1fr) 68px; gap: 8px; align-items: center; }
.g-stats dd b { text-align: right; font-variant-numeric: tabular-nums; }
.g-stat-bar { height: 10px; background: var(--wash); }
.g-stat-bar i { display: block; height: 100%; background: var(--ink); }
.g-stat-bar i[data-top] { background: var(--lime); box-shadow: inset 0 0 0 1px var(--ink); }
.g-facts { font-size: 12.5px; color: var(--ink-3); }
.g-tune { justify-self: start; font-weight: 700; }
@media (max-width: 820px) {
  .g-lane { grid-template-columns: 96px minmax(0, 1fr) 62px; gap: 6px; }
  .g-name { font-size: 12px; gap: 5px; }
  .g-time { font-size: 15px; }
  .g-legend { margin: 2px 68px 0 102px; }
}
.g-name b { opacity: 0; transition: opacity .2s; }
.g-lane.in .g-name b { opacity: 1; }
@media (max-width: 600px) {
  .g-race { padding: 8px 8px 4px; }
  .g-lane { grid-template-columns: minmax(0, 1fr) 58px; grid-template-areas: "name time" "road time"; gap: 0 8px; }
  .g-name { grid-area: name; }
  .g-road { grid-area: road; height: 38px; }
  .g-time { grid-area: time; }
  .g-legend { margin: 2px 66px 0 0; }
}
/* The cars are the game's renders: no tile behind them, a coloured line under each so its lane reads. */
.g-road { height: 48px; }
.g-paints { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.g-paints button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--lime); }
.u-cars a img { width: 68px; height: 40px; object-fit: contain; }
.u-car-pic { flex: none; width: 220px; height: auto; }
@media (max-width: 600px) { .u-car-head { flex-wrap: wrap; } .u-car-pic { width: 100%; max-width: 300px; } .g-road { height: 46px; } }
.w-paints { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; max-width: 860px; }
.w-paints li { display: grid; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 3px; background: #2b2926; }
.w-paints li[data-factory] { box-shadow: 0 0 0 2px var(--lime); }
.w-paints img { width: 100%; height: auto; }
.w-paints span { font-size: 12.5px; color: #ede9e4; }
.bring-item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.bring-item:hover b { text-decoration: underline; }
.bring-item img { width: 28px; height: 28px; object-fit: contain; }
.opens h3 a { color: inherit; }
.opens-icon[style*="--r"] { box-shadow: inset 0 0 0 3px var(--r); }
.bring-item img { border-radius: 50%; background: #fbf7ef; padding: 2px; box-shadow: 0 0 0 2px var(--r, transparent); }

/* Cars: what each part does */
.sub-lede { color: var(--ink-2); max-width: 70ch; margin: -4px 0 12px; }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 28px; }
.pg-card { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); padding: 12px; }
.pg-card header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.pg-card h3 { margin: 0; font-size: 17px; }
.pg-card header p { margin: 0; color: var(--ink-2); font-size: 13px; }
.pg-card ol { list-style: none; margin: 0; padding: 0; }
.pg-card li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.pg-card li div { display: grid; gap: 2px; font-size: 13px; }
.pg-card li a { color: var(--ink); }
.pg-card li small { color: var(--ink-3); }
@media (max-width: 600px) {
}

/* The race: each lane is a car seen from the side with its parts beside its name. */
.g-lane { grid-template-columns: 190px minmax(0, 1fr) 96px; }
.g-name > span { display: grid; min-width: 0; gap: 2px; }
.g-who { overflow: hidden; text-overflow: ellipsis; }
.g-chips { display: flex; gap: 3px; align-items: center; min-height: 26px; }
.g-chips small { color: #8f887e; font-weight: 400; }
.g-chips .u-tile { box-shadow: 0 0 0 1px #0006; }
.g-road { height: 52px; }
.g-car { top: 8px; width: 104px; height: 40px; border-radius: 0; box-shadow: none; background: none; border-bottom: 3px solid var(--c); }
.g-car img { display: block; width: 104px; height: auto; }
.g-legend { margin-left: 200px; }
.g-add { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.g-add select, .g-mph input { height: 34px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 0 6px; }
.g-mph { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.g-mph input { width: 64px; }
.g-window-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 5px; }
.g-window-list li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) 150px; gap: 10px; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 4px; background: var(--panel); font-size: 14px; }
.g-window-list .g-who { font-weight: 600; white-space: nowrap; }
.g-window-list .g-stat-bar i { background: var(--c); }
.g-window-list b { text-align: right; font-variant-numeric: tabular-nums; }
.g-window-list small { color: var(--ink-3); font-weight: 400; }
.u-chart .band { fill: color-mix(in srgb, var(--lime) 30%, transparent); }
.u-chart .band-label { font-weight: 700; fill: var(--ink-2); }
.u-chart .end { font-size: 12px; font-weight: 700; }
.g-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.g-card-head { display: flex; gap: 8px; align-items: center; }
.g-card-head select { flex: 1; min-width: 0; height: 36px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 0 8px; }
.g-card-pic img { display: block; width: 100%; max-width: 320px; height: auto; margin: 4px auto 0; }
.g-paints button { padding: 3px; border: 1px solid var(--line); border-radius: 3px; background: #fff; line-height: 0; cursor: pointer; }
.g-paints img { width: 54px; height: auto; }
.g-parts { display: grid; gap: 4px; }
.g-part { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.g-part .seg { width: max-content; }
.g-part .seg button { height: 28px; padding: 0 10px; }
.u-cars.pg-cars a img { width: 88px; height: auto; }
.w-paints li { background: #fff; }
.w-paints span { color: var(--ink); }
@media (max-width: 820px) {
  .g-lane { grid-template-columns: 130px minmax(0, 1fr) 62px; }
  .g-legend { margin-left: 136px; }
}
@media (max-width: 600px) {
  .g-lane { grid-template-columns: minmax(0, 1fr) 58px; }
  .g-legend { margin-left: 0; }
  .g-car, .g-car img { width: 80px; }
  .g-window-list li { grid-template-columns: minmax(0, 1fr) 110px; }
  .g-window-list .g-stat-bar { display: none; }
  .g-cards, .pg-cards { grid-template-columns: 1fr; }
}

/* News & answers: questions with their claims, the roadmap, a dated history and known bugs, one scrolling page. */
.news section { margin-bottom: 34px; scroll-margin-top: 10px; }
.news section > h2 { font: 800 26px/1 var(--display); text-transform: uppercase; margin: 26px 0 12px; padding-bottom: 5px; border-bottom: 2px solid var(--ink); }
.news h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 700; }
.news .w-toc { margin-bottom: 8px; }
.news a { color: var(--sea); font-weight: 600; text-underline-offset: 2px; }
.n-q { max-width: 860px; padding: 14px 0 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 10px; }
.n-q header { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.n-q h3 { margin: 0; font-size: 18px; }
.n-a { margin: 3px 0 0; font-weight: 600; }
.n-here { outline: 3px solid var(--lime); outline-offset: 4px; }
.n-said { margin: 8px 0 6px 52px; padding: 0; list-style: none; display: grid; gap: 7px; }
.n-said li p { margin: 0; max-width: 72ch; font-size: 14px; color: var(--ink-2); }
.n-said li .n-meta { font-size: 12.5px; color: var(--ink-3); }
.n-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 0; }
.n-meta .from { margin-left: 0; }
.n-meta code { display: inline; padding: 0; background: none; border: 0; font: 11.5px/1.3 ui-monospace, Consolas, monospace; color: var(--ink-3); overflow-wrap: anywhere; white-space: normal; }
.n-from { font-weight: 600; color: var(--ink-2); }
.n-q .w-tokens, .n-q .note { margin-left: 52px; }
.n-heads { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.n-heads li { padding: 5px 10px 3px; border: 1px solid var(--ink); font: 800 20px/1 var(--display); text-transform: uppercase; background: var(--panel); }
.n-sub { margin: 10px 0 4px; font-weight: 700; }
.n-coming { columns: 3 220px; margin: 0; padding-left: 22px; }
.n-coming li { break-inside: avoid; padding: 2px 0; }
.n-count { font-style: normal; color: var(--ink-3); font-weight: 400; }
.n-plans { max-width: 860px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.n-plans > li { padding: 10px 0 4px; border-bottom: 1px solid var(--line-2); scroll-margin-top: 10px; }
.n-plans > li > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; }
.n-time { max-width: 900px; margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--ink); }
.n-time > li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 10px 0 10px 14px; border-bottom: 1px solid var(--line-2); }
.n-time time { font: 800 20px/1 var(--display); text-transform: uppercase; padding-top: 2px; }
.n-time h3 { margin: 2px 0 4px; font-size: 16px; }
.n-time ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.n-time ul li { margin: 3px 0; }
.n-time .token { margin-left: 4px; vertical-align: middle; }
.n-kind { padding: 2px 6px 1px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; background: var(--wash); color: var(--ink); }
.n-kind[data-kind=patch] { background: var(--lime); }
.n-kind[data-kind=outage] { background: var(--hot); color: #fff; }
@media (max-width: 820px) {
  .n-said, .n-q .w-tokens, .n-q .note { margin-left: 0; }
  .n-time > li { grid-template-columns: 1fr; gap: 4px; }
}

/* One server: its week from opening to wipe, drawn with every clan sit-down and conflict on it. */
.server section { margin-bottom: 26px; }
.w-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 auto 8px; max-width: 1180px; }
.s-scroll { overflow-x: auto; max-width: 1180px; }
.s-week { display: block; width: 100%; min-width: 760px; height: auto; border: 1px solid var(--ink); background: var(--panel); }
.s-week .d-a { fill: var(--panel); } .s-week .d-b { fill: var(--wash); }
.s-week .s-claim, .s-key i.s-claim { fill: #2f5fb3; opacity: .35; background: #2f5fb359; }
.s-week .s-claim.b { opacity: .22; }
.s-week .s-fight, .s-key i.s-fight { fill: var(--hot); background: var(--hot); }
.s-week .s-fresh, .s-key i.s-fresh { fill: var(--ink); background: var(--ink); }
.s-week .s-now { stroke: var(--ink); stroke-width: 3; }
.s-lab { font: 600 13px var(--font); fill: var(--ink-2); } .s-lab.b { fill: var(--ink); font-weight: 800; } .s-lab.end { text-anchor: end; }
.s-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.s-key span { display: inline-flex; align-items: center; gap: 6px; } .s-key i { display: inline-block; width: 12px; height: 12px; }
.v-open { color: inherit; }
/* Practice ground: the 3D lot fills the page; the menu, ammo and hit numbers sit over it. */
.pg { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #cce0e6; user-select: none; -webkit-user-select: none; touch-action: none; }
.pg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.pg-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pg-labels > span { position: absolute; left: 0; top: 0; translate: -50% -50%; white-space: nowrap; }
.pg-sign { font: 800 18px/1 var(--display); text-transform: uppercase; color: var(--ink); background: #fffd; padding: 3px 6px 1px; border: 1px solid var(--ink); }
.pg-pop { font: 800 24px/1 var(--display); color: #fff; text-shadow: 0 1px 3px #000a, 0 0 1px #000; }
.pg-pop.vest { color: #9fd3ff; }
.pg-pop.head { color: var(--lime); font-size: 30px; }
.pg-bar { display: block; position: relative; width: 54px; height: 6px; background: #0006; }
.pg-bar i { position: absolute; inset: 0 auto 0 0; background: #e8562a; }
.pg-bar b { position: absolute; left: 0; right: auto; top: -5px; height: 4px; background: #4aa3ff; }
.pg-cross { --gap: 8px; position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.pg-cross i { position: absolute; background: #fff; box-shadow: 0 0 0 1px #0008; }
.pg-cross i:nth-child(1) { width: 2px; height: 9px; left: -1px; bottom: var(--gap); }
.pg-cross i:nth-child(2) { width: 2px; height: 9px; left: -1px; top: var(--gap); }
.pg-cross i:nth-child(3) { width: 9px; height: 2px; top: -1px; right: var(--gap); }
.pg-cross i:nth-child(4) { width: 9px; height: 2px; top: -1px; left: var(--gap); }
.pg-marker { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; translate: -50% -50%; rotate: 45deg; pointer-events: none;
  background: linear-gradient(#fff, #fff) center / 100% 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 100% no-repeat; mask: radial-gradient(circle, transparent 5px, #000 6px); }
.pg-marker[data-head="1"] { background: linear-gradient(var(--lime), var(--lime)) center / 100% 3px no-repeat, linear-gradient(var(--lime), var(--lime)) center / 3px 100% no-repeat; }
.pg-panel { position: absolute; left: 12px; top: 12px; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto; display: grid; gap: 9px; padding: 14px; background: #fbfaf7f2; border: 1px solid var(--ink); }
.pg-panel h1 { font: 800 30px/.95 var(--display); text-transform: uppercase; }
.pg-panel label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pg-panel select { font: inherit; font-weight: 400; color: var(--ink); padding: 6px; border: 1px solid var(--line); background: #fff; }
.pg-gunrow { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.pg-gunrow img { width: 54px; height: 54px; object-fit: contain; }
.pg-gunrow b { color: var(--ink); }
.pg-panel a { color: var(--sea); font-weight: 600; }
.pg-panel .btn { justify-content: center; }
.pg-keys { font-size: 13px; color: var(--ink-2); }
.pg-panel .note { margin: 0; }
.pg-away { opacity: 0; pointer-events: none; }
.pg-log { position: absolute; right: 12px; top: 12px; display: grid; gap: 4px; justify-items: end; pointer-events: none; }
.pg-log p { padding: 4px 8px 3px; background: #171514d9; color: #fff; font-size: 14px; }
.pg-log p:first-child { background: var(--ink); box-shadow: inset 4px 0 0 var(--lime); }
.pg-ammo { position: absolute; right: 16px; bottom: 14px; display: grid; justify-items: end; gap: 2px; color: #fff; text-shadow: 0 1px 3px #000c; font-size: 14px; font-weight: 700; pointer-events: none; }
.pg-ammo .pg-count { display: flex; align-items: baseline; gap: 6px; }
.pg-ammo .pg-count b { font: 800 44px/1 var(--display); }
.pg-ammo .pg-state { font-size: 13px; color: #e9e4dc; min-height: 1em; }
/* The two weapon slots: the one in hand is lit and named large, so you always know what you hold. */
.pg-slots { display: grid; gap: 4px; justify-items: end; }
.pg-slots span { pointer-events: auto; cursor: pointer; display: grid; grid-template-columns: auto 44px auto; align-items: center; gap: 6px; padding: 3px 8px; background: #17151499; opacity: .6; }
.pg-slots span.on { opacity: 1; background: #171514e6; box-shadow: inset -4px 0 0 var(--lime); }
.pg-slots i { font-style: normal; font-size: 12px; color: #bdb6ad; }
.pg-slots img { width: 44px; height: 30px; object-fit: contain; }
.pg-slots em { font-style: normal; font: 800 16px/1 var(--display); text-transform: uppercase; }
.pg-slots span.on em { font-size: 22px; color: var(--lime); }
.pg-tips { position: absolute; left: 12px; bottom: 12px; padding: 4px 8px 3px; background: #171514b3; color: #fff; font-size: 12px; pointer-events: none; }
.pg-tips:empty { display: none; }
.pg-tips b { font-weight: 800; }
.pg-mine { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.pg-mine code { font-size: 11px; word-break: break-all; }
/* Through the sights: a dot, or a scope ring with the world dark around it on scoped guns. Drawn plainly. */
.pg-sight { position: absolute; inset: 0; pointer-events: none; }
.pg-sight i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; translate: -50% -50%; border-radius: 50%; background: #ff3b2f; box-shadow: 0 0 4px #ff3b2f; }
.pg-sight[data-scope="1"] { background: radial-gradient(circle at 50% 50%, transparent 0 min(34vh, 34vw), #0a0a0a min(34.4vh, 34.4vw)); }
.pg-sight[data-scope="1"] i { width: 3px; height: 3px; border-radius: 0; background: #111; box-shadow: none; }
.pg-sight[data-scope="1"]::before, .pg-sight[data-scope="1"]::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: #111; }
.pg-sight[data-scope="1"]::before { width: 1px; height: min(68vh, 68vw); }
.pg-sight[data-scope="1"]::after { width: min(68vh, 68vw); height: 1px; }
/* The gun rack: every gun by kind with its picture. */
.pg-armory { position: absolute; inset: 12px; overflow-y: auto; padding: 14px; background: #171514f2; color: #fff; }
.pg-armory header { font-size: 14px; color: #bdb6ad; margin-bottom: 10px; }
.pg-armory header b { color: var(--lime); }
.pg-armory h2 { font: 800 20px/1 var(--display); text-transform: uppercase; margin: 12px 0 6px; }
.pg-armory section > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.pg-armory button { display: grid; gap: 2px; justify-items: start; padding: 8px; background: #2a2725; border: 1px solid #3a3633; color: #fff; text-align: left; cursor: pointer; }
.pg-armory button:hover, .pg-armory button:focus-visible { border-color: var(--lime); }
.pg-armory button.on { border-color: var(--lime); box-shadow: inset 3px 0 0 var(--lime); }
.pg-armory img { width: 100%; height: 56px; object-fit: contain; }
.pg-armory button b { font: 800 16px/1.1 var(--display); text-transform: uppercase; }
.pg-armory button span { font-size: 12px; color: #bdb6ad; }
.pg-reload { display: block; width: 120px; height: 5px; background: #0007; }
.pg-reload i { display: block; height: 100%; background: var(--lime); }
.pg-hint { position: absolute; left: 50%; bottom: 22%; translate: -50%; padding: 5px 10px 4px; background: var(--ink); color: #fff; font-weight: 700; pointer-events: none; }
.pg-hint.pg-up { bottom: auto; top: 14px; }
.pg-drive { position: absolute; left: 50%; bottom: 12px; translate: -50%; min-width: 260px; padding: 10px 14px; background: #171514e6; color: #fff; pointer-events: none; }
.pg-drive .pg-speed { font-size: 15px; }
.pg-drive .pg-speed b { font: 800 46px/1 var(--display); color: var(--lime); }
.pg-drive table { width: 100%; font-size: 14px; border-collapse: collapse; }
.pg-drive td { padding: 1px 6px 1px 0; }
.pg-drive .muted, .pg-drive .note { color: #bdb6ad; }
.pg-touch { position: absolute; inset: auto 0 0 0; height: 0; }
.pg-touch button { position: absolute; width: 62px; height: 62px; border-radius: 50%; border: 2px solid #fff; background: #17151499; color: #fff; font-weight: 700; font-size: 13px; touch-action: none; }
#pg-fire { right: 16px; bottom: 96px; width: 78px; height: 78px; background: #c8361ecc; }
#pg-aim { right: 104px; bottom: 120px; }
#pg-r { right: 104px; bottom: 50px; }
#pg-e { right: 16px; bottom: 186px; }
#pg-jump { right: 176px; bottom: 80px; }
.pg-stick { position: absolute; left: 22px; bottom: 40px; width: 120px; height: 120px; border-radius: 50%; background: #17151440; border: 2px solid #fff8; touch-action: none; }
.pg-stick i { position: absolute; left: 35px; top: 35px; width: 50px; height: 50px; border-radius: 50%; background: #fffc; }
@media (pointer: coarse) {
  .pg-panel { padding: 10px; gap: 6px; max-height: 46%; }
  .pg-panel h1 { font-size: 22px; }
  .pg-ammo { bottom: auto; top: 12px; }
  .pg-log { top: auto; bottom: 200px; left: 12px; right: auto; justify-items: start; }
}
.pg-menu { position: absolute; left: 12px; top: 12px; padding: 7px 12px 6px; background: var(--ink); color: #fff; border: 0; font-weight: 700; }
