:root {
  --sky-0: #07060c;
  --sky-1: #14101f;
  --bone: #e8e4d9;
  --silver: #9fb0c8;
  --herb: #6b8f71;
  --font-display: "Italiana", "Times New Roman", serif;
  --font-phase: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "Syne", "Avenir Next", sans-serif;
}

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

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  color: var(--bone);
  background: radial-gradient(120% 80% at 50% 0%, var(--sky-1), var(--sky-0) 55%);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#stars {
  width: 100%;
  height: 100%;
  display: block;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--bone);
  text-shadow: 0 0 40px rgba(159, 176, 200, 0.25);
}

.moon-wrap {
  width: min(72vw, 280px);
  max-width: 100%;
  margin: 0.5rem 0 0.25rem;
  overflow: visible;
  animation: moon-breathe 6s ease-in-out infinite;
}

#moon {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

.moon-aura {
  fill: rgba(159, 176, 200, 0.12);
  filter: blur(6px);
}

.moon-dark {
  fill: #1c1a24;
}

.phase-name {
  margin: 0.5rem 0 0;
  font-family: var(--font-phase);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.06em;
}

.countdown-label {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--herb);
}

.countdown {
  margin: 0.35rem 0 0;
  max-width: 22rem;
  padding: 0 0.25rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(0.95rem, 2.8vw, 1.35rem);
  letter-spacing: 0.06em;
  line-height: 1.45;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@keyframes moon-breathe {
  0%,
  100% {
    filter: drop-shadow(0 0 18px rgba(159, 176, 200, 0.28));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 32px rgba(159, 176, 200, 0.45));
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .moon-wrap {
    animation: none;
    filter: drop-shadow(0 0 18px rgba(159, 176, 200, 0.28));
  }
}

@media (max-width: 380px) {
  .stage {
    padding: 1.5rem 1rem 2.5rem;
    gap: 0.6rem;
  }

  .brand {
    font-size: clamp(2.4rem, 12vw, 3.25rem);
  }

  .countdown {
    letter-spacing: 0.04em;
  }
}
