* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #ffe4ec, #e8e7ff, #dff7ff);
  color: #222;
  overflow-x: hidden;
}

.card {
  width: min(720px, 100%);
  padding: 42px 28px;
  text-align: center;
  background: rgba(255,255,255,.9);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  position: relative;
  z-index: 2;
}

.emoji { font-size: 64px; animation: float 2.5s ease-in-out infinite; }
.eyebrow { letter-spacing: 3px; font-size: 12px; font-weight: 700; opacity: .6; }
h1 { margin: 8px 0; font-size: clamp(32px, 8vw, 60px); }
.subtitle { font-size: 20px; opacity: .75; }

.date {
  margin: 25px 0;
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 800;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown div {
  padding: 18px 8px;
  border-radius: 16px;
  background: #f5f5fa;
}

.countdown span {
  display: block;
  font-size: clamp(25px, 6vw, 42px);
  font-weight: 800;
}

.countdown small {
  opacity: .65;
}

.hint { margin-top: 28px; font-size: 17px; }

#birthdayNames {
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 800;
  line-height: 1.35;
  margin: 25px 0;
}

.birthday-name { display: block; }

.wish {
  font-size: 18px;
  line-height: 1.6;
}

.hidden { display: none !important; }

.error {
  margin-top: 20px;
  padding: 12px;
  border-radius: 10px;
  background: #ffe0e0;
  color: #9b0000;
}

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

.confetti-piece {
  position: absolute;
  top: -20px;
  font-size: 22px;
  animation: fall linear forwards;
}

@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: .8; }
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

@media (max-width: 520px) {
  .card { padding: 34px 18px; }
  .countdown { gap: 6px; }
  .countdown div { padding: 13px 4px; }
}
