/**
 * Player WOW pass — presentation-only polish (no math/RTP changes).
 * Variants A/B/C documented in reports/player_wow_lab/HUD_WIN_FEEDBACK_ABC.md
 */

/* ── HUD win message (winner: variant B — gold roll + glow) ── */
.slot-hud-message {
  transition:
    color 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 0.28s ease;
}

.slot-hud-message--win {
  color: #fde68a;
  text-shadow:
    0 0 12px rgba(251, 191, 36, 0.55),
    0 0 28px rgba(245, 158, 11, 0.25);
  font-weight: 700;
}

.slot-hud-message--tease {
  color: #c4b5fd;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.45);
}

.slot-hud-message--bonus {
  color: #7dd3fc;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.slot-hud-message--pulse {
  animation: slot-hud-message-pop 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slot-hud-message-pop {
  0% {
    transform: translateY(6px) scale(0.94);
    opacity: 0.35;
  }
  55% {
    transform: translateY(-2px) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.slot-hud-balance--win-pulse {
  animation: slot-hud-balance-flash 0.65s ease-out;
}

@keyframes slot-hud-balance-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.55);
    transform: scale(1);
  }
  40% {
    box-shadow: 0 0 18px 4px rgba(251, 191, 36, 0.35);
    transform: scale(1.04);
  }
  100% {
    box-shadow: none;
    transform: scale(1);
  }
}

/* ── Buy bonus choice hover (winner: lift + rim glow) ── */
.buy-bonus-choice {
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.buy-bonus-choice:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 215, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.55);
}

.buy-bonus-choice:active:not(:disabled) {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.08s;
}

/* ── Info tab crossfade ── */
.slot-info-page {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.slot-info-page--leaving {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.slot-info-page--entering {
  animation: slot-info-page-enter 0.18s ease-out forwards;
}

@keyframes slot-info-page-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Sound popup slide (not full modal) ── */
.slot-hud-sound-popup {
  transition:
    opacity 0.18s ease,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom right;
}

.slot-hud-sound-popup--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.slot-hud-sound-popup--hiding,
.slot-hud-sound-popup:not(.slot-hud-sound-popup--visible):not([hidden]) {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
}

/* ── Companion sidebar teaser (replaces flat placeholder) ── */
.showcase-companion-teaser-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 0.85rem 0.75rem 0.95rem;
  background: linear-gradient(145deg, rgba(30, 27, 75, 0.92), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

.showcase-companion-teaser-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 30% 20%, rgba(167, 139, 250, 0.22), transparent 55%);
  animation: companion-teaser-glow 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes companion-teaser-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.showcase-companion-teaser-badge {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  margin-bottom: 0.35rem;
}

.showcase-companion-teaser-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  color: #f8fafc;
}

.showcase-companion-teaser-card p {
  margin: 0;
  font-size: 0.68rem;
  color: #94a3b8;
  line-height: 1.35;
}

.showcase-companion-teaser-pips {
  display: flex;
  gap: 0.28rem;
  margin-top: 0.55rem;
}

.showcase-companion-teaser-pips span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.35);
  animation: companion-teaser-pip 1.4s ease-in-out infinite;
}

.showcase-companion-teaser-pips span:nth-child(2) {
  animation-delay: 0.18s;
}

.showcase-companion-teaser-pips span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes companion-teaser-pip {
  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    background: rgba(167, 139, 250, 0.75);
  }
}

/* ── Per-bonus intro rim accent (P1-06) ── */
.bonus-intro-overlay--hansolo .bonus-intro-glow {
  background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.35), transparent 62%);
  box-shadow: inset 0 0 120px rgba(56, 189, 248, 0.12);
}

.bonus-intro-overlay--kissik .bonus-intro-glow {
  background: radial-gradient(circle at 50% 40%, rgba(244, 114, 182, 0.38), transparent 62%);
  box-shadow: inset 0 0 120px rgba(244, 114, 182, 0.14);
}

.bonus-intro-overlay--viking .bonus-intro-glow {
  background: radial-gradient(circle at 50% 40%, rgba(251, 191, 36, 0.32), transparent 62%);
  box-shadow: inset 0 0 120px rgba(251, 191, 36, 0.12);
}

.bonus-intro-overlay--ujn .bonus-intro-glow {
  background: radial-gradient(circle at 50% 40%, rgba(74, 222, 128, 0.28), transparent 62%);
  box-shadow: inset 0 0 120px rgba(74, 222, 128, 0.1);
}

.bonus-intro-overlay--hansolo .bonus-intro-panel {
  border-color: rgba(56, 189, 248, 0.45);
}

.bonus-intro-overlay--kissik .bonus-intro-panel {
  border-color: rgba(244, 114, 182, 0.45);
}

.bonus-intro-overlay--viking .bonus-intro-panel {
  border-color: rgba(251, 191, 36, 0.45);
}

.bonus-intro-overlay--ujn .bonus-intro-panel {
  border-color: rgba(74, 222, 128, 0.4);
}

/* ── Bonus summary stage pull-back (P1-04) ── */
[data-game-stage-aspect].bonus-summary-stage-pullback,
[data-game-stage].bonus-summary-stage-pullback {
  transform-origin: center center;
  will-change: transform;
}

/* ── Sidebar collapse smooth ── */
.showcase-shell .showcase-sidebar {
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .slot-hud-message--pulse,
  .showcase-companion-teaser-glow,
  .showcase-companion-teaser-pips span,
  .slot-info-page--entering {
    animation: none !important;
  }

  .buy-bonus-choice:hover:not(:disabled) {
    transform: none;
  }
}
