:root {
  color-scheme: dark;
  --black: #050403;
  --ink: #eee4d1;
  --muted: #a99b82;
  --amber: #e0b84c;
  --amber-soft: rgba(224, 184, 76, .3);
  --red: #a83225;
  --screen: #101d14;
  --screen-ink: #e8f2d4;
  --screen-muted: #a9ba99;
  --wood-1: #2e150b;
  --wood-2: #5a2a13;
  --wood-3: #1a0d08;
  --plastic: #181716;
  --plastic-2: #0e0e0e;
  --focus: #f7d46e;
  --radius: 14px;
  --archive-max: 1420px;
  --ui: "Arial Narrow", "Roboto Condensed", "Franklin Gothic Medium", Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { min-width: 300px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 38% 18%, rgba(122, 70, 33, .18), transparent 32%),
    radial-gradient(circle at 78% 72%, rgba(31, 55, 48, .12), transparent 35%),
    linear-gradient(180deg, #090605 0 66%, #050403 66% 100%);
  color: var(--ink);
  font: 15px/1.45 var(--ui);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 33%;
  z-index: -3;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(0, 0, 0, .45) 96px 98px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, #140b07, #221109 48%, #120907);
  box-shadow: inset 0 -30px 60px rgba(0,0,0,.8);
}

body::after {
  content: "";
  position: fixed;
  inset: 67% 0 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(88deg, rgba(255,255,255,.018) 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at center top, rgba(73,44,28,.28), transparent 70%),
    #090706;
  transform: perspective(700px) rotateX(62deg) scale(1.4);
  transform-origin: top center;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffe8a0; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, li, a, span, button {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 2000;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: #111;
  border: 1px solid var(--amber);
  border-radius: 8px;
  color: white;
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.room-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.room-atmosphere::before {
  content: "";
  position: absolute;
  width: 36vw;
  height: 36vw;
  left: 23%;
  top: -12vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,173,86,.13), transparent 67%);
  filter: blur(12px);
}
.dust {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245,221,172,.35);
  box-shadow: 0 0 6px rgba(245,221,172,.25);
  animation: dust-float 15s linear infinite;
}
.dust-a { left: 18%; top: 28%; animation-delay: -3s; }
.dust-b { left: 47%; top: 14%; animation-duration: 21s; animation-delay: -9s; }
.dust-c { left: 74%; top: 40%; animation-duration: 18s; animation-delay: -13s; }
@keyframes dust-float {
  0% { transform: translate3d(0, 20vh, 0); opacity: 0; }
  12% { opacity: .8; }
  75% { opacity: .35; }
  100% { transform: translate3d(9vw, -35vh, 0); opacity: 0; }
}

.archive-shell {
  width: min(var(--archive-max), calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 28px;
}
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(224,184,76,.18);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(22,17,13,.9), rgba(8,7,6,.82));
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
}
.archive-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
}
.archive-brand img { width: 34px; height: 34px; flex: 0 0 auto; }
.archive-brand span { display: grid; min-width: 0; line-height: 1.05; }
.archive-brand strong {
  font-size: 14px;
  letter-spacing: .11em;
  text-transform: uppercase;
  white-space: nowrap;
}
.archive-brand em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .17em;
  text-transform: uppercase;
  white-space: nowrap;
}
.utility-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.utility-nav a,
.utility-button {
  min-height: 31px;
  padding: 7px 10px;
  border: 1px solid rgba(224,184,76,.22);
  border-radius: 7px;
  background: #0d0c0b;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.utility-nav a:hover,
.utility-button:hover,
.utility-button[aria-pressed="true"] {
  border-color: rgba(224,184,76,.62);
  color: var(--ink);
  background: #18130d;
}

.archive-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, 300px);
  align-items: end;
  gap: clamp(18px, 3vw, 42px);
  min-height: calc(100vh - 145px);
  padding: 34px 8px 18px;
}
.console-column {
  position: relative;
  display: grid;
  justify-items: center;
  align-self: center;
  min-width: 0;
}

.tv-set {
  position: relative;
  width: min(100%, 900px);
  filter: drop-shadow(0 30px 32px rgba(0,0,0,.7));
}
.antenna {
  position: absolute;
  left: 50%;
  top: -49px;
  width: 190px;
  height: 60px;
  transform: translateX(-50%);
  pointer-events: none;
}
.antenna i {
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 74px;
  border-radius: 4px;
  background: linear-gradient(90deg, #242424, #8c887f 48%, #111 54%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.65);
  transform-origin: bottom;
}
.antenna i:first-child { left: 83px; transform: rotate(-39deg); }
.antenna i:nth-child(2) { right: 83px; transform: rotate(39deg); }
.antenna b {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 78px;
  height: 19px;
  transform: translateX(-50%);
  border-radius: 50% 50% 9px 9px;
  background: linear-gradient(#333, #111);
  border: 1px solid #080808;
}
.tv-cabinet {
  position: relative;
  padding: clamp(15px, 2vw, 24px);
  border: 2px solid #120703;
  border-radius: 46px 46px 31px 31px;
  background:
    repeating-linear-gradient(92deg, transparent 0 22px, rgba(255,255,255,.025) 23px 24px, transparent 25px 58px),
    repeating-linear-gradient(4deg, rgba(255,255,255,.02) 0 1px, rgba(0,0,0,.025) 1px 4px),
    linear-gradient(108deg, #1c0d07, #673118 22%, #36180d 49%, #5c2913 73%, #1b0d08);
  box-shadow:
    inset 0 2px 2px rgba(255,224,173,.18),
    inset 0 -11px 20px rgba(0,0,0,.42),
    0 0 0 5px rgba(12,5,2,.75),
    0 18px 45px rgba(0,0,0,.65);
}
.tv-cabinet::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255,213,156,.08);
  border-radius: 38px 38px 25px 25px;
  pointer-events: none;
}
.tv-face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(64px, 9vw, 92px);
  gap: clamp(10px, 1.8vw, 18px);
  align-items: stretch;
}
.screen-bezel {
  min-width: 0;
  padding: clamp(9px, 1.5vw, 15px);
  border: 2px solid #050505;
  border-radius: 38px / 24px;
  background: linear-gradient(135deg, #0a0a09, #292724 47%, #070707 100%);
  box-shadow:
    inset 0 0 0 3px #080808,
    inset 8px 8px 15px rgba(255,255,255,.025),
    0 2px 1px rgba(255,255,255,.09);
}
.crt-screen {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid #020202;
  border-radius: 12% / 9%;
  background: #010201;
  box-shadow:
    inset 0 0 55px 18px rgba(0,0,0,.96),
    inset 0 0 12px rgba(162,210,139,.06),
    0 0 0 2px #111;
  transform: translateZ(0);
}
.crt-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 22px 0 30px rgba(0,0,0,.62),
    inset -22px 0 30px rgba(0,0,0,.62),
    inset 0 18px 30px rgba(0,0,0,.4),
    inset 0 -20px 35px rgba(0,0,0,.62);
}
.screen-phosphor {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(53,91,56,.16), transparent 65%),
    #010301;
  transition: background .25s ease, box-shadow .25s ease;
}
.screen-content {
  position: absolute;
  inset: 4.5% 5.3%;
  z-index: 2;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(195,226,166,.45) rgba(0,0,0,.25);
  color: var(--screen-ink);
  font-family: var(--mono);
  opacity: 0;
  transform: scaleY(.02);
  transform-origin: center;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1);
  text-shadow: 1px 0 rgba(255,90,90,.18), -1px 0 rgba(80,150,255,.17), 0 0 8px rgba(197,236,169,.12);
}
.screen-content::-webkit-scrollbar { width: 8px; }
.screen-content::-webkit-scrollbar-track { background: rgba(0,0,0,.3); }
.screen-content::-webkit-scrollbar-thumb { background: rgba(195,226,166,.34); border-radius: 10px; }
.screen-off-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 5px;
  text-align: center;
  color: rgba(220,242,207,.08);
  letter-spacing: .2em;
}
.screen-off-message span { font: 800 clamp(20px, 5cqw, 48px)/1 var(--ui); }
.screen-off-message small { font: 700 clamp(8px, 1.4cqw, 13px)/1 var(--mono); }
#static-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .24;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.48) 0 1px, rgba(255,255,255,.03) 1px 2px, transparent 2px 4px);
  background-size: 100% 4px;
}
.tracking-band {
  position: absolute;
  left: -3%;
  right: -3%;
  top: -18%;
  z-index: 4;
  height: 15%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.07) 42%, rgba(8,15,10,.55) 48%, rgba(255,255,255,.08) 55%, transparent);
  filter: blur(.4px);
}
.screen-glare {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: .28;
  background:
    radial-gradient(ellipse at 28% 8%, rgba(255,255,255,.13), transparent 28%),
    linear-gradient(115deg, rgba(255,255,255,.035), transparent 28% 72%, rgba(255,255,255,.025));
}
.screen-osd {
  position: absolute;
  z-index: 8;
  top: 6.2%;
  right: 7%;
  color: rgba(220,238,209,.78);
  font: 700 clamp(8px, 1.7cqw, 13px)/1 var(--mono);
  letter-spacing: .06em;
  text-shadow: 0 0 6px rgba(213,255,197,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

body[data-tv-state="booting"] .screen-phosphor,
body[data-tv-state="on"] .screen-phosphor,
body[data-tv-state="idle"] .screen-phosphor {
  background:
    radial-gradient(ellipse at center, rgba(77,122,75,.28), rgba(14,31,18,.78) 55%, #020602 100%);
  box-shadow: inset 0 0 70px rgba(144,225,124,.08);
}
body[data-tv-state="booting"] #static-canvas { opacity: .78; }
body[data-tv-state="booting"] .screen-content { opacity: .18; transform: scaleY(.85); }
body[data-tv-state="idle"] .screen-content,
body[data-tv-state="on"] .screen-content { opacity: 1; transform: scaleY(1); }
body[data-tv-state="idle"] #static-canvas { opacity: .14; }
body[data-tv-state="on"] #static-canvas { opacity: .075; }
body[data-tv-state="idle"] .screen-osd,
body[data-tv-state="on"] .screen-osd,
body[data-tv-state="booting"] .screen-osd { opacity: 1; }
body[data-tv-state="off"] .screen-content { opacity: 0; transform: scaleY(.02); }
body[data-tv-state="off"] .scanlines { opacity: .08; }
body[data-effects="on"][data-tv-state="on"] .tracking-band,
body[data-effects="on"][data-tv-state="idle"] .tracking-band { animation: tracking-pass 8.5s linear infinite; }
body[data-effects="on"][data-tv-state="on"] .screen-content { animation: crt-breathe 7s steps(1,end) infinite; }
body.screen-glitch .screen-content { transform: translateX(2px) skewX(.25deg); filter: contrast(1.14) saturate(.84); }
body.screen-glitch #static-canvas { opacity: .22; }
@keyframes tracking-pass {
  0%, 69% { transform: translateY(-10%); opacity: 0; }
  70% { opacity: .5; }
  80% { opacity: .24; }
  88% { transform: translateY(780%); opacity: 0; }
  100% { transform: translateY(780%); opacity: 0; }
}
@keyframes crt-breathe {
  0%, 92%, 100% { translate: 0 0; }
  93% { translate: -1px 0; }
  94% { translate: 1px 0; }
}

.tv-control-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 11px 6px 9px;
  border: 2px solid #0a0705;
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035), transparent 35% 70%, rgba(0,0,0,.35)),
    #17130f;
  box-shadow: inset 0 0 0 2px #292119, inset 0 -20px 30px rgba(0,0,0,.3);
}
.tv-maker {
  margin-bottom: 12px;
  color: #c9b58e;
  text-align: center;
  font: 900 clamp(7px, 1vw, 10px)/1.1 var(--ui);
  letter-spacing: .08em;
}
.tv-maker span { color: #81735d; font-size: .7em; letter-spacing: .04em; }
.tv-knob,
.channel-knob {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(39px, 5vw, 53px);
  aspect-ratio: 1;
  margin: 2px 0 10px;
  padding: 0;
  border: 2px solid #050505;
  border-radius: 50%;
  background: repeating-conic-gradient(#444 0 3deg, #151515 3deg 8deg);
  box-shadow: inset 0 0 0 7px #1a1a19, 0 3px 7px rgba(0,0,0,.65);
  color: #aaa08e;
  cursor: pointer;
}
.tv-knob span,
.channel-knob span {
  position: absolute;
  top: calc(100% + 5px);
  color: #766b5b;
  font: 800 7px/1 var(--ui);
  letter-spacing: .08em;
}
.tv-knob::after,
.channel-knob i {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 4px;
  background: #d0c4ad;
  transform: translateY(-9px) rotate(-28deg);
  transform-origin: center 17px;
  box-shadow: 0 0 2px black;
}
.channel-knob { margin-top: 12px; cursor: default; }
.channel-knob i { display: block; transform: translateY(-9px) rotate(38deg); }
.speaker-grille {
  width: 80%;
  flex: 1;
  min-height: 88px;
  margin: 14px 0 8px;
  border-radius: 8px;
  opacity: .72;
  background: radial-gradient(circle, #030303 0 1.5px, transparent 1.8px) 0 0 / 8px 8px;
  box-shadow: inset 0 0 12px rgba(0,0,0,.75);
}
.power-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #310908;
  box-shadow: inset 0 0 3px #000;
  transition: .15s ease;
}
body:not([data-tv-state="off"]) .power-light {
  background: #e63728;
  box-shadow: 0 0 8px #ed3e2d, 0 0 17px rgba(237,62,45,.45);
}

.vcr-unit {
  position: relative;
  display: grid;
  grid-template-columns: clamp(74px, 11vw, 116px) minmax(150px, 1fr) clamp(70px, 10vw, 105px);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 12px;
  width: min(92%, 800px);
  margin-top: 13px;
  padding: 12px 14px 11px;
  border: 2px solid #050505;
  border-radius: 10px 10px 15px 15px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #292827, #121211 52%, #090909);
  box-shadow:
    inset 0 2px 1px rgba(255,255,255,.09),
    inset 0 -5px 9px rgba(0,0,0,.65),
    0 14px 22px rgba(0,0,0,.5);
}
.vcr-brand {
  grid-row: 1 / span 2;
  color: #d1cec6;
  font: 900 clamp(8px, 1.3vw, 12px)/1.05 var(--ui);
  letter-spacing: .08em;
  text-align: left;
}
.vcr-brand span { color: #6d6b66; font-size: .68em; }
.vcr-slot-bay {
  position: relative;
  z-index: 5;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  height: 38px;
  overflow: visible;
}
.vcr-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  border: 1px solid #020202;
  border-radius: 4px;
  background: #090909;
  box-shadow: inset 0 4px 8px rgba(0,0,0,.96), 0 1px 0 rgba(255,255,255,.07);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .12s ease, box-shadow .12s ease, filter .12s ease;
}
.slot-mouth {
  position: absolute;
  inset: 8px 5%;
  border: 1px solid #020202;
  border-radius: 2px;
  background: linear-gradient(#020202, #0b0b0b 46%, #020202 52%);
  box-shadow: inset 0 1px 4px black;
}
.slot-label {
  position: relative;
  z-index: 1;
  max-width: 90%;
  overflow: hidden;
  color: #77736d;
  font: 800 clamp(7px, 1.2vw, 10px)/1 var(--mono);
  letter-spacing: .09em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vcr-slot.is-ready {
  border-color: rgba(224,184,76,.75);
  box-shadow: inset 0 4px 8px rgba(0,0,0,.96), 0 0 14px rgba(224,184,76,.25);
}
.vcr-slot.is-drag-over {
  border-color: rgba(255,222,124,.95);
  filter: brightness(1.18);
  box-shadow: inset 0 4px 8px rgba(0,0,0,.96), 0 0 22px rgba(224,184,76,.62);
}
.vcr-slot.is-ready .slot-label { color: var(--amber); animation: slot-pulse .85s steps(2,end) infinite; }
.vcr-slot.is-loading .slot-mouth { animation: slot-open 1.42s cubic-bezier(.2,.72,.2,1); }
@keyframes slot-pulse { 50% { opacity: .45; } }
@keyframes slot-open {
  0%, 100% { transform: scaleY(1); }
  14% { transform: scaleY(.58); }
  28%, 72% { transform: scaleY(.16); }
  88% { transform: scaleY(.54); }
}

.ejected-tape {
  --ejected-accent: #c4ad64;
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 16px;
  width: 88%;
  height: 62px;
  padding: 0;
  border: 2px solid #030303;
  border-radius: 5px 5px 8px 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.055), transparent 18% 80%, rgba(0,0,0,.5)),
    repeating-linear-gradient(0deg, #1c1c1b 0 2px, #111 2px 5px);
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 16px 20px rgba(0,0,0,.58);
  color: #18130d;
  cursor: grab;
  transform: translate(-50%, -4px) perspective(420px) rotateX(66deg) scale(.88);
  transform-origin: 50% 0;
  transition: filter .14s ease, transform .14s ease, box-shadow .14s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.ejected-tape[hidden] { display: none; }
.ejected-tape.is-native-dragging {
  opacity: .16;
}
.ejected-tape::before {
  content: "";
  position: absolute;
  inset: 8px 13px 16px;
  border: 1px solid rgba(25,17,8,.55);
  border-radius: 3px;
  background: var(--ejected-accent);
  box-shadow: inset 0 0 10px rgba(255,255,255,.18);
}
.ejected-tape::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 7px;
  background: repeating-linear-gradient(90deg, #050505 0 10px, #292929 10px 14px);
  opacity: .9;
}
.ejected-tape-label {
  position: absolute;
  z-index: 3;
  left: 37px;
  right: 37px;
  top: 14px;
  overflow: hidden;
  font: 900 clamp(6px, .9vw, 9px)/1 var(--ui);
  letter-spacing: .05em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.ejected-reel {
  position: absolute;
  z-index: 2;
  top: 25px;
  width: 18px;
  height: 18px;
  border: 4px dotted #d2cbb9;
  border-radius: 50%;
  background: #0b0b0b;
  box-shadow: 0 0 0 3px rgba(0,0,0,.28);
}
.ejected-reel-left { left: 22px; }
.ejected-reel-right { right: 22px; }
.ejected-window {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 30px;
  width: 38%;
  height: 9px;
  border-radius: 1px;
  background: #070707;
  box-shadow: inset 0 0 5px #000;
  transform: translateX(-50%);
}
.ejected-tape:hover,
.ejected-tape:focus-visible {
  filter: brightness(1.14);
  transform: translate(-50%, 1px) perspective(420px) rotateX(59deg) scale(.92);
  box-shadow: inset 0 1px rgba(255,255,255,.09), 0 22px 26px rgba(0,0,0,.66);
}
.ejected-tape:active { cursor: grabbing; }
.ejected-tape.is-emerging { animation: tape-emerge 1.34s cubic-bezier(.18,.72,.2,1) both; }
.ejected-tape.is-being-picked { animation: tape-pick-from-slot .42s cubic-bezier(.2,.72,.2,1) both; pointer-events: none; }
@keyframes tape-emerge {
  0% { opacity: .12; transform: translate(-50%, -17px) perspective(420px) rotateX(88deg) scale(.30,.08); }
  48% { opacity: 1; transform: translate(-50%, -7px) perspective(420px) rotateX(76deg) scale(.72,.48); }
  78% { transform: translate(-50%, 2px) perspective(420px) rotateX(61deg) scale(.92); }
  100% { opacity: 1; transform: translate(-50%, -4px) perspective(420px) rotateX(66deg) scale(.88); }
}
@keyframes tape-pick-from-slot {
  to { opacity: .15; transform: translate(-50%, 20px) perspective(420px) rotateX(35deg) scale(1.02); }
}
.vcr-display {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  padding: 6px 7px 5px;
  border: 1px solid #020202;
  border-radius: 4px;
  background: #050807;
  box-shadow: inset 0 0 8px rgba(44,91,56,.18);
  color: #6bcc80;
  font: 700 clamp(8px, 1.2vw, 11px)/1 var(--mono);
  text-align: center;
  text-shadow: 0 0 7px rgba(107,204,128,.5);
  white-space: nowrap;
}
.vcr-display span { display: block; overflow: hidden; text-overflow: ellipsis; }
.vcr-display b { display: block; margin-top: 3px; font-size: .75em; letter-spacing: .08em; }
.vcr-buttons {
  grid-column: 2 / span 2;
  grid-row: 2;
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.vcr-button {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 4px 9px;
  border: 1px solid #050505;
  border-radius: 3px;
  background: linear-gradient(#30302f, #141413);
  box-shadow: inset 0 1px rgba(255,255,255,.09), 0 2px 2px rgba(0,0,0,.5);
  color: #aaa69e;
  font: 800 11px/1 var(--ui);
  cursor: pointer;
}
.vcr-button span { color: #77736c; font-size: 7px; letter-spacing: .06em; }
.vcr-button:hover:not(:disabled) { color: white; background: linear-gradient(#3a3938, #1b1a19); }
.vcr-button:active:not(:disabled),
.vcr-button.is-active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0,0,0,.65); }
.vcr-button:disabled { opacity: .35; cursor: not-allowed; }
.play-button { color: #d7d2c8; }
.instruction-plaque {
  margin-top: 10px;
  padding: 6px 11px;
  border: 1px solid rgba(224,184,76,.19);
  border-radius: 5px;
  background: rgba(7,6,5,.78);
  color: #91836d;
  font: 700 clamp(9px, 1.4vw, 11px)/1.2 var(--mono);
  letter-spacing: .04em;
  text-align: center;
  box-shadow: 0 9px 18px rgba(0,0,0,.25);
}
.instruction-plaque strong { color: var(--amber); }

.tape-library {
  position: relative;
  align-self: center;
  min-width: 0;
  padding: 16px 13px 18px;
  border: 2px solid #170c06;
  border-radius: 8px;
  background:
    repeating-linear-gradient(92deg, transparent 0 28px, rgba(255,255,255,.026) 29px 30px, transparent 31px 57px),
    linear-gradient(95deg, #271308, #5b2b12 16%, #35170b 47%, #6a3316 81%, #241207);
  box-shadow: inset 0 0 0 3px rgba(14,6,2,.65), 0 25px 35px rgba(0,0,0,.58);
}
.library-header {
  margin: 0 3px 11px;
  padding: 7px 8px 8px;
  border: 1px solid rgba(37,23,13,.75);
  background: #c9b88d;
  color: #282117;
  text-align: center;
  transform: rotate(-.35deg);
  box-shadow: 0 2px 5px rgba(0,0,0,.35);
}
.library-header p,
.library-header h2,
.library-header span { margin: 0; }
.library-header p { font: 800 8px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.library-header h2 {
  margin: 4px 0 3px;
  font: 900 clamp(12px, 1.5vw, 17px)/1 var(--ui);
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.library-header span { font: 700 8px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.shelf {
  height: 10px;
  border: 1px solid #160a04;
  background: linear-gradient(#7c3c19, #2b1307 65%, #130803);
  box-shadow: 0 5px 7px rgba(0,0,0,.55);
}
.shelf-top { margin: 0 -4px 6px; }
.shelf-bottom { margin: 7px -4px 0; box-shadow: 0 8px 10px rgba(0,0,0,.65); }
.tape-stack {
  display: grid;
  gap: 4px;
  padding: 4px 1px;
  perspective: 900px;
}
.vhs-tape {
  --tape-label: #bda25c;
  --tilt: 0deg;
  --shift: 0px;
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: start;
  width: calc(100% - 8px);
  height: 56px;
  margin-left: 4px;
  padding: 6px 8px 7px;
  border: 1px solid #050505;
  border-radius: 4px 4px 5px 5px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), transparent 22%, rgba(0,0,0,.18) 78%, rgba(0,0,0,.48) 100%),
    linear-gradient(90deg, rgba(255,255,255,.05), transparent 11% 85%, rgba(0,0,0,.62)),
    repeating-linear-gradient(0deg, #191919 0 2px, #101010 2px 5px);
  box-shadow: inset 0 1px rgba(255,255,255,.08), inset 0 -1px rgba(255,255,255,.03), 0 4px 5px rgba(0,0,0,.72);
  color: #15120e;
  transform: translateX(var(--shift)) rotate(var(--tilt));
  transition: transform .17s ease, filter .17s ease, opacity .17s ease, box-shadow .17s ease;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.vhs-tape::before {
  content: "";
  position: absolute;
  inset: 6px 8px 13px;
  z-index: 0;
  border: 1px solid rgba(28,20,11,.4);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.05) 18%, transparent 18% 82%, rgba(0,0,0,.12) 100%),
    linear-gradient(90deg, rgba(0,0,0,.14) 0 10%, transparent 10% 90%, rgba(0,0,0,.18) 90% 100%),
    var(--tape-label);
  box-shadow: inset 0 0 0 1px rgba(48,32,18,.18), inset 0 0 14px rgba(255,255,255,.18), 0 1px 1px rgba(0,0,0,.42);
}
.vhs-tape::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 3px;
  height: 4px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(180deg, #080808, #191919 45%, #050505);
  opacity: .95;
}
.vhs-tape > span,
.vhs-tape > i { position: relative; z-index: 1; }
.tape-index,
.tape-format {
  align-self: start;
  margin-top: 2px;
  color: rgba(20,14,10,.92);
  text-shadow: 0 1px rgba(255,255,255,.08);
  font: 900 9px/1 var(--mono);
}
.tape-index { justify-self: start; }
.tape-format { justify-self: end; }
.tape-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 0 6px 11px;
}
.tape-title {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  font: 900 clamp(8px, .82vw, 11px)/1 var(--ui);
  letter-spacing: .055em;
  text-align: center;
  text-overflow: clip;
  text-transform: uppercase;
  white-space: nowrap;
}
.tape-code {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: rgba(27,20,12,.82);
  font: 700 6.2px/1 var(--mono);
  letter-spacing: .16em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.tape-window {
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 2;
  width: 86px;
  height: 11px;
  transform: translateX(-50%);
  border: 1px solid rgba(22,19,16,.58);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(43,42,39,.92), rgba(8,8,8,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 1px 1px rgba(0,0,0,.28);
}
.tape-window::after {
  content: "";
  position: absolute;
  inset: 2px 29px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.14));
  opacity: .7;
}
.tape-reel {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #d9d9d9 0 1px, #737373 1px 2px, #111 2px 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), inset 0 0 0 1px rgba(255,255,255,.04);
}
.tape-reel-left { left: 13px; }
.tape-reel-right { right: 13px; }
.tape-edge {
  position: absolute;
  bottom: 9px;
  z-index: 2;
  color: rgba(21,16,10,.88);
  font: 700 5.8px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.tape-edge-left { left: 10px; }
.tape-edge-right { right: 10px; text-align: right; }
.vhs-tape:hover,
.vhs-tape:focus-visible {
  z-index: 3;
  filter: brightness(1.12);
  transform: translateX(calc(var(--shift) - 10px)) rotate(0deg) translateY(-2px);
  box-shadow: inset 0 1px rgba(255,255,255,.1), inset 0 -1px rgba(255,255,255,.04), 0 10px 14px rgba(0,0,0,.65);
}
.vhs-tape:active { cursor: grabbing; }
.vhs-tape.is-out {
  cursor: default;
  filter: grayscale(.82) brightness(.58);
  box-shadow: inset 0 5px 10px rgba(0,0,0,.88), 0 2px 3px rgba(0,0,0,.48);
}
.vhs-tape.is-out::before {
  border: 1px dashed rgba(201,184,141,.26);
  background: rgba(4,4,4,.62);
  box-shadow: inset 0 0 13px rgba(0,0,0,.88);
}
.vhs-tape.is-out::after { opacity: .25; }
.vhs-tape.is-out .tape-title { color: transparent; }
.vhs-tape.is-out .tape-title::after {
  content: "SHELF EMPTY";
  position: absolute;
  inset: 50% 0 auto;
  color: #a39479;
  font: 800 8px/1 var(--mono);
  letter-spacing: .09em;
  transform: translateY(-50%);
}
.vhs-tape.is-out .tape-code,
.vhs-tape.is-out .tape-window,
.vhs-tape.is-out .tape-edge,
.vhs-tape.is-out .tape-index,
.vhs-tape.is-out .tape-format { opacity: .26; }
.vhs-tape.is-return-target {
  cursor: copy;
  filter: grayscale(.35) brightness(.86);
  box-shadow: inset 0 5px 10px rgba(0,0,0,.82), 0 0 16px rgba(224,184,76,.35);
  animation: return-slot-pulse 1s steps(2,end) infinite;
}
.vhs-tape.is-return-target::before { border-color: rgba(224,184,76,.9); }
.vhs-tape.is-return-target .tape-title::after { content: "RETURN HERE"; color: var(--amber); }
.vhs-tape.is-return-target .tape-code,
.vhs-tape.is-return-target .tape-edge { color: rgba(244,219,145,.95); }
.vhs-tape.is-drag-over {
  filter: grayscale(.05) brightness(1.15);
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 0 24px rgba(224,184,76,.65);
}
.vhs-tape.is-queued:not(.is-out) {
  z-index: 3;
  box-shadow: inset 0 1px rgba(255,255,255,.09), 0 0 17px rgba(224,184,76,.36);
  animation: queued-tape-pulse 1.15s ease-in-out infinite;
}
@keyframes return-slot-pulse { 50% { filter: grayscale(.15) brightness(1.08); } }
@keyframes queued-tape-pulse { 50% { filter: brightness(1.14); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 0 22px rgba(224,184,76,.52); } }
.library-instruction {
  margin: 12px 4px 0;
  color: #d0bea1;
  font: 700 10px/1.4 var(--mono);
  text-align: center;
  text-shadow: 0 1px #000;
}

.held-tape {
  --held-accent: #c4ad64;
  --drag-rotation: -7deg;
  position: fixed;
  z-index: 1600;
  width: 260px;
  height: 155px;
  left: 0;
  top: 0;
  pointer-events: none;
  appearance: none;
  padding: 0;
  color: inherit;
  border: 2px solid #030303;
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05), transparent 20% 78%, rgba(0,0,0,.5)),
    repeating-linear-gradient(0deg, #1c1c1b 0 3px, #131313 3px 7px);
  box-shadow: inset 0 2px rgba(255,255,255,.08), 0 26px 40px rgba(0,0,0,.68);
  transform: translate(-50%, -50%) rotate(var(--drag-rotation)) scale(.64);
  transform-origin: center;
  transition: opacity .16s ease;
}
.held-tape[hidden] { display: none; }
.held-tape.is-following-pointer {
  filter: brightness(1.06);
  transform: translate(-50%, -50%) rotate(var(--drag-rotation)) scale(.7);
  transition: none;
  will-change: left, top, transform;
}
.held-tape.is-following-pointer.is-over-drop-target {
  filter: brightness(1.17);
  box-shadow: inset 0 2px rgba(255,255,255,.1), 0 28px 42px rgba(0,0,0,.72), 0 0 27px rgba(224,184,76,.44);
  transform: translate(-50%, -50%) rotate(var(--drag-rotation)) scale(.66);
}
.held-tape.is-parked {
  pointer-events: auto;
  cursor: grab !important;
  filter: brightness(1.03);
  transform: translate(-50%, -50%) rotate(-3deg) scale(.67);
  box-shadow: inset 0 2px rgba(255,255,255,.09), 0 26px 40px rgba(0,0,0,.72), 0 0 0 2px rgba(224,184,76,.28);
}
.held-tape.is-parked:hover,
.held-tape.is-parked:focus-visible {
  filter: brightness(1.12);
  box-shadow: inset 0 2px rgba(255,255,255,.1), 0 28px 42px rgba(0,0,0,.74), 0 0 22px rgba(224,184,76,.34);
}
.held-tape.is-in-transit {
  pointer-events: none;
  transition: none;
}
.held-tape::before {
  content: "";
  position: absolute;
  inset: 18px 20px 40px;
  border-radius: 6px;
  background: var(--held-accent);
  box-shadow: inset 0 0 18px rgba(255,255,255,.22);
}
.held-tape::after {
  content: "";
  position: absolute;
  left: 43px;
  right: 43px;
  bottom: 14px;
  height: 24px;
  clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
  background: #080808;
  border: 1px solid #343434;
}
.held-label {
  position: absolute;
  z-index: 3;
  left: 34px;
  right: 34px;
  top: 29px;
  overflow: hidden;
  color: #16120d;
  font: 900 13px/1 var(--ui);
  letter-spacing: .06em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.held-reel {
  position: absolute;
  z-index: 2;
  top: 61px;
  width: 48px;
  height: 48px;
  border: 9px dotted #d0c9b8;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 7px rgba(0,0,0,.32), inset 0 0 0 4px #050505;
}
.reel-left { left: 47px; }
.reel-right { right: 47px; }
.held-window {
  position: absolute;
  z-index: 1;
  left: 92px;
  top: 72px;
  width: 76px;
  height: 24px;
  border-radius: 2px;
  background: #070707;
  box-shadow: inset 0 0 8px #000;
}
.held-state {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 17px;
  display: none;
  padding: 3px 6px;
  border: 1px solid rgba(224,184,76,.62);
  border-radius: 2px;
  background: rgba(8,7,5,.88);
  color: #f2cf6c;
  font: 900 8px/1 var(--mono);
  letter-spacing: .08em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.held-tape.is-parked .held-state { display: block; }
body.is-holding-tape,
body.is-holding-tape * { cursor: grabbing !important; }
body.is-tape-parked,
body.is-tape-parked * { cursor: default !important; }
body.is-tape-parked .held-tape { cursor: grab !important; }
body.is-holding-tape .vcr-slot { cursor: copy !important; }
body.is-returning-tape .vcr-slot { cursor: not-allowed !important; }
body.is-returning-tape .vhs-tape.is-return-target { cursor: copy !important; }
body.is-returning-tape .tape-library { box-shadow: inset 0 0 0 3px rgba(14,6,2,.65), 0 25px 35px rgba(0,0,0,.58), 0 0 24px rgba(224,184,76,.14); }

/* Content rendered inside the CRT. */
.screen-idle {
  min-height: 100%;
  display: grid;
  place-content: center;
  padding: 8%;
  text-align: center;
}
.screen-idle .idle-logo {
  margin: 0;
  color: #d7e8c7;
  font: 900 clamp(22px, 8cqw, 52px)/.95 var(--ui);
  letter-spacing: .12em;
}
.screen-idle .idle-line {
  width: min(74%, 330px);
  height: 2px;
  margin: 15px auto;
  background: rgba(200,226,180,.35);
}
.screen-idle p {
  max-width: 44ch;
  margin: 0 auto;
  color: var(--screen-muted);
  font-size: clamp(10px, 2.1cqw, 15px);
  letter-spacing: .04em;
}
.screen-idle strong { display: block; margin-top: 13px; color: var(--screen-ink); }
.game-program {
  min-height: 100%;
  padding: clamp(10px, 2.6cqw, 22px);
}
.program-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(196,225,176,.3);
  color: var(--screen-muted);
  font-size: clamp(8px, 1.5cqw, 11px);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.program-topline span { white-space: nowrap; }
.program-heading { min-width: 0; margin-bottom: 10px; }
.program-kicker {
  margin: 0 0 4px;
  color: #d6b85d;
  font-size: clamp(8px, 1.7cqw, 12px);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.program-title {
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #f1f2dd;
  font: 900 38px/.98 var(--ui);
  letter-spacing: .025em;
  text-overflow: clip;
  text-transform: uppercase;
  white-space: nowrap;
}
.program-tagline {
  margin: 5px 0 0;
  color: var(--screen-muted);
  font-size: clamp(9px, 1.8cqw, 13px);
  letter-spacing: .04em;
}
.program-hero {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(203,231,181,.42);
  border-radius: 2px;
  background:
    linear-gradient(45deg, rgba(190,220,175,.025) 25%, transparent 25% 75%, rgba(190,220,175,.025) 75%),
    #030503;
  background-size: 14px 14px;
  cursor: pointer;
}
.program-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(.82) contrast(1.08) brightness(.9);
  transition: opacity .12s ease, transform .25s ease;
}
.program-hero:hover img { transform: none; filter: saturate(.9) contrast(1.06) brightness(.96); }
.program-caption {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 6px;
  padding: 3px 5px;
  background: rgba(0,0,0,.68);
  color: rgba(231,244,216,.84);
  font-size: clamp(7px, 1.4cqw, 10px);
  letter-spacing: .04em;
  text-align: left;
}
.program-copy {
  margin: 11px 0 0;
  color: #c2d1b4;
  font-size: clamp(10px, 1.9cqw, 14px);
  line-height: 1.45;
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 6px;
  padding: 0;
  margin: 11px 0 0;
  list-style: none;
}
.feature-strip li {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(194,220,175,.23);
  background: rgba(11,20,12,.68);
  color: #b8c8aa;
  font-size: clamp(8px, 1.45cqw, 11px);
  line-height: 1.35;
}
.program-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 5px;
  margin-top: 11px;
}
.gallery-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(194,220,175,.23);
  background: #030503;
  cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: saturate(.72) contrast(1.08) brightness(.78); }
.gallery-thumb:hover,
.gallery-thumb[aria-current="true"] { border-color: #d8b95f; }
.gallery-thumb[aria-current="true"]::after {
  content: "PLAYING";
  position: absolute;
  inset: auto 2px 2px;
  padding: 2px;
  background: rgba(0,0,0,.78);
  color: #ead277;
  font: 700 clamp(5px, 1cqw, 8px)/1 var(--mono);
  text-align: center;
}
.program-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(194,220,175,.23);
}
.program-action,
.program-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(214,184,93,.55);
  border-radius: 2px;
  background: rgba(27,24,13,.78);
  color: #e8ce76;
  font: 900 clamp(7px, 1.35cqw, 10px)/1 var(--mono);
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.program-action.primary {
  background: #d4b451;
  color: #171307;
  border-color: #f0d276;
  text-shadow: none;
}
.program-action:hover,
.program-actions button:hover { color: white; border-color: #ffe493; }
.program-status {
  margin-left: auto;
  color: #8e9e82;
  font-size: clamp(7px, 1.2cqw, 9px);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.archive-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 12px 0;
  border-top: 1px solid rgba(224,184,76,.15);
  color: #81735f;
  font-size: 11px;
}
.archive-footer p { margin: 0; }
.archive-footer nav { display: flex; gap: 12px; flex-wrap: wrap; }
.archive-footer a { color: #9e8c6d; text-transform: uppercase; letter-spacing: .06em; }
.archive-footer a:hover { color: var(--amber); }

.archive-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(224,184,76,.48);
  border-radius: 10px;
  background: #0b0a08;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0,0,0,.82), inset 0 0 0 4px #15110b;
}
.archive-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.archive-dialog form { position: relative; padding: 24px; }
.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(224,184,76,.25);
  border-radius: 50%;
  background: #15120e;
  color: #d7c6a8;
  font-size: 22px;
  cursor: pointer;
}
.dialog-kicker {
  margin: 0 0 5px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.archive-dialog h2 {
  margin: 0;
  font: 900 clamp(26px, 6vw, 43px)/1 var(--ui);
  text-transform: uppercase;
}
.archive-dialog ol { padding-left: 20px; color: #c2b49c; }
.archive-dialog li + li { margin-top: 7px; }
.archive-dialog p { color: #a99b83; }
.dialog-action,
.download-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--amber);
  border-radius: 4px;
  background: var(--amber);
  color: #171007;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 18px; }
.download-grid a { width: 100%; }
.download-note { margin-bottom: 0; font-size: 12px; }
.noscript-library {
  width: min(720px, calc(100% - 24px));
  margin: 24px auto;
  padding: 20px;
  border: 1px solid var(--amber-soft);
  background: #111;
}

@media (max-width: 1040px) {
  .archive-stage {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 45px;
  }
  .tape-library {
    width: min(900px, 100%);
    margin: 0 auto;
  }
  .tape-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
  .vhs-tape { width: calc(100% - 10px); }
  .library-header h2 { font-size: 17px; }
}

@media (max-width: 760px) {
  .archive-shell { width: min(100% - 16px, var(--archive-max)); padding-top: 8px; }
  .site-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .utility-nav { justify-content: flex-start; }
  .archive-stage { padding: 42px 0 14px; }
  .tv-face { grid-template-columns: minmax(0,1fr) 55px; gap: 8px; }
  .tv-cabinet { padding: 11px; border-radius: 27px 27px 20px 20px; }
  .screen-bezel { padding: 8px; border-radius: 24px / 17px; }
  .tv-control-panel { padding: 8px 4px; }
  .tv-maker { font-size: 6px; margin-bottom: 8px; }
  .speaker-grille { min-height: 55px; background-size: 6px 6px; }
  .vcr-unit {
    width: 96%;
    grid-template-columns: 64px minmax(120px,1fr) 70px;
    gap: 6px;
    padding: 9px;
  }
  .vcr-buttons { gap: 4px; }
  .vcr-button { padding: 4px 6px; }
  .feature-strip { grid-template-columns: 1fr; }
  .program-status { width: 100%; margin-left: 0; }
  .archive-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .archive-brand strong { font-size: 12px; }
  .utility-nav { gap: 5px; }
  .utility-nav a,
  .utility-button { padding: 6px 7px; font-size: 8px; }
  .archive-stage { padding-top: 38px; }
  .antenna { transform: translateX(-50%) scale(.75); transform-origin: bottom center; top: -45px; }
  .tv-cabinet { padding: 8px; }
  .tv-face { grid-template-columns: minmax(0,1fr) 44px; gap: 6px; }
  .screen-bezel { padding: 6px; }
  .tv-control-panel { padding: 6px 3px; border-radius: 9px; }
  .tv-knob, .channel-knob { width: 31px; margin-bottom: 6px; }
  .tv-knob::after, .channel-knob i { height: 9px; transform: translateY(-6px) rotate(-28deg); transform-origin: center 12px; }
  .channel-knob i { transform: translateY(-6px) rotate(38deg); }
  .channel-knob { margin-top: 7px; }
  .tv-maker { display: none; }
  .speaker-grille { margin-top: 8px; min-height: 38px; }
  .vcr-unit {
    grid-template-columns: 48px minmax(90px,1fr) 58px;
    gap: 5px;
    width: 98%;
    padding: 7px;
  }
  .vcr-brand { font-size: 6px; }
  .vcr-slot-bay { height: 31px; }
  .vcr-slot { height: 31px; }
  .ejected-tape { top: 13px; width: 94%; height: 51px; }
  .ejected-tape-label { top: 11px; left: 29px; right: 29px; font-size: 6px; }
  .ejected-reel { top: 21px; width: 14px; height: 14px; border-width: 3px; }
  .ejected-reel-left { left: 16px; }
  .ejected-reel-right { right: 16px; }
  .ejected-window { top: 25px; height: 7px; }
  .vcr-display { padding: 5px 3px; font-size: 7px; }
  .vcr-button { min-height: 25px; padding: 3px 5px; font-size: 8px; }
  .vcr-button span { display: none; }
  .instruction-plaque { width: 98%; font-size: 8px; }
  .tape-stack { grid-template-columns: 1fr; }
  .tape-title { font-size: 10px; }
  .tape-code { font-size: 5.4px; letter-spacing: .12em; }
  .tape-window { width: 74px; }
  .tape-edge { font-size: 5px; letter-spacing: .14em; }
  .program-gallery { gap: 3px; }
  .program-actions { gap: 4px; }
  .program-action, .program-actions button { padding: 5px 6px; }
  .download-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .dust { display: none; }
}
