/* Hallmark · shape: Stage · genre: playful · theme: custom (direction A "Stage", chosen by the user 2026-11-28) · job: try · idea: "the console itself, big and playable, is the page" · vibe: "a product on a quiet stage"
 * paper: oklch(93.5% 0.008 90) · accent: oklch(48% 0.13 55) · display: Archivo 900 · body: Archivo · hero: the console centred and huge, the name ghosted behind it, headline low left, facts low right · nav: edge-aligned · footer: index columns · imagery: the product (playable console, app screenshots) · signature: press Play and the console on the stage is yours
 * axes: light/grotesk/warm-orange · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: P, a product page has little to argue; the stage lets the game make the case, and Play is the first action */
/* Hallmark · waive 11 · hover lift on the step cards and Pro tiles · the user asked for cards that lift under the pointer (2026-11-28) */
/* Hallmark · answered F4 · the other filled controls are colour swatches and the chosen segment, not a second action; .btn--primary is the one primary */
/* Hallmark · answered F15 · sections share one column gap; smaller gaps belong to figure rows inside a card */
:root {
  --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: 1440px; --gutter: 64px; --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;
  --color-paper: oklch(93.5% 0.008 90); --color-paper-2: oklch(90% 0.01 90); --color-paper-3: oklch(97% 0.006 90);
  --color-ink: oklch(22% 0.006 270); --color-ink-2: oklch(33% 0.006 270); --color-muted: oklch(46% 0.01 80);
  --color-rule: oklch(83% 0.01 90); --color-ghost: oklch(88.5% 0.011 90);
  --color-night: oklch(22% 0.006 270); --color-night-2: oklch(27% 0.006 270); --color-night-ink: oklch(93.5% 0.008 90); --color-night-muted: oklch(75% 0.008 90); --color-night-rule: oklch(36% 0.006 270);
  --color-accent: oklch(48% 0.13 55); --color-accent-deep: oklch(42% 0.12 55); --color-accent-ink: oklch(98.5% 0.004 90); --color-focus: oklch(52% 0.17 250); --color-focus-night: oklch(80% 0.12 250);
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif; --font-body: "Archivo", ui-sans-serif, system-ui, sans-serif; --font-outlier: var(--font-body);
  --radius-card: 4px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.035em;
}
*, *::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-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
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; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@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; } }

:root {
  --shadow-console: drop-shadow(0 28px 36px oklch(30% 0.02 80 / 0.28)) drop-shadow(0 4px 6px oklch(30% 0.02 80 / 0.12));
  --shadow-menu: 0 18px 40px -18px oklch(30% 0.02 80 / 0.4);
  --shadow-chip: 0 1px 3px oklch(30% 0.02 80 / 0.18);
  --nav-height: 76px;
  --console-max: 720px;
}
:root:lang(ja) { --font-display: "Archivo", "Hiragino Sans", "Yu Gothic", sans-serif; --font-body: "Archivo", "Hiragino Sans", "Yu Gothic", sans-serif; }
:root:lang(zh-Hans) { --font-display: "Archivo", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; --font-body: var(--font-display); }
:root:lang(zh-Hant) { --font-display: "Archivo", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; --font-body: var(--font-display); }
/* Arabic joins its letters: no negative tracking; Plex Sans Arabic is loaded on the Arabic page only. */
:root:lang(ar) { --font-display: "Archivo", "IBM Plex Sans Arabic", "Geeza Pro", "Noto Sans Arabic", sans-serif; --font-body: var(--font-display); --tracking-display: 0; }
:root:lang(ar) body { line-height: 1.7; }
:root:lang(ko) { --font-display: "Archivo", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; --font-body: "Archivo", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }

body { font-size: 1.0625rem; line-height: 1.55; }
h1, h2, h3 { font-weight: 900; letter-spacing: var(--tracking-display); line-height: 1; }
a { color: var(--color-ink); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--color-accent); }
a:active { color: var(--color-accent-deep); }
.skip { position: absolute; inset-inline-start: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-modal); background: var(--color-paper-3); color: var(--color-ink); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

/* ------------------------------------------------------------------ pills */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: 2px solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 700 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: translate var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.btn:hover { translate: 0 -2px; background: var(--color-ink); color: var(--color-paper); }
.btn:active { translate: 0 1px; }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 800; padding: 0 var(--space-xl); }
.btn--primary:hover { border-color: var(--color-accent-deep); background: var(--color-accent-deep); color: var(--color-accent-ink); }

/* ------------------------------------------------------------------ language suggestion (game.js fills and shows it) */
/* Floats at the bottom of the screen instead of pushing the page down when it appears (Salih, 2026-11-28: "Evet, alta al";
   it had moved everything 60 px after load). */
.lang-suggest { position: fixed; inset-inline: var(--space-md); bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); z-index: var(--z-modal); width: auto; max-width: 40rem; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2xs) var(--space-md); padding: var(--space-2xs) var(--space-md); border-radius: var(--radius-card); box-shadow: var(--shadow-menu); background: var(--color-night); color: var(--color-night-ink); font-size: var(--text-sm); }
.lang-suggest[hidden] { display: none; }
.lang-suggest p { margin: 0; }
.lang-suggest a { color: var(--color-night-ink); font-weight: 700; }
.lang-suggest a:hover { color: var(--color-night-muted); }
.lang-suggest a:active { color: var(--color-night-ink); }
.lang-suggest a:focus-visible, .lang-suggest button:focus-visible { outline: 3px solid var(--color-focus-night); outline-offset: 2px; }
.lang-suggest button { min-height: 44px; padding: 0 var(--space-sm); border: 0; background: none; color: var(--color-night-muted); font: inherit; cursor: pointer; text-decoration: underline; }
.lang-suggest button:hover { color: var(--color-night-ink); }
.lang-suggest button:active { color: var(--color-night-muted); }
.lang-suggest button:disabled { cursor: not-allowed; }

/* ------------------------------------------------------------------ nav */
.nav { height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); position: relative; z-index: var(--z-raised); }
.wordmark { font-weight: 900; font-size: var(--text-xl); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.wordmark { display: inline-flex; align-items: center; gap: 0.4em; }
.wordmark__mark { width: 0.95em; height: 0.95em; flex: none; }
.wordmark:hover { color: var(--color-accent); }
.wordmark:active { color: var(--color-accent-deep); }
.nav__end { display: flex; align-items: center; gap: var(--space-md); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm); color: var(--color-ink-2); font-weight: 600; white-space: nowrap; border-radius: var(--radius-pill); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: var(--color-paper-2); }
.lang summary:active { background: var(--color-rule); }
.lang summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); margin: 0; padding: var(--space-xs); list-style: none; min-width: 12rem; background: var(--color-paper-3); border-radius: var(--radius-card); box-shadow: var(--shadow-menu); }
.lang li a { display: block; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-card); color: var(--color-ink); text-decoration: none; }
.lang li a:hover, .lang li a[aria-current="page"] { background: var(--color-paper-2); color: var(--color-ink); }
.lang li a:active { background: var(--color-rule); }
.nav .btn { min-height: 44px; }

/* ------------------------------------------------------------------ the stage */
.stage-hero { --stage-w: min(calc((100svh - var(--nav-height) - 270px) * 4 / 7), calc(var(--console-max) * 4 / 7)); position: relative; isolation: isolate; min-height: calc(100svh - var(--nav-height)); display: grid; grid-template-columns: minmax(0, 1fr) var(--stage-w) minmax(0, 1fr); align-items: end; gap: var(--space-xl); padding-block: var(--space-sm) var(--space-xl); }
.ghost { position: absolute; inset: auto 0 14%; z-index: -1; margin: 0; text-align: center; font-weight: 900; font-size: clamp(6rem, 19vw, 20rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--color-ghost); white-space: nowrap; pointer-events: none; user-select: none; }
.stage-hero__text { display: grid; gap: var(--space-md); align-content: end; justify-items: start; padding-bottom: var(--space-lg); }
.stage-hero h1 { font-size: clamp(2.25rem, 2.6vw + 0.75rem, 3.5rem); max-width: 11ch; hyphens: auto; -webkit-hyphens: auto; }
/* Long compounds (de "Taschenkonsole") broke mid-word without a hyphen at 11ch; the page's lang lets the browser hyphenate. */
.stage-hero .lead { color: var(--color-ink-2); max-width: 28ch; font-size: var(--text-lead); line-height: 1.4; }
.stage-hero__specs { display: grid; gap: var(--space-md); justify-items: end; text-align: end; margin: 0; padding-bottom: var(--space-lg); }
.stage-hero__specs div { display: grid; }
.stage-hero__specs dd { margin: 0; font-weight: 900; font-size: var(--text-3xl); line-height: 1; letter-spacing: var(--tracking-display); }
.stage-hero__specs dt { order: 2; font-weight: 600; color: var(--color-muted); }

.console-figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-md); width: 100%; }
/* The column is the console's width; a longer note or button row (e.g. Italian) is centred over it instead of
   widening it, which had made the console grow and push the headline off the first screen (2026-11-28). */
.stage-hero__actions { flex-wrap: nowrap; width: max-content; }
/* Wide layout: the console sits at the top of its column, so a note that wraps to more lines in one language
   (it, de, es-mx) lengthens the column downwards instead of moving the console when the language changes. */
@media (min-width: 64.01rem) { .console-figure { align-self: start; } }
.attract-note { width: max-content; max-width: min(36rem, 92vw); }
.console { direction: ltr; position: relative; width: 100%; aspect-ratio: 400 / 700; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; filter: var(--shadow-console); }
.console canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.console__key { position: absolute; touch-action: none; border: 0; padding: 0; margin: 0; border-radius: 50%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.console__key:hover { background: color-mix(in oklab, var(--color-ink) 7%, transparent); }
.console__key:active { background: transparent; }
.console__key:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 0; }
.console__key:disabled { cursor: not-allowed; }
.console__fallback { display: none; }
html:not(.has-console) .console__fallback { display: block; border-radius: var(--radius-card); }
html:not(.has-console) .console, html:not(.has-console) .keys, html:not(.has-console) .picker, html:not(.has-console) .attract-note, html:not(.has-console) [data-play] { display: none; }
.stage-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
.offer { margin: 0; text-align: center; font-size: var(--text-sm); color: var(--color-muted); }

.attract-note { margin: 0; text-align: center; font-size: var(--text-sm); color: var(--color-ink-2); }
.attract-note[hidden] { display: none; }
.attract-note__touch { display: none; }
@media (hover: none) and (pointer: coarse) { .attract-note__keys { display: none; } .attract-note__touch { display: inline; } }

.overlay { position: absolute; z-index: var(--z-raised); display: grid; align-content: center; justify-items: center; gap: var(--space-sm); padding: var(--space-md); text-align: center; background: var(--color-paper-3); color: var(--color-ink); border-radius: var(--radius-card); }
.overlay__title { font-weight: 900; font-size: var(--text-title); line-height: 1.1; letter-spacing: var(--tracking-display); max-width: 16ch; }
.overlay__score { color: var(--color-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.overlay [data-when] { display: none; }
.overlay[data-kind="demo"] [data-when="demo"], .overlay[data-kind="over"] [data-when="over"] { display: block; }
.overlay .btn { min-height: 44px; padding-inline: var(--space-md); font-size: var(--text-sm); }
.link-button { white-space: nowrap; border: 0; background: none; padding: var(--space-xs); min-height: 44px; font: inherit; font-size: var(--text-sm); font-weight: 600; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; cursor: pointer; }
.link-button:hover { color: var(--color-accent); }
.link-button:active { color: var(--color-accent-deep); }
.link-button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-card); }
.link-button:disabled { cursor: not-allowed; opacity: 0.5; }

.keys { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--space-2xs) var(--space-md); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-muted); }
.keys li { display: inline-flex; align-items: center; gap: var(--space-2xs); }
kbd { font-family: var(--font-body); font-weight: 700; font-size: var(--text-xs); color: var(--color-ink); min-width: 1.9em; padding: 0 var(--space-2xs); text-align: center; background: var(--color-paper-3); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--color-rule), 0 2px 0 0 var(--color-rule); }
.keys .keys__touch { display: none; }
@media (hover: none) and (pointer: coarse) { .keys li:not(.keys__touch) { display: none; } .keys .keys__touch { display: inline-flex; } }

/* ------------------------------------------------------------------ how a game goes: four cards on the dark floor */
.how { background: var(--color-night); color: var(--color-night-ink); padding-block: var(--section-gap-s); }
.how .link-button { color: var(--color-night-ink); }
.how .link-button:hover { color: var(--color-night-muted); }
.how .link-button:focus-visible { outline-color: var(--color-focus-night); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-rows: auto auto auto 1fr; gap: var(--space-md); padding: var(--space-xl); background: var(--color-night-2); border-radius: var(--radius-card); transition: translate var(--dur-short) var(--ease-out); }
.step:hover { translate: 0 -4px; }
.step h2 { font-size: var(--text-2xl); max-width: 18ch; color: var(--color-night-ink); }
.step p { color: var(--color-night-muted); max-width: 44ch; }
.step__num { font-weight: 900; font-size: var(--text-3xl); line-height: 1; color: var(--color-night-muted); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.step__object { align-self: end; margin: var(--space-sm) 0 0; }
.step .shot img { width: min(380px, 100%); border-radius: var(--radius-card); }

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; }
.figures div { display: grid; gap: var(--space-xs); justify-items: start; }
.strip { width: 64px; height: 150px; border-radius: 6px; }
.figures dd { margin: 0; font-weight: 900; font-size: var(--text-2xl); line-height: 1; letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures dd span:not([data-count]) { font-size: var(--text-md); font-weight: 700; font-variant-numeric: tabular-nums; }
.figures dt { order: 3; color: var(--color-night-muted); font-size: var(--text-sm); }

.clear-demo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-lg); align-items: start; }
.clear-lcd { width: 180px; height: 126px; border-radius: 6px; }
.points { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.points caption { text-align: start; font-size: var(--text-sm); color: var(--color-night-muted); padding-bottom: var(--space-xs); }
.points th, .points td { text-align: start; padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-night-rule); font-weight: 600; }
.points thead th { font-size: var(--text-sm); color: var(--color-night-muted); }
.points td { font-weight: 900; font-size: var(--text-xl); text-align: end; }
.points thead th:last-child { text-align: end; }
.points tr[aria-current="true"] th, .points tr[aria-current="true"] td { background: var(--color-accent); color: var(--color-accent-ink); }

/* ------------------------------------------------------------------ facts: a spec sheet */
.facts-section { padding-block: var(--section-gap-s); }
.facts-section h2, .pro h2, .faq h2 { font-size: var(--text-section); margin-bottom: var(--space-2xl); max-width: 16ch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; }
.facts div { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-md); border-top: 3px solid var(--color-ink); }
.facts dt { font-weight: 900; font-size: var(--text-title); letter-spacing: var(--tracking-display); }
.facts dd { margin: 0; color: var(--color-ink-2); }

/* ------------------------------------------------------------------ Pro */
.pro { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.pro__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.pro__head h2 { margin-bottom: 0; }
.pro__head p { color: var(--color-ink-2); font-size: var(--text-lead); max-width: 48ch; }
.pro__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0 0 var(--space-2xl); padding: 0; list-style: none; }
.pro__tiles li { display: grid; gap: var(--space-2xs); padding: var(--space-lg); background: var(--color-paper-3); border-radius: var(--radius-card); transition: translate var(--dur-short) var(--ease-out); }
.pro__tiles li:hover { translate: 0 -4px; }
.pro__figure { font-weight: 900; font-size: var(--text-display-s); line-height: 1; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.pro__tiles span:last-child { color: var(--color-ink-2); }
.pro__try { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gap-columns); align-items: center; }
.pro figure { margin: 0; }
.pieces { display: block; width: 100%; height: auto; max-width: 880px; border-radius: var(--radius-card); }
.pieces-caption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

.picker { display: grid; gap: var(--space-sm); justify-items: start; }
.picker__label { margin: 0; font-weight: 800; }
.picker__label span { color: var(--color-accent); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.swatch { width: 44px; height: 44px; padding: 0; border: 3px solid var(--color-paper-3); border-radius: 50%; cursor: pointer; background: linear-gradient(135deg, var(--a) 0 55%, var(--b) 55% 100%); box-shadow: 0 0 0 1px var(--color-rule); transition: translate var(--dur-micro) var(--ease-out); }
.swatch:hover { translate: 0 -2px; }
.swatch:active { translate: 0 1px; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--color-ink); }
.swatch:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.swatch:disabled { cursor: not-allowed; opacity: 0.5; }
.segmented { display: inline-flex; padding: var(--space-2xs); background: var(--color-paper-2); border-radius: var(--radius-pill); }
.segmented button { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); font: 700 var(--text-sm) var(--font-body); cursor: pointer; }
.segmented button:hover { color: var(--color-ink); }
.segmented button:active { color: var(--color-accent); }
.segmented button[aria-checked="true"] { background: var(--color-paper-3); color: var(--color-ink); box-shadow: var(--shadow-chip); }
.segmented button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.segmented button:disabled { cursor: not-allowed; opacity: 0.5; }

/* ------------------------------------------------------------------ questions */
.faq { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.faq h3 { font-size: var(--text-title); margin-bottom: var(--space-xs); }
.faq p { color: var(--color-ink-2); max-width: 46ch; }

/* ------------------------------------------------------------------ close: the stage again */
.close { position: relative; isolation: isolate; overflow: clip; padding-block: var(--section-gap) var(--section-gap-s); text-align: center; border-top: var(--rule-hair) solid var(--color-rule); }
.close .ghost { inset: auto 0 16%; }
.close__title { margin: 0 auto var(--space-xl); font-size: var(--text-display); max-width: 14ch; }
.close__action { display: grid; justify-items: center; gap: var(--space-sm); }

/* ------------------------------------------------------------------ about page */
.about { padding-block: var(--space-2xl) var(--section-gap-s); display: grid; gap: var(--space-2xl); }
.about h1 { font-size: var(--text-section); max-width: 18ch; }
.about h2 { font-size: var(--text-title); margin-bottom: var(--space-sm); }
.about__app { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; }
.about__app div { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-md); border-top: 3px solid var(--color-ink); }
.about__app dt { font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.about__app dd { margin: 0; font-weight: 700; }
.about section { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.about ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-sm); }
.about a { color: var(--color-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.about a:hover { color: var(--color-accent); }
.about__links li a { display: inline-block; padding-block: var(--space-2xs); }
.about__credits li { display: grid; gap: var(--space-3xs); }
.about__role { font-size: var(--text-sm); color: var(--color-muted); }
.about__licence { font-size: var(--text-sm); }
@media (max-width: 48rem) { .about__app { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ privacy and support */
.legal { max-width: 46rem; padding-block: var(--space-xl) var(--section-gap-s); }
.legal nav { font-size: var(--text-sm); margin-bottom: var(--space-lg); color: var(--color-muted); }
.legal h1 { font-size: var(--text-section); margin-bottom: var(--space-xs); }
.legal h2 { font-size: var(--text-2xl); margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.legal h3 { font-size: var(--text-lg); margin-top: var(--space-lg); margin-bottom: var(--space-2xs); line-height: 1.25; letter-spacing: 0; }
.legal p { margin: var(--space-xs) 0; color: var(--color-ink-2); }
.legal .meta { font-size: var(--text-sm); color: var(--color-muted); }
.legal a { color: var(--color-ink); text-underline-offset: 3px; }
.legal a:hover { color: var(--color-accent); }

/* ------------------------------------------------------------------ cookie consent (GA4, 2026-11-28) */
/* Bottom of the screen, above everything; Accept and Reject have the same look and size. */
.consent { position: fixed; inset-inline: var(--space-md); bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); z-index: calc(var(--z-modal) + 1); max-width: 44rem; margin-inline: auto; display: grid; gap: var(--space-sm); padding: var(--space-md); border-radius: var(--radius-card); box-shadow: var(--shadow-menu); background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-sm); line-height: 1.5; }
.consent[hidden] { display: none; }
.consent p { margin: 0; max-width: none; }
.consent a { color: var(--color-ink); text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: flex-end; }
.consent__actions .btn { min-height: 44px; flex: 1 1 8rem; }
@media (min-width: 40rem) { .consent__actions .btn { flex: 0 0 auto; min-width: 9rem; } }
.consent-open .lang-suggest { bottom: calc(var(--space-md) * 2 + var(--consent-h, 0px) + env(safe-area-inset-bottom)); }
.footer__link { padding: var(--space-3xs) 0; border: 0; background: none; color: var(--color-ink); font: inherit; cursor: pointer; text-align: start; }
.footer__link:hover { color: var(--color-accent); }
.legal .footer__link { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Pro in the hero (2026-11-28, option A): in the right column above the facts on wide screens, under the console on narrow ones. */
.hero-pro { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; justify-items: end; text-align: end; margin-top: var(--space-xl); max-width: 22rem; }
.hero-pro__head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-xs); font-weight: 900; font-size: var(--text-title); letter-spacing: var(--tracking-display); }
.hero-pro__head a { color: var(--color-ink); text-decoration: none; }
.hero-pro__head a:hover { color: var(--color-accent); }
.hero-pro .swatches { justify-content: flex-end; }
/* Wide screens (mouse): smaller swatches so all seven fit one row; phones keep the 44 px touch size. */
@media (min-width: 64.01rem) { .hero-pro .swatches { flex-wrap: nowrap; gap: var(--space-2xs); } .hero-pro .swatch { width: 36px; height: 36px; flex: none; } }
.stage-hero__specs { grid-column: 3; grid-row: 1; }
.pro-tag { display: inline-block; margin: 0 0 var(--space-xs); padding: var(--space-3xs) var(--space-sm); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-paper-3); font-size: var(--text-sm); font-weight: 800; letter-spacing: 0; }
.hero-pro__head .pro-tag { margin: 0; }
.pro__head .pro-tag { margin: 0 0 0 var(--space-xs); vertical-align: middle; color: var(--color-paper-3); font-size: var(--text-sm); line-height: 1.5; letter-spacing: 0; }
.pro__pieces { margin-top: var(--space-lg); }

/* ------------------------------------------------------------------ footer */
.footer { padding-block: var(--space-3xl) var(--space-xl); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: var(--space-xl) var(--gap-columns); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__head { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0; color: var(--color-muted); margin-bottom: var(--space-sm); }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); }
.footer li a { color: var(--color-ink); text-decoration: none; display: inline-block; padding-block: var(--space-3xs); white-space: nowrap; }
.footer li a:hover { color: var(--color-accent); }
.footer li a:active { color: var(--color-accent-deep); }
.footer .langs { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: var(--space-xl); }
.footer__legal { grid-column: 1 / -1; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); max-width: none; }
.footer__brand { display: grid; gap: var(--space-xs); align-content: start; }
.footer__brand p { color: var(--color-muted); max-width: 30ch; }

/* ------------------------------------------------------------------ reveal (game.js adds .js and marks only what is still below the fold) */
.js .pre-reveal { opacity: 0; translate: 0 32px; }
.revealed { opacity: 1; translate: 0 0; transition: opacity var(--dur-long) var(--ease-out), translate var(--dur-long) var(--ease-out); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 64rem) {
  .stage-hero { grid-template-columns: minmax(0, 1fr); align-items: start; justify-items: center; gap: var(--space-lg); min-height: 0; padding-block: var(--space-lg) var(--space-2xl); }
  .ghost { display: none; }
  .stage-hero__text { text-align: center; justify-items: center; padding-bottom: 0; }
  .stage-hero h1 { max-width: 14ch; }
  .stage-hero__specs { order: 3; grid-auto-flow: column; justify-items: center; text-align: center; gap: var(--space-xl); padding-bottom: 0; }
  .hero-pro, .stage-hero__specs { grid-column: auto; grid-row: auto; }
  .hero-pro { order: 2; justify-self: center; justify-items: center; text-align: center; margin-top: 0; max-width: none; }
  .hero-pro__head, .hero-pro .swatches { justify-content: center; }
  .hero-pro .swatches { gap: var(--space-2xs); flex-wrap: nowrap; }
}
/* Very narrow screens (under 360 px): the seven 44 px swatches wrap instead of running off the edge. */
@media (max-width: 22.4rem) {
  .hero-pro .swatches { flex-wrap: wrap; }
  .console-figure { width: min(100%, 400px); }
  .keys { justify-content: center; }
  .stage-hero__actions { flex-wrap: wrap; width: auto; justify-content: center; }
  .steps, .faq__list, .pro__head, .pro__try { grid-template-columns: minmax(0, 1fr); }
  .facts, .pro__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .nav .btn { display: none; }
  .step { padding: var(--space-lg); }
  .figures { gap: var(--space-sm); }
  .strip { width: 52px; height: 122px; }
  .clear-demo { grid-template-columns: minmax(0, 1fr); }
  .clear-lcd { width: 100%; height: auto; aspect-ratio: 10 / 7; }
  .footer { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .swatch, .step, .pro__tiles li { transition: none; }
  .btn:hover, .btn:active, .swatch:hover, .swatch:active, .step:hover, .pro__tiles li:hover { translate: 0 0; }
  .js .pre-reveal { opacity: 1; translate: 0 0; }
}
