/* ==========================================================================
   Salón de cartas y mesa de estrategia - Fijate Tools
   Blackjack 21, Video póker y Ruleta europea
   ========================================================================== */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Colores corporativos y temáticos */
  --primary-color: #10b981;
  --primary-light: rgba(16, 185, 129, 0.15);
  --primary-hover: #059669;
  --border-color: #1f2937;
  --bg-input: #111827;

  /* Paño de casino */
  --felt-green-deep: #09261a;
  --felt-green-mid: #0f3d2a;
  --felt-border: #1e593d;
  --wood-rail: #2b1810;
  --gold-accent: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.4);

  /* Superficies generales */
  --bg-card: #111827;
  --bg-card-alt: #1a2234;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
}

[data-theme="light"],
body.light-theme {
  --primary-color: #059669;
  --primary-light: rgba(5, 150, 105, 0.1);
  --primary-hover: #047857;
  --border-color: #e5e7eb;
  --bg-input: #ffffff;

  --felt-green-deep: #123d2c;
  --felt-green-mid: #1b543d;
  --felt-border: #287353;
  --wood-rail: #3a2218;

  --bg-card: #ffffff;
  --bg-card-alt: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
}

body {
  font-family: var(--font-main);
  background-color: #0b0f17;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] body {
  background-color: #f1f5f9;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.section-title,
.hero-title,
.faq-section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Aviso de simulación didáctica (AdSense)
   ========================================================================== */
.notice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #fbbf24;
}

.notice-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-content strong {
  color: #fde68a;
}

/* ==========================================================================
   Barra del salón de juego (Banca, Tabs de juego y Acciones)
   ========================================================================== */
.casino-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.bankroll-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 6px 12px;
}

.bankroll-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.bankroll-amount {
  font-size: 1.2rem;
  color: #34d399;
}

.chip-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.btn-reload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-alt);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.btn-reload:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary-color);
  color: #34d399;
}

/* Tabs de cambio de juego */
.game-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-alt);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.casino-aux-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* ==========================================================================
   Selector de fichas de casino
   ========================================================================== */
.chip-selector-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 1.5rem;
}

.chip-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.chip-stack-options {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.casino-chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}

.casino-chip:hover {
  transform: translateY(-3px) scale(1.08);
}

.casino-chip.active {
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 0 0 3px #f59e0b, 0 6px 14px rgba(0, 0, 0, 0.5);
}

/* Colores de fichas */
.chip-5 { background: #ef4444; color: #fff; }
.chip-10 { background: #3b82f6; color: #fff; }
.chip-25 { background: #10b981; color: #fff; }
.chip-50 { background: #f97316; color: #fff; }
.chip-100 { background: #18181b; color: #f59e0b; border-color: #f59e0b; }
.chip-500 { background: #8b5cf6; color: #fff; }

.chip-current-indicator {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.chip-current-indicator strong {
  font-size: 1.1rem;
  color: var(--gold-accent);
  margin-left: 4px;
}

/* ==========================================================================
   Tapete aterciopelado de casino (Felt Table)
   ========================================================================== */
.felt-table {
  background: radial-gradient(circle at 50% 30%, var(--felt-green-mid) 0%, var(--felt-green-deep) 100%);
  border: 8px solid var(--wood-rail);
  border-radius: 24px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.felt-header-strip {
  text-align: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 8px;
  margin-bottom: 1rem;
}

.felt-rule-text {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: rgba(245, 158, 11, 0.85);
  text-transform: uppercase;
}

/* Áreas de Crupier y Jugador */
.dealer-area,
.player-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 120px;
}

.actor-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-badge {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-accent);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.85rem;
}

.cards-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 105px;
  perspective: 800px;
}

/* ==========================================================================
   Diseño de cartas de baraja (Playing Cards)
   ========================================================================== */
.playing-card {
  width: 72px;
  height: 104px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  user-select: none;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
  animation: cardDeal 0.25s ease-out forwards;
}

@keyframes cardDeal {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.playing-card.back {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-pattern {
  width: 80%;
  height: 85%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.card-corner.bottom {
  transform: rotate(180deg);
}

.card-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
}

.card-suit {
  font-size: 0.9rem;
}

.card-center {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* Palos de baraja */
.playing-card.suit-hearts,
.playing-card.suit-diamonds {
  color: #dc2626;
}

.playing-card.suit-spades,
.playing-card.suit-clubs {
  color: #0f172a;
}

/* ==========================================================================
   Asesor didáctico de Blackjack y probabilidades
   ========================================================================== */
.felt-center-advisor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 1rem 0;
}

.advisor-box {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 16px;
  max-width: 480px;
  width: 100%;
}

.advisor-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.advisor-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.text-warning { color: #f59e0b; }
.text-accent { color: #34d399; }

.round-outcome-msg {
  padding: 8px 20px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  animation: outcomePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes outcomePop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.outcome-win { background: #059669; color: #fff; box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4); }
.outcome-bj { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; box-shadow: 0 4px 16px rgba(217, 119, 6, 0.5); }
.outcome-loss { background: #b91c1c; color: #fff; }
.outcome-push { background: #475569; color: #fff; }

/* Botonera de juego */
.blackjack-controls,
.videopoker-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.controls-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-highlight {
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-secondary { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.18); }

.btn-hit { background: #2563eb; color: #fff; }
.btn-hit:hover { background: #1d4ed8; }

.btn-stand { background: #dc2626; color: #fff; }
.btn-stand:hover { background: #b91c1c; }

.btn-double { background: #d97706; color: #fff; }
.btn-double:hover { background: #b45309; }

.btn-split { background: #7c3aed; color: #fff; }
.btn-split:hover { background: #6d28d9; }

/* ==========================================================================
   Mesa de Video Póker (Jacks or Better)
   ========================================================================== */
.poker-paytable-wrapper {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.poker-paytable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: right;
}

.poker-paytable th,
.poker-paytable td {
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.poker-paytable th {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.poker-paytable td:first-child,
.poker-paytable th:first-child {
  text-align: left;
}

.poker-paytable tr.active-payout-row {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #fde68a !important;
  font-weight: 700;
}

.poker-paytable .col-max {
  color: var(--gold-accent);
}

.videopoker-hand-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 1.5rem 0;
}

.videopoker-cards {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vp-card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.vp-hold-badge {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  user-select: none;
  transition: all 0.15s ease;
}

.vp-card-slot.held .vp-hold-badge {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.vp-card-slot.held .playing-card {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.vp-bet-level {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.vp-bet-buttons {
  display: flex;
  gap: 4px;
}

.btn-vp-bet {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
}

.btn-vp-bet.active {
  background: var(--gold-accent);
  color: #000;
  border-color: var(--gold-accent);
}

/* ==========================================================================
   Mesa de Ruleta Europea - Edición Creativa 3D en Español
   Cilindro completo visible, perspectiva tumbada y telemetría de frecuencias
   ========================================================================== */
.roulette-creative-table {
  display: flex;
  flex-direction: column;
  background: #04080e;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
  user-select: none;
}

/* 1. Escenario Superior: Iluminación de casino, Ruleta Completa 3D (720px) y Frecuencias */
.roulette-top-stage {
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, #0e3d25 0%, #082617 45%, #03130a 75%, #010604 100%);
  border-bottom: 2px solid #16482f;
  padding: 12px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 -16px 28px rgba(0, 0, 0, 0.7);
}

.roulette-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}

.stage-title-wrap {
  display: flex;
  flex-direction: column;
}

.roulette-title-es {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.roulette-subtitle-es {
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Insignia del último número ganador */
.roulette-last-winner-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 30px;
  padding: 4px 14px 4px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.winner-label {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.winner-badge-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.winner-badge-circle.red   { background: radial-gradient(circle at 35% 30%, #ef4444 0%, #b91c1c 70%, #7f1d1d 100%); }
.winner-badge-circle.black { background: radial-gradient(circle at 35% 30%, #334155 0%, #1e293b 70%, #090d16 100%); }
.winner-badge-circle.zero  { background: radial-gradient(circle at 35% 30%, #10b981 0%, #047857 70%, #064e3b 100%); }

/* Fila central: Flanco izquierdo (calientes), Ruleta 3D completa de 720px, Flanco derecho (fríos) */
.roulette-arena-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Tarjetas laterales de frecuencias con acabado de cristal de casino */
.stats-flank-card {
  width: 175px;
  background: linear-gradient(180deg, rgba(13, 20, 32, 0.82) 0%, rgba(6, 10, 16, 0.94) 100%);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.stats-flank-card.flank-hot {
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.08), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.stats-flank-card.flank-cold {
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.08), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.flank-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.flank-sub {
  font-size: 0.68rem;
  color: #64748b;
  margin-bottom: 6px;
}

.flank-chips-list {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.hot-cold-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.stat-num-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.stat-num-circle.red   { background: radial-gradient(circle at 35% 30%, #ef4444 0%, #b91c1c 70%, #7f1d1d 100%); }
.stat-num-circle.black { background: radial-gradient(circle at 35% 30%, #334155 0%, #1e293b 70%, #090d16 100%); }
.stat-num-circle.zero  { background: radial-gradient(circle at 35% 30%, #10b981 0%, #047857 70%, #064e3b 100%); }

.stat-count-num {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Cilindro de la Ruleta 100% visible, majestuoso (720px) subido para llenar el hueco superior */
.roulette-fullwheel-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 760px;
  height: 440px;
  margin-top: -24px;
  margin-bottom: -16px;
  position: relative;
}

.roulette-wood-pedestal {
  position: relative;
  width: 720px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sombra de contacto profunda en la mesa */
.roulette-wood-pedestal::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 220px;
  bottom: 20px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.65) 45%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.wheel-3d-tilted-rig {
  width: 720px;
  height: 720px;
  transform: perspective(1200px) rotateX(43deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.95));
}

#roulette-wheel-canvas {
  width: 720px;
  height: 720px;
  border-radius: 50%;
  display: block;
}

/* 2. Tapete de Apuestas de Lujo en Español (Paño Verde Esmeralda) */
.roulette-mat-cloth-area {
  position: relative;
  display: flex;
  align-items: stretch;
  background: radial-gradient(ellipse at 50% 25%, #0f4d30 0%, #093821 55%, #042214 100%);
  border-top: 2px solid #205c3d;
  border-bottom: 2px solid #04190e;
  padding: 16px 20px;
  overflow-x: auto;
  box-shadow: inset 0 4px 18px rgba(0, 0, 0, 0.5);
}

.table-limits-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 70px;
}

.limit-entry {
  display: flex;
  flex-direction: column;
}

.limit-caption {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

.limit-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.roulette-table-mat-inner {
  flex: 1;
  display: flex;
  justify-content: center;
  padding-left: 14px;
}

/* Grid del paño */
.roulette-grid {
  display: grid;
  grid-template-columns: 58px repeat(12, 54px) 58px;
  grid-template-rows: repeat(3, 44px) 40px 42px;
  gap: 4px;
  user-select: none;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mat-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.15s ease;
  color: #ffffff;
  font-family: var(--font-heading);
}

.mat-cell:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
}

/* Casilla 0 Poligonal a la izquierda */
.mat-cell.zero {
  grid-row: 1 / span 3;
  grid-column: 1;
  background: rgba(4, 120, 87, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px 4px 4px 12px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #f8fafc;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* Píldoras / Óvalos Satinados para Números 1 al 36 */
.num-pill {
  width: 44px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.mat-cell.red .num-pill {
  background: linear-gradient(180deg, #b91c1c 0%, #991b1b 60%, #7f1d1d 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.mat-cell.black .num-pill {
  background: linear-gradient(180deg, #27272a 0%, #18181b 60%, #09090b 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Columnas 2 a 1 a la derecha */
.mat-cell.cell-col-1 { grid-column: 14; grid-row: 1; font-weight: 700; font-size: 0.85rem; }
.mat-cell.cell-col-2 { grid-column: 14; grid-row: 2; font-weight: 700; font-size: 0.85rem; }
.mat-cell.cell-col-3 { grid-column: 14; grid-row: 3; font-weight: 700; font-size: 0.85rem; }

/* Docenas en castellano (Fila 4) */
.mat-cell.doz-1 { grid-column: 2 / span 4; grid-row: 4; font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; }
.mat-cell.doz-2 { grid-column: 6 / span 4; grid-row: 4; font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; }
.mat-cell.doz-3 { grid-column: 10 / span 4; grid-row: 4; font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; }

/* Apuestas Sencillas en castellano (Fila 5) */
.mat-cell.simple-low  { grid-column: 2 / span 2; grid-row: 5; font-weight: 700; font-size: 0.88rem; }
.mat-cell.simple-even { grid-column: 4 / span 2; grid-row: 5; font-weight: 800; font-size: 0.88rem; }
.mat-cell.simple-red  { grid-column: 6 / span 2; grid-row: 5; display: flex; align-items: center; gap: 8px; }
.mat-cell.simple-black{ grid-column: 8 / span 2; grid-row: 5; display: flex; align-items: center; gap: 8px; }
.mat-cell.simple-odd  { grid-column: 10 / span 2; grid-row: 5; font-weight: 800; font-size: 0.88rem; }
.mat-cell.simple-high { grid-column: 12 / span 2; grid-row: 5; font-weight: 700; font-size: 0.88rem; }

/* Rombos Rojo y Negro con texto */
.mat-diamond-red {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 65%, #7f1d1d 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.mat-diamond-black {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #334155 0%, #0f172a 65%, #020617 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.mat-cell-txt-es {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

/* Resaltado del número o casilla ganadora */
.mat-cell.winning-highlight {
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.95), inset 0 0 12px rgba(245, 158, 11, 0.6) !important;
  animation: winningCellPulse 0.5s infinite alternate ease-in-out;
  z-index: 10;
}

@keyframes winningCellPulse {
  from { transform: scale(1); filter: brightness(1); }
  to { transform: scale(1.06); filter: brightness(1.3); }
}

/* Ficha colocada sobre el tapete */
.bet-chip-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #fef08a 0%, #f59e0b 60%, #b45309 100%);
  color: #000;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 8;
}

/* 3. Bandeja Inferior de Fichas y Acciones en Castellano */
.roulette-bottom-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: #090d15;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.roulette-aux-buttons,
.roulette-actions-deck {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-control-chip-es {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
}

.btn-control-chip-es:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-control-action-es {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 42px;
}

.btn-control-action-es:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-control-action-es:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Botón principal de GIRO (Girar ruleta) */
.btn-spin-highlight-es {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%);
  border: 2px solid #34d399;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 48px;
  margin-left: 6px;
}

.btn-spin-highlight-es:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.btn-spin-highlight-es:hover .spin-glow-icon svg {
  transform: rotate(60deg);
}

.btn-spin-highlight-es:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.7);
}

.spin-glow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
  transition: transform 0.3s ease;
}

/* Selector de Fichas (Centro) */
.roulette-chips-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-chip-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-chip-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.roulette-chips-deck {
  display: flex;
  align-items: center;
  gap: 8px;
}

.netent-chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
}

.netent-chip:hover {
  transform: translateY(-3px) scale(1.05);
}

.netent-chip.active {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 0 3px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.9);
}

.chip-inner-val {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #090d16;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.chip-1  { background: repeating-conic-gradient(#ffffff 0% 12.5%, #1e3a8a 12.5% 25%); }
.chip-2  { background: repeating-conic-gradient(#fde047 0% 12.5%, #854d0e 12.5% 25%); }
.chip-5  { background: repeating-conic-gradient(#ef4444 0% 12.5%, #ffffff 12.5% 25%); }
.chip-10 { background: repeating-conic-gradient(#3b82f6 0% 12.5%, #ffffff 12.5% 25%); }
.chip-25 { background: repeating-conic-gradient(#22c55e 0% 12.5%, #ffffff 12.5% 25%); }
.chip-100{ background: repeating-conic-gradient(#09090b 0% 12.5%, #f59e0b 12.5% 25%); }
.chip-500{ background: repeating-conic-gradient(#8b5cf6 0% 12.5%, #ffffff 12.5% 25%); }

/* 4. Barra de Telemetría Inferior */
.roulette-telemetry-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: #040609;
  font-size: 0.82rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.statusbar-left,
.statusbar-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.statusbar-btn-sound {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
  transition: color 0.15s;
}

.statusbar-btn-sound:hover {
  color: #fff;
}

.statusbar-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  color: #cbd5e1;
}

.statusbar-metric {
  display: flex;
  align-items: center;
  gap: 5px;
}

.metric-label {
  color: #64748b;
  font-size: 0.78rem;
}

.metric-val {
  color: #f1f5f9;
  font-weight: 700;
}

.statusbar-casino-brand {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #475569;
  font-weight: 700;
}

.statusbar-left,
.statusbar-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.statusbar-btn-sound {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
  transition: color 0.15s;
}

.statusbar-btn-sound:hover {
  color: #fff;
}

.statusbar-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.statusbar-tag.statusbar-help {
  cursor: pointer;
}

.statusbar-metric {
  display: flex;
  align-items: center;
  gap: 4px;
}

.metric-label {
  color: #64748b;
  font-size: 0.75rem;
}

.metric-val {
  color: #f1f5f9;
  font-weight: 700;
}

.statusbar-casino-brand {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: #475569;
  font-weight: 700;
}

/* ==========================================================================
   Sección didáctica y tablas SEO
   ========================================================================== */
.card-main.seo-guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

.section-title {
  font-size: 1.45rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.guide-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.guide-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.guide-block p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--bg-card-alt);
  font-weight: 600;
  color: var(--text-main);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.formula-box {
  background: var(--bg-card-alt);
  border-left: 4px solid var(--primary-color);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #34d399;
}

/* FAQs */
.faq-container {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.faq-item {
  margin-bottom: 1.25rem;
}

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.faq-a {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Modales canónicos
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card-lg {
  max-width: 620px;
}

@keyframes modalEnter {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.btn-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.btn-modal-close:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 70vh;
  font-size: 0.95rem;
  line-height: 1.55;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card-alt);
}

.stats-grid-modal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 1.25rem;
}

.stat-box {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
}

.stat-box-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-box-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

/* ==========================================================================
   Adaptación móvil responsiva
   ========================================================================== */
@media (max-width: 768px) {
  .casino-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .game-nav-tabs {
    overflow-x: auto;
    width: 100%;
  }

  .felt-table {
    padding: 1rem 0.75rem;
    min-height: 420px;
  }

  .playing-card {
    width: 58px;
    height: 86px;
    padding: 4px;
  }

  .card-val {
    font-size: 0.85rem;
  }

  .card-suit {
    font-size: 0.75rem;
  }

  .card-center {
    font-size: 1.3rem;
  }

  .chip-stack-options {
    gap: 6px;
  }

  .casino-chip {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }

  .wheel-canvas-container {
    width: 260px;
    height: 260px;
  }

  /* Ruleta Creativa 3D en móviles */
  .roulette-top-stage {
    padding: 12px 10px;
    gap: 10px;
  }

  .roulette-stage-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .roulette-arena-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .roulette-fullwheel-container {
    width: 100%;
    max-width: 340px;
    height: 200px;
  }

  .roulette-wood-pedestal {
    width: 340px;
    height: 200px;
  }

  .wheel-3d-tilted-rig {
    width: 340px;
    height: 340px;
    transform: perspective(700px) rotateX(50deg);
  }

  #roulette-wheel-canvas {
    width: 340px !important;
    height: 340px !important;
  }

  .stats-flank-card {
    width: 100%;
    max-width: 340px;
  }

  .roulette-bottom-controls-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px;
  }

  .roulette-chips-carousel {
    order: 1;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }

  .roulette-aux-buttons {
    order: 2;
  }

  .roulette-actions-deck {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
  }

  .roulette-telemetry-statusbar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .statusbar-center {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .stats-grid-modal {
    grid-template-columns: 1fr;
  }
}
