:root {
  --glow: 80;
  --breeze: 35;
  --accent: #9be7ff;
  --warm: #ffd98e;
  --ink: #05060f;
}

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

body {
  min-height: 100vh;
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
  color: #eef2ff;
  background: radial-gradient(circle at top, #16203a 0%, #0b0c1b 45%, #05060f 100%);
}

.scene {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 48px 0 64px;
  display: grid;
  gap: 32px;
}

.hero {
  text-align: center;
  display: grid;
  gap: 12px;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8c9ad0;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}

.subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: #c7cff6;
  line-height: 1.6;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.control {
  background: rgba(10, 14, 30, 0.6);
  border: 1px solid rgba(140, 154, 208, 0.2);
  padding: 14px 18px;
  border-radius: 999px;
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.control label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #98a4d8;
}

.control input[type="range"] {
  width: 160px;
}

button#lantern {
  border: none;
  background: linear-gradient(120deg, #7bc7ff, #f8b86a);
  color: #0b0c1b;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(123, 199, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button#lantern:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(123, 199, 255, 0.45);
}

.sky {
  position: relative;
  height: min(68vh, 560px);
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(155, 231, 255, 0.25), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(255, 217, 142, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(9, 16, 40, 0.9), rgba(5, 6, 15, 0.95));
  border: 1px solid rgba(140, 154, 208, 0.2);
}

.orbit {
  position: absolute;
  inset: 0;
}

.orb {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(155, 231, 255, 0.4));
  box-shadow: 0 0 calc(var(--glow) * 0.6px) rgba(155, 231, 255, 0.75);
  filter: drop-shadow(0 0 8px rgba(255, 217, 142, 0.5));
  opacity: 0.8;
  animation: drift var(--duration) linear infinite;
}

.orb.warm {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 217, 142, 0.45));
  box-shadow: 0 0 calc(var(--glow) * 0.7px) rgba(255, 217, 142, 0.75);
}

.seed {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, #9be7ff 50%, transparent 70%);
  box-shadow: 0 0 18px rgba(155, 231, 255, 0.85);
  animation: bloom 3.2s ease-out forwards;
}

.lantern {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle, #fff9e8 0%, #ffd98e 45%, rgba(255, 217, 142, 0.2) 70%);
  box-shadow: 0 0 18px rgba(255, 217, 142, 0.8);
  animation: rise 8s ease-in forwards;
}

.note {
  text-align: center;
  color: #a7b2e6;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(calc(var(--breeze) * 0.6px), calc(var(--breeze) * -0.4px), 0);
  }
  100% {
    transform: translate3d(calc(var(--breeze) * -0.3px), calc(var(--breeze) * 0.5px), 0);
  }
}

@keyframes bloom {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.4);
    opacity: 0.6;
  }
  100% {
    transform: scale(3.8);
    opacity: 0;
  }
}

@keyframes rise {
  0% {
    transform: translateY(20px) scale(0.8);
    opacity: 0.85;
  }
  100% {
    transform: translateY(-520px) scale(1.2);
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .controls {
    flex-direction: column;
  }

  .control {
    width: 100%;
    max-width: 320px;
  }

  .sky {
    height: 420px;
  }
}
