:root {
  --void: #05010a;
  --deep: #0b0318;
  --magenta: #ff2bd6;
  --hot: #ff007a;
  --cyan: #00f7ff;
  --violet: #b44cff;
  --sun-hi: #ffe566;
  --sun-lo: #ff4d6d;
  --text: #e8f4ff;
  --muted: #9bb0c9;
  --font-display: "Orbitron", sans-serif;
  --font-logo: "Audiowide", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --font-mono: "Share Tech Mono", monospace;
  --font-led: "LED Real", "Share Tech Mono", monospace;
}

@font-face {
  font-family: "LED Real";
  src: url("/fonts/led-real-web.woff") format("woff"),
    url("/fonts/led.real-regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  background: var(--void);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: var(--void);
  font-family: var(--font-mono);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- overlays ---------- */

.fx {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.18) 2px 3px
  );
  opacity: 0.28;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(5, 1, 10, 0.75) 100%);
}

/* ---------- speak spell gate ---------- */

.ss-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: transparent;
  pointer-events: auto;
}

.ss-gate[hidden] {
  display: none !important;
}

.ss-gate .ss-wrap {
  width: min(417px, 86vw);
  padding: 16px;
  overflow: visible;
}

.ss-gate .ss-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 14px rgba(255, 0, 220, 0.18))
    drop-shadow(0 0 10px rgba(0, 240, 255, 0.12));
}

.ss-key {
  cursor: pointer;
}

.ss-key:focus {
  outline: none;
}

.ss-key:hover rect,
.ss-key:focus rect {
  filter: brightness(1.28);
}

.ss-key:active rect {
  filter: brightness(1.45);
}

#ss-gate-code {
  font-family: var(--font-led);
  letter-spacing: 0.08em;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 6vw;
  background: linear-gradient(to bottom, rgba(5, 1, 10, 0.75), transparent);
  pointer-events: none;
}

.nav a,
.nav button,
.nav input,
.nav .vol,
.nav .logo-dock {
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-logo);
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  text-shadow: 0 0 12px rgba(0, 247, 255, 0.65);
}

.logo-mark {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.logo-dock {
  position: relative;
  z-index: 2;
}

.logo-socials {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 28px;
  margin: 0;
  padding: 0.5rem 0 0;
  list-style: none;
  pointer-events: none;
}

.logo-socials a {
  display: block;
  color: var(--cyan);
  text-decoration: none;
  transform: translateY(-0.55rem);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.28s ease,
    opacity 0.22s ease,
    visibility 0.22s ease,
    color 0.18s ease;
}

.logo-dock:hover .logo-socials,
.logo-dock:focus-within:has(:focus-visible) .logo-socials {
  pointer-events: auto;
}

.logo-dock:hover .logo-socials a,
.logo-dock:focus-within:has(:focus-visible) .logo-socials a {
  transform: none;
  opacity: 1;
  visibility: visible;
}

.logo-socials a:hover,
.logo-socials a:focus-visible {
  color: var(--magenta);
  outline: none;
}

.logo-socials a:hover .logo-mark,
.logo-socials a:focus-visible .logo-mark {
  filter: drop-shadow(0 0 8px var(--magenta));
}

.nav-end {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.9rem, 2.4vw, 1.8rem);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-current {
  color: var(--magenta);
  text-shadow: 0 0 10px var(--magenta);
}

.nav-short {
  display: none;
}

.nav-menu {
  display: none;
}

.deck-wrap {
  position: relative;
  width: 240px;
  flex: 0 0 240px;
  pointer-events: auto;
}

.deck-slot {
  display: none;
  width: 100%;
  height: 52px;
  color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.22));
  pointer-events: none;
}

.deck:not(.is-on) {
  display: none;
}

.deck-wrap:has(.deck:not(.is-on)) .deck-slot {
  display: block;
}

.deck-slot-face {
  display: block;
  width: 100%;
  height: 100%;
}

.deck-slot-word {
  fill: currentColor;
  font-family: var(--font-logo);
  font-size: 34px;
  letter-spacing: 0.12em;
}

.deck-slot-badge {
  fill: currentColor;
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-anchor: middle;
}

.deck {
  position: relative;
  width: 100%;
  aspect-ratio: 400 / 252;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.deck-tape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: rgba(255, 43, 214, 0.85);
  filter: drop-shadow(0 0 10px rgba(255, 43, 214, 0.18));
  transition: opacity 0.4s ease, filter 0.4s ease, color 0.4s ease;
}

.deck.is-on .deck-tape {
  color: var(--cyan);
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(0, 247, 255, 0.28));
}

.deck:not(.is-on) .deck-tape {
  opacity: 0.28;
  filter: drop-shadow(0 0 6px rgba(255, 43, 214, 0.1));
}

.deck-spool {
  transform-box: view-box;
  transform-origin: 100px 108px;
  animation: spool-spin 1.8s linear infinite;
  animation-play-state: paused;
}

.deck-spool-right {
  transform-origin: 300px 108px;
  animation-duration: 2.2s;
}

.deck.is-on .deck-spool {
  animation-play-state: running;
}

@keyframes spool-spin {
  to {
    transform: rotate(360deg);
  }
}

.deck-label {
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 12%;
  top: 57%;
  bottom: 14.5%;
  display: flex;
  align-items: center;
  gap: 0.18rem;
  min-width: 0;
  padding: 0 0.12rem;
  overflow: visible;
}

.deck-tip {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  z-index: 4;
  width: max-content;
  max-width: 240px;
  margin: 0;
  padding: 0.38rem 0.58rem 0.4rem;
  border: 1px solid rgba(0, 247, 255, 0.55);
  background: rgba(5, 1, 10, 0.94);
  box-shadow: 0 0 16px rgba(0, 247, 255, 0.22);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.45);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.deck-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 7px solid rgba(0, 247, 255, 0.7);
  transform: translateX(-50%);
}

.deck.is-on:hover .deck-tip,
.deck.is-on:focus-within .deck-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.music-hint {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  margin: 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.music-hint-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid currentColor;
  filter: drop-shadow(0 0 8px var(--cyan));
  animation: hintFlash 0.9s ease-in-out infinite;
}

.music-hint-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(0, 247, 255, 0.9);
  animation: hintFlash 0.9s ease-in-out infinite;
}

.music-hint.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes hintFlash {
  0%,
  100% {
    opacity: 1;
    color: var(--cyan);
  }
  50% {
    opacity: 0.4;
    color: var(--magenta);
  }
}

.music-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  color: var(--magenta);
}

.music-toggle .icon-off,
.music-toggle .eq {
  grid-area: 1 / 1;
}

.music-toggle .icon-off {
  width: 16px;
  height: 16px;
}

.music-toggle .eq {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.music-toggle .eq span {
  display: block;
  width: 3px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: eq 0.7s ease-in-out infinite;
  transform-origin: bottom;
}

.music-toggle .eq span:nth-child(1) {
  height: 7px;
}

.music-toggle .eq span:nth-child(2) {
  height: 14px;
  animation-delay: 0.15s;
}

.music-toggle .eq span:nth-child(3) {
  height: 10px;
  animation-delay: 0.28s;
}

.deck.is-on .music-toggle .icon-off {
  display: none;
}

.deck.is-on .music-toggle .eq {
  display: flex;
}

.deck.is-waiting .deck-tape {
  animation: waitPulse 1.5s ease-in-out infinite;
}

@keyframes waitPulse {
  50% {
    color: var(--magenta);
    opacity: 0.55;
    filter: drop-shadow(0 0 16px rgba(0, 247, 255, 0.45));
  }
}

.track-skip {
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1;
  text-shadow: 0 0 8px rgba(0, 247, 255, 0.55);
}

.track-skip:hover,
.track-skip:focus-visible {
  color: var(--magenta);
  text-shadow: 0 0 10px var(--magenta);
}

.track {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.track-scroll {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 12s linear infinite;
}

.track-scroll span {
  white-space: nowrap;
  line-height: 1;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 247, 255, 0.45);
}

.deck:not(.is-on) .track-scroll {
  animation-play-state: paused;
  opacity: 0.45;
}

.vol {
  --vol-cell: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  flex: 0 0 52px;
  width: 52px;
  color: var(--cyan);
  cursor: ew-resize;
  outline: none;
  user-select: none;
  touch-action: none;
}

.vol-bezel {
  width: 100%;
  height: 18px;
  padding: 2px;
  border: 1px solid currentColor;
  border-radius: 2px;
  background: rgba(5, 2, 8, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7);
}

.vol-window {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 1px;
  background: #050208;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.85);
}

.vol-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45),
    transparent 38%,
    transparent 62%,
    rgba(0, 0, 0, 0.5)
  );
}

.vol-drum {
  display: flex;
  height: 100%;
  width: max-content;
  padding: 0 calc(50% - 0.5 * var(--vol-cell));
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 247, 255, 0.5) 0 1px,
    #07050c 1px 3px
  );
  transition: margin-left 0.22s ease;
}

.vol-tick {
  position: relative;
  flex: 0 0 var(--vol-cell);
  width: var(--vol-cell);
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.vol-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.vol-wedge {
  display: block;
  width: 36px;
  height: 5px;
  fill: currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 42%, rgba(123, 44, 191, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 58%, rgba(255, 0, 122, 0.18), transparent 50%),
    linear-gradient(to bottom, #020008 0%, #120428 38%, #1a0530 52%, #05010a 100%);
}

.sky {
  position: absolute;
  inset: 0 0 50%;
  z-index: 1;
}

.sun {
  position: absolute;
  left: 50%;
  bottom: 0;
  top: auto;
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  transform: translate(-50%, 42%);
}

.sun-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-hi) 0%, #ff9f43 38%, var(--sun-lo) 72%, #c2007a 100%);
  box-shadow:
    0 0 40px rgba(255, 77, 109, 0.85),
    0 0 90px rgba(255, 0, 122, 0.45),
    0 0 160px rgba(255, 43, 214, 0.25);
}

.sun-bands {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 9px,
    rgba(5, 1, 10, 0.72) 9px 13px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 36%, #000 58%);
  mask-image: linear-gradient(to bottom, transparent 36%, #000 58%);
}

.distant-lights {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2%;
  height: 18%;
  z-index: 2;
}

.distant-lights span {
  position: absolute;
  border-radius: 50%;
  animation: pulse-light 3.4s ease-in-out infinite;
}

@keyframes pulse-light {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  z-index: 2;
}

.horizon-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--cyan), var(--magenta), transparent);
  box-shadow: 0 0 22px var(--magenta), 0 0 48px rgba(255, 43, 214, 0.55);
  z-index: 3;
}

.horizon-glow {
  position: absolute;
  left: 50%;
  top: -8%;
  width: 70%;
  height: 28%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 77, 109, 0.45), transparent 70%);
  filter: blur(8px);
}

.floor {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 43, 214, 0.14) 100%);
  pointer-events: none;
}

.grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 8rem 6vw 18vh;
}

.kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.6);
}

.kicker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 8px var(--hot);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 7.2vw, 6.1rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.title-glitch {
  position: relative;
  display: inline-block;
  animation: boot 0.85s ease both;
}

.title-followed {
  background: linear-gradient(180deg, #ffffff 0%, #c8f6ff 42%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(200, 246, 255, 0.45));
}

.title-by {
  color: var(--hot);
  -webkit-text-fill-color: var(--hot);
  background: none;
  animation: byPulse 1.6s ease-in-out infinite;
}

@keyframes byPulse {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px var(--hot)) drop-shadow(0 0 24px rgba(255, 0, 122, 0.95));
  }
  50% {
    opacity: 0.55;
    filter: drop-shadow(0 0 6px var(--hot));
  }
}

.title-ravens {
  background: linear-gradient(180deg, #d7b3ff 0%, #9b5cff 48%, #6b21a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(155, 92, 255, 0.85));
}

.title-systems {
  background: linear-gradient(180deg, #ffd0f3 0%, var(--magenta) 48%, #c2007a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 43, 214, 0.75));
}

.file-view {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  overflow: auto;
}

.file-view[hidden] {
  display: none !important;
}

body.is-file-view {
  overflow: hidden;
}

body.is-file-view .hero > .hero-copy,
body.is-file-view .panel,
body.is-file-view .foot {
  visibility: hidden;
  pointer-events: none;
}

body.is-file-view .file-copy,
.file-page .hero-copy {
  padding: 7.5rem 6vw 26vh;
}

.file-view.is-nightwave {
  place-items: start center;
  align-content: start;
  overflow-x: hidden;
}

.file-view.is-nightwave .file-copy {
  padding: 6.4rem 6vw 0;
}

.file-view.is-nightwave .file-copy .title {
  font-size: clamp(1.7rem, 5vw, 3.4rem);
}

.file-view.is-nightwave .coming-badge,
.file-view.is-nightwave .hud {
  display: none;
}

.file-view.is-nightwave .tag {
  max-width: 36rem;
  margin: 0.55rem auto 0.35rem;
}

.file-view.is-nightwave .file-actions {
  margin-top: 0.55rem;
}

.file-view.is-signal,
.file-view.is-systems,
.file-view.is-after-dark {
  place-items: start center;
  align-content: start;
  overflow-x: hidden;
}

.file-view.is-signal .file-copy,
.file-view.is-systems .file-copy,
.file-view.is-after-dark .file-copy {
  padding: 6.4rem 6vw 0;
}

.file-view.is-signal .file-copy .title,
.file-view.is-systems .file-copy .title,
.file-view.is-after-dark .file-copy .title {
  font-size: clamp(1.7rem, 5vw, 3.4rem);
}

.file-view.is-signal .coming-badge,
.file-view.is-signal .hud,
.file-view.is-systems .coming-badge,
.file-view.is-systems .hud,
.file-view.is-after-dark .coming-badge,
.file-view.is-after-dark .hud {
  display: none;
}

.file-view.is-signal .tag,
.file-view.is-systems .tag,
.file-view.is-after-dark .tag {
  max-width: 36rem;
  margin: 0.55rem auto 0.35rem;
}

.file-view.is-signal .file-actions,
.file-view.is-systems .file-actions,
.file-view.is-after-dark .file-actions,
.file-view.is-dispatch .file-actions {
  margin-top: 0.55rem;
}

.file-view.is-dispatch {
  place-items: start center;
  align-content: start;
  overflow-x: hidden;
}

.file-view.is-dispatch .file-copy {
  padding: 6.4rem 6vw 0;
}

.file-view.is-dispatch .file-copy .title {
  font-size: clamp(1.7rem, 5vw, 3.4rem);
}

.file-view.is-dispatch .coming-badge,
.file-view.is-dispatch .hud {
  display: none;
}

.file-view.is-dispatch .tag {
  max-width: 36rem;
  margin: 0.55rem auto 0.35rem;
}

.dispatch-board {
  width: min(42rem, calc(100% - 8vw));
  margin: 0.35rem auto 4.5rem;
  padding: 0.2rem 1.25rem 0.45rem;
  border: 1px solid rgba(0, 247, 255, 0.2);
  border-radius: 0.9rem;
  background: rgba(5, 1, 10, 0.78);
  box-shadow:
    0 0 24px rgba(5, 1, 10, 0.5),
    inset 0 0 28px rgba(0, 247, 255, 0.04);
  text-align: left;
}

.dispatch-board[hidden] {
  display: none !important;
}

.dispatch-log {
  display: grid;
  gap: 0.35rem;
}

.dispatch-entry {
  padding: 0.15rem 0 0.35rem;
  border-top: 1px solid rgba(0, 247, 255, 0.18);
}

.dispatch-entry:last-child {
  border-bottom: 1px solid rgba(0, 247, 255, 0.18);
}

.dispatch-date {
  margin: 0.9rem 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.dispatch-entry ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

.dispatch-entry li {
  margin: 0.32rem 0;
  line-height: 1.45;
}

.dispatch-entry a {
  color: var(--magenta);
}

.dispatch-entry a:hover,
.dispatch-entry a:focus-visible {
  color: var(--cyan);
}

.dispatch-empty {
  margin: 0.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.file-copy .title {
  font-size: clamp(2rem, 6.2vw, 4.6rem);
}

.file-copy .hud {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr 1fr;
  text-align: left;
}

.file-copy .cta {
  margin-top: 0;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.file-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.file-art {
  display: block;
  width: min(46vw, 220px);
  height: min(46vw, 220px);
  margin: 0.2rem auto 1.15rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan);
  box-shadow:
    0 0 18px rgba(0, 247, 255, 0.45),
    0 0 42px rgba(255, 43, 214, 0.28);
}

.file-art[hidden] {
  display: none;
}

.file-view.is-support .coming-badge {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 247, 255, 0.28);
}

.file-view.is-support .coming-badge .dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.file-view.is-support .file-copy .title {
  font-size: clamp(1.7rem, 5.4vw, 3.8rem);
}

.coming-badge[hidden] {
  display: none !important;
}

.coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.28);
}

.coming-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes boot {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tag {
  margin: 1.15rem 0 1.8rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.cta[hidden] {
  display: none !important;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 0 12px rgba(0, 247, 255, 0.25) inset,
    0 0 18px rgba(0, 247, 255, 0.25);
  background: rgba(0, 247, 255, 0.06);
}

.cta:hover,
.cta:focus-visible {
  background: rgba(255, 43, 214, 0.12);
  border-color: var(--magenta);
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.45);
}

.cta-arrow {
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(4px);
  }
}

/* ---------- panels ---------- */

.panel {
  position: relative;
  z-index: 6;
  scroll-margin-top: 4.5rem;
  padding: 7rem 6vw;
  background:
    linear-gradient(to bottom, rgba(5, 1, 10, 0.55), rgba(8, 2, 18, 0.92));
  border-top: 1px solid rgba(255, 43, 214, 0.18);
}

.panel-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.6rem;
  color: var(--magenta);
  font-family: var(--font-mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.panel h2 {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(0, 247, 255, 0.2);
}

.section-intro,
.lede {
  max-width: 42rem;
  color: var(--muted);
}

.origin-grid > p {
  max-width: 42rem;
  color: var(--muted);
}

.lede {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
}

.hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 2.4rem 0 0;
  list-style: none;
}

.hud li {
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(0, 247, 255, 0.28);
  background: rgba(0, 247, 255, 0.04);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.08);
}

.hud span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hud strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(0, 247, 255, 0.55);
  animation: pulse-light 3.4s ease-in-out infinite;
}

.status-dot-alt {
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta), 0 0 16px rgba(255, 43, 214, 0.5);
  animation-delay: 0.45s;
}

.vu-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.vu-rack {
  position: relative;
  margin: 2rem 0 0;
  padding: 0.85rem 0.95rem 1rem;
  border: 1px solid rgba(0, 247, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(16, 6, 28, 0.92), rgba(5, 2, 10, 0.96));
  box-shadow:
    0 0 18px rgba(255, 43, 214, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vu-rack.is-live {
  border-color: rgba(0, 247, 255, 0.45);
  box-shadow:
    0 0 22px rgba(0, 247, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vu-rack-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 0.7rem;
}

.vu-kicker,
.vu-brand,
.vu-state {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.vu-kicker {
  color: var(--cyan);
}

.vu-brand {
  color: var(--muted);
}

.vu-state {
  color: var(--muted);
}

.vu-rack.is-live .vu-state {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.45);
}

.vu-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.vu-meter {
  position: relative;
}

.vu-ch {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  left: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 247, 255, 0.4);
}

.vu-peak {
  position: absolute;
  z-index: 2;
  top: 0.58rem;
  right: 0.7rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a0a14;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(255, 0, 122, 0.28);
}

.vu-peak.is-lit {
  background: var(--hot);
  box-shadow:
    0 0 8px var(--hot),
    0 0 16px rgba(255, 0, 122, 0.7),
    0 0 0 1px rgba(255, 180, 210, 0.45);
}

.vu-window {
  position: relative;
  overflow: hidden;
  aspect-ratio: 280 / 168;
  border: 1px solid rgba(0, 247, 255, 0.22);
  background:
    radial-gradient(ellipse at 50% 84%, #1c1230 0%, #07040e 58%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.78);
}

.vu-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    transparent 40%,
    transparent 62%,
    rgba(0, 0, 0, 0.38)
  );
}

.vu-face {
  display: block;
  width: 100%;
  height: 100%;
}

.vu-needle-shaft {
  stroke: var(--cyan);
  stroke-width: 1.7;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(0, 247, 255, 0.7));
}

.vu-pivot-ring {
  fill: #120818;
  stroke: rgba(0, 247, 255, 0.55);
  stroke-width: 1.2;
}

.vu-pivot {
  fill: var(--cyan);
}

#origin.panel {
  scroll-margin-top: -1rem;
}

#archive.panel {
  box-sizing: border-box;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 0;
  padding: 5.75rem 4vw 1.35rem;
}

#archive .panel-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1560px);
  max-width: 1560px;
  min-height: 0;
  margin-inline: auto;
}

.tapes {
  --tape-gap: clamp(1.15rem, 2.6vh, 2.4rem);
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: repeat(2, max-content);
  justify-content: center;
  align-content: center;
  gap: var(--tape-gap);
  width: 100%;
  min-height: 0;
  margin-top: 0.85rem;
  position: relative;
  container-type: size;
}

.tape-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.tape {
  position: relative;
  display: block;
  width: min(
    calc((100cqw - var(--tape-gap)) / 2),
    calc(((100cqh - var(--tape-gap)) / 2) * 400 / 252)
  );
  aspect-ratio: 400 / 252;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  container-type: inline-size;
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.tape-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: rgba(255, 43, 214, 0.85);
  filter: drop-shadow(0 0 18px rgba(255, 43, 214, 0.18));
  transition: color 0.25s ease, filter 0.25s ease;
}

.tape-id {
  position: absolute;
  z-index: 1;
  top: 17.5%;
  left: 12%;
  margin: 0;
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: 0.18em;
  font-size: 0.62rem;
}

.tape-label {
  position: absolute;
  z-index: 1;
  left: 12%;
  right: 12%;
  top: 63%;
  bottom: 14.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0.1rem 0.4rem 0;
  overflow: hidden;
}

.tape h3 {
  margin: 0 0 0.12rem;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 5.2cqw, 1.12rem);
  line-height: 1.15;
  flex: 0 0 auto;
}

.tape-label p {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: clamp(0.64rem, 3.5cqw, 0.9rem);
  line-height: 1.28;
  flex: 1 1 auto;
  min-height: 0;
}

.tape-open {
  margin-top: auto;
  flex: 0 0 auto;
  color: var(--cyan);
  font-family: var(--font-mono);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(0.58rem, 2.8cqw, 0.7rem);
  padding-bottom: 0.05rem;
}

.tape::before,
.tape::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--cyan);
  pointer-events: none;
  z-index: 2;
}

.tape::before {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.tape::after {
  right: 10px;
  bottom: 10px;
  border-left: 0;
  border-top: 0;
}

.tape:hover,
.tape:focus-visible {
  transform: translateY(-6px);
  outline: none;
}

.tape:hover .tape-outline,
.tape:focus-visible .tape-outline {
  color: var(--cyan);
  filter: drop-shadow(0 0 22px rgba(0, 247, 255, 0.28));
}

.tape:hover .deck-spool,
.tape:focus-visible .deck-spool {
  animation-play-state: running;
}

.tape:hover .tape-open,
.tape:focus-visible .tape-open {
  color: var(--magenta);
}

/* ---------- nightwave receiver ---------- */

.nightwave-board {
  position: relative;
  width: min(100%, 1480px);
  padding: 2.1rem 4vw 8vh;
}

.nightwave-board.is-tuned {
  padding-bottom: calc(100dvh - 6.4rem);
}

.nightwave-board[hidden] {
  display: none !important;
}

.tuner-stage {
  display: flex;
  flex-direction: column;
  width: min(72rem, 94vw);
  margin: 0 auto;
}

.tuner-rig {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.tuner-face {
  position: relative;
  isolation: isolate;
  height: 10.4rem;
  padding: 1.15rem 1.15rem 1.35rem;
  border: 2px solid var(--cyan);
  background: rgba(0, 247, 255, 0.1);
  box-shadow:
    0 0 18px rgba(0, 247, 255, 0.28),
    inset 0 0 28px rgba(0, 247, 255, 0.08);
  overflow: hidden;
}

.tuner-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 244, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 244, 255, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.tuner-rim {
  position: absolute;
  inset: 7px;
  border: 2px solid var(--magenta);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.28);
}

.tuner-scale {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin: 0.15rem 0.35rem 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(232, 244, 255, 0.72);
}

.tuner-needle {
  position: absolute;
  z-index: 2;
  top: 1.85rem;
  bottom: 2.4rem;
  left: calc(1.35rem + (100% - 2.7rem) * var(--tune, 0));
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 22px rgba(0, 247, 255, 0.55);
  transform: translateX(-50%);
  transition: left 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.tuner-needle::before {
  content: "";
  position: absolute;
  top: -0.18rem;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.42rem solid var(--cyan);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 6px var(--cyan));
}

.nightwave-board.is-scanning .tuner-needle {
  background: var(--hot);
  box-shadow: 0 0 10px var(--hot), 0 0 22px rgba(255, 0, 122, 0.55);
}

.nightwave-board.is-scanning .tuner-needle::before {
  border-top-color: var(--hot);
  filter: drop-shadow(0 0 6px var(--hot));
}

.tuner-wave {
  position: absolute;
  z-index: 1;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.15rem;
  width: calc(100% - 2.4rem);
  height: 1.35rem;
  overflow: visible;
}

.tuner-wave path {
  fill: none;
  stroke: rgba(0, 247, 255, 0.55);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.nightwave-board.is-tuned .tuner-wave path,
.nightwave-board.is-scanning .tuner-wave path {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(0, 247, 255, 0.55));
  animation: tuner-wave 1.8s linear infinite;
}

.nightwave-board.is-scanning .tuner-wave path {
  stroke: var(--hot);
  animation-duration: 0.7s;
}

@keyframes tuner-wave {
  from {
    stroke-dasharray: 8 10;
    stroke-dashoffset: 0;
  }
  to {
    stroke-dasharray: 8 10;
    stroke-dashoffset: -36;
  }
}

.tuner-freq {
  position: absolute;
  z-index: 2;
  right: 1.35rem;
  bottom: 2.55rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 247, 255, 0.45);
}

.nightwave-board.is-scanning .tuner-freq {
  color: var(--hot);
  text-shadow: 0 0 12px rgba(255, 0, 122, 0.55);
}

.tuner-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0.7rem;
}

.tuner-ctrl {
  appearance: none;
  min-width: 5.4rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(0, 247, 255, 0.72);
  background: rgba(5, 1, 10, 0.45);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.tuner-ctrl:hover,
.tuner-ctrl:focus-visible {
  color: var(--void);
  background: var(--cyan);
  border-color: var(--cyan);
  outline: none;
}

.tuner-ctrl.is-live {
  color: var(--void);
  background: var(--hot);
  border-color: var(--hot);
}

.tuner-readout {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.45);
}

.station-log {
  min-width: 0;
  margin-top: 1.15rem;
  padding: 0;
}

.station-log-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
}

.station-list {
  display: grid;
  gap: 0.15rem;
}

.station-row {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.15rem;
  border: 0;
  border-top: 1px solid rgba(0, 247, 255, 0.18);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.station-row:last-child {
  border-bottom: 1px solid rgba(0, 247, 255, 0.18);
}

.station-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.station-row:hover,
.station-row:focus-visible {
  color: var(--cyan);
  outline: none;
}

.station-row:hover strong,
.station-row:focus-visible strong {
  color: var(--cyan);
}

.station-row.is-live strong {
  color: var(--hot);
  text-shadow: 0 0 10px var(--hot);
}

.station-empty {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.nightwave-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: min(72rem, 94vw);
  margin: 0.7rem auto 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition: grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
}

.nightwave-panel.is-open {
  grid-template-rows: 1fr;
  pointer-events: auto;
  visibility: visible;
}

.nightwave-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0.4rem 0.2rem 1.4rem;
}

.nightwave-panel-close {
  appearance: none;
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  scroll-margin-top: 6.4rem;
}

.nightwave-panel-close:hover,
.nightwave-panel-close:focus-visible {
  color: var(--hot);
  text-shadow: 0 0 10px var(--hot);
}

.nightwave-station-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
}

.nightwave-station-art,
.nightwave-station-fallback {
  width: 72px;
  height: 72px;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0, 247, 255, 0.32);
}

.nightwave-station-art {
  object-fit: contain;
  background: #0b0318;
  padding: 6px;
}

.nightwave-station-fallback {
  display: grid;
  place-items: center;
  background: rgba(0, 247, 255, 0.08);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.nightwave-station-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.nightwave-station-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 16px rgba(0, 247, 255, 0.28);
}

.nightwave-station-meta {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}

.nightwave-station-lead {
  margin: 0.85rem 0 1.3rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nightwave-songs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.nightwave-songs li {
  display: grid;
  grid-template-columns: 6.6rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.7rem 0.15rem;
  border-top: 1px solid rgba(0, 247, 255, 0.18);
  font-size: 0.95rem;
}

.nightwave-songs span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nightwave-songs strong {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}

.nightwave-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 1.15rem;
}

.nightwave-link {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0, 247, 255, 0.45);
  color: var(--cyan);
  background: rgba(5, 1, 10, 0.45);
  text-decoration: none;
}

.nightwave-link svg {
  width: 14px;
  height: 14px;
}

.nightwave-link:hover,
.nightwave-link:focus-visible {
  color: var(--void);
  background: var(--cyan);
  border-color: var(--cyan);
  outline: none;
}

.nightwave-station[hidden] {
  display: none !important;
}

/* ---------- signal work hologram ---------- */

.signal-board {
  position: relative;
  width: min(100%, 1480px);
  padding: 1.4rem 4vw 8vh;
}

.signal-board.is-tuned {
  padding-bottom: calc(100dvh - 6.4rem);
}

.signal-board[hidden] {
  display: none !important;
}

.holo-stage {
  display: grid;
  place-items: center;
  padding-top: 0.4rem;
}

.holo-rig {
  position: relative;
  width: min(44rem, 80vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.holo-float {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1.06fr 1fr;
  align-items: end;
  gap: clamp(2rem, 5.5vw, 3.6rem);
  width: 100%;
  margin-bottom: 5.4rem;
  perspective: 56rem;
  animation: holo-float 5.8s ease-in-out infinite;
}

@keyframes holo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.7rem);
  }
}

.holo-slab {
  --yaw: 0deg;
  --holo-scale: 1;
  --holo-lift: 0;
  appearance: none;
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  width: 100%;
  min-height: clamp(18.5rem, 46vh, 26rem);
  padding: 1.15rem 0.7rem 1rem;
  border: 0;
  color: var(--cyan);
  background: none;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transform: perspective(48rem) rotateY(var(--yaw)) scale(var(--holo-scale))
    translateY(var(--holo-lift));
  transform-style: preserve-3d;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
}

.holo-slab[data-channel="chronicles"] {
  --yaw: 11deg;
}

.holo-slab[data-channel="odyssey"] {
  --holo-scale: 1.05;
  min-height: clamp(20.5rem, 52vh, 29rem);
}

.holo-slab[data-channel="echo"] {
  --yaw: -11deg;
}

.holo-slab-plate,
.holo-slab-mesh,
.holo-slab-rim,
.holo-slab-scan,
.holo-static {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.holo-slab-plate {
  background:
    linear-gradient(180deg, rgba(0, 247, 255, 0.16), rgba(5, 1, 10, 0.28) 58%, rgba(255, 43, 214, 0.08)),
    repeating-linear-gradient(
      to bottom,
      transparent 0 11px,
      rgba(232, 244, 255, 0.04) 11px 12px
    );
  box-shadow: inset 0 0 28px rgba(0, 247, 255, 0.08);
}

.holo-slab-mesh {
  background-image:
    linear-gradient(rgba(232, 244, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 244, 255, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
  mix-blend-mode: screen;
  opacity: 0.42;
}

.holo-slab-rim {
  inset: 10px;
  border: 1.5px solid rgba(255, 43, 214, 0.78);
  box-shadow: inset 0 0 18px rgba(255, 43, 214, 0.12);
}

.holo-slab-scan {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 247, 255, 0.07) 3px 4px
  );
  mix-blend-mode: screen;
  animation: holo-scan 3.4s linear infinite;
}

@keyframes holo-scan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 28px;
  }
}

.holo-static {
  overflow: visible;
}

.holo-static-l,
.holo-static-r,
.holo-static-t,
.holo-static-b {
  position: absolute;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(0, 247, 255, 0.75));
}

.holo-static-l,
.holo-static-r {
  top: 0;
  bottom: 0;
  width: 4.6rem;
}

.holo-static-l {
  left: -2.3rem;
}

.holo-static-r {
  right: -2.3rem;
}

.holo-static-t,
.holo-static-b {
  left: 0;
  right: 0;
  height: 2.3rem;
}

.holo-static-t {
  top: -1.15rem;
}

.holo-static-b {
  bottom: -1.15rem;
}

.holo-static i {
  position: absolute;
  display: block;
  font-style: normal;
  background: #00f7ff;
  box-shadow:
    0 0 4px #00f7ff,
    0 0 9px rgba(0, 247, 255, 0.8);
}

.holo-static-l i,
.holo-static-r i {
  height: 2px;
  width: calc(var(--in) + var(--out));
  transition: width 35ms linear, left 35ms linear;
}

.holo-static-l i {
  left: calc(2.3rem - var(--out));
}

.holo-static-r i {
  left: calc(2.3rem - var(--in));
}

.holo-static-t i,
.holo-static-b i {
  width: 2px;
  height: calc(var(--in) + var(--out));
  transition: height 35ms linear, top 35ms linear;
}

.holo-static-t i {
  top: calc(1.15rem - var(--out));
}

.holo-static-b i {
  top: calc(1.15rem - var(--in));
}

.holo-slab-title,
.holo-glyph,
.holo-slab-foot {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.holo-slab-title {
  font-family: var(--font-logo);
  font-size: clamp(0.78rem, 1.5vw, 1.05rem);
  letter-spacing: 0.18em;
  color: currentColor;
  text-shadow: 0 0 12px rgba(0, 247, 255, 0.45);
}

.holo-slab[data-channel="chronicles"] .holo-slab-title {
  font-size: clamp(0.6rem, 1.15vw, 0.82rem);
  letter-spacing: 0.1em;
}

.holo-slab[data-channel="echo"] .holo-slab-title {
  letter-spacing: 0.12em;
}

.holo-glyph {
  width: min(7.2rem, 58%);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.35));
}

.holo-glyph-die {
  width: min(8.6rem, 68%);
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0, 247, 255, 0.45));
}

.holo-slab-foot {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.holo-slab-foot em {
  font-style: normal;
  color: var(--magenta);
}

.signal-board[data-channel="chronicles"] .holo-slab[data-channel="chronicles"] .holo-slab-title,
.signal-board[data-channel="odyssey"] .holo-slab[data-channel="odyssey"] .holo-slab-title,
.signal-board[data-channel="echo"] .holo-slab[data-channel="echo"] .holo-slab-title {
  color: var(--hot);
  animation: byPulse 1.6s ease-in-out infinite;
}

.holo-slab:hover .holo-slab-plate {
  box-shadow: inset 0 0 28px rgba(0, 247, 255, 0.16);
}

.holo-slab:hover .holo-slab-rim {
  border-color: rgba(0, 247, 255, 0.72);
}

.holo-slab:hover .holo-static-l,
.holo-slab:hover .holo-static-r,
.holo-slab:hover .holo-static-t,
.holo-slab:hover .holo-static-b {
  filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.85));
}

.holo-slab:hover {
  --holo-lift: -0.35rem;
}

.holo-slab:focus-visible .holo-slab-plate {
  box-shadow:
    0 0 0 2px var(--void),
    0 0 0 4px var(--cyan),
    0 0 22px rgba(0, 247, 255, 0.4);
}

.holo-slab.is-live .holo-slab-plate {
  animation: holo-select-pulse 1.6s ease-in-out infinite;
}

.holo-slab.is-live .holo-slab-rim {
  border-color: var(--hot);
}

.holo-slab.is-live .holo-static-l,
.holo-slab.is-live .holo-static-r,
.holo-slab.is-live .holo-static-t,
.holo-slab.is-live .holo-static-b {
  filter: drop-shadow(0 0 8px var(--hot));
}

.signal-board.is-tuned .holo-slab:not(.is-live) {
  --holo-scale: 0.86;
  --holo-lift: 1.05rem;
  opacity: 0.34;
  filter: saturate(0.55);
}

.signal-board.is-tuned .holo-slab.is-live {
  --yaw: 0deg;
  --holo-scale: 1.1;
  --holo-lift: -0.4rem;
  z-index: 2;
}

@keyframes holo-select-pulse {
  0%,
  100% {
    box-shadow:
      0 0 18px var(--hot),
      0 0 36px rgba(255, 0, 122, 0.55),
      inset 0 0 28px rgba(255, 0, 122, 0.12);
  }
  50% {
    box-shadow:
      0 0 8px var(--hot),
      0 0 16px rgba(255, 0, 122, 0.28),
      inset 0 0 18px rgba(255, 0, 122, 0.08);
  }
}

.holo-rig.is-glitching .holo-float {
  animation: holo-glitch 0.32s steps(2, end);
}

.holo-rig.is-glitching .holo-beam {
  animation: holo-beam-glitch 0.32s steps(2, end);
}

.holo-rig.is-glitching .holo-slab-title {
  animation: holo-caption-glitch 0.32s steps(2, end);
}

@keyframes holo-glitch {
  0% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.28));
    transform: none;
  }
  18% {
    opacity: 0.28;
    filter: hue-rotate(52deg) saturate(1.8) drop-shadow(0 0 8px rgba(0, 247, 255, 0.28));
    transform: translateX(-10px) skewX(-9deg);
  }
  36% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.28));
    transform: translateX(8px);
  }
  54% {
    opacity: 0.15;
    transform: translateX(-4px) skewX(6deg);
  }
  72% {
    opacity: 1;
    filter: hue-rotate(-30deg) drop-shadow(0 0 8px rgba(0, 247, 255, 0.28));
    transform: translateX(5px);
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.28));
    transform: none;
  }
}

@keyframes holo-caption-glitch {
  0%,
  100% {
    opacity: 1;
    filter: none;
    transform: none;
  }
  18% {
    opacity: 0.28;
    filter: hue-rotate(52deg) saturate(1.8);
    transform: translateX(-10px) skewX(-9deg);
  }
  36% {
    opacity: 1;
    filter: none;
    transform: translateX(8px);
  }
  54% {
    opacity: 0.15;
    transform: translateX(-4px) skewX(6deg);
  }
  72% {
    opacity: 1;
    filter: hue-rotate(-30deg);
    transform: translateX(5px);
  }
}

@keyframes holo-beam-glitch {
  0%,
  100% {
    opacity: 0.8;
    filter: blur(0.6px);
    transform: translateX(-50%);
  }
  20% {
    opacity: 0.12;
    transform: translateX(calc(-50% - 12px)) skewX(-10deg);
  }
  42% {
    opacity: 1;
    transform: translateX(calc(-50% + 9px));
  }
  64% {
    opacity: 0.2;
    transform: translateX(calc(-50% - 5px)) skewX(7deg);
  }
}

.holo-well {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  margin-bottom: 0.35rem;
}

.holo-beam {
  position: absolute;
  left: 50%;
  bottom: 1.55rem;
  width: min(18rem, 46%);
  height: 6.4rem;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 247, 255, 0.62),
    rgba(0, 247, 255, 0.2) 38%,
    rgba(255, 43, 214, 0.08) 72%,
    transparent
  );
  clip-path: polygon(46% 100%, 54% 100%, 96% 0, 4% 0);
  filter: blur(0.5px);
  opacity: 0.95;
  animation: holo-beam 2.8s ease-in-out infinite;
}

.holo-beam::after {
  content: "";
  position: absolute;
  inset: 18% 38% 0;
  background: linear-gradient(to top, rgba(0, 247, 255, 0.55), transparent 70%);
  filter: blur(6px);
}

@keyframes holo-beam {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 0.95;
  }
}

.holo-disk {
  position: relative;
  z-index: 2;
  width: 9.2rem;
  height: 3.15rem;
}

.holo-disk-glow {
  position: absolute;
  inset: -38% -18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 247, 255, 0.38), transparent 68%);
}

.holo-disk-ring {
  position: absolute;
  inset: -22% -10%;
  border-radius: 50%;
  border: 2px solid rgba(255, 43, 214, 0.7);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.4);
}

.holo-disk-plate {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 38% 28%, #4a2a72, #160824 52%, #05010a 78%);
  border: 1px solid rgba(0, 247, 255, 0.55);
  box-shadow:
    0 0 18px rgba(0, 247, 255, 0.35),
    0 0 28px rgba(255, 43, 214, 0.22),
    inset 0 0 16px rgba(0, 247, 255, 0.2);
}

.holo-disk-well {
  position: absolute;
  inset: 22% 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 247, 255, 0.42), #05010a 70%);
  border: 1px solid rgba(0, 247, 255, 0.7);
  box-shadow: inset 0 0 12px rgba(0, 247, 255, 0.45);
}

.holo-disk-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.05rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px var(--cyan), 0 0 28px rgba(0, 247, 255, 0.7);
}

.holo-floor {
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  width: 42%;
  height: 1.6rem;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 43, 214, 0.28),
    rgba(0, 247, 255, 0.16) 42%,
    transparent 72%
  );
  filter: blur(5px);
}

.holo-readout {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.45);
}

.signal-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: min(46rem, 92vw);
  margin: 0.4rem auto 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition: grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
}

.signal-panel.is-open {
  grid-template-rows: 1fr;
  pointer-events: auto;
  visibility: visible;
}

.signal-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0.4rem 0.2rem 1.4rem;
}

.signal-panel-close {
  appearance: none;
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  scroll-margin-top: 6.4rem;
}

.signal-panel-close:hover,
.signal-panel-close:focus-visible {
  color: var(--hot);
  text-shadow: 0 0 10px var(--hot);
}

.signal-channel-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.signal-channel-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 16px rgba(0, 247, 255, 0.28);
}

.signal-channel-lead {
  margin: 0.85rem 0 1.3rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.signal-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.signal-log li {
  display: grid;
  grid-template-columns: 6.6rem 1fr auto;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.7rem 0.15rem;
  border-top: 1px solid rgba(0, 247, 255, 0.18);
  font-size: 0.95rem;
}

.signal-log span,
.signal-log em {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.signal-log strong {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}

.echo-log li {
  display: block;
  padding: 0;
  border: 0;
}

.echo-cue {
  appearance: none;
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: baseline;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.15rem;
  border: 0;
  border-top: 1px solid rgba(0, 247, 255, 0.18);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.echo-log li:last-child .echo-cue {
  border-bottom: 1px solid rgba(0, 247, 255, 0.18);
}

.echo-cue strong {
  min-width: 0;
  overflow-wrap: break-word;
}

.echo-cue em {
  color: var(--cyan);
}

.echo-cue:hover strong,
.echo-cue:focus-visible strong {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.45);
}

.echo-cue:focus-visible {
  outline: none;
}

.signal-channel[hidden] {
  display: none !important;
}

.odyssey-log {
  display: grid;
  gap: 0.55rem;
}

.odyssey-entry {
  appearance: none;
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.15rem;
  border: 0;
  border-top: 1px solid rgba(0, 247, 255, 0.18);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.odyssey-entry:last-child {
  border-bottom: 1px solid rgba(0, 247, 255, 0.18);
}

.odyssey-entry-icon,
.odyssey-post-icon {
  width: 3.1rem;
  height: 3.1rem;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.4));
}

.odyssey-entry-copy {
  min-width: 0;
  display: grid;
  gap: 0.22rem;
}

.odyssey-entry-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.odyssey-entry-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.odyssey-entry:hover,
.odyssey-entry:focus-visible {
  outline: none;
}

.odyssey-entry:hover .odyssey-entry-title,
.odyssey-entry:focus-visible .odyssey-entry-title {
  color: var(--cyan);
}

.odyssey-entry.is-live .odyssey-entry-title {
  color: var(--hot);
  text-shadow: 0 0 10px var(--hot);
}

.odyssey-index[hidden],
.odyssey-post[hidden] {
  display: none !important;
}

.odyssey-back {
  appearance: none;
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  scroll-margin-top: 6.4rem;
}

.odyssey-back:hover,
.odyssey-back:focus-visible {
  color: var(--hot);
  text-shadow: 0 0 10px var(--hot);
}

.odyssey-post-body {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 1.2rem 1.35rem 1.75rem;
  border: 1px solid rgba(0, 247, 255, 0.2);
  border-radius: 0.9rem;
  background: rgba(5, 1, 10, 0.58);
  box-shadow:
    0 0 24px rgba(5, 1, 10, 0.42),
    inset 0 0 28px rgba(0, 247, 255, 0.04);
  overflow-x: hidden;
  overflow-wrap: break-word;
  text-align: left;
}

.odyssey-post-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
}

.odyssey-post-icon {
  width: 4.4rem;
  height: 4.4rem;
}

.odyssey-post-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.odyssey-post-title {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 16px rgba(0, 247, 255, 0.28);
  overflow-wrap: break-word;
}

.odyssey-post-meta {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}

.odyssey-party {
  margin: 1.35rem 0 0;
  text-align: left;
}

.odyssey-party-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
}

.odyssey-dm {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

.odyssey-dm span {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.odyssey-players {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}

.odyssey-players li {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr) 8.5rem;
  gap: 0.45rem 1rem;
  align-items: baseline;
  justify-items: start;
  text-align: left;
  padding: 0.65rem 0.15rem;
  border-top: 1px solid rgba(0, 247, 255, 0.18);
}

.odyssey-players li:last-child {
  border-bottom: 1px solid rgba(0, 247, 255, 0.18);
}

.odyssey-players-head {
  padding-top: 0.35rem;
  padding-bottom: 0.45rem;
  border-top: 0;
}

.odyssey-players-head span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}

.odyssey-player-discord,
.odyssey-player-character,
.odyssey-player-class {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
}

.odyssey-player-discord {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.odyssey-player-character {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}

.odyssey-player-class {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.odyssey-recap-block {
  margin: 1.45rem 0 0;
}

.odyssey-recap-kicker {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta);
}

.odyssey-recap {
  display: grid;
  gap: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.odyssey-recap h3,
.odyssey-recap h4 {
  margin: 0.2rem 0 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  overflow-wrap: break-word;
}

.odyssey-recap h3 {
  font-size: 1.05rem;
}

.odyssey-recap h4 {
  font-size: 0.92rem;
}

.odyssey-recap p,
.odyssey-recap li {
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  overflow-wrap: break-word;
}

.odyssey-recap ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.odyssey-recap strong {
  color: var(--text);
  font-weight: 600;
}

.odyssey-plate {
  justify-self: center;
  width: calc(100% - 1.25rem);
  height: auto;
  border-radius: 0.7rem;
  pointer-events: none;
  user-select: none;
}

.odyssey-recap-empty {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- night systems background cabinets ---------- */

.ns-row {
  --tip-y: 13.78%;
  display: none;
  position: fixed;
  z-index: 0;
  top: 50vh;
  width: 51.2vw;
  height: auto;
  pointer-events: none;
  user-select: none;
  transform: translateY(calc(var(--tip-y) * -1));
}

.file-view.is-systems .ns-row {
  display: block;
}

.file-view.is-systems:has(.systems-board.is-tuned) .ns-row {
  display: none;
}

.file-view.is-systems .file-copy,
.file-view.is-systems .systems-board {
  position: relative;
  z-index: 1;
}

.ns-row.is-left {
  left: 0;
}

.ns-row.is-right {
  right: 0;
  transform: translateY(calc(var(--tip-y) * -1)) scaleX(-1);
}

@media (max-width: 900px) {
  .ns-row {
    display: none !important;
  }
}

/* ---------- night systems coin bank ---------- */

.systems-board {
  position: relative;
  width: min(100%, 1480px);
  padding: 0.55rem 4vw 8vh;
}

.systems-board.is-tuned {
  padding-bottom: calc(100dvh - 6.4rem);
}

.systems-board[hidden] {
  display: none !important;
}

.coin-stage {
  display: grid;
  place-items: center;
  gap: 1.1rem;
}

.coin-bank {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.7rem, 2.4vw, 1.6rem);
  width: min(78rem, 98vw);
}

.coin-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 0;
}

.coin-slot-name {
  font-family: var(--font-logo);
  font-size: clamp(0.62rem, 1.55vw, 0.8rem);
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 247, 255, 0.7);
}

.systems-board[data-cabinet="gridlock"] .coin-slot[data-cabinet="gridlock"] .coin-slot-name,
.systems-board[data-cabinet="horizon"] .coin-slot[data-cabinet="horizon"] .coin-slot-name,
.systems-board[data-cabinet="static"] .coin-slot[data-cabinet="static"] .coin-slot-name,
.systems-board[data-cabinet="afterglow"] .coin-slot[data-cabinet="afterglow"] .coin-slot-name,
.systems-board[data-cabinet="shatterwave"] .coin-slot[data-cabinet="shatterwave"] .coin-slot-name,
.systems-board[data-cabinet="droplight"] .coin-slot[data-cabinet="droplight"] .coin-slot-name {
  color: var(--hot);
  text-shadow: 0 0 10px var(--hot);
  animation: byPulse 1.6s ease-in-out infinite;
}

.coin-slot-mech {
  position: relative;
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.38rem;
  width: 100%;
  max-width: 10.6rem;
  aspect-ratio: 10 / 16;
  padding: 0.9rem 0.7rem 0.86rem 0.58rem;
  border: 1px solid rgba(0, 247, 255, 0.78);
  border-radius: 1.05rem;
  cursor: pointer;
  background:
    linear-gradient(165deg, rgba(0, 247, 255, 0.2), transparent 46%),
    linear-gradient(180deg, #4a2880 0%, #1a0c36 55%, #0c0618 100%);
  box-shadow:
    0 0 18px rgba(0, 247, 255, 0.42),
    0 0 36px rgba(255, 43, 214, 0.2),
    inset 0 1px 0 rgba(0, 247, 255, 0.32),
    inset 0 -8px 16px rgba(5, 1, 10, 0.5);
}

.coin-slot-mech::before,
.coin-slot-mech::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  height: 2px;
  pointer-events: none;
}

.coin-slot-mech::before {
  top: 0.34rem;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}

.coin-slot-mech::after {
  bottom: 0.34rem;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 247, 255, 0.55);
}

.coin-slot.is-live .coin-slot-mech {
  border-color: var(--hot);
  box-shadow:
    0 0 18px var(--hot),
    0 0 42px rgba(255, 0, 122, 0.45),
    inset 0 1px 0 rgba(255, 43, 214, 0.35),
    inset 0 -8px 16px rgba(5, 1, 10, 0.5);
  animation: coin-select-pulse 1.6s ease-in-out infinite;
}

.coin-slot.is-live .coin-slot-mech::before,
.coin-slot.is-live .coin-slot-mech::after {
  background: var(--hot);
  box-shadow: 0 0 10px var(--hot);
}

.coin-slot-insert,
.coin-slot-reject {
  appearance: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.coin-slot-insert:focus,
.coin-slot-reject:focus,
.coin-slot-insert:focus-visible,
.coin-slot-reject:focus-visible {
  outline: none;
}

.coin-slit {
  position: relative;
  display: block;
  width: 0.58rem;
  margin: 0.15rem 0.05rem;
  border-radius: 0.2rem;
  background: #05010a;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.95),
    1px 0 0 rgba(0, 247, 255, 0.35),
    -1px 0 0 rgba(0, 0, 0, 0.8);
  cursor: pointer;
  z-index: 2;
  perspective: 18rem;
  clip-path: inset(-10rem -14rem -10rem 0);
}

.coin-quarter {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  height: 73%;
  aspect-ratio: 1;
  width: auto;
  border-radius: 50%;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.38) 0 8%, transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(0, 247, 255, 0.22), rgba(0, 247, 255, 0.4) 62%, rgba(0, 60, 70, 0.18) 100%);
  border: 3px solid rgba(190, 252, 255, 0.9);
  box-shadow:
    0 0 16px rgba(0, 247, 255, 0.4),
    inset 0 0 0 0.18rem rgba(0, 247, 255, 0.35),
    inset -0.35rem 0 0.45rem rgba(0, 16, 22, 0.28);
  transform-origin: 18% 50%;
  transform: translate(110%, -50%) rotateY(-38deg);
  opacity: 0;
  pointer-events: none;
}

.coin-quarter::before {
  content: "25";
  position: absolute;
  inset: 22%;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 247, 255, 0.45);
  background: rgba(0, 247, 255, 0.06);
  color: rgba(210, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.coin-quarter::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 0;
  border-radius: 50%;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.28), transparent 36%);
  pointer-events: none;
}

.coin-slot.is-inserting .coin-quarter {
  animation: coin-drop 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.coin-slot.is-live .coin-slit {
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.95),
    1px 0 0 rgba(255, 0, 122, 0.5),
    -1px 0 0 rgba(0, 0, 0, 0.8);
}

.coin-slot.is-live .coin-quarter {
  opacity: 1;
  transform: translate(-18%, -50%) rotateY(-38deg);
}

.coin-slot.is-ejecting .coin-quarter {
  animation: coin-eject 0.4s ease-in forwards;
}

.coin-slot.is-swallowed .coin-quarter,
.coin-slot.is-swallowed.is-ejecting .coin-quarter {
  opacity: 0;
  animation: none;
}

.coin-face {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0.42rem 0.28rem 0.38rem;
  border-radius: 0.38rem;
  background: rgba(16, 4, 38, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 247, 255, 0.18);
  color: var(--cyan);
}

.coin-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(0, 0, 0, 0.32) 2px 3px
  );
  opacity: 0.4;
}

.coin-slot-insert {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  color: inherit;
}

.coin-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(0.48rem, 1.35vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.45);
}

.coin-copy strong {
  margin-top: 0.18rem;
  font-size: clamp(0.92rem, 2.6vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.92;
}

.coin-slot:not(.is-live) .coin-copy {
  animation: coin-insert-blink 1.7s steps(1, end) infinite;
}

.coin-slot-rule {
  display: block;
  width: 78%;
  height: 1px;
  margin: 0.28rem auto 0.32rem;
  background: currentColor;
  opacity: 0.85;
}

.coin-slot-reject {
  padding: 0.08rem 0.1rem 0.04rem;
  color: inherit;
  font-family: var(--font-mono);
  font-size: clamp(0.38rem, 1.05vw, 0.46rem);
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

.coin-slot-reject:hover,
.coin-slot-reject:focus-visible,
.coin-slot.is-live .coin-slot-insert:hover .coin-copy,
.coin-slot-insert:hover .coin-copy,
.coin-slot-insert:focus-visible .coin-copy {
  color: var(--hot);
  text-shadow: 0 0 10px var(--hot);
}

.coin-slot.is-live .coin-face {
  color: var(--hot);
}

@keyframes coin-insert-blink {
  0%,
  54% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0.28;
  }
}

@keyframes coin-select-pulse {
  0%,
  100% {
    box-shadow:
      0 0 18px var(--hot),
      0 0 42px rgba(255, 0, 122, 0.45),
      inset 0 1px 0 rgba(255, 43, 214, 0.35),
      inset 0 -8px 16px rgba(5, 1, 10, 0.55);
  }
  50% {
    box-shadow:
      0 0 10px var(--hot),
      0 0 22px rgba(255, 0, 122, 0.28),
      inset 0 1px 0 rgba(255, 43, 214, 0.22),
      inset 0 -8px 16px rgba(5, 1, 10, 0.55);
  }
}

@keyframes coin-drop {
  0% {
    opacity: 0;
    transform: translate(110%, -50%) rotateY(-38deg);
  }
  16% {
    opacity: 1;
    transform: translate(72%, -50%) rotateY(-38deg);
  }
  100% {
    opacity: 1;
    transform: translate(-18%, -50%) rotateY(-38deg);
  }
}

@keyframes coin-eject {
  0% {
    opacity: 1;
    transform: translate(-18%, -50%) rotateY(-38deg);
  }
  100% {
    opacity: 0;
    transform: translate(110%, -50%) rotateY(-38deg);
  }
}

.coin-readout {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.45);
}

.premium-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  margin-top: 0.35rem;
}

.premium-cabinet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: min(20rem, 42vw);
  margin: 0;
}

.premium-cabinet-badge {
  padding: 0.28rem 0.85rem;
  border: 1px solid rgba(255, 229, 102, 0.85);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sun-hi);
  background: linear-gradient(180deg, rgba(255, 229, 102, 0.18), rgba(255, 0, 122, 0.12));
  box-shadow:
    0 0 18px rgba(255, 229, 102, 0.35),
    0 0 28px rgba(255, 43, 214, 0.22);
  animation: byPulse 1.8s ease-in-out infinite;
}

.premium-cabinet-hit {
  appearance: none;
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 229, 102, 0.55);
  border-radius: 0.7rem 0.7rem 1.1rem 1.1rem;
  background:
    linear-gradient(180deg, #2a1038 0%, #12061c 42%, #08010e 100%);
  box-shadow:
    0 0 28px rgba(255, 43, 214, 0.28),
    0 0 48px rgba(255, 229, 102, 0.16),
    inset 0 1px 0 rgba(255, 229, 102, 0.28);
  color: inherit;
  cursor: pointer;
  text-align: center;
}

.premium-cabinet-hit:focus-visible {
  outline: 1px solid var(--sun-hi);
  outline-offset: 3px;
}

.premium-cabinet-marquee {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-height: 2.55rem;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  white-space: nowrap;
  text-transform: uppercase;
  color: #ffe566;
  text-shadow:
    0 0 10px rgba(255, 229, 102, 0.7),
    0 0 18px rgba(255, 0, 122, 0.45);
  background:
    linear-gradient(180deg, #4a1848 0%, #1a0618 100%);
  border-bottom: 1px solid rgba(255, 229, 102, 0.45);
}

.premium-cabinet-bezel {
  position: relative;
  display: block;
  margin: 0.55rem 0.7rem 0.4rem;
  padding: 0.38rem;
  background: #05010a;
  border: 2px solid rgba(0, 247, 255, 0.55);
  box-shadow:
    0 0 16px rgba(0, 247, 255, 0.28),
    inset 0 0 18px rgba(255, 43, 214, 0.22);
}

.premium-cabinet.is-soon .premium-cabinet-hit {
  cursor: pointer;
}

.premium-cabinet.is-soon .premium-cabinet-marquee {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.premium-cabinet[data-cabinet="blackwing-protocol"] .premium-cabinet-marquee {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.premium-soon {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 46%;
  z-index: 1;
  padding: 0.42rem 0.35rem 0.38rem;
  border: 2px solid #ffe566;
  background: rgba(5, 1, 10, 0.78);
  box-shadow:
    0 0 16px rgba(255, 229, 102, 0.45),
    inset 0 0 12px rgba(255, 0, 122, 0.28);
  color: #ffe566;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.6vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 229, 102, 0.85),
    0 0 18px rgba(255, 0, 122, 0.65);
  animation: soon-flash 1.1s step-end infinite;
}

@keyframes soon-flash {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.08;
  }
}

.premium-cabinet-screen {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.premium-cabinet-plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  gap: 0.6rem;
  height: 2.25rem;
  padding: 0 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.premium-cabinet-plate strong {
  color: var(--hot);
  text-shadow: 0 0 8px rgba(255, 0, 122, 0.5);
}

.premium-cabinet.is-live .premium-cabinet-hit {
  border-color: var(--hot);
  box-shadow:
    0 0 24px var(--hot),
    0 0 48px rgba(255, 0, 122, 0.4),
    inset 0 1px 0 rgba(255, 229, 102, 0.35);
}

.premium-cabinet.is-live .premium-cabinet-marquee {
  color: var(--hot);
  animation: byPulse 1.6s ease-in-out infinite;
}

.systems-board[data-cabinet="neon-wings"] .coin-readout {
  color: var(--sun-hi);
}

.systems-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: min(46rem, 92vw);
  margin: 0.4rem auto 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition: grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
}

.systems-panel.is-open {
  grid-template-rows: 1fr;
  pointer-events: auto;
  visibility: visible;
}

.systems-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0.4rem 0.2rem 1.4rem;
}

.systems-panel-close {
  appearance: none;
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  scroll-margin-top: 6.4rem;
}

.systems-panel-close:hover,
.systems-panel-close:focus-visible {
  color: var(--hot);
  text-shadow: 0 0 10px var(--hot);
}

.systems-cabinet-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.systems-cabinet-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 16px rgba(0, 247, 255, 0.28);
}

.systems-cabinet.is-premium .systems-cabinet-kicker,
.systems-cabinet.is-premium .systems-cabinet-title {
  color: var(--sun-hi);
  text-shadow: 0 0 16px rgba(255, 229, 102, 0.35);
}

.systems-cabinet-lead {
  margin: 0.85rem 0 1.3rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.game-stage {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 12rem;
  margin: 0 0 1.3rem;
  padding: 1.4rem 1rem;
  border: 1px solid rgba(0, 247, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 247, 255, 0.05), transparent 28%),
    rgba(8, 2, 18, 0.72);
  box-shadow:
    0 0 18px rgba(0, 247, 255, 0.12),
    inset 0 0 28px rgba(255, 43, 214, 0.08);
}

.game-stage p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.4);
}

.game-stage.is-horizon,
.game-stage.is-gridlock,
.game-stage.is-afterglow,
.game-stage.is-shatterwave,
.game-stage.is-static,
.game-stage.is-droplight {
  display: block;
  position: relative;
  width: min(100%, calc(min(58dvh, 30rem, calc(100dvh - 22rem)) * 4 / 3));
  max-width: 100%;
  max-height: min(58dvh, 30rem, calc(100dvh - 22rem));
  min-height: 0;
  margin-inline: auto;
  margin-bottom: 1.3rem;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #05010a;
  scroll-margin-top: 12.5rem;
  scroll-margin-bottom: 8rem;
  box-shadow:
    0 0 22px rgba(0, 247, 255, 0.16),
    inset 0 0 42px rgba(255, 43, 214, 0.1);
}

.game-stage.is-shatterwave {
  max-height: calc(min(58dvh, 30rem, calc(100dvh - 22rem)) * 1.15 * 1.1);
  aspect-ratio: 4 / calc(3 * 1.15 * 1.1);
}

.horizon-canvas,
.gridlock-canvas,
.afterglow-canvas,
.shatterwave-canvas,
.static-canvas,
.droplight-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  outline: none;
}

.static-canvas {
  cursor: pointer;
}

.shatterwave-canvas {
  cursor: ew-resize;
}

.afterglow-canvas {
  cursor: ns-resize;
}

.gridlock-canvas {
  cursor: grab;
}

.gridlock-canvas:active {
  cursor: grabbing;
}

.horizon-canvas:focus-visible,
.gridlock-canvas:focus-visible,
.afterglow-canvas:focus-visible,
.shatterwave-canvas:focus-visible,
.static-canvas:focus-visible,
.droplight-canvas:focus-visible {
  outline: 1px solid rgba(0, 247, 255, 0.55);
  outline-offset: -1px;
}

.game-stage.is-horizon::after,
.game-stage.is-gridlock::after,
.game-stage.is-afterglow::after,
.game-stage.is-shatterwave::after,
.game-stage.is-static::after,
.game-stage.is-droplight::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(5, 1, 10, 0.18) 2px 3px
  );
  box-shadow: inset 0 0 48px rgba(5, 1, 10, 0.55);
}

.systems-board[data-cabinet="horizon"] .systems-panel.is-open,
.systems-board[data-cabinet="gridlock"] .systems-panel.is-open,
.systems-board[data-cabinet="afterglow"] .systems-panel.is-open,
.systems-board[data-cabinet="shatterwave"] .systems-panel.is-open,
.systems-board[data-cabinet="static"] .systems-panel.is-open,
.systems-board[data-cabinet="droplight"] .systems-panel.is-open {
  width: min(72rem, 96vw);
  overflow: visible;
}

.systems-board[data-cabinet="neon-wings"] .systems-panel.is-open,
.systems-board[data-cabinet="blackwing-protocol"] .systems-panel.is-open,
.systems-board[data-cabinet="ravensgate"] .systems-panel.is-open {
  width: min(92rem, 98vw);
  overflow: visible;
}

.systems-board[data-cabinet="horizon"] .systems-panel-inner,
.systems-board[data-cabinet="gridlock"] .systems-panel-inner,
.systems-board[data-cabinet="afterglow"] .systems-panel-inner,
.systems-board[data-cabinet="shatterwave"] .systems-panel-inner,
.systems-board[data-cabinet="static"] .systems-panel-inner,
.systems-board[data-cabinet="droplight"] .systems-panel-inner,
.systems-board[data-cabinet="neon-wings"] .systems-panel-inner,
.systems-board[data-cabinet="blackwing-protocol"] .systems-panel-inner,
.systems-board[data-cabinet="ravensgate"] .systems-panel-inner {
  overflow: visible;
  padding-bottom: 10rem;
}

.game-playfield {
  position: relative;
  width: min(100%, calc(min(58dvh, 30rem, calc(100dvh - 22rem)) * 4 / 3));
  max-width: 100%;
  margin: 0 auto 1.3rem;
}

.game-playfield .game-stage.is-horizon,
.game-playfield .game-stage.is-gridlock,
.game-playfield .game-stage.is-afterglow,
.game-playfield .game-stage.is-shatterwave,
.game-playfield .game-stage.is-static,
.game-playfield .game-stage.is-droplight,
.game-playfield .game-stage.is-neon-wings,
.game-playfield .game-stage.is-blackwing,
.game-playfield .game-stage.is-ravensgate {
  width: 100%;
  margin: 0;
}

.game-playfield.is-premium {
  width: min(100%, 37.5rem);
}

.game-playfield.is-side {
  width: min(100%, 52rem);
}

.game-stage.is-neon-wings {
  display: block;
  position: relative;
  width: min(100%, 37.5rem);
  height: min(70dvh, 42rem, calc(100dvh - 16rem));
  max-width: 100%;
  max-height: min(70dvh, 42rem, calc(100dvh - 16rem));
  min-height: 0;
  margin-inline: auto;
  margin-bottom: 1.3rem;
  padding: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: #05010a;
  scroll-margin-top: 10rem;
  scroll-margin-bottom: 8rem;
  box-shadow:
    0 0 28px rgba(255, 229, 102, 0.22),
    0 0 42px rgba(255, 43, 214, 0.2),
    inset 0 0 42px rgba(255, 43, 214, 0.12);
}

.neon-wings-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  outline: none;
  image-rendering: pixelated;
}

.neon-wings-canvas:focus-visible {
  outline: 1px solid rgba(255, 229, 102, 0.7);
  outline-offset: -1px;
}

.game-stage.is-neon-wings::after,
.game-stage.is-blackwing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2px,
    rgba(5, 1, 10, 0.18) 2px 3px
  );
  box-shadow: inset 0 0 48px rgba(5, 1, 10, 0.55);
}

.game-stage.is-blackwing {
  display: block;
  position: relative;
  width: min(100%, 37.5rem);
  height: min(70dvh, 42rem, calc(100dvh - 16rem));
  max-width: 100%;
  max-height: min(70dvh, 42rem, calc(100dvh - 16rem));
  aspect-ratio: auto;
  min-height: 0;
  margin: 0 auto 1.3rem;
  padding: 0;
  overflow: hidden;
  background: #05010a;
  scroll-margin-top: 10rem;
  scroll-margin-bottom: 8rem;
  box-shadow:
    0 0 28px rgba(255, 229, 102, 0.22),
    0 0 42px rgba(255, 43, 214, 0.2),
    inset 0 0 42px rgba(255, 43, 214, 0.12);
}

.blackwing-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
  image-rendering: pixelated;
}

.blackwing-canvas:focus-visible {
  outline: 1px solid rgba(255, 229, 102, 0.7);
  outline-offset: -1px;
}

.game-playfield.is-ravensgate {
  width: min(100%, calc(min(40rem, 70dvh) * 16 / 10));
}

.game-stage.is-ravensgate {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  min-height: 0;
  margin: 0 auto 1.3rem;
  padding: 0;
  overflow: hidden;
  background: #07060d;
  scroll-margin-top: 10rem;
  scroll-margin-bottom: 8rem;
  box-shadow:
    0 0 28px rgba(198, 161, 90, 0.18),
    0 0 42px rgba(255, 43, 214, 0.16),
    inset 0 0 42px rgba(8, 6, 16, 0.4);
}

.ravensgate-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
}

.ravensgate-canvas:focus-visible {
  outline: 1px solid rgba(198, 161, 90, 0.75);
  outline-offset: -1px;
}

.game-stage.is-ravensgate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(5, 1, 10, 0.1) 3px 4px
  );
  box-shadow: inset 0 0 48px rgba(5, 1, 10, 0.4);
}

.game-ops {
  position: absolute;
  top: 0.1rem;
  left: calc(100% + 1.1rem);
  width: 11.6rem;
}

.game-ops-kicker,
.game-ops li span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.game-ops-kicker {
  margin: 0 0 0.55rem;
  text-shadow: 0 0 8px rgba(0, 247, 255, 0.4);
}

.game-ops ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.game-ops li {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.game-ops li span {
  display: block;
  margin-bottom: 0.08rem;
}

.systems-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.systems-cabinet[data-cabinet="horizon"] .systems-log,
.systems-cabinet[data-cabinet="gridlock"] .systems-log,
.systems-cabinet[data-cabinet="afterglow"] .systems-log,
.systems-cabinet[data-cabinet="shatterwave"] .systems-log,
.systems-cabinet[data-cabinet="static"] .systems-log,
.systems-cabinet[data-cabinet="neon-wings"] .systems-log {
  scroll-margin-bottom: 1.5rem;
}

.systems-log li {
  display: grid;
  grid-template-columns: 6.6rem 1fr auto;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.7rem 0.15rem;
  border-top: 1px solid rgba(0, 247, 255, 0.18);
  font-size: 0.95rem;
}

.systems-log span,
.systems-log em {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.systems-log strong {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}

.systems-cabinet[hidden] {
  display: none !important;
}

/* ---------- after dark glovebox ---------- */

.glovebox-board {
  position: relative;
  width: min(100%, 1480px);
  padding: 0.55rem 4vw 8vh;
}

.glovebox-board.is-tuned {
  padding-bottom: calc(100dvh - 6.4rem);
}

.glovebox-board[hidden] {
  display: none !important;
}

.glovebox-stage {
  display: grid;
  place-items: center;
  padding-top: 0.2rem;
}

.glovebox-rig {
  width: min(58rem, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.glovebox-scene {
  position: relative;
  width: 100%;
  overflow: visible;
}

.glovebox-shell {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter:
    drop-shadow(0 0 8px rgba(0, 247, 255, 0.45))
    drop-shadow(0 0 22px rgba(0, 247, 255, 0.18))
    drop-shadow(0 0 16px rgba(255, 43, 214, 0.2));
}

.glovebox-board.is-tuned .glovebox-shell {
  filter:
    drop-shadow(0 0 6px rgba(0, 247, 255, 0.22))
    drop-shadow(0 0 12px rgba(255, 43, 214, 0.12));
  opacity: 0.72;
}

.glovebox-items {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glove-item {
  appearance: none;
  position: absolute;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 100%;
  transition:
    filter 0.35s ease,
    opacity 0.45s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glove-item[data-item="polaroids"] {
  left: 14%;
  width: 18%;
  bottom: 50.5%;
}

.glove-polaroid {
  position: relative;
  display: block;
  width: 100%;
}

.glove-polaroid-mark {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  transform: none;
  filter:
    drop-shadow(0 0 4px rgba(0, 247, 255, 0.55))
    drop-shadow(0 0 8px rgba(255, 43, 214, 0.28));
}

.glove-item[data-item="vhs"] {
  left: 34%;
  width: 32%;
  bottom: 49.5%;
}

.glove-item[data-item="viewmaster"] {
  left: 68%;
  width: 24%;
  bottom: 50%;
}

.glove-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter:
    drop-shadow(0 0 5px rgba(0, 247, 255, 0.7))
    drop-shadow(0 0 12px rgba(255, 43, 214, 0.28));
}

.glove-vm {
  background: transparent;
  filter:
    drop-shadow(0 0 8px rgba(0, 247, 255, 0.45))
    drop-shadow(0 0 16px rgba(255, 43, 214, 0.4));
}

.glove-item:hover,
.glove-item:focus-visible {
  transform: translateY(-0.28rem);
  z-index: 2;
  filter: drop-shadow(0 0 16px rgba(0, 247, 255, 0.95));
}

.glove-item:hover .glove-svg,
.glove-item:focus-visible .glove-svg,
.glove-item:hover .glove-polaroid-mark,
.glove-item:focus-visible .glove-polaroid-mark {
  filter:
    drop-shadow(0 0 7px rgba(0, 247, 255, 1))
    drop-shadow(0 0 18px rgba(0, 247, 255, 0.7));
}

.glove-item.is-live {
  z-index: 3;
  transform: translateY(-0.18rem);
  filter: drop-shadow(0 0 18px var(--hot));
}

.glove-item.is-live .glove-svg,
.glove-item.is-live .glove-polaroid-mark {
  filter:
    drop-shadow(0 0 8px var(--hot))
    drop-shadow(0 0 20px rgba(255, 0, 122, 0.85));
}

.glovebox-board.is-tuned .glove-item:not(.is-live) {
  opacity: 0.24;
}

.glovebox-readout {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.45);
}

.glovebox-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: min(46rem, 92vw);
  margin: 0.4rem auto 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition: grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
}

.glovebox-panel.is-open {
  grid-template-rows: 1fr;
  pointer-events: auto;
  visibility: visible;
}

.glovebox-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0.4rem 0.2rem 1.4rem;
}

.glovebox-panel-close {
  appearance: none;
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  scroll-margin-top: 6.4rem;
}

.glovebox-panel-close:hover,
.glovebox-panel-close:focus-visible {
  color: var(--hot);
  text-shadow: 0 0 10px var(--hot);
}

.glovebox-find-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.glovebox-find-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hot);
}

.glovebox-find-lead {
  margin: 0 0 1rem;
  color: var(--muted);
}

.glovebox-log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.glovebox-log li {
  display: grid;
  grid-template-columns: 6.6rem 1fr auto;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.7rem 0.15rem;
  border-top: 1px solid rgba(0, 247, 255, 0.18);
  font-size: 0.95rem;
}

.glovebox-log span,
.glovebox-log em {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.glovebox-log strong {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}

.glovebox-find[hidden] {
  display: none !important;
}

/* ---------- form ---------- */

.tx-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  margin-top: 1.6rem;
}

.tx-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tx-form .full,
.tx-form button,
.form-status {
  grid-column: 1 / -1;
}

.tx-form span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.tx-form input,
.tx-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0, 247, 255, 0.28);
  background: rgba(5, 1, 10, 0.55);
  color: var(--text);
  font: inherit;
  outline: none;
}

.tx-form input:focus,
.tx-form textarea:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.28);
}

.tx-form button {
  justify-self: start;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--magenta);
  background: rgba(255, 43, 214, 0.12);
  color: #fff;
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.tx-form button:hover,
.tx-form button:focus-visible {
  background: rgba(255, 43, 214, 0.22);
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.4);
}

.tx-form button:disabled {
  cursor: wait;
  opacity: 0.55;
  box-shadow: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.form-status.is-error {
  color: var(--magenta);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--magenta);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 6vw 2.2rem;
  border-top: 1px solid rgba(0, 247, 255, 0.15);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.reveal {
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .coin-bank {
    flex-wrap: wrap;
    width: min(42rem, 94vw);
  }

  .coin-slot {
    flex: 1 1 28%;
    max-width: 10.6rem;
  }

  .nav-long {
    display: none;
  }

  .nav-short {
    display: inline;
  }

  .tuner-stage,
  .nightwave-panel {
    width: min(94vw, 72rem);
  }
}

@media (max-width: 860px) {
  .hud,
  .tx-form {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.15rem;
    padding: 0.7rem 4vw 0.35rem;
    background: linear-gradient(to bottom, rgba(5, 1, 10, 0.94) 0 78%, transparent);
  }

  .nav.is-open {
    background: #05010a;
  }

  .nav.is-open .deck-wrap {
    display: none;
  }

  .nav-end {
    display: contents;
  }

  .logo-dock {
    order: 1;
  }

  .nav-menu {
    display: inline-flex;
    order: 2;
    align-items: center;
    gap: 0.55rem;
    margin-left: auto;
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(0, 247, 255, 0.55);
    background: rgba(5, 1, 10, 0.55);
    color: var(--cyan);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(0, 247, 255, 0.22);
  }

  .nav-menu-bars {
    display: grid;
    gap: 3px;
  }

  .nav-menu-bars span {
    display: block;
    width: 14px;
    height: 1.5px;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
  }

  .nav-menu-close {
    display: none;
  }

  .nav.is-open .nav-menu-open {
    display: none;
  }

  .nav.is-open .nav-menu-close {
    display: inline;
  }

  .nav.is-open .nav-menu {
    border-color: var(--magenta);
    color: var(--magenta);
    box-shadow: 0 0 12px rgba(255, 43, 214, 0.35);
  }

  .nav-links {
    display: none;
    order: 3;
    flex: 1 0 100%;
    flex-direction: column;
    gap: 0;
    margin: 0.35rem 0 0.15rem;
    padding: 0.15rem 0 0.35rem;
    border-top: 1px solid rgba(0, 247, 255, 0.22);
    border-bottom: 1px solid rgba(255, 43, 214, 0.28);
    pointer-events: auto;
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-links .nav-long {
    display: inline;
  }

  .nav-links .nav-short {
    display: none;
  }

  .nav-links a {
    padding: 0.85rem 0.15rem;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }

  .deck-wrap {
    order: 4;
    flex: 1 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-width: none;
    margin: 0.2rem 0 1.7rem;
  }

  .deck-slot,
  .deck {
    width: min(15.5rem, 72vw);
  }

  .panel {
    scroll-margin-top: 10.5rem;
    padding-top: 10.5rem;
  }
}

@media (max-width: 640px) {
  .vu-pair {
    grid-template-columns: 1fr;
  }

  .nav {
    padding: 0.75rem 4vw;
    gap: 0.6rem;
  }

  .logo {
    letter-spacing: 0.12em;
    font-size: 0.82rem;
  }

  .logo-mark {
    width: 22px;
    height: 22px;
  }

  .logo-socials {
    width: 22px;
  }

  .logo-socials svg {
    width: 22px;
    height: 22px;
  }

  .music-toggle {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .deck-slot,
  .deck {
    width: min(13.75rem, 72vw);
  }

  .deck-slot {
    height: 43px;
  }

  .deck-tip {
    max-width: 168px;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }

  .music-hint-text {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .track-skip {
    font-size: 0.75rem;
  }

  .vol {
    --vol-cell: 14px;
    flex-basis: 44px;
    width: 44px;
  }

  .vol-bezel {
    height: 15px;
  }

  .vol-num {
    font-size: 0.46rem;
  }

  .vol-wedge {
    width: 30px;
    height: 4px;
  }

  .hero-copy {
    padding: 8.5rem 5vw 34vh;
  }

  .tag {
    text-shadow: 0 0 16px #05010a, 0 1px 2px #05010a;
  }

  .kicker {
    flex-wrap: wrap;
    letter-spacing: 0.14em;
  }

  .hud {
    grid-template-columns: 1fr 1fr;
  }

  #archive.panel {
    height: auto;
    min-height: 0;
    display: block;
    padding-top: 10.5rem;
  }

  #archive .panel-inner {
    display: block;
  }

  .tapes {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    justify-items: center;
    gap: 1.15rem;
    height: auto;
    container-type: normal;
  }

  .tape {
    width: min(100%, 22rem);
    max-height: none;
  }

  .tape-label {
    top: 60%;
    bottom: 13%;
  }

  .tape h3 {
    margin-bottom: 0.04rem;
  }

  .tape-label p {
    margin-bottom: 0;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .tuner-face {
    height: 9.6rem;
  }

  .nightwave-songs li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .tx-form {
    grid-template-columns: 1fr;
  }

  .signal-board.is-tuned .holo-stage {
    transform: none;
  }

  .holo-rig {
    width: min(94vw, 40rem);
  }

  .glovebox-rig {
    width: min(96vw, 42rem);
  }

  .holo-float {
    gap: 0.85rem;
    margin-bottom: 3.6rem;
  }

  .holo-disk {
    width: 6.4rem;
    height: 2.2rem;
  }

  .holo-beam {
    height: 4.6rem;
    width: min(12rem, 58%);
  }

  .holo-slab,
  .holo-slab[data-channel="odyssey"] {
    min-height: 15.5rem;
    padding: 0.7rem 0.35rem 0.65rem;
  }

  .holo-slab-title {
    letter-spacing: 0.1em;
  }

  .holo-glyph {
    width: min(4.6rem, 62%);
  }

  .holo-slab-foot {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .signal-panel,
  .systems-panel,
  .nightwave-panel,
  .glovebox-panel {
    width: min(92vw, 46rem);
  }

  .signal-log li,
  .echo-cue,
  .systems-log li,
  .glovebox-log li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .odyssey-players li {
    grid-template-columns: minmax(7.5rem, 0.9fr) minmax(0, 1fr) minmax(5.5rem, 0.7fr);
    gap: 0.35rem 0.7rem;
  }

  .odyssey-entry {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0.7rem 0.8rem;
  }

  .odyssey-entry-icon {
    width: 2.6rem;
    height: 2.6rem;
  }

  .odyssey-post-body {
    padding: 1rem 0.95rem 1.4rem;
  }

  .odyssey-post-head {
    grid-template-columns: 3.2rem minmax(0, 1fr);
  }

  .odyssey-post-icon {
    width: 3.2rem;
    height: 3.2rem;
  }

  .coin-bank {
    width: min(94vw, 26rem);
    gap: 0.45rem;
  }

  .coin-slot-mech {
    max-width: none;
    border-radius: 0.7rem;
    padding: 0.38rem 0.34rem 0.34rem 0.3rem;
  }

  .game-stage {
    min-height: 9.5rem;
  }

  .game-stage.is-horizon,
  .game-stage.is-gridlock,
  .game-stage.is-afterglow,
  .game-stage.is-static,
  .game-stage.is-droplight {
    width: 100%;
    max-height: min(calc(100dvh - 18rem), 25rem);
  }

  .game-stage.is-shatterwave {
    width: 100%;
    max-height: calc(min(calc(100dvh - 18rem), 25rem) * 1.15 * 1.1);
  }

  .game-stage.is-neon-wings,
  .game-stage.is-blackwing,
  .game-playfield.is-premium {
    width: 100%;
    height: min(calc(100dvh - 16rem), 32rem);
    max-height: min(calc(100dvh - 16rem), 32rem);
  }

  .game-playfield.is-ravensgate {
    width: 100%;
  }

  .game-stage.is-ravensgate {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .premium-cabinet {
    width: min(94vw, 20rem);
  }

  .game-playfield {
    width: 100%;
  }

  .game-ops {
    position: static;
    width: auto;
    margin-top: 0.85rem;
  }

  .game-ops ul {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.85rem;
  }

  .systems-log li {
    grid-template-columns: 5.8rem minmax(0, 1fr) auto;
    gap: 0.35rem 0.55rem;
  }

  .foot {
    flex-direction: column;
  }
}

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

  .title-glitch,
  .title-by,
  .holo-slab-title,
  .holo-slab-scan,
  .holo-static-l,
  .holo-static-r,
  .holo-static-t,
  .holo-static-b,
  .holo-static i,
  .cta-arrow,
  .kicker .dot,
  .coming-badge .dot,
  .distant-lights span,
  .status-dot,
  .music-toggle .eq span,
  .track-scroll,
  .deck.is-waiting .deck-tape,
  .deck-spool,
  .music-hint-arrow,
  .music-hint-text,
  .tuner-needle,
  .tuner-wave path,
  .holo-beam,
  .holo-float,
  .holo-slab.is-live .holo-slab-plate,
  .holo-rig.is-glitching .holo-float,
  .holo-rig.is-glitching .holo-beam,
  .holo-rig.is-glitching .holo-slab-title,
  .coin-slot-name,
  .coin-slot:not(.is-live) .coin-copy,
  .coin-slot.is-live .coin-slot-mech,
  .vol-drum,
  .vu-peak.is-lit,
  .coin-slot.is-inserting .coin-quarter,
  .coin-slot.is-ejecting .coin-quarter,
  .premium-cabinet-badge,
  .premium-cabinet.is-live .premium-cabinet-marquee,
  .premium-soon {
    animation: none;
  }

  .holo-static i,
  .tuner-needle,
  .signal-panel,
  .systems-panel,
  .nightwave-panel,
  .glovebox-panel,
  .glove-item,
  .logo-socials a {
    transform: none;
    transition: none;
  }

  .signal-panel,
  .systems-panel,
  .nightwave-panel,
  .glovebox-panel {
    visibility: hidden;
  }

  .signal-panel.is-open,
  .systems-panel.is-open,
  .nightwave-panel.is-open,
  .glovebox-panel.is-open {
    visibility: visible;
  }
}
