* {
  box-sizing: border-box;
}

:root {
  --bg-1: #111827;
  --bg-2: #1f2937;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.8);
  --accent: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --dark-btn: #374151;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-container {
  width: 100%;
  max-width: 960px;
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.hero {
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  margin: 28px 0;
}

.stat-box,
.panel {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: bold;
}

.jackpot-box {
  border: 2px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.14);
}

.slot-machine {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.reel {
  width: 120px;
  height: 120px;
  background: #ffffff;
  color: #111827;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  box-shadow: inset 0 0 0 4px #d1d5db, 0 10px 20px rgba(0, 0, 0, 0.25);
}

.reel.spinning {
  animation: pulse 0.15s infinite alternate;
}

@keyframes pulse {
  from {
    transform: translateY(0);
    filter: brightness(1);
  }
  to {
    transform: translateY(-3px);
    filter: brightness(1.08);
  }
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

button {
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
}

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

.bet-btn {
  background: var(--dark-btn);
  color: #fff;
}

.spin-btn {
  background: var(--accent);
  color: #111827;
  min-width: 140px;
}

.reset-btn {
  background: var(--green);
  color: #fff;
}

.clear-btn {
  background: var(--red);
  color: #fff;
}

.message {
  margin: 22px 0 0;
  min-height: 28px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fbbf24;
}

.info-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.panel h2 {
  margin-top: 0;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .game-container {
    padding: 22px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .reel {
    width: 92px;
    height: 92px;
    font-size: 2.3rem;
  }
}
