:root {
  --bg: #050505;
  --panel: #0a0a0a;
  --ink: #f2f2f0;
  --mute: #b0b0a8;
  --mute-soft: #8a8a82;
  --line: #2a2a28;
  --green: #39ff14;
  --green-dim: #1a5c12;
  --purple: #c44dff;
  --red: #ff2a2a;
  --amber: #ffcc33;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-body: "VT323", ui-monospace, monospace;
  --max: 1080px;
  --dither: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='%23fff' opacity='.22'/%3E%3Crect x='4' y='2' width='1' height='1' fill='%23fff' opacity='.14'/%3E%3Crect x='2' y='4' width='1' height='1' fill='%23fff' opacity='.18'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23fff' opacity='.12'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%23fff' opacity='.08'/%3E%3Crect x='6' y='0' width='1' height='1' fill='%23fff' opacity='.1'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.5;
  image-rendering: pixelated;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--green);
  color: #000;
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 10px 12px;
  border: 2px solid #000;
}
.skip-link:focus {
  top: 12px;
  outline: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

img { image-rendering: pixelated; image-rendering: crisp-edges; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: #fff; }
code { font-family: var(--font-body); color: var(--amber); }

#scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 3px
  );
}

#dither {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 76;
  opacity: 0.12;
  background: var(--dither);
  background-size: 8px 8px;
  mix-blend-mode: soft-light;
  animation: dither-drift 12s steps(12) infinite;
}

#vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 74;
  background:
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.25));
}

#scan-beam {
  pointer-events: none;
  position: fixed;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 81;
  background: linear-gradient(to bottom, transparent, rgba(57, 255, 20, 0.08), transparent);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.12);
  animation: scan-beam 7s linear infinite;
}

#crt-flicker {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 77;
  background: rgba(255, 255, 255, 0.015);
  animation: crt-flicker 5s steps(5) infinite;
}

.dither-img {
  position: relative;
  overflow: hidden;
}
.dither-img > img {
  filter: contrast(1.12) saturate(0.82) brightness(0.94);
}
.dither-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--dither);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.22;
  animation: dither-drift 10s steps(10) infinite reverse;
}

.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(14px);
}
.js .reveal.is-in {
  animation: reveal-up 560ms steps(6) forwards;
}
.js .reveal.is-in .card,
.js .reveal.is-in .story__block,
.js .reveal.is-in .part,
.js .reveal.is-in .gotchas article {
  animation: reveal-up 480ms steps(5) both;
}
.js .reveal.is-in .card:nth-child(2),
.js .reveal.is-in .story__block:nth-child(2),
.js .reveal.is-in .part:nth-child(2),
.js .reveal.is-in .gotchas article:nth-child(2) { animation-delay: 70ms; }
.js .reveal.is-in .card:nth-child(3),
.js .reveal.is-in .story__block:nth-child(3),
.js .reveal.is-in .part:nth-child(3),
.js .reveal.is-in .gotchas article:nth-child(3) { animation-delay: 140ms; }
.js .reveal.is-in .card:nth-child(4) { animation-delay: 210ms; }
.js .reveal.is-in .card:nth-child(5) { animation-delay: 280ms; }
.js .reveal.is-in .card:nth-child(6) { animation-delay: 350ms; }
.js .reveal.is-in .card:nth-child(7) { animation-delay: 420ms; }

body.is-live .hero__copy > * {
  animation: reveal-up 520ms steps(5) both;
}
body.is-live .hero__copy > .kicker { animation-delay: 40ms; }
body.is-live .hero__copy > h1 { animation-delay: 120ms; }
body.is-live .hero__copy > .lede { animation-delay: 220ms; }
body.is-live .hero__copy > .hero__actions { animation-delay: 320ms; }
body.is-live .hero__copy > .stats { animation-delay: 420ms; }
body.is-live .hero__screen {
  animation: reveal-up 640ms steps(6) 180ms both, phosphor-pulse 4s steps(2) 820ms infinite;
}

@keyframes dither-drift {
  0% { background-position: 0 0; }
  100% { background-position: 8px 8px; }
}
@keyframes scan-beam {
  0% { top: -4%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { top: 104%; opacity: 0; }
}
@keyframes crt-flicker {
  0%, 100% { opacity: 0.015; }
  48% { opacity: 0.03; }
  49% { opacity: 0; }
  50% { opacity: 0.025; }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes phosphor-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.18)); }
}
@keyframes text-glitch {
  0% { transform: translate(0); opacity: 1; }
  33% { transform: translate(-2px, 1px); opacity: 0.75; }
  66% { transform: translate(2px, -1px); opacity: 0.9; }
  100% { transform: translate(0); opacity: 1; }
}
@keyframes tag-pulse {
  0%, 100% { opacity: 1; box-shadow: none; }
  50% { opacity: 0.55; box-shadow: 0 0 8px rgba(255, 204, 51, 0.25); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50% { opacity: 0.45; box-shadow: 0 0 2px var(--green); }
}
@keyframes scan-roll {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 0.4s linear;
}
.boot.is-gone { opacity: 0; pointer-events: none; }
.boot__bezel { width: min(640px, 92vw); }
.boot__splash {
  width: 100%;
  aspect-ratio: 320 / 240;
  object-fit: cover;
  border: 4px solid #fff;
  display: block;
}
.boot__splash.is-glitch {
  animation: glitch 110ms steps(2) 10;
  filter: contrast(1.4) hue-rotate(80deg);
}
.boot__bar {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 10px 0 0;
  color: var(--green);
}
.blink { animation: blink 0.8s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes glitch {
  0% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  25% { transform: translate(-6px, 2px); clip-path: inset(20% 0 40% 0); }
  50% { transform: translate(5px, -3px); clip-path: inset(60% 0 10% 0); }
  75% { transform: translate(-3px, 4px); clip-path: inset(10% 0 55% 0); }
  100% { transform: translate(0, 0); }
}

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 2px solid #fff;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 12px;
  flex: 1;
  min-width: 120px;
}
.brand img { width: 36px; height: 36px; animation: bob 1.2s steps(2) infinite; }
.nav-toggle {
  display: none;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #fff;
  background: #000;
  border: 2px solid #fff;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--green);
  color: #000;
  border-color: var(--green);
}
.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--mute-soft);
  padding: 8px 10px;
  border: 2px solid transparent;
  transition: color 120ms steps(2), text-shadow 120ms steps(2), border-color 120ms steps(2), background 120ms steps(2);
}
.nav__link img {
  width: 18px;
  height: 18px;
  flex: none;
}
.nav__link:hover {
  color: var(--green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.35);
}
.nav__link.is-active {
  color: var(--green);
  border-color: var(--green);
  background: rgba(57, 255, 20, 0.06);
}
.gh {
  font-family: var(--font-pixel);
  font-size: 9px;
  border: 2px solid #fff;
  padding: 8px 10px;
  color: #fff;
  white-space: nowrap;
  transition: background 120ms steps(2), color 120ms steps(2), border-color 120ms steps(2);
}
.gh:hover { background: var(--green); color: #000; border-color: var(--green); }

.hero, .section, .warn, .foot { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}
.hero--sub { padding-top: 40px; }
.hero__photo {
  margin: 0;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #1a1a1a;
  background: #000;
}
.hero__photo img { width: 100%; display: block; }
.hero__photo figcaption {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--mute);
  padding: 8px 10px;
  margin: 0;
  border-top: 2px solid #fff;
}
.kicker {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--purple);
  letter-spacing: 1px;
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--font-pixel); line-height: 1.55; margin: 0; }
h1 { font-size: clamp(22px, 4vw, 34px); }
h1 span { display: inline-block; }
h2 { font-size: clamp(16px, 3vw, 22px); margin-bottom: 4px; }
h3 { font-size: 12px; }
.lede {
  color: var(--mute);
  max-width: 38ch;
  margin: 18px 0 24px;
  line-height: 1.55;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 14px;
  background: transparent;
  cursor: pointer;
  display: inline-block;
  transition: transform 100ms steps(2), background 100ms steps(2), color 100ms steps(2), box-shadow 100ms steps(2);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.08);
}
.btn:hover { background: #fff; color: #000; box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.15); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn--green { border-color: var(--green); color: var(--green); }
.btn--green:hover { background: var(--green); color: #000; }

.stats {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  gap: 24px;
}
.stats strong {
  display: block;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--green);
}
.stats span { color: var(--mute); font-size: 18px; }

.tft {
  background: #000;
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 #1a1a1a;
}
.tft__chrome {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 8px 10px;
  border-bottom: 2px solid #fff;
  color: var(--mute);
}
.tft__dot {
  width: 8px; height: 8px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 1.6s steps(2) infinite;
}
.tft__panel { position: relative; background: #000; overflow: hidden; }
.tft__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--dither);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.35;
}
.tft__panel img { width: 100%; display: block; }
.tft__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,255,80,0.06) 51%);
  background-size: 100% 4px;
  pointer-events: none;
  animation: scan-roll 1.2s linear infinite;
}
.tft__cap {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--mute);
  padding: 8px 10px;
  margin: 0;
  border-top: 2px solid #fff;
}

.warn {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 2px solid var(--red);
  padding: 16px 18px;
  margin: 10px auto 48px;
  background: #140404;
}
.warn img { width: 56px; height: 56px; flex: none; margin-top: 2px; }
.warn strong { color: var(--red); font-family: var(--font-pixel); font-size: 10px; display: block; margin-bottom: 6px; }
.warn p { margin: 0; line-height: 1.5; }

.section--icons {
  position: relative;
}
.section--icons::before {
  content: "";
  position: absolute;
  inset: -8px -16px;
  background: url("../assets/submenu_bg.png") center / 320px 240px repeat;
  opacity: 0.18;
  pointer-events: none;
}
.section--icons > * { position: relative; z-index: 1; }

.section { padding: 36px 0 64px; }
.section__head { margin-bottom: 28px; }
.section__head > p:last-child {
  color: var(--mute);
  max-width: 65ch;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.grid .card { grid-column: span 6; }
.grid--landing .card { grid-column: span 12; min-height: 0; }
@media (min-width: 720px) {
  .grid .card { grid-column: span 4; }
  .grid--landing .card { grid-column: span 6; }
}
@media (min-width: 960px) {
  .grid .card { grid-column: span 3; }
  .grid .card:nth-child(n+5) { grid-column: span 4; }
  .grid--landing .card { grid-column: span 3; }
}
.card {
  background: var(--panel);
  border: 2px solid #fff;
  padding: 16px 14px 14px;
  min-height: 220px;
  transition: transform 120ms steps(2), box-shadow 120ms steps(2), border-color 120ms steps(2);
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--green-dim);
  border-color: var(--green);
}
.card img { width: 90px; height: 90px; display: block; transition: transform 160ms steps(3); }
.card:hover img { transform: scale(1.04); }
.card h3 { margin: 12px 0 8px; }
.card p { margin: 0 0 14px; color: var(--mute); font-size: 1em; line-height: 1.45; }
.card--plain { min-height: 0; }

.story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.story__block {
  border: 2px solid #fff;
  padding: 18px;
  background: var(--panel);
  transition: transform 120ms steps(2), border-color 120ms steps(2);
}
.story__block:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
}
.story__block p { color: var(--mute); margin: 10px 0 0; line-height: 1.45; }

.page-index {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  background: var(--panel);
}
.page-index__label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--purple);
  margin: 0 0 10px;
}
.page-index__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-index__links a {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--mute-soft);
  border: 2px solid var(--line);
  padding: 6px 8px;
  background: #000;
}
.page-index__links a:hover {
  color: var(--green);
  border-color: var(--green);
}

.section--cta { padding-bottom: 40px; }
.steps-card {
  border: 2px solid var(--green);
  padding: 22px 24px;
  background: #071407;
  transition: box-shadow 160ms steps(2);
}
.steps-card:hover {
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.12);
}
.steps--big {
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 24px;
  padding-left: 24px;
}
.steps--big li { margin: 10px 0; }
.steps--big strong { color: var(--green); font-family: var(--font-pixel); font-size: 9px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.cost {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.cost__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  background: var(--panel);
}
.cost__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 2px solid var(--line);
}
.cost__list li:last-child { border-bottom: 0; }
.cost__list span { color: var(--mute); }
.cost__list strong {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--green);
  white-space: nowrap;
}
.cost__total {
  background: #071407;
  border-top: 2px solid var(--green) !important;
}
.cost__total span { color: var(--ink); }
.cost__note {
  border: 2px solid var(--green);
  padding: 18px;
  background: #071407;
}
.cost__note h3 { margin-bottom: 10px; }
.cost__note p { margin: 0 0 12px; color: var(--mute); }
.cost__note p:last-child { margin-bottom: 0; }
.price { color: var(--green); font-family: var(--font-pixel); font-size: 9px; }
.cost-banner {
  border: 2px solid var(--green);
  padding: 12px 14px;
  background: #071407;
  margin-bottom: 28px;
}
.cost-banner strong { color: var(--green); font-family: var(--font-pixel); font-size: 9px; }
.tag {
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 5px 6px;
  border: 2px solid;
}
.tag--ok { color: var(--green); border-color: var(--green); }
.tag--soon { color: var(--amber); border-color: var(--amber); animation: tag-pulse 1.6s steps(2) infinite; }

.section--device { background: transparent; }
.device {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.menu {
  position: relative;
  border: 4px solid #fff;
  min-height: 280px;
  overflow: hidden;
  background: #000;
}
.menu__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.menu__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 12px 12px;
}
.menu__focus { text-align: center; }
.menu__focus img { width: 90px; height: 90px; transition: opacity 100ms steps(2); }
.menu__focus.is-glitch img { animation: glitch 80ms steps(2) 4; }
.menu__focus.is-glitch #menu-title { animation: text-glitch 80ms steps(2) 4; }
.menu__focus p { margin: 8px 0 0; }
#menu-title { font-family: var(--font-pixel); font-size: 10px; }
#menu-sub { color: var(--mute); }
.menu__cursor {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 24px;
  height: 28px;
  z-index: 2;
  animation: bob 0.7s steps(2) infinite;
}
@keyframes bob { 50% { transform: translateY(4px); } }
.menu__hint {
  position: relative;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 7px;
  text-align: center;
  color: var(--green);
  margin: 8px 0 16px;
}
.ghost {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: #fff;
  background: #000;
  border: 2px solid #fff;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.ghost:hover { background: var(--green); color: #000; border-color: var(--green); }

.device__meta h3 { margin: 0 0 12px; }
.device__meta h3 + .kv,
.device__meta h3 + .steps { margin-top: 0; }
.device__meta h3:not(:first-child) { margin-top: 22px; }
.kv { list-style: none; padding: 0; margin: 0 0 8px; }
.kv li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--line);
  padding: 6px 0;
}
.kv span:first-child { font-family: var(--font-pixel); font-size: 8px; color: var(--green); }
.steps { margin: 0; padding-left: 22px; color: var(--mute); line-height: 1.45; }
.note { color: var(--mute); line-height: 1.45; }

.tables-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
  border: 2px solid var(--line);
  background: #000;
}
.tables-wrap .tables { margin-bottom: 0; }

.parts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.part { border: 2px solid #fff; padding: 16px; background: var(--panel); transition: transform 120ms steps(2), border-color 120ms steps(2); }
.part:hover { transform: translateY(-2px); border-color: var(--green); }
.part p { color: var(--mute); margin: 10px 0 0; }

.tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 520px;
  padding: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: 1em; }
th, td { border: 2px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--green);
  background: #0d0d0d;
}

.build-photo { margin-bottom: 14px; }

.submenus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.submenus--landing { margin-top: 20px; }
.submenus__hint {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--mute-soft);
  font-size: 0.95em;
}
.submenus .shot img {
  aspect-ratio: 320 / 240;
  object-fit: contain;
  background: #000;
}

.shots {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 14px;
}
figure { margin: 0; }
figcaption {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--mute-soft);
  margin-top: 8px;
  line-height: 1.5;
}
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid #fff;
  background: #111;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  transition: transform 120ms steps(2), box-shadow 120ms steps(2);
}
.shot:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--green-dim);
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--dither);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
  opacity: 0.3;
  transition: opacity 160ms steps(2);
}
.shot:hover::after { opacity: 0.5; }
.shot img { width: 100%; display: block; filter: contrast(1.08) saturate(0.88); }
.shot--wide img { background: #f3efe4; }
.shot--static { cursor: default; }

.arch { margin: 0; }
.diagrams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.arch--full { grid-column: 1 / -1; }
.diagram {
  border: 2px solid #fff;
  background: #000;
  padding: 8px;
}
.diagram img,
.diagram object {
  width: 100%;
  display: block;
}
.layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.layout div {
  border: 2px solid #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.layout code { color: var(--green); font-size: 20px; }
.layout span { color: var(--mute); font-size: 18px; }

.term {
  background: #000;
  border: 2px solid var(--green);
  padding: 18px;
  color: var(--green);
  overflow-x: auto;
  font-family: var(--font-body);
  font-size: 22px;
  position: relative;
}
.term::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--dither);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
  opacity: 0.2;
}
.term__prompt { color: #fff; }
.gotchas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.gotchas article { border: 2px solid #fff; padding: 14px; }
.gotchas p { color: var(--mute); margin: 10px 0 0; }

.section--legal { padding-bottom: 32px; }
.legal {
  border: 2px solid var(--amber);
  padding: 18px 20px;
  background: #141208;
}
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }

.foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 40px;
  border-top: 2px solid #fff;
  margin-top: 10px;
}
.foot p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--mute-soft);
  line-height: 1.5;
}

.lightbox {
  border: 4px solid #fff;
  background: #000;
  padding: 16px;
  max-width: min(1100px, 94vw);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-height: 78vh; width: auto; display: block; margin: 0 auto 14px; background: #000; }
.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.lightbox__hint {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--mute-soft);
  margin: 0;
}
.lightbox form { margin: 0; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .boot { display: none; }
  .reveal { opacity: 1; transform: none; }
  #dither, #scan-beam, #crt-flicker { display: none; }
}

@media (max-width: 860px) {
  .top {
    gap: 10px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
  .brand { min-width: 0; }
  .nav-toggle { display: inline-block; }
  .gh { justify-self: end; }
  .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding-top: 4px;
  }
  .nav.is-open { display: flex; }
  .nav__link { width: 100%; }
  .hero, .device, .tables, .shots, .parts, .gotchas, .layout, .diagrams, .story, .cost, .submenus {
    grid-template-columns: 1fr;
  }
  .tables { min-width: 480px; }
  .stats { flex-wrap: wrap; gap: 16px; }
  .lede { max-width: none; }
  .section__head > p:last-child { max-width: none; }
  h1 { font-size: 22px; }
  .page-index__links a { flex: 1 1 calc(50% - 8px); text-align: center; }
}
