:root {
  color-scheme: dark;
  --bg: #03040b;
  --ink: #fff7ff;
  --muted: #e9dce9;
  --purple: #a98cff;
  --rose: #ff9bac;
  --gold: #f6d17c;
  --glass: rgba(16, 12, 28, 0.62);
  --line: rgba(255, 255, 255, 0.18);
  --panel-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
  --focus: 0 0 0 4px rgba(246, 209, 124, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Georgia, "Times New Roman", serif;
}

.js .is-awaiting-entry .awakening-stage {
  visibility: hidden;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: none;
  place-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: #000;
  opacity: 1;
  visibility: visible;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.js .intro-overlay {
  display: grid;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  max-width: 42rem;
}

.intro-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  animation: introReveal 1.4s 200ms ease forwards;
}

.intro-quote {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 246, 228, 0.95);
  font-size: clamp(1.3rem, 2.8vw, 2.3rem);
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-shadow: 0 0 24px rgba(255, 214, 147, 0.36);
  opacity: 0;
  animation: introReveal 1.8s 500ms ease forwards;
}

.intro-enter {
  position: relative;
  min-width: 15rem;
  border: 0;
  padding: 0.9rem 2.6rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.11em;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.35),
    0 0 24px rgba(169, 140, 255, 0.22);
  cursor: pointer;
  opacity: 0;
  animation: introReveal 1.4s 900ms ease forwards;
  transition: color 180ms ease, letter-spacing 250ms ease, text-shadow 250ms ease;
}

.intro-enter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  height: 1px;
  translate: -50% 1.3rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(169, 140, 255, 0.15) 12%,
    rgba(246, 209, 124, 0.75) 50%,
    rgba(169, 140, 255, 0.15) 88%,
    transparent
  );
  box-shadow: 0 0 12px rgba(246, 209, 124, 0.28);
  transform: scaleX(0.45);
  transition: transform 300ms ease, opacity 300ms ease, box-shadow 300ms ease;
}

.intro-enter::after {
  content: "◆";
  position: absolute;
  left: 50%;
  bottom: -0.3rem;
  translate: -50% 50%;
  color: var(--gold);
  font-size: 0.48rem;
  text-shadow: 0 0 12px rgba(246, 209, 124, 0.9);
  transition: scale 250ms ease, text-shadow 250ms ease;
}

.intro-enter:hover,
.intro-enter:focus-visible {
  color: #fff8d9;
  letter-spacing: 0.145em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.8),
    0 0 22px rgba(246, 209, 124, 0.62),
    0 0 48px rgba(169, 140, 255, 0.42);
  outline: none;
}

.intro-enter:hover::before,
.intro-enter:focus-visible::before {
  transform: scaleX(1);
  box-shadow: 0 0 18px rgba(246, 209, 124, 0.55);
}

.intro-enter:hover::after,
.intro-enter:focus-visible::after {
  scale: 1.45;
  text-shadow:
    0 0 8px #fff,
    0 0 18px rgba(246, 209, 124, 1);
}

.intro-enter.is-diving {
  pointer-events: none;
  animation: diveText 650ms ease forwards;
}

.intro-enter.is-diving::before {
  animation: diveLine 600ms ease forwards;
}

.intro-enter.is-diving::after {
  animation: diveDiamond 600ms ease forwards;
}

.light-burst {
  position: fixed;
  z-index: 10;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.light-burst::before,
.light-burst::after {
  content: "";
  position: absolute;
  inset: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
}

.light-burst::before {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(255, 248, 211, 0.9);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.9),
    0 0 55px rgba(246, 209, 124, 0.72),
    0 0 95px rgba(169, 140, 255, 0.48);
  animation: burstRing 650ms ease-out forwards;
}

.light-burst::after {
  width: 18rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  filter: drop-shadow(0 0 10px rgba(246, 209, 124, 0.9));
  animation: burstFlash 520ms ease-out forwards;
}

.light-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--spark-size);
  height: calc(var(--spark-size) * 3.6);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    hsl(var(--spark-hue) 100% 90%),
    rgba(255, 255, 255, 0)
  );
  box-shadow: 0 0 9px hsl(var(--spark-hue) 100% 82%);
  transform-origin: center;
  rotate: var(--spark-angle);
  animation: sparkFlight 720ms var(--spark-delay) cubic-bezier(0.15, 0.7, 0.25, 1) forwards;
}

.intro-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  opacity: 0;
  animation: introReveal 1.2s 1.15s ease forwards;
}

.awakening-stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(99, 73, 160, 0.22), transparent 24rem),
    radial-gradient(circle at 50% 95%, rgba(255, 155, 172, 0.08), transparent 32rem),
    linear-gradient(180deg, #0b0f1d 0%, #05050d 48%, #010107 100%);
}

body.has-entered .awakening-stage {
  animation: stageReveal 2.2s ease both;
}

.cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.cinematic-bg::before,
.cinematic-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.cinematic-bg::before {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 244, 214, 0.12), transparent 17rem),
    radial-gradient(circle at 45% 50%, rgba(169, 140, 255, 0.11), transparent 26rem),
    radial-gradient(circle at 55% 62%, rgba(255, 155, 172, 0.06), transparent 30rem);
  filter: blur(8px);
  animation: breathe 9s ease-in-out infinite alternate;
}

.cinematic-bg::after {
  background:
    linear-gradient(transparent 0%, rgba(0,0,0,0.12) 45%, rgba(0,0,0,0.78) 100%),
    radial-gradient(circle at center, transparent 34%, rgba(0,0,0,0.46) 78%);
}

.light-ray {
  position: absolute;
  top: -24%;
  height: 150%;
  width: clamp(5rem, 11vw, 13rem);
  transform-origin: top center;
  opacity: 0.18;
  filter: blur(10px);
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(246, 209, 124, 0.12) 34%, transparent 78%);
  mix-blend-mode: screen;
  animation: rayDrift 14s ease-in-out infinite alternate;
}

.ray-one {
  left: 18%;
  rotate: 8deg;
}

.ray-two {
  left: 47%;
  width: clamp(8rem, 16vw, 19rem);
  opacity: 0.24;
  rotate: -4deg;
  animation-duration: 17s;
}

.ray-three {
  right: 16%;
  rotate: -11deg;
  animation-duration: 19s;
}

.haze {
  position: absolute;
  width: 70vmin;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(4rem);
  opacity: 0.18;
  mix-blend-mode: screen;
  animation: hazeDrift 16s ease-in-out infinite alternate;
}

.haze-one {
  left: -14vmin;
  bottom: 8vmin;
  background: rgba(169, 140, 255, 0.5);
}

.haze-two {
  right: -10vmin;
  top: 18vmin;
  background: rgba(255, 155, 172, 0.35);
  animation-duration: 21s;
}

.spark-field {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(246, 209, 124,0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(169,140,255,0.85) 0 1px, transparent 1.5px);
  background-size: 11rem 11rem, 16rem 16rem, 21rem 21rem;
  background-position: 2rem 3rem, 6rem 11rem, 15rem 1rem;
  animation: sparkleFloat 24s linear infinite;
}

.vignette {
  position: absolute;
  inset: -2%;
  background:
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.58) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, transparent 24%, transparent 70%, rgba(0, 0, 0, 0.52) 100%);
  pointer-events: none;
}

.station-scene {
  position: relative;
  width: min(78vmin, 850px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 1600px;
}

.discovery-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: -1.4rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin: 0;
  translate: -50% 0;
  color: rgba(255, 247, 255, 0.76);
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 2px 14px #000;
  transition: opacity 400ms ease, translate 400ms ease;
  animation: hintPulse 3.4s 2.2s ease-in-out infinite;
}

.discovery-hint.is-hidden {
  opacity: 0;
  translate: -50% 0.5rem;
  pointer-events: none;
  animation: none;
}

.station-aura {
  position: absolute;
  inset: 1.5%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 248, 213, 0.2), rgba(169, 140, 255, 0.2) 36%, rgba(255, 155, 172, 0.08) 52%, transparent 72%);
  filter: blur(1.5rem);
  animation: auraPulse 7s ease-in-out infinite alternate;
}

.interactive-station {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: rotateX(8deg) rotateZ(-1.5deg);
  filter:
    drop-shadow(0 34px 80px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 28px rgba(169, 140, 255, 0.2));
  animation: stationFloat 9s ease-in-out infinite;
}

.interactive-station::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(246, 209, 124, 0.12);
  background: radial-gradient(circle, transparent 55%, rgba(246, 209, 124, 0.09), transparent 70%);
  filter: blur(0.25rem);
}

.interactive-station::after {
  content: "";
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.0) 22%, rgba(255,255,255,0.18) 36%, rgba(255,255,255,0.03) 43%, transparent 56%),
    radial-gradient(circle at 50% 48%, transparent 42%, rgba(255,255,255,0.08) 45%, transparent 48%);
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: glassGleam 10s ease-in-out infinite alternate;
}

.interactive-station img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
}

.hotspot {
  --ring: rgba(246, 209, 124, 0.92);
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  touch-action: manipulation;
  transform: translate(-50%, -50%) rotate(var(--angle, 0deg));
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    scale 180ms ease;
}

.hotspot::before,
.hotspot::after {
  content: "";
  position: absolute;
  inset: 50%;
  border-radius: inherit;
  translate: -50% -50%;
  pointer-events: none;
  opacity: 0;
}

.hotspot::before {
  width: 0.55rem;
  aspect-ratio: 1;
  background: var(--ring);
  box-shadow: 0 0 18px var(--ring), 0 0 38px rgba(169, 140, 255, 0.65);
  transform: scale(0.7);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hotspot::after {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(246, 209, 124, 0.62);
  box-shadow:
    inset 0 0 20px rgba(246, 209, 124, 0.14),
    0 0 34px rgba(246, 209, 124, 0.2),
    0 0 70px rgba(169, 140, 255, 0.22);
  scale: 0.9;
  transition: opacity 180ms ease, scale 180ms ease;
}

.hotspot:hover::before,
.hotspot:focus-visible::before,
.hotspot.is-active::before,
.hotspot:hover::after,
.hotspot:focus-visible::after,
.hotspot.is-active::after {
  opacity: 1;
}

.hotspot:hover::before,
.hotspot:focus-visible::before,
.hotspot.is-active::before {
  transform: scale(1);
}

.hotspot:hover::after,
.hotspot:focus-visible::after,
.hotspot.is-active::after {
  scale: 1.05;
}

.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-active {
  background-color: rgba(246, 209, 124, 0.055);
  scale: 1.04;
}

.hotspot:focus-visible {
  outline: none;
  box-shadow: var(--focus), 0 0 0 8px rgba(255, 255, 255, 0.14);
}

.hotspot.is-discovered:not(.is-active)::before {
  opacity: 0.42;
  transform: scale(0.62);
}

.hotspot.is-discovered:not(.is-active)::after {
  opacity: 0.16;
  scale: 0.82;
}

.hotspot--portrait {
  --ring: rgba(255, 235, 252, 0.94);
}

.hotspot--character {
  border-radius: 45% 55% 55% 45%;
}

.hotspot--keyblade {
  border-radius: 999px;
  width: var(--s);
  height: calc(var(--s) * 0.42);
}

.hotspot--ring {
  --ring: rgba(169, 140, 255, 0.98);
}

.station-reader {
  position: fixed;
  z-index: 5;
  right: clamp(1rem, 4vw, 3rem);
  top: 50%;
  width: min(27rem, calc(100vw - 2rem));
  max-height: min(78svh, 42rem);
  overflow: auto;
  translate: 0 -50%;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(30, 23, 48, 0.74), rgba(9, 8, 18, 0.64)),
    rgba(9, 8, 18, 0.52);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(24px) saturate(140%);
  opacity: 0;
  transform: translateX(1rem) scale(0.98);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.station-reader.is-open {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.station-reader::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(246, 209, 124, 0.13);
  pointer-events: none;
}

.reader-progress {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-close {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  width: 2rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255,255,255,0.06);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.panel-close:hover,
.panel-close:focus-visible {
  border-color: rgba(246, 209, 124, 0.75);
  box-shadow: 0 0 20px rgba(246, 209, 124, 0.18);
  outline: none;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.panel-reset {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.panel-reset:hover,
.panel-reset:focus-visible {
  border-color: rgba(246, 209, 124, 0.75);
  box-shadow: 0 0 20px rgba(246, 209, 124, 0.16);
  outline: none;
}

.panel-reset:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0 2rem 0.75rem 0;
}

.station-reader h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1.05;
  text-shadow: 0 8px 30px rgba(169, 140, 255, 0.28);
}

.station-reader p,
.reader-list {
  color: var(--muted);
  line-height: 1.7;
}

.reader-list {
  margin: 1rem 0 0;
  padding-inline-start: 1.1rem;
}

.reader-list li + li {
  margin-top: 0.5rem;
}

.noscript-card {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 6;
  max-width: 42rem;
  margin: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--muted);
  background: rgba(9, 8, 18, 0.78);
  backdrop-filter: blur(18px);
}

.sound-control {
  position: fixed;
  z-index: 6;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--muted);
  background: rgba(9, 8, 18, 0.58);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.sound-control[hidden] {
  display: none;
}

.sound-control:hover,
.sound-control:focus-visible {
  border-color: rgba(246, 209, 124, 0.72);
  outline: none;
}

.sound-control[aria-pressed="false"] .sound-icon {
  opacity: 0.45;
  text-decoration: line-through;
}

.memory-toast {
  position: fixed;
  z-index: 8;
  top: clamp(1rem, 4vw, 2.5rem);
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 2rem);
  translate: -50% -1rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(246, 209, 124, 0.35);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(16, 12, 28, 0.78);
  box-shadow: 0 0 50px rgba(169, 140, 255, 0.25);
  backdrop-filter: blur(20px);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, translate 300ms ease, visibility 300ms ease;
}

.memory-toast.is-visible {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

@keyframes breathe {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 0.92; transform: scale(1.05); }
}

@keyframes rayDrift {
  from { transform: translate3d(-1rem, -2rem, 0) skewX(-7deg); }
  to { transform: translate3d(1rem, 2rem, 0) skewX(4deg); }
}

@keyframes hazeDrift {
  from { transform: translate3d(-2rem, 1rem, 0) scale(1); }
  to { transform: translate3d(2rem, -1rem, 0) scale(1.12); }
}

@keyframes sparkleFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-12rem); }
}

@keyframes auraPulse {
  from { opacity: 0.6; scale: 0.98; }
  to { opacity: 1; scale: 1.04; }
}

@keyframes stationFloat {
  0%, 100% { transform: rotateX(8deg) rotateZ(-1.5deg) translateY(0); }
  50% { transform: rotateX(8deg) rotateZ(1deg) translateY(-1.2rem); }
}

@keyframes glassGleam {
  from { opacity: 0.34; transform: rotate(0deg); }
  to { opacity: 0.68; transform: rotate(7deg); }
}

@keyframes introReveal {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stageReveal {
  from { opacity: 0; filter: brightness(0.35) blur(0.4rem); transform: scale(1.035); }
  to { opacity: 1; filter: brightness(1) blur(0); transform: scale(1); }
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 1; }
}

@keyframes diveText {
  0% { opacity: 1; scale: 1; filter: brightness(1); }
  35% { opacity: 1; scale: 1.08; filter: brightness(2); }
  100% { opacity: 0; scale: 1.22; filter: brightness(4) blur(0.25rem); }
}

@keyframes diveLine {
  0% { opacity: 1; transform: scaleX(1); }
  55% { opacity: 1; transform: scaleX(1.35); }
  100% { opacity: 0; transform: scaleX(0); }
}

@keyframes diveDiamond {
  0% { opacity: 1; scale: 1; }
  45% { opacity: 1; scale: 2.2; }
  100% { opacity: 0; scale: 0; }
}

@keyframes burstRing {
  0% { opacity: 1; scale: 0.2; }
  100% { opacity: 0; scale: 18; }
}

@keyframes burstFlash {
  0% { opacity: 0; scale: 0.05 1; rotate: -8deg; }
  30% { opacity: 1; }
  100% { opacity: 0; scale: 1.5 1; rotate: 8deg; }
}

@keyframes sparkFlight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) scaleY(0.35);
  }
  18% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--spark-x), var(--spark-y)) scaleY(1);
  }
}

@media (max-width: 980px) {
  .station-scene {
    width: min(86vmin, calc(100vw - 2rem));
  }

  .station-reader {
    top: auto;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    width: auto;
    max-height: 44svh;
    translate: 0;
    transform: translateY(1rem) scale(0.98);
    border-radius: 1.2rem 1.2rem 0.9rem 0.9rem;
  }

  .station-reader.is-open {
    transform: translateY(0) scale(1);
  }

  .sound-control {
    bottom: auto;
    top: 1rem;
  }
}

@media (max-width: 620px) {
  .station-scene {
    width: min(94vmin, calc(100vw - 1rem));
  }

  .interactive-station {
    transform: rotateX(5deg) rotateZ(-1deg);
  }

  .hotspot {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }

  @keyframes stationFloat {
    0%, 100% { transform: rotateX(5deg) rotateZ(-1deg) translateY(0); }
    50% { transform: rotateX(5deg) rotateZ(0.75deg) translateY(-0.75rem); }
  }

  .hotspot::before {
    width: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .interactive-station,
  .station-aura,
  .cinematic-bg::before,
  .spark-field,
  .light-ray,
  .haze {
    animation: none !important;
  }

  .intro-quote {
    animation: none !important;
    opacity: 1;
  }

  .intro-kicker,
  .intro-enter,
  .intro-note {
    animation: none !important;
    opacity: 1;
  }

  .intro-enter.is-diving,
  .intro-enter.is-diving::before,
  .intro-enter.is-diving::after,
  .light-burst::before,
  .light-burst::after,
  .light-spark {
    animation-duration: 0.01ms !important;
  }
}
