/* ==========================================================================
   GAME INTERFACE STYLES • 10 PLAYABLE BANGKOK ENGINES
   ========================================================================== */

.game-view-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   1. BANGKOK WINGO STYLES
   ========================================================================== */
.wingo-speed-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(11, 15, 25, 0.7);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.wg-mode-tab {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 10px;
  font-weight: 800;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.wg-mode-tab.active {
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 50%, #B45309 100%);
  color: #0F172A;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.wingo-hero-card {
  background: linear-gradient(180deg, #131C31 0%, #0B101D 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(254, 240, 138, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-left-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-mode-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-mode-title span {
  font-size: 14px;
  font-weight: 900;
  color: #FFFFFF;
}

.hero-how-link {
  font-size: 9.5px;
  color: #F59E0B;
  font-weight: 800;
  cursor: pointer;
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-period-label {
  font-size: 11px;
  color: #94A3B8;
  display: flex;
  gap: 6px;
  align-items: center;
}

.hero-last-balls-row {
  display: flex;
  gap: 5px;
  margin-top: 2px;
}

.hero-right-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.timer-title-lbl {
  font-size: 9.5px;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
}

.digital-countdown-box {
  display: flex;
  gap: 3px;
  align-items: center;
  background: #060911;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.timer-digit {
  background: #0F172A;
  color: #F59E0B;
  font-size: 20px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.timer-colon {
  color: #F59E0B;
  font-weight: 900;
  font-size: 18px;
}

.badge-status {
  font-size: 8.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-status.betting {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid #10B981;
}

.badge-status.locked {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid #EF4444;
}

/* 3. Primary Color Buttons (BigBoss Bangkok style) */
.wingo-color-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.btn-color-pill {
  padding: 12px 6px;
  border-radius: 12px;
  border: none;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-color-pill:active { transform: scale(0.96); }
.btn-color-pill.btn-green { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.btn-color-pill.btn-violet { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%); }
.btn-color-pill.btn-red { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }

.color-text { font-size: 14px; font-weight: 900; letter-spacing: 0.5px; }
.odds-pill {
  background: rgba(0, 0, 0, 0.35);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

/* 4. 10 3D Spherical Lottery Numbers */
.wingo-spheres-arena {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spheres-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.lottery-sphere-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.6), inset 3px 3px 8px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.5);
  position: relative;
}

.lottery-sphere-btn:active { transform: scale(0.92); }
.lottery-sphere-btn.ball-green { background: radial-gradient(circle at 35% 35%, #34D399 0%, #059669 60%, #022c22 100%); }
.lottery-sphere-btn.ball-red { background: radial-gradient(circle at 35% 35%, #F87171 0%, #DC2626 60%, #450a0a 100%); }
.lottery-sphere-btn.ball-violet-green { background: linear-gradient(135deg, #059669 50%, #7C3AED 50%); }
.lottery-sphere-btn.ball-violet-red { background: linear-gradient(135deg, #DC2626 50%, #7C3AED 50%); }

.sphere-digit {
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.sphere-mult {
  font-size: 8px;
  font-weight: 800;
  opacity: 0.85;
}

.binary-and-random-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.btn-random-pick {
  background: rgba(30, 41, 59, 0.8);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  color: #FDE047;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 4px;
}

.btn-binary-opt {
  padding: 8px 4px;
  border-radius: 8px;
  border: none;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
}

.btn-binary-opt.btn-big { background: linear-gradient(135deg, #D97706, #B45309); color: #FFFFFF; }
.btn-binary-opt.btn-small { background: linear-gradient(135deg, #0284C7, #0369A1); color: #FFFFFF; }

/* 5. Wager Drawer */
.wingo-wager-panel {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wager-summary-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.wager-chips-line, .wager-mult-line {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.line-label {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 800;
  min-width: 50px;
}

.chip-item, .mult-item {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #CBD5E1;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.chip-item.active, .mult-item.active {
  background: var(--bg-gold-grad);
  color: #0F172A;
  border-color: #F59E0B;
}

.btn-wingo-submit {
  background: var(--bg-gold-grad);
  border: none;
  color: #0F172A;
  font-size: 13px;
  font-weight: 900;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  margin-top: 4px;
}

/* 6. History & Tabs */
.wingo-history-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  overflow: hidden;
}

.history-tabs-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(11, 15, 25, 0.8);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.htab-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 800;
  padding: 11px 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.htab-btn.active {
  color: #F59E0B;
  border-bottom-color: #F59E0B;
  background: rgba(245, 158, 11, 0.08);
}

.trend-road-container {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  padding: 12px;
}

.chart-bead {
  aspect-ratio: 1;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.chart-bead.bead-green { background: #059669; }
.chart-bead.bead-red { background: #DC2626; }
.chart-bead.bead-violet { background: #7C3AED; }
.chart-bead.bead-violet-green { background: linear-gradient(135deg, #059669 50%, #7C3AED 50%); }
.chart-bead.bead-violet-red { background: linear-gradient(135deg, #DC2626 50%, #7C3AED 50%); }

.trend-ball {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset -2px -2px 4px rgba(0,0,0,0.5), inset 2px 2px 4px rgba(255,255,255,0.3);
}

.ball-green { background: #059669; }
.ball-red { background: #DC2626; }
.ball-violet { background: #7C3AED; }
.ball-violet-green { background: linear-gradient(135deg, #059669 50%, #7C3AED 50%); }
.ball-violet-red { background: linear-gradient(135deg, #DC2626 50%, #7C3AED 50%); }


.chip-selector-row .label, .multiplier-selector-row .label {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 700;
  width: 50px;
}

.chip-pill, .mult-pill {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #CBD5E1;
  border-radius: 6px;
  padding: 5px 2px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.chip-pill.active, .mult-pill.active {
  background: var(--bg-gold-grad);
  color: #0F172A;
  border-color: #F59E0B;
}

.btn-confirm-wager {
  background: var(--bg-gold-grad);
  border: none;
  color: #0F172A;
  font-size: 13px;
  font-weight: 900;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-confirm-wager:active { transform: scale(0.98); }
.btn-confirm-wager:disabled { opacity: 0.5; cursor: not-allowed; }

/* History Table Generic */
.game-history-card {
  background: #111827;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 12px;
}

.history-title {
  font-size: 11px;
  font-weight: 800;
  color: #FDE047;
  margin-bottom: 8px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: center;
}

.history-table th {
  padding: 6px;
  color: #94A3B8;
  border-bottom: 1px solid #1E293B;
  font-weight: 700;
}

.history-table td {
  padding: 6px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.6);
  color: #E2E8F0;
}

/* ==========================================================================
   2. MUAY THAI CRASH & TUK-TUK STYLES
   ========================================================================== */
.crash-history-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.crash-history-bar::-webkit-scrollbar { display: none; }

.history-label {
  font-size: 9px;
  font-weight: 800;
  color: #64748B;
}

.crash-history-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

.crash-history-tag.high {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid #10B981;
}

.crash-history-tag.low {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid #EF4444;
}

.crash-stage-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  position: relative;
  background: #020617;
}

.crash-stage-container canvas {
  width: 100%;
  height: 230px;
  display: block;
}

.crash-center-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.crash-multiplier-text {
  font-size: 38px;
  font-weight: 900;
  color: #FDE047;
  letter-spacing: -1px;
}

.crash-multiplier-text.waiting { color: #94A3B8; font-size: 24px; }
.crash-multiplier-text.flying { color: #34D399; }
.crash-multiplier-text.crashed { color: #EF4444; }

.crash-status-subtext {
  font-size: 10px;
  color: #CBD5E1;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.crash-controls-card {
  background: #111827;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crash-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-size: 9.5px;
  color: #94A3B8;
  font-weight: 700;
}

.number-stepper {
  display: flex;
  align-items: center;
  background: #0F172A;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.number-stepper button {
  background: #1E293B;
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
}

.number-stepper input, .input-group input, .input-group select {
  width: 100%;
  background: #0F172A;
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FFFFFF;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.number-stepper input { border: none; border-radius: 0; }

.quick-chip-row {
  display: flex;
  gap: 6px;
}

.chip-mini {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #E2E8F0;
  border-radius: 6px;
  padding: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.chip-mini.active {
  background: var(--bg-gold-grad);
  color: #0F172A;
  border-color: #F59E0B;
}

.btn-crash-action {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-crash-bet {
  background: var(--bg-gold-grad);
  color: #0F172A;
}

.btn-crash-cashout {
  background: var(--bg-emerald-grad);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
  animation: pulseGreen 1s infinite alternate;
}

@keyframes pulseGreen {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.btn-crash-won {
  background: #059669;
  color: #FFFFFF;
}

/* ==========================================================================
   3. BANGKOK GEM MINES STYLES
   ========================================================================== */
.mines-hud-card {
  background: linear-gradient(180deg, #131C31 0%, #0B101D 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(254, 240, 138, 0.2);
}

.mines-stat-box .label { font-size: 8px; color: #94A3B8; font-weight: 700; display: block; }
.mines-stat-box .val { font-size: 14px; font-weight: 900; }

.mines-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  background: #090D16;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 10px;
}

.mine-tile {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mine-tile:active { transform: scale(0.92); }
.mine-tile .tile-icon { font-size: 22px; }

.mine-tile.tile-gem {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), #064E3B);
  border-color: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  animation: popScale 0.3s ease;
}

.mine-tile.tile-exploded {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), #7F1D1D);
  border-color: #EF4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.8);
}

.mine-tile.tile-mine-revealed {
  background: #1E293B;
  opacity: 0.5;
}

.btn-mines-action {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.btn-start-game { background: var(--bg-gold-grad); color: #0F172A; }
.btn-mines-cashout {
  background: var(--bg-emerald-grad);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
  animation: pulseGreen 1s infinite alternate;
}

/* ==========================================================================
   4. CHAO PHRAYA PLINKO STYLES
   ========================================================================== */
.plinko-stage-container {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  background: #0B0F19;
}

.plinko-stage-container canvas {
  width: 100%;
  height: 380px;
  display: block;
}

.risk-tabs {
  display: flex;
  gap: 4px;
}

.risk-pill {
  flex: 1;
  padding: 6px 2px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #CBD5E1;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.risk-pill.active {
  background: var(--bg-gold-grad);
  color: #0F172A;
  border-color: #F59E0B;
}

.plinko-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-drop-ball {
  background: var(--bg-gold-grad);
  border: none;
  color: #0F172A;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.btn-drop-burst {
  background: var(--bg-emerald-grad);
  border: none;
  color: #FFFFFF;
  padding: 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

/* ==========================================================================
   5. WAT PHO K3 DICE & DRAGON TIGER
   ========================================================================== */
.k3-shaker-card {
  background: linear-gradient(180deg, #131C31 0%, #0B101D 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(254, 240, 138, 0.25);
  position: relative;
  overflow: hidden;
}

.k3-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 8px;
}

.k3-timer-badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #34D399;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 900;
}

.k3-dice-cup-container {
  padding: 14px 0;
}

.k3-dice-display {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.k3-die {
  font-size: 48px;
  color: #FEF08A;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.7));
}

.k3-sum-pill {
  display: inline-block;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #F59E0B;
  color: #FDE047;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
}

.shaking-anim {
  animation: diceShake 0.6s ease-in-out;
}

@keyframes diceShake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-10deg) translateY(-5px); }
  40% { transform: rotate(10deg) translateY(5px); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
}

.k3-binary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.btn-k3-opt {
  padding: 10px 4px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-k3-triple {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #7C3AED, #4C1D95);
  border: 1px solid #A78BFA;
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  margin: 6px 0;
}

.k3-sums-label {
  font-size: 9px;
  color: #94A3B8;
  font-weight: 700;
  margin-top: 6px;
}

.k3-sums-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin: 6px 0;
}

.btn-k3-sum {
  background: #0F172A;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  padding: 6px 2px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.sum-num { font-size: 12px; font-weight: 900; color: #FDE047; }
.sum-odd { font-size: 7.5px; color: #94A3B8; }

/* Dragon Tiger */
.dt-header-card {
  background: linear-gradient(180deg, #131C31 0%, #0B101D 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(254, 240, 138, 0.25);
  position: relative;
  overflow: hidden;
}

.dt-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 12px;
}

.dt-cards-arena {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.dt-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dt-3d-crest-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.dt-3d-avatar-crop {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dt-3d-avatar-crop.dragon-avatar {
  border: 2.5px solid #10B981;
  background-image: url('/assets/real_dragon.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.75), 0 6px 16px rgba(0, 0, 0, 0.8);
}

.dt-3d-avatar-crop.tiger-avatar {
  border: 2.5px solid #F97316;
  background-image: url('/assets/real_tiger.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.75), 0 6px 16px rgba(0, 0, 0, 0.8);
}

.crest-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
  border-top-left-radius: 50px;
  border-top-right-radius: 50px;
}

.dt-crest-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
}

.crest-name {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.dragon-badge .crest-name {
  color: #34D399;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.tiger-badge .crest-name {
  color: #FB923C;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.7);
}

.crest-mult {
  font-size: 9.5px;
  font-weight: 700;
  color: #FEF08A;
}

.dt-vs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dt-vs-badge {
  background: radial-gradient(circle, #DC2626 0%, #991B1B 100%);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 900;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FDE047;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.7);
}

.dt-tie-tag {
  font-size: 9px;
  font-weight: 800;
  color: #4ADE80;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 2px 6px;
  border-radius: 10px;
}

.playing-card {
  width: 58px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 26px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-back {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 2px solid #F59E0B;
  color: #F59E0B;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.card-face {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  color: #0F172A;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.card-face .suit { font-size: 20px; color: #DC2626; }

.dt-vs-badge {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #F59E0B;
  color: #FDE047;
  font-size: 14px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 20px;
}

.dt-betting-spots {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.dt-spot {
  padding: 14px 6px;
  border-radius: 10px;
  border: none;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.spot-dragon { background: linear-gradient(135deg, #DC2626, #991B1B); }
.spot-tie { background: linear-gradient(135deg, #059669, #064E3B); }
.spot-tiger { background: linear-gradient(135deg, #0284C7, #075985); }

.spot-title { font-size: 14px; font-weight: 900; }
.spot-odds { font-size: 10px; opacity: 0.9; margin-top: 2px; }

.dt-bead-road {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 0;
}

.bead-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bead-dragon { background: #DC2626; }
.bead-tiger { background: #0284C7; }
.bead-tie { background: #059669; }

/* ==========================================================================
   6. SIAM 5D LOTTERY
   ========================================================================== */
.fiveD-header-card {
  background: linear-gradient(180deg, #131C31 0%, #0B101D 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(254, 240, 138, 0.2);
  position: relative;
  overflow: hidden;
}

.fiveD-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 8px;
}

.fiveD-balls-row {
  display: flex;
  justify-content: space-around;
  margin: 12px 0;
}

.fiveD-ball-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fiveD-sphere {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FEF08A, #F59E0B 60%, #78350F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset -2px -2px 6px rgba(0, 0, 0, 0.4);
}

.ball-digit {
  font-size: 20px;
  font-weight: 900;
  color: #0F172A;
}

.fiveD-sum-hud {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #F59E0B;
  color: #FDE047;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin: 0 auto;
}

.fiveD-tabs-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 8px;
}

.f5-tab {
  flex-shrink: 0;
  background: #1E293B;
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #CBD5E1;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.f5-tab.active {
  background: var(--bg-gold-grad);
  color: #0F172A;
  border-color: #F59E0B;
}

/* ==========================================================================
   7. BANGKOK NIGHT MARKET SLOTS
   ========================================================================== */
.slots-machine-roof {
  background: linear-gradient(180deg, #131C31 0%, #0B101D 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  border-radius: 14px 14px 0 0;
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(254, 240, 138, 0.25);
}

.roof-title {
  font-size: 13px;
  font-weight: 900;
  color: #FEF08A;
}

.roof-sub {
  font-size: 8px;
  color: #FED7AA;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.slots-frame {
  background: #090D16;
  border: 2px solid #F59E0B;
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 10px;
}

.reels-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.slot-reel {
  height: 150px;
  background: #111827;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.reel-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.slot-symbol {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.reel-spinning {
  animation: reelSpin 0.15s linear infinite;
}

@keyframes reelSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50px); }
}

.slots-win-banner {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #CBD5E1;
  font-size: 10.5px;
  font-weight: 800;
  padding: 6px;
  text-align: center;
  border-radius: 6px;
}

.slots-win-banner.win-highlight {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10B981;
  color: #34D399;
}

.slots-stats-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 8px;
  background: #0F172A;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.slots-stats-row .label { font-size: 8px; color: #94A3B8; font-weight: 700; display: block; }
.slots-stats-row .val { font-size: 13px; font-weight: 900; }

.inline-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.inline-stepper button {
  background: #1E293B;
  border: none;
  color: #FFFFFF;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
}

.slots-btn-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
}

.btn-slot-auto {
  background: #1E293B;
  border: 1px solid #475569;
  color: #CBD5E1;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.btn-slot-auto.active {
  background: #7C3AED;
  border-color: #A78BFA;
  color: #FFFFFF;
}

.btn-slot-spin {
  background: var(--bg-gold-grad);
  border: none;
  color: #0F172A;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.paytable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.pay-item {
  background: #0F172A;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
}

/* ==========================================================================
   8. CHAO PHRAYA FISHING HUNTER
   ========================================================================== */
.fishing-stage-container {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  position: relative;
  background: #0369A1;
}

.fishing-stage-container canvas {
  width: 100%;
  height: 280px;
  display: block;
  cursor: crosshair;
}

.fishing-tap-hint {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.65);
  color: #FEF08A;
  font-size: 8.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  pointer-events: none;
  white-space: nowrap;
}

.fishing-power-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.power-buttons {
  display: flex;
  gap: 6px;
}

.power-pill {
  padding: 6px 10px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #CBD5E1;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.power-pill.active {
  background: var(--bg-gold-grad);
  color: #0F172A;
  border-color: #F59E0B;
}

.fishing-bounty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.bounty-item {
  background: #0F172A;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
}

/* ==========================================================================
   11. BANGKOK AVIATOR - REAL-TIME FLIGHT MULTIPLIER
   ========================================================================== */
.aviator-game-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aviator-history-ribbon {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 10px;
  margin-bottom: 8px;
  background: rgba(11, 15, 25, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  scrollbar-width: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}
.aviator-history-ribbon::-webkit-scrollbar { display: none; }

.history-ribbon-tag {
  font-size: 10px;
  font-weight: 900;
  color: #F59E0B;
  letter-spacing: 0.8px;
  padding-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.history-pill {
  flex-shrink: 0;
  padding: 3.5px 9px;
  border-radius: 14px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: transform 0.15s ease;
}
.history-pill:hover {
  transform: scale(1.06);
}
.mult-blue {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(2, 132, 199, 0.38));
  border: 1px solid #38BDF8;
  color: #7DD3FC;
}
.mult-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(126, 34, 206, 0.4));
  border: 1px solid #A855F7;
  color: #E9D5FF;
}
.mult-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.5));
  border: 1px solid #F59E0B;
  color: #FEF08A;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.aviator-canvas-container {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  background: #030712;
}

.aviator-canvas-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.aviator-hud-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 5;
}

.aviator-multiplier-readout {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.9);
}

.aviator-status-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}
.badge-waiting {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid #F59E0B;
  color: #FDE047;
}
.badge-flying {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #10B981;
  color: #34D399;
}
.badge-crashed {
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid #EF4444;
  color: #FCA5A5;
}

.aviator-bet-panels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aviator-panel {
  background: linear-gradient(145deg, #161F33, #0F172A);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-tag {
  font-size: 9.5px;
  font-weight: 900;
  color: #F59E0B;
  letter-spacing: 0.5px;
}

.auto-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: #94A3B8;
  cursor: pointer;
}

.panel-inputs-row {
  display: flex;
  gap: 6px;
}

.stake-input-box {
  flex: 1;
  display: flex;
  background: #0B0F19;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.stake-input-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  outline: none;
}

.btn-step {
  background: #1E293B;
  border: none;
  color: #F59E0B;
  width: 28px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.auto-input-box {
  width: 70px;
}
.auto-input-box input {
  width: 100%;
  height: 100%;
  background: #0B0F19;
  border: 1px solid #10B981;
  color: #34D399;
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 11px;
  outline: none;
}

.panel-chip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.chip-preset {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #CBD5E1;
  border-radius: 6px;
  padding: 4px 0;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.chip-preset:active { transform: scale(0.95); }

.btn-aviator-action {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.2s ease;
}

.btn-aviator-action .action-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.btn-aviator-action .action-sub {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.9;
}

.btn-bet {
  background: var(--bg-emerald-grad);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.btn-waiting-cancel {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #EF4444;
  color: #F87171;
}
.btn-cashout {
  background: var(--bg-gold-grad);
  color: #0F172A;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.7);
  animation: pulseGold 0.8s infinite alternate;
}
@keyframes pulseGold {
  0% { transform: scale(1); box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
  100% { transform: scale(1.02); box-shadow: 0 0 22px rgba(245, 158, 11, 0.9); }
}
.btn-cashed {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #34D399;
}
.btn-lost {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #EF4444;
  color: #EF4444;
}
.btn-disabled {
  background: #1E293B;
  color: #64748B;
  cursor: not-allowed;
}
