/* Maxwell Cranston: a dark arcade, 1980s, after closing time.
   Sleek, dim, retro. Nothing flashy: light comes from the screens. */

/* Self-hosted (no third-party font requests): SIL Open Font License. */
@font-face {
  font-family: "VT323";
  src: url("../fonts/vt323-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #0b0a09;
  --bg-raised: #14120f;
  --bg-cabinet: #191612;
  --line: #2a251f;
  --ink: #d8cfc0;
  --ink-dim: #8f8678;
  --ink-faint: #8a8173; /* 4.5:1+ on every background (review 2026-10-27) */
  --amber: #e0a246;
  --rose: #d97a8a;
  --cyan: #6fc3c8;
  --lime: #9ac26a;
  --glow: 0 0 6px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pixel: "VT323", "IBM Plex Mono", monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* The room after closing: light pools from cabinets just off screen, film
     grain, and the ghost of an 80s arcade carpet underfoot. All dim. */
  background-color: var(--bg);
  background-image:
    radial-gradient(60vw 50vh at 8% 22%, rgba(224, 162, 70, 0.075), transparent 70%),
    radial-gradient(50vw 45vh at 94% 12%, rgba(111, 195, 200, 0.06), transparent 70%),
    radial-gradient(55vw 50vh at 78% 92%, rgba(217, 122, 138, 0.05), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='none' stroke-width='3' opacity='.045'%3E%3Cpath d='M20 40l18-24 18 24z' stroke='%23e0a246'/%3E%3Cpath d='M120 30q15-20 30 0t30 0' stroke='%236fc3c8'/%3E%3Ccircle cx='70' cy='140' r='14' stroke='%23d97a8a'/%3E%3Cpath d='M160 120l30 30M190 120l-30 30' stroke='%239ac26a'/%3E%3Cpath d='M20 190q15-15 30 0t30 0' stroke='%23d97a8a'/%3E%3Crect x='130' y='175' width='22' height='22' transform='rotate(20 141 186)' stroke='%23e0a246'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed, scroll, scroll;
  color: var(--ink);
  font: 400 16px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* The room: faint CRT scanlines and a vignette over everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f1bb66; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 60; background: var(--bg-raised); padding: 6px 10px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(11, 10, 9, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark {
  font: 22px/1 var(--pixel);
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 2px 6px 0;
  text-shadow: var(--glow) rgba(224, 162, 70, 0.45);
}
.brand-name { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.nav { display: flex; flex: 1; justify-content: center; gap: clamp(24px, 5vw, 64px); }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font: 24px/1 var(--pixel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus-visible { color: var(--amber, var(--ink)); border-bottom-color: currentColor; }
.login {
  font: 20px/1 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--amber);
  padding: 6px 14px 4px;
  border-radius: 2px;
}
.login:hover { color: var(--bg); background: #f1bb66; }
/* EN | DE: the current language lit, the other one a dim key beside it */
.lang { display: flex; gap: 4px; }
.lang a { font: 20px/1 var(--pixel); letter-spacing: 0.08em; text-decoration: none; color: var(--ink-faint); border: 1px solid var(--line); padding: 5px 8px 3px; border-radius: 2px; }
.lang a:hover, .lang a:focus-visible { color: var(--ink); border-color: var(--ink-faint); }
.lang a[aria-current] { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 60%, transparent); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Hero: a neon marquee sign over the floor */
.hero {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(56px, 10vw, 120px) 0 clamp(96px, 14vw, 160px);
  overflow: hidden;
}
.section-lede { color: var(--ink-faint); }
.sign {
  --tube: #f2b35a;
  position: relative;
  z-index: 1;
  padding: clamp(18px, 3vw, 30px) clamp(22px, 5vw, 56px) clamp(14px, 2.4vw, 24px);
  border: 2px solid rgba(242, 179, 90, 0.38);
  border-radius: 10px;
  box-shadow:
    0 0 0 6px rgba(11, 10, 9, 0.9),
    0 0 0 7px rgba(242, 179, 90, 0.14),
    0 0 40px rgba(242, 179, 90, 0.12),
    inset 0 0 30px rgba(242, 179, 90, 0.07);
  background: rgba(8, 7, 6, 0.6);
}
.sign-text {
  margin: 0;
  font: 400 clamp(56px, 11vw, 132px)/0.86 var(--pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe3b8;
  text-shadow:
    0 0 2px #fff2dc,
    0 0 8px var(--tube),
    0 0 22px rgba(242, 179, 90, 0.55),
    0 0 48px rgba(242, 179, 90, 0.28);
}
.sign-line { display: block; }
.flicker { animation: flicker 7s linear infinite; }
@keyframes flicker {
  0%, 18%, 22%, 61%, 63%, 100% { opacity: 1; }
  19%, 21% { opacity: 0.25; text-shadow: none; }
  62% { opacity: 0.45; text-shadow: none; }
}
.sign-plate {
  margin: 14px 0 0;
  font: 22px/1 var(--pixel);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(111, 195, 200, 0.45);
}
.lede { position: relative; z-index: 1; max-width: 46ch; color: var(--ink-dim); margin: 36px 0 0; }
.credit { position: relative; z-index: 1; margin: 22px 0 0; font: 22px/1 var(--pixel); color: var(--amber); letter-spacing: 0.18em; text-transform: uppercase; }
/* The floor: a perspective grid that fades into the dark */
.floor-grid {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -2px;
  height: 46%;
  background:
    repeating-linear-gradient(to right, rgba(224, 162, 70, 0.16) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, rgba(224, 162, 70, 0.16) 0 1px, transparent 1px 40px);
  transform: perspective(420px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .flicker { animation: none; } }
.blink { animation: blink 2.4s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

/* Sections */
.floor, .backroom { padding: 56px 0; border-top: 1px solid var(--line); }
.section-title {
  font: 400 30px/1 var(--pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.section-lede { margin: 0 0 32px; }

/* Cabinets: the named games */
.cabinets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.cabinet { --tint: var(--amber); }
.cabinet--rose { --tint: var(--rose); }
.cabinet--cyan { --tint: var(--cyan); }
.cabinet--lime { --tint: var(--lime); }
.cabinet > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
  background: var(--bg-cabinet);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}
.cabinet > a:hover, .cabinet > a:focus-visible { border-color: var(--tint); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  .cabinet > a { transition: none; }
  .cabinet > a:hover, .cabinet > a:focus-visible { transform: none; }
}
.screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: 14px 14px 0;
  border-radius: 10px / 14px;
  background:
    radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--tint) 16%, transparent), transparent 70%),
    #060606;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.9), inset 0 0 2px color-mix(in srgb, var(--tint) 40%, transparent);
}
.screen-text {
  font: 34px/1 var(--pixel);
  letter-spacing: 0.08em;
  color: var(--tint);
  text-shadow: var(--glow) color-mix(in srgb, var(--tint) 55%, transparent);
  opacity: 0.82;
  transition: opacity 160ms ease;
}
.cabinet > a:hover .screen-text { opacity: 1; }
.plate { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.title { font: 26px/1 var(--pixel); letter-spacing: 0.04em; color: var(--ink); }
.blurb { font-size: 13px; color: var(--ink-dim); flex: 1; }
.cta {
  align-self: flex-start;
  font: 18px/1 var(--pixel);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tint);
  border: 1px solid color-mix(in srgb, var(--tint) 50%, transparent);
  padding: 5px 10px 3px;
}

/* The back room: unlit machines, codenames only */
.unlit {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.machine {
  background: var(--bg-raised);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 16px;
}
.codename { display: block; font: 24px/1 var(--pixel); letter-spacing: 0.1em; color: var(--ink-dim); }
.status {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  padding: 2px 6px;
}
.machine p { margin: 12px 0 0; font-size: 13px; color: var(--ink-faint); }

/* Previews: one panel per game */
.previews { padding: 56px 0; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.previews .section-title { margin-bottom: 4px; }
.preview {
  --tint: var(--amber);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tint);
  border-radius: 4px;
  padding: 22px 22px 24px;
  display: grid;
  gap: 12px;
}
.preview--rose { --tint: var(--rose); }
.preview--cyan { --tint: var(--cyan); }
.preview-title {
  margin: 0;
  font: 400 32px/1 var(--pixel);
  letter-spacing: 0.04em;
  color: var(--tint);
  text-shadow: var(--glow) color-mix(in srgb, var(--tint) 35%, transparent);
}
.preview-pitch { margin: 0; max-width: 70ch; color: var(--ink-dim); }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  padding: 3px 8px;
}
.preview .cta { justify-self: start; text-decoration: none; }
/* the whole card opens the game: the title's link stretches over it; the button keeps its own target */
.preview { position: relative; transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.preview-link { color: inherit; text-decoration: none; }
.preview-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.preview .cta { position: relative; z-index: 2; }
.preview:has(.preview-link:hover), .preview:has(.preview-link:focus-visible) { border-color: color-mix(in srgb, var(--tint) 55%, var(--line)); border-left-color: var(--tint);
  background-color: color-mix(in srgb, var(--tint) 5%, var(--bg-raised)); }
.preview:has(.preview-link:hover) .preview-screen img, .preview:has(.preview-link:focus-visible) .preview-screen img { filter: saturate(1) brightness(0.95); }
.preview-screen img { transition: filter 200ms ease-out; }

/* Footer */
.bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
}
.bottom a { color: var(--ink-faint); }

/* Phones */
@media (max-width: 720px) {
  /* Two rows on a phone: let it scroll away instead of pinning it. */
  .top { flex-wrap: wrap; gap: 12px; position: static; }
  .brand-name { display: none; }
  .nav { order: 3; width: 100%; flex: none; justify-content: space-between; gap: 8px; }
  .nav a { font-size: clamp(15px, 4.8vw, 19px); letter-spacing: clamp(0.02em, 0.4vw, 0.06em); }
  .login { margin-left: auto; }
  .lang { margin-left: auto; }
  .lang + .login { margin-left: 0; }
}

/* Screens with a picture: the game plays dim behind the glass, the title
   burns in over it, and the glass brightens when you walk up. */
.screen { overflow: hidden; }
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.5) contrast(1.1);
  transition: filter 220ms ease;
}
.screen:has(img)::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.75));
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
.screen:has(img) .screen-text {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: 12%;
  font-size: 30px;
  background: rgba(6, 6, 6, 0.55);
  padding: 2px 10px 0;
}
.cabinet > a:hover .screen img, .cabinet > a:focus-visible .screen img {
  filter: saturate(0.95) brightness(0.8) contrast(1.05);
}
@media (prefers-reduced-motion: reduce) { .screen img { transition: none; } }

/* ---- 2026-11-09 pass: hardware, ticker, coin, pages ---- */

/* The sign warms up when you walk in. Once. */
.sign-text { animation: poweron 1.8s linear 1 both; }
@keyframes poweron {
  0% { opacity: 0.08; text-shadow: none; }
  8% { opacity: 0.9; }
  12% { opacity: 0.15; text-shadow: none; }
  20% { opacity: 1; }
  26% { opacity: 0.3; text-shadow: none; }
  34%, 100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .sign-text { animation: none; } }
.sign--rose { --tube: #e98a9b; border-color: rgba(233, 138, 155, 0.38); }
.sign--rose .sign-text { color: #ffd9df; text-shadow: 0 0 2px #fff, 0 0 8px var(--tube), 0 0 22px rgba(233, 138, 155, 0.5); }

/* Insert coin */
.coin { cursor: default; }
.js .coin { cursor: pointer; user-select: none; padding: 6px 12px; border: 1px solid transparent; border-radius: 2px; }
.js .coin:hover, .js .coin:focus-visible { border-color: rgba(224, 162, 70, 0.5); }
.coin.dropped { animation: drop 280ms ease-out 1; }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0.4; } 100% { transform: none; opacity: 1; } }
.continue { color: var(--rose); text-decoration: none; }
.continue:hover { color: #f0a3b0; }

/* LED ticker under the sign: dim, slow */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #070605;
  margin: 0 calc(var(--gutter) * -1);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker span {
  white-space: pre;
  font: 20px/1 var(--pixel);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.62;
  padding: 10px 0 8px;
  text-shadow: 0 0 5px rgba(224, 162, 70, 0.35);
}
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Cabinet hardware: a lit marquee strip, a control deck, a coin slot */
.cabinet > a { position: relative; border-top: 0; }
.cabinet > a::before {
  content: "";
  display: block;
  height: 10px;
  background:
    repeating-linear-gradient(to right, rgba(0, 0, 0, 0.45) 0 2px, transparent 2px 14px),
    linear-gradient(to bottom, color-mix(in srgb, var(--tint) 75%, #fff 0%), color-mix(in srgb, var(--tint) 35%, #000));
  opacity: 0.55;
  box-shadow: 0 0 14px color-mix(in srgb, var(--tint) 35%, transparent);
  transition: opacity 200ms ease;
}
.cabinet > a:hover::before, .cabinet > a:focus-visible::before, .powered .cabinet > a::before { opacity: 1; }
.deck {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 14px 0;
  padding: 9px 12px;
  background: linear-gradient(to bottom, #211d18, #14110e);
  border: 1px solid var(--line);
  border-radius: 3px;
  transform: perspective(300px) rotateX(18deg);
  transform-origin: 50% 0;
}
.deck i { display: block; flex: none; }
.stick {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d85a5a, #6b1f1f);
  box-shadow: 0 0 0 4px #0b0a09, 0 0 0 5px var(--line);
  margin-right: 8px;
}
.btn {
  width: 11px; height: 11px; border-radius: 50%;
  background: color-mix(in srgb, var(--tint) 55%, #1a1714);
  box-shadow: 0 0 0 2px #0b0a09, inset 0 -2px 2px rgba(0, 0, 0, 0.5);
  transition: background 160ms ease, box-shadow 160ms ease;
}
.cabinet > a:hover .btn, .cabinet > a:focus-visible .btn, .powered .btn {
  background: var(--tint);
  box-shadow: 0 0 0 2px #0b0a09, 0 0 8px color-mix(in srgb, var(--tint) 60%, transparent);
}
.slot {
  margin-left: auto;
  width: 4px; height: 16px; border-radius: 1px;
  background: #050505;
  box-shadow: 0 0 0 3px #2a251f, 0 0 0 4px #0b0a09;
}
.powered .slot { box-shadow: 0 0 0 3px #2a251f, 0 0 0 4px #0b0a09, 0 0 10px rgba(224, 162, 70, 0.55); }
.powered .screen img { filter: saturate(0.9) brightness(0.72) contrast(1.05); }
.powered .screen-text { opacity: 1; }

/* Previews: the game on a small screen beside its pitch */
.preview-screen {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px / 14px;
  overflow: hidden;
  background: #060606;
  box-shadow: inset 0 0 2px color-mix(in srgb, var(--tint) 40%, transparent), 0 0 24px color-mix(in srgb, var(--tint) 10%, transparent);
}
.preview-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.7); }
.preview-screen::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}
@media (min-width: 721px) {
  .preview { grid-template-columns: 220px 1fr; column-gap: 24px; }
  .preview > * { grid-column: 2; }
  .preview > .preview-screen { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
}

/* Back room: dust sheets and a taped note */
.machine {
  position: relative;
  background:
    repeating-linear-gradient(115deg, rgba(216, 207, 192, 0.022) 0 14px, transparent 14px 30px),
    var(--bg-raised);
  transition: border-color 200ms ease;
}
.machine:hover { border-color: #3d362d; }
.machine:hover .codename { color: var(--ink); animation: flicker 2.2s linear 1; }
.status {
  transform: rotate(-2deg);
  background: rgba(216, 207, 192, 0.05);
  border-style: dashed;
}
.machine:nth-child(even) .status { transform: rotate(1.5deg); }
@media (prefers-reduced-motion: reduce) { .machine:hover .codename { animation: none; } }

/* Plain pages (Impressum) */
.page { max-width: 760px; padding-top: 48px; padding-bottom: 56px; }
.page h2 { font: 400 22px/1.1 var(--pixel); letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); margin: 32px 0 6px; }
.page p { margin: 0; color: var(--ink-dim); font-size: 14px; }
.gameover { min-height: 70vh; align-content: center; }

/* ---- 2026-11-09 late pass: closed alpha, kids' corner, invite list, about ---- */
.alpha-note { margin: 20px 0 0; font-size: 13px; color: var(--ink-dim); }
.cabinet--sun { --tint: #e8c96a; }
/* Kids' corner: someone left a lamp on over here */
.floor--kids {
  position: relative;
  background: radial-gradient(70% 60% at 50% 0%, rgba(232, 201, 106, 0.07), transparent 75%);
  border-top-color: #3a3324;
}
.floor--kids .section-title { color: #f0dba0; }

.invite-form { display: grid; gap: 14px; max-width: 460px; }
.invite-form label { display: grid; gap: 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.invite-form .opt { text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.invite-form input, .invite-form textarea {
  font: 400 15px/1.4 var(--mono);
  color: var(--ink);
  background: #070605;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 9px 10px;
  width: 100%;
}
.invite-form input:focus, .invite-form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 1px rgba(224, 162, 70, 0.35); }
.invite-form button { justify-self: start; border: 0; cursor: pointer; }
.invite-form button[disabled] { opacity: 0.5; cursor: default; }
.hp { position: absolute !important; left: -9999px; }
.invite-status { margin: 0; min-height: 1.6em; font: 20px/1.2 var(--pixel); letter-spacing: 0.08em; color: var(--lime); }
.invite-status.bad { color: var(--rose); }
.fineprint { margin: 0; font-size: 12px; color: var(--ink-faint); }
.about-text { max-width: 60ch; margin: 0; color: var(--ink-dim); font-size: 15px; }

/* ---- the tip jar ---- */
.hero--jar { padding-bottom: clamp(72px, 10vw, 120px); }
.tip-link.soon { opacity: 0.55; cursor: default; }
.voices span b { font-weight: 400; color: var(--rose); border: 1px solid var(--rose); padding: 0 6px; margin-right: 8px; letter-spacing: 0.1em; }
.voices span { text-transform: none; letter-spacing: 0.06em; color: var(--ink); opacity: 0.8; }
.jar { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.jar-card { --tint: var(--amber); display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--bg-cabinet); border: 1px solid var(--line); border-top: 3px solid var(--tint); border-radius: 4px; }
.jar--rose { --tint: var(--rose); } .jar--cyan { --tint: var(--cyan); }
.jar-coin { font: 30px/1 var(--pixel); letter-spacing: 0.04em; color: var(--tint); text-shadow: var(--glow) color-mix(in srgb, var(--tint) 35%, transparent); }
.jar-card p { margin: 0 0 8px; font-size: 14px; color: var(--ink-dim); }
.jar-card .cta { text-decoration: none; margin-top: auto; align-self: stretch; } /* buttons sit on the card floor, level across the row */
/* the plain facts: one column on phones, two side by side on wide screens */
.plain-facts { display: grid; gap: 20px 40px; margin-top: 24px; }
.plain-facts .about-text { max-width: none; }
@media (min-width: 760px) { .plain-facts { grid-template-columns: 1fr 1fr; } }
.plain-facts + .fineprint { margin-top: 24px; }
.jar-note { margin-top: 24px; max-width: 70ch; }
.tipline { margin: 18px 0 0; font-size: 14px; color: var(--ink-dim); }
.bottom .jar-link { color: var(--amber); }

/* hearts box */
.hearts { border: 0; margin: 0; padding: 0; }
.hearts legend { padding: 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.hearts-row { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.hearts-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hearts-row label { display: block; width: 48px; height: 48px; cursor: pointer; color: #3a332b; transition: color 120ms ease, transform 120ms ease; }
.hearts-row label::before { content: "\2665"; display: grid; place-items: center; width: 100%; height: 100%; font: 46px/1 var(--pixel); }
.hearts-row label span { position: absolute; left: -9999px; }
.hearts-row input:checked ~ label, .hearts-row label:hover, .hearts-row label:hover ~ label { color: var(--rose); text-shadow: 0 0 8px rgba(217, 122, 138, 0.5); }
.hearts-row label:hover { transform: scale(1.12); }
.hearts-row input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }
.hearts-count { position: relative; z-index: 1; margin: 18px 0 0; font: 24px/1 var(--pixel); letter-spacing: 0.1em; color: var(--rose); }
.hearts-count b { font-weight: 400; color: #ffd9df; }

/* the hidden attribute wins over any display rule */
[hidden] { display: none !important; }

/* ---- news strip above the games ---- */
.news { margin: 0 0 56px; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--amber); background: var(--bg-raised); }
.news-title { margin: 0 0 10px; font: 400 22px/1 var(--pixel); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-dim); }
.news-list time { display: inline-block; min-width: 76px; color: var(--ink-faint); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.news-list a { color: var(--ink); }
.news-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; font: 400 15px/1.2 var(--pixel); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); background: var(--lime); }

/* the closed-alpha note belongs to the Ghelmyon cabinet (on a phone it used to land under ChromeDome) */
.cabinet .alpha-note { margin: 0; padding: 0 16px 16px; }

/* looks like plain text on purpose */
.quiet-door, .quiet-door:hover, .quiet-door:focus { color: inherit; text-decoration: none; cursor: text; border: 0; outline: 0; background: none; }

/* ---- 2026-11-10: the banner as a lit LED board (index only) ---- */
.ticker--led {
  position: relative;
  background: #040302;
  border-block: 3px solid #2b2218;
  box-shadow: inset 0 0 22px #000, inset 0 2px 0 rgba(255, 255, 255, 0.04), 0 0 28px rgba(224, 162, 70, 0.10);
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.ticker--led::after {            /* the dot grid of the board, over the text */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, transparent 1px, rgba(0, 0, 0, 0.6) 1.5px);
  background-size: 3px 3px;
}
.ticker--led .ticker-track { animation-duration: 110s; }
.ticker--led span { display: flex; align-items: center; font-size: 30px; letter-spacing: 0.16em; opacity: 1; padding: 14px 0 12px; text-shadow: none; color: inherit; }
.ticker--led b { font-weight: 400; text-shadow: 0 0 10px color-mix(in srgb, currentColor 70%, transparent), 0 0 2px currentColor; }
.ticker--led i { font-style: normal; font-size: 14px; margin: 0 28px; color: #5a4a36; }
.ticker--led .c1 { color: #ffc56b; }
.ticker--led .c2 { color: #6fe0e8; }
.ticker--led .c3 { color: #ff7fa5; }
.ticker--led .c4 { color: #b6e86a; }
@media (max-width: 700px) { .ticker--led span { font-size: 24px; padding: 11px 0 9px; } .ticker--led i { margin: 0 18px; } }

/* ---- 2026-11-10: the cards as arcade machines ----
   Top to bottom: a lit name sign, the screen in a thick frame with the game
   moving behind the glass, the control deck, the text, the coin door. A real
   clip can replace a picture: put <video muted loop autoplay playsinline>
   where the <img> is, it gets the same glass. */
.cabinets { gap: 30px 26px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cabinet { display: flex; flex-direction: column; }
.cabinet > a {
  flex: 1; height: auto;
  border: 0; border-inline: 9px solid #0c0a08; border-bottom: 7px solid #080706;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(to bottom, #1e1a16, #151310 55%, #0f0d0b);
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--tint) 45%, transparent), inset -2px 0 0 color-mix(in srgb, var(--tint) 45%, transparent), 0 22px 30px -14px #000;
  transition: transform 160ms ease, box-shadow 200ms ease;
}
.cabinet > a::before { display: none; }
.cabinet > a:hover, .cabinet > a:focus-visible {
  border-color: #0c0a08; border-bottom-color: #080706;
  box-shadow: inset 2px 0 0 var(--tint), inset -2px 0 0 var(--tint), 0 22px 30px -14px #000, 0 0 34px -8px color-mix(in srgb, var(--tint) 60%, transparent);
}
.marquee {
  display: block; text-align: center; white-space: nowrap; overflow: hidden;
  font: 30px/1 var(--pixel); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 6px 11px; color: #fff8ea;
  background:
    repeating-linear-gradient(to right, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 6px),
    linear-gradient(to bottom, color-mix(in srgb, var(--tint) 72%, #000), color-mix(in srgb, var(--tint) 30%, #000));
  text-shadow: 0 0 2px #fff, 0 0 10px var(--tint), 0 2px 0 rgba(0, 0, 0, 0.55);
  border-bottom: 4px solid #0a0908;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  animation: marquee-hum 9s steps(1, end) infinite;
}
.cabinet:nth-child(2n) .marquee { animation-delay: -3.3s; }
.cabinet:nth-child(3n) .marquee { animation-delay: -6.1s; }
@keyframes marquee-hum { 0%, 100% { filter: brightness(0.88); } 46% { filter: brightness(0.6); } 47% { filter: brightness(0.9); } 48.5% { filter: brightness(0.55); } 50% { filter: brightness(0.88); } }
.cabinet > a:hover .marquee, .cabinet > a:focus-visible .marquee { animation: none; filter: brightness(1.15); }
.cabinet .screen {
  margin: 12px 12px 0; border: 9px solid #070605; border-radius: 18px / 22px;
  box-shadow: 0 0 0 1px #2e2820, inset 0 0 30px rgba(0, 0, 0, 0.9), 0 0 30px -8px color-mix(in srgb, var(--tint) 55%, transparent);
}
.cabinet .screen img, .cabinet .screen video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95) brightness(0.8) contrast(1.05);
  animation: attract 24s ease-in-out infinite alternate;
}
.cabinet:nth-child(2n) .screen img { animation-duration: 31s; animation-direction: alternate-reverse; }
@keyframes attract { 0% { transform: scale(1.08) translate(-2.5%, 1.5%); } 50% { transform: scale(1.22) translate(2.5%, -2%); } 100% { transform: scale(1.12) translate(1%, 2.5%); } }
.cabinet > a:hover .screen img, .cabinet > a:focus-visible .screen img { filter: saturate(1.05) brightness(1) contrast(1.05); }
.cabinet .screen::before {        /* the bright band that rolls down an old tube */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: tube-roll 5.5s linear infinite;
}
@keyframes tube-roll { from { transform: translateY(-110%); } to { transform: translateY(500%); } }
.cabinet .screen:has(img) .screen-text { font-size: 24px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 1; animation: press-start 1.3s steps(1, end) infinite; }
@keyframes press-start { 0%, 100% { opacity: 1; } 55% { opacity: 0; } }
.screen-text.cycle { position: relative; width: 100%; height: 1em; opacity: 1; }
.screen-text.cycle b { position: absolute; inset: 0; text-align: center; font-weight: 400; opacity: 0; animation: cycle 10s steps(1, end) infinite; }
.screen-text.cycle b:nth-child(2) { animation-delay: 2.5s; }
.screen-text.cycle b:nth-child(3) { animation-delay: 5s; }
.screen-text.cycle b:nth-child(4) { animation-delay: 7.5s; }
@keyframes cycle { 0% { opacity: 1; } 25%, 100% { opacity: 0; } }
.cabinet .deck { margin: 14px 0 0; padding: 14px 20px 12px; gap: 13px; border-inline: 0; border-radius: 0; border-top: 2px solid color-mix(in srgb, var(--tint) 40%, #2a251f); background: linear-gradient(to bottom, #2b251e, #16130f); }
.cabinet .stick { width: 18px; height: 18px; position: relative; top: -4px; box-shadow: 0 5px 0 -5px #777, 0 9px 0 -2px #0b0a09, 0 0 0 1px rgba(0, 0, 0, 0.6), 0 10px 6px -2px rgba(0, 0, 0, 0.8); margin-right: 12px; }
.cabinet .btn { width: 15px; height: 15px; }
.cabinet .deck .slot { display: none; }
.door { display: flex; justify-content: center; gap: 14px; margin: 0 14px; padding: 12px 0 14px; border-top: 1px solid var(--line); }
.door i { position: relative; width: 34px; height: 46px; border-radius: 3px; background: linear-gradient(#17140f, #0a0908); border: 1px solid #2e2820; box-shadow: inset 0 0 6px #000; }
.door i::before { content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 15px; margin-left: -2px; border-radius: 1px; background: #050505; box-shadow: 0 0 0 2px #3a2c1a; transition: box-shadow 200ms ease; }
.door i::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 14px; height: 7px; margin-left: -7px; border-radius: 1px; background: #c8452f; opacity: 0.35; transition: opacity 200ms ease, box-shadow 200ms ease; }
.powered .door i::before, .cabinet > a:hover .door i::before { box-shadow: 0 0 0 2px #3a2c1a, 0 0 10px rgba(224, 162, 70, 0.75); }
.powered .door i::after, .cabinet > a:hover .door i::after { opacity: 0.95; box-shadow: 0 0 8px #c8452f; }
.cabinet .alpha-note { padding: 12px 6px 0; }
@media (prefers-reduced-motion: reduce) {
  .marquee, .cabinet .screen img, .cabinet .screen video, .cabinet .screen::before, .cabinet .screen:has(img) .screen-text { animation: none; }
  .cabinet .screen::before { display: none; }
  .screen-text.cycle b { animation: none; } .screen-text.cycle b:first-child { opacity: 1; }
}

/* ---- 2026-11-10 late: one arcade, three rooms ----
   Every machine wears its own game's colours and title font, so the card
   already looks like the place it leads to. The rooms differ in light:
   the hall is dark, the kids' room is a lit doorway, the workshop is dust
   sheets. */
@font-face { font-family: "Pixelify Sans"; src: url("../fonts/pixelify-sans-400-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo-2-600-latin.woff2") format("woff2"); font-display: swap; }
.cabinet { --body-a: #1e1a16; --body-b: #0f0d0b; --side: #0c0a08; --marq-a: color-mix(in srgb, var(--tint) 72%, #000); --marq-b: color-mix(in srgb, var(--tint) 30%, #000); --marq-ink: #fff8ea; }
.cabinet > a { background: linear-gradient(to bottom, var(--body-a), var(--body-b)); border-inline-color: var(--side); }
.cabinet > a:hover, .cabinet > a:focus-visible { border-color: var(--side); border-bottom-color: #080706; }
.marquee { color: var(--marq-ink); background: repeating-linear-gradient(to right, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 6px), linear-gradient(to bottom, var(--marq-a), var(--marq-b)); }
.skin-ghelmyon { --tint: #e8a530; --body-a: #17130f; --body-b: #0a0a0a; --side: #070606; --marq-a: #2a2010; --marq-b: #0d0a06; --marq-ink: #f3c56a; }
.skin-ghelmyon .marquee { font: 700 21px/1.25 Georgia, "Times New Roman", serif; letter-spacing: 0.3em; text-shadow: 0 0 12px rgba(232, 165, 48, 0.55); border-bottom-color: #3a3020; }
.skin-chromedome { --tint: #00e5ff; --body-a: #141633; --body-b: #0a0a1a; --side: #07071a; --marq-a: #0d1a3a; --marq-b: #2a0f3a; --marq-ink: #dffcff; }
.skin-chromedome .marquee { font-style: italic; letter-spacing: 0.08em; text-shadow: 2px 0 0 #ff2d95, 0 0 12px #00e5ff; }
.skin-chromedome > a { box-shadow: inset 2px 0 0 #00e5ff88, inset -2px 0 0 #ff2d9588, 0 22px 30px -14px #000; }
.skin-chromedome .btn:last-of-type { --tint: #ff2d95; }
.skin-corn { --tint: #f59ac8; --body-a: #2a2360; --body-b: #12113a; --side: #0e0d2c; --marq-a: #4a3fa0; --marq-b: #241d5c; --marq-ink: #fff3c4; }
.skin-corn .marquee { font: 26px/1.1 "Pixelify Sans", var(--pixel); letter-spacing: 0.14em; text-shadow: 0 2px 0 #12113a, 0 0 12px #f59ac8; }
.skin-cake { --tint: #ff5d8f; --body-a: #3a2230; --body-b: #1f121a; --side: #170d13; --marq-a: #fff1f4; --marq-b: #ffd3e1; --marq-ink: #e8447a; }
.skin-cake .marquee { font: 800 23px/1.15 Georgia, "Times New Roman", serif; letter-spacing: 0.16em; text-shadow: 0 1px 0 #fff; animation: none; filter: brightness(0.92); }
.skin-learning { --tint: #ffd166; --body-a: #1c2354; --body-b: #10142a; --side: #0b0e22; --marq-a: #2a3478; --marq-b: #161b44; --marq-ink: #ffd166; }
.skin-learning .marquee { font: 600 24px/1.1 "Baloo 2", var(--pixel); letter-spacing: 0.1em; text-shadow: 0 0 12px rgba(255, 209, 102, 0.6); }
.skin-learning .title, .skin-corn .title { font-family: inherit; }

/* The kids' room: a lit doorway in the dark hall */
.floor--kids {
  margin-top: 36px; padding: 64px clamp(16px, 4vw, 44px) 52px;
  border: 3px solid #3b4a8a; border-bottom-width: 8px;
  border-radius: clamp(60px, 14vw, 200px) clamp(60px, 14vw, 200px) 14px 14px / clamp(50px, 9vw, 110px) clamp(50px, 9vw, 110px) 14px 14px;
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(255, 209, 102, 0.20), transparent 70%),
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.5) 0 1.5px, transparent 2px),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.4) 0 1.5px, transparent 2px),
    radial-gradient(circle at 68% 58%, rgba(255, 255, 255, 0.3) 0 1.5px, transparent 2px),
    radial-gradient(circle at 26% 74%, rgba(255, 255, 255, 0.3) 0 1.5px, transparent 2px),
    linear-gradient(to bottom, #1f2760, #12173a);
  box-shadow: 0 0 60px -10px rgba(255, 209, 102, 0.22), inset 0 0 50px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.floor--kids .section-title { font: 600 clamp(32px, 6vw, 46px)/1 "Baloo 2", var(--pixel); letter-spacing: 0.04em; text-transform: none; color: #ffd166; text-shadow: 0 0 18px rgba(255, 209, 102, 0.45); }
.floor--kids .section-lede { color: #c9d2ff; font-size: 16px; margin-bottom: 14px; }
.floor--kids .cabinets { text-align: left; justify-content: center; grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); }
/* 2026-11-13: the learning games stand double wide across the top, Corn and Cake below */
.floor--kids .cabinets { grid-template-columns: repeat(2, minmax(0, 300px)); }
.floor--kids .cabinet--wide { grid-column: 1 / -1; }
.floor--kids .cabinet--wide .screen { aspect-ratio: 5 / 2; }
/* the learning screen: letters and numbers drift up, six toy blocks bounce, the sums pop */
.cabinet .learn-screen { container-type: size; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 1.6vw, 18px);
  background: radial-gradient(ellipse at 50% 110%, rgba(167, 139, 250, 0.28), transparent 60%), radial-gradient(ellipse at 50% 30%, rgba(255, 209, 102, 0.14), transparent 65%), #07081a; }
.learn-sky { position: absolute; inset: 0; pointer-events: none; }
.learn-sky i { position: absolute; left: var(--x); top: 100%; font: 600 clamp(14px, 4.5cqw, 26px)/1 "Baloo 2", var(--pixel); font-style: normal; color: var(--c); text-shadow: 0 0 10px var(--c); opacity: 0;
  animation: learn-drift 14s linear var(--d) infinite; }
.learn-sky i:nth-child(3n) { font-size: clamp(11px, 3cqw, 18px); animation-duration: 18s; }
@keyframes learn-drift { 0% { transform: translateY(0) rotate(-10deg); opacity: 0; } 12% { opacity: 0.45; } 80% { opacity: 0.35; } 100% { transform: translateY(-125cqh) rotate(12deg); opacity: 0; } }
.learn-blocks { position: relative; z-index: 1; display: flex; gap: clamp(5px, 1.6cqw, 12px); margin-top: 6px; }
.learn-blocks b { display: grid; place-items: center; width: clamp(28px, 8cqw, 54px); aspect-ratio: 1; border-radius: 18%;
  font: 800 clamp(18px, 5.6cqw, 38px)/1 "Baloo 2", var(--pixel); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 78%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.28), inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 0 18px color-mix(in srgb, var(--c) 60%, transparent), 0 6px 0 -1px color-mix(in srgb, var(--c) 40%, #000);
  animation: learn-bounce 2.4s cubic-bezier(.3, 0, .3, 1) infinite; }
.learn-blocks b:nth-child(2) { animation-delay: 0.15s; } .learn-blocks b:nth-child(3) { animation-delay: 0.3s; }
.learn-blocks b:nth-child(4) { animation-delay: 0.45s; } .learn-blocks b:nth-child(5) { animation-delay: 0.6s; } .learn-blocks b:nth-child(6) { animation-delay: 0.75s; }
@keyframes learn-bounce { 0%, 40%, 100% { transform: translateY(0) rotate(0); } 15% { transform: translateY(-34%) rotate(-6deg); } 28% { transform: translateY(0) scale(1.08, 0.92); } }
.cabinet .learn-screen .learn-sum { position: relative; z-index: 1; height: 1em; font-size: clamp(20px, 5cqw, 34px); color: #ffd166; opacity: 1; }
.learn-sum b { animation-name: learn-pop; }
@keyframes learn-pop { 0% { opacity: 1; transform: scale(0.6); } 3% { transform: scale(1.18); } 6% { transform: scale(1); } 23% { opacity: 1; } 25%, 100% { opacity: 0; } }
.cabinet .learn-screen .learn-start { position: relative; z-index: 1; font-size: clamp(14px, 3.6cqw, 22px); letter-spacing: 0.2em; text-transform: uppercase; color: #ff7eb6; text-shadow: 0 0 10px rgba(255, 126, 182, 0.7);
  opacity: 1; animation: press-start 1.3s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) {
  .learn-sky i, .learn-blocks b, .cabinet .learn-screen .learn-start { animation: none; }
  .learn-sky i { top: auto; bottom: calc(10% + var(--x) * 0.6); opacity: 0.3; }
}
@media (max-width: 600px) { .floor--kids .cabinets { grid-template-columns: minmax(0, 300px); } .floor--kids .cabinet--wide .screen { aspect-ratio: 4 / 3; } }
.door-sign { display: inline-flex; flex-direction: column; gap: 6px; margin: 0 0 30px; padding: 12px 20px; border: 2px solid #ffd16688; border-radius: 14px; background: rgba(10, 13, 34, 0.55); max-width: 560px; }
.door-sign a { font: 600 clamp(18px, 4vw, 24px)/1.1 "Baloo 2", var(--pixel); color: #ffd166; text-decoration: none; overflow-wrap: anywhere; }
.door-sign a:hover { text-decoration: underline; }
.door-sign span { font-size: 13px; color: #aab4e8; }

/* The workshop: machines under dust sheets, a paper tag on each */
.unlit { gap: 26px 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-items: end; }
.machine {
  min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; padding: 70px 18px 20px;
  border: 0; border-radius: 46% 46% 6px 6px / 70px 70px 6px 6px;
  background:
    linear-gradient(100deg, transparent 0 18%, rgba(0, 0, 0, 0.22) 22%, transparent 30% 52%, rgba(0, 0, 0, 0.18) 57%, transparent 64% 80%, rgba(0, 0, 0, 0.2) 86%, transparent 92%),
    linear-gradient(to bottom, #4a4438, #2c2821 55%, #1c1915);
  box-shadow: inset 0 14px 22px -10px rgba(255, 255, 255, 0.10), 0 20px 26px -14px #000;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 92% 100%, 82% 95%, 70% 100%, 58% 96%, 44% 100%, 30% 95%, 16% 100%, 6% 96%, 0 100%);
  transition: filter 200ms ease;
}
.machine:hover { filter: brightness(1.15); }
.machine .codename { color: #1b1814; background: #d8cfb8; align-self: flex-start; padding: 5px 10px 3px; font-size: 22px; transform: rotate(-3deg); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.machine:nth-child(even) .codename { transform: rotate(2deg); }
.machine:hover .codename { color: #1b1814; animation: none; }
.machine .status { align-self: flex-start; color: #cfc6b2; border-color: #6a6152; background: rgba(0, 0, 0, 0.25); }
.machine p { color: #c2b9a6; }
@media (max-width: 700px) { .floor--kids { margin-inline: -6px; padding-top: 52px; } }

/* footer: the name on the left, the links together on the right */
.bottom { justify-content: flex-start; gap: 10px 28px; font-size: 13px; }
.bottom > :first-child { margin-right: auto; }

/* Workshop, second try (the arched sheets read as gravestones): each one is
   an arcade cabinet's outline under a cloth, a faint screen glowing through,
   the codename on a paper tag tied to it, the words underneath. */
.unlit { gap: 34px 18px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); align-items: start; }
.machine {
  --peek: 111, 195, 200;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; clip-path: none;
  filter: drop-shadow(0 16px 10px rgba(0, 0, 0, 0.8));
}
.machine:nth-child(5n+2) { --peek: 224, 162, 70; }
.machine:nth-child(5n+3) { --peek: 217, 122, 138; }
.machine:nth-child(5n+4) { --peek: 154, 194, 106; }
.machine:nth-child(5n+5) { --peek: 232, 201, 106; }
.machine::before {
  content: ""; width: 150px; height: 200px; flex: none; margin-bottom: 14px;
  background:
    radial-gradient(ellipse 30% 13% at 50% 31%, rgba(var(--peek), 0.30), transparent 100%),
    linear-gradient(96deg, transparent 0 14%, rgba(0, 0, 0, 0.25) 19%, transparent 27% 46%, rgba(255, 255, 255, 0.05) 50%, transparent 54% 70%, rgba(0, 0, 0, 0.22) 77%, transparent 85%),
    linear-gradient(to bottom, #5a5345, #3a352c 45%, #24211b);
  /* a cabinet from the front: narrow sign on top, wider body, the deck jutting out, cloth hem at the floor */
  clip-path: polygon(20% 3%, 26% 0, 74% 0, 80% 3%, 82% 17%, 88% 20%, 89% 44%, 99% 50%, 100% 97%, 91% 100%, 80% 96%, 67% 100%, 55% 96%, 42% 100%, 30% 96%, 18% 100%, 8% 96%, 0 100%, 1% 50%, 11% 44%, 12% 20%, 18% 17%);
  transition: transform 220ms ease, filter 220ms ease;
}
.machine:hover { filter: drop-shadow(0 16px 10px rgba(0, 0, 0, 0.8)); }
.machine:hover::before { transform: translateY(-4px); filter: brightness(1.2); }
.machine .codename { position: absolute; top: 118px; left: 50%; transform: translateX(-50%) rotate(-4deg); align-self: auto; white-space: nowrap; font-size: 20px; padding: 5px 9px 3px; }
.machine:nth-child(even) .codename { transform: translateX(-50%) rotate(3deg); }
.machine .codename::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 22px; background: #8d8472; }
.machine .status { align-self: center; margin-top: 0; transform: none; }
.machine:nth-child(even) .status { transform: none; }
.machine p { margin-top: 8px; max-width: 22ch; color: var(--ink-dim); }
@media (prefers-reduced-motion: reduce) { .machine::before { transition: none; } }

/* the hidden coin game: upgrade buttons that appear beside Insert coin */
.credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.coin-up { font: 18px/1 var(--pixel); letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 12px 5px; border-radius: 2px; cursor: pointer;
  color: #14110c; background: var(--amber); border: 1px solid var(--amber); box-shadow: 0 0 14px rgba(224, 162, 70, 0.35); animation: drop 280ms ease-out 1; }
.coin-up--auto { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px rgba(111, 195, 200, 0.35); }
.coin-up:disabled { background: transparent; color: var(--ink-faint); border-color: var(--line); box-shadow: none; cursor: default; }
.coin-up--reset { background: transparent; color: var(--ink-faint); border-color: transparent; box-shadow: none; font-size: 14px; }
.coin-up--reset:hover { color: var(--rose); }
.coin-tray .coin-up--lucky, .coin-tray .coin-up--lucky:disabled { color: #fff; background: linear-gradient(100deg, #5b1fa8, #b26bff, #e6c8ff, #8a3ff0, #5b1fa8) 0 0 / 300% 100%;
  border-color: #d9b3ff; box-shadow: 0 0 30px rgba(178, 107, 255, 0.95), 0 0 6px #fff; text-shadow: 0 0 6px #e6c8ff;
  animation: lucky 90ms steps(2) 12 alternate, crackle 1.4s linear 1; }
@keyframes lucky { from { transform: translateX(-2px) rotate(-1.5deg); filter: brightness(1.6); } to { transform: translateX(2px) scale(1.1) rotate(1.5deg); filter: brightness(0.9); } }
@keyframes crackle { to { background-position: -300% 0; } }
/* the lightning that strikes the page on a lucky ×10 */
.zap { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, rgba(190, 120, 255, 0.55), rgba(70, 20, 140, 0.25) 60%, transparent);
  animation: zap 850ms ease-out 1 forwards; }
.zap svg { position: absolute; left: 50%; top: 0; width: 160px; height: 100%; transform: translateX(-50%); fill: #f3e6ff; filter: drop-shadow(0 0 12px #b26bff) drop-shadow(0 0 40px #8a3ff0); }
@keyframes zap { 0% { opacity: 0; } 8% { opacity: 1; } 18% { opacity: 0.15; } 28% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .coin-tray .coin-up--lucky { animation: none; } }

/* coin game, calmer: fixed slots, no bounce, no text selection on fast clicks */
.credit { flex-direction: column; gap: 12px; }
.coin, .coin-up { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.js .coin { display: inline-block; min-width: 24ch; text-align: center; white-space: nowrap; }
/* the counter grows with the score (--s, set in site.js) but never wider than the screen; past a googol it turns gold (--g: 0 to 1 on the way to the top) */
.js .coin { font-size: max(1em, min(calc(1em * var(--s, 1)), 6.5vw)); transition: font-size 700ms cubic-bezier(.3, 1.6, .5, 1); }
@media (max-width: 560px) { .js .coin { min-width: 0; } }
.js .coin.gold { color: transparent; background: linear-gradient(100deg, #8a5a12 0%, #ffd34d 20%, #fff6c8 28%, #ffcf3f 36%, #b8791a 55%, #ffe27a 75%, #8a5a12 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 calc(4px + 18px * var(--g, 0)) rgba(255, 196, 60, calc(0.45 + 0.5 * var(--g, 0))));
  animation: bling 2.6s linear infinite, swagger calc(2.4s - 1.2s * var(--g, 0)) ease-in-out infinite alternate, var(--fx, none 1s); }
/* a new stage every hundred powers of ten past the googol (data-stage from site.js); 10 is TILT */
.js .coin.gold[data-stage="2"] { background-image: linear-gradient(100deg, #7a4a10, #ffd34d 18%, #fff 26%, #c08bff 38%, #ffcf3f 55%, #9b5cff 75%, #7a4a10);
  filter: drop-shadow(0 0 14px rgba(178, 107, 255, 0.95)) drop-shadow(0 0 3px #fff); --fx: flicker-zap 1.7s steps(1) infinite; }
.js .coin.gold[data-stage="3"] { background-image: linear-gradient(100deg, #5fb8e0, #fff 20%, #bdf3ff 35%, #7fd8ff 55%, #fff 70%, #5fb8e0);
  filter: drop-shadow(0 0 16px rgba(140, 230, 255, 0.95)) drop-shadow(0 0 3px #fff); }
.js .coin.gold[data-stage="4"] { background-image: linear-gradient(100deg, #ff3b3b, #ffb13b, #fff23b, #3bff6a, #3bd9ff, #7a5cff, #ff3bd5, #ff3b3b);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.6)); }
.js .coin.gold[data-stage="5"] { background-image: linear-gradient(0deg, #b31200, #ff4a00 30%, #ffb300 60%, #fff2a0 85%, #ffb300);
  background-size: 100% 250%; filter: drop-shadow(0 0 20px rgba(255, 90, 0, 0.95)); --fx: shake 130ms steps(2) infinite; }
.js .coin.gold[data-stage="6"] { background-image: linear-gradient(100deg, #0d6b00, #39ff14 25%, #d6ffb0 35%, #39ff14 55%, #0d6b00);
  filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.9)); --fx: flicker-zap 0.9s steps(1) infinite; }
.js .coin.gold[data-stage="7"] { background-image: linear-gradient(100deg, #fff, #ff2a6d 30%, #fff 50%, #05d9e8 70%, #fff);
  filter: drop-shadow(4px 0 #ff2a6d) drop-shadow(-4px 0 #05d9e8) drop-shadow(0 0 14px rgba(255, 255, 255, 0.6)); --fx: glitch 0.6s steps(3) infinite; }
.js .coin.gold[data-stage="8"] { background-image: linear-gradient(100deg, #2a0b6d, #ff5ef0 20%, #fff 28%, #5ec8ff 45%, #7a2cff 65%, #ffd6fb 80%, #2a0b6d);
  filter: drop-shadow(0 0 24px rgba(255, 94, 240, 0.9)) drop-shadow(0 0 50px rgba(94, 200, 255, 0.6)); }
.js .coin.gold[data-stage="9"], .js .coin.gold[data-stage="10"] { background-image: linear-gradient(100deg, #fff6c8, #fff 30%, #ffe27a 50%, #fff 70%, #fff6c8);
  filter: drop-shadow(0 0 30px #fff) drop-shadow(0 0 70px rgba(255, 230, 140, 0.9)); --fx: shake 90ms steps(2) infinite; }
@keyframes shake { from { translate: -3px 1px; } to { translate: 3px -1px; } }
@keyframes flicker-zap { 0%, 100% { opacity: 1; } 92% { opacity: 0.35; } 95% { opacity: 1; } 97% { opacity: 0.5; } }
@keyframes glitch { 0% { translate: 0 0; } 33% { translate: -5px 0; } 66% { translate: 4px 1px; } }
@keyframes bling { to { background-position: -250% 0; } }
@keyframes swagger { from { transform: rotate(calc(-1.5deg * var(--g, 0))) scale(1); } to { transform: rotate(calc(1.5deg * var(--g, 0))) scale(calc(1 + 0.06 * var(--g, 0))); } }
@media (prefers-reduced-motion: reduce) { .js .coin { transition: none; } .js .coin.gold { animation: none; } }
.coin-tray { display: grid; grid-template-columns: 13em 13em 5em; gap: 12px; justify-content: center; align-items: center; font: 18px/1 var(--pixel); }
.coin-up { animation: none; width: 100%; white-space: nowrap; overflow: hidden; padding-inline: 4px; text-align: center; }
@media (max-width: 560px) { .coin-tray { grid-template-columns: minmax(0, 13em); } .coin-up--reset { justify-self: center; width: 5em; } }

/* the coins that fall behind the page once the coin game gets going */
.coin-sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* A machine whose screen plays a real clip (from inbox/<game>/). Same glass
   as a picture. A clip of a whole game page is zoomed into its middle, so
   the text on it is not dust. */
.screen:has(video)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.75));
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.9);
}
.cabinet .screen:has(video) .screen-text { position: relative; z-index: 1; align-self: end; margin-bottom: 12%; background: rgba(6, 6, 6, 0.6); padding: 2px 10px 0;
  font-size: 24px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 1; animation: press-start 1.3s steps(1, end) infinite; }
.cabinet .screen video.clip { animation: none; transform: scale(1.75); transform-origin: 42% 38%; filter: saturate(1) brightness(0.9) contrast(1.05); }
.cabinet > a:hover .screen video.clip { filter: saturate(1.05) brightness(1.05); }
.cabinet.skin-cake .screen video.clip { transform: scale(1.2); transform-origin: 34% 49%; }   /* Cake Creator: the whole cake and its "Hooray!", not the side panel */
@media (prefers-reduced-motion: reduce) { .cabinet .screen:has(video) .screen-text { animation: none; } }
