/* Hallmark · shape: marketing site base · genre: playful · theme: brand (NeoBox cabinet)
 * paper: #0f1230 · accent: #ffd600 · display: Inter 900 · body: Inter · hero: set per page · nav: sticky bar · footer: quiet text block · signature: scanline overlay + Press Start 2P labels
 * axes: dark/sans/yellow · posture: full-palette (navy field, yellow heads and signal, red seal, near-white ink; arcade-cabinet) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · waive 1 · Inter at weight 900 headlines, kept from the live NeoBox site and app marketing · the site already uses Inter 900 and the brief fixes it */
/* waive 67: the brand wordmark and the small arcade labels set in Press Start 2P are the NeoBox identity and the brief mandates that face for labels (they are not tracked capitals; letter-spacing stays at 0). */
/* Hallmark · home 2.2 · critique: the TV loop with the phone pad is the signature; chapters 01 to 03 from the approved option B; the 2.1 sections kept by the brief (CRT, features, screenshots, story, emulation, download) restyled on these tokens */
/* Hallmark · device and play pages 2.2 · critique: one H1 with its sentence and the App Store button, the facts the visitor came for beside it, then two or three chapters of real captures on the home page rhythm, then a row of the other pages */
/* Hallmark · guides 2026-11 · critique: English-only how-to articles on one 68ch measure, yellow Inter 900 h2, Press Start 2P step numerals, full-measure figures on the existing image radius, breadcrumb and Updated line at ink-2 (above 75% white); no chapter bands, the pictures carry the page; WARN 58 on word count and the 8-word H1 dismissed, these are 500 to 1,100 word how-to articles whose titles state the task */
/* Hallmark · waive 23 · yellow h1 and the yellow App Store button at 1280 · the owner's standing contrast rule sets every headline in brand yellow on the navy paper */
/* Hallmark · waive 44c · copy left and the TV loop, or the page facts, right at full column width · on every NeoBox page the chapter 01 picture starts inside the first screen and invites the scroll */
/* Hallmark · waive 79 · the gap is the chapter band top padding plus its hairline · it is the seam between the hero and chapter 01, kept as one rhythm with the other chapters */
/* Hallmark · waive 83 · screenshots section with product captures of the app · the brief keeps the 2.1 screenshots section, whose job is showing the app on each device */
/* Hallmark · waive 26b · no disabled state anywhere · nothing on these pages can be disabled, every control always works */
/* Hallmark · dismissed F4 · the other filled recipes are the drawn A B C D pad buttons in the controller picture, not controls; the only filled control is the App Store button, nav pill included */
/* Hallmark · dismissed 59 · ten sections because the brief keeps every 2.1 section (CRT, features, screenshots, story, emulation, download) after the hero and three chapters */
/* Hallmark · dropped #crt, #download, #emulation, #features, #story · the 2.2 nav links to the Devices chapter (#devices, which lists every device page) and the AirPlay and Play together pages instead; every one of these sections keeps its id, so old bookmarks such as /#crt still land (test_legacy_anchors_exist) */
/* Hallmark · dropped #new, #platforms, new, platforms, trio · the 2.1 Now it folds section, the device row and the three-screens section are gone from the 2.2 home page, recorded in site-src/tests/legacy_home_record.json */
/* Hallmark · dropped neonrush · the in-page NEON RUSH link lived in the removed Now it folds section; the footer still links to /neonrush on every page */
/* Hallmark · dropped bgGrad, cart, cartGrad, labelGrad · the inline cart SVG symbol is replaced by the cart icon image in the nav and the download section */
/* Hallmark · reworded "promoSound" to "heroPromo" · the old Play with sound button is now the Watch the film button and keeps the promo_play hook on heroPromo */
:root {
  --color-paper: #0f1230; --color-paper-2: #1a1f3d; --color-paper-3: #0a0d22;
  --color-ink: #f1f3ff; --color-ink-2: #c9cdea; --color-muted: #c9cdea;
  --color-rule: #2e3366;
  --color-accent: #ffd600; --color-accent-ink: #0f1230; --color-focus: #ffd600;
  --color-accent-hi: #ffe14d; --color-red: #e62633; --color-scan: rgba(255, 255, 255, 0.012);
  --color-green: #21ab45; --color-blue: #336ccc; --color-pad: #2a2f4d; --color-pad-2: #181b35; --color-stick: #6a6a6a; --color-stick-2: #161616;
  --color-scrim: color-mix(in oklab, var(--color-paper-3) 86%, transparent);
  --color-nav-bg: rgba(15, 18, 48, 0.88);
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-outlier: "Press Start 2P", ui-monospace, "SF Mono", Menlo, monospace;
  --display-weight: 900;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1140px; --gutter: 28px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --radius-card: 12px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.02em;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
/* Japanese heads: break only at the phrase boundaries the strings mark with U+200B (and after 、。), so katakana words stay whole; overflow-wrap keeps a long phrase inside its column. auto-phrase is a Chromium extra. */
:lang(ja) :is(h1, h2, h3) { word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* Scanline overlay (brand cue, very subtle) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: var(--z-tooltip);
  background: repeating-linear-gradient(0deg, var(--color-scan) 0, var(--color-scan) 1px, transparent 1px, transparent 3px);
}

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: var(--z-sticky-nav);
  background: var(--color-nav-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-accent); }
.cart-logo { width: 32px; height: 32px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); min-width: 0; }
.nav-links a { text-decoration: none; font-size: var(--text-sm); font-weight: 400; color: var(--color-ink-2); }
.nav-links a:hover { color: var(--color-ink); }
.nav-cta {
  white-space: nowrap;
  background: var(--color-accent); color: var(--color-accent-ink) !important; font-weight: 700 !important;
  padding: var(--space-xs) var(--space-md); border-radius: 8px;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.nav-cta:hover { background: var(--color-accent-hi); transform: translateY(-1px); }
.nav-cta:active { transform: translateY(0); }
.lang-switch { position: relative; font-size: var(--text-sm); }
.lang-switch summary { cursor: pointer; color: var(--color-ink-2); list-style: none; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: var(--color-ink); }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown);
  list-style: none; margin: 0; padding: var(--space-xs); min-width: 11rem;
  background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: 8px;
}
.lang-switch li a { display: block; padding: var(--space-xs) var(--space-sm); border-radius: 6px; }
.lang-switch li a:hover, .lang-switch li a[aria-current] { background: var(--color-paper-3); color: var(--color-ink); }
@media (max-width: 40rem) {
  .nav-links { gap: var(--space-md); }
  .nav-links > a:not(.nav-cta) { display: none; }
}

/* Footer */
.site-footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-xl); margin-top: var(--section-gap-s); font-size: var(--text-sm); color: var(--color-ink-2); }
.site-footer .container { display: grid; gap: var(--space-sm); }
.footer-text { max-width: 70ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--color-ink); }

/* Mobile menu: a <details> disclosure, works with no script */
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm);
  list-style: none; cursor: pointer; font-size: var(--text-sm); font-weight: 700; color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule); border-radius: 8px;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { border-color: var(--color-ink-2); }
.nav-menu summary:active { transform: translateY(1px); }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown);
  display: grid; gap: var(--space-xs); min-width: 15rem; padding: var(--space-sm);
  background: var(--color-paper-2); color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule); border-radius: 8px;
}
.nav-menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.nav-menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm); border-radius: 6px; font-size: var(--text-md); color: var(--color-ink); }
.nav-menu-panel a:hover, .nav-menu-panel a[aria-current] { background: var(--color-paper-3); }
.nav-menu-label { padding: var(--space-xs) var(--space-sm) 0; border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }
@media (max-width: 22rem) { .brand span { display: none; } }
@media (max-width: 40rem) {
  .nav-links > .lang-switch { display: none; }
  .nav-menu { display: block; }
}

/* Buttons: one primary (the App Store), one quiet */
.app-store-badge {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg);
  background: var(--color-accent); color: var(--color-accent-ink); border-radius: 8px;
  font-weight: 700; font-size: var(--text-md); line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.app-store-badge:hover { background: var(--color-accent-hi); transform: translateY(-1px); }
.app-store-badge:active { transform: translateY(0); }
.app-store-badge .apple-logo { width: 18px; height: 22px; fill: currentColor; flex-shrink: 0; }
.btn-quiet {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md);
  background: transparent; color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule); border-radius: 8px;
  font-weight: 700; font-size: var(--text-sm); cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn-quiet:hover { background: var(--color-paper-2); border-color: var(--color-ink-2); }
.btn-quiet:active { transform: translateY(1px); }
.btn-quiet .play-glyph { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
html:not(.js) .btn-quiet[data-loop-toggle] { display: none; }

/* Sections shared by the home page */
.section { padding-block: var(--section-gap-s); }
.section-head { margin-bottom: var(--space-2xl); }
.section h2, .chapter h2, .cta h2 { color: var(--color-accent); }
.section-lede { margin-top: var(--space-md); font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); max-width: 60ch; }
.section h3 { color: var(--color-ink); }

/* Hero: head left, the TV loop right with the phone pad over its corner */
.hero { padding-block: var(--space-xl); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); align-items: center; }
.hero h1 { color: var(--color-accent); font-size: clamp(2.75rem, 4.4vw + 0.5rem, 4.75rem); line-height: 1.02; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink); max-width: 30ch; }
.hero-actions { margin-top: var(--space-xl); }
.hero-media { position: relative; margin: 0; }
.hero-screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); color: var(--color-ink); }
.hero-screen img, .hero-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-screen video { opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.hero-media.is-playing .hero-screen video { opacity: 1; }
.hero-pad { position: absolute; right: calc(-1 * var(--space-lg)); bottom: var(--space-lg); width: 44%; height: auto; border-radius: 8px; border: var(--rule-hair) solid var(--color-rule); }
.hero-media-bar { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }

/* The film, in a native dialog */
.film-dialog { width: min(100% - 2 * var(--gutter), 1100px, (100vh - 7rem) * 16 / 9); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--color-ink); }
/* A landscape phone: the film keeps 7rem for the close row, so Close stays on screen. dvh tracks the browser bars; the vh line covers browsers without it. */
@supports (height: 100dvh) { .film-dialog { width: min(100% - 2 * var(--gutter), 1100px, (100dvh - 7rem) * 16 / 9); } }
.film-dialog::backdrop { background: var(--color-scrim); }
.film-frame { overflow: hidden; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); }
.film-frame video { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); }
.film-close-row { display: flex; justify-content: flex-end; margin-top: var(--space-sm); }
.film-close-row .btn-quiet { background: var(--color-paper); }

/* Chapters: a big picture beside a number, a head, one line and a link */
.chapter { padding-block: var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule); }
.chapter.flip { background: var(--color-paper-3); }
.chapter-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl); align-items: center; }
.chapter.flip .chapter-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.chapter.flip .chapter-pic { order: 2; }
.chapter-pic { margin: 0; }
.chapter-pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); }
.ch-numeral { font-family: var(--font-outlier); font-size: var(--text-lg); line-height: 1; color: var(--color-ink-2); margin-bottom: var(--space-lg); }
.chapter h2 { font-size: clamp(2.125rem, 3.6vw + 0.5rem, 3.75rem); line-height: 1.04; max-width: 14ch; }
.chapter-body { margin-top: var(--space-md); font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink); max-width: 34ch; }
.chapter-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-md); font-weight: 700; color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--color-accent); transition: color var(--dur-micro) var(--ease-out); }
.chapter-link:hover { color: var(--color-accent); }
.chapter-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); margin: var(--space-sm) 0 0; padding: 0; list-style: none; }
.chapter-links .chapter-link { margin-top: 0; }

/* CRT shader (ported from the 2.1 page; same ids and interaction) */
.crt-section { background: var(--color-paper-3); color: var(--color-ink); border-top: var(--rule-hair) solid var(--color-rule); }
.crt-stage { position: relative; max-width: 860px; }
.crt-frame { position: relative; overflow: hidden; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-3); cursor: ew-resize; touch-action: pan-y; }
.crt-frame canvas, .crt-frame img { display: block; width: 100%; height: auto; }
.crt-frame canvas { position: relative; z-index: 2; }
.crt-frame img.is-texture { position: absolute; inset: 0; visibility: hidden; }
.crt-handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--color-accent); z-index: 4; pointer-events: none; }
.crt-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--color-accent); }
.crt-handle::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); z-index: 1;
  background:
    linear-gradient(90deg, transparent 44%, var(--color-paper) 44%, var(--color-paper) 47%, transparent 47%),
    linear-gradient(90deg, transparent 53%, var(--color-paper) 53%, var(--color-paper) 56%, transparent 56%);
}
.crt-tag { position: absolute; bottom: var(--space-sm); z-index: 4; padding: var(--space-2xs) var(--space-xs); border-radius: 6px; background: var(--color-scrim); border: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink); pointer-events: none; }
.crt-tag.off { left: var(--space-sm); }
.crt-tag.on { right: var(--space-sm); color: var(--color-accent); }
.crt-frame:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.crt-hint { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }
.crt-frame.no-gl .css-scan { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: repeating-linear-gradient(0deg, var(--color-scrim) 0, var(--color-scrim) 1px, transparent 1px, transparent 3px); }

/* Features: a definition list on hairlines */
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: 0; }
.feature { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.feature dt { font-weight: 700; font-size: var(--text-lg); line-height: 1.25; color: var(--color-ink); }
.feature dd { margin: var(--space-xs) 0 0; color: var(--color-ink-2); }

/* Screenshots */
.shots { background: var(--color-paper-3); }
.screenshot-frame { overflow: hidden; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); }
.screenshot-frame img { width: 100%; height: auto; }
.shot-prefs { max-width: 640px; margin-inline: auto; }
.shot-prefs img { background: var(--color-ink); }
.car-tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.car-tab {
  min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 8px;
  background: var(--color-paper); color: var(--color-ink); font-family: var(--font-outlier); font-size: var(--text-xs); line-height: 1; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.car-tab:hover { border-color: var(--color-ink-2); }
.car-tab:active { transform: translateY(1px); }
.car-tab.on { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.car-shots { display: grid; }
.car-shots .car-pane { grid-area: 1 / 1; align-self: center; opacity: 0; pointer-events: none; transition: opacity var(--dur-short) var(--ease-in-out); }
.car-shots .car-pane.on { opacity: 1; pointer-events: auto; }
html:not(.js) .car-shots { gap: var(--space-xl); }
html:not(.js) .car-shots .car-pane { grid-area: auto; opacity: 1; pointer-events: auto; }
html:not(.js) .car-tabs { display: none; }
.gallery { margin-bottom: var(--space-3xl); }
.gallery-tabs { margin-bottom: var(--space-lg); }
.device-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.device-gallery figure { margin: 0; }
.device-gallery .screenshot-frame img { height: 740px; object-fit: cover; object-position: top center; }
.device-gallery figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.showcase { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; margin-bottom: var(--space-3xl); }
.showcase:last-child { margin-bottom: 0; }
.showcase.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.showcase.reverse .showcase-visual { order: 2; }
.showcase h3 { font-size: var(--text-2xl); line-height: 1.15; }
.showcase p { margin-top: var(--space-md); color: var(--color-ink-2); }
.shot-carousel .screenshot-frame { display: grid; place-items: center; width: fit-content; max-width: 100%; margin-inline: auto; }
.shot-carousel .screenshot-frame img { max-height: 430px; width: auto; max-width: 100%; }
.shot-carousel .car-tabs { justify-content: center; margin-top: var(--space-md); }
.check-list { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.check-list li { display: flex; gap: var(--space-sm); align-items: flex-start; color: var(--color-ink); }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 0.3em; background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / contain no-repeat;
}

/* Story */
.video-block { max-width: 860px; }
.video-frame { overflow: hidden; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); }
.video-frame video { width: 100%; }
.video-note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); max-width: 70ch; }

/* Emulation */
.emulation { border-top: var(--rule-hair) solid var(--color-rule); }
.controller-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; }
.controller-block h3, .power-note h3 { font-size: var(--text-2xl); line-height: 1.15; }
.controller-block p, .power-note p { margin-top: var(--space-md); color: var(--color-ink-2); }
.controller-block h3 { max-width: 16ch; }
.controller-figure { margin: 0; }
.controller-mock { position: relative; width: 100%; max-width: 360px; margin-inline: auto; aspect-ratio: 1.6 / 1; border-radius: 22px; border: var(--rule-hair) solid var(--color-rule); background: linear-gradient(135deg, var(--color-pad), var(--color-pad-2)); }
.controller-mock .stick { position: absolute; left: 22%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--color-stick), var(--color-stick-2) 70%); }
.controller-mock .pad-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-family: var(--font-outlier); font-size: 8px; color: var(--color-ink); }
.controller-mock .pad-btn.a { right: 42%; bottom: 22%; background: var(--color-red); }
.controller-mock .pad-btn.b { right: 32%; bottom: 33%; background: var(--color-accent); color: var(--color-accent-ink); }
.controller-mock .pad-btn.c { right: 22%; bottom: 44%; background: var(--color-green); }
.controller-mock .pad-btn.d { right: 12%; bottom: 55%; background: var(--color-blue); }
.controller-mock .menu-pill { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); width: 36px; height: 7px; border-radius: 4px; background: var(--color-rule); }
.power-note { margin-top: var(--space-2xl); padding: var(--space-lg) var(--space-xl); max-width: 46rem; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); }
.power-note h3 { font-size: var(--text-lg); }

/* Download */
.cta { padding-block: var(--section-gap-l); text-align: center; border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-3); color: var(--color-ink); }
.cta-cart { width: 176px; height: 176px; margin: 0 auto var(--space-xl); }
.cta h2 { margin-inline: auto; max-width: 18ch; }
.cta > .container > p:not(.req-note) { margin: var(--space-md) auto var(--space-xl); max-width: 52ch; font-size: var(--text-lead); color: var(--color-ink-2); }
.cta .req-note { margin: var(--space-2xl) 0 var(--space-sm); text-align: left; font-size: var(--text-sm); color: var(--color-ink-2); }
.requirements { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-md); margin: 0; text-align: left; }
.requirements > div { padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.requirements dt { font-weight: 700; color: var(--color-accent); }
.requirements dd { margin: var(--space-2xs) 0 0; font-size: var(--text-sm); color: var(--color-ink); }

@media (max-width: 60rem) {
  .hero-grid, .chapter-grid, .chapter.flip .chapter-grid, .showcase, .showcase.reverse, .controller-block { grid-template-columns: minmax(0, 1fr); }
  .chapter.flip .chapter-pic, .showcase.reverse .showcase-visual { order: 0; }
  .hero-pad { right: var(--space-sm); bottom: calc(44px + 2 * var(--space-md)); width: 46%; }
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-gallery { grid-template-columns: minmax(0, 1fr); max-width: 320px; margin-inline: auto; }
  .requirements { grid-template-columns: minmax(0, 1fr); max-width: 28rem; margin-inline: auto; }
  .chapter { padding-block: var(--space-2xl); }
}
@media (max-width: 40rem) {
  .feature-list, .requirements { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: var(--space-lg); }
  .power-note { padding: var(--space-md) var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-screen video { display: none; }
}

/* Device and Play together pages: head and actions left, the facts the page
   answers right, then the chapters and a row of the other pages */
.page-hero { padding-block: var(--space-3xl) var(--space-2xl); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl); align-items: end; }
.page-hero h1 { color: var(--color-accent); font-size: clamp(2.5rem, 4vw + 0.75rem, 4.5rem); line-height: 1.02; max-width: 16ch; }
.page-hero .lead { color: var(--color-ink); max-width: 40ch; }
.page-facts { margin: 0; display: grid; gap: var(--space-md); }
.page-facts > div { padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.page-facts dt { font-weight: 700; color: var(--color-accent); }
.page-facts dd { margin: var(--space-2xs) 0 0; color: var(--color-ink); max-width: 38ch; }
.more-row { padding-block: var(--space-3xl); border-top: var(--rule-hair) solid var(--color-rule); }
.more-row h2 { color: var(--color-accent); font-size: var(--text-2xl); margin-bottom: var(--space-lg); }
.more-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.more-sub { margin: var(--space-xl) 0 var(--space-sm); font-family: var(--font-outlier); font-size: var(--text-xs); font-weight: 400; color: var(--color-ink-2); letter-spacing: 0; }
.more-list + .more-list { margin-top: var(--space-sm); }
.more-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink); font-weight: 700; text-decoration: none; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.more-list a:hover { border-color: var(--color-accent); color: var(--color-accent); }
@media (max-width: 60rem) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .page-hero { padding-block: var(--space-2xl) var(--space-xl); }
}

/* Guides: index and articles, one 68ch measure */
.guide-wrap { padding-block: var(--space-2xl) var(--space-3xl); }
.guide h1 { max-width: 20ch; font-size: var(--text-display-s); color: var(--color-accent); }
.guide .lede { margin-top: var(--space-md); max-width: 68ch; font-size: var(--text-lead); color: var(--color-ink-2); }
.guide-crumbs { margin-bottom: var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-2); }
.guide-crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; }
.guide-crumbs li + li::before { content: "\203A"; margin-right: var(--space-xs); }
.guide-crumbs a { color: var(--color-ink-2); }
.guide-crumbs a:hover { color: var(--color-ink); }
.guide-updated { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }
.guide-body { max-width: 68ch; margin-top: var(--space-xl); }
.guide-body > * + * { margin-top: var(--space-md); }
.guide-body > p:first-child { font-size: var(--text-lead); }
.guide-body h2 { margin-top: var(--space-xl); font-size: var(--text-xl); line-height: 1.15; color: var(--color-accent); }
.guide-body h3 { margin-top: var(--space-lg); font-size: var(--text-lg); color: var(--color-ink); }
.guide-body ul { padding-left: var(--space-lg); }
.guide-body li + li { margin-top: var(--space-xs); }
.guide-body ol { list-style: none; counter-reset: step; padding: 0; }
.guide-body ol > li { position: relative; counter-increment: step; padding-left: 3.25rem; }
.guide-body ol > li::before { content: counter(step); position: absolute; left: 0; top: 0.2em; width: 2.25rem; font-family: var(--font-outlier); font-size: 0.8125rem; line-height: 1.4; color: var(--color-accent); }
.guide-body a, .guide-list a { color: var(--color-accent); text-underline-offset: 3px; }
.guide-body a:hover, .guide-list a:hover { color: var(--color-accent-hi); }
.guide-body code { padding: 0 var(--space-2xs); border-radius: 4px; background: var(--color-paper-3); font-size: 0.9em; }
.guide-table { margin: var(--space-lg) 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.guide-table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.45; }
.guide-table caption { caption-side: bottom; margin-top: var(--space-xs); text-align: left; color: var(--color-ink-2); }
.guide-table th, .guide-table td { padding: var(--space-xs) var(--space-sm); text-align: left; vertical-align: top; border-bottom: var(--rule-hair) solid var(--color-rule); }
.guide-table thead th { color: var(--color-ink); font-weight: 700; white-space: nowrap; }
.guide-table tbody th { color: var(--color-ink); font-weight: 700; }
.guide-table td { color: var(--color-ink-2); }
.guide-table tr.ours th { color: var(--color-accent); }
@media (max-width: 40rem) {
  .guide-table { overflow: visible; }
  .guide-table table { min-width: 0; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .guide-table table, .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; }
  .guide-table tr { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .guide-table th, .guide-table td { padding: var(--space-2xs) 0; border: 0; }
  .guide-table tbody th { font-size: var(--text-md); }
  .guide-table td::before { content: attr(data-label) ": "; color: var(--color-ink); font-weight: 600; }
}
.guide-fig { margin: var(--space-lg) 0; }
.guide-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); border: var(--rule-hair) solid var(--color-rule); }
.guide-fig figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.guide-related { margin-top: var(--space-2xl); max-width: 68ch; }
.guide-related h2 { color: var(--color-accent); font-size: var(--text-title); margin-bottom: var(--space-sm); }
.guide-related .more-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.guide-cta { margin-top: var(--space-xl); }
.guide-list { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-lg); max-width: 68ch; counter-reset: guide; }
.guide-list li { counter-increment: guide; padding-left: 3.25rem; position: relative; }
.guide-list li::before { content: counter(guide); position: absolute; left: 0; top: 0.35em; font-family: var(--font-outlier); font-size: 0.8125rem; color: var(--color-accent); }
.guide-list a { font-size: var(--text-title); font-weight: 700; }
.guide-list p { margin-top: var(--space-2xs); color: var(--color-ink-2); }
