@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;800&display=swap');

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

body {
  margin: 0;
  overflow: hidden;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  color: #ecfdf5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.game-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ambient-light {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

.slot-machine {
  background: rgba(18, 53, 45, 0.85);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(52, 211, 153, 0.3);
  border-radius: 24px;
  padding: 30px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(52, 211, 153, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header {
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  letter-spacing: 4px;
  background: linear-gradient(to right, #34d399, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
  margin-bottom: 10px;
}

.stats-bar {
  display: flex;
  justify-content: space-between;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  padding: 15px 30px;
  border: 1px solid rgba(255,255,255,0.05);
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-box .label {
  font-size: 0.8rem;
  color: #6ee7b7;
  letter-spacing: 1px;
}

.stat-box .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
}

.reels-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  background: rgba(0,0,0,0.6);
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #0b1f1a;
  box-shadow: inset 0 10px 20px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
}

.win-line {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 4px;
  background: #fbbf24;
  transform: translateY(-50%);
  z-index: 10;
  box-shadow: 0 0 15px #fbbf24, 0 0 30px #fbbf24;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.win-line.active {
  opacity: 1;
}

.reel {
  width: 140px;
  height: 200px;
  background: linear-gradient(to bottom, #111 0%, #222 50%, #111 100%);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 3s cubic-bezier(0.15, 0.85, 0.15, 1);
  will-change: transform;
}

.symbol {
  width: 140px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 5rem;
  text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.message-board {
  flex: 1;
  background: rgba(0,0,0,0.4);
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  color: #ecfdf5;
  border: 1px solid rgba(255,255,255,0.05);
  margin-right: 20px;
  text-align: center;
}

.message-board.win {
  color: #fbbf24;
  animation: pulse 1s infinite alternate;
}

.spin-btn {
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #000;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 15px 40px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(52, 211, 153, 0.3);
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.spin-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.5);
  filter: brightness(1.1);
}

.spin-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 10px rgba(52, 211, 153, 0.3);
}

.spin-btn:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@keyframes pulse {
  0% { text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
  100% { text-shadow: 0 0 25px rgba(251, 191, 36, 1); }
}

/* Responsive iframe game styling */
@media (max-width: 600px) {
  .slot-machine {
    padding: 15px;
    border-radius: 16px;
  }
  .reel {
    width: 80px;
    height: 120px;
  }
  .symbol {
    width: 80px;
    height: 120px;
    font-size: 3rem;
  }
  .header h1 {
    font-size: 1.8rem;
  }
  .controls {
    flex-direction: column;
    gap: 15px;
  }
  .message-board {
    margin-right: 0;
    width: 100%;
  }
  .spin-btn {
    width: 100%;
    padding: 15px;
  }
}