.mg-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(26, 155, 122, 0.22), transparent 60%),
    linear-gradient(165deg, rgba(10, 22, 40, 0.95), rgba(13, 79, 92, 0.4));
  border: 1px solid rgba(232, 240, 244, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mg-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.mg-stat {
  min-width: 8rem;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: rgba(7, 16, 28, 0.55);
  border: 1px solid rgba(212, 168, 75, 0.25);
  box-shadow: 0 0 24px rgba(26, 155, 122, 0.12);
}

.mg-stat span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8c9d4;
}

.mg-stat strong {
  font-family: "Unbounded", sans-serif;
  font-size: 1.2rem;
  color: #fff;
}

.mg-stage {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(232, 240, 244, 0.12);
  background: #07101c;
}

.mg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1a9b7a, #146877);
  box-shadow: 0 0 24px rgba(26, 155, 122, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mg-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff;
}

.mg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mg-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 240, 244, 0.2);
  box-shadow: none;
}

.mg-msg {
  text-align: center;
  min-height: 1.5rem;
  margin-top: 1rem;
  color: #e6c47a;
  font-weight: 600;
}

.slot-machine {
  padding: 2rem 1rem 1.5rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 168, 75, 0.18), transparent 45%),
    linear-gradient(180deg, #0d4f5c, #0a1628 70%);
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

.slot-reel {
  height: 140px;
  border-radius: 1rem;
  background: linear-gradient(180deg, #122038, #07101c);
  border: 2px solid rgba(212, 168, 75, 0.45);
  box-shadow: inset 0 0 30px rgba(26, 155, 122, 0.25), 0 0 20px rgba(212, 168, 75, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #2bb892;
  position: relative;
  overflow: hidden;
}

.slot-reel.is-spinning {
  animation: reelGlow 0.2s linear infinite;
}

.slot-reel.is-spinning i {
  animation: reelBlur 0.12s linear infinite;
}

.slot-title-art {
  text-align: center;
  margin-bottom: 1rem;
}

.slot-title-art img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 0 28px rgba(26, 155, 122, 0.45);
  border: 1px solid rgba(212, 168, 75, 0.35);
}

.bj-table {
  padding: 1.75rem 1rem 1.5rem;
  background:
    radial-gradient(ellipse at center, rgba(26, 155, 122, 0.2), transparent 55%),
    linear-gradient(180deg, #0d4f5c, #07101c);
  min-height: 420px;
}

.bj-hand-label {
  text-align: center;
  color: #b8c9d4;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.bj-cards {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-height: 110px;
  margin-bottom: 1.25rem;
}

.bj-card {
  width: 72px;
  height: 102px;
  border-radius: 0.65rem;
  background: linear-gradient(160deg, #f5f7fa, #d9e2ea);
  color: #0a1628;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(26, 155, 122, 0.2);
  animation: cardIn 0.35s ease both;
}

.bj-card.red {
  color: #b33a4a;
}

.bj-card.back {
  background: linear-gradient(145deg, #146877, #0a1628);
  color: #d4a84b;
  border: 1px solid rgba(212, 168, 75, 0.4);
}

.bj-score {
  text-align: center;
  color: #e8f0f4;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.roulette-wrap {
  padding: 1.5rem 1rem 1.25rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 168, 75, 0.12), transparent 50%),
    linear-gradient(180deg, #0d4f5c, #07101c);
}

.roulette-wheel-box {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
}

.roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #0a1628 0 9.73deg,
    #1a9b7a 0 19.46deg,
    #0a1628 0 29.19deg,
    #1a9b7a 0 38.92deg,
    #0a1628 0 48.65deg,
    #1a9b7a 0 58.38deg,
    #0a1628 0 68.11deg,
    #1a9b7a 0 77.84deg,
    #0a1628 0 87.57deg,
    #1a9b7a 0 97.3deg,
    #0a1628 0 107.03deg,
    #1a9b7a 0 116.76deg,
    #0a1628 0 126.49deg,
    #1a9b7a 0 136.22deg,
    #0a1628 0 145.95deg,
    #1a9b7a 0 155.68deg,
    #0a1628 0 165.41deg,
    #1a9b7a 0 175.14deg,
    #0a1628 0 184.87deg,
    #1a9b7a 0 194.6deg,
    #0a1628 0 204.33deg,
    #1a9b7a 0 214.06deg,
    #0a1628 0 223.79deg,
    #1a9b7a 0 233.52deg,
    #0a1628 0 243.25deg,
    #1a9b7a 0 252.98deg,
    #0a1628 0 262.71deg,
    #1a9b7a 0 272.44deg,
    #0a1628 0 282.17deg,
    #1a9b7a 0 291.9deg,
    #0a1628 0 301.63deg,
    #1a9b7a 0 311.36deg,
    #0a1628 0 321.09deg,
    #1a9b7a 0 330.82deg,
    #0a1628 0 340.55deg,
    #d4a84b 0 360deg
  );
  border: 6px solid rgba(212, 168, 75, 0.65);
  box-shadow: 0 0 40px rgba(26, 155, 122, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.45);
  transition: transform 4s cubic-bezier(0.12, 0.75, 0.1, 1);
}

.roulette-center {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle, #e6c47a, #0d4f5c 55%, #0a1628);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Unbounded", sans-serif;
  font-size: 1.4rem;
  box-shadow: 0 0 24px rgba(212, 168, 75, 0.45);
  z-index: 2;
}

.roulette-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 18px solid #d4a84b;
  filter: drop-shadow(0 0 8px rgba(212, 168, 75, 0.7));
  z-index: 3;
}

.roulette-bets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.roulette-bet {
  min-width: 4.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(232, 240, 244, 0.18);
  background: rgba(7, 16, 28, 0.55);
  color: #e8f0f4;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.roulette-bet.is-active {
  border-color: #d4a84b;
  box-shadow: 0 0 18px rgba(212, 168, 75, 0.35);
  transform: translateY(-2px);
}

@keyframes reelGlow {
  0%,
  100% {
    box-shadow: inset 0 0 30px rgba(26, 155, 122, 0.25), 0 0 12px rgba(212, 168, 75, 0.2);
  }
  50% {
    box-shadow: inset 0 0 40px rgba(26, 155, 122, 0.45), 0 0 22px rgba(212, 168, 75, 0.45);
  }
}

@keyframes reelBlur {
  from {
    transform: translateY(-8px);
    filter: blur(1px);
  }
  to {
    transform: translateY(8px);
    filter: blur(1px);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 575.98px) {
  .slot-reel {
    height: 110px;
    font-size: 2.2rem;
  }

  .bj-card {
    width: 58px;
    height: 84px;
    font-size: 0.9rem;
  }
}
