/* pocket-ui homepage. One stylesheet, no framework.
   The look is the device's own (pocket-ui docs/DESIGN.md, src/palette.rs): a shelf of spines, the selected one
   pulled out into a paper label. True black by default, warm paper in light mode. */

@font-face {
  font-family: "Barlow";
  src: url("fonts/Barlow-Medium.woff2?v=763a62e709") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}

/* ---- Tokens: DARK and LIGHT from src/palette.rs ---------------------------------------------------------- */
:root {
  color-scheme: dark light;
  --void: #000000;
  --spine: #1f1f22;
  --spine-hi: #29292d;
  --label: #ece9e1;
  --ink: #151515;
  --label-dust: #5a5852;
  --chalk: #d9d6ce;
  --dust: #8a877f;
  --quiet: #aaa79f;
  --text: #ffffff;
  --keycap: #2a2a2e;
  --pill: #262626;
  --rule: #26262a;
  --amber: #d39a2c;
  --star: #f2c14e;
  --alert: #e0705c;

  /* System stripes: content colour, never a single UI accent (DESIGN.md "Tokens"). */
  --nes: #c8102e;
  --gb: #8a9a3b;
  --gbc: #2e8c9a;
  --gba: #5b4aa6;
  --snes: #7a6cb0;
  --md: #2b2b2b;
  --md-rule: #d4af37;
  --ps1: #9aa3ad;
  --n64: #2e7d32;
  --psp: #3b3b3b;

  --stripe: var(--dust);
  --margin: 20px;
  --measure: 40rem;
  --radius: 10px;
  --title: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}





@media (min-width: 48rem) {
  :root { --margin: 40px; }
}
@media (min-width: 72rem) {
  :root { --margin: 72px; }
}

/* ---- Base --------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--void);
  color: var(--chalk);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-synthesis: none;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--dust); }
a:hover { text-decoration-color: currentColor; }
:focus-visible {
  outline: 3px solid var(--label);
  outline-offset: 3px;
  border-radius: 4px;
}



p, ul, ol, dl, table, figure { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 0.35rem; }
strong, b { color: var(--text); font-weight: 500; }
em { font-style: normal; color: var(--text); }
code, kbd {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--spine);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}
pre {
  background: var(--spine);
  border-left: 6px solid var(--stripe);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; font-size: inherit; }
h1, h2, h3, h4 {
  font-family: var(--title);
  font-weight: 600;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 0.6rem;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h3 { font-size: var(--d2); }
h4 { font-size: 1.35rem; }
.dust, .meta { color: var(--dust); }
.quiet { color: var(--quiet); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--margin); top: -4rem; z-index: 20;
  background: var(--label); color: var(--ink); padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 0.6rem; }

/* ---- Top line: the place at the left, the status corner at the right (DESIGN.md "Layout") ---------------- */
.topline {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem var(--margin);
  background: color-mix(in srgb, var(--void) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--title); font-weight: 600; font-size: 1.45rem; line-height: 1;
  color: var(--text); text-decoration: none; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.wordmark .mark { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; flex: none; }
.corner {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; justify-content: flex-end;
  color: var(--dust); font-size: 0.9rem; line-height: 1.2;
}
.corner a { color: var(--dust); text-decoration: none; display: inline-block; padding: 0.75rem 0.2rem; margin: -0.75rem 0; }
.corner a:hover, .corner a[aria-current] { color: var(--text); }
.corner .hide-s { display: none; }
@media (min-width: 40rem) { .corner .hide-s { display: inline; } }

/* ---- Hint bar keys: the device's key caps (A, B, X, Y, START) as links -------------------------------- */
.hints { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.hints li { margin: 0; }
.key {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0.15rem 1rem 0.15rem 0.2rem;
  color: var(--text); text-decoration: none; border-radius: 999px;
  background: var(--pill);
}
.key:hover { background: var(--spine-hi); }
.cap {
  display: inline-grid; place-items: center;
  min-width: 2.05rem; height: 2.05rem; padding: 0 0.55rem; border-radius: 999px;
  background: var(--chalk); color: var(--void);
  font-family: var(--title); font-weight: 600; font-size: var(--d1); letter-spacing: 0.04em;
}
.key.primary { background: var(--label); color: var(--ink); }
.key.primary .cap { background: var(--ink); color: var(--label); }
.key.primary:hover { background: var(--text); }






/* ---- Hero ----------------------------------------------------------------------------------------------- */
.hero {
  display: grid; gap: 2rem;
  padding: 2.2rem var(--margin) 2.5rem;
  max-width: 84rem; margin: 0 auto;
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 3.5rem; padding-top: 4.5rem; padding-bottom: 4rem; }
}
.eyebrow { color: var(--dust); font-size: 0.95rem; margin: 0 0 1rem; letter-spacing: 0.01em; }
.hero h1 {
  font-size: clamp(2.7rem, 11.5vw, 4.6rem);
  line-height: 0.98;
  margin-bottom: 1.1rem;
  letter-spacing: -0.005em;
}
.hero h1 .soft { color: var(--dust); }
.lede { font-size: 1.15rem; color: var(--chalk); max-width: 34rem; }
.honest {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin: 1.3rem 0 0; padding: 0.8rem 1rem;
  background: var(--spine); border-radius: var(--radius);
  border-left: 6px solid var(--amber);
  font-size: 0.97rem; color: var(--chalk); max-width: 34rem;
}
.honest strong { white-space: nowrap; }

/* The handheld's screen in a dark bezel (DESIGN.md "Game switcher"). 1240 × 1080 panel. */
.device {
  margin: 0;
  justify-self: center; width: 100%; max-width: 34rem;
}
.bezel {
  position: relative;
  padding: clamp(12px, 3.2vw, 22px);
  border-radius: clamp(18px, 5vw, 34px);
  background: linear-gradient(160deg, #222226, #0c0c0e 60%);
  box-shadow: 0 0 0 1px #2e2e33 inset, 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}



.screen {
  position: relative; overflow: hidden;
  aspect-ratio: 1240 / 1080;
  border-radius: clamp(4px, 1vw, 8px);
  background: #000;
}
.screen > img, .screen > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.device figcaption { margin-top: 0.8rem; color: var(--dust); font-size: 0.88rem; text-align: center; }

/* ---- The shelf: spines and the pulled-out label ---------------------------------------------------------- */
.shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shelf li { margin: 0; }
.spine {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 0.55rem 1rem 0.55rem calc(12px + 1rem);
  background: var(--spine); color: var(--chalk);
  border-radius: 6px; text-decoration: none;
  font-family: var(--title); font-weight: 600; font-size: 1.4rem; line-height: 1.1;
  transition: background-color 120ms ease-out, color 120ms ease-out, transform 120ms ease-out;
}
.spine::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  border-radius: 6px 0 0 6px; background: var(--stripe);
}
.spine .meta {
  font-family: var(--body); font-weight: 500; font-size: 0.9rem; color: var(--dust);
  text-align: right; white-space: nowrap;
}
.spine:hover { background: var(--spine-hi); color: var(--text); }
.spine[aria-current="true"], .spine.is-out {
  background: var(--label); color: var(--ink);
}
.spine[aria-current="true"] .meta, .spine.is-out .meta { color: var(--label-dust); }
@media (prefers-reduced-motion: no-preference) {
  .spine:hover { transform: translateX(3px); }
}
.stripe-md::before, .spine.stripe-md::before { box-shadow: inset -2px 0 0 var(--md-rule); }

/* Section headings: a pulled-out label, the one memorable element. */
.label {
  position: relative;
  background: var(--label); color: var(--ink);
  border-radius: 8px;
  padding: 1.1rem 1.2rem 1.1rem calc(12px + 1.2rem);
  margin: 0 0 1.8rem;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}
.label::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px;
  border-radius: 8px 0 0 8px; background: var(--stripe);
}
.label h2, .label h1 { color: var(--ink); font-size: clamp(2.1rem, 8vw, 3.2rem); margin: 0; line-height: 1; }
.label p { margin: 0.45rem 0 0; color: var(--label-dust); font-size: 1rem; line-height: 1.35; }




/* ---- Page layout: content + the shelf as a sticky index on wide screens ------------------------------- */
.layout { max-width: 84rem; margin: 0 auto; padding: 0 var(--margin); }
@media (min-width: 72rem) {
  .layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 4rem; align-items: start; }
  .index { position: sticky; top: 5rem; }
}
.index h2 { font-size: 1rem; font-family: var(--body); font-weight: 500; color: var(--dust); margin: 0 0 0.8rem; }
.index .spine { min-height: 48px; font-size: var(--d2); }
.index .meta { font-size: 0.8rem; }
@media (min-width: 72rem) {
  .index .spine { min-height: 42px; font-size: var(--d2); padding-top: 0.35rem; padding-bottom: 0.35rem; }
  .index .meta { display: none; }
  .index .shelf { gap: 4px; }
}
.index { margin-bottom: 3rem; }

section.part { padding: 1rem 0 3.5rem; }
section.part:first-child { padding-top: 0; }
#tour { padding-bottom: 1.5rem; }
#tour .clip { margin-top: 0; }
.part > .lead { font-size: 1.15rem; max-width: var(--measure); color: var(--chalk); }
.prose { max-width: var(--measure); }

/* Feature rows: a spine-like strip per feature, the colour edge of the section. */
.features { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 0.75rem; }
@media (min-width: 48rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
.features > li {
  margin: 0; position: relative;
  background: var(--spine); border-radius: var(--radius);
  padding: 1rem 1.1rem 1.05rem calc(6px + 1.1rem);
}
.features > li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  border-radius: var(--radius) 0 0 var(--radius); background: var(--stripe);
}
.features h3 { font-size: var(--d2); margin-bottom: 0.35rem; }
.features p { margin: 0; font-size: 0.98rem; }
.features p + p { margin-top: 0.5rem; }
.features .quote { color: var(--text); }
.tag {
  display: inline-block; margin-top: 0.6rem;
  font-size: var(--d1); line-height: 1.2; color: var(--dust);
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.25rem 0.6rem;
}
.tag::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; margin-right: 0.45em; vertical-align: 0.05em; background: var(--dust); }
.tag.measured::before { background: var(--chalk); }
.tag.seen::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--chalk); }
.tag.vdev::before, .tag.host::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dust); }

/* ---- Media: screenshots and clips ------------------------------------------------------------------------- */
.gallery { display: grid; gap: 1rem; margin: 1.6rem 0; }
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shot { margin: 0; }
.shot .frame {
  position: relative; overflow: hidden;
  aspect-ratio: 1240 / 1080;
  background: var(--spine); border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--rule);
}
.shot .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 0.55rem; font-size: 0.9rem; color: var(--dust); }
.shot figcaption strong { color: var(--chalk); }

/* Never a blank where a figure goes (DESIGN.md): every frame has words underneath its picture. */
.missing {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 1rem; color: var(--dust); font-size: 0.92rem; line-height: 1.35;
}
.missing span { max-width: 18rem; }
.frame.is-missing > img, .frame.is-missing > picture, .screen.is-missing > img, .dev-screen.is-missing > img { display: none; }

.clip { margin: 1.8rem 0; }
.clip .frame {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--spine); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule);
}
.clip .frame > img, .clip .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip .frame > video { background: #000; }
.clip .frame > video { object-fit: contain; }
.play {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0.2rem 1rem 0.2rem 0.25rem; border-radius: 999px;
  background: var(--label); color: var(--ink); text-decoration: none; border: 0; cursor: pointer;
  font: inherit; font-size: var(--d1); line-height: 1.2;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.8);
}
.play .cap { background: var(--ink); color: var(--label); }
.play:hover { background: #fff; }
.clip.is-missing .play { display: none; }
.clip .soon {
  display: none; position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: var(--pill); color: var(--chalk); border-radius: 999px; padding: 0.55rem 1rem; font-size: var(--d1);
}
.clip.is-missing .soon { display: block; }
.clip figcaption { margin-top: 0.6rem; font-size: 0.92rem; color: var(--dust); }
.clip figcaption strong { color: var(--chalk); }

/* ---- Numbers ---------------------------------------------------------------------------------------------- */
.tiles { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.tiles li {
  margin: 0; background: var(--spine); border-radius: var(--radius);
  padding: 0.9rem 0.95rem 1rem; display: flex; flex-direction: column; gap: 0.25rem;
  border-top: 4px solid var(--stripe);
}
.tile-label { font-size: 0.88rem; line-height: 1.3; color: var(--quiet); order: 0; min-height: 2.6em; }
.tile-value {
  font-family: var(--title); font-weight: 600; color: var(--text);
  font-size: clamp(2.2rem, 9vw, 2.9rem); line-height: 1; order: 1; margin-top: auto; padding-top: 0.4rem;
}
.tile-value small { font-size: 0.5em; color: var(--dust); margin-left: 0.12em; }
.tile-note { font-size: 0.8rem; color: var(--dust); line-height: 1.3; order: 2; }

/* Before -> now, one row per moment, a shared axis (dumbbell). Text in text colours; the marks carry it. */
.dumbbell { margin: 2rem 0 1rem; padding: 1.1rem 1.1rem 0.6rem; background: var(--spine); border-radius: var(--radius); }
.dumbbell h3 { font-size: 1.35rem; margin-bottom: 0.2rem; }
.dumbbell .sub { color: var(--dust); font-size: 0.9rem; margin-bottom: 0.4rem; }
.legend { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--quiet); margin: 0.2rem 0 0.8rem; padding: 0; list-style: none; }
.legend li { margin: 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.before { background: var(--void); box-shadow: inset 0 0 0 2px var(--dust); }
.dot.now { background: var(--chalk); }
.db-row { display: grid; grid-template-columns: 1fr; gap: 0.15rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 40rem) { .db-row { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; align-items: center; } }
.db-name { font-size: 0.95rem; color: var(--chalk); line-height: 1.25; }
.db-track { position: relative; height: 34px; }
.db-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule); }
.db-bar {
  position: absolute; top: calc(50% - 1px); height: 2px; background: var(--dust);
  left: var(--now); width: calc(var(--before) - var(--now));
}
.db-pt {
  position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--spine);
}
.db-pt.before { left: var(--before); background: var(--spine); box-shadow: inset 0 0 0 2px var(--dust), 0 0 0 2px var(--spine); }
.db-pt.now { left: var(--now); background: var(--chalk); }
.db-val { position: absolute; top: -0.15rem; font-size: 0.8rem; line-height: 1; color: var(--quiet); white-space: nowrap; font-variant-numeric: tabular-nums; }
.db-val.now { left: var(--now); transform: translateX(-50%); color: var(--text); top: auto; bottom: -0.2rem; }
.db-val.before { left: var(--before); transform: translateX(-60%); }
.db-axis { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--dust); padding: 0.3rem 0 0.2rem; font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) { .db-axis { margin-left: 10.5rem; } }

.method {
  margin: 1.4rem 0; padding: 1rem 1.1rem; border-radius: var(--radius);
  border: 1px dashed var(--rule); color: var(--quiet); font-size: 0.95rem; max-width: var(--measure);
}
.method h3 { font-size: 1.2rem; margin-bottom: 0.3rem; color: var(--chalk); }
.method p:last-child { margin-bottom: 0; }

/* ---- Tables ------------------------------------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; border-radius: var(--radius); background: var(--spine); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0; }
caption { text-align: left; padding: 0.9rem 1rem 0.2rem; color: var(--dust); font-size: 0.88rem; }
th, td { text-align: left; padding: 0.6rem 1rem; vertical-align: top; border-top: 1px solid var(--rule); }
thead th { border-top: 0; color: var(--dust); font-weight: 500; font-size: var(--d1); }
tbody th { color: var(--text); font-weight: 500; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Status badges as on the ledger: device-measured, device smoke-checked, virtual device only, host tests only. */
.st { white-space: nowrap; font-size: var(--d1); }
.st::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; margin-right: 0.45em; vertical-align: 0.02em; }
.st.m::before { background: var(--chalk); }
.st.s::before { box-shadow: inset 0 0 0 2px var(--chalk); }
.st.v::before { box-shadow: inset 0 0 0 2px var(--dust); }
.st.h::before { box-shadow: inset 0 0 0 1px var(--dust); background: repeating-linear-gradient(45deg, var(--dust) 0 1px, transparent 1px 3px); }
.st.n::before { box-shadow: inset 0 0 0 1px var(--dust); }

/* ---- FAQ ------------------------------------------------------------------------------------------------- */
.faq details {
  background: var(--spine); border-radius: var(--radius); margin: 0 0 0.6rem; position: relative;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 0.85rem 2.6rem 0.85rem 1.1rem; min-height: 48px;
  font-family: var(--title); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "›"; position: absolute; right: 1.1rem; top: 0.7rem; color: var(--dust);
  font-size: 1.5rem; line-height: 1; transition: transform 150ms ease-out;
}
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details[open] { background: var(--label); }
.faq details[open] summary, .faq details[open] .answer, .faq details[open] .answer strong, .faq details[open] .answer em, .faq details[open] .answer a { color: var(--ink); }
.faq details[open] code { background: rgba(0, 0, 0, 0.07); }
.faq .answer { padding: 0 1.1rem 1rem; max-width: var(--measure); color: var(--chalk); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---- Footer ------------------------------------------------------------------------------------------------ */
.foot {
  margin-top: 2rem; border-top: 1px solid var(--rule);
  padding: 1.6rem var(--margin) 2.4rem; color: var(--dust); font-size: 0.9rem;
}
.foot-in { max-width: 84rem; margin: 0 auto; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .foot-in { grid-template-columns: 1.4fr 1fr; } }
.foot a { color: var(--chalk); }
.foot p { margin: 0 0 0.5rem; }
.foot .hints { margin-top: 0.4rem; }
.foot .key { min-height: 40px; font-size: var(--d1); }

/* ---- Inner pages ------------------------------------------------------------------------------------------ */
.page { max-width: 60rem; margin: 0 auto; padding: 2rem var(--margin) 2rem; }
.page .label { margin-top: 0.5rem; }
.page h2 { font-size: var(--h2); margin-top: 2.4rem; }
.page h3 { margin-top: 1.6rem; }
.crumbs { font-size: 0.92rem; color: var(--dust); margin: 0 0 1rem; }
.crumbs a { color: var(--dust); }

/* Stripe per section (DESIGN.md: content colour). */
.s-fast { --stripe: var(--gba); }
.s-library { --stripe: var(--gbc); }
.s-picture { --stripe: var(--nes); }
.s-everyday { --stripe: var(--gb); }
.s-pause { --stripe: var(--ps1); }
.s-private { --stripe: var(--n64); }
.s-status { --stripe: var(--amber); }
.s-install { --stripe: var(--snes); }
.s-faq { --stripe: var(--md); }
.s-credits { --stripe: var(--psp); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .spine::before, .label::before, .features > li::before { forced-color-adjust: none; }
  .label, .spine[aria-current="true"] { border: 2px solid CanvasText; }
}
@media print {
  .topline, .index, .play, .hints, video { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Phones: each table row becomes a small card; the column names come from data-label (tools/label-tables.py). */
@media (max-width: 40rem) {
  .table-wrap { overflow: visible; background: none; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: auto; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .table-wrap caption { display: block; padding: 0 0 0.5rem; }
  .table-wrap tr { background: var(--spine); border-radius: var(--radius); padding: 0.75rem 1rem 0.8rem; margin: 0 0 0.6rem; }
  .table-wrap th, .table-wrap td { border: 0; padding: 0; text-align: left; }
  .table-wrap tbody th { font-size: 1rem; margin-bottom: 0.35rem; }
  .table-wrap td { font-size: 0.95rem; margin-top: 0.3rem; white-space: normal; }
  .table-wrap td.n { text-align: left; }
  .table-wrap td[data-label]::before { content: attr(data-label) " "; display: block; color: var(--dust); font-size: 0.8rem; }
  .table-wrap td:empty { display: none; }
}
@media (max-width: 40rem) {
  /* A status badge says what it is; its column name would only repeat it. */
  .table-wrap td:has(> .st:only-child)::before { display: none; }
}

/* ==== Landing page ============================================================================================ */
.landing .topline { border-bottom-color: transparent; background: color-mix(in srgb, var(--void) 70%, transparent); }

/* The stage: the drawn Mini V2 with a soft light behind it, like the switcher's glow (DESIGN.md "Game switcher"). */
.stage {
  position: relative; overflow: hidden;
  padding: 1.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, color-mix(in srgb, var(--gba) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 30% at 30% 55%, color-mix(in srgb, var(--gbc) 14%, transparent), transparent 70%);
}



.mini {
  position: relative; margin: 0 auto;
  /* Phones: wider than the screen, so the Pocket's own screen is big enough to read; its sides fall off the edges. */
  width: 150%; margin-left: -25%;
  aspect-ratio: 1000 / 470;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55));
}



@media (min-width: 40rem) { .mini { width: 118%; margin-left: -9%; } }
@media (min-width: 60rem) { .mini { width: min(64rem, 92%, max(34rem, calc((100vh - 31rem) * 2.128))); margin-left: auto; } }
.mini-body { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The screen's place in the drawing: x 295.5-704.5, y 67-423 of 1000 x 470. */
.mini-screen {
  position: absolute; left: 29.55%; top: 14.255%; width: 40.9%; height: 75.745%;
  overflow: hidden; border-radius: 0.4%; background: #000;
}
.mini-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-screen::after {
  /* a breath of glass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 38%);
}
.mini-screen .missing { color: #8a877f; }

.pitch { text-align: center; padding: 1.4rem var(--margin) 0; max-width: 46rem; margin: 0 auto; }
.pitch h1 { font-size: clamp(2.3rem, 9.5vw, 4.2rem); line-height: 1; margin-bottom: 0.9rem; }
.pitch .sub { font-size: 1.08rem; color: var(--chalk); margin: 0 auto 0.4rem; max-width: 36rem; }
.cta { justify-content: center; margin-top: 1.3rem; }
.key.is-soon { opacity: 0.75; cursor: default; }
.early { margin: 1.1rem 0 0; font-size: 0.88rem; color: var(--dust); }
.early a { color: var(--chalk); }
.pitch .early { max-width: 31rem; }

/* Highlights: a row you swipe on a phone, a grid on a wide screen. */
.highlights { padding: 1.5rem 0 1rem; }
.tiles-x {
  list-style: none; margin: 0; padding: 0.2rem var(--margin) 1rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--margin);
  overscroll-behavior-x: contain; scrollbar-width: thin;
}
.tile {
  margin: 0; scroll-snap-align: start;
  background: var(--spine); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  border-top: 4px solid var(--stripe);
}
.tile .frame {
  position: relative; aspect-ratio: 1240 / 1080; background: #000; overflow: hidden;
}
.tile.wide .frame { aspect-ratio: 2.35; }
.tile .frame > img, .tile .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .frame .missing { color: var(--dust); }
.tile h3 { font-size: 1.55rem; margin: 0.9rem 1.1rem 0.35rem; }
.tile p { margin: 0 1.1rem 1.1rem; font-size: 0.97rem; color: var(--chalk); }
.tile p + p { margin-top: -0.4rem; }
.tile.text { justify-content: center; }
.tile.text h3 { margin-top: 1.4rem; }
@media (min-width: 60rem) {
  .tiles-x {
    max-width: 84rem; margin: 0 auto; overflow: visible;
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem;
  }
  .tile.wide { grid-column: span 2; }
  /* A wide tile is as tall as its square neighbours: two columns and a gap against one column's height. */
  .tile.wide .frame { aspect-ratio: auto; height: 0; padding-bottom: calc((100% - 1.2rem) / 2 / 1.148); }
}

/* Each game in its own case: one picture per system, quiet. */
.cases { max-width: 84rem; margin: 0 auto; padding: 1.5rem var(--margin) 1.5rem; text-align: center; }
.cases h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 0.3rem; }
.cases > p { color: var(--quiet); margin: 0 auto 1.2rem; max-width: 40rem; }
.cases ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
@media (min-width: 48rem) { .cases ul { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; } }
.cases li { margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.cases li img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); }
.cases li span { font-size: 0.85rem; color: var(--dust); }
.cases .cases-source { margin: 1rem auto 0; font-size: 0.85rem; color: var(--dust); }

/* Runs on: the Mini V2 between two more handhelds, drawn like the hero, each with pocket-ui in its screen.
   Phone: the Odin across, the Mini and the upright RG35XX under it; wide: the three in a row, standing on one line. */
.runs-on { max-width: 84rem; margin: 0 auto; padding: 2rem var(--margin) 1rem; text-align: center; }
.runs-on h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 0.3rem; }
.runs-on > p { color: var(--quiet); margin: 0 auto 1.4rem; max-width: 40rem; }
.runs-on > ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 60fr 30fr; justify-content: center; column-gap: 8%; align-items: end;
}
/* The drawings and their names are the grid's items: the devices stand on one line, the names start on one line. */
.runs-on .dev, .dev figure { display: contents; }
.dev figcaption { align-self: start; }
.dev-odin .dev-art { grid-column: 1 / -1; grid-row: 1; width: 92%; justify-self: center; }
.dev-odin figcaption { grid-column: 1 / -1; grid-row: 2; }
.dev-mini .dev-art { grid-column: 1; grid-row: 3; margin-top: 1.8rem; }
.dev-mini figcaption { grid-column: 1; grid-row: 4; }
.dev-rg .dev-art { grid-column: 2; grid-row: 3; margin-top: 1.8rem; }
.dev-rg figcaption { grid-column: 2; grid-row: 4; }
@media (min-width: 48rem) {
  .runs-on > ul { grid-template-columns: 38fr 34fr 15fr; column-gap: 4%; }
  .dev-odin .dev-art { grid-column: 1; grid-row: 1; width: auto; justify-self: stretch; }
  .dev-odin figcaption { grid-column: 1; grid-row: 2; }
  .dev-mini .dev-art { grid-column: 2; grid-row: 1; margin-top: 0; }
  .dev-mini figcaption { grid-column: 2; grid-row: 2; }
  .dev-rg .dev-art { grid-column: 3; grid-row: 1; margin-top: 0; }
  .dev-rg figcaption { grid-column: 3; grid-row: 2; }
}
.dev-art { position: relative; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.5)); }


.dev-art svg { display: block; width: 100%; height: auto; }
.dev-odin .dev-art svg { aspect-ratio: 1000 / 445; }
.dev-mini .dev-art svg { aspect-ratio: 1000 / 470; }
.dev-rg .dev-art svg { aspect-ratio: 700 / 1000; }
.dev-screen { position: absolute; overflow: hidden; background: #000; }
/* Each screen's place in its drawing (see the symbols in index.html). */
.dev-odin .dev-screen { left: 22.3%; top: 15.955%; width: 55.4%; height: 70.112%; }
.dev-mini .dev-screen { left: 29.55%; top: 14.255%; width: 40.9%; height: 75.745%; }
.dev-rg .dev-screen { left: 7.2857%; top: 4.7%; width: 85.4286%; height: 44.8%; }
.dev-screen > img, .dev-screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dev-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 38%);
}
.dev-screen .missing { color: #8a877f; font-size: 0.75rem; padding: 0.4rem; }
.dev figcaption { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.1rem; }
.dev figcaption strong { font-family: var(--title); font-weight: 600; font-size: 1.1rem; }
.dev figcaption span { font-size: 0.85rem; color: var(--dust); }
.runs-on .quiet { margin: 1.4rem auto 0; font-size: 0.85rem; color: var(--dust); max-width: 44rem; }
.runs-on .quiet a { color: var(--chalk); }

/* Three promises in a quiet band. */
.promises { padding: 1.5rem var(--margin) 0.5rem; }
.promises ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: 84rem;
  display: grid; gap: 0.8rem 2rem;
}
@media (min-width: 48rem) { .promises ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promises li { margin: 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 4px solid var(--n64); }
.promises li:nth-child(2) { border-left-color: var(--amber); }
.promises li:nth-child(3) { border-left-color: var(--gb); }
.promises h3 { font-size: 1.35rem; margin-bottom: 0.2rem; }
.promises p { margin: 0; color: var(--quiet); font-size: 0.95rem; }
.promises .devices-note { max-width: 84rem; margin: 1.6rem auto 0; padding-left: 1rem; font-size: 0.88rem; color: var(--dust); }
.promises .devices-note a { color: var(--chalk); }

.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.foot-links li { margin: 0; }
.foot-links a { display: inline-block; padding: 0.55rem 0; color: var(--chalk); }

/* The trailer, in a dialog over the page. */
.player { border: 0; padding: 0; background: transparent; max-width: min(92vw, 70rem); width: 100%; }
.player::backdrop { background: rgba(0, 0, 0, 0.85); }
.player-in { display: grid; gap: 0.8rem; justify-items: end; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; }
.player video.is-vertical { aspect-ratio: 9 / 16; width: auto; max-width: 100%; max-height: 78vh; justify-self: center; }

/* Inner page headings that sit outside .page */
.page-head { max-width: 84rem; margin: 0 auto; padding: 2rem var(--margin) 1rem; }
.page-head h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
.page-head .lead { font-size: 1.12rem; max-width: var(--measure); }

@media (prefers-reduced-motion: reduce) {
  .tiles-x { scroll-behavior: auto; }
}
.page-head .clip { max-width: 52rem; }

/* The header's theme toggle sets data-theme on <html> (assets/theme.js). */
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin: -0.5rem -0.4rem -0.5rem 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--dust); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--text); background: var(--pill); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle[data-show="moon"] .i-sun, .theme-toggle[data-show="sun"] .i-moon { display: none; }

/* ==== Make it yours ========================================================================================= */
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.yours { padding: 2.5rem var(--margin) 1.5rem; max-width: 84rem; margin: 0 auto; overflow: hidden; overflow: clip; }
.yours-text { text-align: center; }
.yours-text h2 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 0.3rem; }
.yours-text p { color: var(--quiet); margin: 0 0 1rem; }
.looks { display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 60rem) { .looks { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; } }
.mini.mini-small { width: 132%; margin-left: -16%; filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.5)); }
@media (min-width: 40rem) { .mini.mini-small { width: 100%; margin-left: 0; } }
.looks .mini-screen { background: var(--spine); }
.look-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; visibility: hidden; z-index: 1;
  transition: opacity 260ms ease-out 200ms, visibility 0s linear 460ms;
}
.look-img.is-default { opacity: 1; visibility: visible; z-index: 2; transition-delay: 0s; }
.look-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; opacity: 0; transition: opacity 260ms ease-out; }
.look-video.is-on { opacity: 1; }
.look-controls { display: grid; gap: 0.7rem; justify-items: center; text-align: center; }
@media (min-width: 60rem) { .look-controls { justify-items: start; text-align: left; } }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: inherit; }
@media (min-width: 60rem) { .chips { justify-content: flex-start; } }
.chips { justify-content: center; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.2rem 1.05rem; border-radius: 999px;
  background: var(--pill); color: var(--chalk); font-family: var(--title); font-weight: 600; font-size: 1.15rem;
  border-left: 0; transition: background-color 120ms ease-out, color 120ms ease-out;
}
.chip:hover span { background: var(--spine-hi); color: var(--text); }
.chip input:checked + span { background: var(--label); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--text); outline-offset: 3px; }
.chips-scheme .chip span { font-size: var(--d1); min-height: 40px; }
.look-note { display: none; margin: 0.3rem 0 0; color: var(--chalk); max-width: 30rem; }
.look-note.is-default { display: block; }
.looks-fallback { display: none; color: var(--dust); font-size: 0.85rem; margin: 0; }
.looks-source { color: var(--dust); font-size: 0.85rem; margin: 0; }
@supports not selector(:has(a)) { .looks-fallback { display: block; } .chips { display: none; } }
@supports selector(:has(a)) {
  .look-img.is-default { opacity: 0; visibility: hidden; z-index: 1; transition: opacity 260ms ease-out 200ms, visibility 0s linear 460ms; }
  .look-note.is-default { display: none; }
  .looks:has(input[value="shelf"]:checked) .n-shelf { display: block; }
  .looks:has(input[value="shelf"]:checked):has(input[value="dark"]:checked) .l-shelf.s-dark { opacity: 1; visibility: visible; z-index: 2; transition: opacity 260ms ease-out, visibility 0s; }
  .looks:has(input[value="shelf"]:checked):has(input[value="light"]:checked) .l-shelf.s-light { opacity: 1; visibility: visible; z-index: 2; transition: opacity 260ms ease-out, visibility 0s; }
  .looks:has(input[value="split"]:checked) .n-split { display: block; }
  .looks:has(input[value="split"]:checked):has(input[value="dark"]:checked) .l-split.s-dark { opacity: 1; visibility: visible; z-index: 2; transition: opacity 260ms ease-out, visibility 0s; }
  .looks:has(input[value="split"]:checked):has(input[value="light"]:checked) .l-split.s-light { opacity: 1; visibility: visible; z-index: 2; transition: opacity 260ms ease-out, visibility 0s; }
  .looks:has(input[value="cabinet"]:checked) .n-cabinet { display: block; }
  .looks:has(input[value="cabinet"]:checked):has(input[value="dark"]:checked) .l-cabinet.s-dark { opacity: 1; visibility: visible; z-index: 2; transition: opacity 260ms ease-out, visibility 0s; }
  .looks:has(input[value="cabinet"]:checked):has(input[value="light"]:checked) .l-cabinet.s-light { opacity: 1; visibility: visible; z-index: 2; transition: opacity 260ms ease-out, visibility 0s; }
  .looks:has(input[value="easy"]:checked) .n-easy { display: block; }
  .looks:has(input[value="easy"]:checked):has(input[value="dark"]:checked) .l-easy.s-dark { opacity: 1; visibility: visible; z-index: 2; transition: opacity 260ms ease-out, visibility 0s; }
  .looks:has(input[value="easy"]:checked):has(input[value="light"]:checked) .l-easy.s-light { opacity: 1; visibility: visible; z-index: 2; transition: opacity 260ms ease-out, visibility 0s; }
}
/* Light: the picked chip in ink, as the primary key, so it stands out from the paper pills. */



/* The trailer band and the "Get it" section on the landing page */
.trailer-band { max-width: 62rem; margin: 0 auto; padding: 1rem var(--margin) 0.5rem; }
.trailer-band .clip { margin: 0; }
.trailer-band figcaption { margin-top: 0.6rem; color: var(--quiet); font-size: 0.95rem; }
.get { max-width: 84rem; margin: 0 auto; padding: 2rem var(--margin) 0.5rem; }
.get h2 { margin-bottom: 0.3rem; }
.get > p { max-width: 46rem; color: var(--quiet); }
.get ul { list-style: none; margin: 1.1rem 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .get ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.get li { margin: 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 4px solid var(--amber); }
.get li:nth-child(2) { border-left-color: var(--n64); }
.get li:nth-child(3) { border-left-color: var(--gb); }
.get h3 { font-size: 1.35rem; margin-bottom: 0.2rem; }
.get li p { margin: 0; color: var(--quiet); font-size: 0.95rem; }
.get li a { display: block; width: fit-content; margin-top: 0.4rem; min-height: 44px; line-height: 44px; }
.get .quiet { font-size: 0.9rem; color: var(--dust); }

/* "What's new" on the landing page */
.whatsnew { max-width: 84rem; margin: 0 auto; padding: 2rem var(--margin) 0.5rem; }
.whatsnew h2 { margin-bottom: 0.3rem; }
.whatsnew ul { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 0.9rem; max-width: 56rem; }
.whatsnew li { margin: 0; padding: 0.2rem 0 0.2rem 1rem; border-left: 4px solid var(--amber); color: var(--quiet); }
.whatsnew li strong { color: inherit; }
.whatsnew .quiet { font-size: 0.9rem; color: var(--dust); }

/* What's new (changes.html, made by tools/build-changes.py). */
.s-changes { --stripe: var(--amber); }
.release { margin: 2.2rem 0 0; padding: 0 0 0.4rem; border-top: 1px solid var(--rule); }
.release > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; margin-top: 1.4rem; }
.release > header h2 { margin: 0; }
.release time { color: var(--dust); font-size: 0.95rem; }
.release .summary { font-size: 1.12rem; color: var(--chalk); max-width: var(--measure); margin: 0.5rem 0 0; }
.release h3 { font-size: var(--d2); margin: 1.4rem 0 0.5rem; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; max-width: 52rem; }
.changes li { margin: 0; padding: 0.1rem 0 0.1rem 1rem; border-left: 3px solid var(--rule); color: var(--quiet); overflow-wrap: anywhere; }
.changes li strong { color: var(--chalk); }
.release-link { margin: 1.4rem 0 0.6rem; font-size: 0.95rem; }
.runs-on .also { margin: 1.4rem auto 0; max-width: 52rem; font-size: 0.95rem; line-height: 1.6; }

/* ==== Features (landing): one big picture per feature, text beside it; alternating sides on a wide screen ====== */
.features-x { max-width: 76rem; margin: 0 auto; padding: 2.5rem var(--margin) 1rem; }
.feat-title { text-align: center; font-size: clamp(2rem, 7vw, 3rem); margin: 0 auto 1.8rem; max-width: 40rem; }
.highlights .feat-title { padding: 0 var(--margin); }
.feature { display: grid; gap: 1.1rem; align-items: center; margin: 0 0 3rem; }
@media (min-width: 52rem) {
  .feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; margin-bottom: 4.5rem; }
  .feature:nth-of-type(even) .feature-media { order: 2; }
}
.feature-media { position: relative; display: grid; }
/* Pictures are never cropped: the frame has the picture's own shape and the picture is contained in it. */
.feature .frame {
  position: relative; overflow: hidden; background: #000; border-radius: 14px;
  box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.feature .frame.screen-shot { aspect-ratio: 1240 / 1080; }
.feature .frame.wide-shot { aspect-ratio: 16 / 9; }
.feature .frame > img, .feature .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.feature .frame .missing { color: var(--dust); }
/* A second, smaller picture tucked over the corner of the first. */
.feature .frame.small {
  position: absolute; width: 36%; right: -0.6rem; bottom: -2.2rem;
  box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -10px rgba(0, 0, 0, 0.85);
}
@media (min-width: 52rem) { .feature:nth-of-type(even) .frame.small { right: auto; left: -1.2rem; } }
.feature-text { border-left: 4px solid var(--stripe); padding: 0.2rem 0 0.2rem 1.1rem; }
.feature .frame.small ~ * { margin-top: 0; }
.feature-media:has(.small) { margin-bottom: 2.4rem; }
.feature-text h3 { font-size: var(--h2); line-height: 1.05; margin-bottom: 0.5rem; }
.feature-text p { margin: 0; color: var(--chalk); font-size: 1.05rem; max-width: 32rem; }
.s-big { --stripe: #3fa34d; }
.s-ports { --stripe: var(--amber); }




/* Phones: the wordmark stays on one line and the corner's links fit beside it. */
.wordmark { white-space: nowrap; }
.s-n64 { --stripe: var(--n64); }
/* The small picture on the left corner, where it hides less of the big one (the PS2 case's disc is on the right). */
.feature .frame.small.left { right: auto; left: -0.6rem; }
.s-room { --stripe: var(--amber); }

/* Make it yours: the colour sets, the font and the button styles, compact under the Looks. */
.theme-x { display: grid; gap: 1.8rem; margin-top: 2.4rem; }
.theme-block h3 { font-size: var(--d2); margin-bottom: 0.6rem; }
.theme-block p { color: var(--quiet); font-size: 0.95rem; margin: 0.6rem 0 0; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 40rem) { .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.swatches li, .button-styles li { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.swatches img, .theme-shot { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); background: #000; }
.swatches span, .button-styles span { font-size: 0.85rem; color: var(--dust); }
.theme-pair { display: grid; gap: 1.8rem; }
@media (min-width: 48rem) { .theme-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.theme-shot { max-width: 26rem; }
.button-styles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.button-styles img { display: block; width: 100%; max-width: 218px; height: auto; border-radius: 8px; background: #000; }

/* Runs on: one card per chip, the handhelds as name chips (tools/build-devices.py), with one line of what it plays. */
.device-grid { display: grid; gap: 0.8rem; margin: 1.6rem auto 0; max-width: 84rem; text-align: left; }
@media (min-width: 60rem) { .device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.device-group { padding: 0.8rem 1rem 0.9rem; border-radius: 12px; background: var(--spine); border-top: 3px solid var(--stripe); }
.device-group:nth-of-type(1) { --stripe: var(--gba); }
.device-group:nth-of-type(2) { --stripe: var(--n64); }
.device-group:nth-of-type(3) { --stripe: var(--amber); }
.device-group h3 { font-size: var(--d2); margin: 0 0 0.5rem; }
.device-chips { list-style: none; margin: 0 0 0.55rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.device-chips li {
  margin: 0; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--pill); color: var(--chalk);
  font-family: var(--title); font-weight: 600; font-size: var(--d1); line-height: 1.5; display: inline-flex; align-items: center; gap: 0.4rem;
}
.device-chips .played { font-family: var(--body); font-size: 0.68rem; font-weight: 500; padding: 0 0.45rem; border-radius: 999px; background: var(--label); color: var(--ink); }
.device-group p { margin: 0; font-size: 0.9rem; color: var(--chalk); line-height: 1.4; }

/* ==== Feature videos: a poster with a Play key, the video loads when asked for (no autoplay) ==================== */
.clip-feat { margin: 1.1rem 0 0; max-width: 26rem; }
.clip-feat .frame > picture, .clip-feat .frame > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.clip-feat .play { left: 0.7rem; bottom: 0.7rem; }
.clip-center { margin: 1.4rem auto 0.4rem; max-width: 32rem; }
.feature-media > .clip-center { width: 100%; align-self: center; }
.clip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 20rem)); gap: 1rem; margin: 1rem 0 0; }
.clip-row .clip-feat { margin: 0; max-width: none; }
@media (max-width: 43.75rem) and (orientation: portrait) {
  .clip-feat { width: 100%; max-width: 12rem; margin-left: auto; margin-right: auto; }
  .clip-feat .frame { aspect-ratio: 9 / 16; }
  .clip-feat .play { left: 50%; transform: translateX(-50%); white-space: nowrap; }
}
/* Settings: the small Buttons picture sits in the empty middle of the big one, not over the hint line at its foot. */
.feature.s-settings .frame.small { top: 40%; bottom: auto; width: 34%; }

/* First impression (2026-11-02): a line saying what this is, a link that never breaks, a phone header on one row. */
.eyebrow { margin: 0 0 0.7rem; font-family: var(--title); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--chalk); }
.nowrap { white-space: nowrap; }
.undo { margin: 0 0 1.2rem; font-size: 1.05rem; color: var(--text); max-width: var(--measure); }
.chooser { margin: 1.2rem 0 0; padding: 0.9rem 1.1rem; list-style: none; background: var(--spine); border-radius: var(--radius); border-left: 6px solid var(--amber); max-width: 34rem; color: var(--chalk); }
.chooser li { margin: 0.35rem 0; }
.chooser a { color: var(--text); }
.known { margin: 1rem 0 0; font-size: 0.95rem; color: var(--dust); max-width: var(--measure); }
details.dev { margin-top: 3rem; }
details.dev > summary { cursor: pointer; font-family: var(--title); font-weight: 600; font-size: var(--d2); color: var(--text); padding: 0.6rem 0; }

/* Install chooser (2026-11-02): one card per handheld family, steps in plain words. */
.pick-h { margin-top: 2rem; }
.pick-lead { max-width: var(--measure); color: var(--chalk); }
.pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.pick article { background: var(--spine); border-radius: var(--radius); border-left: 6px solid var(--amber); padding: 0.9rem 1.1rem; color: var(--chalk); min-width: 0; overflow-wrap: anywhere; }
.pick h3 { margin: 0 0 0.5rem; font-family: var(--title); font-weight: 600; font-size: var(--d2); color: var(--text); }
.pick h3 span { display: block; font-size: var(--d1); font-weight: 400; color: var(--dust); }
.pick ol { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.pick li { margin: 0.4rem 0; }
.pick a { color: var(--text); }
.pick-note { margin: 0; font-size: 0.92rem; color: var(--quiet); }

/* FAQ and guide pages (2026-11-02). */
.s-guide { --stripe: var(--gbc); }
.page.s-faq { --stripe: var(--md); }
.faq-page .faq { margin: 1.6rem 0 2rem; }
.faq-page .faq .answer ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.faq-page .faq .answer li { margin: 0.25rem 0; }
.faq-page .faq .answer a { text-decoration: underline; }
.faq-more { max-width: var(--measure); color: var(--chalk); }

/* The guide: numbered steps, each with a short text and real pictures. */
.guide-steps { list-style: none; margin: 1rem 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.guide-steps li { margin: 0; }
.guide-steps a { display: inline-block; padding: 0.45rem 0.9rem; min-height: 40px; border-radius: 999px; background: var(--spine); color: var(--text); text-decoration: none; font-size: 0.98rem; line-height: 1.6; }
.guide-steps a:hover { background: var(--spine-hi); }
.step { padding: 0.4rem 0 1.2rem; scroll-margin-top: 4.5rem; }
.step > h2 { display: flex; align-items: baseline; gap: 0.7rem; }
.step > h2 .n { flex: none; display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding: 0 0.3rem; border-radius: 50%; background: var(--label); color: var(--ink); font-size: 1.3rem; line-height: 1; transform: translateY(-0.1rem); }
.step > p, .step > ol, .step > ul { max-width: var(--measure); }
.step ol { padding-left: 1.3rem; }
.step li { margin: 0.35rem 0; }
.pics { display: grid; gap: 1rem; margin: 1.2rem 0 1.6rem; }
@media (min-width: 40rem) { .pics.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pic { margin: 0; min-width: 0; }
.pic img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); background: var(--spine); }
.pic figcaption { margin-top: 0.5rem; font-size: 0.92rem; color: var(--dust); max-width: 36rem; }
.pic figcaption strong { color: var(--chalk); }
.sizenote { font-size: 0.92rem; color: var(--quiet); }

/* A picture that needs a photo of real hardware: marked, never faked. Hide them all with one rule: .photo-todo { display: none } */
.photo-todo { margin: 0; min-width: 0; }
.photo-todo .box {
  display: grid; place-items: center; text-align: center; aspect-ratio: 4 / 3; padding: 1rem;
  border: 2px dashed var(--dust); border-radius: var(--radius); color: var(--quiet); background: transparent;
}
.photo-todo .box span { max-width: 18rem; font-size: 0.95rem; line-height: 1.35; }
.photo-todo .box strong { display: block; color: var(--chalk); font-family: var(--title); font-size: var(--d2); margin-bottom: 0.2rem; }
.photo-todo figcaption { margin-top: 0.5rem; font-size: 0.92rem; color: var(--dust); }

/* The switch for the ready-made SD card images (see the comment in faq.html and guide.html): body[data-images="on"] shows .img-on, hides .img-off. */
body[data-images="off"] .img-on { display: none !important; }
body[data-images="on"] .img-off { display: none !important; }

/* Guide and FAQ: the dashed "photo goes here" boxes stay hidden until the photos exist. */
.photo-todo { display: none; }

/* Install: the four steps of the ready card, and the "which file is mine?" table. */
.pick-steps { max-width: var(--measure); margin: 0.6rem 0 1rem; color: var(--chalk); }
.files { width: 100%; max-width: var(--measure, 44rem); border-collapse: collapse; margin: 0.6rem 0 1.4rem; font-size: 0.95rem; }
.files th, .files td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid color-mix(in srgb, var(--dust) 35%, transparent); vertical-align: top; overflow-wrap: anywhere; }
.files th { color: var(--dust); font-weight: 600; }

/* ==== Landing v2 (2026-11-04): a short front page, the rest on its own pages ================================== */
:root { --wood-hi: #6e4b30; --wood: #563a24; --wood-lo: #3e2918; --wood-edge: #2c1d11; }



/* The top line: the pages in the middle, Get it and the light switch at the right. */
.top-keys { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.get-key { min-height: 38px; padding: 0.1rem 0.9rem 0.1rem 0.2rem; font-size: 0.95rem; gap: 0.45rem; }
.get-key .cap { min-width: 1.75rem; height: 1.75rem; font-size: 0.88rem; }
.corner { flex: 1 1 auto; justify-content: flex-end; gap: 0.3rem 1.1rem; }
.corner .short { display: none; }
.landing-v2 .topline { border-bottom-color: var(--rule); }

/* Hero: the words and Get it on one side, the trailer on the other. */
.hero2 {
  max-width: 76rem; margin: 0 auto; padding: 1.4rem var(--margin) 1rem;
  display: grid; gap: 1.6rem; align-items: center;
}
@media (min-width: 60rem) {
  .hero2 { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 3rem; padding-top: 3rem; padding-bottom: 1.4rem; }
}
.hero2 h1 { font-size: clamp(2.5rem, 10vw, 4.5rem); line-height: 0.98; margin-bottom: 0.8rem; }
.hero2 .sub { font-size: 1.14rem; color: var(--chalk); max-width: 33rem; margin: 0; }
.hero2 .cta { justify-content: flex-start; margin-top: 1.4rem; gap: 0.7rem 1rem; }
@media (max-width: 60rem) { .hero2 .cta li:nth-child(2) { display: none; } }
.for-device { margin: 1.3rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; color: var(--dust); font-size: 0.92rem; }
.for-device > span:first-child { margin-right: 0.15rem; }
.for-device a:not(.tag-chip) { color: var(--chalk); }
.tag-chip {
  position: relative; display: inline-flex; align-items: center; min-height: 36px;
  padding: 0.15rem 0.75rem 0.15rem calc(6px + 0.6rem); border-radius: 5px;
  background: var(--spine); color: var(--chalk); text-decoration: none;
  font-family: var(--title); font-weight: 600; font-size: 1.02rem; line-height: 1.1;
}
.tag-chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 5px 0 0 5px; background: var(--c, var(--dust)); }
.tag-chip:hover, .tag-chip:focus-visible { background: var(--label); color: var(--ink); }
.for-device .tag-chip:nth-of-type(1), .jump .tag-chip:nth-of-type(1) { --c: var(--snes); }
.for-device .tag-chip:nth-of-type(2), .jump .tag-chip:nth-of-type(2) { --c: var(--nes); }
.for-device .tag-chip:nth-of-type(3), .jump .tag-chip:nth-of-type(3) { --c: var(--ps1); }
.jump .tag-chip:nth-of-type(4) { --c: var(--gb); }
.jump .tag-chip:nth-of-type(5) { --c: var(--gbc); }
.jump .tag-chip:nth-of-type(6) { --c: var(--amber); }
.hero2-screen { margin: 0; }
.hero2-screen .frame, .group-clip .frame {
  border-radius: 12px; background: #000;
  box-shadow: 0 0 0 6px var(--spine), 0 30px 60px -32px rgba(0, 0, 0, 0.9);
}


.hero2-screen .missing, .group-clip .missing { color: #8a877f; }

/* The page's own shelf: spines on a wooden board, the one you point at pulled out like on the handheld. */
.shelfnav, .console-shelf { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.shelfnav { max-width: 40rem; margin: 1.2rem auto 0; padding: 0 var(--margin); gap: 0.6rem; }
.shelfnav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 5px; }
.shelfnav li { margin: 0; }
.shelfnav::after, .console-shelf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px; border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.07) 0 2px, transparent 2px 11px, rgba(255, 255, 255, 0.04) 11px 13px, transparent 13px 23px),
    linear-gradient(180deg, var(--wood-hi) 0, var(--wood) 35%, var(--wood-lo) 80%, var(--wood-edge) 100%);
  box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.8);
}
.shelfnav::after { left: var(--margin); right: var(--margin); }
.sp {
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; width: 40px; height: 132px; padding: 0.6rem 0;
  border-radius: 4px 4px 1px 1px; background: var(--c); color: #fff; text-decoration: none;
  font-family: var(--title); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.02em; line-height: 1; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28), inset 4px 0 0 rgba(255, 255, 255, 0.1), inset 0 10px 0 rgba(0, 0, 0, 0.14);
}
.sp-1 { --c: var(--snes); height: 136px; }
.sp-2 { --c: var(--nes); height: 124px; }
.sp-3 { --c: var(--ps1); height: 142px; color: #1a1916; }
.sp-4 { --c: var(--gb); height: 116px; color: #000; }
.sp-5 { --c: var(--gbc); height: 132px; color: #000; }
.sp-6 { --c: var(--n64); height: 128px; }
.sp:hover, .sp:focus-visible { background: var(--label); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .sp { transition: transform 120ms ease-out, background-color 120ms ease-out, color 120ms ease-out; }
  .sp:hover, .sp:focus-visible { transform: translateY(-12px); }
}
@media (min-width: 40rem) { .sp { width: 46px; font-size: 1.1rem; } }
.prop { image-rendering: pixelated; height: auto; }
.prop-lamp { width: 54px; }
.prop-plant { width: 52px; }
@media (min-width: 40rem) { .prop-lamp { width: 72px; } .prop-plant { width: 70px; } }
@media (max-width: 26rem) { .prop-lamp { display: none; } }

/* Five groups instead of a row per feature: words, what's in it, one clip. */
.groups { max-width: 72rem; margin: 0 auto; padding: 2.8rem var(--margin) 0.5rem; }
.group { display: grid; gap: 1.2rem; align-items: center; padding: 1.8rem 0; }
.group + .group { border-top: 1px solid var(--rule); }
@media (min-width: 56rem) {
  .group { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 3rem; padding: 2.2rem 0; }
  .group:nth-child(even) .group-text { order: 2; }
}
#shelf { --stripe: var(--snes); }
#play { --stripe: var(--nes); }
#pause { --stripe: var(--ps1); }
#easy { --stripe: var(--gb); }
#discover { --stripe: var(--gbc); }
.group-tag {
  position: relative; display: inline-block; margin: 0;
  padding: 0.12rem 0.7rem 0.12rem calc(7px + 0.55rem); border-radius: 5px;
  background: var(--label); color: var(--ink);
  font-family: var(--title); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em;
}
.group-tag::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; border-radius: 5px 0 0 5px; background: var(--stripe); }


.group h2 { font-size: clamp(1.95rem, 6.2vw, 2.8rem); margin: 0.65rem 0 0.55rem; }
.group-text > p:not(.group-tag) { margin: 0; color: var(--chalk); max-width: 33rem; }
.pills { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pills li { margin: 0; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--pill); color: var(--quiet); font-size: 0.86rem; line-height: 1.35; }
/* A hint on the device: a loose round key cap, the words in Dust. */
.more { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; margin-top: 0.8rem; color: var(--dust); text-decoration: none; font-size: 0.95rem; }
.more .cap { min-width: 1.75rem; height: 1.75rem; font-size: 0.85rem; background: var(--dust); color: var(--void); }
.more:hover { color: var(--text); }
.more:hover .cap { background: var(--text); }
.group-clip { margin: 0; }

/* Little things that matter: one compact list of small features, two or three columns on wider screens. */
.little { max-width: 76rem; margin: 0 auto; padding: 2.4rem var(--margin) 1.6rem; border-top: 1px solid var(--rule); }
.little h2 { font-size: clamp(1.7rem, 5.4vw, 2.4rem); margin-bottom: 1rem; }
.little-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem 1.6rem; }
@media (min-width: 40rem) { .little-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .little-list { grid-template-columns: 1fr 1fr 1fr; } }
.little-list li { margin: 0; color: var(--chalk); font-size: 0.95rem; line-height: 1.45; }
.little-list strong { display: block; font-family: var(--title); font-weight: 600; font-size: 1.15rem; color: var(--text); }
.works-update { margin: 1.6rem auto 0; max-width: 40rem; font-size: 1.08rem; color: var(--chalk); }
.works-update strong { font-family: var(--title); font-weight: 600; font-size: var(--d2); color: var(--text); }

/* Works on: pocket-ui's own screens at each handheld's shape, standing on one line. */
.works { max-width: 76rem; margin: 0 auto; padding: 2.4rem var(--margin) 1rem; text-align: center; border-top: 1px solid var(--rule); }
.works h2 { font-size: clamp(1.95rem, 6.2vw, 2.8rem); margin-bottom: 0.3rem; }
.works-sub { color: var(--quiet); margin: 0 auto 1.8rem; max-width: 40rem; }
.screens { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem 1rem; grid-template-columns: 1.148fr 1.333fr; align-items: end; }
.scr { margin: 0; min-width: 0; }
.scr-odin { grid-column: 1 / -1; }
@media (min-width: 48rem) { .screens { grid-template-columns: 1.778fr 1.148fr 1.333fr; gap: 1.6rem; } .scr-odin { grid-column: auto; } }
.scr .frame {
  position: relative; overflow: hidden; border-radius: 10px; background: #000;
  box-shadow: 0 0 0 5px var(--spine), 0 24px 40px -26px rgba(0, 0, 0, 0.9);
}
.scr-odin .frame { aspect-ratio: 16 / 9; }
.scr-mini .frame { aspect-ratio: 1240 / 1080; }
.scr-rg .frame { aspect-ratio: 4 / 3; }
.scr video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scr .missing { color: #8a877f; font-size: 0.8rem; }
.scr p { margin: 0.95rem 0 0; font-size: 0.86rem; color: var(--dust); line-height: 1.35; }
.scr p strong { display: block; font-family: var(--title); font-weight: 600; font-size: 1.2rem; color: var(--text); }
.works-keys { justify-content: center; margin-top: 1.6rem; }

/* Closing: the consoles on a shelf, and Get it. Pictures are pocket-ui's own, from public-domain photos. */
.closing { max-width: 60rem; margin: 0 auto; padding: 2.8rem var(--margin) 3rem; text-align: center; }
.console-shelf { gap: clamp(0.3rem, 1.6vw, 1.2rem); max-width: 50rem; margin: 0 auto 2.6rem; padding: 0 0.5rem; }
.console-shelf img { flex: 0 1 auto; width: 12%; height: auto; min-width: 0; }
.console-shelf img:nth-child(5) { width: 7.5%; }
.console-shelf img:nth-child(6) { width: 8.5%; }
@media (max-width: 30rem) {
  .console-shelf img:nth-child(1), .console-shelf img:nth-child(7) { display: none; }
  .console-shelf img { width: 19%; }
  .console-shelf img:nth-child(5) { width: 12%; }
  .console-shelf img:nth-child(6) { width: 13%; }
}
.closing h2 { font-size: clamp(2.2rem, 7.5vw, 3.4rem); margin-bottom: 0.5rem; }
.closing > p { color: var(--quiet); max-width: 34rem; margin: 0 auto; }
.closing .cta { justify-content: center; }
.close-links { margin: 1.4rem 0 0; font-size: 0.92rem; color: var(--dust); }
.close-links a { color: var(--chalk); }
.closing-small { padding-top: 1rem; }

/* The player over the page: the trailer and every clip of the landing page. */
.player video.is-vertical { aspect-ratio: 9 / 16; width: auto; max-width: 100%; max-height: 78vh; justify-self: center; }

/* Features page: the groups of the landing page, with every feature row. */
.features-head .jump { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.2rem 0 0; }
.fgroup { padding-top: 2.6rem; }
.fgroup > .label { margin-bottom: 2.4rem; }
.fgroup.s-snes { --stripe: var(--snes); }
.fgroup.s-fast { --stripe: var(--nes); }
.fgroup.s-pause { --stripe: var(--ps1); }
.fgroup.s-everyday { --stripe: var(--gb); }
.fgroup.s-library { --stripe: var(--gbc); }
.feat-sub { font-size: var(--h2); margin: 1rem 0 1.2rem; }
.fgroup .tiles-x { padding-left: 0; padding-right: 0; }
.look-screen { position: relative; margin: 0 auto; width: 100%; max-width: 40rem; }
.look-screen .mini-screen {
  position: relative; left: auto; top: auto; width: 100%; height: auto; aspect-ratio: 1240 / 1080;
  border-radius: 12px; box-shadow: 0 0 0 6px var(--spine), 0 30px 60px -32px rgba(0, 0, 0, 0.9);
}
.devices { margin-bottom: 2.4rem; }
.devices .device-grid { margin-top: 1rem; }
.devices-note { font-size: 0.88rem; color: var(--dust); max-width: var(--measure); margin-top: 1rem; }
.devices-note a { color: var(--chalk); }

/* 0.3: the Retro group on the landing page (two stills side by side), the first-start line under the hero, and the Retro row on features. */
.sp-7 { --c: var(--amber); height: 122px; color: #000; }
#retro { --stripe: var(--amber); }
.retro-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 0; }
.group-clip .frame.screen-shot { position: relative; overflow: hidden; aspect-ratio: 1240 / 1080; }
.group-clip .frame.screen-shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.retro-pair figcaption { grid-column: 1 / -1; margin-top: 0.3rem; font-size: 0.92rem; color: var(--dust); text-align: center; }
.retro-pair figcaption strong { color: var(--chalk); }
.group-text > p.retro-where { margin-top: 0.8rem; font-size: 0.95rem; color: var(--quiet); }
.first-start { max-width: 40rem; margin: 1.6rem auto 0; padding: 0 var(--margin); text-align: center; font-size: 1.08rem; color: var(--chalk); }
.fgroup.s-retro { --stripe: var(--amber); }
.feature-text > p.retro-where { margin-top: 0.8rem; font-size: 0.95rem; color: var(--quiet); }
.jump .tag-chip:nth-of-type(7) { --c: var(--gba); }
