/* =========================================================================
   yumetriip.de — animations.css
   ========================================================================= */

/* Confetti CSS para estado WINNER */
.vf-result.is-winner .vf-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.vf-confetti span {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 14px;
  opacity: 0;
  animation: confettiFall 4.5s ease-out forwards;
}
.vf-confetti span:nth-child(1)  { left:  5%; background: var(--drache); animation-delay: 0s; }
.vf-confetti span:nth-child(2)  { left: 14%; background: var(--gold);   animation-delay: 0.2s; }
.vf-confetti span:nth-child(3)  { left: 23%; background: var(--sakura); animation-delay: 0.4s; }
.vf-confetti span:nth-child(4)  { left: 32%; background: var(--drache); animation-delay: 0.1s; }
.vf-confetti span:nth-child(5)  { left: 41%; background: var(--gold);   animation-delay: 0.5s; }
.vf-confetti span:nth-child(6)  { left: 50%; background: var(--sakura); animation-delay: 0.3s; }
.vf-confetti span:nth-child(7)  { left: 59%; background: var(--drache); animation-delay: 0.6s; }
.vf-confetti span:nth-child(8)  { left: 68%; background: var(--gold);   animation-delay: 0.2s; }
.vf-confetti span:nth-child(9)  { left: 77%; background: var(--sakura); animation-delay: 0.4s; }
.vf-confetti span:nth-child(10) { left: 86%; background: var(--drache); animation-delay: 0.7s; }
.vf-confetti span:nth-child(11) { left: 92%; background: var(--gold);   animation-delay: 0.1s; }
.vf-confetti span:nth-child(12) { left: 38%; background: var(--sakura); animation-delay: 0.8s; }

@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(280px) rotate(720deg); opacity: 0; }
}

/* Hanko stamp pulsing (subtle) — opcional para futuro */
@keyframes hankoPulse {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50%      { transform: scale(1.04) rotate(-8deg); }
}

/* Reduced motion: desactiva todo */
@media (prefers-reduced-motion: reduce) {
  .vf-confetti, .vf-result.is-winner::before { display: none !important; }
}
