/* Sticker slot machine overlay (OBS chroma #00FF00) */

.ov-slots-root {
  display: grid;
  place-items: center;
}

.ov-slots-stage {
  position: relative;
  width: min(92vw, 1100px);
  height: min(88vh, 720px);
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 1.1s ease;
}

.ov-slots-stage.is-gone {
  opacity: 0;
  pointer-events: none;
}

/* Intro */
.ov-slots-intro {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.9,.2,1);
}

.ov-slots-intro.is-in {
  opacity: 1;
  transform: scale(1);
}

.ov-slots-intro.is-out {
  opacity: 0;
  transform: scale(1.08);
}

.ov-slots-intro-text {
  margin: 0;
  text-align: center;
  font-size: clamp(42px, 8.5vw, 110px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow:
    0 0 24px rgba(255, 215, 64, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.65),
    0 2px 0 rgba(0, 0, 0, 0.45);
  max-width: 95%;
}

/* Machine */
.ov-slots-machine {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.9,.2,1);
  z-index: 2;
}

.ov-slots-machine.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ov-slots-machine.is-out {
  opacity: 0;
  transform: scale(0.92);
}

.ov-slots-machine-frame {
  width: min(90vw, 820px);
  padding: 18px 18px 22px;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(36, 48, 78, 0.96), rgba(10, 14, 26, 0.98));
  border: 3px solid rgba(255, 215, 96, 0.55);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 200, 64, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ov-slots-title {
  text-align: center;
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 950;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  color: #ffe08a;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ov-slots-reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ov-slots-reel {
  position: relative;
  height: min(34vh, 260px);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(45deg, #1a2336 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(-45deg, #1a2336 25%, transparent 25%) 0 0 / 14px 14px,
    #0a101c;
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.ov-slots-strip {
  will-change: transform;
}

.ov-slots-cell {
  height: min(34vh, 260px);
  display: grid;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.ov-slots-cell img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.ov-slots-window {
  pointer-events: none;
  position: absolute;
  /* decorative payline — positioned by JS parent relative to reels via CSS */
}

.ov-slots-reels::before,
.ov-slots-reels::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: rgba(255, 80, 120, 0.85);
  box-shadow: 0 0 12px rgba(255, 80, 120, 0.65);
  z-index: 3;
  pointer-events: none;
}
.ov-slots-reels::before { top: 50%; transform: translateY(-1px); }
.ov-slots-reels::after { display: none; }

/* Screen flash on pick */
.ov-slots-flash {
  position: absolute;
  inset: -10%;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 230, 140, 0.55) 28%, transparent 70%);
}

.ov-slots-flash.is-blast {
  animation: ovSlotsFlashBang 0.55s ease-out forwards;
}

/* Winner */
.ov-slots-winner {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  z-index: 6;
  opacity: 0;
  transform: scale(2.6) rotate(-8deg);
  filter: blur(8px) brightness(2.2);
}

.ov-slots-winner.is-blast {
  opacity: 1;
  animation: ovSlotsBlastIn 0.72s cubic-bezier(0.12, 1.35, 0.28, 1) forwards;
}

.ov-slots-winner.is-hold {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  filter: none;
  animation: ovSlotsFloat 2.4s ease-in-out infinite;
}

.ov-slots-winner.is-out {
  opacity: 0;
  transform: translateY(-24px) scale(1.12);
  filter: brightness(1.4);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
  animation: none;
}

.ov-slots-winner-img {
  width: min(48vw, 360px);
  height: min(48vw, 360px);
  object-fit: contain;
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(45deg, #1a2336 25%, transparent 25%) 0 0 / 18px 18px,
    linear-gradient(-45deg, #1a2336 25%, transparent 25%) 0 0 / 18px 18px,
    rgba(8, 12, 22, 0.92);
  border: 3px solid rgba(255, 230, 140, 0.95);
  box-shadow:
    0 0 0 6px rgba(255, 200, 64, 0.22),
    0 0 60px rgba(255, 215, 80, 0.55),
    0 0 120px rgba(255, 120, 200, 0.35),
    0 24px 50px rgba(0, 0, 0, 0.55);
  filter: drop-shadow(0 0 18px rgba(255, 230, 120, 0.65));
}

.ov-slots-winner.is-hold .ov-slots-winner-img {
  animation: ovSlotsShinePulse 1.05s ease-in-out infinite;
}

.ov-slots-winner.is-blast .ov-slots-winner-img {
  animation: ovSlotsImgPunch 0.72s cubic-bezier(0.12, 1.4, 0.28, 1) both;
}

.ov-slots-shockwave {
  position: absolute;
  width: min(30vw, 180px);
  height: min(30vw, 180px);
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 30px rgba(255, 220, 100, 0.9),
    inset 0 0 30px rgba(255, 200, 80, 0.45);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.ov-slots-winner.is-blast .ov-slots-shockwave {
  animation: ovSlotsShockwave 0.7s ease-out forwards;
}

.ov-slots-shine {
  position: absolute;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 220, 0.7) 0%, rgba(255, 200, 80, 0.28) 35%, transparent 70%);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.ov-slots-winner.is-blast .ov-slots-shine,
.ov-slots-winner.is-hold .ov-slots-shine {
  opacity: 1;
  animation: ovSlotsShineSpin 2.2s linear infinite;
}

.ov-slots-winner-name {
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 950;
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 220, 100, 0.75),
    0 4px 18px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(18px) scale(0.85);
}

.ov-slots-winner.is-blast .ov-slots-winner-name {
  animation: ovSlotsNameSlam 0.55s cubic-bezier(0.12, 1.4, 0.3, 1) 0.18s forwards;
}

.ov-slots-winner.is-hold .ov-slots-winner-name {
  opacity: 1;
  transform: none;
}

.ov-slots-empty {
  position: absolute;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 900;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

.ov-slots-empty[hidden] {
  display: none !important;
}

.ov-slots-promo {
  position: absolute;
  left: 50%;
  bottom: 3.2vh;
  transform: translateX(-50%);
  z-index: 8;
  margin: 0;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 850;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  opacity: 1;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.ov-slots-root.is-gone .ov-slots-promo,
.ov-slots-stage.is-gone ~ .ov-slots-promo {
  opacity: 0;
}

@keyframes ovSlotsFlashBang {
  0% { opacity: 0; transform: scale(0.6); }
  18% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes ovSlotsBlastIn {
  0% {
    opacity: 0;
    transform: scale(2.75) rotate(-10deg);
    filter: blur(10px) brightness(2.4);
  }
  55% {
    opacity: 1;
    transform: scale(0.88) rotate(3deg);
    filter: blur(0) brightness(1.35);
  }
  78% {
    transform: scale(1.08) rotate(-1.5deg);
    filter: brightness(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: none;
  }
}

@keyframes ovSlotsImgPunch {
  0% { transform: scale(1.35); filter: brightness(2.2) saturate(1.4); }
  60% { transform: scale(0.94); filter: brightness(1.2); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes ovSlotsShockwave {
  0% {
    opacity: 1;
    transform: scale(0.35);
  }
  100% {
    opacity: 0;
    transform: scale(4.2);
  }
}

@keyframes ovSlotsNameSlam {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.7);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ovSlotsFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.04); }
}

@keyframes ovSlotsShinePulse {
  0%, 100% {
    box-shadow:
      0 0 0 6px rgba(255, 200, 64, 0.18),
      0 0 50px rgba(255, 215, 80, 0.45),
      0 0 100px rgba(255, 120, 200, 0.28),
      0 24px 50px rgba(0, 0, 0, 0.55);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(255, 220, 100, 0.32),
      0 0 90px rgba(255, 230, 120, 0.85),
      0 0 160px rgba(255, 140, 220, 0.5),
      0 24px 50px rgba(0, 0, 0, 0.55);
  }
}

@keyframes ovSlotsShineSpin {
  from { transform: rotate(0deg) scale(1); opacity: 0.85; }
  50% { transform: rotate(180deg) scale(1.12); opacity: 1; }
  to { transform: rotate(360deg) scale(1); opacity: 0.85; }
}
