/* ─── Game Page Styles ─── */

.game-container {
  position: fixed; inset: 0;
  padding-top: 0;
  background: #080f1d;
}
.game-canvas-3d {
  width: 100%; height: 100%;
  position: relative;
  z-index: 1;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
body.tema-halloween .game-container,
body.tema-halloween .game-canvas-3d {
  background-color: #120018;
  background-image: url('../img/themes/halloween-pc.png');
}
@media (max-width: 768px) {
  body.tema-halloween .game-container,
  body.tema-halloween .game-canvas-3d {
    background-image: url('../img/themes/halloween-mobile.png');
  }
}
.game-canvas-3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: transparent !important;
}

/* ── HUD Top (money bar) ─────────────────────────────────── */
.game-hud-top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 24px 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 15, 29, 0.92) 0%, rgba(8, 15, 29, 0.4) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.game-hud-top button, .game-hud-top a {
  pointer-events: auto;
}
.game-sound-btn {
  position: absolute; right: 24px; top: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 44px; height: 44px;
  color: #fff; font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  z-index: 60;
}
.game-sound-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}
.game-exit-btn {
  position: absolute; left: 24px; top: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  z-index: 60;
}
.game-exit-btn:hover {
  background: rgba(230, 57, 70, 0.3);
  border-color: rgba(230, 57, 70, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
}
.ingame-cashout-btn {
  margin-top: 10px;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 11px 26px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-glow-green);
  transition: all var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  animation: pulseGreen 2s infinite alternate;
}
.ingame-cashout-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.7);
}
@keyframes pulseGreen {
  0% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.4); }
  100% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.85); }
}

/* Estilização Premium dos Botões dos Modais */
.btn-modal-primary, .btn-modal-success, .btn-modal-danger {
  width: 100%;
  padding: 15px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  margin-bottom: 12px;
  transition: all var(--transition);
  display: block;
}
.btn-modal-primary {
  background: linear-gradient(135deg, #ea580c 0%, #c1121f 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.4);
}
.btn-modal-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-modal-success {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(34, 197, 94, 0.4);
}
.btn-modal-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.6);
}
.btn-modal-danger {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.4);
}
.btn-modal-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.6);
}

.game-money-row {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin-bottom: 8px;
}
.game-money-current {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  color: var(--xmas-red-light);
  text-shadow: 0 2px 14px rgba(230, 57, 70, 0.5);
  line-height: 1;
}
.game-money-sep {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.3);
}
.game-money-target {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
  line-height: 1;
}
.game-bar-wrap {
  width: 100%; max-width: 360px;
  height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.game-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--xmas-red) 0%, var(--xmas-gold) 100%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}
.game-plats-row {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.game-plats-row span {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

/* ── Overlays ────────────────────────────────────────────── */
.game-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 15, 29, 0.88);
  backdrop-filter: var(--glass-blur);
  z-index: 10;
}

.game-demo-overlay {
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: none;
}
.game-demo-hint {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--xmas-gold-light);
  text-shadow: 0 2px 16px rgba(245, 158, 11, 0.6);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: hintPulse 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

.game-overlay-content {
  text-align: center; max-width: 380px; width: 90%;
  padding: 44px 34px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.game-overlay-icon {
  font-size: 68px; margin-bottom: 16px;
  filter: drop-shadow(0 6px 20px rgba(245, 158, 11, 0.5));
}
.game-overlay-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px; color: #fff;
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.game-overlay-content p {
  font-size: 15px; color: rgba(255, 255, 255, 0.65);
  line-height: 1.6; margin-bottom: 24px;
}

/* Demo Victory Box & Buttons */
.demo-win-box {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(21, 128, 61, 0.25));
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 18px 0 22px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.25);
}
.demo-win-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7); font-weight: 600;
}
.demo-win-value {
  font-family: 'Poppins', sans-serif;
  font-size: 38px; font-weight: 900;
  color: #4ade80;
  line-height: 1;
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.5);
}
.demo-real-play-btn {
  width: 100%;
  padding: 16px 26px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #ea580c, #c1121f) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 8px 30px rgba(234, 88, 12, 0.55) !important;
  transition: all var(--transition) !important;
}
.demo-real-play-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 36px rgba(234, 88, 12, 0.75) !important;
}

/* Game Over stats */
.go-stats {
  display: flex; gap: 24px; justify-content: center;
  margin: 24px 0 32px;
}
.go-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.go-stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px; color: var(--xmas-gold-light);
  line-height: 1;
}
.go-stat-label {
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.game-back-link {
  display: block; margin-top: 18px;
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}
.game-back-link:hover { color: #fff; }

.game-over-overlay {
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(230, 57, 70, 0.15) 0%, transparent 70%),
    rgba(8, 15, 29, 0.92);
}

/* ── Bet HUD (during gameplay) ──────────────────────────── */
.game-bet-hud {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 8px;
  font-size: 13px; font-weight: 600;
}
.bet-hud-balance { color: rgba(255, 255, 255, 0.75); }
.bet-hud-sep { color: rgba(255, 255, 255, 0.25); font-size: 10px; }
.bet-hud-current { color: var(--xmas-gold-light, #f0d060); }

/* ── Bet Screen Overlay ─────────────────────────────────── */
.bet-screen-overlay {
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(34, 197, 94, 0.14) 0%, transparent 70%),
              rgba(8, 15, 29, 0.95) !important;
  backdrop-filter: var(--glass-blur) !important;
  z-index: 100 !important;
  overflow-y: auto;
}
.bet-screen-content {
  text-align: center;
  max-width: 440px; width: 90%;
  padding: 38px 24px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: popIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bet-header h2 {
  font-family: 'Mountains of Christmas', cursive;
  font-size: 30px; color: #fff;
  margin-bottom: 16px;
}
.bet-balance-display {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin-bottom: 6px;
}
.bet-balance-label {
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.bet-balance-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px; color: var(--xmas-gold-light, #f0d060);
  line-height: 1;
}
.bet-balance-unit {
  font-size: 14px; color: rgba(255, 255, 255, 0.4);
}
.bet-historic {
  font-size: 12px; color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

/* Mercy indicator */
.bet-mercy {
  font-size: 13px; padding: 10px 18px;
  border-radius: var(--radius-sm); margin-bottom: 18px;
  font-weight: 600;
}
.bet-mercy.mercy-mild {
  background: rgba(245, 158, 11, 0.15); color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.bet-mercy.mercy-strong {
  background: rgba(34, 197, 94, 0.15); color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.entry-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.15em !important;
  color: #c4b5fd !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}

/* Botões Rápidos de Valor de Entrada (Pill Buttons) */
.entry-presets {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 22px 0 26px;
}
.entry-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-btn);
  padding: 10px 22px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px; font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
}
.entry-btn:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}
.entry-btn.active {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.5);
}
.entry-btn.disabled {
  opacity: 0.35; cursor: not-allowed;
}

/* Display de Valor Destaque */
.entry-display-box {
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(234, 88, 12, 0.55);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 22px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(234, 88, 12, 0.2);
}
.entry-prefix {
  font-family: 'Poppins', sans-serif;
  font-size: 24px; font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
}
.entry-amount {
  font-family: 'Poppins', sans-serif;
  font-size: 48px; font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

/* Card de Informações da Aposta */
.entry-meta-card {
  display: flex; justify-content: space-around;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  margin-bottom: 26px;
}
.meta-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.meta-lbl {
  font-size: 11px; color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600;
}
.meta-val {
  font-family: 'Poppins', sans-serif;
  font-size: 16px; font-weight: 800; color: #ffffff;
}
.meta-val.gold { color: #f59e0b; }

.bet-confirm-btn {
  width: 100%;
}

/* Emergency recharge */
.bet-emergency { margin-top: 14px; }
.bet-emergency-btn {
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #f59e0b !important;
  font-size: 13px; font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.bet-emergency-btn:hover {
  background: rgba(245, 158, 11, 0.25) !important;
  transform: translateY(-1px);
}

/* ── Game Over Bet Result ───────────────────────────────── */
.go-bet-section {
  margin: 10px 0 22px;
}
.go-bet-result {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px; line-height: 1;
  margin-bottom: 6px;
}
.go-bet-result.positive { color: #4ade80; }
.go-bet-result.negative { color: #ef4444; }
.go-bet-balance {
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .game-overlay,
  .game-overlay-content,
  .game-hud-top,
  .game-sound-btn {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .game-overlay {
    background: rgba(8, 15, 29, 0.94);
  }
}

@media (max-width: 480px) {
  .game-money-current { font-size: 30px; }
  .game-money-target { font-size: 18px; }
  .game-demo-hint { font-size: 22px; bottom: 12%; }
  .game-overlay-content h2 { font-size: 34px; }
  .go-stat-value { font-size: 34px; }
  .entry-amount { font-size: 40px; }
  .bet-screen-content { padding: 28px 18px; }
}
