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

:root {
  --bg: #0a0a0f;
  --gold: #f5c842;
  --gold-glow: rgba(245, 200, 66, 0.25);
  --gold-dim: rgba(245, 200, 66, 0.12);
  --text: #f0ece0;
  --text-dim: rgba(240, 236, 224, 0.55);
  --panel-bg: #12121a;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  overflow-x: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

#confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.confetti-piece {
  position: absolute;
  bottom: -30px;
  opacity: 0;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg);       opacity: 0;   }
  8%   { opacity: 0.85; }
  88%  { opacity: 0.65; }
  100% { transform: translateY(-115vh) rotate(720deg); opacity: 0;   }
}

main {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: 920px;
}

.title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-shadow:
    0 0 40px rgba(245, 200, 66, 0.55),
    0 0 90px rgba(245, 200, 66, 0.2);
  margin-bottom: 0.6rem;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.12em;
  margin-bottom: 3rem;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid rgba(245, 200, 66, 0.45);
  border-radius: 14px;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 3.5vw, 2.25rem);
  box-shadow:
    0 0 24px var(--gold-dim),
    inset 0 0 24px rgba(245, 200, 66, 0.03);
  min-width: clamp(90px, 18vw, 140px);
}

.number {
  display: block;
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(245, 200, 66, 0.45);
}

.number.pulse {
  animation: pulse-once 0.18s ease;
}

@keyframes pulse-once {
  0%   { transform: scale(1);    }
  45%  { transform: scale(1.07); }
  100% { transform: scale(1);    }
}

.label {
  display: block;
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  letter-spacing: 0.28em;
  color: var(--text-dim);
  margin-top: 0.8rem;
  font-family: Arial, sans-serif;
  font-weight: 600;
}

.sep {
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--gold);
  opacity: 0.35;
  font-weight: 300;
  padding-top: clamp(0.6rem, 2vw, 1.2rem);
  line-height: 1;
}

.celebration {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.93);
  z-index: 20;
}

.celebration.hidden {
  display: none;
}

.celebration-text {
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 700;
  color: var(--gold);
  text-shadow:
    0 0 60px rgba(245, 200, 66, 0.9),
    0 0 120px rgba(245, 200, 66, 0.4);
  animation: glow-pulse 2.2s ease-in-out infinite;
  line-height: 1.1;
}

.celebration-sub {
  font-size: clamp(1.1rem, 3vw, 2rem);
  color: var(--text-dim);
  margin-top: 1.5rem;
  font-style: italic;
  letter-spacing: 0.08em;
}

@keyframes glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 60px rgba(245, 200, 66, 0.9),
      0 0 120px rgba(245, 200, 66, 0.4);
  }
  50% {
    text-shadow:
      0 0 100px rgba(245, 200, 66, 1),
      0 0 220px rgba(245, 200, 66, 0.55);
  }
}
