/* css/countdown.css — hero layout, timer boxes, fade transitions */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  gap: 2.5rem;
}

.greeting {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin: 0;
  letter-spacing: 0.01em;
  transition: opacity 0.8s ease;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.5rem;
  padding: 1.1rem 0.9rem 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  box-shadow: 0 10px 30px var(--rose-soft);
  backdrop-filter: blur(6px);
}

.value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.label {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Phones: 2×2 grid */
@media (max-width: 479px) {
  .countdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 20rem;
  }
}

/* Celebration state */
.celebration {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease 0.4s, transform 1s ease 0.4s;
}

.celebration-message {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin: 0;
}

body.is-celebrating .greeting {
  opacity: 0;
}

body.is-celebrating .countdown {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

body.is-celebrating .celebration {
  opacity: 1;
  transform: translateY(0);
}
