* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background: linear-gradient(135deg, #2c1810 0%, #8b4513 50%, #d4621a 100%);
  color: #faf8f5;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

.neon-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./images/bg.webp") center/cover no-repeat fixed;
  z-index: -1;
}

/* removed animated grid */

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  perspective: 1000px;
}

.game-title {
  font-size: 2rem;
  font-weight: 900;
  font-family: "Fredoka One", cursive;
  text-align: center;
  margin-bottom: 30px;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* animation: titlePulse 2s ease-in-out infinite alternate; */
}

@keyframes titlePulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  100% {
    transform: scale(1.05);
    filter: brightness(1.2);
  }
}

.slot-machine {
  background: linear-gradient(145deg, #8b4513, #a0522d);
  border: 3px solid #d4621a;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 0 50px rgba(212, 98, 26, 0.3),
    inset 0 0 50px rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  /* animation: machineFloat 4s ease-in-out infinite alternate; */
}

@keyframes machineFloat {
  0% {
    transform: rotateX(2deg) rotateY(-2deg) translateY(0px);
  }
  100% {
    transform: rotateX(-2deg) rotateY(2deg) translateY(-10px);
  }
}

.reels-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  perspective: 800px;
}

.reel {
  flex: 1;
  width: 90px;
  height: 270px;
  background: linear-gradient(145deg, #2c1810, #3d241a);
  border: 2px solid #cd853f;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 30px rgba(205, 133, 63, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

/* spinning frame effect removed */

.reel.locked {
  border-color: #ffd700;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.6),
    inset 0 0 30px rgba(255, 215, 0, 0.2);
  animation: lockedPulse 1s ease-in-out infinite alternate;
}

.reel.win-flash {
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.6),
    inset 0 0 30px rgba(255, 215, 0, 0.2);
}

/* reelSpin keyframes removed */

@keyframes lockedPulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.reel-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.controls {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.spin-btn {
  padding: 12px 28px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(45deg, #d4621a, #e67e22);
  border: none;
  border-radius: 50px;
  color: #faf8f5;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(212, 98, 26, 0.4);
  text-transform: uppercase;
}

.spin-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(212, 98, 26, 0.6);
}

.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.credits {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.bet-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bet-btn {
  padding: 10px 16px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(45deg, #8b4513, #a0522d);
  color: #faf8f5;
  border: 1px solid rgba(205, 133, 63, 0.6);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 10px rgba(205, 133, 63, 0.3);
}

.bet-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(205, 133, 63, 0.5);
}

.spin-btn.active {
  filter: brightness(1.2);
  box-shadow: 0 0 40px rgba(212, 98, 26, 0.7);
}

.win-display {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: 900;
  font-family: "Fredoka One", cursive;
  color: #ffd700;
  text-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
}

.win-display.show {
  animation: winAnimation 3s ease-out;
}

@keyframes winAnimation {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

.cyber-attack {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(212, 98, 26, 0.3),
    rgba(255, 215, 0, 0.3)
  );
  opacity: 0;
  pointer-events: none;
  z-index: 999;
}

.cyber-attack.active {
  animation: cyberAttack 2s ease-in-out;
}

@keyframes cyberAttack {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* info panel removed */

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #d4621a;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(212, 98, 26, 0.8);
}

/* Responsive */
@media (max-width: 479px) {
  .game-container {
    padding: 10px;
  }
  .game-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }
  .slot-machine {
    padding: 8px;
  }
  .reels-container {
    gap: 6px;
    margin-bottom: 16px;
  }
  .reel {
    width: 80px;
    height: 210px;
  }
  .controls {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
  }
  .spin-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
  .credits {
    font-size: 1rem;
  }
  .bet-controls {
    gap: 6px;
  }
  .bet-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}
@media (min-width: 480px) {
  .game-title {
    font-size: 2.4rem;
  }
  .reel {
    width: 100px;
    height: 300px;
  }
  .spin-btn {
    padding: 14px 32px;
    font-size: 1.05rem;
  }
  .credits {
    font-size: 1.3rem;
  }
}

@media (min-width: 768px) {
  .game-title {
    font-size: 3rem;
  }
  .reel {
    width: 120px;
    height: 360px;
  }
  .spin-btn {
    padding: 15px 36px;
    font-size: 1.15rem;
  }
  .credits {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .reel {
    width: 140px;
    height: 420px;
  }
  .spin-btn {
    padding: 16px 42px;
    font-size: 1.2rem;
  }
}
