
/* ═══════════════════════════════════════════════
   TRONPICK-STYLE GAME UI — Dice & Limbo
   ═══════════════════════════════════════════════ */

/* Wrapper */
.tp-game-wrap {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px 22px;
  max-width: 720px;
  margin: 0 auto;
  color: #222;
  font-family: 'Inter', sans-serif;
}

/* Label */
.tp-label {
  font-size: 12px;
  font-weight: 600;
  color: #5b9944;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Field */
.tp-field { flex: 1; }

/* Input row */
.tp-inp-row {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background: #fafafa;
  height: 44px;
}
.tp-inp-row:focus-within { border-color: #5b9944; }

.tp-trx-ico {
  width: 20px; height: 20px;
  margin: 0 8px;
  flex-shrink: 0;
}

.tp-inp {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #222;
  padding: 0 6px;
  outline: none;
  min-width: 0;
}
.tp-inp::-webkit-outer-spin-button,
.tp-inp::-webkit-inner-spin-button { -webkit-appearance: none; }

.tp-inp-suffix {
  color: #888;
  padding: 0 10px;
  font-size: 13px;
  flex-shrink: 0;
}

/* Green buttons (2x / 1/2) */
.tp-btn-green {
  background: #5b9944;
  color: #fff;
  border: none;
  padding: 0 12px;
  height: 44px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.15s;
}
.tp-btn-green:hover { background: #4a8036; }
.tp-btn-green + .tp-btn-green { border-left: 1px solid #4a8036; }

/* Icon button (toggle dir) */
.tp-icon-btn {
  background: #f0f0f0;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.tp-icon-btn:hover { background: #e0e0e0; }

/* 2-col and 3-col rows */
.tp-row-2 { display: flex; gap: 14px; }
.tp-row-3 { display: flex; gap: 14px; }
@media(max-width: 580px) {
  .tp-row-2, .tp-row-3 { flex-direction: column; gap: 10px; }
}

/* Action row: toggle + roll button */
.tp-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Toggle switch */
.tp-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
}
.tp-toggle input { opacity: 0; width: 0; height: 0; }
.tp-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 28px;
  transition: background 0.25s;
}
.tp-toggle-slider:before {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.tp-toggle input:checked ~ .tp-toggle-slider { background: #f39c12; }
.tp-toggle input:checked ~ .tp-toggle-slider:before { transform: translateX(24px); }

.tp-toggle-lbl {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  min-width: 52px;
}

/* Roll button */
.tp-roll-btn {
  flex: 1;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 48px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.1s;
}
.tp-roll-btn:hover { background: #2980b9; }
.tp-roll-btn:active { transform: scale(0.98); }
.tp-roll-btn:disabled { background: #aaa; cursor: not-allowed; }

/* Slider */
.tp-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 16px;
}
.tp-sl-num {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  min-width: 26px;
  text-align: center;
}
.tp-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right, #dc3545 0%, #dc3545 50%, #28a745 50%, #28a745 100%);
}
.tp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 4px;
  background: #fff;
  border: 2px solid #aaa;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.tp-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: #fff;
  border: 2px solid #aaa;
  cursor: pointer;
}

/* ── AUTO SECTION ── */
.tp-auto-cols {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
@media(max-width:580px) { .tp-auto-cols { flex-direction: column; } }

.tp-auto-box {
  flex: 1;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px;
}
.tp-auto-hd {
  font-size: 13px;
  font-weight: 700;
  color: #5b9944;
  margin-bottom: 10px;
}
.tp-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #333;
  margin-bottom: 8px;
  cursor: pointer;
}
.tp-radio input[type="radio"] { accent-color: #5b9944; }
.tp-radio-ico {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.tp-radio-ico.tp-green {
  background: #5b9944;
  border-color: #5b9944;
  color: #fff;
}
.tp-pct-inp {
  width: 60px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 13px;
  margin-left: 4px;
}

.tp-auto-stops {
  display: flex;
  gap: 14px;
}
@media(max-width:580px) { .tp-auto-stops { flex-direction: column; } }

.tp-green { color: #5b9944 !important; }

/* ── BET HISTORY TABLE ── */
.tp-hist-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}
.tp-hist-tbl th {
  background: rgba(0,0,0,.04);
  padding: 8px 10px;
  text-align: left;
  font-weight: 700;
  color: #555;
  border-bottom: 1px solid #e0e0e0;
}
.tp-hist-tbl td {
  padding: 7px 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
}
.tp-win { color: #28a745 !important; font-weight: 700; }
.tp-lose { color: #dc3545 !important; font-weight: 700; }
.tp-no-bets { color: #aaa; text-align: center; padding: 20px; font-size: 13px; }

/* ── LIMBO ROCKET STAGE ── */
.lb-stage {
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, #0a0e1a 0%, #0d1f3c 40%, #1a3a5c 70%, #2d5a3d 100%);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-rocket-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.8s ease-out;
}
.lb-rocket {
  width: 60px;
  height: 90px;
  filter: drop-shadow(0 4px 12px rgba(243,156,18,0.6));
  animation: lb-hover 2s ease-in-out infinite;
}
@keyframes lb-hover {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.lb-result-val {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 0 20px currentColor;
}

/* Auto checkbox for Limbo */
.tp-auto-chk-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  flex-shrink: 0;
}
.tp-auto-chk-lbl input { accent-color: #5b9944; width: 16px; height: 16px; }

/* My Bets / All Bets tabs on games page */
.dg-bet-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 12px;
}
.dg-btab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.dg-btab.dg-btab-act {
  color: #3498db;
  border-bottom-color: #3498db;
}
.dg-btab:hover { color: #333; }

/* ── EXTRA FIXES v3 ── */

/* Radio button modern look */
.tp-radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tp-green-dot {
  background: #28a745;
  border-color: #28a745;
}
.tp-green-dot::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.tp-radio-inc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tp-pct-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 6px;
}
.tp-pct-box span { font-size: 12px; color: #666; }

/* History wrap */
.tp-hist-wrap {
  max-height: 280px;
  overflow-y: auto;
}
.tp-hist-wrap::-webkit-scrollbar { width: 4px; }
.tp-hist-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* Limbo result overlay */
.lb-result-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 10px;
}
.lb-result-mult {
  font-size: 48px;
  font-weight: 900;
  text-shadow: 0 0 30px currentColor;
  line-height: 1;
}
.lb-result-label {
  font-size: 22px;
  font-weight: 800;
  margin-top: 8px;
}

/* Stars twinkle animation */
@keyframes lb-twinkle {
  from { opacity: 0.2; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.3); }
}

/* Bet history table on dark background */
.tp-game-wrap .tp-hist-tbl th {
  background: rgba(255,255,255,0.05);
  color: rgba(232,240,235,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tp-game-wrap .tp-hist-tbl td {
  color: rgba(232,240,235,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tp-game-wrap .tp-hist-tbl tr:hover td {
  background: rgba(255,255,255,0.04);
}

/* Override tp-game-wrap for dark site theme */
.tp-game-wrap {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: #e8f0eb !important;
}
.tp-label {
  color: #3ecf8e !important;
}
.tp-inp-row {
  background: rgba(0,0,0,0.25) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.tp-inp {
  color: #e8f0eb !important;
  background: transparent !important;
}
.tp-inp-suffix { color: rgba(232,240,235,0.5) !important; }
.tp-sl-num { color: rgba(232,240,235,0.6) !important; }
.tp-toggle-lbl { color: rgba(232,240,235,0.8) !important; }
.tp-auto-box {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
}
.tp-auto-hd { color: #3ecf8e !important; }
.tp-radio { color: rgba(232,240,235,0.85) !important; }
.tp-pct-box {
  background: rgba(0,0,0,0.2) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
.tp-pct-box span { color: rgba(232,240,235,0.5) !important; }
.tp-pct-inp {
  background: transparent !important;
  color: #e8f0eb !important;
  border: none !important;
  width: 55px !important;
}
.tp-no-bets { color: rgba(232,240,235,0.35) !important; }
.tp-green { color: #3ecf8e !important; }

/* Dark slider bg */
.tp-slider-wrap {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* Auto mode checkbox (limbo) */
.tp-auto-chk-lbl { color: rgba(232,240,235,0.8) !important; }

/* Icon button dark */
.tp-icon-btn {
  background: rgba(255,255,255,0.1) !important;
  color: #e8f0eb !important;
}
.tp-icon-btn:hover { background: rgba(255,255,255,0.18) !important; }
/* Hide global bet section when a game is open */
#sec-games.game-open #globalBetSec {
  display: none !important;
}