/* Slots cabinet: marquee bulbs, dark reel window, pull lever, blurred spins,
   bouncing landings, tease glow, drawn win lines and a counting display. */
.slots-stage {
  min-height: 0;
}
.slots-cab {
  position: relative;
  width: min(640px, 100%);
  padding: 18px 22px 22px;
  border-radius: 28px;
  border: 2px solid rgba(242, 196, 74, 0.55);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(232, 88, 110, 0.25), transparent 60%),
    linear-gradient(180deg, #2a0f18, #160a10 40%, #0f0b0d);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.35), 0 30px 70px -25px rgba(232, 88, 110, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.08);
}
.slots-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.slots-title {
  flex: none;
  padding: 6px 18px;
  border-radius: 12px;
  border: 2px solid #f2c44a;
  background: linear-gradient(180deg, #3a1420, #1c0a10);
  box-shadow: 0 0 22px rgba(242, 196, 74, 0.45), inset 0 0 12px rgba(242, 196, 74, 0.25);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(255, 220, 120, 0.8);
}
.slots-title span {
  color: #fff3c4;
}
.slots-title b {
  margin-left: 6px;
  color: #ff6b8a;
}
.slot-bulbs {
  display: flex;
  flex: 1;
  justify-content: space-between;
}
.slot-bulbs i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b4b16;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: bulb 1.2s steps(1) infinite;
  animation-delay: calc(var(--i) * -0.1s);
}
@keyframes bulb {
  0%,
  50% {
    background: #ffd76a;
    box-shadow: 0 0 10px #ffd76a;
  }
  51%,
  100% {
    background: #6b4b16;
    box-shadow: none;
  }
}
.slots-cab.spinning .slot-bulbs i,
.slots-cab.won .slot-bulbs i {
  animation-duration: 0.35s;
}
.slots-window {
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0b0b0d, #18181c);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.slots-cab .slot-machine {
  position: relative;
  max-width: none;
  padding: 6px;
  border: 0;
  background: none;
  box-shadow: none;
}
.slots-cab .slot-reel {
  position: relative;
  max-width: none;
  height: 300px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a1c21, #f4efe2 14%, #fffaf0 50%, #f4efe2 86%, #1a1c21);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}
.slots-cab .slot-reel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.55));
}
.slots-cab .slot-sym {
  height: 100px;
}
.slots-cab .slot-sym img,
.slots-cab .slot-sym svg {
  width: 66px;
  height: 66px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
}
.slots-cab .slot-sym.r5 img {
  filter: drop-shadow(0 0 10px rgba(185, 139, 255, 0.9));
}
.slot-strip.blur {
  filter: blur(2.5px) brightness(1.05);
}
.slot-reel.landed {
  animation: reel-land 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes reel-land {
  0% {
    transform: translateY(6px);
    filter: brightness(1.6);
  }
}
.slot-reel.tease {
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55), 0 0 0 3px #f2c44a, 0 0 28px #f2c44a;
  animation: tease 0.25s linear infinite;
}
@keyframes tease {
  50% {
    transform: translateX(1.5px);
  }
}
.slots-cab .slot-sym.win {
  position: relative;
  background: radial-gradient(circle, rgba(242, 196, 74, 0.45), transparent 70%);
  box-shadow: none;
  animation: sym-win 0.7s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes sym-win {
  to {
    transform: scale(1.14);
    filter: brightness(1.3);
  }
}
.slot-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.slot-lines svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.slot-lines polyline {
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 14px currentColor);
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: line-draw 0.6s ease-out var(--d) forwards, line-glow 0.9s ease-in-out calc(var(--d) + 0.6s) infinite alternate;
  opacity: 0.92;
}
@keyframes line-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes line-glow {
  to {
    opacity: 0.55;
  }
}
.slots-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(242, 196, 74, 0.35);
  background: #0b0b0d;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8);
}
.sd-label {
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sd-value {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 30px;
  font-weight: 800;
  color: #ffd76a;
  text-shadow: 0 0 14px rgba(255, 215, 106, 0.7);
  font-variant-numeric: tabular-nums;
}
.slots-cab.won .slots-display {
  border-color: #4ade80;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.8), 0 0 24px rgba(74, 222, 128, 0.35);
}
.slots-cab.big {
  animation: cab-big 0.5s ease-in-out 4 alternate;
}
@keyframes cab-big {
  to {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.35), 0 0 80px rgba(242, 196, 74, 0.9), inset 0 2px 0 rgba(255, 255, 255, 0.08);
  }
}
.slots-cab.lost .sd-value {
  color: var(--text-dim);
  text-shadow: none;
}
.slot-lever {
  position: absolute;
  top: 120px;
  right: -46px;
  width: 40px;
  height: 200px;
  border: 0;
  background: none;
  cursor: pointer;
}
.lever-base {
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 32px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(90deg, #5b5f68, #c9ced6 45%, #4a4e56);
}
.lever-stick {
  position: absolute;
  left: 15px;
  bottom: 30px;
  width: 10px;
  height: 150px;
  border-radius: 6px;
  background: linear-gradient(90deg, #7b7f88, #e7eaee 50%, #6a6e76);
  transform-origin: 50% 100%;
  transition: transform 0.2s;
}
.lever-ball {
  position: absolute;
  left: -11px;
  top: -24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9db0, #e8586e 45%, #8f1d31);
  box-shadow: 0 0 16px rgba(232, 88, 110, 0.7);
}
.slot-lever:hover .lever-stick {
  transform: rotate(-6deg);
}
.slot-lever.pulled .lever-stick {
  animation: lever-pull 0.7s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@keyframes lever-pull {
  35% {
    transform: scaleY(-0.45);
  }
}
.slots-pay .pay-sym img,
.slots-pay .pay-sym svg {
  width: 26px;
  height: 26px;
}
@media (max-width: 760px) {
  .slot-lever {
    display: none;
  }
  .slots-cab .slot-reel {
    height: 210px;
  }
  .slots-cab .slot-sym {
    height: 70px;
  }
  .slots-cab .slot-sym img {
    width: 46px;
    height: 46px;
  }
}
