/* ==============================================================================
   NASA Worm Logo Typography & Font Face
   ============================================================================== */
@font-face {
  font-family: 'Nasa';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/Nasa.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/56439/Nasa.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Nasalization';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/nasalization.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/6224/nasalization%20rg.woff') format('woff');
  font-display: swap;
}

/* ==============================================================================
   NASA Worm Logo Landing Header
   ============================================================================== */
.landing-nasa-header {
  position: fixed;
  top: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 92%;
  max-width: 1000px;
}

body[data-mission-state="launching"] .landing-nasa-header,
body[data-mission-state="landed"] .landing-nasa-header {
  opacity: 0;
  transform: translate(-50%, -24px);
  pointer-events: none;
}

body[data-mission-state="overview"] .landing-nasa-header {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nasa-worm-heading {
  font-family: 'Nasa', 'Nasalization', sans-serif;
  color: #06d6a0; /* Coordinating Celestial Mint Green */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(6, 214, 160, 0.65), 0 0 50px rgba(0, 245, 212, 0.35), 0 2px 12px rgba(0, 0, 0, 0.9);
  margin: 0;
  padding: 0;
  line-height: 1.1;
}

.nasa-worm-main {
  font-size: 3.25rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #06d6a0;
  filter: drop-shadow(0 0 20px rgba(6, 214, 160, 0.7));
}

.nasa-worm-sub {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #06d6a0;
  opacity: 0.95;
  filter: drop-shadow(0 0 14px rgba(6, 214, 160, 0.55));
}

@media (min-width: 1024px) {
  .landing-nasa-header {
    top: 1.75rem;
  }
  .nasa-worm-main {
    font-size: 3.5rem;
    letter-spacing: 0.14em;
  }
  .nasa-worm-sub {
    font-size: 1.35rem;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 767px) {
  .landing-nasa-header {
    top: 1.25rem;
  }
  .nasa-worm-heading {
    gap: 0.25rem;
  }
  .nasa-worm-main {
    font-size: 2.35rem;
    letter-spacing: 0.1em;
  }
  .nasa-worm-sub {
    font-size: 0.85rem;
    letter-spacing: 0.07em;
  }
}

/* ==============================================================================
   Darcy's First Birthday - Colorful Nebula & March 31, 2026 Star Sky
   ============================================================================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #0c0926;
  overflow: hidden;
}

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

/* Fullscreen Responsive Starless Galaxy Backdrop */
.galaxy-canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #0c0926;
  background-image: url('../images/nebula-cartoon-desktop.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Mobile Screen Optimization */
@media (max-width: 768px) {
  .galaxy-canvas-container {
    background-image: url('../images/nebula-cartoon-mobile.webp');
    background-position: center center;
  }
}

/* Sun Peaking Out From Entire Left Edge ("First Trip Around The Sun") */
.giant-sun-glow {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: 55vw;
  max-width: 750px;
  background: radial-gradient(ellipse 70% 90% at 0% 50%, rgba(255, 245, 190, 0.4) 0%, rgba(255, 195, 60, 0.22) 28%, rgba(255, 130, 40, 0.12) 52%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  animation: sun-pulse 6s ease-in-out infinite alternate;
}

.giant-left-sun-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: 140px;
  pointer-events: none;
  z-index: 15;
  overflow: visible;
}

@media (min-width: 640px) {
  .giant-left-sun-container {
    width: 220px;
  }
}

@media (min-width: 1024px) {
  .giant-left-sun-container {
    width: 300px;
  }
}

@media (min-width: 1440px) {
  .giant-left-sun-container {
    width: 360px;
  }
}

.giant-sun-limb {
  filter: drop-shadow(0 0 30px rgba(255, 220, 110, 0.85)) drop-shadow(0 0 65px rgba(255, 150, 30, 0.6)) drop-shadow(0 0 120px rgba(255, 100, 30, 0.3));
  animation: sun-limb-breathe 6s ease-in-out infinite alternate;
}

@keyframes sun-limb-breathe {
  0% { transform: scale(1); opacity: 0.94; }
  100% { transform: scale(1.02); opacity: 1; }
}

@keyframes sun-pulse {
  0% { opacity: 0.8; transform: scaleX(0.97); }
  100% { opacity: 1; transform: scaleX(1.04); }
}

/* ==============================================================================
   Giant Moon Peaking Out From Entire Right Edge (Night Sky Illuminated)
   ============================================================================== */
.giant-moon-glow {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 55vw;
  max-width: 750px;
  background: radial-gradient(ellipse 70% 90% at 100% 50%, rgba(240, 249, 255, 0.35) 0%, rgba(186, 230, 253, 0.2) 28%, rgba(147, 197, 253, 0.1) 52%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
}

.giant-right-moon-container {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 140px;
  pointer-events: none;
  z-index: 15;
  overflow: visible;
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
}

@media (min-width: 640px) {
  .giant-right-moon-container {
    width: 220px;
  }
}

@media (min-width: 1024px) {
  .giant-right-moon-container {
    width: 300px;
  }
}

@media (min-width: 1440px) {
  .giant-right-moon-container {
    width: 360px;
  }
}

.giant-moon-limb {
  filter: drop-shadow(0 0 30px rgba(186, 230, 253, 0.85)) drop-shadow(0 0 65px rgba(147, 197, 253, 0.5)) drop-shadow(0 0 120px rgba(96, 165, 250, 0.3));
  animation: moon-limb-breathe 6s ease-in-out infinite alternate;
}

@keyframes moon-limb-breathe {
  0% { transform: scale(1); opacity: 0.94; }
  100% { transform: scale(1.02); opacity: 1; }
}

@keyframes moon-pulse {
  0% { opacity: 0.75; transform: scaleX(0.97); }
  100% { opacity: 1; transform: scaleX(1.04); }
}

/* ==============================================================================
   Landing Page Semicircle Earth Horizon (Emerging from Bottom)
   ============================================================================== */
.landing-earth-container {
  position: fixed;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: min(115vw, 560px);
  height: clamp(300px, calc(80vh - 160px), 560px);
  height: clamp(300px, calc(80dvh - 160px), 560px);
  pointer-events: none;
  z-index: 18;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
  overflow: visible;
}

@media (min-width: 640px) {
  .landing-earth-container {
    width: min(86vw, 680px);
    height: clamp(160px, 27vh, 270px);
    bottom: -20px;
  }
}

@media (min-width: 1024px) {
  .landing-earth-container {
    width: 760px;
    height: clamp(200px, 30vh, 330px);
    bottom: -25px;
  }
}

@media (min-width: 1440px) {
  .landing-earth-container {
    width: 820px;
    height: clamp(220px, 32vh, 360px);
    bottom: -30px;
  }
}

@media (orientation: landscape) and (max-height: 550px) {
  .landing-earth-container {
    height: clamp(140px, 35vh, 200px);
    width: min(80vw, 500px);
    bottom: -15px;
  }
}

.landing-earth-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Accurate March 31, 2026 Raleigh Night Sky Constellation Overlay */
.constellation-sky-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 2;
  pointer-events: none;
}

.constellation-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Gentle Twinkling Starlight Animation */
.twinkle-slow {
  animation: star-pulse 4s ease-in-out infinite alternate;
}

.twinkle-fast {
  animation: star-pulse 2.6s ease-in-out infinite alternate 1.2s;
}

.twinkle-subtle {
  animation: star-pulse 5.2s ease-in-out infinite alternate 2.4s;
}

@keyframes star-pulse {
  0% { opacity: 0.65; }
  100% { opacity: 1; }
}

/* ==============================================================================
   Whimsical Baby Astronaut Rocket Ship & Circular Porthole Window
   ============================================================================== */
.rocket-landing-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  pointer-events: none;
  overflow: hidden;
}

.rocket-flight-rig {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, var(--rocket-overview-y, 0px), 0) scale(1) rotate(0deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
}

.rocket-ship-container {
  position: relative;
  width: 15rem;
  aspect-ratio: 240 / 360;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  z-index: 25;
  will-change: transform;
  backface-visibility: hidden;
  animation: rocket-float 6s ease-in-out infinite;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.65));
}

@media (min-width: 1024px) {
  :root {
    --rocket-overview-y: clamp(2.25rem, 5.5vh, 3.5rem);
  }
}

@media (min-width: 640px) {
  .rocket-ship-container {
    width: 17.5rem;
  }
}

@media (min-width: 1024px) {
  .rocket-ship-container {
    width: min(19.5rem, calc((62vh - 40px) * 0.666));
  }
}

@media (min-width: 1280px) {
  .rocket-ship-container {
    width: min(21rem, calc((64vh - 40px) * 0.666));
  }
}

.rocket-ship-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Zero-G Floating Sway (Pure GPU 3D Translate) */
@keyframes rocket-float {
  0%, 100% {
    transform: translate3d(0, -7px, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, 7px, 0) rotate(1deg);
  }
}

/* Thruster Exhaust Plasma Pulse */
.flame-pulse-outer {
  transform-origin: 120px 278px;
  animation: flame-flicker-outer 0.8s ease-in-out infinite alternate;
}

.flame-pulse-inner {
  transform-origin: 120px 278px;
  animation: flame-flicker-inner 0.5s ease-in-out infinite alternate;
}

@keyframes flame-flicker-outer {
  0% { transform: scaleY(0.92) scaleX(0.96); opacity: 0.88; }
  100% { transform: scaleY(1.15) scaleX(1.04); opacity: 1; }
}

@keyframes flame-flicker-inner {
  0% { transform: scaleY(0.9) scaleX(0.92); opacity: 0.9; }
  100% { transform: scaleY(1.18) scaleX(1.08); opacity: 1; }
}

/* Thruster Sparks */
.spark-1 { animation: spark-drift 1.2s linear infinite; }
.spark-2 { animation: spark-drift 1.5s linear infinite 0.4s; }
.spark-3 { animation: spark-drift 1.1s linear infinite 0.8s; }

@keyframes spark-drift {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(18px) scale(0.2); opacity: 0; }
}

/* Circular Porthole Window Interior */
.rocket-porthole-portal {
  position: absolute;
  top: 49.44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 41.25%;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  overflow: hidden;
  z-index: 2;
  background: #ffb8c6;
  box-shadow: inset 0 0 14px rgba(255, 105, 180, 0.35), 0 0 15px rgba(0, 242, 254, 0.35);
}

.porthole-glass-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  overflow: hidden;
}

#hero-portal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rocket-ship-container:hover #hero-portal-image {
  transform: scale(1.06);
}

/* Cockpit Glass Glare Sheen */
.porthole-glass-glare {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 35%, transparent 45%, transparent 100%);
  pointer-events: none;
}

/* Holographic HUD Targeting Reticle */
.porthole-hud-ring {
  position: absolute;
  inset: 6px;
  border-radius: 9999px;
  border: 1px dashed rgba(0, 242, 254, 0.35);
  pointer-events: none;
  animation: hud-rot 30s linear infinite;
}

@keyframes hud-rot {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==============================================================================
   Astronaut Baby Darcy Speech Bubble (Night Sky Illuminated)
   Comes out to the Left of the Rocket Ship
   ============================================================================== */
.baby-speech-bubble {
  position: absolute;
  z-index: 50;
  background: rgba(14, 9, 36, 0.94);
  border: 1.5px solid #00f2fe;
  border-radius: 18px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobile & Small Screens (< 860px): Anchored toward the left side of the rocket */
@media (max-width: 859px) {
  .baby-speech-bubble {
    width: min(78vw, 240px);
    left: -20px;
    right: auto;
    top: 15%;
    transform: scale(0.85) translateX(-8px);
  }

  .baby-speech-tail {
    position: absolute;
    bottom: -10px;
    right: 28px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #00f2fe;
  }

  .baby-speech-tail::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -7px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid rgba(14, 9, 36, 0.95);
  }

  body.constellations-illuminated .baby-speech-bubble:not(.is-dismissed) {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateX(0);
  }
}

/* Tablet & Desktop (>= 860px): Emerges out to the Left of the Rocket Ship */
@media (min-width: 860px) {
  .baby-speech-bubble {
    width: clamp(235px, 22vw, 290px);
    right: calc(100% + 18px);
    left: auto;
    top: 24%;
    transform: scale(0.85) translateX(12px);
  }

  .baby-speech-tail {
    position: absolute;
    bottom: 22px;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #00f2fe;
    border-right: none;
  }

  .baby-speech-tail::after {
    content: '';
    position: absolute;
    top: -7px;
    right: 2px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 9px solid rgba(14, 9, 36, 0.95);
    border-right: none;
  }

  body.constellations-illuminated .baby-speech-bubble:not(.is-dismissed) {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateX(0);
  }
}

@media (min-width: 1440px) {
  .baby-speech-bubble {
    right: calc(100% + 24px);
    top: 26%;
  }
}

.baby-speech-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.baby-speech-name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd166;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.6);
}

.baby-speech-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.baby-speech-dismiss:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.baby-speech-text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  color: #f0fdf4;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

@media (min-width: 860px) {
  .baby-speech-text {
    font-size: 0.9rem;
  }
}

body[data-mission-state="launching"] .baby-speech-bubble,
body[data-mission-state="landed"] .baby-speech-bubble {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.8) !important;
}

/* ==============================================================================
   Right-Side Solar System Navigation Planets
   ============================================================================== */
.solar-system-nav {
  position: fixed;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  pointer-events: auto;
}

/* Desktop layout: Right edge vertical celestial cascade */
@media (min-width: 1024px) {
  .solar-system-nav {
    right: 2.25rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Tablet / Landscape layout */
@media (min-width: 768px) and (max-width: 1023px) {
  .solar-system-nav {
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    gap: 1rem;
  }
}

/* Mobile dock layout */
@media (max-width: 767px) {
  .solar-system-nav {
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    width: 95%;
    max-width: 420px;
    background: rgba(12, 9, 38, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 0.45rem 0.65rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.2);
  }
}

/* Individual Planet Button Item */
.planet-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 767px) {
  .planet-nav-item {
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    flex: 1;
  }
}

/* Staggered Orbital Horizontal Shifts (Desktop) */
@media (min-width: 1024px) {
  .planet-item-mars { transform: translateX(-12px); }
  .planet-item-saturn { transform: translateX(8px); }
  .planet-item-jupiter { transform: translateX(-6px); }
  .planet-item-neptune { transform: translateX(10px); }

  .planet-item-mars:hover { transform: translateX(-12px) scale(1.08); }
  .planet-item-saturn:hover { transform: translateX(8px) scale(1.08); }
  .planet-item-jupiter:hover { transform: translateX(-6px) scale(1.08); }
  .planet-item-neptune:hover { transform: translateX(10px) scale(1.08); }
}

@media (max-width: 1023px) {
  .planet-nav-item:hover {
    transform: scale(1.08);
  }
}

/* Planet Graphic Wrapper */
.planet-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.planet-graphic svg {
  display: block;
  overflow: visible;
}

@media (max-width: 767px) {
  .planet-graphic svg {
    width: 44px;
    height: 44px;
  }
}

/* Gentle Floating Oscillations */
.planet-float-1 { animation: planet-sway-1 5s ease-in-out infinite alternate; }
.planet-float-2 { animation: planet-sway-2 6.5s ease-in-out infinite alternate 0.8s; }
.planet-float-3 { animation: planet-sway-3 5.8s ease-in-out infinite alternate 1.6s; }
.planet-float-4 { animation: planet-sway-4 6.2s ease-in-out infinite alternate 2.4s; }

@keyframes planet-sway-1 {
  0% { transform: translateY(-4px) rotate(-1deg); }
  100% { transform: translateY(5px) rotate(1.5deg); }
}

@keyframes planet-sway-2 {
  0% { transform: translateY(4px) rotate(1deg); }
  100% { transform: translateY(-5px) rotate(-1.5deg); }
}

@keyframes planet-sway-3 {
  0% { transform: translateY(-5px) rotate(-1deg); }
  100% { transform: translateY(4px) rotate(1deg); }
}

@keyframes planet-sway-4 {
  0% { transform: translateY(5px) rotate(1.5deg); }
  100% { transform: translateY(-4px) rotate(-1deg); }
}

/* Planet Pill Badges */
.planet-pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.05rem;
  border-radius: 9999px;
  background: rgba(12, 9, 38, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .planet-pill-label {
    padding: 0.15rem 0.35rem;
    font-size: 0.62rem;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    letter-spacing: 0;
  }
}

/* Distinct Planet Colors & Glows */
/* Mars (RSVP) */
.planet-pill-mars {
  color: #fff;
  border: 1.5px solid rgba(255, 107, 107, 0.7);
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
}
.planet-item-mars:hover .planet-pill-mars {
  background: rgba(255, 82, 82, 0.3);
  border-color: #ff5252;
  box-shadow: 0 0 20px rgba(255, 82, 82, 0.6);
}

/* Saturn (Mission Details) */
.planet-pill-saturn {
  color: #fff;
  border: 1.5px solid rgba(254, 211, 48, 0.7);
  text-shadow: 0 0 10px rgba(254, 211, 48, 0.8);
}
.planet-item-saturn:hover .planet-pill-saturn {
  background: rgba(254, 211, 48, 0.3);
  border-color: #fed330;
  box-shadow: 0 0 20px rgba(254, 211, 48, 0.6);
}

/* Jupiter (Mission Gallery) */
.planet-pill-jupiter {
  color: #fff;
  border: 1.5px solid rgba(248, 165, 194, 0.7);
  text-shadow: 0 0 10px rgba(248, 165, 194, 0.8);
}
.planet-item-jupiter:hover .planet-pill-jupiter {
  background: rgba(248, 165, 194, 0.3);
  border-color: #f8a5c2;
  box-shadow: 0 0 20px rgba(248, 165, 194, 0.6);
}

/* Neptune (Mission Wishes) */
.planet-pill-neptune {
  color: #fff;
  border: 1.5px solid rgba(0, 242, 254, 0.7);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}
.planet-item-neptune:hover .planet-pill-neptune {
  background: rgba(0, 242, 254, 0.3);
  border-color: #00f2fe;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

/* ==============================================================================
   Mission Interactive Modals
   ============================================================================== */
.mission-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 6, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mission-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mission-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(22, 16, 56, 0.95), rgba(12, 9, 32, 0.98));
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 242, 254, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
}

.mission-modal-backdrop.is-open .mission-modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 42, 133, 0.35);
  border-color: #ff2a85;
  transform: scale(1.1);
}

/* ==============================================================================
   Cinematic Blastoff, Warp Speed & Landed Planet Views
   ============================================================================== */

/* Hyperspace Warp Speed Canvas */
.warp-speed-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body[data-mission-state="launching"] .warp-speed-canvas {
  opacity: 1;
}

/* Background, Sun, Moon & Earth Shifts During Flight */
.galaxy-canvas-container,
.giant-sun-glow,
.giant-left-sun-container,
.giant-moon-glow,
.giant-right-moon-container,
.landing-earth-container,
.constellation-sky-overlay,
.solar-system-nav {
  will-change: transform, opacity;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease;
}

body[data-mission-state="launching"] .galaxy-canvas-container {
  transform: translate3d(-36px, 0, 0) scale(1.06);
}

body[data-mission-state="launching"] .giant-left-sun-container,
body[data-mission-state="launching"] .giant-sun-glow,
body[data-mission-state="landed"] .giant-left-sun-container,
body[data-mission-state="landed"] .giant-sun-glow {
  transform: translate3d(-120%, 0, 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation-play-state: paused !important;
}

body[data-mission-state="launching"] .giant-right-moon-container,
body[data-mission-state="launching"] .giant-moon-glow,
body[data-mission-state="landed"] .giant-right-moon-container,
body[data-mission-state="landed"] .giant-moon-glow {
  transform: translate3d(120%, 0, 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation-play-state: paused !important;
}

body[data-mission-state="launching"] .landing-earth-container,
body[data-mission-state="landed"] .landing-earth-container {
  transform: translate3d(-50%, 100px, 0) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

body[data-mission-state="overview"] .landing-earth-container {
  transform: translate3d(-50%, 0, 0) scale(1);
  opacity: 1;
}

body[data-mission-state="launching"] .solar-system-nav,
body[data-mission-state="landed"] .solar-system-nav {
  transform: translate3d(140%, 0, 0);
  opacity: 0;
  pointer-events: none;
}

/* Smooth GPU Rocket Flight Trajectory (No layout reflows, no filter thrashing, no keyframe snapping) */
body[data-mission-state="launching"] .rocket-flight-rig {
  transform: translate3d(20px, -22px, 0) scale(1.06) rotate(16deg);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-mission-state="landed"] .rocket-flight-rig {
  transform: translate3d(var(--rocket-land-x, -260px), var(--rocket-land-y, -230px), 0) scale(var(--rocket-land-s, 0.44)) rotate(-16deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-mission-state="launching"] .rocket-ship-container {
  animation: rocket-launch-hum 0.14s ease-in-out infinite alternate;
}

body[data-mission-state="launching"] .flame-pulse-outer {
  transform: scaleY(2.8) scaleX(1.9) !important;
  opacity: 1 !important;
}

body[data-mission-state="launching"] .flame-pulse-inner {
  transform: scaleY(2.5) scaleX(1.6) !important;
  opacity: 1 !important;
}

@keyframes rocket-launch-hum {
  0% { transform: translate3d(-1.2px, 0.8px, 0); }
  100% { transform: translate3d(1.2px, -0.8px, 0); }
}

/* Ensure rocket stage is stacked in front of the centered planet */
body[data-mission-state="landed"] .rocket-landing-stage,
body[data-mission-state="launching"] .rocket-landing-stage {
  z-index: 35;
}

/* Rocket Landed Bobbing (gentle hover on inner container without overriding outer flight rig) */
body[data-mission-state="landed"] .rocket-ship-container {
  animation: rocket-landed-bob 4s ease-in-out infinite alternate;
  z-index: 45;
}

/* Base of rocket sitting on planet: idle thruster flame so rocket base clearly sits on planet */
body[data-mission-state="landed"] .flame-pulse-outer {
  transform: scaleY(0.45) scaleX(0.65) !important;
  opacity: 0.45 !important;
}

body[data-mission-state="landed"] .flame-pulse-inner {
  transform: scaleY(0.35) scaleX(0.5) !important;
  opacity: 0.3 !important;
}

body[data-mission-state="landed"] .flame-spark {
  opacity: 0 !important;
}

@keyframes rocket-landed-bob {
  0% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  100% { transform: translate3d(0, 6px, 0) rotate(1deg); }
}

@media (min-width: 1024px) {
  :root {
    --rocket-land-x: -260px;
    --rocket-land-y: -230px;
    --rocket-land-s: 0.44;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --rocket-land-x: -210px;
    --rocket-land-y: -220px;
    --rocket-land-s: 0.38;
  }
}

@media (max-width: 767px) {
  :root {
    --rocket-land-x: -95px;
    --rocket-land-y: -240px;
    --rocket-land-s: 0.30;
  }
}

/* ==============================================================================
   Centered Landed Planet Display Stage
   ============================================================================== */
.centered-planet-stage {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0) scale(0.76);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) {
  .centered-planet-stage {
    padding-top: calc(48px + 1.25rem);
    padding-bottom: calc(65px + 1rem);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

body[data-mission-state="landed"] .centered-planet-stage {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Top Return to Earth (Home) Button */
.planet-orbit-controls {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: auto;
}

.btn-return-orbit,
.btn-return-earth-home {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(0, 242, 254, 0.5));
}

.btn-return-orbit:hover,
.btn-return-earth-home:hover {
  transform: scale(1.1) translateY(-2px);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 28px rgba(0, 242, 254, 0.85));
}

.btn-return-orbit:active,
.btn-return-earth-home:active {
  transform: scale(0.96);
}

.earth-home-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  animation: earth-home-breathe 4s ease-in-out infinite alternate;
}

.earth-home-graphic svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes earth-home-breathe {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

@media (max-width: 640px) {
  .planet-orbit-controls {
    top: 0.85rem;
  }
  .earth-home-graphic {
    width: 64px;
    height: 64px;
  }
}

/* Background Flanking Planets (Left & Right of Focused Planet) */
.flanking-planets-dock {
  display: contents;
}

@media (min-width: 768px) {
  .flanking-planets {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    z-index: 25;
    pointer-events: auto;
    transition: all 0.5s ease;
  }

  .flanking-planets-left {
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .flanking-planets-right {
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 1440px) {
  .flanking-planets-left {
    left: 4.5rem;
  }
  .flanking-planets-right {
    right: 4.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .flanking-planets {
    gap: 1.5rem;
  }
  .flanking-planets-left {
    left: 1.25rem;
  }
  .flanking-planets-right {
    right: 1.25rem;
  }
}

@media (max-width: 767px) {
  .flanking-planets-dock {
    position: fixed !important;
    bottom: 0.85rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    width: auto !important;
    max-width: 95vw !important;
    z-index: 40 !important;
    pointer-events: auto !important;
    background: rgba(12, 9, 38, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 9999px !important;
    padding: 0.35rem 0.65rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.2) !important;
  }

  .flanking-planets-dock .flanking-planets {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
  }

  .flanking-planets-left,
  .flanking-planets-right {
    position: static !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
  }

  /* Compact labels on mobile: omit "Mission" prefix for generous spacing */
  .nav-pill-prefix {
    display: none !important;
  }
}

.bg-planet-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.35s ease, opacity 0.35s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0.88;
}

.bg-planet-btn:hover {
  opacity: 1;
  transform: scale(1.15) translateY(-4px);
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.45));
}

.bg-planet-btn:active {
  transform: scale(0.96);
}

.bg-planet-btn.hidden {
  display: none !important;
}

.bg-planet-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: filter 0.3s ease;
}

/* Floating bobbing animations matching main nav */
.bg-float-1 {
  animation: planet-bg-float-1 4.5s ease-in-out infinite alternate;
}
.bg-float-2 {
  animation: planet-bg-float-2 5.2s ease-in-out infinite alternate;
}
.bg-float-3 {
  animation: planet-bg-float-3 4.8s ease-in-out infinite alternate;
}
.bg-float-4 {
  animation: planet-bg-float-4 5.5s ease-in-out infinite alternate;
}

@keyframes planet-bg-float-1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}
@keyframes planet-bg-float-2 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(7px) rotate(-2deg); }
}
@keyframes planet-bg-float-3 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-7px) rotate(-3deg); }
}
@keyframes planet-bg-float-4 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(8px) rotate(2deg); }
}

.bg-planet-pill {
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.bg-pill-mars {
  background: rgba(192, 39, 57, 0.75);
  border: 1.5px solid rgba(255, 107, 129, 0.7);
  box-shadow: 0 0 14px rgba(255, 87, 87, 0.5);
}

.bg-pill-saturn {
  background: rgba(211, 84, 0, 0.75);
  border: 1.5px solid rgba(254, 211, 48, 0.7);
  box-shadow: 0 0 14px rgba(254, 211, 48, 0.5);
}

.bg-pill-jupiter {
  background: rgba(140, 37, 0, 0.75);
  border: 1.5px solid rgba(248, 165, 194, 0.7);
  box-shadow: 0 0 14px rgba(248, 165, 194, 0.5);
}

.bg-pill-neptune {
  background: rgba(15, 43, 92, 0.75);
  border: 1.5px solid rgba(0, 242, 254, 0.7);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.5);
}

.bg-planet-btn:hover .bg-planet-pill {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

@media (max-width: 767px) {
  .bg-planet-btn {
    padding: 0.2rem 0.35rem;
    gap: 0.15rem;
    border-radius: 9999px;
  }
  .bg-planet-graphic svg {
    width: 36px !important;
    height: 36px !important;
  }
  .bg-planet-saturn .bg-planet-graphic svg {
    width: 48px !important;
    height: 36px !important;
  }
  .bg-planet-pill {
    font-size: 0.52rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    letter-spacing: 0.02em;
    border-radius: 9999px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .flanking-planets-dock {
    padding: 0.25rem 0.4rem;
    gap: 0.2rem;
  }
  .bg-planet-btn {
    padding: 0.15rem 0.25rem;
  }
  .bg-planet-graphic svg {
    width: 30px !important;
    height: 30px !important;
  }
  .bg-planet-saturn .bg-planet-graphic svg {
    width: 40px !important;
    height: 30px !important;
  }
  .bg-planet-pill {
    font-size: 0.48rem;
    padding: 0.12rem 0.35rem;
  }
}

/* The Active Planet Orb */
.active-planet-orb {
  position: relative;
  width: 100%;
  max-width: 630px;
  max-height: 86vh;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

/* Mars Theme */
.active-planet-orb.theme-mars {
  background: radial-gradient(circle at 35% 35%, #ff9a76 0%, #ff5757 38%, #c02739 75%, #590918 100%);
  box-shadow: 0 0 65px rgba(255, 87, 87, 0.55), inset 0 0 45px rgba(0, 0, 0, 0.65);
  border: 3px solid rgba(255, 154, 118, 0.6);
}

/* Saturn Theme */
.active-planet-orb.theme-saturn {
  background: radial-gradient(circle at 40% 35%, #fff1c5 0%, #fed330 35%, #f7b731 70%, #b84300 100%);
  box-shadow: 0 0 65px rgba(254, 211, 48, 0.5), inset 0 0 45px rgba(0, 0, 0, 0.65);
  border: 3px solid rgba(254, 211, 48, 0.6);
}

/* Jupiter Theme */
.active-planet-orb.theme-jupiter {
  background: radial-gradient(circle at 35% 30%, #fff5eb 0%, #fed330 30%, #f8a5c2 55%, #e67e22 75%, #631a00 100%);
  box-shadow: 0 0 65px rgba(248, 165, 194, 0.5), inset 0 0 45px rgba(0, 0, 0, 0.65);
  border: 3px solid rgba(248, 165, 194, 0.6);
}

/* Neptune Theme */
.active-planet-orb.theme-neptune {
  background: radial-gradient(circle at 35% 30%, #a0f0ed 0%, #00f2fe 35%, #226bbf 70%, #081d3f 100%);
  box-shadow: 0 0 65px rgba(0, 242, 254, 0.55), inset 0 0 45px rgba(0, 0, 0, 0.65);
  border: 3px solid rgba(160, 240, 237, 0.6);
}

/* Saturn Giant Decorative Ring Overlay */
.saturn-centered-rings {
  position: absolute;
  inset: -18%;
  width: 136%;
  height: 136%;
  pointer-events: none;
  z-index: 1;
  display: none;
}

.theme-saturn .saturn-centered-rings {
  display: block;
}

/* Opaque Planet Surface on Saturn Details so the rings never show through text */
.theme-saturn .planet-surface-viewport {
  background: radial-gradient(circle, rgba(16, 11, 35, 0.95) 0%, rgba(10, 8, 26, 0.98) 100%) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.theme-saturn .planet-mission-content .bg-purple-950\/60,
.theme-saturn .planet-mission-content .bg-purple-950\/70 {
  background: rgba(26, 17, 52, 0.94) !important;
  border-color: rgba(254, 211, 48, 0.45) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
}

/* Planet Surface Content Overlay - Renders text directly on top of the planet with NO inner border */
.planet-surface-viewport {
  position: relative;
  z-index: 5;
  width: 94%;
  height: 94%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 8, 28, 0.35) 0%, rgba(10, 8, 28, 0.6) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.planet-surface-viewport::-webkit-scrollbar {
  width: 4px;
}

.planet-surface-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

/* Content cards sit directly on top of the planet surface without rigid borders */
.planet-mission-content .bg-purple-950\/60,
.planet-mission-content .bg-purple-950\/70 {
  background: rgba(14, 10, 36, 0.55) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  .active-planet-orb {
    max-width: min(94vw, 410px);
    width: min(94vw, 410px);
    height: auto;
    max-height: calc(100dvh - 165px);
    aspect-ratio: auto;
    border-radius: 36px;
    padding: 3px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  }

  .planet-surface-viewport {
    width: 100%;
    height: 100%;
    max-height: calc(100dvh - 173px);
    border-radius: 32px;
    padding: 1.25rem 1rem 1.15rem 1rem;
    border: none;
    box-shadow: none;
    background: radial-gradient(circle, rgba(10, 8, 28, 0.45) 0%, rgba(10, 8, 28, 0.72) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .saturn-centered-rings {
    inset: auto;
    top: 50%;
    left: 50%;
    width: 130%;
    height: auto;
    aspect-ratio: 200 / 160;
    transform: translate(-50%, -50%);
  }

  /* No harsh borders on mobile text boxes so content flows seamlessly on top of the planet */
  .planet-mission-content .bg-purple-950\/60,
  .planet-mission-content .bg-purple-950\/70 {
    background: rgba(14, 10, 36, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .planet-mission-content {
    max-width: 100%;
    width: 100%;
    margin: auto 0;
  }

  .planet-mission-content input,
  .planet-mission-content textarea {
    background: rgba(16, 11, 42, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    border-radius: 10px !important;
    padding: 0.4rem 0.65rem !important;
    font-size: 0.78rem !important;
  }

  .planet-mission-content label {
    font-size: 0.65rem !important;
    margin-bottom: 0.15rem !important;
  }

  .planet-mission-content button[type="submit"] {
    border-radius: 12px !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0.15rem !important;
  }
}

.planet-mission-content {
  display: none;
  width: 100%;
  max-width: 410px;
  margin: auto;
  animation: content-pop 0.5s ease-out;
}

.planet-mission-content.is-active {
  display: block;
}

@keyframes content-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==============================================================================
   Stargazer Easter Egg: Sun Fun Fact Badge & Modal Popup
   ============================================================================== */
.sun-fun-fact-badge,
.stargazer-badge {
  position: fixed;
  top: 28%;
  left: 1.5rem;
  pointer-events: auto;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border-radius: 16px;
  background: rgba(14, 9, 36, 0.88);
  border: 1.5px solid rgba(255, 209, 102, 0.8);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 180, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  color: #ffd166;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: normal;
  text-align: left;
  max-width: 280px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  text-decoration: none;
  z-index: 20;
}

body[data-mission-state="launching"] .sun-fun-fact-badge,
body[data-mission-state="landed"] .sun-fun-fact-badge {
  transform: translateX(-140%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sun-fun-fact-badge:hover,
.stargazer-badge:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #ffd166;
  background: rgba(22, 14, 52, 0.95);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 209, 102, 0.7);
  color: #ffffff;
}

.sun-fun-fact-badge:active,
.stargazer-badge:active {
  transform: scale(0.98);
}

.sun-fact-icon,
.stargazer-badge-icon {
  font-size: 1.05rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.sun-fact-text {
  flex: 1 1 auto;
}

.sun-fact-pulse-dot,
.stargazer-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 8px #ffd166;
  animation: sun-fact-pulse 2s infinite ease-in-out;
  flex-shrink: 0;
  margin-top: 5px;
}

@keyframes sun-fact-pulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 12px #ffd166; }
  100% { transform: scale(0.85); opacity: 0.7; }
}

@media (min-width: 1024px) {
  .sun-fun-fact-badge,
  .stargazer-badge {
    top: 30%;
    left: 2.25rem;
    padding: 0.75rem 1.15rem;
    font-size: 0.84rem;
    max-width: 310px;
  }
}

@media (max-width: 767px) {
  .sun-fun-fact-badge,
  .stargazer-badge {
    top: 20%;
    left: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
    gap: 0.4rem;
    max-width: min(84vw, 240px);
    border-radius: 14px;
    line-height: 1.3;
  }
  .sun-fact-icon,
  .stargazer-badge-icon {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .sun-fun-fact-badge,
  .stargazer-badge {
    top: 19%;
    left: 0.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.68rem;
    max-width: 215px;
  }
}

/* Stargazer Modal */
.stargazer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem;
}

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

.stargazer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stargazer-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 0%, rgba(38, 20, 75, 0.95), rgba(12, 9, 38, 0.96));
  border: 1.5px solid rgba(255, 209, 102, 0.4);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 209, 102, 0.18);
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
}

.stargazer-modal.is-open .stargazer-card {
  transform: translateY(0) scale(1);
}

.stargazer-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stargazer-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.stargazer-icon-orb {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.1rem auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.25) 0%, rgba(6, 214, 160, 0.1) 100%);
  border: 1.5px solid rgba(255, 209, 102, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 0 25px rgba(255, 209, 102, 0.35);
}

.stargazer-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #06d6a0;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 10px rgba(6, 214, 160, 0.5);
}

.stargazer-title {
  font-family: 'Nasa', 'Nasalization', sans-serif;
  font-size: 1.55rem;
  color: #fff;
  margin: 0 0 0.3rem 0;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

.stargazer-subtitle {
  font-size: 0.85rem;
  color: #ffd166;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
  letter-spacing: 0.04em;
}

.stargazer-body {
  text-align: left;
  background: rgba(18, 12, 48, 0.6);
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 14px;
  padding: 1.1rem;
  margin-bottom: 1.4rem;
}

.stargazer-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #f0e6ff;
  margin: 0 0 0.75rem 0;
}

.stargazer-text:last-child {
  margin-bottom: 0;
}

.stargazer-text strong {
  color: #ffd166;
  font-weight: 700;
}

.stargazer-text em {
  color: #06d6a0;
  font-style: normal;
  font-weight: 600;
}

.stargazer-actions {
  display: flex;
  justify-content: center;
}

.stargazer-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.45rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ffd166, #ff9f1c);
  color: #1a0b2e;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 209, 102, 0.4);
  transition: all 0.25s ease;
}

.stargazer-action-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 25px rgba(255, 209, 102, 0.6);
}

.stargazer-action-btn:active {
  transform: scale(0.97);
}

/* Constellation Illumination System */
.constellation-svg-label {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  fill: #ffd166;
  text-anchor: middle;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.9));
  pointer-events: none;
}

body.constellations-illuminated .constellation-sky-overlay {
  filter: drop-shadow(0 0 16px rgba(255, 209, 102, 0.45));
}

body.constellations-illuminated .constellation-svg-label {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.95));
}

body.constellations-illuminated .constellation-lines {
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.95)) drop-shadow(0 0 20px rgba(255, 180, 0, 0.4)) !important;
}

body.constellations-illuminated .constellation-lines path {
  stroke: #ffd166 !important;
  stroke-width: 2.5px !important;
  stroke-opacity: 1 !important;
  transition: all 0.6s ease;
}

body.constellations-illuminated .constellation-stars use,
body.constellations-illuminated .constellation-nodes use {
  filter: drop-shadow(0 0 12px #ffd166) drop-shadow(0 0 22px rgba(255, 220, 120, 0.75)) !important;
  transition: all 0.6s ease;
}

/* Celestial Bodies: Moon, Venus, Jupiter, Pleiades */
.constellation-celestial-body {
  transition: opacity 0.6s ease, filter 0.6s ease;
  opacity: 0.85;
}

body.constellations-illuminated .constellation-celestial-body {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(255, 230, 160, 0.9)) drop-shadow(0 0 26px rgba(255, 209, 102, 0.65));
}

.pleiades-cluster {
  transition: all 0.6s ease;
}

body.constellations-illuminated .pleiades-cluster {
  filter: drop-shadow(0 0 10px #00f2fe) drop-shadow(0 0 18px rgba(0, 242, 254, 0.8));
}

body.constellations-illuminated .sun-fun-fact-badge {
  background: rgba(26, 16, 62, 0.95);
  border-color: #ffd166;
  box-shadow: 0 0 26px rgba(255, 209, 102, 0.7), 0 6px 24px rgba(0, 0, 0, 0.75);
}

body.constellations-illuminated .sun-fact-pulse-dot {
  background: #06d6a0;
  box-shadow: 0 0 12px #06d6a0;
}

body.constellations-illuminated .stargazer-action-btn {
  background: linear-gradient(135deg, #06d6a0, #00b4d8);
  color: #0c0926;
  box-shadow: 0 6px 20px rgba(6, 214, 160, 0.5);
}

/* Sun & Moon Celestial Swap when Night Sky is Illuminated */
body.constellations-illuminated .giant-left-sun-container {
  transform: translateX(-120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.constellations-illuminated .giant-sun-glow {
  transform: translateX(-120%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation: none !important;
}

body.constellations-illuminated .giant-right-moon-container {
  transform: translateX(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.constellations-illuminated .giant-moon-glow {
  transform: translateX(0) !important;
  opacity: 1 !important;
  animation: moon-pulse 6s ease-in-out infinite alternate !important;
}

/* Hide duplicate miniature moon and label in constellation SVG overlay */
body.constellations-illuminated #constellation-sky-moon,
body.constellations-illuminated #constellation-moon-label {
  display: none !important;
}

/* Disappear NASA Worm Title & Solar System Navigation when Night Sky is Illuminated */
body.constellations-illuminated .landing-nasa-header {
  opacity: 0 !important;
  transform: translate(-50%, -24px) !important;
  pointer-events: none !important;
}

body.constellations-illuminated .solar-system-nav {
  transform: translateX(140%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  body.constellations-illuminated .solar-system-nav {
    transform: translate(-50%, 60px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ==============================================================================
   Ambient Cosmic Shooting Stars
   ============================================================================== */
.shooting-star-field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.shooting-star {
  position: absolute;
  height: 2px;
  background: linear-gradient(-45deg, #ffffff, rgba(0, 242, 254, 0.85), transparent);
  border-radius: 999px;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.85));
  opacity: 0;
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: calc(50% - 1.5px);
  right: 0;
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.9), 0 0 14px 4px rgba(0, 242, 254, 0.8);
}

.shooting-star-1 {
  top: 14%;
  left: 55%;
  width: 110px;
  animation: shoot-star-1 14s ease-in-out infinite;
}

.shooting-star-2 {
  top: 38%;
  left: 78%;
  width: 85px;
  animation: shoot-star-2 19s ease-in-out infinite 6.5s;
}

.shooting-star-3 {
  top: 8%;
  left: 82%;
  width: 95px;
  animation: shoot-star-3 23s ease-in-out infinite 13s;
}

@keyframes shoot-star-1 {
  0% { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 0; }
  1.5% { opacity: 0.95; }
  4.5% { transform: translateX(-340px) translateY(240px) rotate(-35deg); opacity: 0; }
  100% { opacity: 0; }
}

@keyframes shoot-star-2 {
  0% { transform: translateX(0) translateY(0) rotate(-38deg); opacity: 0; }
  1.5% { opacity: 0.85; }
  4% { transform: translateX(-270px) translateY(210px) rotate(-38deg); opacity: 0; }
  100% { opacity: 0; }
}

@keyframes shoot-star-3 {
  0% { transform: translateX(0) translateY(0) rotate(-32deg); opacity: 0; }
  1.5% { opacity: 0.9; }
  4% { transform: translateX(-300px) translateY(190px) rotate(-32deg); opacity: 0; }
  100% { opacity: 0; }
}

/* ==============================================================================
   Astronaut Visor Starlight Shimmer & Sparkle
   ============================================================================== */
.porthole-visor-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.porthole-visor-shimmer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 45%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 30%,
    rgba(255, 245, 200, 0.55) 50%,
    rgba(255, 255, 255, 0.12) 70%,
    transparent 100%
  );
  transform: rotate(32deg);
  animation: visor-shimmer-sweep 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes visor-shimmer-sweep {
  0%, 60% {
    left: -120%;
    opacity: 0;
  }
  63% {
    opacity: 0.9;
  }
  80% {
    left: 200%;
    opacity: 0.9;
  }
  83%, 100% {
    left: 200%;
    opacity: 0;
  }
}

.porthole-visor-sparkle {
  position: absolute;
  top: 24%;
  right: 28%;
  font-size: 13px;
  color: #ffd166;
  text-shadow: 0 0 8px #ffd166, 0 0 16px #ffffff;
  pointer-events: none;
  z-index: 6;
  animation: visor-sparkle-twinkle 6s ease-in-out infinite;
}

@keyframes visor-sparkle-twinkle {
  0%, 70% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }
  75% {
    opacity: 1;
    transform: scale(1.3) rotate(45deg);
  }
  82% {
    opacity: 0;
    transform: scale(0.6) rotate(90deg);
  }
  100% {
    opacity: 0;
  }
}

/* ==============================================================================
   Saturn Station Add-to-Calendar Action Pills
   ============================================================================== */
.saturn-calendar-actions {
  user-select: none;
}

.btn-cal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(254, 211, 48, 0.45);
  background: rgba(14, 10, 36, 0.75);
  color: #ffd166;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-cal-pill:hover {
  transform: translateY(-1.5px) scale(1.04);
  background: rgba(254, 211, 48, 0.2);
  border-color: #ffd166;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(254, 211, 48, 0.4);
}

.btn-cal-pill:active {
  transform: scale(0.97);
}

.btn-cal-google {
  border-color: rgba(254, 211, 48, 0.5);
}

.btn-cal-apple {
  border-color: rgba(0, 242, 254, 0.5);
  color: #a0f0ed;
}

.btn-cal-apple:hover {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.2);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

@media (max-width: 767px) {
  .saturn-calendar-actions {
    margin-top: 0.45rem !important;
    padding-top: 0.35rem !important;
  }
  .btn-cal-pill {
    padding: 0.3rem 0.65rem;
    font-size: 0.66rem;
  }
}

/* ==============================================================================
   About Page: Star Wars Opening Crawl Overlay (Dimmed Homepage Background)
   ============================================================================== */
.about-starwars-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 60;
  background: radial-gradient(ellipse at center, rgba(6, 4, 22, 0.84) 0%, rgba(2, 1, 10, 0.94) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

body.about-crawl-active .about-starwars-stage {
  opacity: 1;
  pointer-events: auto;
}

/* Pause background SVG animations while About crawl is open so 100% of GPU budget goes to 60/120fps crawl */
body.about-crawl-active .rocket-ship-container,
body.about-crawl-active .giant-sun-limb,
body.about-crawl-active .giant-sun-glow,
body.about-crawl-active .giant-moon-limb,
body.about-crawl-active .giant-moon-glow,
body.about-crawl-active .shooting-star,
body.about-crawl-active .planet-graphic,
body.about-crawl-active .porthole-hud-ring,
body.about-crawl-active .flame-pulse-outer,
body.about-crawl-active .flame-pulse-inner,
body.about-crawl-active .flame-spark {
  animation-play-state: paused !important;
}

/* Hide interactive homepage UI chrome while keeping rocket, Earth, sun & stars visible underneath */
body.about-crawl-active .landing-nasa-header,
body.about-crawl-active .sun-fun-fact-badge,
body.about-crawl-active .solar-system-nav,
body.about-crawl-active .baby-speech-bubble {
  opacity: 0 !important;
  pointer-events: none !important;
}

.starwars-crawl-viewport {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  perspective: 380px;
  overflow: hidden;
  padding: 1rem 1.25rem 1rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.starwars-crawl-viewport:active {
  cursor: grabbing;
}

.starwars-fade-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14%;
  background: linear-gradient(to bottom, rgba(4, 2, 14, 0.92) 0%, rgba(4, 2, 14, 0.45) 55%, transparent 100%);
  z-index: 65;
  pointer-events: none;
}

.starwars-fade-mask-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 9%;
  background: linear-gradient(to top, rgba(3, 2, 12, 0.92) 0%, transparent 100%);
  z-index: 65;
  pointer-events: none;
}

.starwars-perspective-plane {
  width: min(92vw, 680px);
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transform-origin: 50% 60%;
  transform: rotateX(19deg) translateZ(0);
  transform-style: preserve-3d;
}

.starwars-prelude {
  text-align: center;
  color: #4bd5ee;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.88rem, min(1.8vw, 2.2vh), 1.18rem);
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin: 0 0 clamp(1rem, 2.5vh, 1.65rem) 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.starwars-crawl-content {
  width: 100%;
  padding-bottom: 2.5rem;
  color: #ffcf40;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: clamp(0.9rem, min(1.8vw, 2.25vh), 1.2rem);
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-align: justify;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transform: translate3d(0, 0, 0);
}

body.about-crawl-active .starwars-crawl-content {
  opacity: 1;
}

.starwars-crawl-header {
  text-align: center;
  margin-bottom: clamp(0.65rem, 1.8vh, 1.2rem);
}

.starwars-episode {
  font-size: clamp(0.8rem, min(1.6vw, 2vh), 1.15rem);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffcf40;
  margin: 0 0 0.25rem 0;
}

.starwars-title {
  font-family: 'Nasa', 'Nasalization', 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, min(3.4vw, 4vh), 2.35rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffcf40;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.95), 0 0 28px rgba(255, 207, 64, 0.55);
}

.starwars-paragraph {
  margin: 0 0 clamp(0.65rem, 1.8vh, 1.1rem) 0;
}

.starwars-paragraph:last-child {
  margin-bottom: 0;
}

.starwars-paragraph strong {
  color: #fff3b0;
  font-weight: 900;
}

.starwars-scroll-hint {
  width: 100%;
  text-align: center;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 207, 64, 0.72);
  margin: 0 0 0.15rem 0;
  pointer-events: none;
}

.about-starwars-bottom-actions {
  position: relative;
  z-index: 70;
  flex-shrink: 0;
  padding: 0.35rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.about-starwars-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.starwars-cta-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.starwars-cta-primary {
  background: rgba(12, 9, 38, 0.82);
  color: #ffffff;
  border: 1.5px solid rgba(0, 242, 254, 0.75);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

.starwars-cta-primary:hover {
  background: rgba(0, 242, 254, 0.28);
  border-color: #00f2fe;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.starwars-cta-secondary {
  background: rgba(12, 9, 38, 0.82);
  color: #ffffff;
  border: 1.5px solid rgba(254, 211, 48, 0.7);
  text-shadow: 0 0 10px rgba(254, 211, 48, 0.75);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

.starwars-cta-secondary:hover {
  background: rgba(254, 211, 48, 0.26);
  border-color: #fed330;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(254, 211, 48, 0.55);
}

.about-rocket-home-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  margin-top: 0.1rem;
  padding: 0.15rem 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-rocket-home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 12px rgba(255, 112, 166, 0.45));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-rocket-home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  background: rgba(12, 9, 38, 0.82);
  border: 1.5px solid rgba(248, 165, 194, 0.75);
  color: #ffffff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(248, 165, 194, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-rocket-home-btn:hover .about-rocket-home-icon {
  transform: translateY(-4px) scale(1.07);
}

.about-rocket-home-btn:hover .about-rocket-home-pill {
  background: rgba(248, 165, 194, 0.3);
  border-color: #f8a5c2;
  box-shadow: 0 0 18px rgba(248, 165, 194, 0.6);
}

.about-rocket-home-btn:active {
  transform: scale(0.95);
}

@media (max-width: 767px) {
  .starwars-crawl-viewport {
    perspective: 320px;
  }
  .starwars-perspective-plane {
    transform-origin: 50% 55%;
    transform: rotateX(15deg) translateZ(0);
  }
  .starwars-crawl-content {
    font-size: clamp(0.86rem, 3.9vw, 1.02rem);
    line-height: 1.55;
  }
  .starwars-paragraph {
    margin-bottom: 0.85rem;
  }
  .starwars-cta-btn {
    padding: 0.5rem 0.95rem;
    font-size: 0.74rem;
  }
  .about-rocket-home-icon svg {
    width: 32px;
    height: 42px;
  }
  .about-rocket-home-pill {
    font-size: 0.68rem;
    padding: 0.16rem 0.65rem;
  }
}

/* ==============================================================================
   Neptune Mission Wishes: Fly-Out Wishing Stars Sky + Tap-to-Read Star Modal
   ============================================================================== */
.wishing-stars-sky {
  position: fixed;
  inset: 0;
  z-index: 26;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

body[data-mission-state="landed"][data-active-planet="neptune"] .wishing-stars-sky {
  opacity: 1;
  visibility: visible;
}

.wishing-stars-sky-hint {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(165, 243, 252, 0.85);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.45);
}

.wishing-stars-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wishing-constellation-line {
  stroke: rgba(0, 242, 254, 0.34);
  stroke-width: 1.4;
  stroke-dasharray: 5 7;
  fill: none;
}

.wishing-stars-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wishing-star-node {
  position: absolute;
  transform: translate3d(-50%, -50%, 0);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  pointer-events: auto;
  outline: none;
  will-change: transform, opacity;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.wishing-star-orb {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  animation: wish-star-twinkle 3.2s ease-in-out infinite alternate;
}

.wishing-star-orb::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 9999px;
  background: radial-gradient(circle, var(--star-glow, rgba(0, 242, 254, 0.6)) 0%, transparent 72%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.wishing-star-svg {
  position: relative;
  z-index: 2;
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 0 9px var(--star-color, #ffd166));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.wishing-star-label {
  padding: 0.14rem 0.55rem;
  border-radius: 9999px;
  background: rgba(10, 8, 30, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.48);
  color: #f0fdff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.wishing-star-node:hover {
  transform: translate3d(-50%, -54%, 0) scale(1.12);
  z-index: 8;
}

.wishing-star-node:hover .wishing-star-orb::before {
  transform: scale(1.5);
  opacity: 1;
}

.wishing-star-node:hover .wishing-star-label {
  background: rgba(0, 242, 254, 0.24);
  border-color: #ffd166;
  color: #fff9db;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.45);
}

.wishing-star-node.is-newly-born {
  animation: wish-star-spawn 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Shooting-Star Comet Projectile that flies out from Beam Wish into the sky */
.wish-beam-comet {
  position: fixed;
  top: 0;
  left: 0;
  width: 96px;
  height: 24px;
  margin-left: -84px;
  margin-top: -12px;
  pointer-events: none;
  z-index: 85;
  will-change: transform, opacity;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wish-beam-comet-tail {
  position: absolute;
  right: 10px;
  width: 86px;
  height: 5px;
  border-radius: 9999px;
  background: linear-gradient(to left, #ffffff 0%, #ffd166 28%, #00f2fe 65%, rgba(0, 242, 254, 0) 100%);
  filter: drop-shadow(0 0 10px #00f2fe);
}

.wish-beam-comet-head {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  text-shadow: 0 0 12px #ffd166, 0 0 22px #00f2fe;
}

.wish-starburst-ring {
  position: fixed;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  border-radius: 9999px;
  border: 2px solid #ffd166;
  box-shadow: 0 0 24px #00f2fe, inset 0 0 16px #ffd166;
  pointer-events: none;
  z-index: 84;
  animation: wish-burst-ring 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wish-burst-ring {
  0% { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(2.1); opacity: 0; }
}

@keyframes wish-star-twinkle {
  0% { transform: scale(0.92); opacity: 0.84; }
  100% { transform: scale(1.08); opacity: 1; }
}

@keyframes wish-star-spawn {
  0% { transform: translate3d(-50%, -50%, 0) scale(0.1); opacity: 0; }
  65% { transform: translate3d(-50%, -50%, 0) scale(1.38); opacity: 1; }
  100% { transform: translate3d(-50%, -50%, 0) scale(1); opacity: 1; }
}

/* Tap-a-Star Message Modal */
.wish-star-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.wish-star-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wish-star-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 16, 0.72);
}

.wish-star-card {
  position: relative;
  z-index: 2;
  width: min(92vw, 400px);
  padding: 1.5rem 1.4rem 1.3rem;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(16, 12, 46, 0.96) 0%, rgba(9, 22, 52, 0.96) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 32px rgba(0, 242, 254, 0.28);
  text-align: center;
  transform: translate3d(0, 10px, 0) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.wish-star-modal.is-open .wish-star-card {
  transform: translate3d(0, 0, 0) scale(1);
}

.wish-star-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0f7fa;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.wish-star-close:hover {
  background: rgba(255, 112, 166, 0.3);
  color: #ffffff;
}

.wish-star-badge-orb {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.5rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.28) 0%, rgba(0, 242, 254, 0.14) 70%);
  border: 1.5px solid rgba(255, 209, 102, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd166;
  font-size: 1.35rem;
  text-shadow: 0 0 12px #ffd166;
}

.wish-modal-kicker {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7dd3fc;
  margin-bottom: 0.65rem;
}

.wish-modal-quote {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #ffffff;
  font-weight: 500;
  margin: 0 0 0.75rem;
  max-height: 42vh;
  overflow-y: auto;
}

.wish-modal-author {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffd166;
  margin: 0;
  letter-spacing: 0.03em;
}

.wish-modal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 242, 254, 0.18);
}

.wish-modal-nav.hidden {
  display: none;
}

.wish-modal-nav-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(12, 9, 38, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.55);
  color: #e0f7fa;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wish-modal-nav-btn:hover {
  background: rgba(0, 242, 254, 0.25);
  border-color: #00f2fe;
  color: #ffffff;
}

@media (max-width: 767px) {
  .wishing-star-orb {
    width: 30px;
    height: 30px;
  }
  .wishing-star-svg {
    width: 20px;
    height: 20px;
  }
  .wishing-star-label {
    font-size: 0.62rem;
    padding: 0.1rem 0.45rem;
    max-width: 112px;
  }
}


