/* Layout: one 12-column board of square-cornered tiles on 8px gaps, read like the in-game vendor screen. Single dark look by choice. */
:root {
  color-scheme: dark;
  --bg: #08110d;
  --surface: #0f1d17;
  --surface-2: #162a21;
  --run-1: #3d6150;
  --run-2: #2e4c3e;
  --run-3: #213a2f;
  --run-4: #182c23;
  --ink: #eaf2ec;
  --muted: #a3b5aa;
  --accent: #f6e016;
  --accent-ink: #08110d;
  --well: #d6dfd9;
  --well-ink: #08110d;
  --font-display: "Stack Sans Headline", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Stack Sans Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-band: 18.6vw;
  --step-figure: clamp(3.25rem, 2rem + 4vw, 5.5rem);
  --gap: 8px;
  --pad: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.page {
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  padding-block: 12px 0;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.022em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
small { font-size: var(--step-small); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.num { font-variant-numeric: tabular-nums; }
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.tile { background: var(--surface); padding: var(--pad); min-width: 0; position: relative; overflow: hidden; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.soft { color: var(--muted); }
section { scroll-margin-top: 16px; }
.section-gap { margin-top: clamp(96px, 12vw, 200px); }

/* Buttons: square, one fill */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1 var(--font-text);
  padding: 16px 22px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform .25s var(--ease-out), background-color .2s ease;
}
.btn:hover { background: #fff36a; }
.btn:active { transform: scale(.97); }

/* ---------- Hero: name band and rails ---------- */
.hero { grid-template-rows: auto auto minmax(560px, 62vh); }
.band { grid-column: 1 / -1; height: 17vw; padding: 0; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.band span {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-band);
  letter-spacing: -0.04em; line-height: .8; white-space: nowrap; color: var(--ink);
  transform: translateY(0.04em);
}
.links { grid-column: span 3; height: 64px; padding: 18px 22px; text-decoration: none; font-size: var(--step-body); background: var(--surface-2); transition: background-color .2s ease, color .2s ease; }
.links:hover { background: var(--accent); color: var(--accent-ink); }
.rail-l { grid-column: 1 / 3; display: grid; grid-template-rows: 1fr auto; gap: var(--gap); min-width: 0; }
.rail-l .photo { min-height: 220px; }
.rail-l .photo img { object-position: 70% 40%; }
.facts { list-style: none; margin: 0; padding: var(--pad); background: var(--surface); display: grid; gap: 10px; font-size: var(--step-small); }
.facts b { display: block; font-weight: 500; font-size: var(--step-body); }
.stage { grid-column: 3 / 11; padding: 0; min-height: 520px; }
.stage img { transform-origin: 60% 50%; animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1%); } }
.stage .statement {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg);
  padding: 28px 28px 30px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
}
.stage h1 { font-size: var(--step-head); font-weight: 300; }
.stage .statement p { font-size: var(--step-body); color: var(--muted); max-width: 52ch; margin-top: 14px; }
.rail-r { grid-column: 11 / 13; display: grid; grid-template-rows: repeat(4, 1fr) 1.3fr; gap: var(--gap); }
.rail-r .tile { padding: 18px; font-size: var(--step-small); display: flex; flex-direction: column; justify-content: space-between; }
.rail-r .tile b { font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); line-height: 1.1; }
.rail-r .t1 { background: var(--run-1); } .rail-r .t2 { background: var(--run-2); } .rail-r .t3 { background: var(--run-3); } .rail-r .t4 { background: var(--run-4); }
.rail-r .go { background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; font-size: var(--step-body); transition: background-color .2s ease; }
.rail-r .go:hover { background: #fff36a; }
.rail-r .go svg { align-self: flex-end; transition: transform .3s var(--ease-out); }
.rail-r .go:hover svg { transform: translate(4px, 4px); }

/* ---------- Intro: lead over four columns ---------- */
.intro { padding: 0 8px; }
.intro-h { font-size: var(--step-head); margin-bottom: 32px; }
.intro .lead { font-size: var(--step-lead); line-height: 1.25; max-width: 60ch; }
.intro .lead strong { font-weight: 500; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; font-size: var(--step-small); line-height: 1.5; }
.cols p { color: var(--muted); }
.cols b { color: var(--ink); font-weight: 500; }

/* ---------- Roles: tabs and banded list ---------- */
.list-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding: 0 8px; }
.list-head h2 { font-size: var(--step-head); }
.list-head h2 span { color: var(--muted); display: block; }
.roles { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; margin-top: 48px; padding: 0 8px; }
.tabs { display: grid; gap: 6px; align-content: start; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); }
.tab {
  background: var(--surface-2); color: var(--ink); border: 0; text-align: left; padding: 14px 16px; min-height: 64px; cursor: pointer;
  font: 500 var(--step-body)/1.2 var(--font-text); transition: background-color .2s ease, transform .2s var(--ease-out);
}
.tab small { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); margin-top: 3px; }
.tab:hover { background: var(--run-3); }
.tab:active { transform: scale(.98); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tab[aria-selected="true"] small { color: var(--accent-ink); }
.panel h3 { font-size: var(--step-lead); margin-bottom: 8px; }
.panel > p { color: var(--muted); max-width: 62ch; margin-bottom: 20px; }
.panel + .panel { margin-top: 48px; }
.js .panel + .panel { margin-top: 0; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rows li {
  display: grid; grid-template-columns: minmax(0, 1fr) 190px 150px; gap: 16px; align-items: center;
  padding: 16px 20px; min-height: 72px; background: var(--surface);
}
.rows li:nth-child(even) { background: var(--surface-2); }
.rows .what { font-weight: 500; }
.rows .what small { display: block; font-weight: 400; font-size: var(--step-small); color: var(--muted); margin-top: 2px; }
.rows .cash, .rows .xp { font-variant-numeric: tabular-nums; font-size: var(--step-lead); font-family: var(--font-display); font-weight: 300; text-align: right; }
.rows .cash { color: var(--accent); }
.rows .xp small, .rows .cash small { display: block; font-family: var(--font-text); font-size: var(--step-small); color: var(--muted); }
.rows li.head { min-height: 0; padding-block: 8px; background: transparent; color: var(--muted); font-size: var(--step-small); }
.rows li.head span:not(:first-child) { text-align: right; }

/* ---------- Logistics: accordion of tinted panels ---------- */
.how-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 0 8px; align-items: end; }
.how-intro h2 { grid-column: 1 / 6; font-size: var(--step-head); }
.how-intro p { grid-column: 7 / 12; color: var(--muted); max-width: 62ch; }
.accordion { display: flex; height: 540px; margin-top: 56px; }
.stage-p {
  position: relative; flex: 0 0 9%; min-width: 0; overflow: hidden; cursor: pointer;
  transition: flex-basis .45s var(--ease-out); border: 0; padding: 0; text-align: left; color: var(--ink);
  font: inherit;
}
.stage-p.is-open { flex-basis: 64%; cursor: default; }
.stage-p:nth-child(1) { background: #0f1d17; } .stage-p:nth-child(2) { background: #182c23; }
.stage-p:nth-child(3) { background: #213a2f; } .stage-p:nth-child(4) { background: #2e4c3e; }
.stage-p:nth-child(5) { background: #3d6150; }
.stage-p .vert {
  background: none; border: 0; color: inherit; cursor: pointer; font-family: inherit; padding: 0;
  position: absolute; left: 22px; bottom: 22px; transform: rotate(-90deg); transform-origin: left bottom;
  white-space: nowrap; font-weight: 500; font-size: var(--step-lead); translate: 1.2em 0;
}
.stage-p.is-open .vert { visibility: hidden; }
.stage-p .open { position: absolute; inset: 0; padding: 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; pointer-events: none; }
.stage-p.is-open .open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease .18s, visibility 0s; }
.open h3 { font-size: var(--step-lead); }
.open .big { font-family: var(--font-display); font-weight: 300; font-size: var(--step-head); color: var(--accent); line-height: 1; margin-top: 18px; font-variant-numeric: tabular-nums; }
.open .cap { font-size: var(--step-lead); line-height: 1.2; margin-top: 10px; }
.open .txt { align-self: end; max-width: 38ch; }
.open .side { align-self: end; display: grid; gap: 4px; font-size: var(--step-small); }
.open .side div { display: flex; justify-content: space-between; gap: 12px; background: rgba(0,0,0,.22); padding: 10px 14px; font-variant-numeric: tabular-nums; }

/* ---------- Bounties: one image across tiles ---------- */
.mosaic-h { padding: 0 8px; margin-bottom: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.mosaic-h h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.mosaic-h p { grid-column: 7 / 12; color: var(--muted); max-width: 62ch; }
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.cut { aspect-ratio: 1; background-image: var(--pic); background-size: 600% 400%; overflow: hidden; position: relative; }
.cut::after { content: ""; position: absolute; inset: 0; background: inherit; background-size: inherit; background-position: inherit; transition: transform .6s var(--ease-out); }
.cut:hover::after { transform: scale(1.08); }
.cut.c { background: var(--surface-2); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.cut.c::after { display: none; }
.cut.c b { font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.cut.c span { font-size: var(--step-small); }
.cut.c.a { background: var(--accent); color: var(--accent-ink); text-decoration: none; transition: background-color .2s ease; }
.cut.c.a:hover { background: #fff36a; }
.cut.c.a b { color: var(--accent-ink); }
.vehicles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.vgroup { background: var(--surface); padding: var(--pad); }
.vgroup h3 { font-size: var(--step-lead); margin-bottom: 16px; }
.v-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
.acc-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vgroup dl { margin: 0; display: grid; gap: 4px; }
.vgroup dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface-2); font-size: var(--step-small); }
.vgroup dd { margin: 0; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vgroup dd s { color: var(--muted); margin-right: 6px; }

/* ---------- Stats: photograph with figure tiles ---------- */
.stats-h { padding: 0 8px; margin-bottom: 40px; font-size: var(--step-head); }
.stats { display: grid; grid-template-columns: 2fr 1fr; min-height: 66vw; max-height: 900px; }
.stats .photo { position: relative; overflow: hidden; }
.stats .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stats .figs { display: grid; grid-template-rows: 1fr 1fr; }
.fig { padding: 28px; }
.fig b { display: block; font-family: var(--font-display); font-weight: 300; font-size: var(--step-figure); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fig p { margin-top: 12px; max-width: 26ch; }
.fig.y { background: var(--accent); color: var(--accent-ink); }
.fig.g { background: var(--run-1); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.calc-h { grid-column: 1 / -1; padding: 0 8px 32px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.calc-h h2 { grid-column: 1 / 7; font-size: var(--step-head); }
.calc-h p { grid-column: 7 / 12; color: var(--muted); max-width: 62ch; }
.inputs { grid-column: 1 / 8; background: var(--surface); padding: var(--pad); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; align-content: start; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; background: var(--surface-2); padding: 10px 10px 10px 16px; }
.field label { font-size: var(--step-small); line-height: 1.3; }
.field label small { display: block; color: var(--muted); }
.stepper { display: flex; align-items: center; }
.stepper button {
  width: 44px; height: 44px; border: 0; background: var(--run-3); color: var(--ink); font: 500 var(--step-body)/1 var(--font-text); cursor: pointer;
  transition: background-color .2s ease, transform .15s var(--ease-out);
}
.stepper button:hover { background: var(--run-1); }
.stepper button:active { transform: scale(.92); }
.stepper input {
  width: 52px; height: 44px; border: 0; background: var(--bg); color: var(--ink); text-align: center;
  font: 500 var(--step-body)/1 var(--font-text); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; background: var(--surface-2); padding: 14px 16px; cursor: pointer; font-size: var(--step-small); }
.toggle input { width: 22px; height: 22px; accent-color: var(--accent); }
.result { grid-column: 8 / 13; display: grid; grid-template-rows: auto auto 1fr; gap: var(--gap); }
.result .tile { padding: 26px; }
.out-cash { background: var(--accent); color: var(--accent-ink); }
.out b { display: block; font-family: var(--font-display); font-weight: 300; font-size: var(--step-figure); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.out p { margin-top: 10px; font-size: var(--step-small); }
.out-xp { background: var(--run-2); }
.levels { background: var(--surface); }
.levels h3 { font-size: var(--step-lead); margin-bottom: 12px; }
.lv { display: grid; gap: 3px; font-size: var(--step-small); }
.lv div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--surface-2); padding: 7px 12px; font-variant-numeric: tabular-nums; }
.lv i { display: block; height: 8px; background: var(--run-1); position: relative; }
.lv i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); }
.lv s { color: var(--muted); margin-right: 6px; }
.lv .reach { background: var(--run-3); }
.calc-note { grid-column: 1 / -1; color: var(--muted); font-size: var(--step-small); padding: 12px 8px 0; max-width: 72ch; }

/* ---------- Full-bleed chapter photo ---------- */
.chapter { margin-left: calc(-1 * max(12px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(12px, env(safe-area-inset-right, 0px))); margin-bottom: 72px; position: relative; }
.chapter img { display: block; width: 100%; height: clamp(320px, 56vw, 760px); object-fit: cover; object-position: 50% 45%; }
.chapter figcaption { padding: 14px max(20px, env(safe-area-inset-left, 0px)); background: var(--surface); font-size: var(--step-body); }

/* ---------- Loadout ---------- */
.lo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 56px; }
.lo-form { grid-column: 1 / 8; background: var(--surface); padding: var(--pad); display: grid; gap: 28px; align-content: start; min-width: 0; }
.lo-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.lo-pre, .pk-filter button { background: var(--surface-2); color: var(--ink); border: 0; padding: 10px 14px; font: 500 var(--step-small)/1.2 var(--font-text); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.lo-pre:hover, .pk-filter button:hover { background: var(--run-3); }
.lo-pre[aria-pressed="true"], .pk-filter button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.pick { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.pick legend { padding: 0 0 10px; font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); letter-spacing: -0.02em; }
.pk-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.pk-grid.pk-wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pk-grid.pk-extras { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.opt, .lo-x { position: relative; display: grid; grid-template-rows: auto auto auto; gap: 2px; background: var(--surface-2); padding: 0 0 10px; cursor: pointer; transition: background-color .2s ease, transform .15s var(--ease-out); min-width: 0; }
.lo-x { cursor: default; padding-bottom: 8px; }
.opt[hidden] { display: none; }
.opt:hover { background: var(--run-3); }
.opt:active { transform: scale(.97); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.o-img { display: flex; align-items: center; justify-content: center; height: 76px; padding: 8px 10px; background: var(--well); margin-bottom: 8px; }
.pk-wide .o-img { height: 64px; }
.o-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.o-none::before { content: ""; width: 26px; height: 3px; background: var(--well-ink); opacity: .35; }
.o-name { padding: 0 10px; font-size: var(--step-small); font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.o-price { padding: 0 10px; font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.o-price abbr { text-decoration: none; margin-left: 2px; }
.opt:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.opt:has(input:checked) .o-price { color: var(--accent-ink); }
.opt:has(input:checked) .o-img { background: #fff9c2; }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.lo-x .stepper { padding: 6px 10px 0; }
.lo-x .stepper button { width: 36px; height: 36px; }
.lo-x .stepper input { width: 44px; height: 36px; }
.lo-x.on { background: var(--run-2); }
.lo-x.on .o-img { background: #fff9c2; }
.lo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.lo-f { display: grid; gap: 6px; min-width: 0; }
.lo-f label { font-size: var(--step-small); color: var(--muted); }
.lo-f input { width: 100%; min-height: 46px; padding: 8px 10px; border: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.2 var(--font-text); font-variant-numeric: tabular-nums; min-width: 0; }
.lo-disc { grid-column: 1 / -1; }
.lo-kit { grid-column: 1 / -1; background: var(--surface); }
.lo-kit h3 { font-size: var(--step-lead); margin-bottom: 12px; }
.lo-kit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.lo-kit li { position: relative; background: var(--well); width: 76px; height: 56px; display: flex; align-items: center; justify-content: center; padding: 6px; }
.lo-kit li img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lo-kit li span { position: absolute; right: 3px; bottom: 2px; font-size: var(--step-small); font-weight: 500; color: var(--well-ink); font-variant-numeric: tabular-nums; }
.lo-kit li.txt { width: auto; padding: 6px 10px; color: var(--well-ink); font-size: var(--step-small); font-weight: 500; }
.lo-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  background: var(--ink); color: var(--bg); font-size: var(--step-small);
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lo-bar[hidden] { display: none; }
.lo-bar b { font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.lo-bar a { background: var(--accent); color: var(--accent-ink); padding: 10px 14px; text-decoration: none; font-weight: 500; }
@media (min-width: 721px) { .lo-out { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); } }
.lo-out { grid-column: 8 / 13; align-self: start; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-content: start; }
.lo-out > div { padding: 24px; }
.lo-out b { display: block; font-family: var(--font-display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lo-out p { margin-top: 10px; font-size: var(--step-small); }
.lo-main { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); }
.lo-main b { font-size: var(--step-figure); }
.lo-main.neg { background: #e8553f; color: #160806; }
.lo-sub { background: var(--run-2); }
.lo-even { grid-column: 1 / -1; background: var(--surface); }
.lo-even h3 { font-size: var(--step-lead); margin-bottom: 12px; }
.lo-even ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lo-even li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface-2); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.lo-even li b { font-family: var(--font-text); font-size: var(--step-body); font-weight: 500; letter-spacing: 0; color: var(--accent); }
.lo-out .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- Squad loadouts ---------- */
.sq { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.sq h3 { font-size: var(--step-lead); }
.sq-save { grid-column: 1 / 5; background: var(--surface); padding: var(--pad); display: grid; gap: 12px; align-content: start; }
.sq-form { display: grid; gap: 8px; }
.sq-form label { font-size: var(--step-small); color: var(--muted); }
.sq-row { display: flex; gap: 6px; }
.sq-row input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 12px; border: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.2 var(--font-text); }
.sq-row input::placeholder { color: var(--muted); }
.sq-list { grid-column: 5 / 13; background: var(--surface); padding: var(--pad); min-width: 0; }
.sq-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
#sq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#sq-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; background: var(--surface-2); padding: 12px 14px; }
.sq-name { font-weight: 500; }
.sq-meta { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
#sq-list li:hover { background: var(--run-3); }
.sq-kit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 3px; }
.sq-kit span { width: 54px; height: 38px; background: var(--well); display: flex; align-items: center; justify-content: center; padding: 3px; }
.sq-kit img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sq-act { display: flex; gap: 6px; }
.sq-act button { background: var(--accent); color: var(--accent-ink); border: 0; padding: 10px 14px; font: 500 var(--step-small)/1 var(--font-text); cursor: pointer; transition: background-color .2s ease; }
.sq-act button:hover { background: #fff36a; }
.sq-act button.del { background: var(--run-3); color: var(--ink); }
.sq-act button.del:hover { background: var(--run-1); }
.sq-empty { color: var(--muted); font-size: var(--step-small); }

/* ---------- Tracker ---------- */
.trk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 56px; }
.trk h3 { font-size: var(--step-lead); }
.trk-left { grid-column: 1 / 6; display: grid; gap: var(--gap); align-content: start; }
.trk-form { background: var(--surface); padding: var(--pad); display: grid; gap: 10px; align-content: start; }
.trk-start { margin-top: 14px; display: grid; gap: 10px; }
.trk-form label, .trk-levels label { font-size: var(--step-small); color: var(--muted); }
.trk-form select, .trk-form input, .trk-levels input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.2 var(--font-text); font-variant-numeric: tabular-nums;
}
.trk-form input::placeholder { color: var(--muted); }
.trk-form .btn { justify-self: start; margin-top: 6px; }
.trk-start summary { cursor: pointer; font-weight: 500; }
.trk-start summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.trk-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trk-levels div { display: grid; gap: 4px; }
.trk-levels .btn { grid-column: 1 / -1; }
.trk-out { grid-column: 6 / 13; display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.trk-kpi { background: var(--surface); padding: var(--pad); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; align-items: end; }
.trk-kpi b { display: block; font-family: var(--font-display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.trk-kpi .k-main b { font-size: var(--step-figure); color: var(--accent); }
.trk-kpi .k-main.neg b { color: #ff8a73; }
.trk-kpi p { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.trk-chart, .trk-roles, .trk-last { background: var(--surface); padding: var(--pad); min-width: 0; }
.trk-chart h3, .trk-roles h3, .trk-last h3 { margin-bottom: 12px; }
#tk-chart svg { display: block; width: 100%; height: auto; }
#tk-roles, #tk-last { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#tk-roles li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; background: var(--surface-2); padding: 12px 14px; font-variant-numeric: tabular-nums; }
#tk-roles .r-name { font-weight: 500; }
#tk-roles .r-lv { text-align: right; font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); color: var(--accent); grid-row: 1 / 3; grid-column: 2; align-self: center; }
#tk-roles .r-sub { font-size: var(--step-small); color: var(--muted); }
#tk-last li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: var(--surface-2); padding: 10px 14px; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
#tk-last .l-cash { font-weight: 500; }
#tk-last .l-cash.neg { color: #ff8a73; }
#tk-last button { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
#tk-last button:hover { color: var(--ink); }
.trk-out > .btn { justify-self: start; }

/* ---------- Unlock planner ---------- */
.plan { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 56px; }
.plan-form { grid-column: 1 / 6; background: var(--surface); padding: var(--pad); display: grid; gap: 10px; align-content: start; }
.plan-form label { font-size: var(--step-small); color: var(--muted); }
.plan-form select, .plan-form input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.2 var(--font-text); font-variant-numeric: tabular-nums;
}
.btn-ghost { background: var(--surface-2); color: var(--ink); justify-self: start; margin-top: 6px; }
.btn-ghost:hover { background: var(--run-3); }
.plan-out { grid-column: 6 / 13; align-self: start; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.plan-out > div { padding: 24px; }
.plan-out b { display: block; font-family: var(--font-display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-out p { margin-top: 10px; font-size: var(--step-small); }
.po-main { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); }
.po-main b { font-size: var(--step-figure); }
.po-sub { background: var(--run-2); }
.plan-track { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; }
.plan-track li { background: var(--surface); padding: 14px 16px; display: grid; gap: 4px; }
.plan-track .pt-lv { font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.plan-track .pt-name { font-weight: 500; }
.plan-track .pt-cost { font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.plan-track li.done { opacity: .55; }
.plan-track li.goal { background: var(--accent); color: var(--accent-ink); }
.plan-track li.goal .pt-lv { color: var(--accent-ink); }
.plan-track button { all: unset; cursor: pointer; display: grid; gap: 4px; }
.plan-track button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Community reports ---------- */
.rep { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 56px; }
.rep h3 { font-size: var(--step-lead); margin-bottom: 18px; }
.rep-form { grid-column: 1 / 6; background: var(--surface); padding: var(--pad); display: grid; gap: 10px; align-content: start; }
.rep-form label { font-size: var(--step-small); color: var(--muted); }
.rep-form select, .rep-form input {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-body)/1.2 var(--font-text); font-variant-numeric: tabular-nums;
}
.rep-form select { appearance: auto; }
.rep-form input::placeholder { color: var(--muted); }
.rep-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rep-two div { display: grid; gap: 10px; }
.rep-hint, .rep-status { font-size: var(--step-small); color: var(--muted); }
.rep-status:empty { display: none; }
.rep-status.ok { color: var(--accent); }
.rep-form .btn { justify-self: start; margin-top: 6px; }
.rep-form .btn[disabled] { opacity: .5; cursor: not-allowed; }
.rep-list { grid-column: 6 / 13; background: var(--surface); padding: var(--pad); min-width: 0; }
.rep-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rep-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 12px 14px; background: var(--surface-2); }
.rep-list .rl-name { font-weight: 500; }
.rep-list .rl-role { grid-column: 1; font-size: var(--step-small); color: var(--muted); }
.rep-list .rl-val { grid-row: 1 / 3; grid-column: 2; text-align: right; font-variant-numeric: tabular-nums; font-size: var(--step-small); }
.rep-list .rl-val b { display: block; font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); color: var(--ink); }
.rep-list li.ok .rl-val b { color: var(--accent); }
.rep-list button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.rep-list button:hover { color: var(--accent); }
.cm { display: block; color: var(--accent); }
.rows .xp.cm-ok { color: var(--accent); }

/* ---------- Kill matrix ---------- */
.kzones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 48px; }
.kz { background: var(--surface); padding: 24px; display: grid; gap: 20px; align-content: start; }
.kz h3 { font-size: var(--step-lead); }
.kz h3 span { color: var(--muted); }
.kz dl { margin: 0; display: grid; gap: 4px; }
.kz dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--surface-2); padding: 12px 14px; }
.kz dd { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); font-variant-numeric: tabular-nums; color: var(--accent); }
.kz.hz { background: var(--accent); color: var(--accent-ink); }
.kz.hz h3 span { color: var(--accent-ink); }
.kz.hz dl div { background: rgba(8, 17, 13, 0.1); }
.kz.hz dd { color: var(--accent-ink); }
.kwho { color: var(--muted); font-size: var(--step-small); margin-top: 14px; padding: 0 8px; max-width: 75ch; }
.kextra { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.kextra p { background: var(--surface-2); padding: 18px 22px; font-size: var(--step-small); }
.kextra b { display: block; font-size: var(--step-body); font-weight: 500; margin-bottom: 4px; }

/* ---------- Best method tiles ---------- */
.legend { padding: 0 8px; margin-top: 24px; color: var(--muted); font-size: var(--step-small); max-width: 75ch; }
.legend b { color: var(--ink); font-weight: 500; }
.best { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-bottom: 20px; }
.best > div { padding: 22px; }
.best h4 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); letter-spacing: -0.02em; }
.b-cash { background: var(--accent); color: var(--accent-ink); }
.b-xp { background: var(--run-2); }

/* ---------- Calculator segments ---------- */
.seg { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border: 0; margin: 0; padding: 0; }
.seg legend { padding: 0 0 8px; font-size: var(--step-small); color: var(--muted); }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px; background: var(--surface-2); cursor: pointer; text-align: center; font-size: var(--step-small); transition: background-color .2s ease, color .2s ease; }
.seg label:hover { background: var(--run-3); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: 12px; top: 12px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 12px 16px; text-decoration: none; }
.skip:focus { clip-path: none; width: auto; height: auto; top: calc(env(safe-area-inset-top, 0px) + 12px); }
button, .seg label, a { touch-action: manipulation; }

/* ---------- Marquee ---------- */
.marquee { position: relative; }
.marquee.paused .track { animation-play-state: paused; }
.mq-bar { display: flex; justify-content: flex-end; margin-inline: calc(-1 * max(12px, env(safe-area-inset-left, 0px))); background: var(--ink); padding: 0 max(12px, env(safe-area-inset-right, 0px)) 12px; }
.mq-toggle { background: var(--bg); color: var(--ink); border: 0; padding: 10px 14px; font: 500 var(--step-small)/1 var(--font-text); cursor: pointer; transition: background-color .2s ease; }
.mq-toggle:hover { background: var(--surface-2); }
.marquee { overflow: hidden; margin-inline: calc(-1 * max(12px, env(safe-area-inset-left, 0px))); background: var(--ink); color: var(--bg); padding-block: 18px; }
.marquee .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-weight: 600; font-size: var(--step-figure); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; padding-right: .6em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- FAQ: a band per question ---------- */
.faq { margin-inline: calc(-1 * max(12px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(12px, env(safe-area-inset-right, 0px))); }
.faq-head { background: var(--accent); color: var(--accent-ink); min-height: 40svh; display: flex; align-items: flex-end; padding: 32px max(20px, env(safe-area-inset-left, 0px)); }
.faq-head h2 { font-size: var(--step-figure); font-weight: 300; }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 56px max(20px, env(safe-area-inset-right, 0px)) 56px max(20px, env(safe-area-inset-left, 0px)); background: var(--bg); }
.qa:nth-child(odd) { background: var(--surface); }
.qa h3 { grid-column: 1 / 6; font-family: var(--font-text); font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.2; }
.qa div { grid-column: 7 / 13; max-width: 62ch; display: grid; gap: 12px; }

/* ---------- Footer of tiles ---------- */
footer { margin-top: var(--gap); padding-bottom: 12px; }
.foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.foot .tile { min-height: 220px; }
.f-state { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.f-state p:first-child { font-size: var(--step-lead); line-height: 1.25; }
.f-state p + p { font-size: var(--step-small); color: var(--muted); }
.f-nav { grid-column: 5 / 8; }
.f-nav ul, .f-src ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-nav a { text-decoration: none; } .f-nav a:hover { color: var(--accent); }
.f-time { grid-column: 8 / 10; display: flex; flex-direction: column; justify-content: space-between; }
.f-time b { font-family: var(--font-display); font-weight: 300; font-size: var(--step-head); line-height: 1; font-variant-numeric: tabular-nums; }
.f-src { grid-column: 10 / 13; font-size: var(--step-small); }
.f-src a { color: var(--ink); text-underline-offset: 3px; } .f-src a:hover { color: var(--accent); }
.f-credits { grid-column: 1 / -1; font-size: var(--step-small); color: var(--muted); min-height: 0 !important; }
.f-credits span { display: block; max-width: 75ch; }
.f-mark { grid-column: 1 / 9; min-height: 320px !important; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.f-mark span { font-family: var(--font-display); font-weight: 600; font-size: var(--step-figure); letter-spacing: -0.04em; line-height: 1; }
.f-go { grid-column: 9 / 13; min-height: 320px !important; background: var(--accent); color: var(--accent-ink); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; font-size: var(--step-lead); transition: background-color .2s ease; }
.f-go:hover { background: #fff36a; }
.f-go svg { align-self: flex-end; transition: transform .3s var(--ease-out); }
.f-go:hover svg { transform: translateY(-6px); }
.label-h { font-size: var(--step-small); color: var(--muted); margin-bottom: 14px; display: block; font-weight: 400; font-family: var(--font-text); letter-spacing: 0; }

/* ---------- Entrances (content is visible without script) ---------- */
.js .rise { opacity: 0; transform: translateY(24px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-rows: auto; }
  .rail-l { grid-column: 1 / 5; grid-row: 4; grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .stage { grid-column: 1 / -1; grid-row: 3; min-height: 560px; }
  .rail-r { grid-column: 5 / -1; grid-row: 4; grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .rail-r .go { grid-column: span 2; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .kextra { grid-template-columns: 1fr 1fr; }
  .inputs, .result { grid-column: 1 / -1; }
  .rep-form, .rep-list, .plan-form, .plan-out, .lo-form, .lo-out, .sq-save, .sq-list, .trk-left, .trk-out { grid-column: 1 / -1; }
  .trk-out { margin-top: 40px; }
  .result { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .levels { grid-column: 1 / -1; }
  .vehicles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-state { grid-column: 1 / 7; } .f-nav { grid-column: 7 / 13; } .f-time { grid-column: 1 / 5; } .f-src { grid-column: 5 / 13; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --gap: 6px; --pad: 18px; }
  .page { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .board, .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { height: 17vw; }
  .stage-p .open { visibility: visible; opacity: 1; }
  .links { grid-column: span 1; }
  .stage { order: 1; } .rail-r { order: 2; } .rail-l { order: 3; }
  .stage { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: auto; display: flex; flex-direction: column; }
  .stage > img { position: relative; height: auto; aspect-ratio: 4 / 3; }
  .stage .statement { position: static; grid-template-columns: 1fr; padding: 22px 18px; background: var(--surface); }
  .rail-l { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1fr; }
  .rail-l .photo { min-height: 0; aspect-ratio: 16 / 10; }
  .rail-r { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1fr 1fr; }
  .rail-r .go { grid-column: 1 / -1; min-height: 96px; }
  .intro { padding: 0; }
  .cols { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .list-head, .roles, .how-intro, .mosaic-h, .calc-h, .stats-h { padding-inline: 0; }
  .list-head .btn { width: 100%; justify-content: center; }
  .roles { grid-template-columns: 1fr; gap: 16px; }
  .tabs { grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); overflow-x: auto; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-block: 8px; margin-inline: -16px; padding-inline: 16px; }
  .tab { min-height: 56px; }
  .rows li { grid-template-columns: 1fr 1fr; padding: 16px; }
  .rows .what { grid-column: 1 / -1; }
  .rows .cash, .rows .xp { text-align: left; }
  .rows li.head { display: none; }
  .how-intro, .mosaic-h, .calc-h { grid-template-columns: 1fr; }
  .how-intro h2, .how-intro p, .mosaic-h h2, .mosaic-h p, .calc-h h2, .calc-h p { grid-column: 1 / -1; }
  .accordion { flex-direction: column; height: auto; }
  .stage-p, .stage-p.is-open { flex: none; min-height: 64px; }
  .stage-p .vert { transform: none; left: 18px; bottom: auto; top: 20px; translate: none; font-size: var(--step-body); }
  .stage-p .open { position: static; display: none; grid-template-columns: 1fr; padding: 20px 18px 24px; gap: 20px; }
  .stage-p.is-open .open { display: grid; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic::before { content: ""; grid-column: 1 / -1; aspect-ratio: 16 / 9; background: var(--pic) 30% 30% / cover; }
  .cut:not(.c) { display: none; }
  .cut.c { aspect-ratio: auto; min-height: 120px; gap: 10px; }
  .cut.c.a { grid-column: 1 / -1; order: 1; }
  .vehicles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; min-height: 0; margin-inline: -16px; }
  .stats .photo { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .stats .figs { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fig { padding: 18px; min-width: 0; }
  .fig b { font-size: var(--step-head); }
  .fig p { font-size: var(--step-small); }
  .inputs { grid-template-columns: 1fr; }
  .lo-grid { grid-template-columns: 1fr; }
  .trk-levels { grid-template-columns: 1fr 1fr; }
  .trk-kpi { grid-template-columns: 1fr 1fr; }
  .trk-kpi .k-main { grid-column: 1 / -1; }
  .sq-row { flex-direction: column; }
  .pk-grid, .pk-grid.pk-wide, .pk-grid.pk-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lo-form { padding: 14px; }
  .lo-out { order: -1; }
  .rep-form, .rep-list, .plan-form, .plan-out, .lo-form, .lo-out, .sq-save, .sq-list, .trk-left, .trk-out { grid-column: 1 / -1; }
  .trk-out { margin-top: 40px; }
  .chapter { margin-left: -16px; margin-right: -16px; margin-bottom: 48px; }
  .kzones { grid-template-columns: 1fr; }
  .kwho { padding: 0; }
  .kextra { grid-template-columns: 1fr 1fr; }
  .best { grid-template-columns: 1fr; }
  .legend { padding: 0; }
  .result { grid-template-columns: 1fr; margin-top: 40px; }
  .qa { grid-template-columns: 1fr; gap: 14px; padding-block: 32px; }
  .qa h3, .qa div { grid-column: 1 / -1; }
  .faq-head { min-height: 30svh; }
  .f-mark, .f-go, .f-state, .f-nav, .f-time, .f-src, .f-credits { grid-column: 1 / -1; }
  .f-mark { min-height: 160px !important; order: -2; } .f-go { min-height: 160px !important; order: -1; }
  .foot .tile { min-height: 0; }
  .marquee { margin-inline: -16px; }
  .faq { margin-inline: -16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; }
}

/* ---------- Static site additions ---------- */
.band { position: relative; }
.lang { position: absolute; top: 10px; right: 12px; background: var(--bg); color: var(--ink); padding: 8px 12px; font: 500 var(--step-small)/1 var(--font-text); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.lang:hover { background: var(--accent); color: var(--accent-ink); }
.f-legal a { color: var(--muted); }
.f-legal a:hover { color: var(--accent); }
.sq-linkbox { display: grid; gap: 6px; }
.sq-linkbox label { font-size: var(--step-small); color: var(--muted); }
.sq-linkbox input { min-height: 44px; padding: 8px 10px; border: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-small)/1.2 var(--font-text); width: 100%; }
.trk-backup { background: var(--surface); padding: var(--pad); display: grid; gap: 10px; }
.legal { max-width: 70ch; padding-block: 48px 96px; display: grid; gap: 18px; }
.legal h1 { font-size: var(--step-head); }
.legal h2 { font-size: var(--step-lead); margin-top: 18px; }
.legal p, .legal li { color: var(--ink); }
.legal .todo { background: var(--accent); color: var(--accent-ink); padding: 2px 6px; }
[hidden] { display: none !important; }
