/* RETROS - 80s/90s urban CRT theme
   palette: asphalt #0B0B12, panel #14141F, magenta #FF2E88, cyan #26E6FF, bone #F5F3EE, gold #FFD23F
   type: Anton (display), Press Start 2P (pixel utility), Space Grotesk (body) */

:root {
  --asphalt: #0B0B12;
  --panel: #14141F;
  --panel-2: #1B1B29;
  --magenta: #FF2E88;
  --cyan: #26E6FF;
  --bone: #F5F3EE;
  --muted: #9B98A8;
  --gold: #FFD23F;
  --line: #2A2A3A;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--asphalt);
  color: var(--bone);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(38, 230, 255, 0.07), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 46, 136, 0.06), transparent 70%);
}

.mono { font-family: "Space Grotesk", monospace; letter-spacing: 0.02em; }
.pixel { font-family: "Press Start 2P", monospace; }

/* ---------- scanlines overlay ---------- */
.scanlines {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.11) 0px, rgba(0, 0, 0, 0.11) 1px,
    transparent 1px, transparent 3px
  );
  mix-blend-mode: multiply;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(11, 11, 18, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
.logo-mark { width: 30px; height: 30px; color: var(--magenta); }
.logo-word { font-family: "Anton", sans-serif; font-size: 24px; letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--cyan); }
#nav-connect { margin-left: 8px; }

/* ---------- buttons ---------- */
.btn {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 26px; cursor: pointer; text-decoration: none; display: inline-block;
  border: 2px solid transparent; background: none; color: var(--bone);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn-big { padding: 16px 34px; font-size: 17px; }
.btn-magenta {
  background: var(--magenta); color: #16040C;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 22px rgba(255, 46, 136, 0.35);
}
.btn-magenta:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--cyan), 0 0 26px rgba(255, 46, 136, 0.5); }
.btn-ghost { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost:hover { background: rgba(38, 230, 255, 0.12); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(38, 230, 255, 0.35); }
.btn:disabled { opacity: 0.5; cursor: wait; }

/* ---------- hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px 80px; position: relative;
}
.eyebrow { font-size: 10px; color: var(--gold); letter-spacing: 0.3em; margin-bottom: 26px; }
.eyebrow-link { display: block; text-decoration: none; transition: color 0.15s; }
.eyebrow-link:hover { color: var(--cyan); text-shadow: 0 0 12px rgba(38, 230, 255, 0.6); }
.hero-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(80px, 17vw, 220px);
  line-height: 0.95; letter-spacing: 0.04em; color: var(--bone);
  text-shadow:
    3px 3px 0 var(--magenta),
    -3px -3px 0 var(--cyan),
    0 0 60px rgba(255, 46, 136, 0.25);
  position: relative;
  animation: glitch-in 0.9s steps(6) both;
}
@keyframes glitch-in {
  0% { transform: translateX(-8px); opacity: 0; clip-path: inset(0 0 60% 0); }
  40% { transform: translateX(6px); opacity: 1; clip-path: inset(30% 0 20% 0); }
  100% { transform: none; clip-path: inset(0 0 0 0); }
}
.hero-sub {
  font-family: "Anton", sans-serif; font-size: clamp(20px, 4vw, 40px);
  letter-spacing: 0.5em; margin: 18px 0 22px; color: var(--cyan);
}
.hero-copy { max-width: 640px; color: var(--muted); font-size: 18px; }
.hero-copy strong { color: var(--bone); }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin: 36px 0 0; }
.hero-hud {
  margin-top: 54px; display: flex; gap: 26px; flex-wrap: wrap; justify-content: center;
  font-size: 9px; color: var(--muted); letter-spacing: 0.18em;
}
.hud-live { color: var(--magenta); animation: blink 1.4s steps(2) infinite; }
.hud-block-live { color: var(--gold); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- ticker ---------- */
.ticker {
  border-top: 2px solid var(--magenta); border-bottom: 2px solid var(--magenta);
  background: var(--panel); overflow: hidden; padding: 12px 0;
}
.ticker-track {
  display: inline-flex; gap: 34px; white-space: nowrap;
  font-family: "Press Start 2P", monospace; font-size: 10px; color: var(--bone);
  letter-spacing: 0.12em;
  animation: roll 30s linear infinite;
}
.tick-dot { color: var(--cyan); }
@keyframes roll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 110px 22px 40px; }
.section-title {
  font-family: "Anton", sans-serif; font-size: clamp(38px, 6vw, 64px);
  letter-spacing: 0.05em; margin-bottom: 40px; color: var(--bone);
}
.section-tag { display: block; font-size: 9px; color: var(--gold); letter-spacing: 0.3em; margin-bottom: 14px; }

/* ---------- vibe cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--line); padding: 30px 26px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-6px); border-color: var(--cyan); }
.card-hot { border-color: var(--magenta); background: linear-gradient(160deg, var(--panel) 55%, rgba(255, 46, 136, 0.12)); }
.card-icon { width: 52px; height: 52px; color: var(--cyan); margin-bottom: 18px; }
.card-hot .card-icon { color: var(--magenta); }
.card h3 { font-family: "Anton", sans-serif; font-size: 24px; letter-spacing: 0.12em; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- drop TV ---------- */
.tv {
  background: var(--panel-2); border: 1px solid var(--line);
  padding: 26px; max-width: 780px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.tv-screen {
  background: var(--asphalt); border: 2px solid var(--line);
  padding: 28px; position: relative;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
}
.tv-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}
.tv-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 9px; color: var(--magenta); letter-spacing: 0.2em; margin-bottom: 24px;
  border-bottom: 1px dashed var(--line); padding-bottom: 14px;
}
.drop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 26px; position: relative; z-index: 1; }
.drop-grid dt { font-size: 10px; color: var(--muted); letter-spacing: 0.24em; margin-bottom: 4px; }
.drop-grid dd { font-family: "Anton", sans-serif; font-size: 20px; letter-spacing: 0.06em; }
.chip {
  display: inline-block; font-family: "Press Start 2P", monospace; font-size: 8px;
  background: var(--cyan); color: #04141A; padding: 4px 8px; vertical-align: middle; margin-left: 8px;
}
.tbd { color: var(--gold); }
.tv-foot { margin-top: 26px; font-size: 9px; color: var(--cyan); letter-spacing: 0.22em; }
.tv-controls { display: flex; gap: 10px; padding: 16px 6px 2px; align-items: center; }
.tv-controls span {
  width: 14px; height: 14px; border-radius: 50%; background: var(--line);
}
.tv-controls .tv-power { margin-left: auto; background: var(--magenta); box-shadow: 0 0 10px rgba(255, 46, 136, 0.7); }

/* ---------- hub ---------- */
.hub-lede { max-width: 640px; color: var(--muted); margin-bottom: 34px; }
.hub-panel {
  background: var(--panel); border: 1px solid var(--line);
  padding: 34px; max-width: 860px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.hub-panel[data-state="connected"] { border-color: var(--cyan); }
.hub-status { display: grid; gap: 12px; margin-bottom: 26px; }
.hub-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center;
  border-bottom: 1px dashed var(--line); padding-bottom: 10px;
}
.hub-label { font-size: 9px; color: var(--gold); letter-spacing: 0.2em; }
.hub-value { font-size: 16px; color: var(--bone); word-break: break-all; }
.hub-count { color: var(--cyan); font-size: 22px; }
.hub-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hub-msg { font-size: 9.5px; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 18px; min-height: 14px; }
.hub-msg.ok { color: var(--cyan); }
.hub-msg.err { color: var(--magenta); }
.hub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px;
}
.tok {
  background: var(--asphalt); border: 1px solid var(--line); padding: 10px;
  transition: transform 0.15s, border-color 0.15s;
}
.tok:hover { transform: translateY(-4px); border-color: var(--magenta); }
.tok img, .tok .tok-fallback {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 46, 136, 0.08) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(-45deg, rgba(38, 230, 255, 0.08) 0 10px, transparent 10px 20px);
}
.tok-fallback { color: var(--cyan); font-size: 11px; text-align: center; padding: 8px; }
.tok-id { font-family: "Press Start 2P", monospace; font-size: 8px; color: var(--muted); letter-spacing: 0.14em; margin-top: 8px; }
.tok-name { font-size: 12px; color: var(--bone); margin-top: 4px; line-height: 1.35; }
.tok-link { display: block; text-decoration: none; color: inherit; }

/* ---------- cassette roadmap ---------- */
.tape-wrap { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 40px; align-items: start; }
.cassette {
  background: var(--panel-2); border: 2px solid var(--line); padding: 26px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.cass-label {
  font-size: 9px; color: var(--gold); letter-spacing: 0.24em; text-align: center;
  border: 1px dashed var(--gold); padding: 10px; margin-bottom: 20px;
}
.cass-wheels { display: flex; justify-content: center; gap: 44px; }
.cass-wheels span {
  width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--cyan);
  position: relative;
}
.cass-wheels span::before {
  content: ""; position: absolute; inset: 26px; background: var(--cyan); border-radius: 50%;
}
.cass-wheels span::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 40deg, rgba(38, 230, 255, 0.5) 40deg 80deg, transparent 80deg 360deg);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tracklist { list-style: none; }
.tracklist li {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 6px; border-bottom: 1px dashed var(--line);
}
.track-no { font-size: 10px; color: var(--magenta); }
.track-name { font-family: "Anton", sans-serif; font-size: 21px; letter-spacing: 0.08em; }
.track-time { font-family: "Press Start 2P", monospace; font-size: 8.5px; color: var(--muted); letter-spacing: 0.1em; }

/* ---------- faq ---------- */
.faq { max-width: 780px; }
.faq details { border: 1px solid var(--line); background: var(--panel); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: "Anton", sans-serif; font-size: 18px; letter-spacing: 0.08em;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 22px; font-family: "Space Grotesk", sans-serif; }
.faq details[open] summary::after { content: "-"; color: var(--magenta); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---------- footer ---------- */
.footer { border-top: 2px solid var(--cyan); margin-top: 100px; background: var(--panel); }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 40px 22px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.footer-tag { font-size: 9px; color: var(--magenta); letter-spacing: 0.2em; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { width: 100%; color: var(--muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .tape-wrap { grid-template-columns: 1fr; }
  .nav-links { flex-wrap: wrap; font-size: 12px; gap: 12px; }
  .hub-row { grid-template-columns: 120px 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .cass-wheels span::after, .hud-live, .hud-block-live { animation: none; }
  .hero-title { animation: none; }
  html { scroll-behavior: auto; }
}
/* ---------- gallery (v3) ---------- */
.gallery-lede { color: var(--bone-dim); margin: 0 0 26px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.gallery .shot {
  margin: 0;
  border: 2px solid #23233a;
  background: var(--panel);
  padding: 10px;
  position: relative;
  overflow: hidden;
}
.gallery .shot::before {
  content: "REC \25CF";
  position: absolute; top: 12px; right: 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px; letter-spacing: 1px;
  color: var(--magenta);
  z-index: 2;
}
.gallery .shot img {
  display: block; width: 100%; height: auto;
  transition: transform .35s ease, filter .35s ease;
  filter: saturate(1.05) contrast(1.03);
}
.gallery .shot:hover img { transform: scale(1.06) rotate(.5deg); filter: saturate(1.2) contrast(1.08); }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 620px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .shot:last-child { grid-column: span 2; }
}

/* ---------- hub page (v3) ---------- */
.hub-note {
  margin-top: 28px; text-align: center;
  color: var(--gold); font-size: 8px; letter-spacing: 2px; opacity: .9;
}
.tv-foot-dim { opacity: .55; margin-top: 4px; }

/* ---------- gallery captions + trait bar (v4) ---------- */
.gallery .shot { display: flex; flex-direction: column; }
.gallery .shot figcaption {
  margin-top: 8px; text-align: center;
  font-size: 7px; letter-spacing: 1.5px; color: var(--cyan);
}
.gallery .shot::before { right: auto; left: 12px; color: var(--gold); content: "REC \25CF"; }
.gallery-traits {
  margin-top: 26px; text-align: center; line-height: 2.1;
  font-size: 8px; letter-spacing: 2px; color: var(--bone-dim);
}
/* ---------- v6: gadgets section ---------- */
/* gadgets: display-case device cards (v9) */
.gadgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 46px; align-items: start; justify-items: center; }
.gadget-note { margin-top: 18px; text-align: center; font-size: 8px; color: var(--muted); letter-spacing: 0.18em; }
.photo-credit { grid-column: 1 / -1; margin-top: 26px; text-align: center; font-size: 6.5px; color: var(--muted); letter-spacing: 0.14em; opacity: .75; }

.device-card { width: 264px; background: #101018; border: 2px solid var(--line); border-radius: 18px; padding: 12px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); }
.device-stage { position: relative; background: radial-gradient(ellipse at 50% 38%, #1E1E2E 0%, #0A0A12 72%); border: 1px solid #26263A; border-radius: 12px; overflow: hidden; }
.device-stage img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: center 30%; filter: saturate(1.05) contrast(1.06); }
.pager-stage { background: radial-gradient(ellipse at 50% 38%, #1E1E2E 0%, #0A0A12 72%); }
.pager-stage img { object-fit: contain; padding: 10px; box-sizing: border-box; filter: none; background: transparent; }
.stage-tag { position: absolute; bottom: 8px; left: 8px; font-size: 6.5px; color: #0A0A12; background: var(--gold); padding: 4px 7px; border-radius: 3px; letter-spacing: 0.16em; }

/* pager feed (now sits below the photo) */
.pager-screen { background: #86B800; border: 2px solid #5E8200; border-radius: 6px; padding: 16px 10px; margin-top: 12px; min-height: 68px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 14px rgba(46,80,0,.6); overflow: hidden; }
.pager-line { display: block; font-size: 8.5px; color: #1A2400; letter-spacing: 0.12em; text-align: center; text-shadow: 0 1px 0 rgba(255,255,255,.25); }
.pager-flip { animation: pager-flip 0.28s steps(2); }
@keyframes pager-flip { 0% { opacity: 0.1; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
.pager-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 7px; color: #6A6A7A; letter-spacing: 0.2em; }
.pager-led { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); animation: blink 1.4s steps(2) infinite; }

/* i1000 (photo stage + live radio controls) */
.i1000 { width: 264px; background: linear-gradient(180deg, #1B1B29, #101018); border: 2px solid var(--line); border-radius: 18px 18px 10px 10px; padding: 12px; position: relative; box-shadow: 0 12px 34px rgba(0,0,0,.55); }
.i1000-antenna { position: absolute; top: -26px; right: 22px; width: 5px; height: 30px; background: #3A3A4A; border-radius: 3px; }
.i1000-antenna::after { content: ""; position: absolute; top: -6px; left: -1px; width: 7px; height: 7px; border-radius: 50%; background: #4A4A5A; }
.i1000-screen { background: #050509; border: 2px solid #26263A; border-radius: 6px; padding: 10px; margin-top: 12px; box-shadow: inset 0 0 18px rgba(0,0,0,.8); cursor: pointer; }
.i1000-status { display: flex; justify-content: space-between; font-size: 6.5px; color: var(--cyan); letter-spacing: 0.18em; margin-bottom: 8px; }
.i1000.onair .i1000-status span:first-child { color: var(--magenta); animation: blink 1s steps(2) infinite; }
.i1000-display { font-size: 8px; color: #8FE832; letter-spacing: 0.14em; text-align: center; min-height: 42px; display: flex; align-items: center; justify-content: center; text-shadow: 0 0 8px rgba(143,232,50,.5); line-height: 1.9; }
.i1000-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.i1000-keys button { font-family: "Press Start 2P", monospace; font-size: 9px; color: var(--bone); background: #23232F; border: 1px solid #34344A; border-bottom-width: 3px; border-radius: 6px; padding: 9px 0; cursor: pointer; }
.i1000-keys button:active { transform: translateY(2px); border-bottom-width: 1px; }
.i1000.onair .i1000-keys button { animation: keypulse var(--beat, 0.63s) ease-in-out infinite; animation-delay: calc(var(--k, 0) * 0.08s); }
@keyframes keypulse { 0%, 100% { box-shadow: none; border-color: #34344A; } 12% { box-shadow: 0 0 10px rgba(38,230,255,.55); border-color: var(--cyan); } }
.i1000-ptt { width: 100%; padding: 10px 0; font-size: 9px; color: #16040C; background: var(--gold); border: none; border-bottom: 4px solid #B89021; border-radius: 8px; cursor: pointer; letter-spacing: 0.2em; }
.i1000-ptt:active { border-bottom-width: 1px; transform: translateY(2px); }

/* ---------- v6: old-web footer row ---------- */
.oldweb { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; width: 100%; padding-top: 20px; }
.vcr-clock { font-size: 15px; color: var(--gold); text-shadow: 0 0 12px rgba(255,210,63,.55); letter-spacing: 0.1em; }
.vcr-clock .colon { animation: blink 1s steps(2) infinite; }
.counter { font-size: 13px; letter-spacing: 0.34em; color: #FF3B3B; background: #111118; padding: 6px 8px 5px 14px; border: 1px solid var(--line); text-shadow: 0 0 8px rgba(255,59,59,.7); background-image: repeating-linear-gradient(90deg, transparent 0 9px, #1E1E2A 9px 10px); }
.badge { font-size: 7.5px; color: var(--muted); border: 1px solid var(--line); padding: 8px 10px; letter-spacing: 0.14em; }

/* ---------- v6: screensaver ---------- */
.screensaver { position: fixed; inset: 0; z-index: 90; background: var(--asphalt); display: none; }
.screensaver.active { display: block; }
.ss-row { position: absolute; left: 0; right: 0; top: 8vh; animation: ssY 7s linear infinite alternate; }
.ss-cassette { display: inline-block; margin-left: 6vw; width: 190px; border: 2px solid var(--cyan); background: var(--panel-2); padding: 34px 12px 16px; text-align: center; color: var(--gold); font-size: 7px; letter-spacing: 0.14em; position: relative; animation: ssX 11s linear infinite alternate; }
.ss-cassette::before, .ss-cassette::after { content: ""; position: absolute; top: 10px; width: 22px; height: 22px; border: 3px solid var(--cyan); border-radius: 50%; }
.ss-cassette::before { left: 24px; }
.ss-cassette::after { right: 24px; }
.ss-text { position: absolute; bottom: 8vh; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--muted); letter-spacing: 0.3em; }
@keyframes ssX { from { margin-left: 6vw; } to { margin-left: 74vw; } }
@keyframes ssY { from { top: 8vh; } to { top: 68vh; } }

/* ---------- v6: CRT flash on tab return ---------- */
.crt-flash { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; background: #fff; transform-origin: center; }
.crt-flash.go { animation: crtgo 0.45s steps(8) both; }
@keyframes crtgo { 0% { opacity: 0; transform: scaleY(0.004); } 20% { opacity: 1; transform: scaleY(0.012); } 45% { opacity: 0.35; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1); } }

/* ---------- v6: tracking drift band ---------- */
.tracking { position: fixed; left: 0; right: 0; top: -40px; height: 30px; z-index: 59; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(245,243,238,.05) 40%, rgba(255,255,255,.09) 50%, rgba(245,243,238,.05) 60%, transparent); animation: track 26s linear infinite; }
@keyframes track { 0%, 86% { opacity: 0; top: -40px; } 88% { opacity: 0.8; top: 8%; } 97% { opacity: 0.5; top: 78%; } 100% { opacity: 0; top: 92%; } }

/* ---------- v6: konami phosphor + stamp ---------- */
.cheat-stamp { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-8deg) scale(2); z-index: 99; font-size: 18px; color: var(--gold); border: 4px solid var(--gold); padding: 20px 26px; letter-spacing: 0.2em; opacity: 0; pointer-events: none; text-shadow: 0 0 18px rgba(255,210,63,.6); box-shadow: 0 0 30px rgba(255,210,63,.25); }
.cheat-stamp.show { animation: stampin 2.4s steps(12) both; }
@keyframes stampin { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(-8deg) scale(2.6); } 15% { opacity: 1; transform: translate(-50%,-50%) rotate(-8deg) scale(1); } 80% { opacity: 1; transform: translate(-50%,-50%) rotate(-8deg) scale(1); } 100% { opacity: 0; transform: translate(-50%,-50%) rotate(-8deg) scale(1); } }
body.phosphor main, body.phosphor .footer, body.phosphor .ticker { filter: brightness(0.9) sepia(0.65) hue-rotate(-12deg) saturate(2.6); }

/* ---------- v6: NO SIGNAL 404 ---------- */
.ns-body { background: #1428A0; }
.ns-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; padding: 40px 20px; }
.ns-ch { font-size: 10px; color: rgba(245,243,238,.75); letter-spacing: 0.3em; }
.ns-title { font-family: "Anton", sans-serif; font-size: clamp(64px, 14vw, 180px); color: var(--bone); letter-spacing: 0.04em; line-height: 1; text-shadow: 4px 4px 0 rgba(0,0,0,.35), 0 0 60px rgba(38,230,255,.3); animation: glitch-in 0.9s steps(6) both; }
.ns-sub { font-size: 10px; color: var(--gold); letter-spacing: 0.22em; }

/* ---------- v6: responsive + reduced motion ---------- */
@media (max-width: 620px) {
  .gadgets { grid-template-columns: 1fr; gap: 34px; }
  .oldweb { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pager-flip, .pager-led, .tracking, .ss-row, .ss-cassette { animation: none; }
  .i1000.onair .i1000-keys button { animation: none; }
  .vcr-clock .colon { animation: none; }
}

/* ---- mobile hamburger nav ---- */
#hub-burger { display: none; background: none; border: 1px solid rgba(38,230,255,.35); color: var(--cyan); font-size: 18px; line-height: 1; padding: 4px 10px; cursor: pointer; }
@media (max-width: 760px) {
  #hub-burger { display: block; }
  header.nav { position: relative; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg, #0b0b12); border-bottom: 1px solid rgba(38,230,255,.3); padding: 10px 16px; z-index: 50;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 14px; }
}

/* ---- gate: dark blue room between street and hub (Option A) ---- */
body[data-page="gate"] { background: radial-gradient(ellipse at 50% 0%, #123b63 0%, #0a2440 55%, #071a30 100%); }
body[data-page="gate"] .scanlines { opacity:.5; }
body[data-page="gate"] .nav-links { background: rgba(10,36,64,.9); }
@media (max-width: 760px) {
  body[data-page="gate"] .nav-links { background:#0a2440; }
}

/* ---- scanline softening: profiles clean, dash/gate whisper ---- */
body[data-page="profile"] .scanlines { display:none !important; }
body[data-page="dash"] .scanlines { opacity:.22; }
body[data-page="partyline"] .scanlines { opacity:.35; }

/* ---- home checker CTA card ---- */
.wl-cta { display:block; text-decoration:none; max-width:520px; margin:0 auto; text-align:center; }
.wl-cta h3 { color:var(--cyan); }
.wl-cta-btn { display:inline-block; margin-top:14px; font-size:10px; color:var(--magenta); letter-spacing:.14em;
  border:1px solid var(--magenta); padding:9px 16px; }
.wl-cta:hover .wl-cta-btn { color:#fff; background:var(--magenta); box-shadow:0 0 18px rgba(255,46,136,.5); }
