/* =========================================================================
   Bone Valley: the official game site
   One stylesheet for every page. Re-skin by editing :root only.
   ========================================================================= */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "VT323"; src: url("../fonts/vt323-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* colour: brand */
  --bg: #12161A;            /* valley-night slate, ~60% */
  --surface: #1C2227;       /* cards, frames, signup panel, ~30% */
  --line: #2A323A;          /* 1px depth borders */
  --field-line: #6E7479;    /* input edges, 3:1 against the surface */
  --text: #EDE8DC;          /* warm bone */
  --muted: #B4B0A4;         /* captions only */
  --amber: #E8A33D;         /* the one saturated colour */
  --amber-hover: #D3902B;   /* amber, slightly darkened */
  --on-amber: #12161A;
  --phosphor: #B7D3AE;      /* terminal text and labels near it */
  --screen: #0B0F0C;        /* terminal glass */
  --case: #CFC4A8;          /* terminal casing, artwork only */
  --case-shade: #B8AC8E;
  --wire: #E8A33D;          /* [WIRE THIS FORM] note */

  /* type */
  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-term: "VT323", "Courier New", monospace;
  --t14: 14px; --t18: 18px; --t24: 24px; --t32: 32px; --t48: 48px; --t72: 72px;

  /* space: one scale */
  --s8: 8px; --s16: 16px; --s24: 24px; --s40: 40px; --s64: 64px; --s96: 96px; --s160: 160px;
  --section: var(--s64);    /* 96px from 900px up */
  --gutter: var(--s24);
  --max: 1200px;

  /* shape */
  --radius: 4px;
  --shot-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.6);
}
@media (min-width: 900px) { :root { --section: var(--s96); --gutter: var(--s40); } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: var(--t18); } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.015em; margin: 0; font-kerning: normal; }
p { margin: 0; }
a { color: var(--amber); text-underline-offset: 4px; }
a:hover { color: var(--text); text-decoration-color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s16); top: -64px; z-index: 50; background: var(--amber); color: var(--on-amber); padding: var(--s8) var(--s16); border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: var(--s16); }

/* CONCEPT tag: every placeholder image carries one */
.concept {
  font-family: var(--font-term); font-size: var(--t18); line-height: 1; letter-spacing: 0.04em;
  color: var(--text); background: rgba(18, 22, 26, 0.82); border: 1px solid var(--line);
  padding: 4px var(--s8) 3px; border-radius: 0; pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s8);
  min-height: 56px; padding: 0 var(--s24);
  font-family: var(--font-body); font-weight: 600; font-size: var(--t18); line-height: 1;
  color: var(--on-amber); background: var(--amber); border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 0 var(--text);
  transition: transform 140ms cubic-bezier(.2,.8,.3,1.3), box-shadow 140ms cubic-bezier(.2,.8,.3,1.3), background-color 140ms;
}
.btn:hover { color: var(--on-amber); background: var(--amber-hover); transform: translate(-4px, -4px); box-shadow: 4px 4px 0 0 var(--text); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 0 var(--text); transition-duration: 60ms; }
.btn--small { min-height: 40px; padding: 0 var(--s16); font-size: var(--t18); }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s24); min-height: 72px; }
.nav-logo { display: block; width: 168px; }
.nav-links { display: flex; align-items: center; gap: var(--s24); }
.nav-links a:not(.btn) { display: none; color: var(--text); text-decoration: none; font-weight: 600; padding: var(--s8) 0; background: linear-gradient(var(--amber), var(--amber)) left bottom / 0 2px no-repeat; transition: background-size 200ms ease; }
.nav-links a:not(.btn):hover { background-size: 100% 2px; }
@media (min-width: 900px) { .nav-links a:not(.btn) { display: inline-block; } .nav-logo { width: 200px; } }

/* =========================================================================
   1. HERO
   ========================================================================= */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero-media { position: relative; height: min(97vw, 62svh); min-height: 320px; overflow: hidden; }
/* phone: the slice is sized so the truck door and the far figure both stay in frame */
/* the stage keeps the frame's aspect so the lamp glow and fog stay pinned to the art */
.hero-stage { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 1672 / 815; transform: translateX(-53%); }
.hero-stage > picture, .hero-stage > picture img { width: 100%; height: 100%; }
.hero-stage img { object-fit: cover; }
.hero-lamp { position: absolute; width: 2.6%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 168, 0.95) 0 18%, rgba(255, 190, 96, 0.45) 38%, rgba(255, 170, 70, 0) 70%);
  mix-blend-mode: screen; animation: flicker 7.3s infinite steps(1, end); }
/* roof lamps on the truck, as % of the 1672x815 frame */
.hero-lamp:nth-of-type(1) { left: 12.4%; top: 30.6%; }
.hero-lamp:nth-of-type(2) { left: 22.3%; top: 29.6%; animation-delay: -2.1s; }
.hero-lamp:nth-of-type(3) { left: 24.6%; top: 29.6%; animation-delay: -4.6s; animation-duration: 9.1s; }
@keyframes flicker {
  0%, 100% { opacity: 0.7; } 8% { opacity: 0.55; } 9% { opacity: 0.74; } 41% { opacity: 0.66; }
  42% { opacity: 0.32; } 43% { opacity: 0.7; } 44% { opacity: 0.48; } 46% { opacity: 0.72; } 78% { opacity: 0.62; }
}
.hero-fog { position: absolute; left: 0; width: 200%; background: url("../img/fog.webp") left top / 50% 100% repeat-x; pointer-events: none; will-change: transform; }
.hero-fog--far { top: 40%; height: 26%; opacity: 0.32; animation: drift 150s linear infinite; }
.hero-fog--near { top: 52%; height: 34%; opacity: 0.22; animation: drift 95s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(18, 22, 26, 0.55), rgba(18, 22, 26, 0) 22%),
    linear-gradient(to bottom, rgba(18, 22, 26, 0) 55%, rgba(18, 22, 26, 0.75) 82%, #12161A 100%); }
.hero-tag { position: absolute; z-index: 3; right: var(--gutter); top: 80px; }
.hero-copy { position: relative; z-index: 2; margin-top: -40px; padding-bottom: var(--s64); }
.hero-logo { width: min(88%, 400px); }
.hero-logo img { width: 100%; }
.hero-line { margin-top: var(--s24); font-size: var(--t24); line-height: 1.35; max-width: 30ch; }
.hero-kicker { margin-top: var(--s16); color: var(--muted); font-size: var(--t18); }
.hero-actions { margin-top: var(--s24); }

@media (min-width: 900px) {
  .hero { height: 100svh; min-height: 640px; max-height: 1100px; }
  .hero-media { position: absolute; inset: 0; height: auto; }
  .hero-stage { top: 50%; left: 50%; height: auto; width: max(100vw, 205.2svh, 1313px); transform: translate(-50%, -50%); }
  .hero-media::after {
    background:
      radial-gradient(ellipse 60% 70% at 0% 0%, rgba(18, 22, 26, 0.78), rgba(18, 22, 26, 0) 70%),
      radial-gradient(ellipse 55% 60% at 0% 100%, rgba(18, 22, 26, 0.7), rgba(18, 22, 26, 0) 75%),
      linear-gradient(to bottom, rgba(18, 22, 26, 0.5), rgba(18, 22, 26, 0) 16%),
      linear-gradient(to bottom, rgba(18, 22, 26, 0) 50%, rgba(18, 22, 26, 0.8) 80%, #12161A 100%);
  }
  .hero-inner { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: 1fr auto; padding-top: var(--s96); padding-bottom: var(--s96); }
  .hero-copy { margin-top: 0; padding-bottom: 0; display: contents; }
  .hero-logo { width: clamp(320px, 31vw, 480px); align-self: start; margin-top: var(--s24); }
  .hero-bottom { align-self: end; }
  .hero-line { margin-top: 0; font-size: var(--t32); line-height: 1.25; max-width: 30ch; }
  .hero-tag { top: auto; bottom: var(--s96); }
}

/* =========================================================================
   2. SCREENSHOTS + THREE POINTS
   ========================================================================= */
.valley { padding: var(--section) 0 0; }
.valley-head h2 { font-size: var(--t48); }
.valley-head p { margin-top: var(--s16); max-width: 36ch; }
.shots { display: grid; gap: var(--s40); margin-top: var(--s40); }
.shot { margin: 0; }
.shot-link { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shot-shadow); transition: border-color 160ms; }
.shot-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.shot-link .concept { position: absolute; left: var(--s16); top: var(--s16); }
.shot-open { position: absolute; right: var(--s16); bottom: var(--s16); font-family: var(--font-term); font-size: var(--t18); line-height: 1; color: var(--on-amber); background: var(--amber); padding: 4px var(--s8) 3px; transform: translateY(calc(100% + var(--s16) + 2px)); transition: transform 200ms cubic-bezier(.2,.8,.3,1.2); }
.shot-link:hover, .shot-link:focus-visible { border-color: var(--amber); }
.shot-link:hover img, .shot-link:focus-visible img { transform: scale(1.025); }
.shot-link:hover .shot-open, .shot-link:focus-visible .shot-open { transform: translateY(0); }
.shot figcaption { margin-top: var(--s8); color: var(--muted); font-size: var(--t14); }
.shot--tall .shot-link { aspect-ratio: 1 / 1; }
.shot--tall .shot-link img { object-position: 28% 50%; }

@media (min-width: 900px) {
  .valley-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--s24); row-gap: var(--s64); align-items: start; }
  .valley-head { grid-column: 1 / 5; align-self: end; padding-bottom: var(--s40); }
  .shots { display: contents; }
  .shot--dig { grid-column: 5 / 13; }
  .shot--ruins { grid-column: 1 / 9; }
  .shot--dusk { grid-column: 9 / 13; margin-top: var(--s96); }
  .shot--camp { grid-column: 3 / 11; }
}

.points { list-style: none; margin: var(--s96) 0 0; padding: 0; }
.point { padding: var(--s24) 0 var(--s40); border-top: 1px solid var(--line); position: relative; }
.point::before { content: ""; position: absolute; left: 0; top: -1px; width: 96px; height: 2px; background: var(--amber); }
.point h3 { font-size: var(--t48); letter-spacing: -0.025em; }
.point p { margin-top: var(--s16); max-width: 40ch; }
@media (min-width: 900px) {
  .points { margin-top: var(--s160); }
  .point { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--s24); align-items: end; padding: var(--s40) 0 var(--s64); }
  .point h3 { grid-column: 1 / 9; font-size: var(--t72); }
  .point p { grid-column: 9 / 13; margin: 0; padding-bottom: var(--s8); }
}

/* =========================================================================
   3. AMBERLINE SIGNUP TERMINAL
   ========================================================================= */
.signup { padding: var(--section) 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s24); display: grid; gap: var(--s40); }
@media (min-width: 900px) { .panel { grid-template-columns: 5fr 7fr; gap: var(--s64); padding: var(--s64); margin-left: calc(100% / 12); align-items: start; } }

/* the green screen: curved glass, restrained scanlines on the glass only */
.screen {
  position: relative; background: var(--screen); color: var(--phosphor);
  font-family: var(--font-term); font-size: var(--t24); line-height: 1.15;
  border-radius: 18px / 26px; padding: var(--s24);
  box-shadow: inset 0 0 0 1px #000, inset 0 0 48px rgba(0, 0, 0, 0.9), inset 0 0 120px rgba(183, 211, 174, 0.05);
  text-shadow: 0 0 6px rgba(183, 211, 174, 0.35);
  overflow: hidden; min-height: 280px; font-variant-ligatures: none;
}
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.22) 2px 3px),
              radial-gradient(ellipse at 50% 45%, rgba(183, 211, 174, 0.06), rgba(0, 0, 0, 0) 65%); }
.screen p { margin: 0; white-space: pre-wrap; min-height: 1.15em; }
.panel .screen { font-size: var(--t18); padding: var(--s24) var(--s16); }
@media (min-width: 600px) { .panel .screen { font-size: var(--t24); padding: var(--s24); } }
.screen .dim { opacity: 0.72; }
.cursor { display: inline-block; width: 0.55em; height: 0.9em; background: var(--phosphor); vertical-align: -0.1em; animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.js [data-boot] .boot-line { visibility: hidden; }
.js [data-boot] .boot-line.on { visibility: visible; }

.recruit-mark { width: 56px; color: var(--phosphor); }
.recruit h2 { margin-top: var(--s24); font-size: var(--t32); color: var(--phosphor); max-width: 18ch; }
.recruit-body { margin-top: var(--s16); max-width: 46ch; }
@media (min-width: 900px) { .recruit h2 { font-size: var(--t48); } }

.form { margin-top: var(--s40); }
.form label { display: block; font-weight: 600; margin-bottom: var(--s8); }
.form-row { display: flex; flex-direction: column; gap: var(--s16); }
@media (min-width: 600px) { .form-row { flex-direction: row; } .form-row input { flex: 1; } }
.form input[type="email"] {
  width: 100%; min-height: 56px; padding: 0 var(--s16);
  font: inherit; font-size: var(--t18); color: var(--text);
  background: var(--bg); border: 1px solid var(--field-line); border-radius: var(--radius);
}
.form input[type="email"]::placeholder { color: var(--muted); }
.form input[type="email"]:focus { outline: 2px solid var(--amber); outline-offset: 2px; border-color: var(--amber); }
.form input[aria-invalid="true"] { border-color: var(--amber); }
.form-note { margin-top: var(--s16); color: var(--muted); font-size: var(--t14); max-width: 52ch; }
.form-status { margin-top: var(--s16); min-height: 1.55em; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--phosphor); }
.form-status[data-state="error"] { color: var(--amber); }
.wire-note { margin-top: var(--s16); padding: var(--s8) var(--s16); border: 1px dashed var(--wire); color: var(--wire); font-family: var(--font-body); font-weight: 600; font-size: var(--t14); }

/* =========================================================================
   4. LINKS ROW
   ========================================================================= */
.links { padding: var(--section) 0; border-top: 1px solid var(--line); }
.links-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s64); }
@media (min-width: 900px) { .links-list { grid-template-columns: 7fr 5fr; gap: var(--s24); } }
.big-link {
  font-family: var(--font-display); font-weight: 800; font-size: var(--t32); line-height: 1.15; letter-spacing: -0.015em;
  color: var(--text); text-decoration: underline; text-decoration-color: var(--amber);
  text-decoration-thickness: 2px; text-underline-offset: 10px;
  transition: text-decoration-thickness 180ms ease, text-underline-offset 180ms ease;
}
.big-link:hover, .big-link:focus-visible { color: var(--text); text-decoration-thickness: 8px; text-underline-offset: 4px; }
@media (min-width: 900px) { .big-link { font-size: var(--t48); } }
.links-list p { margin-top: var(--s24); color: var(--muted); font-size: var(--t18); max-width: 38ch; }

/* =========================================================================
   5. FOOTER
   ========================================================================= */
.footer { padding: var(--s64) 0 var(--s40); border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s24); }
.footer-logo { width: 160px; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s24); list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); font-weight: 600; text-decoration-color: var(--amber); }
.footer-links a:hover { text-decoration-thickness: 3px; }
.legal { margin-top: var(--s40); color: var(--muted); font-size: var(--t14); max-width: 70ch; }
.legal a { color: var(--muted); }

/* lightbox */
.lightbox { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); max-width: min(1400px, 94vw); max-height: 92vh; color: var(--text); }
.lightbox::backdrop { background: rgba(8, 10, 12, 0.88); }
.lightbox img { width: 100%; height: auto; max-height: calc(92vh - 64px); object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s16); padding: var(--s8) var(--s16); min-height: 56px; }
.lightbox-bar p { color: var(--muted); font-size: var(--t14); }
.lightbox-close { font: inherit; font-weight: 600; color: var(--text); background: none; border: 1px solid var(--line); border-radius: var(--radius); min-height: 40px; padding: 0 var(--s16); cursor: pointer; }
.lightbox-close:hover { border-color: var(--amber); color: var(--amber); }

/* =========================================================================
   DEPOT OFFICE (depot.html)
   ========================================================================= */
.depot { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0d0f10; }
.depot-scene { position: absolute; inset: 0; transform-origin: 50% 50%; transition: transform 950ms cubic-bezier(.65,0,.3,1); }
.depot-scene svg { width: 100%; height: 100%; }
.depot-screen { cursor: pointer; outline: none; }
.depot-screen .glass { transition: fill 200ms; }
.depot-screen:hover .glass, .depot-screen:focus-visible .glass { fill: #142017; }
.depot-screen:focus-visible .ring { stroke: var(--amber); }
.depot-screen .prompt { animation: blink 1.06s steps(1) infinite; }
.depot-fade { position: absolute; inset: 0; background: var(--screen); opacity: 0; pointer-events: none; transition: opacity 400ms 600ms; }
.depot.is-zooming .depot-fade { opacity: 1; }
.depot-ui { transition: opacity 250ms; }
.depot.is-zooming .depot-ui { opacity: 0; }
.depot-ui { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.depot-ui > * { pointer-events: auto; }
.depot-top { display: flex; justify-content: space-between; align-items: center; gap: var(--s16); min-height: 72px; }
.depot-back { color: var(--text); font-weight: 600; text-decoration-color: var(--amber); }
.depot-ui .concept { position: absolute; right: var(--gutter); top: 80px; }
.depot-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s96) 0 var(--s40); background: linear-gradient(to bottom, rgba(18, 22, 26, 0), rgba(18, 22, 26, 0.85) 45%, #12161A); }
.depot-bottom h1 { font-size: var(--t32); }
.depot-bottom p { margin-top: var(--s8); max-width: 44ch; }
.depot-bottom .btn { margin-top: var(--s24); }
@media (min-width: 900px) { .depot-bottom h1 { font-size: var(--t48); } }

/* =========================================================================
   TERMINAL STORE (store.html)
   ========================================================================= */
.store-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s16); min-height: 72px; }
.store-main { padding: var(--s24) 0 var(--section); }
.crt { background: linear-gradient(to bottom, var(--case), var(--case-shade)); padding: var(--s16); border-radius: 0; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.crt .screen { min-height: 0; padding: var(--s24) var(--s16); font-size: var(--t24); }
.crt-plate, .crt-keys, .crt-vents { display: none; }
.catalogue h1, .catalogue h2 { font-family: var(--font-term); font-weight: 400; letter-spacing: 0.02em; line-height: 1.1; }
.catalogue h1 { font-size: var(--t32); }
.catalogue h2 { font-size: var(--t32); margin-top: var(--s40); }
.catalogue hr { border: 0; border-top: 2px dashed rgba(183, 211, 174, 0.5); margin: var(--s16) 0; }
.catalogue p + p { margin-top: var(--s8); }
.entries { list-style: none; margin: var(--s24) 0 0; padding: 0; display: grid; gap: var(--s24); }
.entry { border: 1px solid rgba(183, 211, 174, 0.45); padding: var(--s16); }
.entry-no { display: inline-block; background: var(--phosphor); color: var(--screen); text-shadow: none; padding: 0 var(--s8); margin-right: var(--s8); }
.entry h3 { display: inline; font-family: var(--font-term); font-weight: 400; font-size: var(--t24); letter-spacing: 0.02em; }
.entry .pending { margin-top: var(--s8); }
.redact { display: inline-block; background: var(--phosphor); opacity: 0.55; width: 9ch; height: 0.8em; vertical-align: -0.05em; }
.term-form { margin-top: var(--s24); }
.term-form label { display: block; margin-bottom: var(--s8); }
.term-form .form-row { gap: var(--s16); }
.term-form input[type="email"] {
  width: 100%; min-height: 56px; padding: 0 var(--s16); font-family: var(--font-term); font-size: var(--t24);
  color: var(--phosphor); background: #000; border: 1px solid var(--phosphor); border-radius: 0; text-shadow: inherit;
}
.term-form input[type="email"]:focus { outline: 2px solid var(--amber); outline-offset: 2px; }
.term-form .btn { font-family: var(--font-term); font-weight: 400; font-size: var(--t24); border-radius: 0; color: var(--screen); background: var(--phosphor); }
.term-form .btn:hover { background: #a3c299; box-shadow: 4px 4px 0 0 var(--amber); }
.term-form .form-status[data-state="ok"], .term-form .form-status[data-state="error"] { color: var(--phosphor); }
.term-form .wire-note { font-family: var(--font-term); font-size: var(--t18); font-weight: 400; }
.store-plain { margin-top: var(--s40); max-width: 60ch; }
.store-plain h2 { font-size: var(--t24); }
.store-plain p { margin-top: var(--s8); }

@media (min-width: 900px) {
  .store-main { padding-top: var(--s40); }
  .crt { max-width: 1040px; margin: 0 auto; padding: var(--s40) var(--s40) 0; box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.12), inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 40px 60px -30px rgba(0, 0, 0, 0.7); }
  .crt .screen { height: min(68vh, 640px); overflow-y: auto; padding: var(--s40) var(--s64); scrollbar-color: var(--phosphor) var(--screen); border-radius: 28px / 40px; }
  .crt-base { display: flex; align-items: center; justify-content: space-between; padding: var(--s24) 0; }
  .crt-plate { display: flex; align-items: center; gap: var(--s8); font-family: var(--font-term); font-size: var(--t18); color: #4a4436; letter-spacing: 0.06em; }
  .crt-plate svg { width: 24px; color: #6a5a3a; }
  .crt-vents { display: block; width: 160px; height: 24px; background: repeating-linear-gradient(to right, #9e9277 0 4px, transparent 4px 10px); }
  .crt-keys { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; background: var(--case-shade); padding: var(--s16); margin: 0 calc(-1 * var(--s40)); border-top: 2px solid #a69b7e; }
  .crt-keys span { height: 32px; background: var(--case); box-shadow: inset 0 -5px 0 #a99e82, inset 0 1px 0 rgba(255, 255, 255, 0.5); }
  .crt-keys .k2 { grid-column: span 2; } .crt-keys .k6 { grid-column: span 6; } .crt-keys .dark { background: #8c8268; box-shadow: inset 0 -5px 0 #6d654f; }
  .store-plain { margin: var(--s64) auto 0; max-width: 1040px; display: grid; grid-template-columns: 4fr 8fr; gap: var(--s24); }
  .store-plain p { margin-top: 0; }
}

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; padding: var(--s64) var(--gutter); }
.lost .screen { max-width: 640px; width: 100%; padding: var(--s40); }
.lost .screen a { color: var(--phosphor); }
.lost h1 { font-family: var(--font-term); font-weight: 400; font-size: var(--t32); letter-spacing: 0.02em; }

/* =========================================================================
   Reduced motion: tone it down, never freeze. The fog drifts slower, the lamps
   flicker less, the dive into the terminal becomes a short push-in under a fade.
   Typing and the cursor stay as they are.
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-fog--far { animation-duration: 300s; }
  .hero-fog--near { animation-duration: 220s; }
  .hero-lamp { animation-duration: 14s; }
  .depot-scene { transition-duration: 500ms; }
  .depot-fade { transition: opacity 500ms; transition-delay: 0ms; }
  .btn { transition-duration: 80ms; }
}
