/* INSERT GLITCH · the website (WEB ARCADE, Tue 6 Oct 2026; docs/WEB.md). Phone first, no framework, no tracking.
   Three looks, each built from the game's own art (its colours, the cabinet shell's marquee letters as a web font made
   from game/kit/shell-look.js by tools/web-font.py, the games' own filmed posters and attracts, the code-drawn key art):
     after-hours    the arcade after hours (the default, the closest to the arcade's own): the night, neon, the marquee
                    letters, every game a cabinet whose screen plays its attract
     attract-mode   louder: a wall of screens, every attract running while it's in view, INSERT COIN blinking
     press-kit      quiet and editorial (the site Codex built for the old pitch): system type, the key art, plain tiles
   <html data-look="…"> picks one; tools/web-build.js --look sets the default, and a review build's ?look= tries the others. */
@font-face { font-family: 'Glitch Marquee'; src: url('/fonts/glitch-marquee.woff') format('woff'); font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0b0a18; --bg2: #120f24; --bg3: #1b1533; --ink: #f2f3f0; --dim: #b4b1c6; --faint: #8a86a3; --line: #2c2546;
  --mag: #ff4fae; --cyan: #59e2f0; --gold: #ffd27a; --green: #8dff6a;
  --head: 'Glitch Marquee', ui-monospace, Menlo, Consolas, monospace;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px; --gut: 16px; --r: 0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); min-height: 100vh; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, figure, ul, dl { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gut))); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -6rem; z-index: 50; background: var(--gold); color: var(--bg); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- the header and the footer */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; flex-wrap: wrap; }
.brand { display: block; width: 150px; flex-shrink: 0; }
.brand img { width: 100%; image-rendering: auto; }
.nav { display: flex; gap: .3rem 1.1rem; flex-wrap: wrap; font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--dim); padding: .7rem .1rem; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a.play { color: var(--gold); }
.site-foot { border-top: 1px solid var(--line); margin-top: 4rem; padding-block: 2rem 2.5rem; color: var(--faint); font-size: 14px; display: grid; gap: 1rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-foot a { color: var(--dim); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .8rem 1.3rem; text-decoration: none;
  font: 700 15px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border: 2px solid var(--cyan); color: var(--ink); background: transparent; cursor: pointer; }
.btn:hover { background: var(--cyan); color: var(--bg); }
.btn.gold { border-color: var(--gold); background: var(--gold); color: var(--bg); }
.btn.gold:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn small { font: inherit; font-size: 11px; opacity: .8; letter-spacing: .08em; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
/* the stores: PLAY and Steam, then the phones' row, quieter (site.js puts the visitor's own store first) */
.stores { display: grid; gap: .8rem; }
.stores .phones { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font: 600 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--dim); }
.stores .phones .label { color: var(--faint); text-transform: uppercase; letter-spacing: .14em; }
.stores .coming { margin: 0; font: 600 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.store-badge { display: inline-flex; align-items: center; min-height: 48px; }
.store-badge img { display: block; height: 48px; width: auto; }
.stores[data-first="ios"] .phones, .stores[data-first="android"] .phones { order: -1; }
.stores[data-first] .phones .label { display: none; }
.stores[data-first] .phones .store-badge img { height: 56px; }

/* ---------------------------------------------------------------- type */
.eyebrow { font: 700 12px/1.3 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--mag); margin-bottom: .8rem; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--dim); max-width: 44rem; }
.h { font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: 1.15; letter-spacing: .02em; }
h1.h { font-size: clamp(30px, 6vw, 60px); }
h2.h { font-size: clamp(20px, 3.4vw, 30px); margin-bottom: 1rem; }
h3.h { font-size: 20px; }
.section { padding-block: clamp(2.2rem, 6vw, 4rem); }
.section > .wrap > .lead { margin-bottom: 1.6rem; }
.note { color: var(--faint); font-size: 14px; }
.gap-top { margin-top: 1.2rem; } .gap-top-s { margin-top: .8rem; } .gap-top-l { margin-top: 3rem; } .gap-y { margin: 1rem 0 1.4rem; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 22px; margin: 2.2rem 0 .8rem; }
.prose p, .prose li { color: var(--dim); }
.prose p + p { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: .5rem; margin-top: .6rem; }
.prose a { color: var(--cyan); }

/* ---------------------------------------------------------------- the hero */
.hero { position: relative; }
.hero .art { width: 100%; max-width: 1600px; margin-inline: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.hero-copy { padding-block: 1.6rem 1rem; display: grid; gap: 1.2rem; justify-items: start; }
.hero-copy .lead { max-width: 40rem; }
.free-line { font: 600 13px/1.5 var(--mono); letter-spacing: .08em; color: var(--green); text-transform: uppercase; }

/* ---------------------------------------------------------------- a game as a cabinet */
.cabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.4rem; list-style: none; padding: 0; }
.cab { position: relative; display: flex; flex-direction: column; background: var(--bg2); border: 2px solid var(--line); text-decoration: none; color: inherit; min-width: 0; }
.cab:hover, .cab:focus-within { border-color: var(--accent, var(--cyan)); color: inherit; }
.cab .marquee { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: .6rem .8rem; background: var(--fill, #120f24);
  border-bottom: 3px solid var(--accent, var(--mag)); text-align: center; }
.cab .marquee .h { font-size: 20px; color: var(--ink); text-shadow: 0 0 10px var(--glow, var(--cyan)); }
.cab .screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-bottom: 1px solid var(--line); }
.cab .screen img, .cab .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.cab .screen video { opacity: 0; transition: opacity .25s; }
.cab .screen video.on { opacity: 1; }
.cab .info { padding: .9rem 1rem 1.1rem; display: grid; gap: .45rem; flex: 1; }
.cab .maker { font: 600 11px/1.3 var(--mono); letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.cab .blurb { color: var(--dim); font-size: 15px; }
.cab .tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.chip { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: .38rem .5rem; border: 1px solid var(--line); color: var(--dim); }
.chip.free { border-color: var(--green); color: var(--green); }
.cab a.cover { position: absolute; inset: 0; z-index: 1; }
.cab a.cover:focus-visible { outline-offset: -3px; }

/* ---------------------------------------------------------------- a game's own page */
.game-head { display: grid; gap: 1rem; padding-block: 1rem 0; grid-template-areas: "name" "screen" "stores" "about"; }
.game-head .gh-name { grid-area: name; } .game-head .gh-screen { grid-area: screen; } .game-head .gh-stores { grid-area: stores; } .game-head .gh-about { grid-area: about; }
.game-head .gh-name .h { margin-top: .2rem; }
@media (min-width: 900px) {
  .game-head { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-items: start; gap: .9rem 1.6rem;
    grid-template-areas: "screen name" "screen stores" "screen about"; }
}
/* a phone on its side: the screen and PLAY side by side, so PLAY is there without a scroll */
@media (min-width: 600px) and (max-height: 520px) { .game-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-items: start; gap: .7rem 1.4rem;
  grid-template-areas: "screen name" "screen stores" "screen about"; } .game-head .lead { font-size: 15px; } }
.game-screen { position: relative; aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--accent, var(--line)); box-shadow: 0 0 40px -10px var(--glow, var(--cyan)); }
.game-screen video, .game-screen img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.crumbs { font: 600 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.crumbs a { color: var(--dim); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem 1.4rem; margin-top: 1rem; }
.facts dt { font: 700 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: .2rem 0 0; }
.stills { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; border: 1px solid var(--line); }

/* ---------------------------------------------------------------- browse and search */
.finder { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.finder input[type="search"] { width: 100%; min-height: 50px; padding: .7rem 1rem; background: var(--bg2); color: var(--ink); border: 2px solid var(--line);
  font: 600 17px/1.2 var(--mono); letter-spacing: .04em; }
.finder input[type="search"]:focus { border-color: var(--cyan); outline: none; }
.wings { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.wings a, .wings button { font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: .7rem .8rem; min-height: 40px; border: 1px solid var(--line);
  background: transparent; color: var(--dim); text-decoration: none; cursor: pointer; }
.wings [aria-pressed="true"], .wings [aria-current="true"] { border-color: var(--gold); color: var(--gold); }
.none { color: var(--faint); padding: 1rem 0; }

/* ---------------------------------------------------------------- the free front door, the points */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.2rem 1.6rem; list-style: none; padding: 0; }
.points li { border-top: 2px solid var(--line); padding-top: 1rem; }
.points h3 { font-size: 18px; margin-bottom: .35rem; }
.points p { color: var(--dim); font-size: 15px; }
.steam-band { border: 2px solid var(--gold); padding: clamp(1.2rem, 4vw, 2.2rem); display: grid; gap: 1rem; background: linear-gradient(135deg, rgba(255, 210, 122, .08), transparent 60%); }
.press-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) { .press-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; } }
.press-layout dl > div { margin-bottom: 1rem; }
.press-layout dt { font: 700 11px/1.3 var(--mono); letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }
.press-layout dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.downloads { list-style: none; padding: 0 !important; }
.downloads li { border-top: 1px solid var(--line); padding-block: .9rem; }
.downloads a { font-weight: 700; color: var(--ink); }
.downloads span { display: block; font-size: 14px; color: var(--faint); }
.review-looks { position: fixed; right: 12px; bottom: 12px; z-index: 60; display: flex; gap: 6px; padding: 6px; background: rgba(5, 5, 13, .9); border: 1px solid var(--line); font: 600 11px/1 var(--mono); }
.review-looks a { padding: .5rem .6rem; text-decoration: none; color: var(--dim); border: 1px solid transparent; }
.review-looks a[aria-current="true"] { border-color: var(--gold); color: var(--gold); }

/* ================================================================ the looks */
/* AFTER HOURS: the night, the CRT's scanlines, the marquee letters in chrome */
html[data-look="after-hours"] body { background: radial-gradient(120% 70% at 50% -10%, #1d1238 0%, var(--bg) 55%) fixed, var(--bg); }
html[data-look="after-hours"] body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, .16) 2px 3px); }
html[data-look="after-hours"] h1.h, html[data-look="after-hours"] h2.h {
  background: linear-gradient(to bottom, #ffffff 0 46%, #bff7fb 46% 60%, var(--cyan) 60% 74%, var(--mag) 74%) 0 0 / 100% 1.15em repeat-y; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 79, 174, .35)); }
html[data-look="after-hours"] .cab { box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 18px 40px -24px var(--glow, var(--cyan)); }

/* ATTRACT MODE: a wall of screens, every attract running while it's in view, INSERT COIN blinking */
html[data-look="attract-mode"] { --bg: #05050d; --bg2: #0b0a18; }
html[data-look="attract-mode"] body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 1px, rgba(0, 0, 0, .28) 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%); }
html[data-look="attract-mode"] h1.h { font-size: clamp(40px, 9vw, 90px); color: var(--gold); text-shadow: 3px 3px 0 var(--mag), -3px -3px 0 var(--cyan); }
html[data-look="attract-mode"] h2.h { color: var(--cyan); text-shadow: 2px 2px 0 var(--mag); }
html[data-look="attract-mode"] .cabs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 6px; }
html[data-look="attract-mode"] .cab { border: 0; background: #000; }
html[data-look="attract-mode"] .cab .marquee { order: 3; border: 0; background: #000; min-height: 0; padding: .5rem; }
html[data-look="attract-mode"] .cab .info { display: none; }
html[data-look="attract-mode"] .cab .screen { border: 0; }
html[data-look="attract-mode"] .cab .screen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .5) 100%); }
html[data-look="attract-mode"] .coin { color: var(--gold); animation: blink 1.2s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* PRESS KIT: quiet and editorial, the old pitch's site */
html[data-look="press-kit"] { --head: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --bg: #05050d; }
html[data-look="press-kit"] .h { text-transform: none; letter-spacing: -.03em; font-weight: 750; line-height: 1.1; }
html[data-look="press-kit"] h1.h { font-size: clamp(30px, 4.6vw, 54px); }
html[data-look="press-kit"] h1.h span { color: var(--cyan); }
html[data-look="press-kit"] .cab { border: 0; background: transparent; }
html[data-look="press-kit"] .cab .marquee { order: 2; justify-content: flex-start; background: transparent; border: 0; padding: .8rem 0 0; min-height: 0; }
html[data-look="press-kit"] .cab .marquee .h { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); text-shadow: none; }
html[data-look="press-kit"] .cab .screen { order: 1; border: 1px solid var(--line); }
html[data-look="press-kit"] .cab .info { order: 3; padding: .3rem 0 0; }
html[data-look="press-kit"] .btn { font-family: var(--body); letter-spacing: .02em; text-transform: none; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand { width: 118px; }
  .nav { gap: .2rem .9rem; font-size: 12px; }
  .hero .art { aspect-ratio: 2 / 1; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-look="attract-mode"] .coin { animation: none; }
  .cab .screen video { transition: none; }
}
/* each game's colours (its label's cabinet look) */
.g-257am{--accent:#ffd27a;--fill:#120f24;--glow:#b07aff}
.g-heist{--accent:#59e2f0;--fill:#120f24;--glow:#59e2f0}
.g-monstertruck{--accent:#ff7a3d;--fill:#120f24;--glow:#ff4fa8}
.g-neon{--accent:#48e6ff;--fill:#0c1030;--glow:#ff4fa8}
.g-pastbedtime{--accent:#8dff6a;--fill:#120f24;--glow:#ffd27a}
.g-thwack{--accent:#ffd27a;--fill:#120f24;--glow:#b07aff}
