:root {
  --bg: #e2e7d2;
  --bg-2: #d6dcc3;
  --bg-3: #cad1b4;
  --line: #b6bf9c;
  --line-2: #8f9a74;
  --ink: #18210f;
  --ink-2: #485238;
  --ink-3: #566048;
  --hot: #c8135c;
  --hot-ink: #fff4f8;
  --hot-text: #b30f52; /* the accent, dark enough for small text */
  --lcd: #0f380f;
  --bad: #b3261e;
  --display: 'Silkscreen', 'DM Mono', monospace;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --rail: 76px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.7 var(--mono);
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: none;
  min-height: 100vh;
}
::selection { background: var(--hot); color: var(--hot-ink); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); }
.mono { font-family: var(--mono); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.acid { color: var(--hot-text); }
.key { font-family: var(--mono); font-size: 12px; }

/* ---- address rail: the page reads like a memory dump ---- */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 5;
  border-right: 2px solid var(--ink); overflow: hidden; pointer-events: none;
  font: 10px/1 var(--mono); color: var(--ink-3); background: var(--bg-2);
}
.rail div { position: absolute; left: 0; right: 0; height: 48px; padding: 6px 10px 0; border-top: 1px dashed var(--line); }
.rail div.hit { color: var(--hot-ink); background: var(--hot); }

/* ---- header: a solid bar with notched tabs ---- */
header {
  position: fixed; top: 0; left: var(--rail); right: 0; z-index: 20; height: 64px;
  display: flex; align-items: stretch; gap: 0;
  background: var(--bg); border-bottom: 2px solid var(--ink);
}
.mark { display: flex; align-items: center; gap: 8px; padding: 0 22px; font: 700 18px/1 var(--display); border-right: 2px solid var(--ink); }
.mark img { width: 48px; height: 48px; flex: none; display: block; margin-left: -6px; image-rendering: pixelated; }
nav { display: flex; flex: 1; }
nav a {
  display: flex; align-items: center; padding: 0 22px; border-right: 1px solid var(--line);
  font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--ink-2); transition: color .2s, background .2s;
}
nav a:hover { color: var(--ink); background: var(--bg-2); }
nav a.on { color: var(--ink); background: var(--bg-2); box-shadow: inset 0 -4px 0 var(--hot); }
header > .btn { align-self: center; margin-right: 16px; }

/* ---- buttons: hard offset shadow, like a pressed key ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; height: 40px; padding: 0 18px;
  border: 2px solid var(--ink); background: var(--bg); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink);
  font: 500 12px/1 var(--mono); letter-spacing: .04em;
  transition: transform .12s, box-shadow .12s, background .2s;
}
.btn:active { transform: translate(3px, 3px) scale(.97); box-shadow: 0 0 0 var(--ink); }
.btn.go { background: var(--hot); color: var(--hot-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--bg-2); }
  .btn.go:hover { background: #d91d69; }
}
.btn.big { height: 50px; padding: 0 24px; font-size: 13px; }
.btn > .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn[disabled] { pointer-events: none; background: var(--bg-2); color: var(--ink-3); border-style: dashed; border-color: var(--ink-3); box-shadow: none; }
.btn.busy { pointer-events: none; cursor: progress; transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.busy::after { content: ''; flex: none; width: 8px; height: 8px; background: currentColor; animation: blink .6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

main { position: relative; margin-left: var(--rail); padding: 152px 48px 140px; max-width: 1380px; min-height: 100vh; }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.05em; }
h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1; }
h1 .dim { color: var(--hot); }
h2 { font-size: 26px; line-height: 1.1; margin-bottom: 18px; }
h3 { font-size: 20px; line-height: 1.1; }
.label { font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--ink-3); }

/* ---- hero: text left, a handheld screen right ---- */
.hero { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero > :first-child { order: 2; }
.hero p { max-width: 460px; color: var(--ink-2); font-size: 15px; margin: 26px 0 32px; }
.hero p b { color: var(--ink); font-weight: 500; }
.hero .actions .btn { max-width: 100%; }
.screen { position: relative; background: #9ea78a; padding: 22px 22px 14px; border: 2px solid var(--ink); border-radius: 8px 8px 36px 8px; box-shadow: 6px 6px 0 var(--ink); }
.screen canvas { display: block; width: 100%; image-rendering: pixelated; border: 2px solid var(--lcd); }
.screen .cap { display: flex; justify-content: space-between; padding: 10px 2px 0; color: var(--ink); }
.screen .label { color: var(--ink); }

/* ---- the gta 6 meter: a battery ---- */
.meter { margin: 96px 0 72px; padding: 26px 28px 44px; background: var(--bg-2); border: 2px solid var(--ink); border-radius: 3px; }
.meter .top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.meter b { font: 400 52px/1 var(--display); }
.track { position: relative; height: 26px; margin-top: 20px; border: 2px solid var(--ink); background: var(--bg); }
.track::after { content: ''; position: absolute; right: -8px; top: 5px; width: 6px; height: 12px; background: var(--ink); }
.track i { position: absolute; inset: 2px auto 2px 2px; min-width: 6px; background: repeating-linear-gradient(90deg, var(--hot) 0 8px, transparent 8px 10px); }
.track .tick { position: absolute; top: 32px; font: 11px/1 var(--mono); color: var(--ink-3); transform: translateX(-50%); white-space: nowrap; }
.track .tick:first-of-type { transform: none; }
.track .tick:last-of-type { transform: translateX(-100%); }

/* ---- shelf: cartridges ---- */
.shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 22px; }
.shelf-head h2 { margin: 0; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.cart {
  position: relative; display: block; padding: 18px 14px 14px; background: var(--bg-2); border: 2px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: transform .2s var(--ease-out), background .2s;
}
.cart::before { /* grip ridges on the top edge */
  content: ''; position: absolute; left: 14px; right: 14px; top: 6px; height: 5px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 6px); opacity: .45;
}
@media (hover: hover) and (pointer: fine) { .cart:hover { transform: translateY(-4px); background: var(--bg-3); } }
.cart:active { transform: scale(.97); }
.cover { position: relative; background: var(--lcd); border: 2px solid var(--ink); overflow: hidden; }
.cover canvas { display: block; width: 100%; aspect-ratio: 16 / 10; image-rendering: pixelated; }
.cover::after { /* scan line on hover */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hot); opacity: 0;
}
@media (hover: hover) and (pointer: fine) { .cart:hover .cover::after { opacity: 1; animation: scan 1.1s steps(20) infinite; } }
@keyframes scan { from { top: 0; } to { top: calc(100% - 3px); } }
.cart .body { padding: 12px 2px 0; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cart .row + .row { margin-top: 6px; }
.cart h3 { overflow-wrap: anywhere; }
.cart .sym { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip { display: inline-block; padding: 2px 7px; border: 1.5px solid currentColor; border-radius: 3px; font: 500 10px/1.3 var(--mono); letter-spacing: .06em; color: var(--ink-2); }
.chip.ok { color: var(--hot); }

/* ---- game page ---- */
.game { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.game > :first-child { order: 2; }
.game h1 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 18px; overflow-wrap: anywhere; }
.game h1.long { font-size: clamp(30px, 3.4vw, 48px); }
.kv { display: grid; grid-template-columns: 140px 1fr; margin: 28px 0 32px; border-top: 2px solid var(--ink); }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px dashed var(--line-2); margin: 0; }
.kv dt { font: 500 11px/1.9 var(--mono); color: var(--ink-3); }
.kv dd { font: 12px/1.7 var(--mono); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.player { scroll-margin-top: 80px; margin-top: 56px; border: 2px solid var(--ink); border-radius: 3px; overflow: hidden; display: none; background: var(--lcd); box-shadow: 6px 6px 0 var(--ink); }
.player.on { display: block; animation: rise .3s var(--ease-out); }
.player .bar { display: flex; justify-content: space-between; padding: 8px 14px; background: var(--ink); color: var(--bg); }
.player .bar .faint, .player .bar .label { color: var(--line); }
.player iframe { display: block; width: 100%; height: min(78vh, 760px); border: 0; background: var(--bg); }
table { width: 100%; max-width: 760px; border-collapse: collapse; }
th { text-align: left; font: 500 11px/1 var(--mono); color: var(--ink-3); padding: 0 0 10px; border-bottom: 2px solid var(--ink); }
td { padding: 12px 0; border-bottom: 1px dashed var(--line-2); font: 12px/1.4 var(--mono); }
td:last-child, th:last-child { text-align: right; }
section { margin-top: 80px; }
.owned { margin-top: 18px; }

.field { display: flex; height: 40px; border: 2px solid var(--ink); border-radius: 3px; background: var(--bg); overflow: hidden; }
.field input { width: 120px; border: 0; background: transparent; padding: 0 12px; font: 13px var(--mono); color: var(--ink); outline: none; }
.field span { display: flex; align-items: center; padding: 0 12px; color: var(--ink-3); border-left: 1px solid var(--line-2); font: 11px var(--mono); }
.field span.pre { order: -1; padding-right: 0; border-left: 0; color: var(--ink-2); font-size: 13px; }
.field span.pre + input, .field input:has(+ span.pre) { padding-left: 4px; }
.field:focus-within { outline: 2px solid var(--hot); outline-offset: 2px; }

pre.cmd { background: var(--lcd); color: #9bbc0f; border: 2px solid var(--ink); border-radius: 3px; padding: 18px 20px; overflow-x: auto; margin: 20px 0; font: 12px/1.7 var(--mono); }
pre.cmd::before { content: '> '; color: #8bac0f; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 20px; }
.steps[hidden] { display: none; }
.steps li { counter-increment: s; border: 2px solid var(--ink); background: var(--bg-2); padding: 16px; color: var(--ink-3); }
.steps li.on { color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.steps li.done { color: var(--ink); background: var(--bg-3); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 24px; max-width: 640px; }
.form label { display: grid; gap: 8px; }
.form .field input { width: 100%; min-width: 0; }
.form .form-wide { grid-column: 1 / -1; margin: 0; }
details.alt { margin-top: 40px; }
details.alt summary { cursor: pointer; }

/* ---- folds: our own marker, no native triangle ---- */
.fold summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '+'; font: 500 14px/1 var(--mono); color: var(--hot); }
.fold[open] summary::after { content: '\2212'; }
.fold .kv { margin-top: 10px; }
.fold .form { margin-top: 12px; }

/* ---- the coin card ---- */
.coin { margin: 0 0 26px; padding: 18px 20px 20px; background: var(--bg-2); border: 2px solid var(--ink); border-radius: 3px; }
.coin .top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.coin .sym { font: 400 28px/1 var(--display); letter-spacing: -.04em; }
.coin dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin: 18px 0; }
.coin dt { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; color: var(--ink-3); }
.coin dd { margin: 6px 0 0; font: 15px/1.3 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.btn .cost { opacity: .8; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; font: 400 18px/1 var(--display); background: var(--hot); color: var(--hot-ink); }
.drop {
  display: grid; place-items: center; align-content: center; gap: 10px; margin-top: 56px; min-height: 200px; cursor: pointer; text-align: center;
  border: 2px dashed var(--ink-2); border-radius: 3px; background: var(--bg-2); transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--hot); background: var(--bg-3); }
.drop.small { min-height: 0; margin-top: 32px; padding: 18px; }
.drop.small b { font-size: 16px; }
.drop b { font: 400 24px/1 var(--display); }

/* ---- live tape: under the header, on every page ---- */
.tape { position: absolute; left: 0; right: 0; top: calc(100% + 2px); height: 30px; overflow: hidden; background: var(--ink); color: var(--bg); font: 12px/30px var(--mono); }
.tape-run { display: flex; width: max-content; animation: tape var(--secs, 40s) linear infinite; }
.tape-run > div { display: flex; }
.tape-run.still { animation: none; }
.tape:hover .tape-run { animation-play-state: paused; }
.tape .ev { display: inline-flex; gap: 10px; padding: 0 18px; border-right: 1px solid var(--ink-2); white-space: nowrap; }
.tape .ev .when { color: var(--line); }
@media (hover: hover) { .tape .ev:hover { background: var(--ink-2); } }
.tape .ev.hot { background: var(--hot); color: var(--hot-ink); }
.tape .ev.hot .when { color: var(--hot-ink); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---- the unlock race ---- */
.race-wrap { margin-top: 88px; }
.race { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.racer {
  display: grid; grid-template-columns: 40px 168px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 4px 22px; align-items: center; padding: 16px 20px;
  background: var(--bg-2); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 3px 3px 0 var(--ink);
}
.racer .rank { grid-row: 1 / 3; font: 400 30px/1 var(--display); color: var(--ink-3); }
.racer > .cover { grid-row: 1 / 3; }
.racer .rhead { grid-column: 3; align-self: end; }
.racer .rhead h3 { overflow-wrap: anywhere; }
.racer .rhead .sym { flex: none; }
.racer .rmeter { grid-column: 3; align-self: start; }
.racer > .btn { grid-column: 4; grid-row: 1 / 3; }
.racer:first-child .rank { color: var(--hot); }
.racer .cover canvas { aspect-ratio: 16 / 10; }
.racer h3 a:hover { color: var(--hot); }
.battery { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.battery .track { flex: 1; margin: 0 12px 0 0; height: 30px; }
.battery b { font: 400 28px/1 var(--display); }

/* ---- live list on a game page ---- */
.live { list-style: none; padding: 0; margin: 0; max-width: 760px; border-top: 2px solid var(--ink); }
.live li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font: 12px/1.5 var(--mono); }
.live li > span { flex: none; width: 34px; }
.live li a:hover { color: var(--hot); }
.live li.hot a { color: var(--hot); }
.coin .burned { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 0 0 18px; font: 13px/1.4 var(--mono); }
.coin .burned b { font: 400 22px/1 var(--display); letter-spacing: -.03em; }
.coin .burned.none { color: var(--ink-2); }

/* ---- loader: blocks arriving ---- */
.loading { display: flex; align-items: center; gap: 14px; padding: 80px 0; }
.loading .blocks { display: grid; grid-template-columns: repeat(8, 7px); gap: 2px; }
.loading .blocks i { width: 7px; height: 7px; background: var(--line); animation: fill 1.2s steps(1) infinite; }
@keyframes fill { 50% { background: var(--hot); } }

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 30; transform: translate(-50%, 16px); opacity: 0; border-radius: 3px;
  background: var(--ink); color: var(--bg); padding: 10px 16px; font: 12px var(--mono); transition: opacity .2s, transform .2s var(--ease-out);
  max-width: calc(100vw - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); color: #fff; }

/* ---- entrance ---- */
.in > * { animation: rise .3s var(--ease-out) both; }
.in > *:nth-child(2) { animation-delay: .04s; }
.in > *:nth-child(3) { animation-delay: .08s; }
.in > *:nth-child(4) { animation-delay: .12s; }
.in > *:nth-child(5) { animation-delay: .16s; }
.quiet > * { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  header { height: auto; flex-wrap: wrap; }
  .mark { height: 56px; border-right: 0; flex: 1; }
  header > .btn { margin-right: 16px; }
  nav { order: 3; flex-basis: 100%; border-top: 2px solid var(--ink); }
  nav a { flex: 1; justify-content: center; height: 42px; padding: 0 6px; }
  nav a:last-child { border-right: 0; }
  main { padding: 168px 16px 90px; }
  h2 { font-size: 22px; }
  .racer { grid-template-columns: 22px 88px minmax(0, 1fr); grid-template-rows: auto; gap: 12px; padding: 14px; }
  .racer .rank { grid-row: auto; font-size: 22px; }
  .racer > .cover { grid-row: auto; }
  .racer .rhead { grid-column: 3; align-self: center; }
  .racer .rhead .row { flex-direction: column; align-items: start; gap: 4px; }
  .racer .rhead h3 { font-size: 16px; }
  .racer .rmeter, .racer > .btn { grid-column: 1 / -1; grid-row: auto; }
  .racer > .btn { justify-content: center; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cart { padding: 14px 10px 10px; }
  .cart h3 { font-size: 15px; }
  .cart .row { flex-wrap: wrap; gap: 2px 8px; }
  .game.gp > :first-child { order: 2; }
  .battery b { font-size: 22px; }
  .hero, .game { grid-template-columns: 1fr; gap: 36px; }
  .hero > :first-child, .game > :first-child { order: 0; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .meter { padding: 20px 18px 40px; }
  .meter b { font-size: 36px; }
  .kv { grid-template-columns: 110px 1fr; }
  .coin dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .tape { overflow-x: auto; scrollbar-width: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- store under the landing ---- */
.hero h2.feat { font-size: clamp(32px, 4vw, 56px); margin: 16px 0 28px; overflow-wrap: anywhere; }
.shelf-empty { display: grid; justify-items: start; gap: 10px; padding: 32px 28px; border: 2px dashed var(--ink-2); border-radius: 3px; background: var(--bg-2); }
.shelf-empty b { font: 400 22px/1.2 var(--display); letter-spacing: -.04em; }
.shelf-empty .btn { margin-top: 14px; }

/* ---- landing: one handheld, the story told on its screen ---- */
.lpw[hidden] { display: none; }
body.lp-on main { padding-top: 72px; }
.lp {
  --hd: 96px; --lcdw: 480px; --px: 3px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 64px;
  margin: 0 0 0 var(--rail); padding: var(--hd) 48px 0; max-width: 1380px;
}
.lp-stage { grid-column: 2; grid-row: 1 / span 5; align-self: start; position: sticky; top: 0; height: 100vh; margin-top: calc(-1 * var(--hd)); padding-top: var(--hd); display: flex; align-items: center; }
.lp-step { grid-column: 1; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 64px 0; }
.lp-hero { min-height: calc(100vh - var(--hd)); padding-top: 24px; }
.lp-last { min-height: 92vh; }
.lp-k { display: inline-block; margin-bottom: 26px; color: var(--hot-text); }
.lp-h1 { font-size: clamp(44px, 5vw, 84px); line-height: .98; }
.lp-h2 { font-size: clamp(34px, 3.6vw, 60px); line-height: 1; margin: 0; letter-spacing: -.05em; }
.lp-h2 .dim { color: var(--hot); }
.lp-p { max-width: 470px; color: var(--ink-2); font-size: 15px; margin: 26px 0 32px; }
.lp-p b { color: var(--ink); font-weight: 500; }
.lp-step .lp-p:last-child { margin-bottom: 0; }
.lp-note { margin: 22px 0 0; }
.lp-actions .btn { max-width: 100%; }

/* the flow: what one SOL of trading does */
.lp-flow { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 640px; border: 2px solid var(--ink); background: var(--bg-2); }
.lp-flow li { position: relative; padding: 16px 16px 18px; border-right: 1px dashed var(--line-2); min-width: 0; }
.lp-flow li:last-child { border-right: 0; background: var(--ink); color: var(--bg); }
.lp-flow li:not(:last-child)::after { /* a pixel arrow on the seam */
  content: ''; position: absolute; z-index: 1; right: -7px; top: 22px; width: 12px; height: 12px; background: var(--hot);
  clip-path: polygon(0 0, 4px 0, 4px 2px, 8px 2px, 8px 4px, 12px 4px, 12px 8px, 8px 8px, 8px 10px, 4px 10px, 4px 12px, 0 12px);
}
.lp-flow b { display: block; font: 400 22px/1.1 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.lp-flow li:last-child b { color: #9bbc0f; }
.lp-flow span { display: block; margin-top: 8px; font: 11px/1.4 var(--mono); color: var(--ink-3); }
.lp-flow li:last-child span { color: var(--line); }

.lp-specs { margin: 0; width: 100%; max-width: 470px; border-top: 2px solid var(--ink); }
.lp-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.lp-specs dt { font: 500 11px/1.9 var(--mono); letter-spacing: .08em; color: var(--ink-3); }
.lp-specs dd { margin: 0; font: 13px/1.7 var(--mono); }

.lp-hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 64px; }
.lp-hint i { width: 10px; height: 10px; background: var(--hot); clip-path: polygon(0 20%, 100% 20%, 100% 50%, 70% 50%, 70% 80%, 30% 80%, 30% 50%, 0 50%); animation: hint 1.2s steps(3) infinite; }
@keyframes hint { 50% { transform: translateY(4px); } }

/* the handheld */
.dev { position: relative; width: calc(var(--lcdw) + 104px); padding-top: calc(var(--lcdw) * .2 + 6px); }
.dev-cart { position: absolute; z-index: 1; left: 50%; top: 0; width: 40%; margin-left: -20%; height: auto; }
.dev-body, .dev-shadow { position: relative; z-index: 2; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 44px) 100%, 0 100%); }
.dev-body { padding: 2px; }
.dev-shadow { position: absolute; left: 6px; top: calc(var(--lcdw) * .2 + 12px); right: -6px; bottom: -6px; z-index: 0; }
.dev-shell { background: var(--bg-3); padding: 16px 20px 22px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 43px), calc(100% - 43px) 100%, 0 100%); }
.dev-bezel { background: var(--ink-2); padding: 10px 30px 22px; border-radius: 6px; }
.dev-top { display: flex; align-items: center; gap: 8px; height: 22px; margin-bottom: 4px; font: 500 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--line); }
.dev-led { width: 8px; height: 8px; background: #5a3242; }
.dev-led.on { background: var(--hot); }
.dev-step { margin-left: auto; color: var(--bg-2); }
.dev-lcd { position: relative; width: var(--lcdw); aspect-ratio: 160 / 144; background: #8f9c74; border: 2px solid var(--lcd); overflow: hidden; }
.dev-lcd canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; cursor: pointer; }
.dev-lcd::after { /* the dot grid of the glass */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(15, 56, 15, .13) 0 1px, transparent 1px var(--px)),
    repeating-linear-gradient(0deg, rgba(15, 56, 15, .13) 0 1px, transparent 1px var(--px));
}
.dev-lcd::before { /* a slow band of light down the glass */
  content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: -30%; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(226, 231, 210, .12), transparent); animation: glass 6s linear infinite;
}
@keyframes glass { to { top: 100%; } }
.dev-scan { position: absolute; left: 0; right: 0; top: 0; height: var(--px); background: var(--hot); opacity: 0; pointer-events: none; }
.dev-rom { display: flex; align-items: center; gap: 12px; margin: 16px 2px 0; font: 500 10px/1 var(--mono); letter-spacing: .08em; color: var(--ink-2); }
.dev-bar { flex: 1; display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 14px; padding: 2px; border: 2px solid var(--ink); background: var(--bg); }
.dev-bar i { background: var(--line); }
.dev-bar i.on { background: var(--ink); }
.dev-bar i.hot { background: var(--hot); }
.dev-pad { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 0 8px 0 10px; }
.dpad { position: relative; width: 66px; height: 66px; background: var(--ink); clip-path: polygon(33% 0, 67% 0, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0 67%, 0 33%, 33% 33%); }
.dev-ss { display: flex; gap: 14px; margin-top: 34px; }
.dev-ss i { width: 34px; height: 8px; background: var(--ink-3); border-radius: 4px; }
.dev-ab { display: flex; gap: 16px; transform: translateY(-8px); }
.dev-ab .ab:first-child { transform: translateY(16px); }
.ab {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; cursor: pointer; user-select: none;
  background: var(--hot); color: var(--hot-ink); font: 400 14px/1 var(--display); box-shadow: 0 4px 0 #7d0c3a; transition: transform .08s, box-shadow .08s;
}
.ab.down { transform: translateY(4px); box-shadow: 0 0 0 #7d0c3a; }
.dev-ab .ab.down:first-child { transform: translateY(20px); }

/* pixel hover on the landing buttons */
.btn.px { position: relative; overflow: hidden; isolation: isolate; }
.btn.px .t { position: relative; z-index: 1; }
.px-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; image-rendering: pixelated; pointer-events: none; }
.btn.px.px-on { color: var(--bg); box-shadow: 3px 3px 0 var(--hot); }
.btn.go.px.px-on { color: var(--hot-ink); }

/* the band into the store */
.lp-band { margin: 40px 0 0 var(--rail); overflow: hidden; background: var(--ink); color: var(--bg); }
.lp-run { display: flex; align-items: center; width: max-content; padding: 22px 0 18px; font: 400 clamp(36px, 5vw, 72px)/1 var(--display); letter-spacing: -.05em; white-space: nowrap; }
.lp-run span { padding: 0 34px; }
.lp-run i { flex: none; width: 18px; height: 18px; background: var(--hot); }
.lp-dither { display: block; margin-left: var(--rail); width: calc(100% - var(--rail)); height: 32px; image-rendering: pixelated; }

@media (max-width: 1599px) {
  .lp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 470px; }
  .lp-flow li:nth-child(2) { border-right: 0; }
  .lp-flow li:nth-child(-n + 2) { border-bottom: 1px dashed var(--line-2); }
  .lp-flow li:nth-child(2)::after { display: none; }
}

@media (max-width: 1279px), (max-height: 860px) {
  .lp { --lcdw: 320px; --px: 2px; column-gap: 48px; }
  .dev-bezel { padding: 8px 22px 16px; }
  .dev-pad { margin-top: 14px; }
  .dpad { width: 52px; height: 52px; }
  .ab { width: 38px; height: 38px; }
}

@media (max-width: 900px) {
  .lp { --lcdw: 200px; --px: 1.25px; grid-template-columns: minmax(0, 1fr); padding: var(--hd) 16px 0; }
  .lp-stage { grid-column: 1; grid-row: 1; top: var(--hd); height: auto; z-index: 4; padding: 8px 16px 18px; margin: 0 -16px; justify-content: center; background: var(--bg); }
  .lp-stage::after { /* a dithered edge: the text slides under the screen */
    content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
    background: conic-gradient(var(--bg) 25%, transparent 0 50%, var(--bg) 0 75%, transparent 0) 0 0 / 4px 4px;
  }
  .lp-step { min-height: 0; padding: 48px 0 44vh; justify-content: flex-start; }
  .lp-hero { padding: 26px 0 120px; }
  .lp-last { padding-bottom: 72px; }
  .lp-k { margin-bottom: 18px; }
  .lp-h1 { font-size: 44px; }
  .lp-h2 { font-size: 34px; }
  .lp-p { font-size: 14px; margin: 18px 0 24px; }
  .lp-hint { display: none; }
  .lp-actions .btn { flex: 1 1 auto; justify-content: center; }
  .lp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-flow li:nth-child(2) { border-right: 0; }
  .lp-flow li:nth-child(-n + 2) { border-bottom: 1px dashed var(--line-2); }
  .lp-flow li:nth-child(2)::after { display: none; }
  .lp-flow b { font-size: 19px; }
  /* a wide handheld: pad left, screen, buttons right */
  .dev { width: auto; }
  .dev-cart { width: 120px; margin-left: -60px; }
  .dev-body, .dev-shadow { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }
  .dev-shell { display: grid; grid-template-columns: 46px auto 46px; grid-template-areas: 'pad lcd ab' 'pad rom ab'; align-items: center; column-gap: 12px; padding: 10px 12px 12px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 21px), calc(100% - 21px) 100%, 0 100%); }
  .dev-bezel { grid-area: lcd; padding: 4px 10px 10px; }
  .dev-top { height: 16px; margin-bottom: 2px; font-size: 8px; }
  .dev-rom { grid-area: rom; margin: 8px 0 0; gap: 8px; font-size: 9px; }
  .dev-bar { height: 10px; gap: 1px; padding: 1px; }
  .dev-pad { display: contents; }
  .dpad { grid-area: pad; width: 44px; height: 44px; }
  .dev-ss { display: none; }
  .dev-ab { grid-area: ab; flex-direction: column; gap: 12px; transform: none; align-items: center; }
  .dev-ab .ab:first-child { transform: none; order: 2; }
  .dev-ab .ab.down:first-child { transform: translateY(3px); }
  .ab { width: 36px; height: 36px; font-size: 12px; }
  .lp-band { margin-top: 0; }
  .lp-run { padding: 16px 0 12px; }
  .lp-run span { padding: 0 20px; }
  .lp-run i { width: 12px; height: 12px; }
  .lp-dither { height: 24px; }
}
