.mgh-game-page {
  padding: 2rem 0 4rem;
  background: var(--mgh-bg);
}

.mgh-game-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--mgh-surface);
  border: 1px solid var(--mgh-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--mgh-glow);
}

.mgh-game-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-bottom: 1px solid var(--mgh-border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mgh-game-balance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.mgh-game-balance i {
  color: var(--mgh-cyan);
}

.mgh-game-balance span {
  background: var(--mgh-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mgh-game-status {
  font-size: 0.85rem;
  color: var(--mgh-muted);
}

.mgh-game-body {
  padding: 2rem 1.5rem;
}

.mgh-game-disclaimer-section {
  padding: 3rem 0 4rem;
  background: var(--mgh-surface);
  border-top: 1px solid var(--mgh-border);
}

.mgh-slot-machine {
  text-align: center;
}

.mgh-slot-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: rgba(7, 11, 20, 0.6);
  border-radius: 14px;
  border: 1px solid var(--mgh-border);
}

.mgh-slot-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mgh-slot-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mgh-surface-alt);
  border: 1px solid var(--mgh-border);
  border-radius: 10px;
  font-size: 1.6rem;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
}

.mgh-slot-cell i {
  font-size: 1.4rem;
  background: var(--mgh-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mgh-slot-cell.mgh-slot-spinning {
  animation: mghSlotBlur 0.08s linear infinite;
}

.mgh-slot-cell.mgh-slot-match {
  border-color: var(--mgh-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

@keyframes mghSlotBlur {
  0%, 100% { transform: translateY(-2px); opacity: 0.7; }
  50% { transform: translateY(2px); opacity: 1; }
}

.mgh-game-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: var(--mgh-gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.mgh-game-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}

.mgh-game-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mgh-game-btn-outline {
  background: transparent;
  border: 1px solid var(--mgh-border);
  color: var(--mgh-text);
  box-shadow: none;
}

.mgh-game-btn-outline:hover:not(:disabled) {
  border-color: var(--mgh-cyan);
  color: var(--mgh-cyan);
  box-shadow: none;
}

.mgh-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.mgh-bj-table {
  text-align: center;
}

.mgh-bj-hands {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.mgh-bj-hand-label {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mgh-purple);
  margin-bottom: 0.75rem;
}

.mgh-bj-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  min-height: 90px;
}

.mgh-bj-card {
  width: 62px;
  height: 88px;
  background: linear-gradient(145deg, #fff 0%, #e8ecf0 100%);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #1a1a2e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: mghCardDeal 0.4s ease backwards;
}

.mgh-bj-card.red {
  color: #dc2626;
}

.mgh-bj-card.hidden-card {
  background: linear-gradient(145deg, #1a1035 0%, #2d1b69 100%);
  color: var(--mgh-cyan);
  font-size: 1.5rem;
}

@keyframes mghCardDeal {
  from { transform: translateY(-30px) rotateY(90deg); opacity: 0; }
  to { transform: translateY(0) rotateY(0); opacity: 1; }
}

.mgh-bj-score {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--mgh-muted);
}

.mgh-wheel-container {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 2rem;
}

.mgh-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--mgh-cyan);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.mgh-wheel canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.mgh-wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid var(--mgh-cyan);
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

.mgh-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--mgh-gradient);
  border: 3px solid var(--mgh-bg);
  z-index: 1;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.mgh-wheel-bets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mgh-bet-chip {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--mgh-border);
  background: var(--mgh-surface-alt);
  color: var(--mgh-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.mgh-bet-chip:hover,
.mgh-bet-chip.active {
  border-color: var(--mgh-cyan);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.mgh-bet-chip.red-chip.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.mgh-bet-chip.black-chip.active {
  border-color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
}

@media (max-width: 575.98px) {
  .mgh-slot-reels {
    grid-template-columns: repeat(3, 1fr);
  }

  .mgh-slot-col:nth-child(4),
  .mgh-slot-col:nth-child(5) {
    display: none;
  }

  .mgh-wheel-container {
    width: 260px;
    height: 260px;
  }
}
