/* iBot Spot: a 1989 store TV and a Windows 95 desktop, grounded in the real store wall.
 *
 * sx: colours come from .prism/style-lock.md, sampled off the store photos: the cream
 * wall, its red and teal stripe, the orange neon sign, the cyan hologram.
 * sx: one motion idea, things switch on as they arrive (lock: reveal-only, BootLog, Reveal, SpeechPop).
 * sx! the viewer and chat windows drag with the `translate` property; a transform there
 * fights the power-on reveal and the windows jump.
 *
 * @author Thomas G. and Sophia, SOPHIA XT LLC (sophiaxt.com)
 * @sophia-mark sx1 df5ae605af70 9a951ea58463 M0x8XszbsYVJxAEjgh9aoBK4qaYtSZxEnPB25UsK34H5kyJbWtOj_FgBdeFHjgReWh2paYcw7oVLdhrtO_ozCg
 */

/* Tokens: palette, type, timing. */
:root {
  --ink: #141210;
  --chrome: #c4c1b8;
  --chrome-hi: #f3f1ea;
  --chrome-lo: #7d7a72;
  --wall: #dccaa8;
  --wall-grain: #d3c09d;
  --red: #b64a3e;
  --red-dk: #7c2c24;
  --teal-stripe: #397575;
  --desk: #2b6e6d;
  --on-desk: #f6f2e6;
  --crt: #0b0e0d;
  --on-crt: #e9e4d6;
  --cyan: #37f2ff;
  --title: #0a246a;
  --title-2: #1f5296;
  --neon: #ffb347;
  --neon-core: #ffe7b0;
  --neon-ink: #8a3510;
  --tip: #ffffe1;
  --paper: #fbfaf5;
  --greenbar: #e0eedc;
  --focus: #ffd23f;

  --f-neon: "Tilt Neon", "Trebuchet MS", sans-serif;
  --f-vcr: "VT323", "Lucida Console", "Courier New", monospace;
  --f-ui: Tahoma, Verdana, "Segoe UI", sans-serif;
  --f-body: Verdana, Tahoma, "Segoe UI", sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --t-2xl: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  --t-vcr: clamp(1.25rem, 0.95rem + 1vw, 1.75rem);

  --ease: cubic-bezier(0.2, 0.9, 0.1, 1);
  --ease-soft: cubic-bezier(0.3, 0, 0.2, 1);
  --dur: 380ms;
  --step: 60ms;

  --bar-h: 52px;
  --gutter: clamp(16px, 4vw, 56px);
  --wide: 1240px;
}

/* Base. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: calc(var(--bar-h) + 16px); background: var(--crt); }
body {
  margin: 0;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  background: var(--crt);
  color: var(--on-crt);
  font: var(--t-md)/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h2, h3 { text-wrap: balance; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 2000;
  background: var(--tip); color: var(--ink); padding: 10px 14px; border: 2px solid var(--ink);
  font: 700 var(--t-sm) var(--f-ui);
}
.skip:focus { left: 12px; }

/* Win95 bevels: raised and sunken. */
.bevel-out, .btn, .win, .start, .task, .startmenu, .tray__btn {
  border: 2px solid;
  border-color: var(--chrome-hi) var(--ink) var(--ink) var(--chrome-hi);
  box-shadow: inset -1px -1px 0 var(--chrome-lo), inset 1px 1px 0 #fff;
}
.bevel-in, .field, .icons, .chat__log, .info__list, .map__svg, .zone img, .win__status > span, .tray {
  border: 2px solid;
  border-color: var(--chrome-lo) #fff #fff var(--chrome-lo);
  box-shadow: inset 1px 1px 0 var(--ink);
}

/* Buttons: grey Win95 keys; the red one goes somewhere. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 20px;
  background: var(--chrome); color: var(--ink);
  font: 700 0.9375rem/1.2 var(--f-ui); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; user-select: none;
}
.btn:hover { background: #d2cfc6; }
.btn:active, .btn[aria-pressed="true"] {
  border-color: var(--ink) var(--chrome-hi) var(--chrome-hi) var(--ink);
  box-shadow: inset 1px 1px 0 var(--chrome-lo);
  padding: 9px 19px 7px 21px;
}
.btn:focus-visible { outline: 1px dotted var(--ink); outline-offset: -7px; box-shadow: inset -1px -1px 0 var(--chrome-lo), inset 1px 1px 0 #fff, 0 0 0 3px var(--focus); }
.btn--go { background: var(--red); color: #fff; border-color: #e9a59c var(--ink) var(--ink) #e9a59c; box-shadow: inset -1px -1px 0 var(--red-dk), inset 1px 1px 0 #d9786c; }
.btn--go:hover { background: #c25446; }
.btn--go:focus-visible { outline-color: #fff; }
.btn--small { min-height: 44px; padding: 6px 14px; font-size: var(--t-sm); }

/* Sprites: pixel icons drawn by js/sprites.js. */
.sprite { display: inline-block; width: var(--s, 32px); height: var(--s, 32px); flex: none; }
.sprite svg { width: 100%; height: 100%; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Glitch: colour-split and sliced copies of one picture, moved by transform only.
   A failed or reduced-motion page shows the first copy and nothing else. */
.glitch { display: grid; }
.glitch > * { grid-area: 1 / 1; width: 100%; height: auto; }
.glitch__r, .glitch__c, .glitch__s1, .glitch__s2 { opacity: 0; pointer-events: none; }
.glitch__r { filter: sepia(1) saturate(9) hue-rotate(-50deg); mix-blend-mode: screen; }
.glitch__c { filter: sepia(1) saturate(9) hue-rotate(140deg); mix-blend-mode: screen; }
.glitch__s1 { clip-path: inset(16% 0 60% 0); }
.glitch__s2 { clip-path: inset(58% 0 18% 0); }

/* The hero logo glitches for a quarter second every 5.2 s. */
.glitch--logo { width: min(100%, 560px); margin-left: -2%; }
@media (prefers-reduced-motion: no-preference) {
  .glitch--logo > img:first-child { animation: g-base 5.2s steps(1, end) 2.4s infinite; }
  .glitch--logo .glitch__r { animation: g-r 5.2s steps(1, end) 2.4s infinite; }
  .glitch--logo .glitch__c { animation: g-c 5.2s steps(1, end) 2.4s infinite; }
  .glitch--logo .glitch__s1 { animation: g-s1 5.2s steps(1, end) 2.4s infinite; }
  .glitch--logo .glitch__s2 { animation: g-s2 5.2s steps(1, end) 2.4s infinite; }
}
@keyframes g-base { 0%, 90% { transform: none; } 91% { transform: translateX(-3px); } 92.5% { transform: translateX(4px) skewX(-8deg); } 94% { transform: translateX(-2px); } 95.5%, 100% { transform: none; } }
@keyframes g-r { 0%, 90% { opacity: 0; transform: none; } 90.6% { opacity: 0.9; transform: translate(-8px, 1px); } 92% { transform: translate(6px, -1px); } 93.6% { transform: translate(-4px, 0); } 95% { opacity: 0.9; transform: translate(2px, 0); } 95.6%, 100% { opacity: 0; transform: none; } }
@keyframes g-c { 0%, 90% { opacity: 0; transform: none; } 90.6% { opacity: 0.9; transform: translate(8px, -1px); } 92% { transform: translate(-6px, 1px); } 93.6% { transform: translate(4px, 0); } 95% { opacity: 0.9; transform: translate(-2px, 0); } 95.6%, 100% { opacity: 0; transform: none; } }
@keyframes g-s1 { 0%, 91% { opacity: 0; transform: none; } 91.5% { opacity: 1; transform: translateX(16px); } 93% { transform: translateX(-12px); } 94.5% { opacity: 1; transform: translateX(6px); } 95%, 100% { opacity: 0; transform: none; } }
@keyframes g-s2 { 0%, 91.8% { opacity: 0; transform: none; } 92.2% { opacity: 1; transform: translateX(-20px); } 93.8% { transform: translateX(10px); } 95.2% { opacity: 1; transform: translateX(-4px); } 95.6%, 100% { opacity: 0; transform: none; } }

/* The intro, 1.5 s: the robot face lights up (0.18 s), blinks, glitches (0.85-1.2 s),
   cuts out, and the tube opens (1.2-1.5 s). Runs in CSS so a failed script still opens the page. */
.power { display: none; }
html.intro .power { display: block; position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: hidden; }
.power__shutter { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; will-change: transform; }
.power__shutter--top { top: 0; }
.power__shutter--bottom { bottom: 0; }
.power__face {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  opacity: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
}
.glitch--face { width: min(46vmin, 300px); filter: drop-shadow(0 0 28px rgba(55, 242, 255, 0.45)); }
/* sx! the lids need their own layer: the base face is composited while its glitch waits, and paints over them otherwise. */
.face__lids { z-index: 3; will-change: transform; }
.face__lids rect { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.face__name { font: clamp(2rem, 1.2rem + 3vw, 3.25rem)/1 var(--f-neon); letter-spacing: -0.01em; }
.face__name span:first-child { color: #d9fdff; text-shadow: 0 0 10px var(--cyan), 0 0 28px #1bc6d6; }
.face__name span:last-child { color: #fff6c9; text-shadow: 0 0 10px #ffd23f, 0 0 28px #e0a800; }
.power__band {
  position: absolute; left: 0; right: 0; top: 0; height: 14vh; z-index: 2; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgba(220, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0.5) 50%, transparent);
}
.power__flash { position: absolute; inset: 0; z-index: 3; background: #dffcff; opacity: 0; }

html.intro:not(.standby) .power__face { animation: face-on 180ms var(--ease) both, face-off 120ms steps(2, end) 1160ms forwards; }
html.intro:not(.standby) .face__lids rect { animation: blink 170ms var(--ease-soft) 560ms; }
html.intro:not(.standby) .glitch--face > svg:first-child { animation: gi-base 330ms steps(1, end) 850ms forwards; }
html.intro:not(.standby) .glitch--face .glitch__r { animation: gi-r 330ms steps(1, end) 850ms forwards; }
html.intro:not(.standby) .glitch--face .glitch__c { animation: gi-c 330ms steps(1, end) 850ms forwards; }
html.intro:not(.standby) .glitch--face .glitch__s1 { animation: gi-s1 330ms steps(1, end) 850ms forwards; }
html.intro:not(.standby) .glitch--face .glitch__s2 { animation: gi-s2 330ms steps(1, end) 850ms forwards; }
html.intro:not(.standby) .power__band { animation: band 300ms linear 880ms both; }
html.intro:not(.standby) .power__flash { animation: p-flash 260ms var(--ease-soft) 1160ms both; }
html.intro:not(.standby) .power__shutter--top { animation: p-up 300ms var(--ease) 1200ms forwards; }
html.intro:not(.standby) .power__shutter--bottom { animation: p-down 300ms var(--ease) 1200ms forwards; }
@keyframes face-on { 0% { opacity: 0; transform: scale(1, 0.02); } 60% { opacity: 1; transform: scale(1, 1.06); } 100% { opacity: 1; transform: none; } }
@keyframes face-off { 0% { opacity: 1; transform: none; } 50% { opacity: 0.6; transform: scale(1.04, 0.9); } 100% { opacity: 0; transform: scale(1.1, 0.02); } }
@keyframes blink { 0%, 100% { transform: scaleY(0); } 45%, 55% { transform: scaleY(1); } }
@keyframes gi-base { 0% { transform: translateX(-6px); } 20% { transform: translateX(9px) skewX(-10deg); } 40% { transform: translateX(-3px); } 60% { transform: translateX(5px) skewX(6deg); } 80% { transform: translateX(-8px); } 100% { transform: none; } }
@keyframes gi-r { 0% { opacity: 0.95; transform: translate(-12px, 2px); } 25% { transform: translate(9px, -2px); } 50% { transform: translate(-16px, 0); } 75% { transform: translate(6px, 1px); } 100% { opacity: 0; transform: none; } }
@keyframes gi-c { 0% { opacity: 0.95; transform: translate(12px, -2px); } 25% { transform: translate(-9px, 2px); } 50% { transform: translate(16px, 0); } 75% { transform: translate(-6px, -1px); } 100% { opacity: 0; transform: none; } }
@keyframes gi-s1 { 0% { opacity: 1; transform: translateX(22px); } 30% { transform: translateX(-26px); } 60% { transform: translateX(12px); } 90% { opacity: 1; transform: translateX(-8px); } 100% { opacity: 0; transform: none; } }
@keyframes gi-s2 { 0% { opacity: 0; } 15% { opacity: 1; transform: translateX(-30px); } 45% { transform: translateX(18px); } 75% { transform: translateX(-10px); } 100% { opacity: 0; transform: none; } }
@keyframes band { 0% { opacity: 1; transform: translateY(-20vh); } 100% { opacity: 1; transform: translateY(110vh); } }
@keyframes p-up { to { transform: translateY(-101%); } }
@keyframes p-down { to { transform: translateY(101%); } }
@keyframes p-flash { 0% { opacity: 0; } 25% { opacity: 0.3; } 100% { opacity: 0; } }

/* Standby: the set is off until the visitor turns it on, which also lets the music play. */
.power__standby { display: none; }
html.intro.standby .power__standby {
  position: absolute; inset: 0; z-index: 2; pointer-events: auto;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  padding: 24px; text-align: center;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(40% 35% at 50% 50%, rgba(55, 242, 255, 0.06), transparent 70%);
}
.power__ch { font: 1.5rem/1 var(--f-vcr); letter-spacing: 0.14em; color: #6f8f8a; }
.power__btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 14px 34px;
  background: linear-gradient(180deg, #4a4642, #2b2926); color: #ece6d8;
  border: 1px solid #000; border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 3px 0 #000, 0 0 40px rgba(55, 242, 255, 0.16);
  font: 700 1.0625rem/1 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.power__btn:hover { background: linear-gradient(180deg, #57524d, #33302c); }
.power__btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 #000; }
.power__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.power__btn .led { background: #e2402c; box-shadow: 0 0 8px #e2402c; animation: standby 1.6s steps(1, end) infinite; }
@keyframes standby { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }
.power__note { max-width: 32ch; font: 1.125rem/1.4 var(--f-vcr); letter-spacing: 0.04em; color: #8fa9a4; }

/* Glass over the page: scanlines, a curved-tube vignette, a slow rolling bar. */
.crt { position: fixed; inset: 0; z-index: 990; pointer-events: none; }
.crt::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
}
.crt::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.32) 100%);
}
.crt__roll {
  position: absolute; left: 0; right: 0; top: -24vh; height: 24vh;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.04) 50%, transparent);
  animation: roll 9s linear infinite;
}
@keyframes roll { to { transform: translateY(150vh); } }
html.no-crt .crt { display: none; }

/* Shared section furniture. */
.section-head { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 14px; }
.section-sub { max-width: 58ch; font-size: var(--t-lg); line-height: 1.5; }
.neon {
  font: 400 var(--t-2xl)/1 var(--f-neon); letter-spacing: -0.01em;
  color: var(--neon-core);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.5), 0 0 10px #ff9a3c, 0 0 26px #ff7a1a, 0 0 54px rgba(255, 106, 0, 0.55);
}
.neon--cyan {
  color: #e2fdff;
  text-shadow: 0 0 2px #fff, 0 0 10px var(--cyan), 0 0 28px #1bc6d6, 0 0 54px rgba(0, 170, 170, 0.6);
}
.kicker { font: var(--t-vcr)/1.1 var(--f-vcr); color: var(--neon); letter-spacing: 0.06em; text-transform: uppercase; }

/* ============ Hero ============ */
.hero {
  position: relative;
  display: grid; gap: clamp(28px, 4vw, 56px); align-items: center;
  min-height: calc(100svh - var(--bar-h));
  padding: clamp(28px, 6vh, 72px) max(var(--gutter), calc((100% - 1360px) / 2)) clamp(48px, 8vh, 88px);
  background:
    radial-gradient(55% 55% at 72% 46%, rgba(55, 242, 255, 0.11), transparent 70%),
    radial-gradient(38% 40% at 12% 18%, rgba(255, 140, 40, 0.09), transparent 70%),
    var(--crt);
}
.hero__copy { display: grid; gap: 22px; align-content: center; }
.lead { max-width: 44ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--on-crt); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* The TV: dark plastic cabinet, bezel, 4:3 tube, side control panel. */
.tv { position: relative; display: grid; gap: 14px; justify-items: center; }
.tv::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: 26px; height: 40px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(55, 242, 255, 0.22), transparent 70%);
  filter: blur(14px);
}
.tv__body {
  width: 100%; max-width: 860px;
  display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 18px;
  padding: clamp(14px, 2vw, 24px);
  background: linear-gradient(170deg, #34312d 0%, #1c1a18 45%, #121110 100%);
  border-radius: 20px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.6), 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px #000;
}
.tv__bezel {
  display: grid; align-content: center;
  padding: clamp(10px, 1.6vw, 18px);
  background: linear-gradient(180deg, #0d0c0b, #191816);
  border-radius: 26px / 22px;
  box-shadow: inset 0 0 0 2px #000, inset 0 6px 18px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tv__screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size;
  border-radius: 9% / 11%; background: #000;
  box-shadow: 0 0 0 1px #000, 0 0 40px rgba(55, 242, 255, 0.15);
}
.tv__picture { position: absolute; inset: 0; transform-origin: 50% 50%; }
.tv__picture > img, .tv__picture > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(var(--zoom, 1.2));
}
.tv__video { opacity: 0; transition: opacity 200ms var(--ease-soft); }
.tv__video.is-playing { opacity: 1; }
.tv__static {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; opacity: 0; pointer-events: none;
}
.tv__static.is-on { opacity: 1; }
.tv__boot {
  position: absolute; inset: 0; margin: 0; padding: 9% 9%;
  background: #000; color: #a9fbe9;
  font: 4.6cqi/1.3 var(--f-vcr); letter-spacing: 0.02em;
  text-shadow: 0 0 6px rgba(55, 242, 255, 0.6);
  white-space: pre-wrap; opacity: 0;
}
.tv__boot.is-on { opacity: 1; }
.tv__osd { position: absolute; top: 7%; left: 9%; right: 9%; display: flex; justify-content: space-between; pointer-events: none; }
.tv__screen.is-booting .tv__osd, .tv__screen.is-booting .osd--label { visibility: hidden; }
.osd { font: max(1.125rem, 4.4cqi)/1 var(--f-vcr); color: #c8ff9e; letter-spacing: 0.06em; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7), 0 0 8px rgba(160, 255, 120, 0.6); }
.osd--label { position: absolute; left: 9%; bottom: 8%; right: 9%; color: #fff; text-shadow: 2px 2px 0 #000, 0 0 8px rgba(255, 255, 255, 0.5); }
.tv__glass {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(70% 50% at 28% 14%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(120% 110% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.6) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.75);
}
.tv__screen[data-on="false"] .tv__picture { opacity: 0; }
.tv__picture.is-collapsing { animation: tube-off 420ms var(--ease) forwards; }
.tv__picture.is-opening { animation: tube-on 420ms var(--ease) both; }
@keyframes tube-off { 0% { transform: none; opacity: 1; } 55% { transform: scale(1, 0.006); opacity: 1; } 100% { transform: scale(0, 0.006); opacity: 0; } }
@keyframes tube-on { 0% { transform: scale(0.02, 0.006); opacity: 1; } 45% { transform: scale(1, 0.006); } 100% { transform: none; opacity: 1; } }

.tv__panel {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  padding: 6px 0;
}
.tv__brand { font: 700 0.8125rem/1 var(--f-ui); letter-spacing: 0.14em; color: #c9c4b8; text-align: center; }
.tv__brand span { display: block; margin-top: 3px; font-weight: 400; letter-spacing: 0.32em; color: #8d877b; font-size: 0.6875rem; }
.tv__seg {
  font: 2.6rem/1 var(--f-vcr); text-align: center; color: #ff5440;
  background: #090303; padding: 6px 0 2px; border-radius: 4px;
  box-shadow: inset 0 2px 6px #000, 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 0 8px rgba(255, 70, 50, 0.8);
  font-variant-numeric: tabular-nums;
}
.tv__seg.is-off { color: #3a120d; text-shadow: none; }
.tv__keys { display: grid; gap: 8px; }
.key {
  min-height: 44px; padding: 6px 8px;
  background: linear-gradient(180deg, #4a4642, #2b2926); color: #ece6d8;
  border: 1px solid #000; border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 0 #000;
  font: 700 0.8125rem/1 var(--f-ui); letter-spacing: 0.06em; cursor: pointer;
}
.key:hover { background: linear-gradient(180deg, #57524d, #33302c); }
.key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.key--power { display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.led { width: 9px; height: 9px; border-radius: 50%; background: #36e05a; box-shadow: 0 0 8px #36e05a; }
.key--power[aria-pressed="false"] .led { background: #e2402c; box-shadow: 0 0 8px #e2402c; }
.tv__grille {
  flex: 1; min-height: 28px; border-radius: 4px;
  background: repeating-linear-gradient(to bottom, #0b0a09 0 4px, #2b2825 4px 7px);
  box-shadow: inset 0 0 0 1px #000;
}
.tv__hint { font: var(--t-vcr)/1.2 var(--f-vcr); color: #9fb7b2; letter-spacing: 0.04em; text-align: center; }
.tv__hint b { color: var(--on-crt); font-weight: 400; }
@media (max-width: 719px) {
  .tv__body { grid-template-columns: 1fr; gap: 12px; }
  .tv__panel { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0; }
  .tv__brand { flex: 1 1 100%; text-align: left; display: none; }
  .tv__seg { width: 64px; font-size: 2rem; }
  .tv__keys { flex: 1; grid-template-columns: 1fr 1fr; }
  .key--power { flex: 0 0 auto; padding: 6px 12px; }
  .tv__grille { display: none; }
}

/* ============ Desktop sections ============ */
.desk {
  position: relative;
  padding: clamp(72px, 10vh, 120px) 0 clamp(80px, 12vh, 140px);
  background-color: var(--desk);
  background-image: conic-gradient(rgba(0, 0, 0, 0.035) 25%, transparent 0 50%, rgba(0, 0, 0, 0.035) 0 75%, transparent 0);
  background-size: 4px 4px;
  color: var(--on-desk);
}
.desk .section-sub { color: var(--on-desk); }
.desk__windows {
  max-width: var(--wide); margin: clamp(32px, 5vh, 56px) auto 0; padding: 0 var(--gutter);
  display: grid; gap: 24px; align-items: start;
}
@media (min-width: 1000px) {
  .desk__windows { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 0; }
  .explorer { position: relative; z-index: 1; }
  .viewer { position: relative; z-index: 2; margin-left: -48px; margin-top: 72px; }
}

/* Win95 window chrome. */
.win {
  background: var(--chrome); color: var(--ink); padding: 3px;
  font-family: var(--f-ui);
  box-shadow: inset -1px -1px 0 var(--chrome-lo), inset 1px 1px 0 #fff, 10px 10px 0 rgba(0, 0, 0, 0.32);
}
.win__bar {
  display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 2px 3px 2px 5px;
  background: linear-gradient(90deg, var(--title), var(--title-2));
  color: #fff; font: 700 0.875rem/1.2 var(--f-ui); user-select: none;
}
.win__icon { --s: 18px; }
.win__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__ctrls { display: flex; gap: 2px; }
.win__ctrls i {
  display: grid; place-items: center; width: 22px; height: 20px;
  background: var(--chrome); color: var(--ink); font: 700 0.75rem/1 var(--f-ui); font-style: normal;
  border: 1px solid; border-color: #fff var(--ink) var(--ink) #fff;
  box-shadow: inset -1px -1px 0 var(--chrome-lo);
}
.win__ctrls i:last-child { margin-left: 2px; }
[data-drag] .win__bar { cursor: grab; }
[data-drag].is-dragging .win__bar { cursor: grabbing; }
.win__address { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: var(--t-xs); }
.field { flex: 1; min-width: 0; padding: 4px 8px; background: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__status { display: flex; gap: 3px; padding: 4px 1px 1px; font-size: 0.75rem; line-height: 1.3; }
.win__status > span { padding: 3px 8px; border-width: 1px; box-shadow: none; }
.win__status > span:first-child { flex: 1; }

/* Explorer: the store as a folder of icons. */
.icons {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 6px;
  padding: 20px 12px; background: #fff;
}
.icon {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 4px 8px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font: var(--t-xs)/1.25 var(--f-ui);
}
.icon .sprite { --s: 48px; position: relative; }
.icon__label { padding: 1px 4px; text-align: center; border: 1px dotted transparent; }
.icon[aria-selected="true"] .icon__label { background: var(--title); color: #fff; }
.icon[aria-selected="true"] .sprite::after { content: ""; position: absolute; inset: 0; background: rgba(10, 36, 106, 0.4); mix-blend-mode: multiply; }
.icon:focus-visible { outline: none; }
.icon:focus-visible .icon__label { border-color: var(--ink); outline: 3px solid var(--focus); outline-offset: 2px; }
.icon:hover .icon__label { text-decoration: underline; }

/* Viewer: one zone at a time. */
.zone { padding: 8px 6px 6px; display: grid; gap: 10px; }
.zone img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.zone h3 { font: 700 var(--t-lg)/1.2 var(--f-ui); }
.zone p { max-width: 60ch; font: var(--t-md)/1.55 var(--f-body); }
.zone .btn { justify-self: start; }
.js .zone:not(.is-active) { display: none; }
.zone.is-active img { animation: channel 260ms steps(3) both; }
@keyframes channel { 0% { opacity: 0.2; } 50% { opacity: 0.75; } 100% { opacity: 1; } }

/* ============ Walk the floor in 3D ============ */
.walk {
  padding: clamp(80px, 11vh, 130px) max(var(--gutter), calc((100% - var(--wide)) / 2));
  background:
    radial-gradient(50% 45% at 50% 55%, rgba(55, 242, 255, 0.12), transparent 70%),
    var(--crt);
}
.walk .section-head { padding: 0; }
.walk__win { margin-top: clamp(32px, 5vh, 52px); transform-origin: 50% 50%; }

/* The tube: the walkthrough iframe under a broadcast overlay. */
.walk__screen {
  position: relative; aspect-ratio: 16 / 9; margin: 4px 2px 0; overflow: hidden;
  background: #05070a; border: 2px solid; border-color: var(--chrome-lo) #fff #fff var(--chrome-lo);
  box-shadow: inset 1px 1px 0 var(--ink);
}
@media (max-width: 719px) { .walk__screen { aspect-ratio: 4 / 5; } }
.walk__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #05070a; }

/* Tuning card until the scene reports ready. */
.walk__tune {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px), #05070a;
  font: var(--t-vcr)/1 var(--f-vcr); letter-spacing: 0.14em; color: #a9fbe9; text-shadow: 0 0 8px rgba(55, 242, 255, 0.6);
  transition: opacity 260ms var(--ease-soft);
}
.walk__tune span::after { content: " ..."; }
@media (prefers-reduced-motion: no-preference) { .walk__tune span { animation: tune-blink 1s steps(2, end) infinite; } }
@keyframes tune-blink { 50% { opacity: 0.35; } }
.walk.is-ready .walk__tune { opacity: 0; pointer-events: none; }

/* HUD: corners, REC, channel, crosshair, timecode, lower third. Never takes a click. */
.hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; font-family: var(--f-vcr); color: #c8ff9e; text-shadow: 1px 1px 0 #000, 0 0 8px rgba(160, 255, 120, 0.5); }
.hud__corner { position: absolute; width: clamp(22px, 4vw, 40px); height: clamp(22px, 4vw, 40px); border: 2px solid rgba(55, 242, 255, 0.85); }
.hud__corner--tl { top: 4%; left: 3%; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 4%; right: 3%; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 4%; left: 3%; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 4%; right: 3%; border-left: 0; border-top: 0; }
.hud__rec { position: absolute; top: 6.5%; left: 6%; display: flex; align-items: center; gap: 8px; font-size: clamp(1rem, 0.8rem + 0.8vw, 1.5rem); letter-spacing: 0.1em; }
.hud__rec b { width: 12px; height: 12px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; }
@media (prefers-reduced-motion: no-preference) { .hud__rec b { animation: rec 1.2s steps(2, end) infinite; } }
@keyframes rec { 50% { opacity: 0.15; } }
.hud__ch { position: absolute; top: 6.5%; right: 6%; font-size: clamp(1rem, 0.8rem + 0.8vw, 1.5rem); letter-spacing: 0.1em; }
.hud__tc { position: absolute; bottom: 7%; right: 6%; font-size: clamp(0.95rem, 0.75rem + 0.6vw, 1.3rem); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.hud__cross { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; opacity: 0.4;
  background: linear-gradient(#37f2ff, #37f2ff) center / 2px 100% no-repeat, linear-gradient(#37f2ff, #37f2ff) center / 100% 2px no-repeat; }
.hud__lower { position: absolute; left: 6%; bottom: 7%; max-width: 64%; display: grid; gap: 4px; }
.hud__stop { justify-self: start; padding: 3px 10px; background: rgba(10, 36, 106, 0.85); color: #fff; font-size: clamp(1rem, 0.8rem + 0.8vw, 1.5rem); letter-spacing: 0.08em; text-shadow: none; }
.hud__cap { padding: 2px 10px; background: rgba(5, 7, 10, 0.7); color: #e9e4d6; font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.25rem); letter-spacing: 0.03em; }
.hud__note { position: absolute; top: 12%; left: 50%; transform: translateX(-50%); font-size: 0.875rem; letter-spacing: 0.14em; color: rgba(200, 255, 158, 0.65); white-space: nowrap; }
@media (max-width: 719px) { .hud__note { top: 13%; font-size: 0.75rem; letter-spacing: 0.1em; } .hud__lower { max-width: 88%; bottom: 8%; } .hud__tc { display: none; } }

/* The shield keeps page scroll until the visitor asks to explore. */
.walk__shield {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: rgba(5, 7, 10, 0.28); border: 0; color: #fff; cursor: pointer; font-family: var(--f-ui);
}
.walk__play {
  padding: 14px 26px; background: var(--red); color: #fff; font: 700 1.0625rem/1 var(--f-ui); letter-spacing: 0.06em;
  border: 2px solid; border-color: #e9a59c var(--ink) var(--ink) #e9a59c; box-shadow: inset -1px -1px 0 var(--red-dk), inset 1px 1px 0 #d9786c, 6px 6px 0 rgba(0, 0, 0, 0.45);
}
.walk__shield small { padding: 4px 10px; background: rgba(5, 7, 10, 0.82); font: 1.125rem/1.2 var(--f-vcr); letter-spacing: 0.06em; color: #c8ff9e; text-shadow: 1px 1px 0 #000; }
.walk__shield:hover .walk__play { background: #c25446; }
.walk__shield:focus-visible { outline: none; }
.walk__shield:focus-visible .walk__play { outline: 3px solid var(--focus); outline-offset: 3px; }
.walk.is-live .walk__shield { opacity: 0; pointer-events: none; }
.walk.is-live .hud__cross { opacity: 0; }

.walk__controls { display: flex; gap: 6px; padding: 8px 2px 6px; overflow-x: auto; scrollbar-width: thin; }
@media (min-width: 720px) { .walk__controls { flex-wrap: wrap; overflow-x: visible; } }
.walk__controls .btn { flex: none; white-space: nowrap; }
.walk__controls .btn[aria-pressed="true"]:not(.walk__toggle) { background: var(--title); color: #fff; border-color: var(--ink) var(--chrome-hi) var(--chrome-hi) var(--ink); box-shadow: inset 1px 1px 0 #000; }
.walk__controls [data-walk="night"] { margin-left: auto; }

/* ============ The back wall: printer and printout ============ */
.wall {
  position: relative; overflow: hidden;
  padding: clamp(72px, 10vh, 120px) 0 clamp(88px, 12vh, 140px);
  background-color: var(--wall);
  background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(120, 96, 60, 0.05) 7px 8px);
  color: var(--ink);
}
.stripe {
  position: absolute; left: 0; right: 0; top: clamp(180px, 26vh, 240px); height: 30px;
  background: linear-gradient(to bottom, var(--red) 0 10px, transparent 10px 18px, var(--teal-stripe) 18px 28px, transparent 28px);
  opacity: 0.95;
}
.wall .section-head { position: relative; z-index: 1; }
.wall h2 {
  font: 400 var(--t-2xl)/1 var(--f-neon); letter-spacing: -0.01em; color: var(--neon-ink);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.6), 0 0 16px rgba(255, 140, 40, 0.55), 0 0 36px rgba(255, 120, 20, 0.3);
}
.wall .section-sub { color: #3a3128; }
.section-head--wall { padding-bottom: 72px; }

.printer {
  position: relative; z-index: 1;
  width: min(760px, calc(100% - 2 * var(--gutter))); margin: 0 auto;
  transform-origin: 50% 0;
}
@media (min-width: 1000px) { .printer { margin-right: max(var(--gutter), calc((100% - var(--wide)) / 2 + 40px)); } }
.printer__top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: 92px; padding: 0 26px 18px;
  background: linear-gradient(180deg, #e7e1d2 0%, #cfc8b6 70%, #b9b19d 100%);
  border-radius: 12px 12px 4px 4px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 18px 30px -12px rgba(60, 40, 10, 0.45);
}
.printer__top::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 10px; height: 10px;
  background: #1d1a16; border-radius: 3px; box-shadow: inset 0 3px 4px #000;
}
.printer__badge { font: 1.25rem/1 var(--f-vcr); letter-spacing: 0.12em; color: #5a5245; }
.printer__lights { display: flex; gap: 8px; }
.printer__lights i { width: 10px; height: 6px; background: #4f4a40; }
.printer__lights i.on { background: #49d35a; box-shadow: 0 0 6px #49d35a; }
.printer__slot { position: relative; margin: -12px 7% 0; overflow: hidden; padding-bottom: 24px; }

.paper {
  position: relative;
  padding: 30px 44px 34px;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 14px 12px, var(--wall) 4.5px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) 12px, var(--wall) 4.5px, transparent 5px),
    repeating-linear-gradient(to bottom, transparent 0 2.25em, var(--greenbar) 2.25em 4.5em);
  background-size: 100% 24px, 100% 24px, 100% 100%;
  background-repeat: repeat-y, repeat-y, repeat;
  color: #24221e;
  font: clamp(1.125rem, 1rem + 0.45vw, 1.375rem)/2.25em var(--f-vcr);
  line-height: 1.125;
  box-shadow: 0 16px 24px -14px rgba(60, 40, 10, 0.5);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from 135deg at top, #000 90deg, #0000 0) bottom / 18px 9px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from 135deg at top, #000 90deg, #0000 0) bottom / 18px 9px repeat-x;
}
.paper::before, .paper::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 0;
  border-left: 1px dashed rgba(0, 0, 0, 0.18);
}
.paper::before { left: 28px; }
.paper::after { right: 28px; }
.paper__head { padding: 6px 0 14px; border-bottom: 2px dashed #6a655b; margin-bottom: 10px; letter-spacing: 0.06em; }
.paper__list { display: grid; }
.paper__list .line { display: grid; grid-template-columns: 1fr; padding: 10px 0; }
.paper__list dt { text-transform: uppercase; letter-spacing: 0.04em; }
.paper__list dd { color: #3d3a33; }
@media (min-width: 720px) {
  .paper__list .line { grid-template-columns: 22ch 1fr; gap: 14px; align-items: baseline; }
  .paper__list dt { position: relative; overflow: hidden; white-space: nowrap; }
  .paper__list dt::after { content: " ........................................"; color: #8b867b; }
}
.paper__foot { margin-top: 18px; padding-top: 14px; border-top: 2px dashed #6a655b; text-align: center; letter-spacing: 0.08em; }
.paper__barcode {
  height: 38px; width: 60%; margin: 16px auto 0;
  background: repeating-linear-gradient(90deg, #24221e 0 2px, transparent 2px 4px, #24221e 4px 7px, transparent 7px 8px, #24221e 8px 9px, transparent 9px 12px);
}

/* ============ Night: the greeter ============ */
.night {
  padding: clamp(80px, 11vh, 130px) max(var(--gutter), calc((100% - var(--wide)) / 2));
  background:
    radial-gradient(40% 50% at 22% 50%, rgba(55, 242, 255, 0.14), transparent 70%),
    var(--crt);
}
.greeter { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .greeter { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); } }
.greeter__copy { display: grid; gap: 22px; }
.greeter__copy > p { max-width: 56ch; font-size: var(--t-lg); line-height: 1.55; }
.mini-tv {
  position: relative; overflow: hidden; border-radius: 14px; background: #000;
  box-shadow: 0 0 0 1px #000, 0 0 60px rgba(55, 242, 255, 0.28), 0 30px 50px -24px #000;
}
.mini-tv img, .mini-tv video { width: 100%; height: auto; }
.mini-tv video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 240ms var(--ease-soft); }
.mini-tv video.is-playing { opacity: 1; }
.greeter__tv { max-width: 400px; justify-self: center; width: 100%; transform-origin: 50% 50%; }
.how { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: how; }
.how li { counter-increment: how; position: relative; padding-left: 52px; max-width: 56ch; }
.how li::before {
  content: counter(how); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: #062a2c; color: var(--cyan); border: 1px solid var(--cyan);
  font: 1.5rem/1 var(--f-vcr); box-shadow: 0 0 12px rgba(55, 242, 255, 0.45);
}
.how b { color: #fff; }
.chat { max-width: 540px; margin-top: 8px; }
.chat__log { background: #fff; padding: 10px; min-height: 160px; max-height: 280px; overflow-y: auto; font: var(--t-sm)/1.5 var(--f-body); }
.msg { width: fit-content; max-width: 88%; margin: 0 0 8px; padding: 7px 11px; border: 1px solid var(--ink); background: #e8fbfd; }
.msg--me { margin-left: auto; background: var(--tip); }
.chat__asks { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 4px 6px; }

/* ============ The arcade ============ */
.neon--pink { color: #ffe3f6; text-shadow: 0 0 2px #fff, 0 0 10px #ff5fc8, 0 0 28px #e0389f, 0 0 54px rgba(224, 56, 159, 0.6); }

/* Arcade carpet: black with neon dots and dashes, the 1990s pattern every arcade floor had. */
.arcade {
  padding: clamp(80px, 11vh, 130px) var(--gutter) clamp(88px, 12vh, 140px);
  color: var(--on-crt);
  background-color: #07060d;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(55, 242, 255, 0.34) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 75%, rgba(255, 210, 63, 0.32) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 38%, transparent 0 6px, rgba(255, 95, 200, 0.3) 6px 8px, transparent 8.5px),
    radial-gradient(circle at 28% 80%, transparent 0 4px, rgba(55, 242, 255, 0.22) 4px 5.5px, transparent 6px),
    radial-gradient(circle at 85% 15%, rgba(159, 255, 176, 0.22) 0 2px, transparent 3px);
  background-size: 120px 120px, 90px 90px, 150px 150px, 110px 110px, 170px 170px;
}
.arcade .section-head { padding: 0; }

/* The cabinet: marquee, bezel, tube, control panel. */
.cabinet {
  width: min(580px, 100%); margin: clamp(32px, 5vh, 52px) auto 0; padding-bottom: 18px;
  background: linear-gradient(90deg, #170c29, #2a1650 12%, #2a1650 88%, #170c29);
  border: 3px solid #000; border-radius: 14px 14px 6px 6px;
  box-shadow: 0 30px 60px -20px #000, 0 0 70px rgba(255, 95, 200, 0.16);
  transform-origin: 50% 50%;
}
.cabinet__marquee {
  margin: 14px 14px 0; padding: 12px 10px; text-align: center;
  font: clamp(1.75rem, 1rem + 3vw, 2.75rem)/1 var(--f-neon); letter-spacing: 0.04em; color: #fff;
  background: linear-gradient(180deg, #ff5fc8, #7a2bff); border: 2px solid #000; border-radius: 6px;
  text-shadow: 0 0 8px #fff, 0 2px 0 #3a0a4a;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.4), 0 0 34px rgba(255, 95, 200, 0.55);
}
.cabinet__marquee span { color: #d9fdff; text-shadow: 0 0 8px #37f2ff, 0 2px 0 #062a2c; }
.cabinet__bezel {
  margin: 14px; padding: clamp(10px, 3vw, 22px);
  background: #0b0b0f; border: 2px solid #000; border-radius: 10px;
  box-shadow: inset 0 0 0 4px #1d1d26, inset 0 6px 20px #000;
}
.cabinet__screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6% / 8%; background: #05070a; outline: none; cursor: pointer; }
.cabinet__screen:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.cabinet__screen canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.cabinet__glass {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(70% 50% at 28% 14%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(120% 110% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
}
.cabinet__panel {
  margin: 0 14px; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: linear-gradient(180deg, #3a2470, #1f1240); border: 2px solid #000; border-radius: 6px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15);
}
.cabinet__dirs, .cabinet__acts { display: flex; align-items: center; gap: 12px; }
/* Arcade buttons are round on every real cabinet, so these are too. */
.cab-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid #000; padding: 0;
  font: 700 0.875rem/1 var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.35), inset 0 4px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #000;
}
.cab-btn--dir { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 42%), #1f8f9e; font-size: 1.25rem; }
.cab-btn--fire { background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), transparent 42%), #c0352a; }
.cab-btn--start { width: 56px; height: 56px; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6), transparent 42%), #d9a400; color: #141210; font-size: 0.75rem; }
.cab-btn:active, .cab-btn.is-down { transform: translateY(3px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 1px 0 #000; }
.cab-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.cabinet__help { margin: 12px 14px 0; text-align: center; font: 1.125rem/1.3 var(--f-vcr); letter-spacing: 0.04em; color: #c9b8ff; }
@media (max-width: 420px) {
  .cabinet__panel { padding: 14px 12px; }
  .cab-btn { width: 58px; height: 58px; }
  .cab-btn--start { width: 50px; height: 50px; }
}

/* ============ Visit ============ */
.visit {
  max-width: var(--wide); margin: clamp(32px, 5vh, 56px) auto 0; padding: 0 var(--gutter);
  display: grid; gap: 28px; align-items: start;
}
@media (min-width: 1000px) { .visit { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.visit__side { display: grid; gap: 28px; }
.map__link { display: block; padding: 4px 1px 0; text-decoration: none; }
.map__link:focus-visible { outline-offset: -4px; }
.map__svg { width: 100%; height: auto; background: var(--crt); }
.m-road { stroke-linecap: square; fill: none; }
.m-road--main { stroke: var(--cyan); stroke-width: 9; filter: drop-shadow(0 0 6px rgba(55, 242, 255, 0.7)); }
.m-road--minor { stroke: #2f7d7b; stroke-width: 5; }
.m-label { fill: #a9fbe9; font: 22px var(--f-vcr); letter-spacing: 2px; }
.m-label--minor { fill: #5fa8a3; font-size: 18px; }
.m-city { fill: rgba(55, 242, 255, 0.1); font: 112px var(--f-vcr); letter-spacing: 8px; }
.m-scale line { stroke: #7fc9c3; stroke-width: 2; }
.m-scale text, .m-north text { fill: #7fc9c3; font: 18px var(--f-vcr); }
.m-north path { fill: #7fc9c3; }
.m-north text { text-anchor: middle; }
.m-pin__dot { fill: var(--neon); filter: drop-shadow(0 0 8px rgba(255, 160, 60, 0.95)); }
.m-pin__ring { fill: none; stroke: var(--neon); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ping 2.2s var(--ease-soft) infinite; }
@keyframes ping { 0% { transform: scale(0.35); opacity: 1; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.m-tag rect { fill: #0b0e0d; stroke: var(--neon); stroke-width: 2; }
.m-tag__name { fill: var(--neon-core); font: 26px var(--f-vcr); letter-spacing: 2px; }
.m-tag__note { fill: #a9fbe9; font: 18px var(--f-vcr); letter-spacing: 1px; }
.m-leader { stroke: var(--neon); stroke-width: 2; }

.info__list { display: grid; gap: 8px; padding: 14px 14px 16px; background: #fff; font: 1.3125rem/1.25 var(--f-vcr); }
.info__list > div { display: grid; grid-template-columns: 1fr; gap: 0; }
.info__list dt { text-transform: uppercase; color: #4a463e; font-size: 1rem; letter-spacing: 0.08em; }
@media (min-width: 520px) { .info__list > div { grid-template-columns: 116px 1fr; gap: 12px; } .info__list dt { font-size: 1.3125rem; } }
.info__go { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 2px 4px; }
.storefront { display: grid; gap: 10px; transform-origin: 50% 50%; }
.storefront figcaption { font-size: var(--t-sm); color: var(--on-desk); }

/* ============ Nostalgia: the player ============ */
.radio {
  padding: clamp(80px, 11vh, 130px) max(var(--gutter), calc((100% - var(--wide)) / 2));
  background:
    radial-gradient(45% 55% at 25% 55%, rgba(255, 95, 200, 0.12), transparent 70%),
    radial-gradient(40% 50% at 80% 40%, rgba(55, 242, 255, 0.1), transparent 70%),
    var(--crt);
}
.radio .section-head { padding: 0; }
.radio__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(32px, 5vh, 52px); }
@media (min-width: 960px) { .radio__grid { grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr); } }
.radio__cover { transform-origin: 50% 50%; }
.radio__cover img { width: 100%; height: auto; box-shadow: 0 0 0 1px #000, 0 30px 60px -24px #000, 0 0 60px rgba(255, 95, 200, 0.18); }

/* A dark 1997 media player: LCD, scrolling title, spectrum, transport, playlist. */
.amp {
  background: linear-gradient(180deg, #2c2f3a, #1b1d25); color: #d7dbe6;
  border: 2px solid; border-color: #5b6072 #0b0c10 #0b0c10 #5b6072;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.4);
  padding: 3px; font-family: var(--f-ui);
  transform-origin: 50% 50%;
}
.amp__bar {
  display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 2px 3px 2px 6px;
  background: linear-gradient(90deg, #1a2a6b, #8a3fa8); color: #fff; font: 700 0.8125rem/1 var(--f-ui); letter-spacing: 0.08em;
}
.amp__bar .sprite { --s: 16px; }
.amp__name { flex: 1; }
.amp__display {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 12px; align-items: center;
  margin: 6px; padding: 10px 12px; background: #000; border: 2px solid; border-color: #0b0c10 #5b6072 #5b6072 #0b0c10;
}
.amp__time { grid-row: 1 / 3; font: 2.75rem/1 var(--f-vcr); color: #36e05a; text-shadow: 0 0 8px rgba(54, 224, 90, 0.6); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.amp__info { min-width: 0; }
.amp__marquee { overflow: hidden; white-space: nowrap; font: 1.375rem/1.1 var(--f-vcr); color: #36e05a; letter-spacing: 0.04em; }
.amp__marquee span { display: inline-block; padding-right: 0; }
@media (prefers-reduced-motion: no-preference) { .amp__marquee span { animation: marquee 18s linear infinite; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.amp__meta { font: 1rem/1 var(--f-vcr); color: #1f9e48; letter-spacing: 0.06em; }
.amp__viz { grid-column: 2; width: 150px; height: 40px; image-rendering: pixelated; justify-self: start; }
.amp__seek { margin: 0 6px; height: 8px; background: #0b0c10; border: 1px solid #000; }
.amp__seek-fill { height: 100%; background: linear-gradient(90deg, #36e05a, #ffd23f); transform-origin: 0 50%; transform: scaleX(0); }
.amp__controls { display: flex; gap: 6px; padding: 8px 6px; }
.amp__btn {
  min-width: 52px; min-height: 44px; padding: 0 12px; cursor: pointer;
  background: linear-gradient(180deg, #4b5063, #2a2d38); color: #e9ecf3; font-size: 1.125rem;
  border: 2px solid; border-color: #6c7286 #0b0c10 #0b0c10 #6c7286;
}
.amp__btn:active { border-color: #0b0c10 #6c7286 #6c7286 #0b0c10; }
.amp__btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.amp__btn--play { min-width: 72px; }
.amp__btn .i-pause, .amp__btn--play.is-playing .i-play { display: none; }
.amp__btn--play.is-playing .i-pause { display: inline; }
.amp__list {
  list-style: none; margin: 0 6px; padding: 4px 0; max-height: 360px; overflow-y: auto;
  background: #000; border: 2px solid; border-color: #0b0c10 #5b6072 #5b6072 #0b0c10;
  font: 1.25rem/1.2 var(--f-vcr);
}
.amp__list li { display: flex; align-items: stretch; }
.amp__list button {
  flex: 1; display: flex; gap: 10px; align-items: center; min-height: 40px; padding: 4px 10px; min-width: 0;
  background: none; border: 0; color: #36e05a; font: inherit; text-align: left; cursor: pointer;
}
.amp__list button:hover { background: #10261a; }
.amp__list button[aria-current="true"] { background: #1a3fa0; color: #fff; }
.amp__list button:focus-visible { outline: 1px dotted #fff; outline-offset: -3px; }
.amp__n { min-width: 2.2ch; text-align: right; color: inherit; opacity: 0.8; }
.amp__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amp__d { font-variant-numeric: tabular-nums; opacity: 0.85; }
.amp__get {
  display: grid; place-items: center; min-width: 52px; padding: 0 8px;
  color: #ffd23f; font: 1rem/1 var(--f-vcr); letter-spacing: 0.06em; text-decoration: none; border-left: 1px solid #1c1f28;
}
.amp__get:hover { background: #2a2208; }
.amp__get:focus-visible { outline: 1px dotted #ffd23f; outline-offset: -3px; }
.amp__downloads { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 6px 6px; }
.amp__credit { padding: 4px 8px 8px; font: 1.0625rem/1.4 var(--f-vcr); color: #a7adbf; letter-spacing: 0.03em; }

/* ============ It's now safe ============ */
.safe {
  display: grid; place-content: center; gap: 18px; text-align: center;
  min-height: 72vh; padding: 96px var(--gutter) 64px;
  background: #000;
}
.safe__line { font: clamp(1.75rem, 1rem + 3.4vw, 3.5rem)/1.15 var(--f-vcr); color: #ff8c1a; letter-spacing: 0.02em; text-shadow: 0 0 10px rgba(255, 120, 0, 0.45); }
.safe__sub { font: var(--t-vcr)/1.3 var(--f-vcr); color: var(--neon); }
.safe__small { margin-top: 48px; display: grid; gap: 8px; font-size: var(--t-xs); color: #b8b2a4; }
.safe__small a { color: #e9e4d6; }

/* ============ Taskbar ============ */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; align-items: center; gap: 6px;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  padding: 3px 4px calc(3px + env(safe-area-inset-bottom));
  background: var(--chrome); color: var(--ink);
  border-top: 1px solid var(--chrome-hi); box-shadow: inset 0 1px 0 #fff;
  font-family: var(--f-ui);
}
.start {
  display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 8px;
  background: var(--chrome); font: 700 1rem/1 var(--f-ui); cursor: pointer;
}
.start .sprite { --s: 26px; }
.start[aria-expanded="true"] { border-color: var(--ink) var(--chrome-hi) var(--chrome-hi) var(--ink); box-shadow: inset 1px 1px 0 var(--chrome-lo); }
.start:focus-visible { outline: 1px dotted var(--ink); outline-offset: -6px; box-shadow: 0 0 0 3px var(--focus); }
.startmenu {
  position: fixed; left: 2px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) - 3px); z-index: 910;
  display: flex; width: min(310px, calc(100vw - 4px));
  background: var(--chrome); padding: 2px;
  transform-origin: 0 100%;
}
.startmenu[hidden] { display: none; }
.startmenu.is-open { animation: menu-up 160ms steps(4) both; }
@keyframes menu-up { from { transform: scaleY(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
.startmenu__band {
  writing-mode: vertical-rl; transform: rotate(180deg);
  width: 34px; padding: 10px 0; flex: none;
  background: linear-gradient(0deg, var(--title), #5b5b5b);
  color: #c9c9c9; font: 400 1.375rem/34px var(--f-ui); letter-spacing: 0.02em;
}
.startmenu__band b { color: #fff; font-weight: 700; margin-bottom: 2px; }
.startmenu ul { flex: 1; list-style: none; margin: 0; padding: 2px; }
.startmenu a {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 4px 14px 4px 8px;
  color: var(--ink); text-decoration: none; font: 0.9375rem/1.2 var(--f-ui);
}
.startmenu a .sprite { --s: 32px; }
.startmenu a:hover, .startmenu a:focus-visible { background: var(--title); color: #fff; outline: none; }
.startmenu .sep { height: 2px; margin: 4px 2px; border-top: 1px solid var(--chrome-lo); border-bottom: 1px solid #fff; }
.tasks { flex: 1; display: flex; gap: 4px; min-width: 0; overflow: hidden; }
.task {
  display: flex; align-items: center; flex: 0 1 168px; min-width: 0; height: 40px; padding: 0 10px;
  background: var(--chrome); font: 0.8125rem/1 var(--f-ui);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.task.is-active {
  font-weight: 700;
  border-color: var(--ink) var(--chrome-hi) var(--chrome-hi) var(--ink); box-shadow: inset 1px 1px 0 var(--chrome-lo);
  background-image: conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0); background-size: 2px 2px;
}
@media (max-width: 759px) { .tasks { display: none; } }
.tray { margin-left: auto; display: flex; align-items: center; gap: 2px; height: 46px; padding: 0 8px 0 2px; border-width: 1px; box-shadow: none; }
.tray__btn {
  display: grid; place-items: center; width: 44px; height: 42px; padding: 0;
  background: transparent; border-color: transparent; box-shadow: none; cursor: pointer;
}
.tray__btn .sprite { --s: 24px; }
.tray__btn:hover { border-color: var(--chrome-hi) var(--ink) var(--ink) var(--chrome-hi); }
.tray__btn[aria-pressed="false"] .sprite { opacity: 0.55; }
.tray__btn[aria-expanded="true"] { border-color: var(--ink) var(--chrome-hi) var(--chrome-hi) var(--ink); }

/* The tray volume popup. */
.volpop {
  position: fixed; right: 6px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 2px); z-index: 920;
  width: min(250px, calc(100vw - 12px)); padding: 10px 12px 10px;
  background: var(--chrome); color: var(--ink); font: var(--t-xs)/1.3 var(--f-ui);
  border: 2px solid; border-color: var(--chrome-hi) var(--ink) var(--ink) var(--chrome-hi);
  box-shadow: inset -1px -1px 0 var(--chrome-lo), inset 1px 1px 0 #fff, 6px 6px 0 rgba(0, 0, 0, 0.35);
}
.volpop[hidden] { display: none; }
.volpop__title { font-weight: 700; margin-bottom: 8px; }
.volpop__row { display: flex; align-items: center; gap: 8px; }
.volpop__row .sprite { --s: 20px; }
.volpop__row--foot { justify-content: space-between; margin-top: 8px; }
.volpop__mute { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.volpop__mute input { width: 18px; height: 18px; margin: 0; accent-color: var(--title); }
.volpop__readout { font: 1.25rem/1 var(--f-vcr); min-width: 4ch; text-align: right; font-variant-numeric: tabular-nums; }
.volpop__slider { flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.volpop__slider::-webkit-slider-runnable-track { height: 4px; background: #fff; border: 1px solid; border-color: var(--chrome-lo) #fff #fff var(--chrome-lo); box-shadow: inset 1px 1px 0 var(--ink); }
.volpop__slider::-moz-range-track { height: 4px; background: #fff; border: 1px solid; border-color: var(--chrome-lo) #fff #fff var(--chrome-lo); }
.volpop__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 12px; height: 24px; margin-top: -11px;
  background: var(--chrome); border: 2px solid; border-color: #fff var(--ink) var(--ink) #fff; box-shadow: inset -1px -1px 0 var(--chrome-lo);
}
.volpop__slider::-moz-range-thumb { width: 10px; height: 22px; border-radius: 0; background: var(--chrome); border: 2px solid; border-color: #fff var(--ink) var(--ink) #fff; }
.volpop__slider:focus-visible { outline: 1px dotted var(--ink); outline-offset: 2px; }

/* The tray balloon: a Win98 tooltip pointing at the speaker. */
.balloon {
  position: fixed; right: 54px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 14px); z-index: 915;
  width: min(300px, calc(100vw - 24px)); padding: 10px 30px 12px 12px;
  background: var(--tip); color: var(--ink); border: 1px solid #000; border-radius: 8px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35); font: var(--t-xs)/1.45 var(--f-body);
}
.balloon[hidden] { display: none; }
.balloon::after {
  content: ""; position: absolute; right: 84px; bottom: -11px; width: 18px; height: 18px;
  background: var(--tip); border-right: 1px solid #000; border-bottom: 1px solid #000;
  transform: skewX(-30deg) rotate(45deg); transform-origin: center;
}
.balloon__title { font-weight: 700; margin-bottom: 2px; }
.balloon__x {
  position: absolute; top: 0; right: 0; width: 40px; height: 40px; padding: 0;
  background: none; border: 0; font: 700 1rem/1 var(--f-ui); color: var(--ink); cursor: pointer;
}
.balloon__x:focus-visible { outline: 1px dotted var(--ink); }
@media (max-width: 520px) { .balloon { right: 12px; } .balloon::after { right: 126px; } }
.tray__btn:focus-visible { outline: 1px dotted var(--ink); outline-offset: -4px; box-shadow: 0 0 0 3px var(--focus); }
.tray__clock { min-width: 66px; padding-left: 6px; text-align: right; font: 0.8125rem/1 var(--f-ui); font-variant-numeric: tabular-nums; }

/* The helper that pops up once. */
.helper {
  position: fixed; right: 12px; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 12px); z-index: 950;
  display: flex; align-items: flex-end; gap: 6px; max-width: min(380px, calc(100vw - 24px));
}
.helper[hidden] { display: none; }
.helper__bot { --s: 64px; order: 2; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45)); }
.helper__bubble {
  position: relative; order: 1; margin-bottom: 40px;
  padding: 12px 14px; background: var(--tip); color: var(--ink);
  border: 1px solid #000; border-radius: 10px; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  font: var(--t-sm)/1.45 var(--f-body);
  transform-origin: 100% 100%;
}
.helper__bubble::after {
  content: ""; position: absolute; right: -11px; bottom: 14px; width: 18px; height: 18px;
  background: var(--tip); border-right: 1px solid #000; border-bottom: 1px solid #000;
  transform: rotate(-45deg) skew(10deg, 10deg);
}
.helper.is-in .helper__bubble { animation: pop 380ms var(--ease) both; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.helper__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 520px) {
  .helper { max-width: calc(100vw - 24px); }
  .helper__bot { --s: 48px; }
  .helper__bubble { margin-bottom: 30px; font-size: var(--t-xs); padding: 10px 12px; }
}

/* Reveal: windows and screens power on; words flicker on like the sign. */
.reveals .reveal { opacity: 0; }
.reveals .reveal:not(h2, p, li) { transform: scale(0.985, 0.04); }
.reveals .reveal.is-in {
  opacity: 1; transform: none;
  transition-property: transform, opacity;
  transition-duration: var(--dur), 140ms;
  transition-timing-function: var(--ease), var(--ease-soft);
  transition-delay: calc(var(--i, 0) * var(--step));
}
.reveals :is(h2, p, li).reveal.is-in { animation: flicker 460ms steps(1, end) calc(var(--i, 0) * var(--step)) both; }
@keyframes flicker { 0% { opacity: 0; } 18% { opacity: 0.85; } 28% { opacity: 0.1; } 44% { opacity: 1; } 56% { opacity: 0.35; } 70%, 100% { opacity: 1; } }
.reveals .printer .paper { transform: translateY(-101%); }
.reveals .printer.is-in .paper { transform: none; transition-property: transform; transition-duration: 640ms; transition-timing-function: steps(12, end); transition-delay: 220ms; }

/* Reduced motion: everything arrives at once and holds still. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crt__roll, .m-pin__ring { animation: none; display: none; }
  .reveals .reveal, .reveals .reveal:not(h2, p, li) { opacity: 1; transform: none; }
  .reveals .reveal.is-in, .reveals :is(h2, p, li).reveal.is-in { animation: none; transition: none; }
  .reveals .printer .paper, .reveals .printer.is-in .paper { transform: none; transition: none; }
  .zone.is-active img, .startmenu.is-open, .helper.is-in .helper__bubble { animation: none; }
  .tv__picture.is-collapsing, .tv__picture.is-opening { animation-duration: 1ms; }
}
