/* One brief celebration per completed round. It never captures clicks. */
.confetti-rain { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 50; contain: strict; }
.confetti-piece { position: absolute; top: -35px; width: var(--size); height: var(--size); opacity: 0; animation: confetti-fall var(--duration) var(--delay) linear both; }
.confetti-piece-burst { left: 50%; top: 48%; animation-name: confetti-burst; animation-timing-function: cubic-bezier(.12,.65,.35,1); }
.confetti-shape { display: block; width: 100%; height: 100%; font-size: var(--size); line-height: 1; text-align: center; }
.confetti-shape-0, .confetti-shape-1 { text-shadow: 0 0 6px currentColor; }
.confetti-shape-2 { height: 55%; border-radius: 2px; background: currentColor; }
.confetti-shape-3 { width: 70%; height: 70%; border-radius: 50%; background: currentColor; }
@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -15px, 0) rotate(0deg); }
  8% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift), calc(100vh + 70px), 0) rotate(var(--spin)); }
}
.victory-burst { position: fixed; inset: 0; z-index: 51; display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.victory-burst-card { width: min(780px, calc(100vw - 24px)); text-align: center; padding: 34px 18px 42px; border-radius: 46%; background: radial-gradient(ellipse, #42255ef5 0%, #2a194ac9 45%, #26174700 72%); color: #ffe5a4; font-family: var(--heading); line-height: 1.25; animation: victory-pop 7.8s .3s both; text-shadow: 0 4px 2px #28132a, 0 0 26px #fbd26f7a; }
.victory-burst-sparkles { display: block; color: #ffb0da; font-size: clamp(24px, 4vw, 40px); letter-spacing: 18px; margin-left: 18px; }
.victory-burst-card strong { display: block; font-size: clamp(60px, 11vw, 110px); font-weight: 400; margin: 5px 0 12px; }
.victory-burst-text { display: block; font-size: clamp(23px, 4.5vw, 46px); color: #fff6da; }
@keyframes confetti-burst {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.2); }
  8%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--burst-x), var(--burst-y), 0) rotate(var(--spin)) scale(.8); }
}
@keyframes victory-pop {
  0% { opacity: 0; transform: scale(.12) rotate(-9deg); }
  9% { opacity: 1; transform: scale(1.13) rotate(3deg); }
  15% { opacity: 1; transform: scale(.96) rotate(-1deg); }
  21%, 92% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: translateY(-25px) scale(.94); }
}
@media (prefers-reduced-motion: reduce) {
  .confetti-rain { display: none; }
  .confetti-piece { animation: none; }
  .victory-burst-card { animation: none; }
}
.fruit-shape svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 3px #37244c88) drop-shadow(0 0 4px #ffe7b53a); }
.victory-fruits .victory-burst-card { animation-duration: 9s; }
.victory-fruits .victory-burst-card strong { font-size: clamp(40px, 8vw, 87px); }
