:root {
  --night: #070a18;
  --night-2: #0b1026;
  --panel: #111735;
  --panel-2: #0b0f24;
  --line: #202a58;
  --line-2: #35427e;
  --ink: #eef1ff;
  --ink-2: #aab2d6;
  --ink-3: #707aa6;
  --river: #2d32b8;
  --river-2: #4a50e0;
  --bank: #6e9c42;
  --bank-dark: #355f18;
  --jet: #e8e84a;
  --jet-2: #ffff8a;
  --fuel: #d65c5c;
  --road: #8e8e8e;
  --cyan: #5cc8ff;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(90% 60% at 50% -10%, rgba(45, 50, 184, 0.28) 0%, transparent 62%),
    radial-gradient(70% 50% at 100% 30%, rgba(110, 156, 66, 0.07) 0%, transparent 60%),
    var(--night);
  color: var(--ink-2);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 60% at 50% 20%, black, transparent 80%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 22px 56px;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd, .mono {
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", "Courier New", monospace;
}

code {
  color: var(--jet);
  font-size: 0.9em;
  background: rgba(232, 232, 74, 0.07);
  border: 1px solid rgba(232, 232, 74, 0.14);
  border-radius: 5px;
  padding: 1px 5px;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 3px;
  border-radius: 5px;
  background: #151c42;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* ---------------- hero ---------------- */

.hero {
  padding: clamp(34px, 6vw, 74px) 0 34px;
  text-align: center;
}

.hero-stripes {
  display: grid;
  gap: 4px;
  width: min(520px, 76vw);
  margin: 0 auto 28px;
  transform: skewX(-18deg);
}

.hero-stripes span {
  display: block;
  height: 5px;
  border-radius: 2px;
  opacity: 0.92;
}
.hero-stripes span:nth-child(1) { background: var(--river); }
.hero-stripes span:nth-child(2) { background: var(--river-2); }
.hero-stripes span:nth-child(3) { background: var(--bank); }
.hero-stripes span:nth-child(4) { background: var(--bank-dark); }
.hero-stripes span:nth-child(5) { background: var(--jet); }
.hero-stripes span:nth-child(6) { background: var(--fuel); }

.eyebrow {
  margin: 0 0 16px;
  font: 600 11px/1.4 ui-monospace, "Cascadia Mono", "Courier New", monospace;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(52px, 12vw, 142px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: clamp(2px, 1.2vw, 16px);
  text-indent: clamp(2px, 1.2vw, 16px);
  text-transform: uppercase;
  text-shadow:
    0 3px 0 #161d5c,
    0 7px 0 rgba(6, 9, 30, 0.8),
    0 0 60px rgba(45, 50, 184, 0.55);
}

.lede {
  max-width: 720px;
  margin: 26px auto 0;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--ink-2);
}

.lede strong { color: var(--ink); font-weight: 650; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: 600 14px/1.2 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.button:hover { transform: translateY(-1px); background: #182052; border-color: #49579c; text-decoration: none; }
.button:active { transform: translateY(0); }
.button.primary {
  background: linear-gradient(180deg, var(--jet-2), var(--jet));
  border-color: #9b9b22;
  color: #12142e;
  font-weight: 750;
  box-shadow: 0 10px 28px -10px rgba(232, 232, 74, 0.6);
}
.button.primary:hover { background: linear-gradient(180deg, #ffffb0, #f0f060); }
.button.big { min-height: 52px; padding: 12px 26px; font-size: 16px; }
.button.big span { font-size: 12px; }

.specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  margin: 38px auto 0;
  padding: 16px 20px;
  width: fit-content;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.specs div { text-align: left; }
.specs dt {
  font: 600 9px/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.specs dd {
  margin: 2px 0 0;
  color: var(--ink);
  font: 600 13px/1.4 ui-monospace, "Cascadia Mono", monospace;
}

/* ---------------- cabinet ---------------- */

.cabinet {
  margin-top: 18px;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(28, 36, 88, 0.72), rgba(8, 11, 28, 0.96)),
    var(--panel-2);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  scroll-margin-top: 18px;
}

.cabinet-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font: 700 11px/1 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.18em;
}
.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--river) 0 50%, var(--bank) 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.cabinet-lights { display: flex; gap: 5px; margin-left: auto; }
.cabinet-lights i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--fuel);
  box-shadow: 0 0 8px var(--fuel);
  opacity: 0.8;
}
.cabinet-lights i:nth-child(2) { background: var(--jet); box-shadow: 0 0 8px var(--jet); }
.cabinet-lights i:nth-child(3) { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.cart-label {
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: #0a0e22;
  color: var(--jet);
  font: 700 10px/1 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.16em;
}

.screen-bezel {
  margin: 14px auto 0;
  padding: clamp(10px, 1.6vw, 16px);
  width: min(760px, 100%);
  border-radius: 20px;
  background: linear-gradient(180deg, #05060d, #10142b 55%, #05060d);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 20px 50px rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.06);
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #000;
  box-shadow:
    0 0 0 1px #000,
    0 0 0 3px #232b5c,
    0 0 42px rgba(45, 50, 184, 0.18);
}

.screen canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 398;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
}
.screen canvas.mode-river {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.screen canvas.mode-petro {
  image-rendering: auto;
}

.glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 26%),
    radial-gradient(120% 80% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.28) 100%);
  mix-blend-mode: screen;
  opacity: 0.65;
}
.screen.crt .glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* overlays */

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(80% 80% at 50% 45%, rgba(5, 8, 24, 0.5), rgba(3, 5, 15, 0.88));
  backdrop-filter: blur(1.5px);
}
.overlay[hidden] { display: none; }

.poster {
  text-align: center;
  background: transparent;
  backdrop-filter: none;
}
.poster-inner { display: grid; justify-items: center; gap: 14px; }
.poster-kicker {
  margin: 0;
  color: var(--jet);
  font: 600 10px/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.poster-title {
  color: #fff;
  font-size: clamp(42px, 9vw, 84px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0.06em;
  text-shadow: 0 3px 0 #1a1f63, 0 0 34px rgba(45, 50, 184, 0.8);
}
.poster-hint {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.8);
}

.overlay-card {
  width: min(360px, 100%);
  padding: 26px 24px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(9, 13, 34, 0.9);
  text-align: center;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
}
.overlay-kicker {
  margin: 0 0 6px;
  color: var(--ink-3);
  font: 600 9px/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.overlay-card h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.final-score {
  margin: 0;
  color: var(--jet);
  font: 800 44px/1 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.03em;
}
.final-score small {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font: 600 10px/1.4 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.best { margin: 10px 0 18px; color: var(--ink-2); font: 500 12px/1.4 ui-monospace, monospace; }

/* bottom tray */

.cabinet-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 6px 4px;
}
.readouts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.readout {
  min-width: 82px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 22, 0.6);
}
.readout span {
  display: block;
  font: 600 8px/1.4 ui-monospace, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.readout strong {
  display: block;
  color: var(--jet);
  font: 700 15px/1.3 ui-monospace, "Cascadia Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.switches { display: flex; flex-wrap: wrap; gap: 6px; }
.switches button {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink-2);
  font: 600 10px/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.switches button:hover { color: var(--ink); border-color: var(--line-2); background: #121938; }
.switches button[aria-pressed="true"] { color: var(--jet); border-color: #6d6d1e; }

.hint {
  margin: 12px 6px 2px;
  color: var(--ink-3);
  font: 500 11px/1.5 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.03em;
  text-align: center;
}

.fs-exit { display: none; }
body.fullscreen .fs-exit {
  display: block;
  position: fixed;
  z-index: 40;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  padding: 8px 13px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(8, 11, 28, 0.88);
  color: var(--ink);
  font: 600 11px/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
body.fullscreen .fs-exit:hover { border-color: var(--jet); color: var(--jet); }

/* ---------------- touch ---------------- */

.touch-controls {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  width: min(430px, 100%);
  margin: 16px auto 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.dpad {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  grid-template-rows: repeat(3, 52px);
  gap: 5px;
}
.dpad button, .fire {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: linear-gradient(180deg, #1a2250, #0c1130);
  color: var(--ink);
  font: 700 20px/1 ui-sans-serif, system-ui, sans-serif;
  touch-action: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.dpad button:active, .fire:active, .dpad button.held, .fire.held {
  background: linear-gradient(180deg, #2b3675, #151c42);
  transform: translateY(1px);
}
.dpad [data-hold="up"] { grid-area: 1 / 2; }
.dpad [data-hold="left"] { grid-area: 2 / 1; }
.dpad [data-hold="right"] { grid-area: 2 / 3; }
.dpad [data-hold="down"] { grid-area: 3 / 2; }
.fire {
  width: 98px; height: 98px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f07a7a, var(--fuel) 55%, #8f2d2d);
  border-color: #8f2d2d;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (pointer: coarse) {
  .touch-controls { display: flex; }
}

/* ---------------- cards ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 23, 53, 0.9), rgba(9, 13, 30, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0.01em;
}
.card p { margin: 0 0 12px; font-size: 14px; }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--ink-3); font-size: 12.5px; }
.keys { width: 100%; border-collapse: collapse; font-size: 13px; }
.keys th {
  padding: 7px 0;
  text-align: left;
  font-weight: 500;
  color: var(--ink-3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.keys tr:first-child th, .keys tr:first-child td { border-top: 0; }
.keys td { padding: 7px 0; text-align: right; color: var(--ink-2); }
.score-list { list-style: none; margin: 0 0 14px; padding: 0; }
.score-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.score-list li:first-child { border-top: 0; }
.score-list b { color: var(--jet); font-family: ui-monospace, monospace; }
.score-list small { color: var(--ink-3); font-size: 10.5px; font-weight: 400; }

/* ---------------- inside ---------------- */

.inside {
  margin-top: 44px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(45, 50, 184, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(17, 23, 53, 0.85), rgba(7, 10, 24, 0.95));
}
.inside-head { max-width: 780px; }
.inside-head h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.inside-head p { margin: 0; font-size: 15px; }
.inside-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.inside-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 7, 20, 0.45);
}
.inside-card .number {
  display: block;
  margin-bottom: 12px;
  color: var(--jet);
  font: 700 11px/1 ui-monospace, monospace;
  letter-spacing: 0.2em;
}
.inside-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
.inside-card p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.verification {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.verification div { text-align: center; }
.verification strong {
  display: block;
  color: var(--jet);
  font: 800 clamp(24px, 3vw, 34px)/1.1 ui-monospace, "Cascadia Mono", monospace;
}
.verification span {
  display: block;
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.45;
}

/* ---------------- gallery ---------------- */

.gallery { margin-top: 46px; }
.section-head { max-width: 680px; }
.section-head h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.1;
}
.section-head p { margin: 0; font-size: 14px; }
.sprite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.sprite-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(45, 50, 184, 0.22), rgba(9, 13, 30, 0.85));
  text-align: center;
}
.sprite-card canvas {
  image-rendering: pixelated;
  height: 64px;
  width: auto;
  max-width: 100%;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}
.sprite-card .sprite-name { color: var(--ink); font-size: 12px; font-weight: 650; }
.sprite-card .sprite-points {
  margin-top: 2px;
  color: var(--jet);
  font: 700 10px/1.3 ui-monospace, monospace;
  letter-spacing: 0.12em;
}

/* ---------------- footer ---------------- */

footer {
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 30px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
footer p { max-width: 760px; margin: 0; }
footer strong { color: var(--ink-2); }
.footer-meta {
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------------- fullscreen ---------------- */

body.fullscreen { overflow: hidden; }
body.fullscreen .page {
  width: 100%;
  max-width: none;
  padding: 0;
}
body.fullscreen .hero,
body.fullscreen .cards,
body.fullscreen .inside,
body.fullscreen .gallery,
body.fullscreen footer,
body.fullscreen .cabinet-top,
body.fullscreen .cabinet-bottom,
body.fullscreen .hint { display: none; }
body.fullscreen .cabinet {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.fullscreen .screen-bezel {
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: #000;
}
body.fullscreen .screen { border-radius: 0; box-shadow: none; }
body.fullscreen .screen canvas {
  width: min(100vw, calc(100dvh * 640 / 398));
  max-height: 100dvh;
  margin: 0 auto;
}
body.fullscreen .touch-controls {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  padding: 12px max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  margin: 0 auto;
  z-index: 20;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
}
@media (pointer: fine) { body.fullscreen .touch-controls { display: none; } }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .inside-grid { grid-template-columns: 1fr 1fr; }
  .verification { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page { padding: 0 14px 40px; }
  .cards { grid-template-columns: 1fr; }
  .inside-grid { grid-template-columns: 1fr; }
  .verification { grid-template-columns: 1fr 1fr; }
  .specs { gap: 10px 20px; }
  .cabinet { border-radius: 18px; padding: 10px; }
  .cabinet-bottom { justify-content: center; }
  .readouts { justify-content: center; }
  .switches { justify-content: center; }
  .readout { min-width: 72px; padding: 6px 9px; }
  .readout strong { font-size: 13px; }
  .poster-title { font-size: 46px; }
  .hint { font-size: 10px; }
  .dpad { grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 46px); }
  .fire { width: 86px; height: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ------------------------------------------------------------------------- */
/* Simplified home page                                                       */
/* ------------------------------------------------------------------------- */

.home-page {
  width: min(1040px, 100%);
  padding-bottom: 32px;
}

.home-hero {
  padding: clamp(26px, 4vw, 46px) 0 clamp(16px, 2.4vw, 26px);
}

.home-hero h1 {
  font-size: clamp(48px, 10vw, 88px);
  letter-spacing: clamp(2px, 0.8vw, 10px);
  text-indent: clamp(2px, 0.8vw, 10px);
}

.home-page .cabinet {
  margin-top: 0;
}

.home-page .screen-bezel {
  width: min(720px, 100%);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  margin-left: -9px;
  border-radius: 7px;
  color: var(--jet);
  font: 700 12px/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.about-link span {
  color: var(--ink-3);
  font-size: 12px;
  transition: transform 0.12s, color 0.12s;
}
.about-link:hover {
  background: rgba(232, 232, 74, 0.08);
  color: var(--jet-2);
  text-decoration: none;
}
.about-link:hover span { color: var(--jet); transform: translate(1px, -1px); }

.top-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.top-controls button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink-2);
  font: 600 10px/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.top-controls button:hover { color: var(--ink); border-color: var(--line-2); background: #121938; }
.top-controls button[aria-pressed="true"] { color: var(--jet); border-color: #6d6d1e; }

.mode-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #080d1c;
}
.mode-switch button {
  border: 0;
  border-radius: 6px;
  padding: 5px 9px;
  background: transparent;
  color: var(--ink-3);
  font: 600 10px/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}
.mode-switch button:hover { color: var(--ink); }
.mode-switch button[aria-pressed="true"] {
  color: #17120a;
  background: linear-gradient(180deg, #f0c96a, #d6a13f);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.mode-switch button[data-mode="river"][aria-pressed="true"] {
  color: #07140a;
  background: linear-gradient(180deg, #a6d77a, #6e9c42);
}

@media (max-width: 680px) {
  .home-hero { padding-top: 22px; }
  .cabinet-top { align-items: flex-start; gap: 10px; }
  .top-controls { width: 100%; margin-left: 0; }
  .top-controls button { flex: 1 1 auto; text-align: center; }
  .home-page .screen-bezel { padding: 8px; border-radius: 14px; }
}

/* ------------------------------------------------------------------------- */
/* About page                                                                 */
/* ------------------------------------------------------------------------- */

.about-page { width: min(1180px, 100%); }

.about-hero {
  padding: clamp(38px, 6vw, 70px) 0 clamp(20px, 3vw, 32px);
}

.about-hero .eyebrow { color: var(--jet); }
.about-hero h1 {
  font-size: clamp(44px, 8vw, 96px);
  letter-spacing: clamp(2px, 0.8vw, 10px);
  text-indent: clamp(2px, 0.8vw, 10px);
}
.about-hero .title-sub {
  display: block;
  margin-top: 12px;
  color: var(--jet);
  font-size: 0.34em;
  letter-spacing: 0.22em;
  text-indent: 0;
  text-shadow: 0 0 24px rgba(232, 184, 74, 0.22);
}
.about-hero .lede { margin-top: 20px; }
.about-hero .hero-actions { margin-top: 24px; }

.modes {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(232, 184, 74, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(17, 23, 53, 0.9), rgba(7, 10, 24, 0.95));
}
.modes h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
}
.modes-lead { max-width: 820px; margin: 0; font-size: 15px; }
.modes .muted { color: var(--ink-3); font-size: 12.5px; }
.mode-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.mode-shots figure {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 7, 20, 0.55);
}
.mode-shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  image-rendering: pixelated;
}
.mode-shots figcaption {
  padding: 9px 4px 3px;
  color: var(--ink-3);
  font-size: 11.5px;
}
.mode-shots figcaption strong { color: var(--ink); }
.replacement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0 16px;
}
.replacement-grid div {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 7, 20, 0.35);
  font-size: 11.5px;
  line-height: 1.5;
}
.replacement-grid span { display: block; color: var(--ink-3); }
.replacement-grid b { display: block; color: var(--jet); font-weight: 600; }

.price-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 7, 20, 0.45);
}
.price-panel h3 {
  margin: 0 0 8px;
  color: var(--jet);
  font-size: 15px;
}
.price-panel p { margin: 0 0 12px; font-size: 13px; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  font: 12px/1.5 ui-monospace, "Cascadia Mono", monospace;
}
.price-table th {
  padding: 6px 8px;
  color: var(--ink-3);
  font-weight: 500;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table td {
  padding: 6px 8px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.price-table td:last-child { color: var(--jet); font-weight: 700; }
.price-table tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) {
  .mode-shots { grid-template-columns: 1fr; }
  .replacement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.about-shot {
  display: block;
  width: min(760px, 100%);
  height: auto;
  margin: 30px auto 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  image-rendering: pixelated;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

.about-page .cards { margin-top: 34px; }
.about-page .inside { margin-top: 26px; }
.about-page .gallery { margin-top: 36px; }
.about-page footer { margin-top: 46px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
