/* ==========================================================================
   Quiz Application Custom Stylesheet (play.evolvepune.com/quiz)
   Theme: Evolve Pune (Terracotta, Warm Paper, Fraunces Serif & Sora Sans)
   ========================================================================== */

/* Glassmorphism Panels */
.quiz-glass {
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hud-pill {
  background: rgba(245, 239, 230, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Option Card Styles */
.option-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.option-btn:hover:not(:disabled) {
  border-color: #C1502E;
  background-color: #F6E3DA;
  transform: translateY(-1px);
}

.option-btn.selected {
  border-color: #C1502E !important;
  background-color: #F6E3DA !important;
  box-shadow: 0 4px 14px rgba(193, 80, 46, 0.15);
}

/* Category Card Effects */
.category-card {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card:hover {
  transform: translateY(-3px);
}

/* Progress bar fill transition */
#quiz-progress-bar {
  transition: width 0.4s ease-out;
}

/* Pulse Keyframes */
@keyframes soft-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.9;
  }
}

.animate-soft-pulse {
  animation: soft-pulse 2.2s infinite ease-in-out;
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

/* Confetti particle styling */
.confetti-piece {
  position: absolute;
  width: 9px;
  height: 14px;
  background: #C1502E;
  top: -20px;
  opacity: 0;
  z-index: 100;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    top: -10px;
    transform: translateX(0) rotateZ(0deg);
  }
  100% {
    opacity: 0;
    top: 100vh;
    transform: translateX(120px) rotateZ(720deg);
  }
}
