/* ============================================================
   NAMBAWIN — PREMIUM GAME SECTION
   Maximum business impact redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

/* ---- GAME SECTION ---- */
.game-section {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: #03030a;
}

/* Starfield canvas */
.starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Rich dark background with subtle texture */
.game-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 25% 50%, rgba(180,20,20,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 70% at 75% 50%, rgba(10,100,30,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 100% 100% at 50% 0%, rgba(80,40,140,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid pattern */
.game-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Atmospheric pulsing glows */
.game-atmosphere { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.atm-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.atm-glow-red {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(220,38,38,0.25), transparent 70%);
  top: -200px; left: -150px;
  animation: glowDrift 8s ease-in-out infinite;
}
.atm-glow-green {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(22,163,74,0.2), transparent 70%);
  bottom: -200px; right: -150px;
  animation: glowDrift 8s ease-in-out infinite reverse;
}
@keyframes glowDrift {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.8; }
  50%       { transform: translate(20px, -20px) scale(1.1); opacity: 1; }
}

/* ---- LIVE BADGE ROW ---- */
.live-badge-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.5);
  color: #fca5a5;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
}
.live-dot {
  width: 7px; height: 7px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.3);
  animation: livePulse 1s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(239,68,68,0.3); }
  50%     { box-shadow: 0 0 0 6px rgba(239,68,68,0.1); }
}
.live-tagline {
  color: #475569;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---- GAME ARENA ---- */
.game-arena {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  padding: 0.5rem 0;
}
@media (min-width: 900px) {
  .game-arena {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 1.5rem 0;
  }
}

/* ---- WHEEL SIDE ---- */
.wheel-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

/* Big radial glow behind wheel */
.wheel-glow-ring {
  position: absolute;
  width: 500px; height: 500px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 80px 30px rgba(200,30,30,0.25),
    0 0 160px 60px rgba(20,120,50,0.15),
    0 0 250px 80px rgba(120,50,200,0.1);
  pointer-events: none;
  z-index: 0;
  animation: ringBreath 4s ease-in-out infinite;
}
@keyframes ringBreath {
  0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: 1;   transform: translate(-50%,-50%) scale(1.05); }
}

/* ---- WHEEL STATS ---- */
.wheel-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wstat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wstat-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #475569;
  font-weight: 700;
}
.wstat-value { font-size: 0.9rem; font-weight: 800; color: #e2e8f0; }
.wstat-value.gold  { color: #fbbf24; text-shadow: 0 0 12px rgba(251,191,36,0.6); }
.wstat-value.green { color: #4ade80; text-shadow: 0 0 12px rgba(74,222,128,0.6); }
.wstat-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.08); }

/* ---- BETTING PANEL ---- */
.bet-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 480px;
  background: rgba(8, 8, 20, 0.9);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 0.8rem 1rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(139,92,246,0.12),
    0 30px 80px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

/* Top glow accent */
.bet-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.9), transparent);
}

/* ---- PANEL HEADER ---- */
.bet-panel-header { text-align: center; }
.bet-panel-title {
  font-family: 'Oswald', 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.bet-panel-sub {
  color: #475569;
  font-size: 0.85rem;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- MULTIPLIER DISPLAY ---- */
.multiplier-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(22,163,74,0.08));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
}
.mult-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mult-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.mult-num.red-glow  { color: #f87171; text-shadow: 0 0 25px rgba(239,68,68,0.8); }
.mult-num.gold-glow { color: #fbbf24; text-shadow: 0 0 25px rgba(245,158,11,0.8); font-size: 1.35rem; }
.mult-label {
  font-size: 0.6rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.mult-sep { color: rgba(255,255,255,0.07); font-size: 2.5rem; font-weight: 100; }

/* ---- COLOR SELECTION ---- */
.color-selection { width: 100%; }
.choose-label {
  font-size: 0.6rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.color-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Color buttons — premium style */
.color-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0.4rem 0.2rem;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.color-btn.btn-red {
  background: linear-gradient(165deg, #450a0a 0%, #7f1d1d 50%, #991b1b 100%);
  box-shadow: 0 4px 20px rgba(185,28,28,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
.color-btn.btn-green {
  background: linear-gradient(165deg, #052e16 0%, #14532d 50%, #166534 100%);
  box-shadow: 0 4px 20px rgba(20,83,45,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
}
.color-btn:hover { transform: translateY(-3px); filter: brightness(1.2); }
.color-btn:active { transform: scale(0.97); }

.color-btn.btn-red.selected {
  border-color: #ef4444;
  background: linear-gradient(165deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.6), 0 10px 50px rgba(239,68,68,0.8), inset 0 0 25px rgba(248,113,113,0.4);
  transform: scale(1.05);
  z-index: 2;
}
.color-btn.btn-green.selected {
  border-color: #22c55e;
  background: linear-gradient(165deg, #166534 0%, #15803d 50%, #16a34a 100%);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.6), 0 10px 50px rgba(34,197,94,0.8), inset 0 0 25px rgba(74,222,128,0.4);
  transform: scale(1.05);
  z-index: 2;
}

.cbtn-icon  { font-size: 1.2rem; line-height: 1; margin: 0; }
.cbtn-text  {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cbtn-odds {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.25);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: 1px;
}

/* ---- BET AMOUNT DISPLAY ---- */
.bet-amount-display {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bad-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 4px;
}
/* Add padding to body so content isn't hidden behind nav */
body {
  padding-bottom: 40px;
}
.bad-row:last-child { border-bottom: none; padding-bottom: 0; }
.bad-label { font-size: 0.7rem; color: #475569; font-weight: 500; }
.bad-value { font-size: 0.9rem; font-weight: 800; color: #e2e8f0; }
.bad-value.win-value {
  color: #4ade80;
  font-size: 0.95rem;
  text-shadow: 0 0 15px rgba(74,222,128,0.5);
}

/* ---- SPIN BUTTON ---- */
.spin-btn {
  width: 100%;
  padding: 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #111827;
  box-shadow:
    0 0 0 1px rgba(251,191,36,0.5),
    0 8px 30px rgba(217,119,6,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shimmer sweep */
.spin-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
}
.spin-btn:not(:disabled):hover::before {
  animation: shimmer 0.6s ease forwards;
}
@keyframes shimmer {
  to { left: 150%; }
}

.spin-btn:not(:disabled) {
  animation: btnPulse 2s ease-in-out infinite;
}
@keyframes btnPulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(251,191,36,0.5), 0 8px 30px rgba(217,119,6,0.4); }
  50%     { box-shadow: 0 0 0 3px rgba(251,191,36,0.3), 0 10px 50px rgba(217,119,6,0.7); }
}

.spin-btn:not(:disabled):hover {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  transform: translateY(-2px);
  animation: none;
}
.spin-btn:not(:disabled):active { transform: translateY(1px); }

.spin-btn:disabled {
  background: rgba(255,255,255,0.04);
  color: #334155;
  box-shadow: none;
  cursor: not-allowed;
  animation: none;
}
.spin-btn-icon { font-size: 1.4rem; }

/* Hint text */
.spin-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #334155;
  margin: 0;
  letter-spacing: 0.5px;
}

/* ---- PREMIUM RESULT MODAL ---- */
.result-overlay {
  background: rgba(4,4,10,0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
.result-card {
  background: rgba(12, 12, 28, 0.95) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  border-radius: 28px !important;
}
.result-winning-num {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  font-size: 3.5rem !important;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  font-family: 'Oswald', sans-serif !important;
}
.result-winning-num.win-red { color: #f87171 !important; text-shadow: 0 0 30px rgba(239,68,68,0.6); }
.result-winning-num.win-green { color: #4ade80 !important; text-shadow: 0 0 30px rgba(34,197,94,0.6); }

.result-winning-label {
  color: #94a3b8 !important;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 2px !important;
}

.result-close-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
  color: #111827 !important;
  border-radius: 14px !important;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 25px rgba(217,119,6,0.3) !important;
  border: none !important;
  padding: 1.2rem !important;
  transition: all 0.25s ease !important;
}
.result-close-btn:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%) !important;
  transform: translateY(-2px);
}
