/* ───── SHAKE ───── */
@keyframes gvShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(calc(var(--gv-shake-intensity, 3px) * -1), 0); }
  40% { transform: translate(var(--gv-shake-intensity, 3px), 0); }
  60% { transform: translate(calc(var(--gv-shake-intensity, 3px) * -0.5), 0); }
  80% { transform: translate(calc(var(--gv-shake-intensity, 3px) * 0.5), 0); }
}
.gv-shake {
  animation: gvShake 0.35s ease-in-out !important;
}

/* ───── FLASH клетки ───── */
@keyframes gvFlash {
  0% { box-shadow: 0 0 0 0 var(--gv-flash-color, #fbbf24); }
  40% { box-shadow: 0 0 30px 8px var(--gv-flash-color, #fbbf24), inset 0 0 20px rgba(255,255,255,0.5); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.gv-flash {
  animation: gvFlash 0.5s ease-out !important;
}

/* ───── PARTICLES ───── */
.gv-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  animation: gvParticle 0.8s ease-out forwards;
  box-shadow: 0 0 6px currentColor;
}
@keyframes gvParticle {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--gv-dx, 50px), var(--gv-dy, 50px)) scale(0.3); opacity: 0; }
}

/* ───── CONFETTI ───── */
.gv-confetti {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 99999;
  animation: gvConfetti 2.5s linear forwards;
}
@keyframes gvConfetti {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ───── PANIC (таймер ≤5с) ───── */
@keyframes gvPanic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 25px 6px rgba(239,68,68,0.85); }
}
.gv-panic {
  animation: gvPanic 0.6s ease-in-out infinite !important;
  border-radius: 16px !important;
}
