.game-main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.hud-item span {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700;
}

.stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: center;
}

.machine {
  position: relative;
  width: 100%;
  min-height: 220px;
  border-radius: 14px;
  border: 2px solid #7a2f2f;
  background: linear-gradient(180deg, #3a1414 0%, #240c0c 100%);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.reels {
  display: flex;
  gap: 0.6rem;
  background: #140505;
  border-radius: 10px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.reel {
  width: 4.4rem;
  height: 5.2rem;
  background: #fdfdfd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.reel .symbol {
  font-size: 2.4rem;
  display: block;
}

.reel.spinning .symbol {
  animation: reel-spin 0.08s linear infinite;
}

@keyframes reel-spin {
  from {
    transform: translateY(-6px);
    opacity: 0.6;
  }
  to {
    transform: translateY(6px);
    opacity: 1;
  }
}

.result-banner {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
}

.result-banner.hidden {
  display: none;
}

.result-banner.win {
  color: #ffe27a;
}

.result-banner.lose {
  color: #ff8a8a;
}

.result-banner.push {
  color: #7bffb0;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 24, 0.92);
  backdrop-filter: blur(2px);
  border-radius: 14px;
}

.overlay.hidden {
  display: none;
}

.overlay-panel {
  text-align: center;
  padding: 1.25rem;
  max-width: 320px;
}

.overlay-panel h2 {
  margin: 0 0 0.75rem;
}

.overlay-panel p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
}

.overlay-panel button {
  background: var(--accent);
  color: #1a1200;
  border: none;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.overlay-panel button:active {
  transform: scale(0.97);
}

.paytable {
  width: 100%;
  max-width: 420px;
  margin-top: 0.9rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: var(--panel);
  font-size: 0.82rem;
}

.paytable-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  color: var(--muted);
}

.paytable-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.paytable-row span:first-child {
  color: var(--text);
}

.controls {
  width: 100%;
  max-width: 420px;
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bet-select,
.action-buttons {
  display: flex;
  gap: 0.4rem;
}

.bet-select button,
.action-buttons button {
  flex: 1;
  background: var(--panel);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.55rem 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.bet-select button.active {
  background: var(--accent);
  color: #1a1200;
  border-color: var(--accent);
}

.bet-select button:active,
.action-buttons button:active {
  transform: scale(0.96);
}

.action-buttons button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.75rem 0 0;
  text-align: center;
}

.how-to-play {
  max-width: 420px;
  width: 100%;
  margin-top: 1rem;
}

.how-to-play h2 {
  font-size: 1.1rem;
}

.how-to-play ul {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1.25rem;
  font-size: 0.9rem;
}
