/* ═══════════════════════════════════════════════════════════════════════════
   JUEGO — Pestañas, Ruleta y Sorteos dentro de SegiPuntos
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Barra de pestañas ─────────────────────────────────────────────────────── */
.sp-tabs {
  display: flex;
  gap: 3px;
  background: var(--color-white);
  border-radius: 12px;
  padding: 4px;
  margin: 20px 0 0;
  box-shadow: var(--shadow-card);
  position: sticky; top: 8px; z-index: 10;
}
.sp-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 9px 4px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-slate);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  font-family: inherit;
  white-space: nowrap;
}
.sp-tab-ico { font-size: 15px; line-height: 1; flex: none; }
.sp-tab-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Móvil: icono arriba, texto debajo — caben los 4 sin cortarse */
@media (max-width: 480px) {
  .sp-tab {
    flex-direction: column;
    gap: 3px;
    padding: 8px 2px;
    font-size: 11px;
  }
  .sp-tab-ico { font-size: 17px; }
  .sp-tab-lbl { max-width: 100%; }
}
.sp-tab.active {
  background: var(--color-ink);
  color: #fff;
}
.sp-tab-dot {
  position: absolute; top: 6px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #f59e0b;
  animation: sp-pulse 1.5s infinite;
}
@keyframes sp-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.6; } }

/* ── RULETA ────────────────────────────────────────────────────────────────── */
.ruleta-wrap { text-align: center; padding: 8px 0 20px; }

/* Banner del premio gordo */
.ruleta-jackpot-banner {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
  color: #5a3e00;
  font-size: 13px; font-weight: 700;
  padding: 7px 18px; border-radius: 100px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(255, 184, 0, 0.4);
  animation: jackpot-glow 2s ease-in-out infinite;
}
.ruleta-jackpot-banner strong { font-weight: 800; }
.ruleta-jackpot-spark { animation: spark 1.5s ease-in-out infinite; }
@keyframes jackpot-glow {
  0%,100% { box-shadow: 0 2px 10px rgba(255,184,0,0.4); }
  50%     { box-shadow: 0 2px 20px rgba(255,184,0,0.7); }
}
@keyframes spark { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } }

.ruleta-stage {
  position: relative;
  width: 320px; height: 320px;
  margin: 0 auto 8px;
  max-width: 88vw; max-height: 88vw;
}

/* Anillo de luces (detrás de la ruleta) */
.ruleta-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.ruleta-luz { animation: luz-pulse 1.4s ease-in-out infinite; }
@keyframes luz-pulse {
  0%,100% { opacity: 0.35; }
  50%     { opacity: 1; }
}
/* Durante el giro, las luces parpadean rápido */
.ruleta-stage.spinning .ruleta-luz { animation: luz-fast 0.3s linear infinite; }
@keyframes luz-fast {
  0%,100% { opacity: 1; fill: #ffd700; }
  50%     { opacity: 0.3; fill: #fff; }
}

.ruleta-svg {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  transform: rotate(0deg);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.22));
}
.ruleta-sector.is-jackpot { filter: url(#jackpotGlow); }

/* Puntero superior */
.ruleta-pointer {
  position: absolute;
  top: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 6;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 30px solid var(--color-ink);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.35));
}
.ruleta-stage.landed .ruleta-pointer { animation: pointer-tick 0.5s ease-out; }
@keyframes pointer-tick {
  0% { transform: translateX(-50%) rotate(0); }
  25% { transform: translateX(-50%) rotate(-12deg); }
  55% { transform: translateX(-50%) rotate(6deg); }
  100% { transform: translateX(-50%) rotate(0); }
}

/* Centro de la ruleta */
.ruleta-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--color-white);
  border: 5px solid var(--color-ink);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.ruleta-center-inner { font-size: 30px; }
.ruleta-stage.landed .ruleta-center-inner { animation: center-pop 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes center-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

.ruleta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--color-ink); color: #fff;
  border: none; border-radius: 100px;
  padding: 15px 36px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.12s ease, opacity 0.2s;
  margin-top: 8px;
}
.ruleta-btn:active { transform: scale(0.96); }
.ruleta-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ruleta-btn.extra {
  background: var(--color-white); color: var(--color-ink);
  border: 2px solid var(--color-silver);
  font-size: 14px; padding: 11px 24px; box-shadow: none;
}

.ruleta-sub {
  font-size: 13px; color: var(--color-slate);
  margin-top: 14px; line-height: 1.5;
}
.ruleta-countdown {
  font-variant-numeric: tabular-nums lining-nums; font-feature-settings: 'zero' 0;
  font-weight: 700; color: var(--color-graphite);
}

/* Resultado tras girar */
.ruleta-resultado {
  background: var(--color-white);
  border-radius: 16px;
  padding: 26px 24px;
  margin: 18px auto 0; max-width: 340px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  animation: sp-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
}
.ruleta-resultado.is-jackpot {
  border-color: #ffd700;
  background: linear-gradient(180deg, #fffdf5 0%, #fff 100%);
  box-shadow: 0 8px 32px rgba(255,184,0,0.35);
}
@keyframes sp-pop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ruleta-resultado-emoji { font-size: 56px; line-height: 1; animation: emoji-bounce 0.6s ease-out; }
@keyframes emoji-bounce { 0% { transform: scale(0) rotate(-20deg); } 60% { transform: scale(1.2) rotate(10deg); } 100% { transform: scale(1) rotate(0); } }
.ruleta-resultado-titulo { font-size: 24px; font-weight: 800; color: var(--color-graphite); margin: 12px 0 4px; }
.ruleta-resultado-sub { font-size: 14px; color: var(--color-slate); }

/* ── SORTEOS ───────────────────────────────────────────────────────────────── */
.sorteo-card {
  background: var(--color-white);
  border: 1px solid var(--color-silver);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.sorteo-img {
  width: 100%; height: 150px; object-fit: cover;
  background: var(--color-paper);
  display: block;
}
.sorteo-img-placeholder {
  width: 100%; height: 120px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dk) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
}
.sorteo-body { padding: 16px 18px; }
.sorteo-nombre { font-size: 17px; font-weight: 700; color: var(--color-graphite); }
.sorteo-premio {
  font-size: 13px; color: var(--green-dk); font-weight: 600;
  margin: 2px 0 8px;
}
.sorteo-desc { font-size: 13px; color: var(--color-slate); line-height: 1.5; margin-bottom: 12px; }
.sorteo-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--color-stone);
  padding-top: 12px; border-top: 1px solid var(--color-silver);
  margin-bottom: 12px;
}
.sorteo-mis-entradas {
  background: var(--green-lt); color: var(--green-dk);
  padding: 3px 10px; border-radius: 100px; font-weight: 600;
}
.sorteo-cta {
  width: 100%;
  background: var(--color-ink); color: #fff;
  border: none; border-radius: 10px;
  padding: 13px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: transform 0.12s ease, opacity 0.2s;
}
.sorteo-cta:active { transform: scale(0.98); }
.sorteo-cta:disabled { opacity: 0.45; cursor: not-allowed; }
.sorteo-countdown {
  font-variant-numeric: tabular-nums lining-nums; font-feature-settings: 'zero' 0, 'tnum' 1; font-weight: 600; color: var(--color-graphite);
}

/* Aviso de no vinculado / sistema pausado */
.juego-aviso {
  text-align: center; padding: 40px 24px;
  color: var(--color-slate);
}
.juego-aviso-icon { font-size: 48px; margin-bottom: 12px; }
.juego-aviso-title { font-size: 17px; font-weight: 600; color: var(--color-graphite); margin-bottom: 6px; }
.juego-aviso-cta {
  display: inline-block; margin-top: 16px;
  background: var(--color-ink); color: #fff;
  padding: 11px 24px; border-radius: 100px;
  text-decoration: none; font-weight: 600; font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIX GLOBAL: sin subrayados de enlace "antiguos" en toda la zona SegiPuntos.
   Los <a> que funcionan como botones/tiles no deben subrayarse nunca.
   ═══════════════════════════════════════════════════════════════════════════ */
.sp-body a,
.sp-card a, .sp-card,
.sp-btn, .juego-aviso-cta,
.sorteo-card a, .sorteo-cta,
.sp-tab {
  text-decoration: none !important;
}
.sp-body a:hover,
.sp-btn:hover, .juego-aviso-cta:hover,
.sorteo-cta:hover, .sp-tab:hover {
  text-decoration: none !important;
}
/* Hover moderno en las cards del catálogo: lift sutil, no subrayado */
.sp-card {
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.sp-card:hover {
  transform: translateY(-2px);
}

/* ── RASCA Y GANA (grid 3×3) ────────────────────────────────────────────────── */
.rasca-wrap { text-align: center; padding: 8px 0 20px; }
.rasca-header { margin-bottom: 14px; }
.rasca-titulo { font-size: 22px; font-weight: 800; color: var(--color-graphite); }
.rasca-subtitulo { font-size: 13px; color: var(--color-slate); margin-top: 2px; }

.rasca-instruccion {
  font-size: 14px; color: var(--color-graphite);
  margin: 14px auto 16px; max-width: 320px; line-height: 1.5;
}

.rasca-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 320px; max-width: 88vw;
  margin: 0 auto;
}
.rasca-celda {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-paper);
  border: 2px solid var(--color-silver);
  display: flex; align-items: center; justify-content: center;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.rasca-celda-simbolo {
  font-size: 38px; line-height: 1;
  user-select: none; pointer-events: none;
}
.rasca-celda-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  cursor: grab;
}
.rasca-celda-canvas:active { cursor: grabbing; }
.rasca-celda.revelada { border-color: var(--color-stone); }
.rasca-celda.ganadora {
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.35), 0 4px 14px rgba(255,184,0,0.4);
  transform: scale(1.04);
  animation: celda-win 0.6s ease;
  background: linear-gradient(135deg, #fffbe6, #fff);
}
@keyframes celda-win {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1.04); }
}

.rasca-progreso {
  font-size: 14px; font-weight: 600; color: var(--color-graphite);
  margin: 18px 0 12px; min-height: 20px;
}


.rasca-leyenda {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px; margin: 0 auto 18px; max-width: 340px;
}
.rasca-leyenda-item {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--color-paper);
  border: 1px solid var(--color-silver);
  border-radius: 100px;
  padding: 4px 10px 4px 8px;
  font-size: 12px; font-weight: 600; color: var(--color-graphite);
}
.rasca-leyenda-item.is-jackpot {
  background: linear-gradient(135deg, #fff4c2, #ffe27a);
  border-color: #ffd700;
  color: #5a3e00; font-weight: 800;
  box-shadow: 0 2px 8px rgba(255,184,0,0.35);
}
.rasca-leyenda-emoji { font-size: 15px; }
.rasca-leyenda-txt {
  font-variant-numeric: tabular-nums lining-nums; font-feature-settings: 'zero' 0;
}

/* ── POPUP MODAL DE PREMIO ──────────────────────────────────────────────────── */
.premio-modal-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 0.28s ease;
}
.premio-modal-overlay.visible { opacity: 1; }
.premio-modal {
  position: relative;
  background: var(--color-white);
  border-radius: 22px;
  padding: 36px 28px 28px;
  max-width: 360px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: scale(0.85) translateY(10px);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.premio-modal-overlay.visible .premio-modal { transform: scale(1) translateY(0); }
.premio-modal.is-jackpot {
  border: 3px solid #ffd700;
  background: linear-gradient(180deg, #fffdf5 0%, #fff 60%);
}
.premio-modal-rays {
  position: absolute; top: 50%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255,215,0,0.18) 0deg 12deg, transparent 12deg 24deg);
  animation: rays-spin 12s linear infinite;
  z-index: 0;
}
@keyframes rays-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.premio-modal-content { position: relative; z-index: 1; }
.premio-modal-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-slate); margin-bottom: 14px;
}
.premio-modal.is-jackpot .premio-modal-label { color: #b8860b; }
.premio-modal-emoji {
  font-size: 76px; line-height: 1;
  animation: premio-emoji-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes premio-emoji-in {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  60% { transform: scale(1.25) rotate(12deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.premio-modal-titulo {
  font-size: 30px; font-weight: 800; color: var(--color-graphite);
  margin: 14px 0 6px; line-height: 1.15; letter-spacing: -0.5px;
}
.premio-modal.is-jackpot .premio-modal-titulo {
  background: linear-gradient(135deg, #d4a017, #ffb800);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.premio-modal-sub {
  font-size: 14px; color: var(--color-slate); line-height: 1.5;
  margin-bottom: 24px; padding: 0 8px;
}
.premio-modal-btn {
  width: 100%;
  background: var(--color-ink); color: #fff;
  border: none; border-radius: 100px;
  padding: 15px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: transform 0.12s ease, opacity 0.2s;
}
.premio-modal-btn:active { transform: scale(0.97); }
.premio-modal.is-jackpot .premio-modal-btn {
  background: linear-gradient(135deg, #d4a017, #ffb800); color: #3a2a00;
}

/* ── SELECTOR "OTRO JUEGO" (tirada extra con elección) ──────────────────────── */
.otro-juego-box {
  margin: 28px auto 0;
  max-width: 360px;
  background: var(--color-paper);
  border: 1px dashed var(--color-stone);
  border-radius: 16px;
  padding: 20px 22px;
  text-align: center;
}
.otro-juego-titulo {
  font-size: 16px; font-weight: 700; color: var(--color-graphite);
  margin-bottom: 4px;
}
.otro-juego-sub {
  font-size: 13px; color: var(--color-slate); line-height: 1.5;
  margin-bottom: 14px;
}
.otro-juego-btn {
  width: 100%;
  background: var(--color-white);
  color: var(--color-ink);
  border: 2px solid var(--color-ink);
  border-radius: 100px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: transform 0.12s ease, background 0.2s, color 0.2s;
}
.otro-juego-botones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.otro-juego-btn:hover:not(:disabled) {
  background: var(--color-ink); color: #fff;
}
.otro-juego-btn:active { transform: scale(0.97); }
.otro-juego-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════════════════
   TRAGAPERRAS — estética retro de máquina de bar
   ═══════════════════════════════════════════════════════════════════════════ */
.slot-wrap {
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slot-jackpot-cartel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #1f2937;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35), inset 0 -2px 0 rgba(0,0,0,0.1);
  margin-bottom: 14px;
  animation: slot-jackpot-pulse 1.5s ease-in-out infinite;
}
.slot-jackpot-valor { font-weight: 900; }
@keyframes slot-jackpot-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* La máquina: marco oscuro con bisel metálico y luces alrededor */
.slot-machine {
  position: relative;
  background: linear-gradient(180deg, #1f2937 0%, #0f172a 100%);
  border-radius: 22px;
  padding: 18px 18px 14px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.35),
    inset 0 2px 0 rgba(255,255,255,0.08),
    inset 0 -3px 0 rgba(0,0,0,0.4);
  border: 2px solid #334155;
  width: 100%;
  max-width: 360px;
}

/* Display: las 3 ventanas con los carretes */
.slot-display {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: #0a0f1a;
  border-radius: 14px;
  padding: 10px;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* Línea de pago central — dorada, atraviesa los 3 carretes */
.slot-payline {
  position: absolute;
  left: 6px; right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 70px;
  border-top: 2px solid rgba(245, 158, 11, 0.55);
  border-bottom: 2px solid rgba(245, 158, 11, 0.55);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

/* Cada carrete: ventana con 3 símbolos visibles, overflow oculto */
.slot-reel {
  height: 210px;          /* 3 símbolos × 70px */
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
  border-radius: 8px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
/* Sombra interior arriba/abajo para que parezca profundidad de cilindro */
.slot-reel::before,
.slot-reel::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 30px;
  pointer-events: none;
  z-index: 3;
}
.slot-reel::before { top: 0;    background: linear-gradient(180deg, rgba(0,0,0,0.18), transparent); }
.slot-reel::after  { bottom: 0; background: linear-gradient(0deg,   rgba(0,0,0,0.18), transparent); }

.slot-strip {
  will-change: transform;
}
.slot-sym {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  user-select: none;
  -webkit-user-select: none;
}

/* Lucecitas amarillas debajo (decoración) */
.slot-leds {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.slot-leds span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  animation: slot-led 1.2s ease-in-out infinite;
}
.slot-leds span:nth-child(2) { animation-delay: 0.1s; }
.slot-leds span:nth-child(3) { animation-delay: 0.2s; }
.slot-leds span:nth-child(4) { animation-delay: 0.3s; }
.slot-leds span:nth-child(5) { animation-delay: 0.4s; }
.slot-leds span:nth-child(6) { animation-delay: 0.5s; }
.slot-leds span:nth-child(7) { animation-delay: 0.6s; }
.slot-leds span:nth-child(8) { animation-delay: 0.7s; }
.slot-leds span:nth-child(9) { animation-delay: 0.8s; }
.slot-leds span:nth-child(10){ animation-delay: 0.9s; }
@keyframes slot-led {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

/* Botón TIRAR — gigante y muy táctil */
.slot-pull-btn {
  background: linear-gradient(180deg, #1A1A1A 0%, #000 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25), inset 0 -3px 0 rgba(0,0,0,0.3);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  margin-top: 16px;
  min-width: 220px;
}
.slot-pull-btn:hover:not(:disabled) { transform: translateY(-1px); }
.slot-pull-btn:active:not(:disabled){ transform: translateY(2px); box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.slot-pull-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.slot-pull-btn.slot-extra {
  background: linear-gradient(180deg, #06A600 0%, #058A00 100%);
}

/* JACKPOT HIT — destello dorado en toda la máquina */
.slot-machine.slot-jackpot-hit {
  animation: slot-jackpot-flash 0.6s ease-out 3;
}
@keyframes slot-jackpot-flash {
  0%, 100% { box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 2px 0 rgba(255,255,255,0.08), inset 0 -3px 0 rgba(0,0,0,0.4); }
  50%      { box-shadow: 0 0 60px rgba(245, 158, 11, 0.9), 0 20px 40px rgba(0,0,0,0.35), inset 0 0 30px rgba(245, 158, 11, 0.6); }
}
.slot-machine.slot-jackpot-hit .slot-payline {
  border-color: rgba(245, 158, 11, 1);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.9);
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  PALANCA LATERAL — estilo casino clásico, brazo bajable                  */
/* ═══════════════════════════════════════════════════════════════════════ */
.slot-machine-frame {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  max-width: 380px;
  margin: 0 auto;
}
.slot-machine-frame .slot-machine {
  flex: 1;
  min-width: 0;
}

.slot-lever {
  position: relative;
  width: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

/* Cilindro vertical fijo a la máquina (la base de la palanca) */
.slot-lever-base {
  position: absolute;
  left: 50%;
  top: 22%;
  bottom: 18%;
  width: 18px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #1f2937 0%, #0f172a 50%, #020617 100%);
  border-radius: 9px;
  box-shadow:
    inset 2px 0 3px rgba(255,255,255,0.08),
    inset -2px 0 4px rgba(0,0,0,0.5),
    0 4px 8px rgba(0,0,0,0.3);
}

/* Brazo vertical con la bola arriba (lo que se ve bajar al pulsar) */
.slot-lever-arm {
  position: absolute;
  left: 50%;
  top: 8%;
  height: 28%;
  width: 8px;
  background: linear-gradient(180deg, #e5e7eb 0%, #9ca3af 50%, #4b5563 100%);
  border-radius: 4px;
  transform: translateX(-50%);
  transform-origin: bottom center;
  transition: transform 0.18s ease-out;
  box-shadow: inset 1px 0 2px rgba(255,255,255,0.4), inset -1px 0 2px rgba(0,0,0,0.4);
}

/* Bola dorada arriba del brazo */
.slot-lever-ball {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 32% 28%, #fef3c7 0%, #fbbf24 35%, #d97706 70%, #92400e 100%);
  border-radius: 50%;
  box-shadow:
    0 3px 8px rgba(0,0,0,0.4),
    inset 2px 2px 5px rgba(255,255,255,0.5),
    inset -2px -2px 5px rgba(0,0,0,0.3);
}

/* Hover sutil */
.slot-lever:hover .slot-lever-ball {
  filter: brightness(1.1);
}
.slot-lever:active .slot-lever-arm {
  transform: translateX(-50%) translateY(8px);
}

/* Animación de bajada al disparar (clase añadida desde JS) */
.slot-lever.is-pulled .slot-lever-arm {
  animation: slot-lever-pull 0.7s cubic-bezier(0.3, 1, 0.5, 1);
}
@keyframes slot-lever-pull {
  0%   { transform: translateX(-50%) translateY(0); }
  25%  { transform: translateX(-50%) translateY(56px); }
  55%  { transform: translateX(-50%) translateY(56px); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  JACKPOT BRILLANTE EN LOS STRIPS                                          */
/*  El símbolo de mayor valor lleva un halo dorado para reconocerlo al vuelo */
/* ═══════════════════════════════════════════════════════════════════════ */
.slot-sym.is-jackpot {
  position: relative;
  background: radial-gradient(
    circle at center,
    rgba(253, 224, 71, 0.45) 0%,
    rgba(253, 224, 71, 0.20) 45%,
    transparent 75%
  );
  border-radius: 10px;
  animation: slot-jackpot-glow 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(253, 224, 71, 0.6));
}
@keyframes slot-jackpot-glow {
  0%, 100% {
    box-shadow: 0 0 6px rgba(253, 224, 71, 0.4), inset 0 0 8px rgba(253, 224, 71, 0.15);
  }
  50% {
    box-shadow: 0 0 14px rgba(253, 224, 71, 0.8), inset 0 0 14px rgba(253, 224, 71, 0.35);
  }
}

/* En móvil, la palanca un poco más compacta */
@media (max-width: 480px) {
  .slot-machine-frame { gap: 4px; }
  .slot-lever { width: 36px; }
  .slot-lever-base { width: 14px; }
  .slot-lever-arm { width: 7px; }
  .slot-lever-ball { width: 26px; height: 26px; top: -14px; }
}

/* ═══════════════════════════════════════════════════════════════════════ */
/*  STREAK BADGE — racha diaria visible encima del juego                    */
/* ═══════════════════════════════════════════════════════════════════════ */
.streak-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 auto 14px;
  max-width: 380px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.streak-badge-fire {
  font-size: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
  animation: streak-fire-flicker 1.8s ease-in-out infinite;
}
@keyframes streak-fire-flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50%      { transform: scale(1.08) rotate(2deg); }
}

.streak-badge-text {
  flex: 1;
  min-width: 0;
}
.streak-badge-title {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
  line-height: 1.2;
}
.streak-badge-sub {
  font-size: 12px;
  color: #b45309;
  margin-top: 2px;
  line-height: 1.2;
}

.streak-badge-stat {
  text-align: center;
  background: white;
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 50px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.streak-badge-num {
  font-size: 20px;
  font-weight: 800;
  color: #b45309;
  line-height: 1;
}
.streak-badge-lbl {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92400e;
  margin-top: 2px;
}

/* Variante WARNING: racha en peligro (no jugó hoy aún) */
.streak-badge.streak-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  border-color: #ea580c;
  animation: streak-pulse-warn 2s ease-in-out infinite;
}
@keyframes streak-pulse-warn {
  0%, 100% { box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2); }
  50%      { box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4); }
}
.streak-badge.streak-warning .streak-badge-title { color: #9a3412; }
.streak-badge.streak-warning .streak-badge-sub   { color: #c2410c; font-weight: 600; }

/* Variante COLD: racha perdida (animar al usuario a recuperarla) */
.streak-badge.streak-cold {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-color: #9ca3af;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.streak-badge.streak-cold .streak-badge-fire { filter: grayscale(1) opacity(0.5); animation: none; }
.streak-badge.streak-cold .streak-badge-title { color: #374151; }
.streak-badge.streak-cold .streak-badge-sub   { color: #6b7280; }
.streak-badge.streak-cold .streak-badge-num   { color: #4b5563; }

/* ═══ STREAK COMPACT — versión a una línea para no robar protagonismo ═══ */
.streak-badge.streak-compact {
  gap: 8px;
  padding: 8px 12px;
  border-width: 1px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.streak-badge.streak-compact .streak-badge-fire {
  font-size: 20px;
}
.streak-badge.streak-compact .streak-badge-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.2;
}
.streak-badge.streak-compact .streak-badge-title {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}
.streak-badge.streak-compact .streak-badge-sub {
  font-size: 11px;
  color: #b45309;
  opacity: 0.85;
}
.streak-badge.streak-compact.streak-warning .streak-badge-sub {
  font-weight: 600;
  opacity: 1;
}

/* ═══ RASCA HEADER COMPACT — quitar ruido vertical ═══ */
.rasca-header-compact {
  text-align: center;
  margin-bottom: 6px;
}
.rasca-header-compact .rasca-titulo {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.rasca-header-compact .rasca-tope {
  font-weight: 500;
  color: #b45309;
  font-size: 15px;
  margin-left: 4px;
}
