:root {
  --glow: #7fd4ff;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, #1a1440 0%, #0b0a24 45%, #030310 100%);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #dfe9ff;
}

#space {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Hero text ---------- */
.hero {
  position: fixed;
  top: 8vh;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 3;
}

.title {
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  font-weight: 200;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  background: linear-gradient(180deg, #ffffff 0%, #9fdcff 55%, #3f6fd8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(127, 212, 255, 0.45));
  animation: title-shimmer 6s ease-in-out infinite;
}

@keyframes title-shimmer {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(127, 212, 255, 0.45)); }
  50%      { filter: drop-shadow(0 0 44px rgba(127, 212, 255, 0.8)); }
}

.subtitle {
  margin-top: 1.2rem;
  font-size: clamp(0.8rem, 2vw, 1.05rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8ba4d8;
  opacity: 0.85;
}

/* ---------- Spaceship ---------- */
.ship {
  position: fixed;
  left: 50%;
  bottom: 6vh;
  width: clamp(110px, 16vw, 200px);
  transform: translateX(-50%);
  z-index: 2;
  will-change: transform;
  filter: drop-shadow(0 0 30px rgba(127, 212, 255, 0.25));
}

#ship-svg { width: 100%; height: auto; display: block; overflow: visible; }

.flame {
  transform-origin: center 260px;
  animation: flicker 0.12s ease-in-out infinite alternate;
}
.flame.f2 { animation-delay: 0.06s; }
.flame.f3 { animation-delay: 0.03s; animation-duration: 0.1s; }

@keyframes flicker {
  from { transform: scaleY(0.82) scaleX(1); opacity: 0.85; }
  to   { transform: scaleY(1.12) scaleX(0.9); opacity: 1; }
}

.navlight { animation: blink 1.4s steps(1) infinite; }
.navlight.right { animation-delay: 0.7s; }

@keyframes blink {
  0%, 55%  { opacity: 1; }
  56%, 100%{ opacity: 0.15; }
}

/* ---------- Hint ---------- */
.hint {
  position: fixed;
  bottom: 2.5vh;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #5f7099;
  z-index: 3;
  pointer-events: none;
  animation: hint-pulse 3s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  .title, .flame, .navlight, .hint { animation: none; }
}
