.game-shell {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(212, 160, 23, 0.28);
  background: radial-gradient(circle at top, rgba(20, 168, 150, 0.18), transparent 45%), #07131f;
  box-shadow: 0 0 0 1px rgba(20, 168, 150, 0.08), 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 0 80px rgba(20, 168, 150, 0.08);
  padding: 1.35rem;
}

.game-hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 197, 71, 0.22);
  color: var(--ph-cream);
  font-weight: 600;
  font-size: 0.92rem;
}

.hud-pill strong {
  color: var(--ph-amber-soft);
}

.game-status {
  min-height: 1.5rem;
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--ph-teal-bright);
  font-weight: 600;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.game-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
}

.game-controls button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-spin,
.btn-deal,
.btn-hit {
  background: linear-gradient(135deg, var(--ph-amber) 0%, var(--ph-amber-soft) 100%);
  color: var(--ph-ink);
  box-shadow: 0 0 24px rgba(212, 160, 23, 0.28);
}

.btn-stand,
.btn-color {
  background: linear-gradient(135deg, var(--ph-teal) 0%, var(--ph-teal-bright) 100%);
  color: var(--ph-white);
  box-shadow: 0 0 24px rgba(20, 168, 150, 0.22);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ph-cream);
  border: 1px solid rgba(200, 212, 210, 0.25) !important;
}

.reels-frame {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #10263a 0%, #0a1828 100%);
  border: 1px solid rgba(20, 168, 150, 0.3);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(20, 168, 150, 0.12);
}

.reel {
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #050d16;
  border: 1px solid rgba(232, 197, 71, 0.25);
  position: relative;
  box-shadow: inset 0 0 24px rgba(20, 168, 150, 0.15);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.05s linear;
}

.reel-symbol {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--ph-amber-soft);
  text-shadow: 0 0 18px rgba(232, 197, 71, 0.55), 0 0 30px rgba(20, 168, 150, 0.35);
}

.reels-frame.is-glow {
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35), 0 0 45px rgba(232, 197, 71, 0.35);
}

.bj-table {
  border-radius: 18px;
  padding: 1.25rem;
  background:
    radial-gradient(circle at center, rgba(20, 168, 150, 0.18), transparent 55%),
    linear-gradient(160deg, #0d4f48 0%, #08332f 45%, #07111f 100%);
  border: 1px solid rgba(232, 197, 71, 0.25);
  min-height: 360px;
}

.bj-row {
  margin-bottom: 1.25rem;
}

.bj-label {
  color: var(--ph-mist);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.bj-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-height: 96px;
}

.playing-card {
  width: 68px;
  height: 96px;
  border-radius: 10px;
  background: linear-gradient(160deg, #fff8e8 0%, #f0e2c4 100%);
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.4rem 0.45rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28), 0 0 16px rgba(232, 197, 71, 0.2);
  animation: cardIn 0.35s ease;
}

.playing-card.red {
  color: #b42318;
}

.playing-card.back {
  background: linear-gradient(145deg, #0d6b63, #0a3d3a);
  color: var(--ph-amber-soft);
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.bj-score {
  margin-top: 0.45rem;
  color: var(--ph-amber-soft);
  font-weight: 700;
}

.wheel-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  justify-items: center;
}

.wheel-wrap {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--ph-amber-soft);
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px rgba(232, 197, 71, 0.7));
}

.wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid rgba(232, 197, 71, 0.55);
  box-shadow: 0 0 40px rgba(20, 168, 150, 0.35), inset 0 0 30px rgba(0, 0, 0, 0.45);
  background: conic-gradient(
    #0d6b63 0deg 30deg,
    #12263a 30deg 60deg,
    #d4a017 60deg 90deg,
    #12263a 90deg 120deg,
    #0d6b63 120deg 150deg,
    #12263a 150deg 180deg,
    #d4a017 180deg 210deg,
    #12263a 210deg 240deg,
    #0d6b63 240deg 270deg,
    #12263a 270deg 300deg,
    #d4a017 300deg 330deg,
    #12263a 330deg 360deg
  );
  transition: transform 4s cubic-bezier(0.12, 0.75, 0.12, 1);
}

.wheel-center {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, #e8c547 0%, #0c1a2e 70%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(232, 197, 71, 0.45);
  z-index: 2;
}

.wheel-bets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.wheel-bets button.active {
  outline: 2px solid var(--ph-amber-soft);
  outline-offset: 2px;
}

@keyframes cardIn {
  from {
    transform: translateY(12px) scale(0.92);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .wheel-stage {
    grid-template-columns: 320px 1fr;
    align-items: center;
  }
}
