body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #111;
  color: white;
  text-align: center;
  padding: 40px 20px;
  overflow-x: hidden;
}

h1 {
  margin-bottom: 10px;
}

.machine {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.reel {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 12px;
  background: #000;
  position: relative;
}

.symbols {
  display: flex;
  flex-direction: column;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 0 6px #00ffff);
}

.symbol {
  width: 80px;
  height: 80px;
  font-size: 56px;
  text-align: center;
  line-height: 80px;
  transition: filter 0.3s ease;
}

.symbol.spin-glow {
  filter: drop-shadow(0 0 15px #0ff) drop-shadow(0 0 15px #0ff);
  animation: pulseGlow 1s infinite alternate;
}

@keyframes pulseGlow {
  from {
    filter: drop-shadow(0 0 8px #0ff);
  }

  to {
    filter: drop-shadow(0 0 20px #0ff);
  }
}

button {
  font-size: 1.5em;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  background: #1e90ff;
  color: white;
  box-shadow: 0 0 10px #1e90ff;
  transition: box-shadow 0.3s ease;
  user-select: none;
  margin: 5px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.spinning {
  animation: pulseGlow 1s infinite alternate;
  box-shadow: 0 0 20px #0ff;
}

#effects-container {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible;
  z-index: 9999;
}

.confetti-piece {
  position: fixed;
  opacity: 0.9;
  animation-name: fall, spinConfetti;
  animation-timing-function: linear, linear;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  /* <-- importante */
}

.confetti-circle {
  border-radius: 50%;
}

.confetti-star {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%,
      79% 91%, 50% 70%, 21% 91%, 32% 57%,
      2% 35%, 39% 35%);
}

.confetti-heart {
  clip-path: polygon(50% 15%, 85% 0%, 100% 35%, 75% 60%,
      50% 80%, 25% 60%, 0% 35%, 15% 0%);
}

@keyframes fall {
  0% {
    top: -10px;
    opacity: 1;
  }

  100% {
    top: 100vh;
    opacity: 0;
  }
}

@keyframes spinConfetti {
  to {
    transform: rotate(360deg);
  }
}

#win-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  background: #00ff15;
  color: #000;
  padding: 30px 50px;
  border-radius: 20px;
  font-size: 2em;
  font-weight: bold;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 30px #00ff15;
  z-index: 10000;
  user-select: none;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
}

#win-popup.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

#loose-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  background: #ff5100;
  color: #000;
  padding: 30px 50px;
  border-radius: 20px;
  font-size: 2em;
  font-weight: bold;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 30px #ff5100;
  z-index: 10000;
  user-select: none;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
}

#loose-popup.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

#volume-container {
  margin: 10px auto 30px;
  max-width: 200px;
}

#volume {
  width: 100%;
}

@keyframes spin {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-400px);
  }
}
