/* A temporary, decorative overlay: answers and navigation remain clickable. */
.practice-confetti {
  position: fixed;
  pointer-events: none;
  z-index: 30;
}

@media (prefers-reduced-motion: reduce) {
  .practice-confetti { display: none; }
}

/* The choice of what a right answer sets off: Confetti, Glow or Off (Ben, 15 Nov 2026). It sits under the
   question squares; the buttons share the footer's Auto / Light / Dark look (design.css). */
.celebrate { margin-top: 22px; }
.celebrate__label { margin: 0 0 8px; color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.celebrate__switch button { cursor: pointer; font-family: inherit; }

/* Glow: the question's box lightens for a moment and settles back. A fade, not movement, so it is
   shown with reduced motion too when a student has chosen it. */
.question.is-glowing { animation: celebrate-glow 1.8s ease-out; }
@keyframes celebrate-glow {
  0% { background-color: var(--surface); box-shadow: 0 0 0 0 rgb(var(--celebrate-ring, 69 185 135) / 0), var(--shadow); }
  18% { background-color: var(--celebrate-glow, #e3f5e9); box-shadow: 0 0 0 3px rgb(var(--celebrate-ring, 69 185 135) / .45), var(--shadow); }
  100% { background-color: var(--surface); box-shadow: 0 0 0 3px rgb(var(--celebrate-ring, 69 185 135) / 0), var(--shadow); }
}
html[data-theme="forest"] .question { --celebrate-glow: #1f4d3a; }
