/* KUBER SaaS Lottery V9: continuous period rollover, visible win animation, clean TRX balls */

/* The runtime reapplies this class every time a new result receipt becomes visible. */
.WinningTip__C-body.kuber-result-live {
  transform-origin: 50% 50% !important;
  will-change: transform, opacity, filter !important;
}
.WinningTip__C-body.kuber-win-live-v9 {
  animation: kuberWinningReceiptV9 .62s cubic-bezier(.18,.85,.22,1.12) both !important;
}
.WinningTip__C-body.kuber-loss-live-v9 {
  animation: kuberLossReceiptV9 .38s ease-out both !important;
}
.WinningTip__C-body.kuber-win-live-v9::after {
  content: "" !important;
  position: absolute !important;
  inset: .55rem .42rem .70rem !important;
  border-radius: 1.05rem !important;
  pointer-events: none !important;
  z-index: 12 !important;
  box-shadow: 0 0 0 0 rgba(255,216,72,.72), 0 0 38px 12px rgba(255,108,63,.28) !important;
  animation: kuberWinningGlowV9 1.25s ease-out both !important;
}
@keyframes kuberWinningReceiptV9 {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.76) rotate(-1.6deg); filter: brightness(1.35); }
  48% { opacity: 1; transform: translate(-50%,-50%) scale(1.075) rotate(.7deg); filter: brightness(1.12); }
  72% { transform: translate(-50%,-50%) scale(.985) rotate(-.25deg); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0); filter: brightness(1); }
}
@keyframes kuberLossReceiptV9 {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.90); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
@keyframes kuberWinningGlowV9 {
  0% { opacity: 0; transform: scale(.82); box-shadow: 0 0 0 0 rgba(255,216,72,.78), 0 0 12px 3px rgba(255,108,63,.22); }
  38% { opacity: 1; box-shadow: 0 0 0 .16rem rgba(255,216,72,.28), 0 0 46px 16px rgba(255,108,63,.34); }
  100% { opacity: 0; transform: scale(1.08); box-shadow: 0 0 0 .34rem rgba(255,216,72,0), 0 0 64px 24px rgba(255,108,63,0); }
}

.kuber-win-confetti-v9 {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  pointer-events: none !important;
}

/* TRX balls are handled by kuber-trx-hash-v48.css (clear PNG, no color overlay). */

/* Avoid the result overlay being hidden behind chat/floating widgets. */
.WinningTip__C { z-index: 1000000 !important; }
.WinningTip__C-body { z-index: 2 !important; }

@media (prefers-reduced-motion: reduce) {
  .WinningTip__C-body.kuber-win-live-v9,
  .WinningTip__C-body.kuber-loss-live-v9,
  .WinningTip__C-body.kuber-win-live-v9::after {
    animation-duration: .01ms !important;
  }
}
