.countdown-body {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 108%, rgba(88, 128, 198, 0.2), transparent 65%),
    radial-gradient(ellipse 55% 42% at 80% 6%, rgba(238, 226, 196, 0.1), transparent 62%),
    linear-gradient(180deg, #0d1a3a 0%, #0a132b 46%, #060b1a 100%);
}

/* soft moon glow, echoing the illustration that is revealed later */
.countdown-body::before {
  content: "";
  position: fixed;
  top: -14vmin;
  right: -4vmin;
  width: 52vmin;
  height: 52vmin;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(245, 233, 205, 0.2) 0%,
    rgba(245, 233, 205, 0.06) 42%,
    transparent 70%
  );
  filter: blur(8px);
  animation: moon-float 16s ease-in-out infinite alternate;
  pointer-events: none;
}

/* a quiet field of stars */
.countdown-body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.75;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 16%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 28% 9%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.6px 1.6px at 43% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 61% 12%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.3px 1.3px at 79% 27%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 88% 8%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.4px 1.4px at 8% 41%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 22% 55%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.2px 1.2px at 91% 48%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 70% 62%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 34% 74%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 55% 84%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.2px 1.2px at 82% 79%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 14% 90%, rgba(255, 255, 255, 0.3), transparent);
  animation: star-twinkle 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.countdown {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding: 0 14px;
  transform: translateY(-1.5vh);
}

.unit {
  display: inline-block;
  min-width: 2.05ch;
  text-align: center;
  font-family: "SF Pro Display", "Helvetica Neue", "Segoe UI", -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 200;
  font-size: clamp(46px, 12.4vw, 132px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: #f5ecd8;
  text-shadow:
    0 0 30px rgba(244, 236, 217, 0.28),
    0 0 90px rgba(150, 185, 240, 0.14);
}

.unit.tick {
  animation: digit-tick 0.45s cubic-bezier(0.22, 0.75, 0.26, 1);
}

.sep {
  font-size: clamp(18px, 5.2vw, 54px);
  font-weight: 100;
  color: rgba(245, 236, 216, 0.34);
  padding: 0 clamp(2px, 1vw, 12px);
  animation: sep-breathe 2.6s ease-in-out infinite;
}

@keyframes digit-tick {
  0% {
    opacity: 0.45;
    transform: translateY(-10%);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sep-breathe {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.65;
  }
}

@keyframes moon-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(2.5vmin);
  }
}

@keyframes star-twinkle {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-body::before,
  .countdown-body::after,
  .sep,
  .unit.tick {
    animation: none;
  }
}
