/* =====================================================================
 * ninja-click.css  -  style cho hieu ung click (ring / ripple / spark)
 * (dung kem public/js/ninja-click.js)
 * [v3.2] DA XOA style nut toggle floating + panel cai dat (yeu cau UI),
 *        chi giu lai lop hieu ung click (#ninja-fx-layer).
 * ===================================================================== */

/* Lop chua hieu ung (fixed, khong nhan su kien) */
#ninja-fx-layer{
  position: fixed; inset: 0; z-index: 2147483000;
  pointer-events: none; overflow: visible;
}
.ninja-ring{
  position: fixed; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; border: 2px solid #22d3ee;
  transform: translateZ(0) scale(.4); opacity: .9;
  animation: ninjaRing .6s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes ninjaRing{
  0%   { transform: scale(.3); opacity: .95; }
  100% { transform: scale(2.6); opacity: 0; }
}
.ninja-ripple{
  position: fixed; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; opacity: .55;
  transform: translateZ(0) scale(.2);
  animation: ninjaRipple .6s ease-out forwards;
}
@keyframes ninjaRipple{
  0%   { transform: scale(.2); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.ninja-spark{
  position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: #22d3ee;
  transform: translateZ(0);
  animation: ninjaSpark .5s ease-out forwards;
}
@keyframes ninjaSpark{
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ton trong prefers-reduced-motion: tat animation ring/ripple */
@media (prefers-reduced-motion: reduce){
  .ninja-ring, .ninja-ripple, .ninja-spark{ animation-duration: .001s; }
}
