.ecg-confetti-host { position: relative; }
.ecg-confetti {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; contain: strict;
  pointer-events: none; user-select: none;
  animation: ecg-confetti-finish 1080ms linear both;
}
.ecg-confetti-piece {
  position: absolute; width: 5px; height: 10px; border-radius: 1px;
  background: #d03450;
  animation: ecg-confetti-arc 890ms linear both;
}
.ecg-confetti-piece:nth-child(3n + 2) { background: #1476ac; width: 4px; height: 9px; }
.ecg-confetti-piece:nth-child(3n) { background: #d99a2d; width: 6px; height: 6px; }
.ecg-confetti-piece:nth-child(4n) {
  width: 9px; height: 9px; background: #b57818;
  clip-path: polygon(50% 0,62% 37%,100% 50%,62% 63%,50% 100%,38% 63%,0 50%,38% 37%);
}
@keyframes ecg-confetti-arc {
  0% { opacity: 0; transform: translate(0,0) rotate(0) scale(.35); }
  12% { opacity: 1; }
  42% { transform: translate(calc(var(--dx) * .64),var(--peak-y)) rotate(var(--turn)) scale(.95); }
  75% { opacity: .94; }
  100% { opacity: 0; transform: translate(var(--dx),var(--fall-y)) rotate(calc(var(--turn) * 1.8)) scale(.65); }
}
@keyframes ecg-confetti-finish { from { opacity: 1; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ecg-confetti,.ecg-confetti-piece { animation: none; display: none; }
}

