/* Ludator. A printed plate: ultramarine and vermilion fields, bone marble, ink black and steel.
   Display: Cinzel (inscriptional capitals). Text: Hanken Grotesk. Labels: JetBrains Mono. All OFL, self-hosted.
   Layers, bottom to top: section fields and backdrops (z 0) · the sand canvas (z 1) · copy (z 2) · header · grain. */
@font-face { font-family: Cinzel; src: url("/assets/09941fb1c169/fonts/cinzel-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/e9201eddf1d4/fonts/hanken-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/assets/bb432642d7e9/fonts/hanken-italic-latin.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/83c005d49d8a/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --sky: #0c3584; --sky-deep: #0a1f57; --night: #0b1d4f;
  --red: #d01a14; --red-deep: #8f0c09; --red-hi: #f2553e;
  --bone: #ece3d4; --bone-2: #d3c4b1; --bone-3: #a39380; --paper: #efe7d9;
  --ink: #141112; --ink-2: #2b2526; --steel: #b4b9c0;
  --display: Cinzel, "Trajan Pro", "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --fg: var(--bone); --bg: var(--sky); --muted: rgba(236, 227, 212, .74); --line: rgba(236, 227, 212, .3); --accent: var(--red);
  /* The reading surface (sheets, account and legal pages, forms): paper in the light theme, ink in the dark one.
     The plates keep their own fields in both: they are the art. */
  --page: var(--paper); --page-fg: var(--ink); --page-muted: #5f5650; --page-line: rgba(20, 17, 18, .18); --page-rule: var(--ink);
  --page-field: #f7f2e9; --page-accent: var(--red); --page-warn: var(--red-deep);
  color-scheme: light;
}
/* Dark theme: the visitor's choice (data-theme, set before the first paint by boot.js), else the system's. */
html[data-theme="dark"] {
  --page: #141112; --page-fg: var(--bone); --page-muted: rgba(236, 227, 212, .74); --page-line: rgba(236, 227, 212, .2);
  --page-rule: rgba(236, 227, 212, .5); --page-field: #1e1a1b; --page-accent: var(--red-hi); --page-warn: #ff8f7a;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html.no-js {
    --page: #141112; --page-fg: var(--bone); --page-muted: rgba(236, 227, 212, .74); --page-line: rgba(236, 227, 212, .2);
    --page-rule: rgba(236, 227, 212, .5); --page-field: #1e1a1b; --page-accent: var(--red-hi); --page-warn: #ff8f7a;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sky); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
body { margin: 0; min-height: 100vh; color: var(--fg); background: var(--sky); font: 400 clamp(16px, .9vw + 10px, 19px)/1.6 var(--sans); overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; }
p { margin: 0 0 1em; text-wrap: pretty; }
code { font-family: var(--mono); font-size: .86em; overflow-wrap: anywhere; }
/* Checksums and commands: the block scrolls inside the column, the page never does. */
pre { max-width: 100%; overflow-x: auto; margin: 1em 0; padding: 12px 14px; border: 1px solid currentColor; border-radius: 6px; opacity: .92; }
pre code { overflow-wrap: normal; white-space: pre; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .86rem; }

/* ---- Fields ------------------------------------------------------------------------------------ */
.sky-blue { --bg: var(--sky); }
.sky-deep { --bg: var(--sky-deep); }
.sky-night { --bg: var(--night); }
.sky-forest { --bg: #0f3d33; }
/* On vermilion the bone is lifted almost to white so small text keeps AA contrast. */
.sky-red { --bg: var(--red); --fg: #fff4e8; --accent: var(--ink); --muted: rgba(255, 244, 232, .92); --line: rgba(255, 244, 232, .5); }
.sky-paper { --bg: var(--paper); --fg: var(--ink); --muted: #5f5650; --line: rgba(20, 17, 18, .18); --accent: var(--red); }
.sheet { --bg: var(--page); --fg: var(--page-fg); --muted: var(--page-muted); --line: var(--page-line); --accent: var(--page-accent); }
/* A game without a plate yet is a poster of type in its own colours (set by site.js from data-ink and data-glow). */
.plate:not([data-scene]) { --bg: var(--ink-game, var(--sky-deep)); }
.plate:not([data-scene]) .title { color: var(--glow-game, var(--bone)); }

/* ---- The sand canvas and the grain --------------------------------------------------------------- */
/* One fixed canvas draws every section's sculpture (sand.js) in its art box; it lies over the fields and under the copy. */
#sand { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; display: none; }
.sand-live #sand { display: block; }
.sky-ink { --bg: #141112; }
.grain { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .2; background-size: 240px 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .4 0 0 0 0 .38 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.site-header, .consent, .sheet, .band-head, .crumbs { position: relative; z-index: 2; }

/* ---- Header ------------------------------------------------------------------------------------ */
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--ink); padding: .5em 1em; z-index: 50; }
.skip:focus { left: 8px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; color: var(--bone); transition: color .5s var(--ease), background-color .5s var(--ease); }
html[data-tone="dark"] .site-header, html:not([data-tone]) .reading .site-header { color: var(--ink); }
html[data-theme="dark"]:not([data-tone]) .reading .site-header { color: var(--bone); }
.site-header.scrolled { background: var(--header-bg, transparent); }
.bar { margin: 0 auto; padding: 16px var(--gutter); display: flex; align-items: center; gap: clamp(14px, 3vw, 44px); }
.brand { display: inline-flex; align-items: center; gap: .6em; color: inherit; text-decoration: none; }
.brand .mark { width: auto; height: 34px; flex: none; }
.brand .wordmark { width: auto; height: .74rem; flex: none; }
/* Footer: the stacked lockup, in its brand proportions (wordmark 1.9 x the symbol's width, 15 % of its height below). */
.fbrand .brand { flex-direction: column; align-items: center; gap: 14px; }
.fbrand .brand .mark { height: 96px; }
.fbrand .brand .wordmark { height: 11px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: clamp(16px, 2.6vw, 38px); margin: 0; padding: 0; }
.nav a { font: 500 .72rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: inherit; text-decoration: none; padding: .8em 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .3em; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--out); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.play { font: 600 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: inherit; text-decoration: none; padding: .9em 1.2em; border: 1.5px solid currentColor; white-space: nowrap; transition: background-color .3s, color .3s; }
.play:hover { background: var(--bone); color: var(--ink); }
html[data-tone="dark"] .play:hover { background: var(--ink); color: var(--bone); }
.acct { display: inline-flex; align-items: center; gap: .6em; margin-left: clamp(16px, 2.6vw, 38px); margin-right: 14px; color: inherit; text-decoration: none; font: 500 .72rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.acct-mark { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-content: center; font: 700 .72rem/1 var(--mono); letter-spacing: 0; transition: background-color .3s, color .3s; }
.acct:hover .acct-mark, .acct[data-signed-in] .acct-mark { background: currentColor; }
.acct:hover .acct-mark svg { color: var(--header-bg, var(--ink)); }
.acct[data-signed-in] .acct-mark span { color: var(--header-bg, var(--ink)); }
.acct[aria-current] .acct-label { text-decoration: underline; text-underline-offset: .5em; }
/* Language: a small globe menu in the bar (every page exists in every language at ?lang=xx). */
.lang-menu { position: relative; margin-left: clamp(16px, 2.6vw, 38px); }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 .2em; font: 500 .72rem/1 var(--mono); letter-spacing: .18em; color: inherit; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px 0; min-width: 11.5em; background: var(--ink); color: var(--bone); border: 1px solid rgba(236, 227, 212, .2); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.lang-menu a { display: block; padding: .62em 1.1em; color: inherit; text-decoration: none; font-size: .92rem; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(236, 227, 212, .1); outline: none; }
.lang-menu a[aria-current] { color: var(--red-hi); font-weight: 600; }
.lang-menu a[aria-current]::after { content: " ✓"; }
/* Theme: system, light or dark (boot.js applies it before paint; the buttons show once scripts run). */
.theme-choice { display: inline-flex; border: 1.5px solid currentColor; }
.theme-choice[hidden] { display: none; }
.theme-choice button { appearance: none; border: 0; background: none; color: inherit; cursor: pointer; min-height: 36px; padding: 0 .95em; font: 500 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.theme-choice button + button { border-left: 1.5px solid currentColor; }
.theme-choice button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.theme-choice button:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.menu { display: none; }
@media (max-width: 900px) {
  .nav, .play { display: none; }
  .lang-menu { margin-left: auto; }
  .lang-menu summary { min-width: 44px; justify-content: center; }
  .lang-menu summary span { display: none; }
  .acct { margin-left: 8px; margin-right: 12px; }
  .acct-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .acct-mark { width: 40px; height: 40px; }
  .menu { display: block; margin-left: 0; }
  .menu summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-content: center; gap: 7px; border: 1.5px solid currentColor; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .35s var(--out); }
  .menu[open] summary span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu[open] summary span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu-sheet { position: fixed; inset: 78px 0 auto; background: var(--ink); color: var(--bone); padding: 14px var(--gutter) 30px; }
  .menu-sheet ol { list-style: none; margin: 0; padding: 0; }
  .menu-sheet a { display: flex; align-items: baseline; gap: 1em; padding: .5em 0; font: 800 2rem/1.1 var(--display); color: var(--bone); text-decoration: none; border-bottom: 1px solid rgba(236, 227, 212, .16); text-transform: uppercase; }
  .menu-sheet small { font: 500 .7rem var(--mono); color: var(--red-hi); width: 2.6em; letter-spacing: .12em; }
  .menu-prefs { margin-top: 22px; }
}
.crumbs { position: absolute; z-index: 3; top: 82px; left: 0; right: 0; padding: 0 var(--gutter); pointer-events: none; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .7em; margin: 0; padding: 0; font: 500 .66rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--bone); opacity: .8; }
html[data-tone="dark"] .crumbs ol { color: var(--ink); }
.reading .crumbs ol { color: var(--page-fg); }
.crumbs a { color: inherit; text-decoration: none; pointer-events: auto; }
.crumbs li + li::before { content: "/"; margin-right: .7em; opacity: .5; }

/* ---- Type and controls -------------------------------------------------------------------------- */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .9em; font: 500 .72rem/1.4 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.5rem; }
.title { font: 800 clamp(2.7rem, 7.2vw, 7.6rem)/.9 var(--display); letter-spacing: -.005em; text-transform: uppercase; margin: 0 0 .32em; }
.title.long-word { font-size: clamp(2.3rem, 5.6vw, 5.9rem); }
.title { text-wrap: balance; overflow-wrap: break-word; }
.title.t-long { font-size: clamp(2.2rem, 5vw, 5.4rem); }
.title.t-xlong { font-size: clamp(2rem, 4.2vw, 4.6rem); }
/* An age band's badge in the international colours (green 3 and 7, amber 12 and 16, red 18): ludator.com's own mark. */
.age { display: inline-grid; place-items: center; min-width: 2.15em; height: 2.15em; padding: 0 .2em; font: 800 .7rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: #fff; background: var(--age-c); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); vertical-align: middle; }
.age-3, .age-7 { --age-c: #1f7a33; }
.age-12, .age-16 { --age-c: #e8a000; color: #141112; box-shadow: inset 0 0 0 1.5px rgba(20, 17, 18, .55); }
.age-18 { --age-c: #c8102e; }
.age-lg { font-size: 1.45rem; min-width: 2.3em; height: 2.3em; flex: none; }
.line { font: 400 clamp(1.08rem, 1.3vw, 1.34rem)/1.42 var(--sans); max-width: 30ch; margin: 0; }
.status { display: inline-flex; align-items: center; gap: .7em; font: 600 .72rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--fg); }
.status::before { content: ""; width: .62em; height: .62em; background: currentColor; }
.status.dev::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
/* A closed test: half filled, between in development and out. */
.status.closed::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px currentColor; }
.chips { list-style: none; margin: 1.7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font: 500 .74rem/1 var(--mono); letter-spacing: .06em; border: 1.5px solid var(--line); padding: .72em .95em; }
.chips span { color: var(--muted); text-transform: uppercase; letter-spacing: .2em; font-size: .86em; margin-right: .35em; }
.btn { display: inline-flex; align-items: center; gap: .8em; font: 600 .74rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 1.15em 1.5em; border: 1.5px solid currentColor; color: var(--fg); background: transparent; cursor: pointer; transition: transform .35s var(--out), box-shadow .35s var(--out), background-color .3s, color .3s; }
.btn span { transition: transform .35s var(--out); }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 currentColor; }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: none; box-shadow: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--bone); }
.btn.primary:hover { box-shadow: 3px 3px 0 var(--fg); }
.sky-red .btn.primary { background: var(--ink); border-color: var(--ink); }
.sky-paper .btn.primary:hover { box-shadow: 3px 3px 0 var(--ink); }
.sheet .btn.primary:hover { box-shadow: 3px 3px 0 var(--page-fg); }
.btn.ghost { border-color: transparent; padding-inline: .3em; color: var(--muted); }
.btn.ghost:hover { color: var(--fg); box-shadow: none; transform: none; }
.btn.small { padding: .85em 1.1em; font-size: .68rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2.2rem 0 0; }
/* Announced for phones, not in a store yet: a plain line with a hollow mark, never a store badge. */
.soon { display: flex; align-items: center; gap: .7em; margin: 1.3rem 0 0; font: 500 .68rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.soon::before { content: ""; width: .62em; height: .62em; flex: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn small { font: 500 .9em/1 var(--mono); letter-spacing: .06em; opacity: .7; }
/* Download: one block per game, then the launcher. */
.dl-games { list-style: none; margin: 2em 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.prose .dl-game { margin: 0; padding: 1.4em 1.4em 1.5em; border: 1.5px solid var(--page-rule); background: var(--page-field); scroll-margin-top: 90px; }
.dl-game h3 { font: 800 1.5rem/1.05 var(--display); text-transform: uppercase; margin: 0 0 .35em; }
.dl-game h3 .age { margin-left: .5em; font-size: .6rem; vertical-align: .25em; }
.dl-game p { margin: 0; } .dl-game .actions { margin: 1.1rem 0 0; } .dl-game .soon { margin-top: 1.1rem; }

/* ---- Plates ------------------------------------------------------------------------------------- */
/* A plate holds the screen: its backdrop and its copy are two sticky layers in one grid cell, so
   the backdrop can sit under the sand's canvas and the copy over it. */
.plate { position: relative; display: grid; grid-template-columns: 100%; min-height: 100svh; background: var(--bg); color: var(--fg); }
.plate.long { min-height: 118svh; }
.plate-back, .plate-front { grid-area: 1 / 1; position: sticky; top: 0; height: 100svh; }
.plate-back { z-index: 0; overflow: hidden; }
.plate-front { z-index: 2; display: flex; padding: 0 var(--gutter); pointer-events: none; }
.copy { position: relative; pointer-events: auto; }
.plate-art { position: absolute; aspect-ratio: 1; }
/* A slow push-in through a long plate's hold; the sand reads the art box, so the sculpture follows. */
.plate.long .plate-art { scale: calc(1 + var(--p, 0) * .03); transform-origin: 50% 100%; }
/* The hero: every game at once, a grid of cards, each a link to its game. With the sand each card holds its
   game's sculpture, already formed when the page opens (sand.js draws them on the hero's own canvas, under the
   names); without it each card is its field colour with its name. */
.hero { position: relative; z-index: 2; min-height: 100svh; display: flex; align-items: center; padding: 96px var(--gutter) 48px; background: #0d0c0e; color: var(--bone); overflow: hidden;
  --fg: var(--bone); --muted: rgba(236, 227, 212, .7); --line: rgba(236, 227, 212, .3); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; z-index: 1; }
.sand-live .hero-canvas { display: block; }
.hero-copy { position: relative; z-index: 3; width: min(31rem, 38vw); }
.hero-title { font: 800 clamp(2.3rem, 4.5vw, 4.6rem)/.98 var(--sans); letter-spacing: -.035em; text-transform: none; margin: 0 0 .5em; text-wrap: balance; }
.hero-cards { list-style: none; margin: 0; padding: 0; position: absolute; right: var(--gutter); top: 54%; translate: 0 -50%; width: min(54vw, 120svh); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hero-cards:has(> li:nth-child(9)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hero-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); text-decoration: none; }
.hero-art { position: relative; display: block; aspect-ratio: 1; }
/* The card's field lies under the canvas; its name and its edge over it. */
.hero-tag { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: .45em; padding: .6em .7em .7em; background: rgba(8, 7, 9, .5); border-top: 1px solid rgba(236, 227, 212, .12); }
.hero-tag b { font: 700 .74rem/1.2 var(--sans); letter-spacing: .02em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; overflow-wrap: anywhere; }
.hero-tag i { display: flex; align-items: center; justify-content: space-between; gap: .5em; font: 500 .58rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: rgba(236, 227, 212, .78); }
.hero-tag .age { font-size: .58rem; }
.hero-card.sky-paper .hero-tag { background: rgba(20, 17, 18, .06); border-top-color: rgba(20, 17, 18, .14); } .hero-card.sky-paper .hero-tag i { color: rgba(20, 17, 18, .7); }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .4s var(--ease); }
.hero-card:hover::after, .hero-card:focus-visible::after { box-shadow: inset 0 0 0 1.5px rgba(236, 227, 212, .6); }
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: center; gap: clamp(24px, 5svh, 44px); padding: 84px var(--gutter) max(28px, 5svh); }
  .hero-copy { width: 100%; order: 2; }
  .hero-title { font-size: clamp(2rem, 9.5vw, 3rem); }
  .hero-cards { position: relative; order: 1; inset: auto; translate: none; width: 100%; gap: 6px; }
  .hero-cards:has(> li:nth-child(9)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-tag { padding: .5em .5em .55em; gap: .35em; } .hero-tag b { font-size: .62rem; letter-spacing: .01em; } .hero-tag i { font-size: .5rem; letter-spacing: .08em; }
}

/* /instagram: every game on one phone screen, no scrolling. A grid of tiles (the home page's sand cards); a tile opens its sheet by :target. Sized by the window's real height (--ig-h, set by instagram.js for
   in-app browsers that misreport it; the small-viewport unit otherwise). */
.ig-page .site-footer, .ig-page .grain { display: none; }
.ig-page { overflow: hidden; overscroll-behavior: none; background: #0d0c0e; }
.ig { position: relative; z-index: 2; height: var(--ig-h, 100svh); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; padding: 66px 12px calc(max(10px, env(safe-area-inset-bottom)) + var(--ig-bottom, 0px)); transition: padding-bottom .3s var(--out); background: #0d0c0e; color: var(--bone); overflow: hidden;
  --fg: var(--bone); --muted: rgba(236, 227, 212, .72); --line: rgba(236, 227, 212, .3); }
.ig .hero-canvas { pointer-events: none; z-index: 1; }
.ig-page .consent { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); max-width: none; padding: 10px 12px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; z-index: 28; }
.ig-page .consent p { font-size: .7rem; line-height: 1.3; } .ig-page .consent div { flex-direction: column; gap: 6px; } .ig-page .consent .btn { padding: .7em 1.1em; justify-content: center; }
.ig-head { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 4px; }
.ig-head .kicker { margin: 0 0 .5rem; font-size: .62rem; }
.ig-head h1 { font: 800 clamp(1.7rem, 8vw, 2.6rem)/1 var(--sans); letter-spacing: -.035em; text-transform: none; margin: 0; }
/* The pixels make the header's symbol in its own place; the drawn one steps aside once they have. */
.ig-grid { position: relative; list-style: none; margin: 0; padding: 0; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 6px 8px; touch-action: none; }
.ig-grid:has(> li:nth-child(9)) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
.ig-grid li { min-height: 0; min-width: 0; }
.ig-card { height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 6px; text-decoration: none; color: var(--bone); -webkit-tap-highlight-color: transparent; }
.ig-art { position: relative; min-height: 0; height: 100%; aspect-ratio: 1; max-width: 100%; overflow: hidden; background: var(--bg); transition: transform .18s var(--out); }
.ig-card:active .ig-art { transform: scale(.96); }
.ig-name { position: relative; z-index: 2; display: grid; gap: 2px; padding: 0 2px; max-width: 100%; text-align: center; font: 500 .58rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.ig-name b { font-weight: 700; font-size: .66rem; overflow: hidden; text-overflow: ellipsis; } .ig-name i { font-style: normal; opacity: .66; }
.ig-grid:has(> li:nth-child(9)) .ig-name b { white-space: normal; text-wrap: balance; }
.ig-foot { position: relative; z-index: 2; display: flex; justify-content: center; gap: 1.6em; margin: 0; font: 500 .6rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.ig-foot a { color: var(--muted); text-decoration: none; padding: .5em 0; }
@media (min-aspect-ratio: 1/1) { .ig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); } .ig { padding-inline: var(--gutter); } }
@media (min-aspect-ratio: 1/1) { .ig-grid:has(> li:nth-child(9)) { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); } }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) { .ig { padding-top: 62px; gap: 6px; } .ig-head .kicker { display: none; } .ig-head h1 { font-size: 1.25rem; padding-left: 0; } .ig-name i { display: none; } }
@media (max-height: 600px) { .ig-asked .ig-name i, .ig-asked .ig-foot, .ig-asked .ig-head .kicker { display: none; } .ig-asked .ig { gap: 6px; } }
@media (min-width: 900px) { .ig-grid { gap: 16px; max-width: 1100px; width: 100%; margin: 0 auto; } .ig-name { font-size: .7rem; } }
/* The sheet: the game's own field rises over the grid with a little overshoot; its lines follow one by one. */
.ig-sheet { position: fixed; z-index: 30; inset: max(54px, 8svh) 0 0; display: grid; grid-template-rows: minmax(0, 1fr); background: var(--bg); color: var(--fg); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 60px rgba(0, 0, 0, .55);
  visibility: hidden; transform: translateY(104%); transition: transform .34s cubic-bezier(.5, 0, .9, .4), visibility 0s .34s; will-change: transform; }
.ig-sheet:target { visibility: visible; transform: none; transition: transform .56s cubic-bezier(.2, 1.25, .32, 1), visibility 0s; }
.ig-sheets::before { content: ""; position: fixed; z-index: 29; inset: 0; background: rgba(8, 7, 9, .66); opacity: 0; pointer-events: none; transition: opacity .3s; }
.ig-sheets:has(.ig-sheet:target)::before, .ig-open .ig-sheets::before { opacity: 1; }
.ig-close { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 30px; display: grid; place-items: center; background: var(--bg); border-radius: 18px 18px 0 0; color: var(--fg); }
.ig-close span { width: 44px; height: 5px; border-radius: 3px; background: currentColor; opacity: .45; }
.ig-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 34px 18px max(22px, env(safe-area-inset-bottom)); }
.ig-scroll > * { max-width: 34rem; margin-left: auto; margin-right: auto; }
.ig-shot { margin: 0 auto 1.1rem; aspect-ratio: 16 / 9; overflow: hidden; background: rgba(0, 0, 0, .25); border: 1.5px solid var(--line); }
.ig-shot img { width: 100%; height: 100%; object-fit: cover; }
.ig-shot img.ig-plate { object-fit: cover; }
.ig-sheet .kicker { margin-bottom: .7rem; }
.ig-sheet .title { font-size: clamp(2rem, 10vw, 3.2rem); margin-bottom: .3em; }
.ig-sheet .title.long-word { font-size: clamp(1.7rem, 8.4vw, 2.8rem); }
.ig-sheet .line { max-width: none; font-weight: 600; }
.ig-about { margin: 1.4rem auto 0; font-size: .96rem; line-height: 1.5; color: var(--muted); }
.ig-sheet .chips { margin-top: 1rem; }
.ig-where { list-style: none; padding: 0; margin: 1.1rem auto 0; border-top: 1.5px solid var(--line); }
.ig-where li { display: grid; grid-template-columns: 5.2em 1fr; gap: .8em; padding: .7em 0; border-bottom: 1.5px solid var(--line); font-size: .92rem; line-height: 1.35; }
.ig-where b { font: 600 .66rem/1.9 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.ig-sheet .actions { margin-top: 1.3rem; } .ig-sheet .actions .btn { flex: 1 1 100%; justify-content: center; padding-block: 1.25em; }
.ig-note { margin: .9rem auto 0; font-size: .82rem; color: var(--muted); text-align: center; }
.ig-sheet:target .ig-scroll > * { animation: ig-in .5s var(--out) both; }
.ig-sheet:target .ig-scroll > :nth-child(1) { animation: ig-shot .7s var(--out) both; }
.ig-sheet:target .ig-scroll > :nth-child(2) { animation-delay: .1s; } .ig-sheet:target .ig-scroll > :nth-child(3) { animation-delay: .15s; }
.ig-sheet:target .ig-scroll > :nth-child(4) { animation-delay: .2s; } .ig-sheet:target .ig-scroll > :nth-child(5) { animation-delay: .25s; }
.ig-sheet:target .ig-scroll > :nth-child(n+6) { animation-delay: .3s; }
@keyframes ig-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ig-shot { from { opacity: 0; clip-path: polygon(0 0, 0 0, -14% 100%, 0 100%); transform: scale(1.04); } to { opacity: 1; clip-path: polygon(0 0, 114% 0, 100% 100%, 0 100%); transform: none; } }
@media (min-width: 900px) { .ig-sheet { inset: 8svh max(0px, calc(50vw - 380px)) 0; } }
@media (prefers-reduced-motion: reduce) { .ig-sheet, .ig-sheet:target { transition: none; } .ig-sheet:target .ig-scroll > * { animation: none; } }

/* A shelf: one game among others (home, the games index). It is as tall as its content, not a held screen, and
   its art and copy stay within the page's width on wide screens. */
.plate.shelf { min-height: 0; --edge: max(var(--gutter), calc(50vw - 700px)); box-shadow: inset 0 1px 0 rgba(236, 227, 212, .08); }
.plate.shelf .plate-back, .plate.shelf .plate-front { position: relative; height: clamp(440px, 64svh, 620px); }
.plate.shelf .plate-front { padding: 0 var(--edge); }
.at-left.shelf .plate-art, .at-right.shelf .plate-art { height: min(92%, 44vw); }
.at-left.shelf .plate-art { left: calc(var(--edge) - 2vw); }
.at-right.shelf .plate-art { right: calc(var(--edge) - 2vw); }
.plate.shelf .copy { width: min(34rem, 46vw); }
.plate.shelf .title { font-size: clamp(2.1rem, 3.7vw, 3.7rem); margin-bottom: .28em; }
.plate.shelf .title.long-word, .plate.shelf .title.t-long { font-size: clamp(1.9rem, 3.1vw, 3.15rem); }
.plate.shelf .title.t-xlong { font-size: clamp(1.8rem, 2.7vw, 2.75rem); }
.plate.shelf .kicker { margin-bottom: 1.1rem; }
.plate.shelf .chips { margin-top: 1.3rem; }
.plate.shelf .actions { margin-top: 1.5rem; }

/* Games and pages: art to one side, copy to the other. */
.at-left .plate-art, .at-right .plate-art, .at-log .plate-art, .at-contact .plate-art, .at-studio .plate-art { top: 50%; translate: 0 -50%; height: min(80svh, 50vw); aspect-ratio: 1; }
.at-left .plate-art { left: 2vw; }
.at-right .plate-art, .at-log .plate-art, .at-studio .plate-art { right: 2vw; }
.at-contact .plate-art { right: 4vw; }
.at-left .plate-front { justify-content: flex-end; align-items: center; }
.at-right .plate-front, .at-log .plate-front, .at-contact .plate-front, .at-studio .plate-front { align-items: center; }
.at-left .copy, .at-right .copy, .at-log .copy, .at-contact .copy, .at-studio .copy { width: min(36rem, 40vw); }
.dispatches { list-style: none; margin: 1.8rem 0 0; padding: 0; border-top: 1.5px solid var(--line); max-width: 34rem; }
.dispatches a { display: grid; grid-template-columns: 9.5em 1fr; gap: 1em; padding: 1em 0; border-bottom: 1.5px solid var(--line); text-decoration: none; transition: padding .35s var(--out); }
.dispatches a:hover { padding-left: .5em; }
.dispatches time { font: 500 .7rem/1.7 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dispatches span { font: 600 1.06rem/1.3 var(--sans); }
.mail-line { font: 700 clamp(1.3rem, 2.4vw, 2.1rem)/1.2 var(--display); letter-spacing: .02em; margin: .2em 0 0; overflow-wrap: anywhere; }
.mail-line a { text-decoration-thickness: 2px; text-underline-offset: .22em; }

@media (max-width: 900px) {
  .plate-back, .plate-front { height: 100svh; }
  .plate .plate-art { left: 50%; right: auto; top: max(68px, 9svh); bottom: auto; translate: -50% 0; width: min(92vw, 50svh); height: auto; }
  .plate-front, .at-left .plate-front, .at-right .plate-front, .at-log .plate-front, .at-contact .plate-front, .at-studio .plate-front { align-items: flex-end; justify-content: flex-start; padding-bottom: max(24px, 5svh); }
  .copy, .at-hero .copy, .at-left .copy, .at-right .copy, .at-log .copy, .at-contact .copy, .at-studio .copy { width: 100%; }
  .copy::before { content: ""; position: absolute; inset: -16svh calc(-1 * var(--gutter)) calc(-1 * max(24px, 5svh)); z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg) 34%); pointer-events: none; }
  .title { font-size: clamp(2.4rem, 12vw, 4.4rem); }
  .title.long-word { font-size: clamp(2rem, 10.5vw, 4rem); }
  .title.t-long { font-size: clamp(2rem, 9.6vw, 3.6rem); }
  .title.t-xlong { font-size: clamp(1.8rem, 8.4vw, 3.2rem); }
  /* A shelf on a phone: the sculpture over the copy, no held screen. */
  .plate.shelf { grid-template-rows: auto auto; }
  .plate.shelf .plate-back { grid-area: 1 / 1; height: min(84vw, 44svh); }
  .plate.shelf .plate-front { grid-area: 2 / 1; height: auto; padding: 0 var(--gutter) 52px; }
  .plate.shelf .plate-art, .at-left.shelf .plate-art, .at-right.shelf .plate-art { top: 50%; left: 50%; right: auto; translate: -50% -50%; width: auto; height: 100%; }
  .plate.shelf .copy { width: 100%; }
  .plate.shelf .copy::before { display: none; }
  .plate.shelf .title { font-size: clamp(2rem, 9.6vw, 3rem); }
  .plate.shelf .title.long-word, .plate.shelf .title.t-long { font-size: clamp(1.8rem, 8.2vw, 2.6rem); }
  .plate.shelf .title.t-xlong { font-size: clamp(1.6rem, 7.2vw, 2.3rem); }
  .actions { margin-top: 1.5rem; }
  .btn { padding: 1.05em 1.25em; }
}

/* ---- Bands and sheets ----------------------------------------------------------------------------- */
.band-head { background: var(--bg); color: var(--fg); padding: clamp(130px, 22vh, 220px) var(--gutter) clamp(40px, 8vh, 90px); }
.sheet { background: var(--page); color: var(--page-fg); padding: clamp(64px, 12vh, 140px) var(--gutter) clamp(72px, 14vh, 160px); }
.sheet.narrow { padding-top: clamp(130px, 22vh, 220px); }
.sheet-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 340px); gap: clamp(32px, 6vw, 110px); align-items: start; }
.sheet-more { max-width: var(--max); margin: clamp(56px, 10vh, 110px) auto 0; }
@media (max-width: 900px) { .sheet-grid { grid-template-columns: 1fr; } }
.prose { max-width: 42rem; }
.narrow .prose { margin: 0 auto; }
.prose .lede, .lede { font: 500 clamp(1.2rem, 1.7vw, 1.55rem)/1.45 var(--sans); }
.prose h1 { font-size: clamp(1.9rem, 5.6vw, 4.6rem); text-transform: uppercase; font-weight: 800; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-top: 1.7em; text-transform: uppercase; font-weight: 800; }
.prose ul { padding-left: 1.2em; } .prose li { margin: .45em 0; } .prose li::marker { color: var(--page-accent); }
.prose blockquote { margin: 1.6em 0; padding: .1em 0 .1em 1.2em; border-left: 3px solid var(--page-accent); font: italic 500 1.24em/1.45 var(--sans); }
.prose blockquote footer { font: 500 .7rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .6em; }
.prose a { text-decoration-color: var(--page-accent); }
.h-small { font: 600 .72rem/1.4 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--page-accent); margin: 0 0 1em; }
.spec { position: sticky; top: 100px; border-top: 3px solid var(--page-rule); padding-top: 1.2em; }
.spec dl { margin: 0; }
.rating { margin: 0 0 2.2em; padding: 1.1em 1.1em 1em; border: 1.5px solid var(--page-rule); background: var(--page-field); }
.spec .rating .h-small { margin-bottom: .9em; }
.rating-head { display: flex; align-items: flex-start; gap: .9em; margin: 0; }
.spec .rating-head p { margin: 0; display: grid; gap: .25em; }
.rating-head b { font-weight: 700; font-size: 1.12rem; line-height: 1.2; }
.rating-head p span { font-size: .86rem; line-height: 1.45; color: var(--muted); }
.rating h3 { font: 500 .62rem/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 1.2em 0 .5em; }
.rating-list, .rating-official { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.rating-list li { display: flex; align-items: center; gap: .65em; font-size: .92rem; font-weight: 600; }
.rating-list svg { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spec .rating-none, .spec .rating-min { margin: 1em 0 0; font-size: .9rem; font-weight: 600; }
.spec .rating-note { margin: 1.1em 0 0; font-size: .74rem; line-height: 1.5; color: var(--muted); }
.spec .rating div { padding: 0; border: 0; }
.spec div { padding: .8em 0; border-bottom: 1.5px solid var(--line); }
.spec dt { font: 500 .64rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: .3em 0 0; font-weight: 600; }
.spec p { margin: 0 0 1.4em; }
.spec .h-small + p, .spec p + .h-small { margin-top: 0; }
.mail { font-weight: 700; }
.game-lines { list-style: none; padding: 0; margin: 0 0 2em; }
.game-lines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4em 1em; padding: 1em 0; border-bottom: 1.5px solid var(--line); }
.game-lines a { font: 800 1.5rem/1.1 var(--display); text-transform: uppercase; text-decoration: none; }
.game-lines .status { color: var(--page-fg); }

/* Devlog */
.post-list { display: grid; gap: 16px; margin-top: 1.4em; }
.post-list.wide { max-width: var(--max); margin: 0 auto; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.post-card a { display: block; height: 100%; padding: 1.5em 1.5em 1.6em; border: 1.5px solid var(--page-rule); text-decoration: none; background: var(--page); transition: transform .35s var(--out), box-shadow .35s var(--out); }
.post-card a:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--red); }
.post-card h3 { margin: .5em 0 .45em; font-size: clamp(1.3rem, 1.8vw, 1.7rem); text-transform: uppercase; font-weight: 800; }
.post-card p { margin: 0; color: var(--muted); }
.post-card .meta, .post .meta { display: flex; flex-wrap: wrap; gap: .4em 1.1em; font: 500 .68rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--page-accent); }
.post-card .about { margin-top: 1em; font: 500 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post { padding-top: clamp(130px, 20vh, 200px); }
.post > * { max-width: 46rem; margin-left: auto; margin-right: auto; }
.post-head h1 { font-size: clamp(1.9rem, 5.4vw, 4.6rem); text-transform: uppercase; font-weight: 800; margin-bottom: .35em; }
.post .meta { color: var(--muted); margin-top: 1.4em; }
.post .prose { margin-top: 3em; font-size: 1.08em; }
.prose .post-image { margin: 1.25em 0; }
.post-image img { width: 100%; height: auto; border: 1.5px solid var(--page-rule); }
.post-image figcaption { font: 500 .68rem var(--mono); color: var(--muted); margin-top: .6em; letter-spacing: .1em; }
.prose ul.shots, ul.shots { list-style: none; margin: 1.25em 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.prose ul.shots li, ul.shots li { margin: 0; } ul.shots figure { margin: 0; } ul.shots a { display: block; }
ul.shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1.5px solid var(--page-rule); }
ul.shots figcaption { font: 500 .68rem var(--mono); color: var(--muted); margin-top: .6em; letter-spacing: .1em; }
@media (max-width: 560px) { .prose ul.shots, ul.shots { grid-template-columns: 1fr; } }
.related, .corrections { margin-top: 3em; padding-top: 1.4em; border-top: 1.5px solid var(--line); }
.related ul, .corrections ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7em; }
.related li { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.related .status { color: var(--page-fg); }

/* Contact */
.contact-form { display: grid; gap: 1.15em; }
.contact-form label { display: grid; gap: .5em; }
.contact-form label > span { font: 500 .68rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-form small { text-transform: none; letter-spacing: 0; }
input, select, textarea { font: inherit; color: var(--page-fg); background: var(--page-field); border: 1.5px solid var(--page-rule); border-radius: 0; padding: .85em 1em; min-height: 50px; width: 100%; transition: box-shadow .25s; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--red); }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 1.2em 1.4em; border: 1.5px solid var(--page-rule); background: var(--page-field); }
.notice.bad { border-color: var(--page-accent); color: var(--page-warn); }
/* LUDATOR account pages (/account) */
.account h2 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.account h3 { font: 700 1rem/1.3 var(--sans); margin: 1.6em 0 .6em; text-transform: uppercase; letter-spacing: .06em; }
.account .contact-form { margin: 1em 0 1.4em; }
.account .contact-form.inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.account .contact-form.inline label:nth-of-type(2) { grid-column: 1; }
@media (min-width: 640px) { .account .contact-form.inline:has(label:nth-of-type(2)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .account .contact-form.inline label:nth-of-type(2) { grid-column: auto; } }
.acct-list { list-style: none; padding: 0 !important; margin: .8em 0 1.2em; border-top: 1.5px solid var(--line); }
.acct-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em 1em; padding: .8em 0; margin: 0 !important; border-bottom: 1.5px solid var(--line); }
.acct-list li::marker { content: none; }
.acct-list span { color: var(--muted); font-size: .92em; }
.acct-list form { margin-left: auto; }
.btn.danger { border-color: var(--page-accent); color: var(--page-warn); }
.notice.good h2 { font-size: 2rem; text-transform: uppercase; }
.notice.closed-test { margin-bottom: 1.6em; }
.notice.closed-test h2 { margin-top: 0; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; }
.steps-list { padding-left: 1.2em; }
.steps-list li { margin: .35em 0; }
.preview-flag { position: fixed; z-index: 30; left: 50%; top: 84px; transform: translateX(-50%); padding: .6em 1.2em; background: var(--bone); color: var(--ink); font: 600 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.reading { background: var(--page); }

/* ---- Footer --------------------------------------------------------------------------------------- */
/* The footer's field lies under the sand canvas (it has no z-index) so the wordmark can be set in sand; its
   shards; its links and fine print sit above the canvas. */
.site-footer { position: relative; background: var(--ink); color: var(--bone); overflow: hidden; border-top: 3px solid var(--red); }
.site-footer > .fgrid, .site-footer > .fine { position: relative; z-index: 2; }
.fgrid { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 10vh, 110px) var(--gutter) 24px; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }
.fbrand p { margin-top: 1.4em; }
.fbrand .fline { max-width: 16em; color: var(--bone-3); font-size: .92rem; margin-bottom: 0; }
.fbrand .fline + p { margin-top: .6em; }
.fcol h2 { font: 600 .68rem var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--red-hi); margin: .6em 0 1.2em; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.fcol a, .fbrand a { text-decoration: none; }
.fcol a:hover, .fbrand a:hover { text-decoration: underline; text-decoration-color: var(--red-hi); }
.fine { border-top: 1px solid rgba(236, 227, 212, .14); }
.prefs { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 6px; display: flex; flex-wrap: wrap; gap: 18px 44px; align-items: center; border-top: 1px solid rgba(236, 227, 212, .14); }
.pref { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pref > span { font: 600 .68rem var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--red-hi); }
.pref-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.pref-langs a { display: inline-block; padding: .4em 0; text-decoration: none; color: var(--bone-3); font-size: .9rem; }
.pref-langs a:hover { color: var(--bone); text-decoration: underline; text-decoration-color: var(--red-hi); }
.pref-langs a[aria-current] { color: var(--bone); text-decoration: underline; text-decoration-color: var(--red-hi); text-underline-offset: .4em; }
@media (max-width: 900px) {
  .fgrid { gap: 26px 18px; padding-top: 48px; }
  .fbrand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
  .fbrand .brand { flex-direction: row; gap: 12px; } .fbrand .brand .mark { height: 40px; } .fbrand .brand .wordmark { height: 10px; }
  .fbrand p { margin: 0; } .fbrand .fline { flex: 1 1 100%; } .fbrand .fline + p { margin: 0; }
  .fcol h2 { margin: 0 0 .9em; }
  .fcol ul { gap: .1em; } .fcol a { display: inline-block; padding: .42em 0; }
  .fine { flex-direction: column; gap: 8px; padding-bottom: max(26px, env(safe-area-inset-bottom)); }
}
.fine { position: relative; max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 500 .68rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--bone-3); }
.fine a { color: inherit; }

/* ---- Consent ----------------------------------------------------------------------------------------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 45; max-width: 540px; margin-left: auto; padding: 18px 20px; display: grid; gap: 12px; background: var(--ink); color: var(--bone); border: 1.5px solid var(--bone); --fg: var(--bone); --muted: var(--bone-3); }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: .92rem; } .consent div { display: flex; gap: 10px; }

/* ---- Motion ------------------------------------------------------------------------------------------ */
/* Copy in later plates rises into place when its plate arrives. */
.js .plate:not(.at-hero) .copy > * { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--out), transform .45s var(--out); }
.js .plate.in .copy > * { opacity: 1; transform: none; }
.js .plate.in .copy > :nth-child(2) { transition-delay: .07s; } .js .plate.in .copy > :nth-child(3) { transition-delay: .14s; }
.js .plate.in .copy > :nth-child(4) { transition-delay: .21s; } .js .plate.in .copy > :nth-child(5) { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .js .plate:not(.at-hero) .copy > * { opacity: 1; transform: none; } }

/* The account page's head: the account's initial, its address and a one-line summary. */
.acct-head { display: flex; align-items: center; gap: 18px; margin: 8px 0 22px; }
.acct-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center; background: var(--red, #d01a14); color: var(--bone, #ece3d4); font: 700 1.6rem/1 var(--mono); }
.acct-email { margin: 0 0 4px; font-size: 1.15rem; font-weight: 600; overflow-wrap: anywhere; }

/* Achievements on the account page: progress bar, earned and locked rows. Bar widths come from data-w (CSP: no inline styles). */
.ach-bar { height: 6px; background: var(--line, rgba(0,0,0,.15)); margin: 6px 0 12px; position: relative; overflow: hidden; }
.ach-bar span { position: absolute; inset: 0 auto 0 0; background: var(--red); width: var(--w, 0%); }
.ach-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ach-list li { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line, rgba(0,0,0,.15)); }
.ach-list li.got { border-left: 4px solid var(--page-accent); }
.ach-list li.locked { opacity: .62; }
.ach-list small { font: 500 .7rem/1.4 var(--mono); letter-spacing: .06em; }
.badge-new { color: var(--page-accent); }
.thread { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.thread li { padding: 12px 14px; border: 1px solid var(--line, rgba(0,0,0,.15)); }
.thread li.from-support { border-left: 4px solid var(--page-accent); }
.thread li p { margin: 0 0 4px; overflow-wrap: anywhere; }

/* ---- Account sections (Steam-style): a menu beside the page on a computer, a row of tabs on a phone ---- */
.acct-layout { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.acct-layout > * { min-width: 0; }
.acct-nav { position: sticky; top: 96px; }
.acct-main > .notice { margin-bottom: 22px; }
.acct-nav .acct-head { margin: 0 0 18px; gap: 14px; }
.acct-nav .acct-avatar { width: 48px; height: 48px; font-size: 1.2rem; }
.acct-nav .acct-email { font-size: 1rem; }
.acct-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line); }
.acct-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border-bottom: 1.5px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 500; }
.acct-nav a:hover { background: var(--page-field); }
.acct-nav a[aria-current] { background: var(--page-field); box-shadow: inset 4px 0 0 var(--page-accent); font-weight: 700; }
.acct-nav a:focus-visible { outline: 2px solid var(--page-accent); outline-offset: -2px; }
.acct-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-content: center; background: var(--page-accent); color: var(--page); font: 700 .72rem/1 var(--mono); }
.acct-main h1 { margin-top: 0; }
.acct-stats { list-style: none; margin: 0 0 8px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acct-stats li { margin: 0 !important; padding: 16px; border: 1.5px solid var(--line); display: grid; gap: 4px; }
.acct-stats li::marker { content: none; }
.acct-stats b { font: 800 clamp(1.3rem, 2.6vw, 1.9rem)/1.1 var(--display); }
.acct-stats span { color: var(--muted); font-size: .86rem; }
.acct-card { margin-top: 28px; padding: 18px 20px; border: 1.5px solid var(--line); background: var(--page-field); }
.acct-card h2 { margin-top: 0; }
@media (max-width: 900px) {
  .acct-layout { grid-template-columns: 1fr; gap: 20px; }
  .acct-nav { position: static; }
  .acct-nav ul { display: flex; gap: 6px; overflow-x: auto; border: 0; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .acct-nav ul::-webkit-scrollbar { display: none; }
  .acct-nav li { flex: none; }
  .acct-nav a { border: 1.5px solid var(--line); white-space: nowrap; padding: 0 14px; }
  .acct-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--page-accent); }
}
@media (max-width: 520px) { .acct-stats { grid-template-columns: 1fr; } .acct-stats li { grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; } }
/* Download: what the launcher does, Steam-style, before the buttons. */
.dl-feats { list-style: none; padding: 0 !important; margin: 1.2em 0 1.4em !important; display: grid; gap: 10px; }
.dl-feats li { margin: 0 !important; padding-left: 1.7em; position: relative; }
.dl-feats li::marker { content: none; }
.dl-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--page-accent); font-weight: 700; }
.dl-launcher .btn { font-size: 1rem; }
/* Sign-in and sign-up: the other form is one clear button below, after a rule. */
.acct-switch { margin: 22px 0 18px; padding-top: 20px; border-top: 1.5px solid var(--line); }
.acct-switch .btn { width: 100%; justify-content: center; }
.account .contact-form .btn.primary { width: 100%; justify-content: center; }

/* Without the sand (no WebGL2, or no JavaScript) the drawn plates stand in: every game keeps its picture. */
.still { display: none; }
.sand-off .still, .no-js .still { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sand-off .still-mark, .no-js .still-mark { inset: 26% 30% 34%; width: auto; height: auto; color: var(--fg); opacity: .9; }

/* The signed-in account menu (Steam-style): the sections and Sign out, under the account button. */
.acct-wrap { position: relative; display: flex; align-items: center; }
.acct-menu { position: absolute; right: 8px; top: calc(100% + 10px); z-index: 30; min-width: 240px; padding: 8px 0; background: var(--ink); color: var(--bone); border: 1px solid rgba(236, 227, 212, .2); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.acct-menu[hidden] { display: none; }
.acct-menu-email { margin: 0; padding: .6em 1.1em .8em; font-size: .82rem; color: var(--bone-3); border-bottom: 1px solid rgba(236, 227, 212, .14); overflow-wrap: anywhere; }
.acct-menu ul { list-style: none; margin: 0; padding: 6px 0; }
.acct-menu a, .acct-menu button { display: block; width: 100%; padding: .62em 1.1em; color: inherit; text-decoration: none; font: 500 .95rem/1.3 var(--sans); text-align: left; background: none; border: 0; cursor: pointer; }
.acct-menu a:hover, .acct-menu a:focus-visible, .acct-menu button:hover, .acct-menu button:focus-visible { background: rgba(236, 227, 212, .1); outline: none; }
.acct-menu form { margin: 0; padding-top: 6px; border-top: 1px solid rgba(236, 227, 212, .14); }
.acct-menu button { color: var(--red-hi); font-weight: 600; }
@media (max-width: 900px) { .acct-menu { position: fixed; top: 74px; right: 12px; left: auto; } }

/* LUDATOR Support (/account/support/new): products as cards, topics that open on what usually solves them. */
.acct-actions { margin: 0 0 1rem; }
.prose .sr-grid, .sr-grid { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sr-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 18px; border: 1.5px solid var(--line); background: var(--page-field); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.sr-card:hover, .sr-card:focus-visible { border-color: var(--red); transform: translateY(-1px); }
.sr-card b { font-weight: 600; }
.sr-topics { display: grid; gap: 8px; margin: 1rem 0; }
.sr-topic { border: 1.5px solid var(--line); background: var(--page-field); padding: 0 18px; }
.sr-topic[open] { padding-bottom: 14px; }
.sr-topic summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: inside; }
.sr-topic .kicker { margin-top: .2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sup-hub { margin: 0 0 2rem; } .sup-hub h2 { margin-top: 0; }
.sr-trail { margin: 0 0 1rem; color: var(--page-muted); } .sr-trail a { color: inherit; } .sr-trail [aria-current] { color: var(--page-fg); }
.prose .sr-grid li { margin: 0; padding: 0; } .prose .sr-grid li::before { content: none; }
/* Screenshot gallery over the page (assets/js/lightbox.js). */
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 7, 11, .96); color: #f1ece2; overflow: hidden; }
.lb::backdrop { background: rgba(0, 0, 0, .55); }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb-stage { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr) 76px; align-items: center; min-height: 0; padding: 56px 0 8px; touch-action: pan-y; }
.lb-fig { margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lb-img { display: block; max-width: 100%; max-height: calc(100% - 52px); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); transition: opacity .18s ease, transform .22s ease; user-select: none; -webkit-user-drag: none; }
.lb-img.lb-swap { opacity: 0; transform: scale(.985); }
.lb-cap { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1rem; max-width: 70ch; text-align: center; font: 500 .8rem/1.4 var(--mono, ui-monospace, monospace); letter-spacing: .04em; color: #c9c3b8; }
.lb-count { color: #fff; } .lb-credit { color: #8a847b; }
.lb-nav, .lb-close { appearance: none; border: 0; background: rgba(255, 255, 255, .06); color: #f1ece2; cursor: pointer; border-radius: 999px; display: grid; place-items: center; transition: background .15s ease, transform .15s ease; }
.lb-nav { width: 56px; height: 56px; justify-self: center; font-size: 2.4rem; line-height: 1; padding-bottom: 4px; }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .16); } .lb-nav:active { transform: scale(.94); }
.lb-nav:focus-visible, .lb-close:focus-visible, .lb-thumb:focus-visible { outline: 2px solid #5ee0ff; outline-offset: 3px; }
.lb-close { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; font-size: 1.15rem; }
.lb-strip { display: flex; gap: 10px; justify-content: center; overflow-x: auto; padding: 10px 16px 18px; scrollbar-width: thin; }
.lb-thumb { flex: 0 0 auto; width: 120px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; opacity: .5; transition: opacity .15s ease, border-color .15s ease; }
.lb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .85; } .lb-thumb[aria-current] { opacity: 1; border-color: #f1ece2; }
ul.shots a { cursor: zoom-in; }
@media (max-width: 700px) {
  .lb-stage { grid-template-columns: 0 minmax(0, 1fr) 0; padding-top: 60px; }
  .lb-nav { display: none; }
  .lb-thumb { width: 84px; }
}
@media (prefers-reduced-motion: reduce) { .lb-img, .lb-nav, .lb-thumb { transition: none; } }
