:root {
  --bg-night: #050712;
  --bg-deep: #02030a;
  --bg-panel: rgba(9, 12, 28, 0.72);
  --bg-panel-strong: rgba(12, 16, 36, 0.9);
  --text: #f8f1e7;
  --muted: rgba(248, 241, 231, 0.74);
  --line: rgba(255, 255, 255, 0.1);
  --gold: #ffd76a;
  --amber: #ffb85b;
  --rose: #f26b86;
  --cyan: #78d5ff;
  --blue: #4c7dff;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --display: "Avenir Next Condensed", "Bebas Neue", "DIN Condensed", "Arial Narrow", sans-serif;
  --serif: "Didot", "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--serif);
  background:
    radial-gradient(circle at 14% 18%, rgba(242, 107, 134, 0.18), transparent 22%),
    radial-gradient(circle at 83% 14%, rgba(120, 213, 255, 0.16), transparent 26%),
    radial-gradient(circle at 55% 58%, rgba(255, 184, 91, 0.08), transparent 24%),
    linear-gradient(180deg, #0d1329 0%, #0a0f23 34%, #060913 60%, #02030a 100%);
}

body.locked {
  overflow: hidden;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.particle-canvas,
.film-noise,
.light-leak {
  pointer-events: none;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.film-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.15;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px;
}

.light-leak {
  position: fixed;
  inset: auto;
  z-index: 1;
  width: 24rem;
  height: 70vh;
  opacity: 0.22;
  filter: blur(22px);
  border-radius: 999px;
  animation: leakPulse 9s ease-in-out infinite;
}

.leak-left {
  top: -10vh;
  left: -10rem;
  background: radial-gradient(circle, rgba(255, 184, 91, 0.22), transparent 68%);
}

.leak-right {
  right: -8rem;
  bottom: -12vh;
  background: radial-gradient(circle, rgba(120, 213, 255, 0.18), transparent 66%);
  animation-delay: -4.6s;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 215, 106, 0.11), transparent 20%),
    linear-gradient(180deg, rgba(5, 7, 18, 0.88), rgba(2, 3, 10, 0.96));
  backdrop-filter: blur(16px);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.entry-gate.hidden {
  opacity: 0;
  visibility: hidden;
}

.entry-card {
  position: relative;
  width: min(32rem, 100%);
  padding: 2.3rem 1.8rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 184, 91, 0.08), transparent 35%),
    linear-gradient(225deg, rgba(120, 213, 255, 0.08), transparent 40%),
    rgba(8, 11, 25, 0.92);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.46);
}

.entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 49%, transparent 56%);
  transform: translateX(-100%);
  animation: sweep 4.5s ease-in-out infinite;
}

.entry-kicker,
.eyebrow,
.scene-number,
.card-tag,
.letter-kicker {
  margin: 0;
  font-family: var(--display);
  font-size: 0.84rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.entry-card h2,
.hero h1,
.scene-meta h2,
.focus-card h3,
.artifact-detail h3,
.memory-dossier h3,
.storyboard-card h3,
.storyboard-active-copy h3,
.finale-copy h2,
.music-stage-copy h3,
.letter-card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-card h2 {
  margin-top: 0.9rem;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.entry-copy {
  margin: 1rem auto 0;
  max-width: 25rem;
  color: var(--muted);
  line-height: 1.9;
}

.entry-lock {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.entry-lock-label {
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 241, 231, 0.84);
}

.entry-password {
  width: 100%;
  padding: 0.98rem 1.08rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  outline: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(7, 10, 24, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.26em;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.entry-password::placeholder {
  letter-spacing: 0.18em;
  color: rgba(248, 241, 231, 0.34);
}

.entry-password:focus {
  border-color: rgba(255, 215, 106, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 4px rgba(255, 215, 106, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.entry-password.invalid {
  border-color: rgba(242, 107, 134, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 4px rgba(242, 107, 134, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

.entry-lock-note,
.entry-lock-error {
  margin: 0;
  line-height: 1.7;
}

.entry-lock-note {
  color: rgba(248, 241, 231, 0.5);
  font-size: 0.96rem;
}

.entry-lock-error {
  min-height: 1.5rem;
  color: rgba(242, 107, 134, 0.92);
  font-size: 0.95rem;
}

.entry-btn {
  margin-top: 0.15rem;
}

.panel {
  position: relative;
  z-index: 2;
  padding: clamp(4.8rem, 7vw, 6rem) clamp(1rem, 3vw, 2rem);
}

.panel-frame {
  position: absolute;
  inset: 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 20%),
    rgba(6, 8, 19, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  pointer-events: none;
}

.hero {
  min-height: 100vh;
  padding-top: 1.2rem;
  padding-bottom: 3.5rem;
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 2.4rem);
  padding: clamp(1.35rem, 2.8vw, 2.4rem);
  border-radius: 2.3rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 200, 112, 0.12), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(106, 169, 255, 0.1), transparent 24%),
    radial-gradient(circle at 54% 48%, rgba(255, 220, 144, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 14%),
    linear-gradient(120deg, rgba(24, 38, 80, 0.24), rgba(8, 10, 25, 0.14) 30%, rgba(6, 8, 20, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% 10%;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at 62% 44%, rgba(255, 214, 130, 0.08), transparent 28%);
  filter: blur(0);
  opacity: 0.9;
}

.hero-grid,
.hero-radial,
.hero-focus-ring {
  position: absolute;
  pointer-events: none;
}

.hero-grid {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.05)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 7.4rem 7.4rem, 7.4rem 7.4rem;
  opacity: 0.08;
  mask-image: radial-gradient(circle at 62% 46%, rgba(0, 0, 0, 1), transparent 80%);
}

.hero-radial {
  inset: auto;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.36;
}

.hero-radial-ny {
  left: -6rem;
  top: 26%;
  background: radial-gradient(circle, rgba(255, 188, 112, 0.28), transparent 70%);
}

.hero-radial-la {
  right: -6rem;
  top: 12%;
  background: radial-gradient(circle, rgba(122, 173, 255, 0.26), transparent 70%);
}

.hero-focus-ring {
  inset: 12% 6% 12%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 215, 106, 0.02),
    0 0 50px rgba(255, 184, 91, 0.05);
}

.hero-universe,
.planet-cluster,
.planet-body,
.planet-halo,
.planet-ring,
.prop-callout {
  position: absolute;
}

.hero-universe {
  inset: -4% -6% 2%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: 100%;
  text-align: left;
}

.hero-copy-top {
  position: relative;
  max-width: 37rem;
  width: 100%;
  min-height: 100%;
  padding: clamp(1.55rem, 2.4vw, 2.15rem) clamp(1.35rem, 2.15vw, 1.95rem) clamp(2.55rem, 3.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  overflow: visible;
  isolation: isolate;
  border-radius: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-right-color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%),
    linear-gradient(90deg, rgba(9, 12, 28, 0.82) 0%, rgba(8, 11, 25, 0.72) 48%, rgba(8, 11, 25, 0.32) 72%, rgba(8, 11, 25, 0.08) 86%, rgba(8, 11, 25, 0) 100%);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-copy-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 28%, rgba(8, 11, 25, 0.02) 58%, rgba(8, 11, 25, 0.16) 78%, rgba(8, 11, 25, 0.34) 92%, rgba(8, 11, 25, 0.46) 100%),
    radial-gradient(circle at 18% 54%, rgba(255, 214, 136, 0.08), transparent 24%),
    radial-gradient(circle at 42% 34%, rgba(120, 213, 255, 0.05), transparent 22%);
  pointer-events: none;
}

.hero-copy-top > :not(.hero-still) {
  position: relative;
  z-index: 1;
}

.hero-copy-top.no-hero-photo .hero-still {
  display: none;
}

.hero-main-layout,
.hero-foot-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(27rem, 1.06fr) minmax(34rem, 0.94fr);
  gap: clamp(1.2rem, 2.2vw, 2.2rem);
  width: min(100%, 91rem);
  margin: 0 auto;
}

.hero-main-layout {
  min-height: clamp(41rem, 73vh, 48rem);
  padding: clamp(1.9rem, 4vw, 3.9rem) 0 2.45rem;
  align-items: start;
}

.hero-foot-layout {
  align-items: start;
  margin-top: -5.35rem;
  padding-bottom: 2.15rem;
}

.hero-galaxy-column {
  position: relative;
  display: grid;
  gap: 0.82rem;
  align-self: start;
  justify-content: stretch;
  justify-self: end;
  width: min(100%, 41rem);
  padding: 0.6rem 0 0.45rem;
}

.memory-dossier,
.star-system-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 20%),
    rgba(7, 10, 22, 0.84);
  box-shadow: var(--shadow);
}

.memory-dossier {
  width: 100%;
  padding: 0.96rem 1rem 1.06rem;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 20%),
    linear-gradient(145deg, rgba(255, 201, 112, 0.06), transparent 40%),
    rgba(7, 10, 23, 0.8);
}

.memory-dossier h3 {
  margin-top: 0.82rem;
  font-size: clamp(1.42rem, 1.72vw, 1.88rem);
  line-height: 1.04;
}

.memory-text,
.memory-note,
.star-system-hint {
  color: var(--muted);
  line-height: 1.85;
}

.memory-text {
  margin: 0.82rem 0 0;
}

.memory-note {
  margin: 0.88rem 0 0;
  padding: 0.92rem 0.95rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
}

.star-system-shell {
  padding: 1rem 1rem 1.04rem;
  border-radius: 2.1rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 201, 112, 0.08), transparent 22%),
    radial-gradient(circle at 86% 22%, rgba(120, 213, 255, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 16%),
    rgba(8, 11, 24, 0.9);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.star-system {
  position: relative;
  width: 100%;
  min-height: clamp(24rem, 28vw, 29rem);
  aspect-ratio: 1.44 / 1;
  border-radius: 1.75rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 51% 53%, rgba(255, 215, 106, 0.13), transparent 20%),
    radial-gradient(circle at 12% 84%, rgba(120, 213, 255, 0.1), transparent 18%),
    radial-gradient(circle at 88% 16%, rgba(242, 107, 134, 0.08), transparent 16%),
    rgba(5, 8, 19, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.star-system::before,
.star-system::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star-system::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 5.8rem 5.8rem;
  opacity: 0.08;
}

.star-system::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 224, 151, 0.12), transparent 16%),
    radial-gradient(circle at 72% 40%, rgba(255, 255, 255, 0.05), transparent 22%),
    radial-gradient(circle at 28% 68%, rgba(120, 213, 255, 0.06), transparent 20%);
  opacity: 1;
}

.sun-aura,
.sun-ring,
.sun-core,
.planet-field,
.orbit-track,
.star-link {
  position: absolute;
}

.sun-aura {
  left: 50%;
  top: 50%;
  width: 17rem;
  height: 17rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 235, 178, 0.34), rgba(255, 179, 80, 0.2) 36%, transparent 72%);
  filter: blur(28px);
}

.sun-ring {
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 215, 106, 0.22);
}

.sun-ring-one {
  width: 9.6rem;
  height: 9.6rem;
}

.sun-ring-two {
  width: 13.8rem;
  height: 13.8rem;
  border-color: rgba(120, 213, 255, 0.12);
}

.sun-core {
  left: 50%;
  top: 50%;
  width: 6.5rem;
  height: 6.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.98), rgba(255, 238, 179, 0.96) 26%, rgba(255, 190, 89, 0.94) 54%, rgba(242, 107, 134, 0.76) 100%);
  box-shadow:
    0 0 34px rgba(255, 215, 106, 0.34),
    0 0 68px rgba(242, 107, 134, 0.12);
}

.sun-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 12.8rem;
  transform: translate(-50%, calc(-50% + 0.05rem));
  text-align: center;
  pointer-events: none;
}

.sun-kicker {
  margin: 0;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 215, 106, 0.84);
}

.sun-copy h2 {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.32rem, 1.9vw, 1.76rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.planet-field {
  inset: 0;
  z-index: 4;
}

.orbit-track {
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-11deg);
  border: 1px solid rgba(255, 230, 173, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.015),
    inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.orbit-track-upper-right {
  width: 30%;
  height: 22%;
}

.orbit-track-outer-left {
  width: 80%;
  height: 64%;
}

.orbit-track-lower-left {
  width: 52%;
  height: 40%;
}

.orbit-track-lower-right {
  width: 68%;
  height: 54%;
}

.orbit-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.orbit-outer-left {
}

.orbit-upper-right {
}

.orbit-lower-left {
}

.orbit-lower-right {
}

.memory-planet {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: var(--planet-size, 5.2rem);
  height: var(--planet-size, 5.2rem);
  transform: translate(-50%, -50%) scale(var(--planet-depth-scale, 1));
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  pointer-events: auto;
  opacity: var(--planet-depth-opacity, 1);
  transition: transform 220ms ease, opacity 220ms ease;
  isolation: isolate;
}

.memory-planet-glow,
.memory-planet-surface {
  position: absolute;
  border-radius: 50%;
}

.memory-planet-glow {
  inset: -0.62rem;
  filter: blur(16px);
  opacity: 0.44;
}

.memory-planet-surface {
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0.34rem 0.4rem 0.9rem rgba(255, 255, 255, 0.24),
    inset -0.82rem -1rem 1.45rem rgba(5, 8, 18, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 16px rgba(0, 0, 0, 0.3);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.memory-planet-surface::before,
.memory-planet-surface::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.memory-planet-surface::before {
  inset: 8% 14% 44% 16%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 42%, transparent 72%);
  opacity: 0.74;
  filter: blur(1px);
  mix-blend-mode: screen;
}

.memory-planet-surface::after {
  inset: -10%;
  background:
    radial-gradient(circle at 22% 22%, transparent 0 48%, rgba(255, 255, 255, 0.12) 56%, transparent 63%),
    radial-gradient(circle at 74% 78%, rgba(3, 7, 17, 0.42), transparent 54%),
    linear-gradient(132deg, rgba(255, 255, 255, 0.06), transparent 34%, rgba(4, 8, 20, 0.26) 76%);
  opacity: 0.94;
}

.memory-planet-surface :is(svg, img) {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  display: block;
  object-fit: contain;
  overflow: visible;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.12))
    drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18));
}

.memory-planet-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.58rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 70%),
    rgba(7, 9, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transform: translate(-50%, 0.25rem) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.memory-planet:hover .memory-planet-surface,
.memory-planet:focus-visible .memory-planet-surface,
.memory-planet.active .memory-planet-surface {
  transform: scale(1.09);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.memory-planet.active .memory-planet-glow {
  opacity: 0.7;
}

.memory-planet:hover .memory-planet-name,
.memory-planet:focus-visible .memory-planet-name,
.memory-planet.active .memory-planet-name {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.motif-umbrella .memory-planet-glow {
  background: radial-gradient(circle, rgba(255, 215, 106, 0.42), transparent 72%);
}

.motif-umbrella {
  --planet-size: 2.3rem;
}

.motif-umbrella .memory-planet-surface,
.motif-umbrella .memory-planet-name {
  color: #ffd76a;
}

.motif-umbrella .memory-planet-surface {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 252, 232, 0.99), rgba(255, 236, 170, 0.98) 18%, transparent 34%),
    radial-gradient(circle at 72% 74%, rgba(140, 98, 34, 0.54), transparent 42%),
    radial-gradient(circle at 42% 46%, rgba(255, 221, 124, 0.24), transparent 36%),
    repeating-linear-gradient(152deg, rgba(255, 232, 156, 0.24) 0 10%, rgba(198, 136, 49, 0.18) 10% 18%, rgba(255, 241, 193, 0.12) 18% 29%),
    radial-gradient(circle at 36% 30%, #fff0b7 0, #e2b057 52%, #8a6325 100%);
}

.motif-umbrella .memory-planet-surface :is(svg, img) {
  width: 79%;
  height: 79%;
  transform: translateY(1px);
}

.motif-horn .memory-planet-glow {
  background: radial-gradient(circle, rgba(120, 213, 255, 0.42), transparent 72%);
}

.motif-horn {
  --planet-size: 1.95rem;
}

.motif-horn .memory-planet-surface,
.motif-horn .memory-planet-name {
  color: #78d5ff;
}

.motif-horn .memory-planet-surface {
  background:
    radial-gradient(circle at 30% 22%, rgba(248, 252, 255, 0.99), rgba(205, 235, 255, 0.97) 18%, transparent 34%),
    radial-gradient(circle at 70% 76%, rgba(31, 72, 131, 0.56), transparent 42%),
    radial-gradient(circle at 44% 44%, rgba(182, 235, 255, 0.22), transparent 34%),
    repeating-linear-gradient(148deg, rgba(160, 228, 255, 0.24) 0 11%, rgba(85, 152, 224, 0.18) 11% 20%, rgba(184, 241, 255, 0.1) 20% 30%),
    radial-gradient(circle at 34% 28%, #d8f1ff 0, #79afd9 52%, #22528d 100%);
}

.motif-horn .memory-planet-surface :is(svg, img) {
  width: 84%;
  height: 84%;
  transform: translateX(-2px);
}

.motif-pub .memory-planet-glow {
  background: radial-gradient(circle, rgba(255, 184, 143, 0.38), transparent 72%);
}

.motif-pub {
  --planet-size: 2.05rem;
}

.motif-pub .memory-planet-surface,
.motif-pub .memory-planet-name {
  color: #ffba93;
}

.motif-pub .memory-planet-surface {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 248, 238, 0.99), rgba(239, 201, 173, 0.97) 18%, transparent 34%),
    radial-gradient(circle at 70% 76%, rgba(92, 51, 35, 0.58), transparent 42%),
    radial-gradient(circle at 48% 42%, rgba(255, 226, 197, 0.22), transparent 36%),
    repeating-linear-gradient(138deg, rgba(181, 114, 77, 0.22) 0 12%, rgba(108, 60, 41, 0.18) 12% 20%, rgba(220, 154, 115, 0.12) 20% 31%),
    radial-gradient(circle at 36% 30%, #f5dcc8 0, #b97859 52%, #523227 100%);
}

.motif-observatory .memory-planet-glow {
  background: radial-gradient(circle, rgba(242, 107, 134, 0.36), transparent 72%);
}

.motif-observatory {
  --planet-size: 2.55rem;
}

.motif-observatory .memory-planet-surface,
.motif-observatory .memory-planet-name {
  color: #ffd9e2;
}

.motif-observatory .memory-planet-surface {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 250, 255, 0.99), rgba(237, 218, 248, 0.97) 18%, transparent 34%),
    radial-gradient(circle at 72% 76%, rgba(84, 54, 122, 0.58), transparent 42%),
    radial-gradient(circle at 45% 45%, rgba(248, 232, 255, 0.2), transparent 36%),
    repeating-linear-gradient(145deg, rgba(241, 216, 255, 0.22) 0 10%, rgba(176, 130, 204, 0.18) 10% 20%, rgba(132, 93, 171, 0.12) 20% 31%),
    radial-gradient(circle at 34% 30%, #f2e1ff 0, #af89cf 52%, #533872 100%);
}

.star-link {
  display: none;
}

.star-system-hint {
  margin: 0;
  max-width: none;
  padding: 0 0.22rem;
  text-align: left;
  font-size: 0.92rem;
  color: rgba(248, 241, 231, 0.7);
}

.planet-cluster {
  border-radius: 50%;
  opacity: 0.3;
  animation: planetDrift 18s ease-in-out infinite;
}

.planet-cluster-alpha {
  top: -2%;
  right: -4%;
  width: clamp(10rem, 22vw, 16rem);
  height: clamp(10rem, 22vw, 16rem);
}

.planet-cluster-beta {
  left: 44%;
  top: 6%;
  width: clamp(4.8rem, 10vw, 7rem);
  height: clamp(4.8rem, 10vw, 7rem);
  animation-delay: -5s;
}

.planet-cluster-gamma {
  top: auto;
  bottom: 10%;
  left: 58%;
  width: clamp(3.2rem, 7vw, 5.4rem);
  height: clamp(3.2rem, 7vw, 5.4rem);
  animation-delay: -9s;
}

.planet-halo,
.planet-body {
  inset: 0;
  border-radius: 50%;
}

.planet-halo {
  inset: -16%;
  filter: blur(22px);
}

.planet-cluster-alpha .planet-halo {
  background: radial-gradient(circle, rgba(255, 184, 91, 0.22), transparent 70%);
}

.planet-cluster-beta .planet-halo {
  background: radial-gradient(circle, rgba(120, 213, 255, 0.24), transparent 72%);
}

.planet-cluster-gamma .planet-halo {
  background: radial-gradient(circle, rgba(242, 107, 134, 0.18), transparent 72%);
}

.planet-body {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 229, 165, 0.88) 22%, rgba(255, 184, 91, 0.82) 48%, rgba(165, 95, 84, 0.7) 72%, rgba(49, 34, 58, 0.55) 100%);
  box-shadow:
    inset -1.4rem -1.1rem 2.2rem rgba(46, 19, 45, 0.28),
    0 0 38px rgba(255, 184, 91, 0.12);
}

.planet-cluster-beta .planet-body {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.94), rgba(203, 243, 255, 0.92) 26%, rgba(120, 213, 255, 0.84) 56%, rgba(47, 118, 156, 0.7) 76%, rgba(17, 32, 67, 0.5) 100%);
  box-shadow:
    inset -1rem -0.8rem 1.6rem rgba(8, 26, 62, 0.28),
    0 0 26px rgba(120, 213, 255, 0.12);
}

.planet-cluster-gamma .planet-body {
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.88), rgba(255, 214, 231, 0.72) 28%, rgba(242, 107, 134, 0.72) 58%, rgba(77, 42, 79, 0.66) 100%);
  box-shadow:
    inset -0.8rem -0.5rem 1.3rem rgba(39, 16, 47, 0.28),
    0 0 16px rgba(242, 107, 134, 0.1);
}

.planet-ring {
  inset: -10% -16%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(-18deg);
}

.planet-cluster-alpha .ring-major {
  border-color: rgba(255, 215, 106, 0.2);
}

.planet-cluster-alpha .ring-minor {
  inset: 10% -8%;
  border-color: rgba(120, 213, 255, 0.16);
  transform: rotate(18deg);
}

.planet-cluster-beta .ring-major {
  inset: -16%;
  border-color: rgba(120, 213, 255, 0.24);
  transform: rotate(28deg);
}

.prop-callout {
  z-index: 2;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 9, 19, 0.6);
  backdrop-filter: blur(14px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.callout-booth {
  left: 8%;
  bottom: 50%;
  color: #ffb4c4;
}

.callout-umbrella {
  right: 2%;
  bottom: 8%;
  color: #ffd76a;
}

.callout-horn {
  left: 2%;
  bottom: 14%;
  color: #78d5ff;
}

.callout-observatory {
  right: 8%;
  bottom: 34%;
  color: #d9e2ff;
}

.rain-glass {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 6.5rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 44%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 14px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  opacity: 0.12;
  mix-blend-mode: screen;
}

.city-pane {
  position: relative;
  min-height: min(74vh, 52rem);
  z-index: 1;
}

.city-pane::after {
  content: "";
  position: absolute;
  inset: auto 10% 8% 10%;
  height: 20%;
  border-radius: 999px;
  filter: blur(28px);
}

.city-pane-ny::after {
  background: radial-gradient(circle, rgba(255, 160, 88, 0.22), transparent 70%);
}

.city-pane-la::after {
  background: radial-gradient(circle, rgba(120, 213, 255, 0.18), transparent 70%);
}

.street-haze {
  position: absolute;
  inset: auto 8% 0 8%;
  height: 36%;
  background:
    radial-gradient(circle at 28% 72%, rgba(255, 130, 88, 0.22), transparent 24%),
    radial-gradient(circle at 60% 74%, rgba(255, 215, 106, 0.16), transparent 18%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  border-radius: 1.8rem 1.8rem 0 0;
}

.neon-sign {
  position: absolute;
  top: 14%;
  left: 10%;
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.2rem;
  border-radius: 1.4rem;
  background: rgba(8, 11, 20, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 50px rgba(0, 0, 0, 0.24),
    0 0 45px rgba(242, 107, 134, 0.14);
}

.neon-main,
.neon-sub {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
}

.neon-main {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.08em;
  color: #ffb4c4;
  text-shadow:
    0 0 10px rgba(242, 107, 134, 0.55),
    0 0 26px rgba(242, 107, 134, 0.3),
    0 0 50px rgba(255, 184, 91, 0.18);
  animation: neonBlink 6.4s infinite;
}

.neon-sub {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: rgba(255, 215, 106, 0.8);
}

.booth-silhouette {
  position: absolute;
  left: 11%;
  right: 18%;
  bottom: 14%;
  height: 34%;
}

.booth-seat,
.booth-table {
  position: absolute;
  background: linear-gradient(180deg, rgba(12, 16, 33, 0.94), rgba(1, 2, 8, 0.98));
}

.booth-seat {
  bottom: 0;
  width: 34%;
  height: 76%;
  border-radius: 1.6rem 1.6rem 0.8rem 0.8rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.booth-left {
  left: 0;
}

.booth-right {
  right: 0;
}

.booth-table {
  left: 50%;
  bottom: 2%;
  width: 28%;
  height: 12%;
  transform: translateX(-50%);
  border-radius: 999px;
  box-shadow:
    0 -6px 18px rgba(255, 215, 106, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.yellow-umbrella {
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: clamp(8rem, 18vw, 12rem);
  filter:
    drop-shadow(0 0 16px rgba(255, 215, 106, 0.24))
    drop-shadow(0 20px 30px rgba(0, 0, 0, 0.24));
  transform-origin: 50% 80%;
  animation: umbrellaFloat 8.5s ease-in-out infinite;
}

.moon-disc {
  position: absolute;
  top: 11%;
  right: 18%;
  width: clamp(8rem, 18vw, 13rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(255, 222, 146, 0.9) 28%, rgba(255, 184, 91, 0.82) 52%, rgba(162, 92, 77, 0.68) 78%, rgba(33, 32, 73, 0.24) 100%);
  filter: blur(0.2px) drop-shadow(0 0 35px rgba(255, 215, 106, 0.22));
}

.orbit-lines {
  position: absolute;
  inset: 7% 0 0 0;
}

.orbit {
  position: absolute;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(120, 213, 255, 0.26);
}

.orbit-a {
  top: 10%;
  right: 8%;
  width: 16rem;
  height: 16rem;
}

.orbit-b {
  top: 2%;
  right: 16%;
  width: 23rem;
  height: 23rem;
  border-color: rgba(255, 215, 106, 0.12);
}

.orbit-c {
  top: 18%;
  right: 24%;
  width: 10rem;
  height: 10rem;
}

.observatory {
  position: absolute;
  right: 11%;
  bottom: 14%;
  width: clamp(16rem, 32vw, 26rem);
  height: clamp(10rem, 18vw, 15rem);
}

.observatory-base,
.observatory-dome,
.observatory-wing {
  position: absolute;
  background: linear-gradient(180deg, rgba(15, 20, 40, 0.92), rgba(2, 4, 12, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.observatory-base {
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 26%;
  border-radius: 1.2rem 1.2rem 0.8rem 0.8rem;
}

.observatory-dome {
  left: 32%;
  right: 32%;
  bottom: 22%;
  height: 44%;
  border-radius: 999px 999px 0.8rem 0.8rem;
}

.observatory-dome::before {
  content: "";
  position: absolute;
  inset: 18% 44% 0 44%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.observatory-wing {
  bottom: 6%;
  width: 28%;
  height: 18%;
  border-radius: 999px 999px 0.6rem 0.6rem;
}

.wing-left {
  left: 6%;
}

.wing-right {
  right: 6%;
}

.blue-french-horn {
  position: absolute;
  left: 8%;
  bottom: 19%;
  width: clamp(7rem, 17vw, 11rem);
  opacity: 0.9;
  filter:
    drop-shadow(0 0 14px rgba(120, 213, 255, 0.18))
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
  animation: hornFloat 10s ease-in-out infinite;
}

.hero h1 {
  display: grid;
  gap: 0.32rem;
  margin-top: 1rem;
  max-width: 28rem;
  font-size: clamp(2.4rem, 4vw, 3.95rem);
  line-height: 0.98;
  text-shadow:
    0 0 18px rgba(255, 215, 106, 0.2),
    0 0 36px rgba(242, 107, 134, 0.1);
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-route {
  margin: 1.15rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 241, 231, 0.82);
}

.route-divider {
  width: 2.7rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 184, 91, 0.2), rgba(120, 213, 255, 0.7));
}

.hero-personal,
.hero-lead,
.scene-note,
.focus-card p,
.artifact-detail p,
.storyboard-card p,
.finale-text,
.music-note,
.music-disclaimer,
.letter-card p {
  color: var(--muted);
  line-height: 1.9;
}

.hero-personal {
  margin: 1.15rem 0 0;
  max-width: 25rem;
  font-size: 0.95rem;
}

.hero-lead {
  margin: 0.95rem 0 0;
  max-width: 27rem;
  font-size: 0.98rem;
}

.hero-still {
  position: absolute;
  inset: -34% -28% -26% -42%;
  z-index: 0;
  width: auto;
  height: auto;
  max-width: none;
  margin: 0;
  overflow: visible;
  pointer-events: none;
  border: 0;
  background: none;
  box-shadow: none;
  -webkit-mask-image: radial-gradient(192% 134% at 19% 52%, #000 0 28%, rgba(0, 0, 0, 0.95) 48%, rgba(0, 0, 0, 0.66) 66%, rgba(0, 0, 0, 0.24) 82%, transparent 98%);
  mask-image: radial-gradient(192% 134% at 19% 52%, #000 0 28%, rgba(0, 0, 0, 0.95) 48%, rgba(0, 0, 0, 0.66) 66%, rgba(0, 0, 0, 0.24) 82%, transparent 98%);
}

.hero-still::before {
  content: "";
  position: absolute;
  inset: 14% -6% 10% -10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 46%, rgba(255, 212, 126, 0.2), transparent 32%),
    radial-gradient(circle at 50% 36%, rgba(120, 213, 255, 0.12), transparent 34%),
    radial-gradient(circle at 30% 62%, rgba(255, 255, 255, 0.12), transparent 38%);
  filter: blur(56px);
  opacity: 0.9;
}

.hero-still img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 22% 54%;
  border-radius: 0;
  border: 0;
  opacity: 0.2;
  filter: grayscale(0.04) sepia(0.1) saturate(0.54) contrast(1) brightness(0.54) blur(0.52px);
  mix-blend-mode: screen;
  transform: scale(1.28);
  -webkit-mask-image: radial-gradient(150% 120% at 22% 53%, #000 0 28%, rgba(0, 0, 0, 0.94) 48%, rgba(0, 0, 0, 0.6) 68%, rgba(0, 0, 0, 0.18) 84%, transparent 98%);
  mask-image: radial-gradient(150% 120% at 22% 53%, #000 0 28%, rgba(0, 0, 0, 0.94) 48%, rgba(0, 0, 0, 0.6) 68%, rgba(0, 0, 0, 0.18) 84%, transparent 98%);
}

.hero-still::after {
  content: "";
  position: absolute;
  inset: -12% -20% -14% -24%;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 19, 0.96) 0%, rgba(6, 8, 19, 0.66) 10%, rgba(6, 8, 19, 0.3) 24%, rgba(6, 8, 19, 0.16) 40%, rgba(6, 8, 19, 0.34) 58%, rgba(6, 8, 19, 0.72) 78%, rgba(6, 8, 19, 0.97) 100%),
    linear-gradient(180deg, rgba(6, 8, 19, 0.52), rgba(6, 8, 19, 0.1) 20%, rgba(6, 8, 19, 0.14) 72%, rgba(6, 8, 19, 0.86) 100%),
    radial-gradient(circle at 88% 14%, rgba(6, 8, 19, 0.9), transparent 24%),
    radial-gradient(circle at 94% 56%, rgba(6, 8, 19, 0.92), rgba(6, 8, 19, 0.72) 16%, transparent 40%);
}

.hero-still figcaption {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-actions-main {
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 1.65rem;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11.5rem;
  padding: 0.96rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: var(--display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-btn {
  background:
    linear-gradient(135deg, rgba(242, 107, 134, 0.18), rgba(255, 184, 91, 0.22) 42%, rgba(120, 213, 255, 0.14));
  box-shadow:
    0 18px 35px rgba(242, 107, 134, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.primary-btn:focus-visible,
.ghost-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 106, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  outline: none;
}

.hero-badge {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(248, 241, 231, 0.72);
}

.pulse-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 215, 106, 0.9);
  animation: pulse 1.8s ease-in-out infinite;
}

main {
  position: relative;
  z-index: 2;
}

.booth-panel,
.clues-panel,
.storyboard-panel,
.finale-panel {
  max-width: 92rem;
  margin: 0 auto;
}

.scene-meta {
  position: relative;
  z-index: 1;
  max-width: 39rem;
  margin: 0 auto;
  text-align: center;
}

.scene-meta h2,
.finale-copy h2,
.letter-card h2 {
  margin-top: 0.9rem;
  font-size: clamp(2.05rem, 4.8vw, 4rem);
  line-height: 0.98;
}

.scene-note {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: 0.98rem;
}

.booth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(18rem, 24.5rem) minmax(0, 1fr);
  gap: 1.15rem;
  margin-top: 2.3rem;
}

.focus-card,
.artifact-detail,
.moon-console {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(135deg, rgba(255, 184, 91, 0.08), transparent 42%),
    rgba(8, 11, 24, 0.86);
  box-shadow: var(--shadow);
}

.focus-card {
  padding: 1.35rem;
  min-height: 22.25rem;
}

.focus-photo {
  margin: -0.1rem -0.1rem 1.15rem;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 15, 0.56);
}

.focus-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.92);
}

.focus-photo figcaption {
  padding: 0.72rem 0.82rem 0.78rem;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 241, 231, 0.7);
}

.focus-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 55%, rgba(255, 255, 255, 0.06) 60%, transparent 66%);
  transform: translateX(-90%);
  animation: sweep 7s ease-in-out infinite;
}

.focus-card h3,
.artifact-detail h3 {
  margin-top: 0.8rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 0.98;
}

.focus-note {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 241, 231, 0.85);
  line-height: 1.8;
}

.realization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.realization-card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 1.12rem 1.02rem 1.05rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%),
    rgba(8, 11, 24, 0.76);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.realization-card.has-photo {
  padding: 1rem;
}

.realization-visual {
  position: relative;
  min-height: 7.8rem;
  margin: -0.08rem -0.08rem 0.95rem;
  overflow: hidden;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 15, 0.66);
}

.realization-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.88);
}

.realization-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 19, 0.08), rgba(5, 8, 19, 0.18) 46%, rgba(5, 8, 19, 0.62)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.realization-copy {
  display: grid;
  align-content: start;
}

.realization-copy .card-tag {
  margin: 0;
}

.realization-card h3 {
  margin: 0.7rem 0;
  font-family: var(--display);
  font-size: 1.28rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.realization-card p {
  margin: 0;
  line-height: 1.72;
  color: var(--muted);
}

.realization-card.tone-warm {
  background:
    linear-gradient(135deg, rgba(255, 184, 91, 0.14), transparent 45%),
    rgba(10, 12, 28, 0.78);
}

.realization-card.tone-cool {
  background:
    linear-gradient(135deg, rgba(120, 213, 255, 0.13), transparent 45%),
    rgba(10, 12, 28, 0.78);
}

.realization-card.tone-gold {
  background:
    linear-gradient(135deg, rgba(255, 215, 106, 0.14), rgba(242, 107, 134, 0.08) 60%, transparent 90%),
    rgba(10, 12, 28, 0.8);
}

.clues-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 26rem);
  gap: 1.15rem;
  margin-top: 2.35rem;
  align-items: stretch;
}

.artifact-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.artifact-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(14.5rem, 1fr) auto;
  align-content: start;
  gap: 0.72rem;
  min-height: 19.15rem;
  padding: 0.92rem 0.92rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.6rem;
  text-align: left;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(135deg, rgba(255, 184, 91, 0.06), transparent 42%),
    rgba(8, 11, 24, 0.78);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.artifact-source {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 1;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 20, 0.6);
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 241, 231, 0.86);
}

.artifact-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.32));
}

.artifact-card:hover,
.artifact-card:focus-visible,
.artifact-card.active {
  transform: translateY(-3px);
  border-color: rgba(255, 215, 106, 0.34);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(255, 184, 91, 0.08);
  outline: none;
}

.artifact-card.active {
  background:
    linear-gradient(135deg, rgba(255, 184, 91, 0.1), transparent 42%),
    linear-gradient(225deg, rgba(120, 213, 255, 0.07), transparent 50%),
    rgba(9, 12, 28, 0.84);
}

.artifact-illustration {
  position: relative;
  z-index: 1;
  height: 14.6rem;
  padding: 0;
  display: grid;
  place-items: stretch;
  border-radius: 1.35rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(8, 11, 24, 0));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 -2.8rem 3.6rem rgba(0, 0, 0, 0.14);
}

.artifact-illustration :is(svg, img) {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.artifact-illustration.has-photo {
  background: rgba(5, 8, 19, 0.72);
}

.artifact-illustration .artifact-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  filter: saturate(0.82) contrast(1.04) brightness(0.84);
}

.artifact-photo-vignette,
.artifact-photo-glow,
.artifact-memory-chip {
  position: absolute;
  z-index: 1;
}

.artifact-photo-vignette {
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(6, 9, 20, 0.06), rgba(6, 9, 20, 0.2) 48%, rgba(6, 9, 20, 0.72)),
    linear-gradient(90deg, rgba(6, 9, 20, 0.4), transparent 18%, transparent 84%, rgba(6, 9, 20, 0.34));
}

.artifact-photo-glow {
  right: 9%;
  bottom: 3%;
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 215, 106, 0.1) 46%, transparent 72%);
  filter: blur(6px);
  opacity: 0.9;
}

.artifact-memory-chip {
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 19, 0.54);
  backdrop-filter: blur(10px);
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 241, 231, 0.86);
}

.artifact-card[data-motif="umbrella"] {
  color: #ffe08c;
}

.artifact-card[data-motif="umbrella"] .artifact-illustration {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 252, 222, 0.16), transparent 46%),
    rgba(255, 215, 106, 0.08);
}

.artifact-card[data-motif="horn"] {
  color: #7bd9ff;
}

.artifact-card[data-motif="horn"] .artifact-illustration {
  background:
    radial-gradient(circle at 32% 28%, rgba(219, 244, 255, 0.22), transparent 46%),
    rgba(120, 213, 255, 0.08);
}

.artifact-card[data-motif="pub"] {
  color: #ffb88f;
}

.artifact-card[data-motif="pub"] .artifact-illustration {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 237, 225, 0.2), transparent 46%),
    rgba(255, 184, 143, 0.08);
}

.artifact-card[data-motif="observatory"] {
  color: #a6b9ff;
}

.artifact-card[data-motif="observatory"] .artifact-illustration {
  background:
    radial-gradient(circle at 32% 28%, rgba(244, 234, 255, 0.18), transparent 46%),
    rgba(166, 185, 255, 0.08);
}

.artifact-copy {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  margin-top: 0;
  padding: 0 0.12rem 0.08rem;
}

.artifact-copy h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artifact-copy p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(248, 241, 231, 0.72);
  line-height: 1.56;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.artifact-detail {
  padding: 1.05rem;
  display: grid;
  align-content: start;
  gap: 0.78rem;
}

.artifact-detail-media {
  position: relative;
  margin: -0.1rem -0.1rem 0.05rem;
  min-height: 12.2rem;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 15, 0.56);
}

.artifact-detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(5, 8, 19, 0.04), rgba(5, 8, 19, 0.24) 56%, rgba(5, 8, 19, 0.74)),
    linear-gradient(90deg, rgba(5, 8, 19, 0.26), transparent 18%, transparent 84%, rgba(5, 8, 19, 0.26));
}

.artifact-detail-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04) brightness(0.84);
}

.artifact-detail-media figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
  padding: 0.4rem 0.64rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 24, 0.56);
  backdrop-filter: blur(10px);
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 241, 231, 0.86);
}

.artifact-detail-note {
  margin: 0;
  padding-top: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 241, 231, 0.84);
  line-height: 1.72;
}

.star-hint {
  position: relative;
  z-index: 1;
  margin: 1.25rem auto 0;
  max-width: 38rem;
  text-align: center;
  color: rgba(248, 241, 231, 0.66);
  letter-spacing: 0.04em;
}

.storyboard-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(19rem, 22rem);
  gap: 1rem;
  align-items: stretch;
  margin-top: 2.3rem;
}

.storyboard-display,
.storyboard-sidebar {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.storyboard-display {
  display: flex;
  flex-direction: column;
  min-height: 17.9rem;
  padding: 0.92rem;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 184, 91, 0.14), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(120, 213, 255, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    rgba(8, 11, 24, 0.9);
}

.storyboard-display::before,
.storyboard-display::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  height: 0.72rem;
  opacity: 0.2;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.18) 0 0.85rem,
      transparent 0.85rem 1.45rem
    );
}

.storyboard-display::before {
  top: 0.8rem;
}

.storyboard-display::after {
  bottom: 0.8rem;
}

.storyboard-glimmer {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
}

.storyboard-glimmer-a {
  left: 4%;
  bottom: 12%;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(255, 184, 91, 0.18), transparent 70%);
}

.storyboard-glimmer-b {
  right: 6%;
  top: 12%;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(120, 213, 255, 0.18), transparent 70%);
}

.storyboard-strip {
  --storyboard-duration: 5200ms;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.storyboard-card {
  position: absolute;
  inset: 0;
  padding: 1.05rem;
  border-radius: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(135deg, rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.14), transparent 44%),
    rgba(5, 8, 19, 0.88);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.08);
  opacity: 0;
  transform: translate3d(22%, 0, 0) scale(0.9);
  filter: saturate(0.82);
  pointer-events: none;
  transition:
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms ease,
    filter 420ms ease;
}

.storyboard-card.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: saturate(1);
  pointer-events: auto;
  z-index: 3;
}

.storyboard-card.next {
  opacity: 0.56;
  transform: translate3d(16%, 0, 0) scale(0.94);
  z-index: 2;
}

.storyboard-card.prev {
  opacity: 0.36;
  transform: translate3d(-14%, 0, 0) scale(0.88);
  z-index: 1;
}

.storyboard-card.hidden {
  opacity: 0;
  transform: translate3d(10%, 0, 0) scale(0.84);
  z-index: 0;
}

.storyboard-card-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
  height: 100%;
}

.storyboard-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.storyboard-shot,
.storyboard-route-mini,
.storyboard-active-shot,
.storyboard-step-shot {
  margin: 0;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.storyboard-shot,
.storyboard-active-shot {
  color: rgba(248, 241, 231, 0.7);
}

.storyboard-route-mini {
  color: rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.78);
}

.storyboard-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 0.82rem;
  align-items: stretch;
  min-height: 0;
}

.storyboard-visual,
.storyboard-copy {
  position: relative;
  overflow: hidden;
  border-radius: 1.3rem;
}

.storyboard-visual {
  min-height: 15.9rem;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.14), transparent 22%),
    radial-gradient(circle at 30% 78%, rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.26), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    rgba(9, 13, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.storyboard-visual.has-photo {
  background: rgba(4, 6, 15, 0.8);
}

.storyboard-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storyboard-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 19, 0.08), rgba(5, 8, 19, 0.26) 54%, rgba(5, 8, 19, 0.56)),
    linear-gradient(135deg, rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.16), transparent 48%);
}

.storyboard-visual.has-photo::after {
  display: none;
}

.storyboard-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3.8rem 3.8rem;
  opacity: 0.16;
}

.storyboard-visual::after {
  content: "";
  position: absolute;
  inset: 18% 14% auto auto;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.48) 58%, transparent 70%);
  filter: blur(0.2px);
}

.storyboard-signal,
.storyboard-cityline,
.storyboard-beacon,
.storyboard-constellation {
  position: absolute;
}

.storyboard-constellation {
  inset: 12% 14% auto 16%;
  height: 30%;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100% 100% 0 0;
  opacity: 0.55;
}

.storyboard-signal {
  border-radius: 50%;
  border: 1px solid rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.32);
  opacity: 0.42;
}

.storyboard-signal.signal-a {
  right: 1.8rem;
  top: 2.2rem;
  width: 6rem;
  height: 6rem;
}

.storyboard-signal.signal-b {
  right: 3rem;
  top: 3.35rem;
  width: 3.6rem;
  height: 3.6rem;
}

.storyboard-cityline {
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.4rem;
  height: 5.2rem;
  border-radius: 1rem 1rem 0.9rem 0.9rem;
  background:
    linear-gradient(90deg, rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.08) 0 15%, transparent 15% 19%, rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.12) 19% 29%, transparent 29% 36%, rgba(255, 255, 255, 0.08) 36% 42%, transparent 42% 50%, rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.1) 50% 64%, transparent 64% 72%, rgba(255, 255, 255, 0.06) 72% 79%, transparent 79% 87%, rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.12) 87% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(1, 3, 10, 0.9));
}

.storyboard-beacon {
  left: 2.4rem;
  bottom: 5.7rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.92);
  box-shadow:
    0 0 0 0.55rem rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.08),
    0 0 16px rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.46);
}

.storyboard-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1rem 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    rgba(7, 10, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.storyboard-kicker {
  margin: 0;
  color: rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.82);
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.storyboard-card h3 {
  margin: 0.9rem 0 0.8rem;
  font-size: clamp(1.55rem, 3.1vw, 2.35rem);
  line-height: 0.98;
}

.storyboard-card p {
  margin: 0;
}

.storyboard-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem;
  background:
    radial-gradient(circle at 86% 16%, rgba(120, 213, 255, 0.12), transparent 22%),
    radial-gradient(circle at 18% 78%, rgba(255, 184, 91, 0.1), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 20%),
    rgba(8, 11, 24, 0.88);
}

.storyboard-progress {
  display: grid;
  gap: 0.72rem;
}

.storyboard-step {
  appearance: none;
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem 0.84rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.storyboard-step:hover,
.storyboard-step:focus-visible,
.storyboard-step.active {
  transform: translateY(-2px);
  border-color: rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.34);
  background:
    linear-gradient(135deg, rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.14), transparent 55%),
    rgba(255, 255, 255, 0.04);
  outline: none;
}

.storyboard-step-copy {
  display: grid;
  gap: 0.26rem;
}

.storyboard-step-shot {
  color: rgba(248, 241, 231, 0.58);
}

.storyboard-step-title {
  color: rgba(248, 241, 231, 0.92);
  font-size: 0.92rem;
  line-height: 1.38;
}

.storyboard-step-bar {
  position: relative;
  overflow: hidden;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.storyboard-step-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(var(--storyboard-accent-rgb, 255, 215, 106), 0.86), rgba(255, 255, 255, 0.92));
}

.storyboard-step.active .storyboard-step-fill {
  animation: storyboardLoad var(--storyboard-duration) linear forwards;
}

.storyboard-active-copy {
  align-self: end;
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 16%),
    rgba(255, 255, 255, 0.03);
}

.storyboard-active-copy h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1;
}

.storyboard-active-copy p:last-child {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.finale-panel {
  padding-bottom: 5.8rem;
}

.finale-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(17rem, 25rem) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.finale-copy {
  align-self: center;
  text-align: left;
  max-width: 24rem;
  margin-inline: auto;
}

.finale-copy h2 {
  font-size: clamp(2.15rem, 4.4vw, 3.8rem);
}

.finale-copy .hero-actions {
  justify-content: flex-start;
}

.finale-text {
  margin-top: 1rem;
  font-size: 0.98rem;
}

.moon-console {
  display: grid;
  grid-template-columns: minmax(14rem, 15.5rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 215, 106, 0.15), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(120, 213, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    rgba(8, 11, 24, 0.9);
}

.moon-console-stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-content: stretch;
  justify-items: stretch;
  gap: 0.95rem;
  min-height: 27.2rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    radial-gradient(circle at 54% 48%, rgba(255, 215, 106, 0.08), transparent 20%),
    rgba(4, 6, 15, 0.82);
}

.moon-galaxy {
  width: min(26rem, 100%);
  min-height: 17.2rem;
  justify-self: end;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 52% 48%, rgba(255, 215, 106, 0.11), transparent 18%),
    radial-gradient(circle at 16% 82%, rgba(120, 213, 255, 0.09), transparent 18%),
    radial-gradient(circle at 84% 18%, rgba(242, 107, 134, 0.06), transparent 16%),
    rgba(5, 8, 19, 0.84);
}

.moon-galaxy .sun-aura {
  width: 9.6rem;
  height: 9.6rem;
  filter: blur(20px);
}

.moon-galaxy .sun-ring-one {
  width: 7.3rem;
  height: 7.3rem;
}

.moon-galaxy .sun-ring-two {
  width: 10.8rem;
  height: 10.8rem;
}

.moon-galaxy .sun-core {
  width: 5.15rem;
  height: 5.15rem;
  box-shadow:
    0 0 28px rgba(255, 215, 106, 0.32),
    0 0 54px rgba(242, 107, 134, 0.1);
}

.moon-orbit-track {
  opacity: 0.64;
}

.moon-planet-field {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.moon-orbit-node {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--moon-hit-size, 1.8rem) + 1.6rem);
  height: calc(var(--moon-hit-size, 1.8rem) + 1.6rem);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.moon-planet-name {
  position: absolute;
  left: 50%;
  top: calc(50% + (var(--moon-hit-size, 1.8rem) * 0.5) + 0.58rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 0.26rem 0.58rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 72%),
    rgba(7, 9, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  font-family: var(--display);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(248, 241, 231, 0.88);
  transform: translate(-50%, 0.2rem) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.moon-planet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--moon-planet-size, 1.8rem);
  height: var(--moon-planet-size, 1.8rem);
  transform: translate(-50%, -50%) scale(var(--moon-planet-depth-scale, 1));
  opacity: var(--moon-planet-depth-opacity, 1);
  pointer-events: none;
}

.moon-orbit-node.active .moon-planet-surface,
.moon-orbit-node:hover .moon-planet-surface,
.moon-orbit-node:focus-visible .moon-planet-surface {
  border-color: rgba(255, 240, 197, 0.84);
  box-shadow:
    inset 0.3rem 0.34rem 0.76rem rgba(255, 255, 255, 0.24),
    inset -0.74rem -0.88rem 1.28rem rgba(5, 8, 18, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 0.18rem rgba(255, 215, 106, 0.12),
    0 10px 18px rgba(0, 0, 0, 0.32);
}

.moon-orbit-node.active .moon-planet-name,
.moon-orbit-node:hover .moon-planet-name,
.moon-orbit-node:focus-visible .moon-planet-name {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.moon-orbit-node:focus-visible {
  outline: none;
}

.moon-orbit-node[data-tone="gold"] .moon-planet-name {
  color: #ffd76a;
}

.moon-orbit-node[data-tone="violet"] .moon-planet-name {
  color: #ead2ff;
}

.moon-orbit-node[data-tone="copper"] .moon-planet-name,
.moon-orbit-node[data-tone="amber"] .moon-planet-name {
  color: #ffcf9f;
}

.moon-orbit-node[data-tone="cyan"] .moon-planet-name {
  color: #94ddff;
}

.moon-orbit-node[data-tone="pearl"] .moon-planet-name {
  color: #fff0d0;
}

.moon-orbit-node[data-tone="rose"] .moon-planet-name {
  color: #ffc7d6;
}

.moon-planet-glow,
.moon-planet-surface {
  position: absolute;
  border-radius: 50%;
}

.moon-planet-glow {
  inset: -0.55rem;
  filter: blur(14px);
  opacity: var(--moon-planet-glow-opacity, 0.45);
}

.moon-planet-surface {
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0.3rem 0.34rem 0.76rem rgba(255, 255, 255, 0.24),
    inset -0.74rem -0.88rem 1.28rem rgba(5, 8, 18, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 14px rgba(0, 0, 0, 0.28);
}

.moon-planet-surface::before,
.moon-planet-surface::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.moon-planet-surface::before {
  inset: 8% 14% 44% 16%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18) 42%, transparent 72%);
  opacity: 0.7;
  filter: blur(1px);
  mix-blend-mode: screen;
}

.moon-planet-surface::after {
  inset: -10%;
  background:
    radial-gradient(circle at 22% 22%, transparent 0 48%, rgba(255, 255, 255, 0.12) 56%, transparent 63%),
    radial-gradient(circle at 74% 78%, rgba(3, 7, 17, 0.42), transparent 54%),
    linear-gradient(132deg, rgba(255, 255, 255, 0.06), transparent 34%, rgba(4, 8, 20, 0.24) 76%);
  opacity: 0.92;
}

.moon-tone-gold {
  --moon-planet-size: 2.25rem;
}

.moon-tone-gold .moon-planet-glow {
  background: radial-gradient(circle, rgba(255, 215, 106, 0.46), transparent 72%);
}

.moon-tone-gold .moon-planet-surface {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 252, 232, 0.99), rgba(255, 236, 170, 0.98) 18%, transparent 34%),
    radial-gradient(circle at 72% 74%, rgba(140, 98, 34, 0.54), transparent 42%),
    repeating-linear-gradient(152deg, rgba(255, 232, 156, 0.24) 0 10%, rgba(198, 136, 49, 0.18) 10% 18%, rgba(255, 241, 193, 0.1) 18% 29%),
    radial-gradient(circle at 36% 30%, #fff0b7 0, #e2b057 52%, #8a6325 100%);
}

.moon-tone-violet {
  --moon-planet-size: 2.45rem;
}

.moon-tone-violet .moon-planet-glow {
  background: radial-gradient(circle, rgba(210, 168, 255, 0.38), transparent 72%);
}

.moon-tone-violet .moon-planet-surface {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 250, 255, 0.99), rgba(237, 218, 248, 0.97) 18%, transparent 34%),
    radial-gradient(circle at 72% 76%, rgba(84, 54, 122, 0.58), transparent 42%),
    repeating-linear-gradient(145deg, rgba(241, 216, 255, 0.22) 0 10%, rgba(176, 130, 204, 0.18) 10% 20%, rgba(132, 93, 171, 0.12) 20% 31%),
    radial-gradient(circle at 34% 30%, #f2e1ff 0, #af89cf 52%, #533872 100%);
}

.moon-tone-copper {
  --moon-planet-size: 1.95rem;
}

.moon-tone-copper .moon-planet-glow {
  background: radial-gradient(circle, rgba(255, 184, 143, 0.38), transparent 72%);
}

.moon-tone-copper .moon-planet-surface {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 248, 238, 0.99), rgba(239, 201, 173, 0.97) 18%, transparent 34%),
    radial-gradient(circle at 70% 76%, rgba(92, 51, 35, 0.58), transparent 42%),
    repeating-linear-gradient(138deg, rgba(181, 114, 77, 0.22) 0 12%, rgba(108, 60, 41, 0.18) 12% 20%, rgba(220, 154, 115, 0.12) 20% 31%),
    radial-gradient(circle at 36% 30%, #f5dcc8 0, #b97859 52%, #523227 100%);
}

.moon-tone-amber {
  --moon-planet-size: 1.8rem;
}

.moon-tone-amber .moon-planet-glow {
  background: radial-gradient(circle, rgba(255, 198, 96, 0.4), transparent 72%);
}

.moon-tone-amber .moon-planet-surface {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 248, 222, 0.99), rgba(255, 221, 158, 0.96) 18%, transparent 34%),
    radial-gradient(circle at 76% 78%, rgba(126, 78, 24, 0.56), transparent 40%),
    repeating-linear-gradient(158deg, rgba(255, 223, 138, 0.22) 0 12%, rgba(191, 129, 42, 0.18) 12% 20%, rgba(255, 241, 193, 0.1) 20% 32%),
    radial-gradient(circle at 34% 30%, #ffe8ae 0, #e4a853 52%, #75471c 100%);
}

.moon-tone-cyan {
  --moon-planet-size: 1.5rem;
}

.moon-tone-cyan .moon-planet-glow {
  background: radial-gradient(circle, rgba(120, 213, 255, 0.42), transparent 72%);
}

.moon-tone-cyan .moon-planet-surface {
  background:
    radial-gradient(circle at 30% 22%, rgba(248, 252, 255, 0.99), rgba(205, 235, 255, 0.97) 18%, transparent 34%),
    radial-gradient(circle at 70% 76%, rgba(31, 72, 131, 0.56), transparent 42%),
    repeating-linear-gradient(148deg, rgba(160, 228, 255, 0.24) 0 11%, rgba(85, 152, 224, 0.18) 11% 20%, rgba(184, 241, 255, 0.1) 20% 30%),
    radial-gradient(circle at 34% 28%, #d8f1ff 0, #79afd9 52%, #22528d 100%);
}

.moon-tone-pearl {
  --moon-planet-size: 1.25rem;
}

.moon-tone-pearl .moon-planet-glow {
  background: radial-gradient(circle, rgba(255, 245, 221, 0.34), transparent 72%);
}

.moon-tone-pearl .moon-planet-surface {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.99), rgba(249, 240, 226, 0.97) 18%, transparent 34%),
    radial-gradient(circle at 72% 76%, rgba(112, 101, 84, 0.4), transparent 42%),
    repeating-linear-gradient(140deg, rgba(255, 255, 255, 0.14) 0 12%, rgba(223, 214, 201, 0.12) 12% 22%, rgba(169, 159, 149, 0.08) 22% 32%),
    radial-gradient(circle at 34% 28%, #fffbf4 0, #e1d3c6 50%, #816f5f 100%);
}

.moon-tone-rose {
  --moon-planet-size: 1rem;
}

.moon-tone-rose .moon-planet-glow {
  background: radial-gradient(circle, rgba(242, 107, 134, 0.4), transparent 72%);
}

.moon-tone-rose .moon-planet-surface {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 246, 249, 0.99), rgba(255, 205, 219, 0.96) 18%, transparent 34%),
    radial-gradient(circle at 72% 76%, rgba(138, 49, 77, 0.56), transparent 42%),
    repeating-linear-gradient(146deg, rgba(255, 216, 229, 0.22) 0 11%, rgba(210, 102, 133, 0.16) 11% 20%, rgba(255, 236, 242, 0.1) 20% 30%),
    radial-gradient(circle at 34% 28%, #ffe0e9 0, #e186a1 52%, #7a3248 100%);
}

.orbit-signal {
  position: relative;
  width: min(26rem, 100%);
  justify-self: end;
  aspect-ratio: 1.14;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 215, 106, 0.08), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(120, 213, 255, 0.08), transparent 18%),
    rgba(5, 8, 19, 0.48);
}

.signal-ring,
.moon-console-core,
.console-orbit {
  position: absolute;
  border-radius: 50%;
}

.signal-ring {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.5;
}

.ring-one {
  width: 88%;
  height: 68%;
}

.ring-two {
  width: 68%;
  height: 52%;
  border-color: rgba(120, 213, 255, 0.28);
}

.ring-three {
  width: 48%;
  height: 36%;
  border-color: rgba(255, 215, 106, 0.3);
}

.moon-console-core {
  left: 50%;
  top: 50%;
  width: 5.8rem;
  height: 5.8rem;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(255, 215, 106, 0.92), rgba(242, 107, 134, 0.82));
  box-shadow:
    0 0 18px rgba(255, 215, 106, 0.34),
    0 0 34px rgba(120, 213, 255, 0.15);
}

.moon-console-core::after {
  content: "";
  position: absolute;
  left: 26%;
  top: 38%;
  width: 48%;
  height: 18%;
  border-radius: 0.2rem;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.18) 0 8%,
      transparent 8% 14%,
      rgba(255, 255, 255, 0.18) 14% 22%,
      transparent 22% 28%,
      rgba(255, 255, 255, 0.18) 28% 36%,
      transparent 36% 42%,
      rgba(255, 255, 255, 0.18) 42% 50%);
  opacity: 0.55;
  transform: rotate(22deg);
}

.console-orbit {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  animation: orbitSpin 14s linear infinite;
}

.console-orbit-one {
  width: 88%;
  height: 68%;
  animation-duration: 16s;
}

.console-orbit-two {
  width: 68%;
  height: 52%;
  animation-duration: 11s;
  animation-direction: reverse;
}

.console-orbit-three {
  width: 48%;
  height: 36%;
  animation-duration: 8s;
}

.console-body {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1rem;
  height: 1rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.console-body-amber {
  background: linear-gradient(135deg, rgba(255, 228, 126, 0.98), rgba(255, 197, 82, 0.92));
  box-shadow:
    0 0 14px rgba(255, 215, 106, 0.6),
    0 0 26px rgba(255, 184, 91, 0.24);
}

.console-body-amber::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.6rem;
  width: 0.95rem;
  height: 0.95rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 228, 126, 0.98), rgba(255, 197, 82, 0.92));
}

.console-body-cyan {
  width: 0.84rem;
  height: 0.84rem;
  background: linear-gradient(135deg, rgba(186, 236, 255, 0.98), rgba(120, 213, 255, 0.88));
  box-shadow:
    0 0 12px rgba(120, 213, 255, 0.56),
    0 0 24px rgba(76, 125, 255, 0.18);
}

.console-body-rose {
  width: 0.72rem;
  height: 0.72rem;
  background: linear-gradient(135deg, rgba(255, 223, 235, 0.98), rgba(242, 107, 134, 0.84));
  box-shadow:
    0 0 10px rgba(242, 107, 134, 0.58),
    0 0 18px rgba(242, 107, 134, 0.16);
}

.record-track {
  margin: 0;
  text-align: left;
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 241, 231, 0.74);
}

.moon-memory-card {
  display: grid;
  grid-template-columns: minmax(10.25rem, 11.4rem) minmax(0, 1fr);
  gap: 0.95rem;
  align-items: stretch;
  padding: 0.75rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(135deg, rgba(255, 215, 106, 0.08), transparent 54%),
    rgba(7, 10, 22, 0.84);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.moon-memory-frame {
  overflow: hidden;
  border-radius: 0.95rem;
  background: rgba(2, 4, 12, 0.88);
  aspect-ratio: 4 / 5;
}

.moon-memory-frame img,
.moon-memory-copy {
  transition: opacity 220ms ease, transform 220ms ease;
}

.moon-memory-card.is-switching .moon-memory-frame img,
.moon-memory-card.is-switching .moon-memory-copy {
  opacity: 0.62;
  transform: translateY(0.35rem);
}

.moon-memory-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.moon-memory-copy {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-width: 0;
}

.moon-memory-copy h4 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.12;
}

.moon-memory-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.moon-memory-note {
  color: rgba(248, 241, 231, 0.78);
  font-size: 0.9rem;
}

.moon-console-stage.playing .moon-galaxy .sun-aura {
  animation: moonAuraPulse 4.2s ease-in-out infinite;
}

.moon-console-stage.playing .moon-galaxy .sun-core {
  animation: moonCorePulse 4.8s ease-in-out infinite;
}

.moon-console-stage.playing .moon-galaxy .moon-orbit-track {
  border-color: rgba(255, 230, 173, 0.28);
}

.music-stage-copy {
  position: relative;
  z-index: 1;
  text-align: left;
}

.music-stage-copy h3 {
  margin-top: 0.8rem;
  font-size: clamp(1.95rem, 3.1vw, 2.75rem);
}

.music-note {
  margin-top: 1rem;
}

.music-disclaimer {
  margin-top: 0.95rem;
  font-size: 0.95rem;
}

.toast-message {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 8;
  max-width: min(34rem, calc(100vw - 2rem));
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 25, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  color: rgba(248, 241, 231, 0.9);
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.toast-message.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.letter-modal[hidden] {
  display: none;
}

.letter-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.letter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 10, 0.78);
  backdrop-filter: blur(12px);
}

.letter-card {
  position: relative;
  z-index: 1;
  width: min(44rem, 100%);
  max-height: calc(100dvh - 2.4rem);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border-radius: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at top, rgba(255, 215, 106, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    rgba(8, 11, 24, 0.94);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.letter-card::before {
  content: "";
  position: absolute;
  inset: auto -20% 16% -20%;
  height: 12rem;
  background: linear-gradient(90deg, transparent, rgba(120, 213, 255, 0.08), transparent);
  transform: rotate(-8deg);
}

.letter-card h2 {
  margin-top: 0.8rem;
}

.letter-card p {
  margin-top: 1rem;
}

.close-letter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.22rem;
  cursor: pointer;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes leakPulse {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.16;
  }
  50% {
    transform: scale(1.08) translate3d(0, 1.5rem, 0);
    opacity: 0.24;
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-100%);
  }
  45%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.45);
    opacity: 0.4;
  }
}

@keyframes neonBlink {
  0%,
  94%,
  100% {
    opacity: 1;
  }
  95%,
  98% {
    opacity: 0.88;
  }
}

@keyframes umbrellaFloat {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(3deg) translateY(-0.5rem);
  }
}

@keyframes hornFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-0.45rem) rotate(1deg);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.42;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

@keyframes moonAuraPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.86;
  }
}

@keyframes moonCorePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 28px rgba(255, 215, 106, 0.32),
      0 0 54px rgba(242, 107, 134, 0.1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow:
      0 0 36px rgba(255, 215, 106, 0.42),
      0 0 66px rgba(242, 107, 134, 0.18);
  }
}

@keyframes orbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(var(--orbit-start, 0deg));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--orbit-start, 0deg) + 1turn));
  }
}

@keyframes planetCounterSpin {
  from {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--orbit-start, 0deg)));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc((-1 * var(--orbit-start, 0deg)) - 1turn));
  }
}

@keyframes planetDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 0.7rem, 0);
  }
}

@keyframes planetHover {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-0.55rem);
  }
}

@keyframes storyboardLoad {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1100px) {
  .hero-stage {
    min-height: calc(100vh - 1.6rem);
    padding: 4rem 1.1rem 5.6rem;
  }

  .hero-focus-ring {
    inset: 13% 8% 13%;
  }

  .planet-cluster-alpha {
    right: -2%;
  }

  .planet-cluster-beta {
    left: 58%;
    top: 10%;
  }

  .hero-main-layout,
  .hero-foot-layout {
    grid-template-columns: 1fr;
    width: min(100%, 54rem);
  }

  .hero-main-layout {
    min-height: auto;
    padding-top: 2.7rem;
  }

  .hero-copy-top,
  .memory-dossier {
    max-width: none;
    width: 100%;
  }

  .hero-copy-top {
    min-height: 0;
    display: block;
    align-self: start;
  }

  .hero-still {
    inset: -22% -8% -20% -22%;
  }

  .hero-galaxy-column {
    gap: 0.85rem;
  }

  .hero-foot-layout {
    margin-top: 0.3rem;
    padding-bottom: 4.8rem;
  }

  .star-system {
    min-height: 33rem;
  }

  .booth-layout,
  .clues-layout,
  .storyboard-showcase,
  .finale-layout,
  .moon-console {
    grid-template-columns: 1fr;
  }

  .storyboard-display {
    min-height: 29rem;
  }

  .moon-memory-card {
    grid-template-columns: 1fr;
  }

  .moon-memory-frame {
    aspect-ratio: 16 / 10;
  }

  .storyboard-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    align-items: start;
  }

  .storyboard-active-copy {
    grid-column: span 2;
  }

  .realization-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .panel {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .panel-frame {
    inset: 0.7rem;
    border-radius: 1.6rem;
  }

  .entry-card,
  .hero-stage,
  .focus-card,
  .artifact-card,
  .storyboard-display,
  .storyboard-sidebar,
  .artifact-detail,
  .storyboard-card,
  .moon-console,
  .letter-card {
    border-radius: 1.45rem;
  }

  .letter-modal {
    place-items: start center;
    padding:
      max(0.85rem, env(safe-area-inset-top))
      0.95rem
      max(1rem, env(safe-area-inset-bottom));
  }

  .letter-card {
    width: min(100%, 42rem);
    max-height: calc(100dvh - max(1.7rem, env(safe-area-inset-top)) - max(1.9rem, env(safe-area-inset-bottom)));
    margin: auto 0;
  }

  .hero-route {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .entry-card {
    padding: 2rem 1.3rem 1.7rem;
  }

  .entry-lock {
    gap: 0.72rem;
  }

  .entry-password {
    padding: 0.92rem 1rem;
    font-size: 1.06rem;
  }

  .hero-stage {
    padding-top: 2.2rem;
    padding-bottom: 4rem;
  }

  .hero-grid {
    opacity: 0.08;
  }

  .hero-focus-ring {
    inset: 14% 4% 14%;
  }

  .hero-universe {
    inset: -6% -20% 18%;
  }

  .planet-cluster-alpha {
    top: 0;
    right: -4%;
    width: 10rem;
    height: 10rem;
  }

  .planet-cluster-beta {
    left: 54%;
    top: 8%;
    width: 4.8rem;
    height: 4.8rem;
  }

  .planet-cluster-gamma {
    left: 66%;
    top: auto;
    bottom: 10%;
    width: 3.9rem;
    height: 3.9rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero-main-layout {
    gap: 1.15rem;
  }

  .hero-foot-layout {
    padding-bottom: 4rem;
  }

  .hero-still {
    inset: -18% -10% -18% -18%;
  }

  .hero-copy-top {
    padding: 1.3rem 1.15rem 2.7rem;
    border-radius: 1.65rem;
  }

  .memory-dossier,
  .star-system-shell {
    border-radius: 1.45rem;
  }

  .memory-dossier {
    padding: 1.15rem;
  }

  .memory-dossier h3 {
    font-size: clamp(1.5rem, 7vw, 2.05rem);
  }

  .memory-dossier .hero-actions {
    align-items: stretch;
  }

  .star-system-shell {
    padding: 0.8rem 0.8rem 1rem;
  }

  .star-system {
    min-height: 25.5rem;
  }

  .sun-aura {
    width: 8rem;
    height: 8rem;
  }

  .sun-ring-one {
    width: 5.5rem;
    height: 5.5rem;
  }

  .sun-ring-two {
    width: 8rem;
    height: 8rem;
  }

  .sun-core {
    width: 4.2rem;
    height: 4.2rem;
  }

  .sun-copy {
    width: 9rem;
  }

  .sun-copy h2 {
    font-size: 1.3rem;
  }

  .memory-planet {
    width: var(--planet-size, 4.2rem);
    height: var(--planet-size, 4.2rem);
  }

  .memory-planet-name {
    top: calc(100% + 0.45rem);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    padding: 0.32rem 0.46rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions-main {
    margin-top: 1.5rem;
    padding-top: 0;
  }

  .primary-btn,
  .ghost-btn {
    width: min(100%, 20rem);
  }

  .artifact-stage,
  .realization-grid {
    grid-template-columns: 1fr;
  }

  .artifact-detail-media {
    min-height: 11.5rem;
  }

  .storyboard-showcase {
    gap: 0.9rem;
  }

  .storyboard-display {
    min-height: 28rem;
    padding: 0.9rem;
  }

  .storyboard-strip {
    min-height: 26rem;
  }

  .moon-console {
    padding: 1rem;
    gap: 1rem;
  }

  .moon-console-stage {
    min-height: 25rem;
    padding: 0.9rem 0.9rem 1rem;
  }

  .moon-galaxy {
    width: 100%;
    min-height: 16rem;
    justify-self: stretch;
  }

  .moon-galaxy .sun-aura {
    width: 7.2rem;
    height: 7.2rem;
  }

  .moon-galaxy .sun-ring-one {
    width: 5.8rem;
    height: 5.8rem;
  }

  .moon-galaxy .sun-ring-two {
    width: 8.7rem;
    height: 8.7rem;
  }

  .moon-galaxy .sun-core {
    width: 4.1rem;
    height: 4.1rem;
  }

  .storyboard-card {
    padding: 1rem;
  }

  .storyboard-card-body {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .storyboard-visual {
    min-height: 10.5rem;
  }

  .moon-memory-card {
    grid-template-columns: 1fr;
  }

  .moon-memory-frame img {
    min-height: 11rem;
  }

  .moon-planet-name {
    top: calc(50% + (var(--moon-hit-size, 1.8rem) * 0.5) + 0.42rem);
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    padding: 0.24rem 0.46rem;
  }

  .storyboard-step {
    padding: 0.82rem 0.85rem;
  }

  .storyboard-sidebar {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 1rem;
  }

  .storyboard-active-copy {
    grid-column: auto;
  }

  .neon-sign {
    top: 9%;
    left: 5%;
    right: 38%;
    padding: 0.8rem 0.9rem;
  }

  .neon-main {
    font-size: 1.95rem;
  }

  .hero .eyebrow {
    display: none;
  }

  .booth-silhouette {
    left: 3%;
    right: 44%;
    bottom: 8%;
    height: 26%;
  }

  .observatory {
    right: -1rem;
    bottom: 10%;
    width: 12rem;
    height: 8rem;
  }

  .blue-french-horn {
    left: auto;
    right: 5%;
    bottom: 26%;
    width: 6rem;
  }

  .yellow-umbrella {
    left: 5%;
    right: auto;
    bottom: 20%;
    width: 7rem;
  }

  .moon-disc {
    top: 10%;
    right: -1%;
    width: 8rem;
  }

  .orbit-a {
    top: 9%;
    right: -8%;
    width: 10rem;
    height: 10rem;
  }

  .orbit-b {
    top: 2%;
    right: -16%;
    width: 14rem;
    height: 14rem;
  }

  .orbit-c {
    top: 18%;
    right: 8%;
    width: 7rem;
    height: 7rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
