:root {
  --green: #00c805;
  --acid: #c8ff00;
  --acid-glow: rgba(200, 255, 0, 0.45);
  --cyan-glow: rgba(80, 227, 194, 0.3);
  --black: #030603;
  --space-dark: #020402;
  --white: #f5f8f0;
  --muted: #8e9a86;
  --glass-bg: rgba(12, 20, 10, 0.65);
  --glass-border: rgba(200, 255, 0, 0.22);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--space-dark);
  color: var(--white);
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a {
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  background: var(--acid);
  border-radius: 6px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   SPACE STAGE & CANVAS
   ========================================================================== */

.space {
  --mx: 0px;
  --my: 0px;
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 50%, #081406 0%, #030603 60%, #010301 100%);
  user-select: none;
}

.space-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto; /* allows direct clicking on space to spawn shooting stars */
}

/* Cosmic Nebula Clouds */
.nebula-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: nebula-drift 16s ease-in-out infinite alternate;
}

.nebula-top {
  top: -18%;
  left: 18%;
  width: 65vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(0, 200, 5, 0.18), transparent 70%);
}

.nebula-center {
  top: 22%;
  left: 22%;
  width: 55vw;
  height: 55vh;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.12), rgba(0, 200, 5, 0.08) 50%, transparent 80%);
  animation-duration: 20s;
  animation-delay: -5s;
}

.nebula-bottom {
  bottom: -22%;
  right: 12%;
  width: 60vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(80, 227, 194, 0.14), transparent 70%);
  animation-duration: 24s;
  animation-delay: -9s;
}

@keyframes nebula-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.08); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ==========================================================================
   ORGANIC COSMIC SMOKE & CLOUDSCAPE
   ========================================================================== */

.cloud-scape {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.space-cloud {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.35;
  filter: blur(14px);
  will-change: transform, opacity;
}

.cloud-one {
  top: -5%;
  left: -10%;
  width: 80vw;
  height: 65vh;
  background-image: url("Resources/cosmic-smoke-1.svg");
  animation: smoke-drift-1 28s ease-in-out infinite alternate;
}

.cloud-two {
  bottom: -10%;
  right: -10%;
  width: 85vw;
  height: 70vh;
  background-image: url("Resources/cosmic-smoke-2.svg");
  opacity: 0.28;
  animation: smoke-drift-2 34s -10s ease-in-out infinite alternate;
}

.cloud-three {
  top: 30%;
  left: 20%;
  width: 70vw;
  height: 55vh;
  background-image: url("Resources/cosmic-smoke-1.svg");
  opacity: 0.2;
  filter: blur(25px);
  animation: smoke-drift-3 40s -18s ease-in-out infinite alternate;
}

@keyframes smoke-drift-1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.25; }
  50% { transform: translate(45px, 25px) rotate(4deg) scale(1.1); opacity: 0.4; }
  100% { transform: translate(-30px, 50px) rotate(-3deg) scale(0.95); opacity: 0.28; }
}

@keyframes smoke-drift-2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.2; }
  50% { transform: translate(-50px, -35px) rotate(-5deg) scale(1.12); opacity: 0.35; }
  100% { transform: translate(35px, -20px) rotate(3deg) scale(0.92); opacity: 0.22; }
}

@keyframes smoke-drift-3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
  50% { transform: translate(30px, -40px) scale(1.15); opacity: 0.28; }
  100% { transform: translate(-45px, 20px) scale(0.9); opacity: 0.18; }
}

/* ==========================================================================
   TOPBAR NAVIGATION
   ========================================================================== */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 54px);
  pointer-events: none;
}

.topbar * {
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wordmark:hover {
  transform: translateY(-2px) rotate(-1deg) scale(1.04);
}

.logo-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(200, 255, 0, 0.5));
}

.logo-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(200, 255, 0, 0.4);
  animation: logo-ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes logo-ping {
  0% { transform: scale(0.95); opacity: 0.8; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

.wordmark-text {
  display: flex;
  flex-direction: column;
}

.wordmark-text span {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
}

.wordmark-text small {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--acid);
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.sound-toggle:hover {
  color: var(--acid);
  border-color: var(--acid);
  background: rgba(200, 255, 0, 0.12);
  box-shadow: 0 0 16px rgba(200, 255, 0, 0.25);
  transform: rotate(-1deg);
}

.sound-toggle.is-active {
  color: var(--acid);
  border-color: var(--acid);
  background: rgba(200, 255, 0, 0.15);
  box-shadow: 0 0 18px rgba(200, 255, 0, 0.35);
}

.sound-icon {
  width: 15px;
  height: 15px;
}

.signal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #abb6a5;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.signal-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.signal-dot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.signal-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radar-ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

.signal b {
  color: var(--green);
  font-weight: 700;
}

/* ==========================================================================
   STAGE & HEADLINE WITH HIGHLIGHTED ANUS (ANTON FONT)
   ========================================================================== */

.stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10;
}

.stage-copy {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 900px);
  text-align: center;
  z-index: 15;
  pointer-events: none;
}

.stage h1 {
  margin: 0;
  max-width: 100%;
  font-family: 'Anton', sans-serif;
  font-size: clamp(52px, 8vw, 116px);
  line-height: 0.9;
  letter-spacing: 0.015em;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.95);
}

/* Highlighting ANUS */
.accent-anus {
  color: var(--acid);
  text-shadow: 
    0 0 20px rgba(200, 255, 0, 0.85),
    0 0 50px rgba(200, 255, 0, 0.6),
    0 0 90px rgba(0, 200, 5, 0.4);
  display: inline-block;
  position: relative;
  animation: anus-glow 2.5s ease-in-out infinite alternate;
}

@keyframes anus-glow {
  0% {
    filter: drop-shadow(0 0 15px rgba(200, 255, 0, 0.6));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 0 38px rgba(200, 255, 0, 0.95)) drop-shadow(0 0 70px rgba(0, 200, 5, 0.5));
    transform: scale(1.02);
  }
}

/* ==========================================================================
   PLANET URANUS & ORBITS
   ========================================================================== */

.planet-button {
  position: relative;
  z-index: 12;
  width: clamp(280px, 38vw, 560px);
  aspect-ratio: 1;
  margin-top: 8vh;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  outline: none;
  transform: translate(calc(var(--mx) * 0.35), calc(var(--my) * 0.35));
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.planet-button:hover {
  transform: translate(calc(var(--mx) * 0.35), calc(var(--my) * 0.35)) scale(1.05) rotate(2deg);
}

.planet-button:active {
  transform: translate(calc(var(--mx) * 0.35), calc(var(--my) * 0.35)) scale(0.94);
}

.planet-img-wrapper {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  z-index: 4;
}

.uranus-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.1) drop-shadow(0 0 35px rgba(160, 255, 0, 0.35));
  transform-origin: center center;
  will-change: transform, filter;
  animation: planet-float 6s ease-in-out infinite;
}

.planet-button:hover .uranus-logo {
  filter: saturate(1.25) drop-shadow(0 0 65px rgba(200, 255, 0, 0.65));
}

@keyframes planet-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-1.5deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(2deg);
  }
}

.planet-halo {
  position: absolute;
  inset: 15%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 255, 0, 0.35) 0%, rgba(0, 200, 5, 0.18) 55%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  animation: halo-pulse 4s ease-in-out infinite alternate;
}

.planet-core-aura {
  position: absolute;
  inset: 22%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(200, 255, 0, 0.4) 40%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.6;
}

@keyframes halo-pulse {
  0% { transform: scale(0.95); opacity: 0.4; }
  100% { transform: scale(1.22); opacity: 0.75; }
}

.planet-sheen {
  position: absolute;
  inset: 12%;
  z-index: 6;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, rgba(200, 255, 0, 0.25) 55%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.5;
  filter: blur(4px);
  animation: sheen-sweep 7s ease-in-out infinite alternate;
}

@keyframes sheen-sweep {
  0% { transform: translateX(-25%) rotate(-10deg); opacity: 0.2; }
  100% { transform: translateX(25%) rotate(15deg); opacity: 0.65; }
}

/* 3D Revolving Planetary Rings */
.revolving-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 128%;
  height: 40%;
  border: 2px solid rgba(210, 255, 60, 0.5);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-14deg);
  filter: drop-shadow(0 0 10px rgba(200, 255, 0, 0.5));
}

.revolving-ring::before {
  content: "";
  position: absolute;
  inset: 18% -6%;
  border-top: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  opacity: 0.8;
}

.revolving-ring i,
.revolving-ring b {
  position: absolute;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #fff, 0 0 22px var(--acid);
}

.revolving-ring i {
  top: 42%;
  left: 10%;
  animation: ring-orbit-glint 5s linear infinite;
}

.revolving-ring b {
  top: 48%;
  left: 78%;
  width: 6px;
  height: 6px;
  background: var(--acid);
  animation: ring-orbit-glint 5s -2.5s linear infinite;
}

@keyframes ring-orbit-glint {
  0% { transform: translate(0, 0) scale(0.7); opacity: 0.3; }
  25% { opacity: 1; transform: scale(1.3); }
  50% { transform: translate(450%, -20%) scale(1); opacity: 1; }
  75% { opacity: 0.8; }
  100% { transform: translate(900%, 0) scale(0.7); opacity: 0.3; }
}

.ring-back {
  z-index: 3;
  opacity: 0.55;
}

.ring-front {
  z-index: 5;
  clip-path: inset(48% -12% -12% -12%);
  opacity: 0.95;
}

/* Secondary Orbit Rings with Orbiting Satellites */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 120%;
  height: 44%;
  border: 1px dashed rgba(200, 255, 0, 0.35);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-14deg);
  animation: orbit-spin-1 12s linear infinite;
}

.orbit-two {
  width: 96%;
  height: 104%;
  border-color: rgba(80, 227, 194, 0.22);
  transform: translate(-50%, -50%) rotate(68deg);
  animation: orbit-spin-2 18s linear infinite;
}

.orbit i {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 15px var(--acid), 0 0 30px var(--green);
}

.orbit-two i {
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: #50e3c2;
  box-shadow: 0 0 12px #50e3c2;
}

@keyframes orbit-spin-1 {
  from { transform: translate(-50%, -50%) rotate(-14deg); }
  to { transform: translate(-50%, -50%) rotate(346deg); }
}

@keyframes orbit-spin-2 {
  from { transform: translate(-50%, -50%) rotate(68deg); }
  to { transform: translate(-50%, -50%) rotate(-292deg); }
}

.ring-spark {
  position: absolute;
  z-index: 6;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 20px var(--acid);
  pointer-events: none;
}

.ring-spark-one {
  top: 60%;
  left: 14%;
  animation: spark-float 3.6s ease-in-out infinite alternate;
}

.ring-spark-two {
  top: 36%;
  right: 14%;
  width: 6px;
  height: 6px;
  background: var(--acid);
  animation: spark-float 4.2s -1.8s ease-in-out infinite alternate;
}

@keyframes spark-float {
  0% { transform: translate(0, 0); opacity: 0.4; }
  100% { transform: translate(8px, -12px); opacity: 1; }
}

/* ==========================================================================
   SHOCKWAVES & BURST ON CLICK
   ========================================================================== */

.gravity-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.gravity-waves span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid var(--acid);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.is-warping .gravity-waves span:nth-child(1) { animation: shockwave-ripple 1.4s 0.0s cubic-bezier(0.1, 0.7, 0.1, 1); }
.is-warping .gravity-waves span:nth-child(2) { animation: shockwave-ripple 1.4s 0.15s cubic-bezier(0.1, 0.7, 0.1, 1); }
.is-warping .gravity-waves span:nth-child(3) { animation: shockwave-ripple 1.4s 0.3s cubic-bezier(0.1, 0.7, 0.1, 1); }
.is-warping .gravity-waves span:nth-child(4) { animation: shockwave-ripple 1.4s 0.45s cubic-bezier(0.1, 0.7, 0.1, 1); }
.is-warping .gravity-waves span:nth-child(5) { animation: shockwave-ripple 1.4s 0.6s cubic-bezier(0.1, 0.7, 0.1, 1); }

@keyframes shockwave-ripple {
  0% {
    width: 40px;
    height: 40px;
    opacity: 0.9;
    border-color: #ffffff;
    box-shadow: 0 0 30px var(--acid);
  }
  100% {
    width: 140vmax;
    height: 140vmax;
    opacity: 0;
    border-color: var(--acid);
    box-shadow: 0 0 80px rgba(0, 200, 5, 0.5);
  }
}

.is-warping .uranus-logo {
  animation: planet-warp-burst 1.2s cubic-bezier(0.16, 0.8, 0.2, 1);
}

.is-warping .planet-halo {
  animation: halo-warp-burst 1.3s ease-out;
}

@keyframes planet-warp-burst {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(0.85) rotate(-8deg); filter: saturate(1.8) brightness(1.3) drop-shadow(0 0 90px var(--acid)); }
  50% { transform: scale(1.25) rotate(8deg); filter: saturate(2) brightness(1.5) drop-shadow(0 0 120px #fff); }
  75% { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes halo-warp-burst {
  0% { transform: scale(1); opacity: 0.5; }
  40% { transform: scale(2.8); opacity: 0.9; filter: blur(70px); }
  100% { transform: scale(4.2); opacity: 0; }
}

/* ==========================================================================
   ASTRONAUTS & DEGEN ENTITIES
   ========================================================================== */

.astronaut-field {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}

.space-vector {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size, 48px);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  filter: drop-shadow(0 0 12px rgba(200, 255, 0, 0.25));
  opacity: 0.8;
  transition: opacity 0.25s, filter 0.25s;
}

.space-vector img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.8));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.space-vector:hover {
  opacity: 1;
  filter: drop-shadow(0 0 20px var(--acid));
}

.space-vector:hover img {
  transform: scale(1.25) rotate(12deg);
}

.quote-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.85);
  background: rgba(5, 10, 4, 0.94);
  border: 1.5px solid var(--acid);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 18px rgba(200, 255, 0, 0.4);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 50;
}

.quote-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--acid) transparent transparent transparent;
}

.space-vector:hover .quote-bubble,
.space-vector.show-quote .quote-bubble {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Astronaut floating */
.ast-1 { animation: ast-float-1 7s ease-in-out infinite; }
.ast-2 { animation: ast-float-2 8.5s ease-in-out infinite; }
.ast-3 { animation: ast-float-1 6.2s -2s ease-in-out infinite; }
.ast-4 { animation: ast-float-2 9s -3s ease-in-out infinite; }
.ast-5 { animation: ast-float-1 7.8s -4s ease-in-out infinite; }
.ast-6 { animation: ast-float-2 8s -1.5s ease-in-out infinite; }
.sat-1 { animation: sat-drift 11s ease-in-out infinite; }
.shut-1 { animation: shuttle-glide 13s ease-in-out infinite; }

@keyframes ast-float-1 {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  50% { transform: translate(calc(var(--x) + 12px), calc(var(--y) - 18px)) rotate(calc(var(--r) + 12deg)); }
}

@keyframes ast-float-2 {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  50% { transform: translate(calc(var(--x) - 14px), calc(var(--y) + 16px)) rotate(calc(var(--r) - 10deg)); }
}

@keyframes sat-drift {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  50% { transform: translate(calc(var(--x) + 18px), calc(var(--y) + 14px)) rotate(calc(var(--r) + 20deg)); }
}

@keyframes shuttle-glide {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); }
  50% { transform: translate(calc(var(--x) - 22px), calc(var(--y) - 12px)) rotate(calc(var(--r) - 6deg)); }
}

.is-warping .space-vector {
  animation: pull-to-uranus 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pull-to-uranus {
  0% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0.8; }
  50% { transform: translate(calc(var(--x) * 0.4), calc(var(--y) * 0.4)) rotate(calc(var(--r) + 180deg)) scale(0.6); opacity: 1; }
  85% { transform: translate(0, 0) rotate(540deg) scale(0.1); opacity: 0.2; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); opacity: 0.8; }
}

/* ==========================================================================
   BOTTOM DOCK & LAUNCH BAR
   ========================================================================== */

.dock {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 50px) max(18px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.dock * {
  pointer-events: auto;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.socials a:hover {
  color: var(--acid);
  border-color: var(--acid);
  background: rgba(200, 255, 0, 0.12);
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.3);
  transform: translateY(-2px);
}

.socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.launch-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 6px 6px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.contract-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
}

.contract-label {
  font-size: 12px;
  color: var(--acid);
  font-weight: 700;
  text-transform: uppercase;
}

.contract-status {
  font-size: 13px;
  color: #d2dbcb;
  font-weight: 600;
}

.launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--acid);
  border-radius: 10px;
  color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(200, 255, 0, 0.4);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.launch-btn:hover {
  background: #dcff45;
  box-shadow: 0 0 32px rgba(200, 255, 0, 0.7);
  transform: translateY(-2px) scale(1.03);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.launch-btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 860px) {
  .topbar {
    padding: 14px 16px;
  }
  .sound-label {
    display: none;
  }
  .signal {
    display: none;
  }
  .stage-copy {
    top: 12%;
    width: 92vw;
  }
  .stage h1 {
    font-size: clamp(44px, 12vw, 72px);
  }
  .planet-button {
    width: min(82vw, 360px);
    margin-top: 4vh;
  }
  .ast-3, .sat-1, .shut-1 {
    display: none;
  }
  .dock {
    padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  }
  .launch-bar {
    gap: 10px;
    padding: 4px;
  }
  .contract-info {
    display: none;
  }
  .launch-btn {
    padding: 10px 16px;
    font-size: 12px;
  }
  .socials a {
    padding: 0 12px;
  }
  .socials a span {
    display: none;
  }
}

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