/**
 * Premium Elite 4-Hour Pass — presentation-only (no math/RTP).
 * Target: ELK/Hacksaw-tier session feel — living world, win vignette, buy shop, loading ritual.
 */

/* ── Soft idle during spin (30% ambient vs full off) ── */
.playground--player-view.slot-idle-motion-soft .game-stage-bg-glow,
.playground--player-view.slot-idle-motion-soft .game-stage-bg-particles,
.playground--player-view.slot-idle-motion-soft .game-stage-bg-grid,
.playground--player-view.slot-idle-motion-soft .game-stage-bg-neon {
  animation-play-state: running !important;
  opacity: 0.32 !important;
  filter: saturate(0.85);
}

.playground--player-view.slot-idle-motion-soft .camera-director-host.camera-breathing {
  animation-duration: calc(var(--camera-breathing-period, 8200ms) * 1.35);
  --camera-breathing-amplitude: 0.0035;
}

/* ── Win moment vignette on stage ── */
.game-stage-aspect.win-moment-vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
  border-radius: inherit;
  animation: win-moment-vignette-flash 0.72s ease-out forwards;
}

.game-stage-aspect.win-moment-vignette--soft::after {
  background: radial-gradient(circle at 50% 42%, rgba(251, 191, 36, 0.14), transparent 62%);
}

.game-stage-aspect.win-moment-vignette--medium::after {
  background: radial-gradient(circle at 50% 40%, rgba(251, 191, 36, 0.22), rgba(168, 85, 247, 0.08) 55%, transparent 68%);
}

.game-stage-aspect.win-moment-vignette--strong::after {
  background: radial-gradient(circle at 50% 38%, rgba(255, 215, 0, 0.32), rgba(244, 114, 182, 0.12) 48%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(251, 191, 36, 0.15);
}

@keyframes win-moment-vignette-flash {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* ── Viking curtain slam (stage flash) ── */
.game-stage-aspect.viking-curtain-slam {
  animation: viking-curtain-slam 0.48s ease-out;
}

@keyframes viking-curtain-slam {
  0% {
    filter: brightness(1);
  }
  18% {
    filter: brightness(1.35) contrast(1.08);
  }
  100% {
    filter: brightness(1);
  }
}

/* ── Buy bonus shop — volatility badges + price ── */
.buy-bonus-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.buy-bonus-choice::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.buy-bonus-choice:hover:not(:disabled)::before {
  transform: translateX(120%);
}

.buy-bonus-choice-title {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.buy-bonus-choice-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  justify-content: space-between;
}

.buy-vol-badge {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.1rem 0.42rem;
  font-weight: 700;
}

.buy-vol-badge--low {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.buy-vol-badge--medium {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.buy-vol-badge--high {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.buy-vol-badge--extreme {
  color: #f0abfc;
  background: rgba(192, 38, 211, 0.14);
  border: 1px solid rgba(192, 38, 211, 0.4);
}

.buy-bonus-price {
  font-size: 0.72rem;
  color: #fde68a;
  font-weight: 700;
}

.buy-bonus-choice--hansolo {
  border-left: 3px solid rgba(56, 189, 248, 0.65);
}

.buy-bonus-choice--kissik {
  border-left: 3px solid rgba(244, 114, 182, 0.65);
}

.buy-bonus-choice--viking {
  border-left: 3px solid rgba(251, 191, 36, 0.65);
}

.buy-bonus-choice--ujn {
  border-left: 3px solid rgba(74, 222, 128, 0.55);
}

.buy-bonus-choice--random {
  border-left: 3px solid rgba(167, 139, 250, 0.65);
}

/* ── Loading progress + CTA pulse ── */
.game-loading-progress {
  width: min(240px, 72vw);
  height: 4px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.game-loading-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a855f7, #fbbf24, #22d3ee);
  transition: width 0.35s ease-out;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

.game-loading-ritual-cta {
  animation: loading-cta-pulse 2.2s ease-in-out infinite;
}

.game-loading-tap-hint {
  margin: 0.35rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
  text-align: center;
}

@keyframes loading-cta-pulse {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(1);
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
    text-shadow: 0 0 18px rgba(251, 191, 36, 0.55);
  }
}

/* ── Modal buttons match HUD premium tokens ── */
.slot-modal .btn.primary {
  background: linear-gradient(180deg, #fde68a 0%, #d97706 100%);
  color: #1e1b4b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.25);
}

.slot-modal .btn.subtle {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.slot-hud-stat--win strong {
  color: #fde68a;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .game-loading-ritual-cta,
  .game-stage-aspect.win-moment-vignette::after,
  .game-stage-aspect.viking-curtain-slam {
    animation: none !important;
  }
}
