.birthday-home {
  background: linear-gradient(160deg, #102039 0%, #101522 100%);
}

body:not(.dark-mode) .birthday-home {
  background: linear-gradient(160deg, #e8f4ff 0%, #f6fbff 100%);
}

.birthday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.birthday-stat {
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
}

.birthday-stat strong {
  color: #89bbff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(47, 125, 225, 0.2);
  border: 1px solid rgba(93, 154, 233, 0.5);
  color: #cde2ff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.birthday-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.list-card {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-card li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
}

.surprise-wrap {
  position: relative;
}

.surprise-message {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(55, 214, 122, 0.45);
  background: rgba(55, 214, 122, 0.12);
}

#confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10%;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall 1.8s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(130%) rotate(320deg);
    opacity: 0;
  }
}

.wishes-grid {
  margin-top: 1rem;
}

.wish-card .wish-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0;
}

.error-text {
  color: #ff9b9b;
}

.archive-banner {
  border: 1px solid rgba(244, 202, 100, 0.45);
  background: rgba(244, 202, 100, 0.12);
  border-radius: 0.75rem;
  padding: 0.95rem;
}

[data-coming-only][hidden],
[data-live-only][hidden],
[data-archive-only][hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .confetti-piece {
    animation-duration: 0.6s;
  }
}
