/* Fanfare Overlay & Celebration Particles */
.fanfare-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 41, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fanfare-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.fanfare-card {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border: 2px solid var(--accent-amber);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.3);
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fanfare-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
}

.fanfare-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-amber);
  letter-spacing: 0.05em;
}

.fanfare-subtitle {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.fanfare-stats {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fanfare-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fanfare-stat-row strong {
  color: var(--accent-cyan);
}

.fanfare-next-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-amber), #d97706);
  color: #000;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  animation: explode 1.2s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes explode {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}
