/* ============================================================================
   SPINORYX · Jacks or Better — capa de pulido "premium"
   Capa no invasiva: no modifica el bundle. Solo refina estilos existentes
   y añade elementos decorativos (.vpx-*) gestionados por premium.js.
   Paleta: verde #04120d/#0b2c21 · dorado #d4af37/#f4d576 (sin cambios)
   ========================================================================== */

:root {
  --vpx-gold: #d4af37;
  --vpx-gold-bright: #f4d576;
  --vpx-gold-soft: rgba(212, 175, 55, 0.55);
  --vpx-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --vpx-ease-snap: cubic-bezier(0.34, 1.4, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .vpx-ghost, .vpx-fx { display: none !important; }
}


/* ----------------------------------------------------------------------------
   0. ESCALA — bloque central ~10 % más grande (cartas y controles sobre todo)
      Los clamp() originales tenían topes fijos; se elevan los topes ~10 %.
      En pantallas pequeñas el término vw sigue mandando: no rompe el móvil.
   -------------------------------------------------------------------------- */
.vp-root { overflow-x: clip; }
html, body { overflow-x: hidden; }
/* Cartas protagonistas: +9 % en base, mazo más cerca */
.vp-card-slot { width: clamp(64px, 14.5vw, 162px); }
.vp-cards { gap: clamp(8px, 1.6vw, 18px); }
.vp-cards-zone { gap: clamp(10px, 2vw, 18px); }
.vp-deck-stub { width: clamp(58px, 11.5vw, 124px); margin-left: 2px; }
.vp-rank { font-size: clamp(15px, 2.9vw, 32px); }
.vp-suit-small { font-size: clamp(12px, 2.2vw, 23px); }
.pip-xl { font-size: clamp(34px, 7.6vw, 80px); }
.pip-lg { font-size: clamp(24px, 5.4vw, 56px); }
.pip-md { font-size: clamp(17px, 3.6vw, 39px); }
.pip-sm { font-size: clamp(13px, 2.8vw, 30px); }
/* Compensación: paytable un poco más compacto para no ganar scroll */
.vp-paytable th, .vp-paytable td { padding: 3px 8px; }
.vp-paytable thead th { padding-top: 7px; }
.vp-paytable { margin-bottom: 8px; }
.vp-message { margin: 2px 0 8px; }

/* ----------------------------------------------------------------------------
   CORRECCIÓN DEL "10": el rango de dos dígitos invadía el primer pip.
   premium.js marca .vpx-ten; además, en cartas de 3 columnas (8·9·10)
   la rejilla de pips se aleja un poco de las esquinas.
   -------------------------------------------------------------------------- */
.vp-card-slot.vpx-ten .vp-pips { inset: 1% 8% 1% 8%; }
.vp-card-slot.vpx-ten .vp-pip.pip-sm { font-size: clamp(12px, 2.55vw, 27px); }
.vp-card-slot.vpx-ten .vp-corner { line-height: 1; }
.vp-card-slot.vpx-ten .vp-corner .vp-rank {
  font-size: clamp(12px, 2.3vw, 24px);
  letter-spacing: -0.09em;
  font-family: Arial Narrow, Segoe UI, Helvetica Neue, Arial, sans-serif;
  font-weight: 800;
  transform: scaleX(0.9);
  transform-origin: left center;
}
.vp-card-slot.vpx-ten .vp-corner.top { left: 4.5%; top: 3.5%; }
.vp-card-slot.vpx-ten .vp-corner.bottom { right: 4.5%; bottom: 3.5%; }
.vp-card-slot.vpx-ten .vp-corner.bottom .vp-rank { transform-origin: right center; }
.vp-card-slot.vpx-ten .vp-corner .vp-suit-small { font-size: clamp(11px, 1.9vw, 19px); }
/* Esquinas: un poco más pegadas al borde para todas las cartas */
.vp-corner.top { top: 4%; left: 6%; }
.vp-corner.bottom { bottom: 4%; right: 6%; }
/* Fila de controles: más legible (siempre) */
.vp-btn { letter-spacing: 0.16em; }
.vp-btn.double, .vp-btn.collect { min-width: 140px; }

/* Escala +10 % solo cuando hay espacio real (pantallas grandes) */
@media (min-width: 1500px) and (min-height: 860px) {
  .vp-root { padding-top: 84px; }
  .vp-paytable, .vp-bottombar, .vp-controls { width: min(1170px, 100%); }
  .vp-paytable table { font-size: clamp(10px, 1.45vw, 15px); }
  .vp-paytable th, .vp-paytable td { padding: 5px 9px; }
  .vp-message { font-size: clamp(13px, 2vw, 21px); margin: 6px 0 12px; }

  /* Cartas +11 % y mazo +10 %, más cerca de las cartas */
  .vp-card-slot { width: clamp(64px, 14.5vw, 182px); }
  .vp-cards { gap: clamp(8px, 1.6vw, 20px); }
  .vp-cards-zone { gap: clamp(10px, 2vw, 18px); margin-bottom: 18px; }
  .vp-deck-stub { width: clamp(58px, 11.5vw, 138px); margin-left: 2px; }
  .vp-rank { font-size: clamp(15px, 2.9vw, 36px); }
  .vp-suit-small { font-size: clamp(12px, 2.2vw, 26px); }
  .pip-xl { font-size: clamp(34px, 7.6vw, 90px); }
  .pip-lg { font-size: clamp(24px, 5.4vw, 64px); }
  .pip-md { font-size: clamp(17px, 3.6vw, 44px); }
  .pip-sm { font-size: clamp(13px, 2.8vw, 34px); }
  .vp-card-slot.vpx-ten .vp-pip.pip-sm { font-size: clamp(12px, 2.55vw, 30px); }
  .vp-card-slot.vpx-ten .vp-corner .vp-rank { font-size: clamp(12px, 2.3vw, 27px); }
  .vp-card-slot.vpx-ten .vp-corner .vp-suit-small { font-size: clamp(11px, 1.9vw, 21px); }
  .vp-paytable th, .vp-paytable td { padding: 4px 9px; }
  .vp-held-tag { font-size: clamp(9px, 1.3vw, 13px); padding: 5px 14px 4px; }

  /* Info boxes y botón principal */
  .vp-bottombar { gap: clamp(6px, 1.4vw, 16px); margin-bottom: 14px; }
  .vp-info-box { padding: 10px 10px 11px; }
  .vp-info-box label { font-size: clamp(8px, 1.1vw, 12px); margin-bottom: 4px; }
  .vp-info-box .value { font-size: clamp(14px, 2.3vw, 27px); }
  .vpx-win-counter { font-size: clamp(14px, 2.3vw, 27px); bottom: 11px; }
  .vp-primary-btn { font-size: clamp(16px, 2.6vw, 30px); padding: 8px 12px; }
  .vp-primary-btn small { font-size: clamp(8px, 1.1vw, 12px); }

  /* Fila de controles: más grande y legible */
  .vp-controls { gap: clamp(8px, 1.6vw, 18px); }
  .vp-btn { padding: 14px 22px; font-size: clamp(12px, 1.6vw, 15.5px); min-width: 72px; letter-spacing: 0.16em; }
  .vp-btn small { font-size: 0.78em; margin-top: 3px; }
  .vp-btn.double, .vp-btn.collect { min-width: 152px; }
  .vp-bet-group .vp-btn { font-size: clamp(16px, 2vw, 21px); min-width: 56px; padding: 14px 18px; }
  .vp-bet-group .vp-bet-mid { padding: 0 18px; font-size: clamp(12px, 1.5vw, 15.5px); }
  .vp-footer-note { margin-top: 16px; }
}

/* ----------------------------------------------------------------------------
   1. JERARQUÍA VISUAL — título y paytable pierden un poco de peso
   -------------------------------------------------------------------------- */

/* Velo muy suave sobre la cabecera (el título forma parte de la imagen de fondo) */
.vp-root::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 132px;
  background: linear-gradient(180deg, rgba(2, 10, 7, 0.34) 0%, rgba(2, 10, 7, 0.16) 55%, rgba(2, 10, 7, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.vp-paytable {
  border-color: rgba(212, 175, 55, 0.32);
  background: rgba(4, 18, 13, 0.72);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.04);
  transition: opacity 0.4s ease;
}
.vp-paytable::before { border-color: rgba(212, 175, 55, 0.14); }
.vp-paytable thead th { color: #e4c96a; }
.vp-paytable td { color: #c8bb96; }
.vp-paytable td.col-active { color: #f7efd6; }

/* En fase de selección/reparto el foco baja aún más al tapete */
.vp-root.vpx-focus-cards .vp-paytable { opacity: 0.86; }
.vp-root.vpx-focus-cards .vp-paytable tr.row-win { opacity: 1; }

/* ----------------------------------------------------------------------------
   2. ZONA DE CARTAS — glow radial, fieltro, sombras de contacto
   -------------------------------------------------------------------------- */

.vp-cards-zone {
  position: relative;
  isolation: isolate;
}

/* Glow verde/dorado + textura de fieltro (fuera del flujo: no altera el layout) */
.vp-cards-zone::before {
  content: "";
  position: absolute;
  inset: -70px -120px -80px -110px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 48% 56% at 47% 52%, rgba(232, 205, 120, 0.10), rgba(232, 205, 120, 0) 100%),
    radial-gradient(ellipse 70% 82% at 50% 54%, rgba(70, 150, 108, 0.30), rgba(30, 90, 62, 0.10) 60%, rgba(8, 40, 28, 0) 100%);
  pointer-events: none;
  z-index: -2;
  transition: opacity 0.5s ease, filter 0.5s ease;
}
/* Fieltro: ruido SVG con mezcla suave */
.vp-cards-zone::after {
  content: "";
  position: absolute;
  inset: -70px -120px -80px -110px;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.75  0 0 0 0 0.55  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  mask-image: radial-gradient(ellipse 62% 74% at 50% 55%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 62% 74% at 50% 55%, #000 20%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
/* El glow respira un poco cuando hay premio */
.vp-cards-zone.vpx-win-glow::before {
  animation: vpxZoneWin 1.4s ease-out 1;
}
@keyframes vpxZoneWin {
  0%   { filter: brightness(1); }
  30%  { filter: brightness(1.55) saturate(1.2); }
  100% { filter: brightness(1); }
}

/* Sombra de contacto bajo cada carta */
.vp-card-motion { isolation: isolate; }
.vp-card-slot::before {
  content: "";
  position: absolute;
  left: 9%; right: 9%; bottom: -9px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 72%);
  filter: blur(5px);
  z-index: -1;
  pointer-events: none;
  transition: transform 0.22s var(--vpx-ease), opacity 0.22s ease;
}
.vp-card-slot.held::before {
  transform: translateY(6px) scaleX(0.92);
  opacity: 0.75;
}
.vp-face.front {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.58), 0 2px 4px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 0 0 3px rgba(255, 255, 255, 0.55), inset 0 0 0 4px rgba(212, 175, 55, 0.28);
}
.vp-face.back {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.58), 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(212, 175, 55, 0.25);
}

/* ----------------------------------------------------------------------------
   3. MAZO — glow previo al reparto + cartas fantasma que vuelan al slot
   -------------------------------------------------------------------------- */

.vp-deck-stub {
  transition: filter 0.22s ease, transform 0.22s var(--vpx-ease), box-shadow 0.22s ease;
}
.vp-deck-stub::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(244, 213, 118, 0);
  pointer-events: none;
  transition: box-shadow 0.2s ease;
}
.vp-deck-stub.vpx-deck-glow {
  filter: brightness(1.18);
  transform: translateY(-2px) rotate(-1.2deg);
}
.vp-deck-stub.vpx-deck-glow::after {
  animation: vpxDeckGlow 0.42s ease-out 1;
}
@keyframes vpxDeckGlow {
  0%   { box-shadow: 0 0 0 0 rgba(244, 213, 118, 0.0), 0 0 0 rgba(244, 213, 118, 0); }
  35%  { box-shadow: 0 0 0 3px rgba(244, 213, 118, 0.55), 0 0 34px 8px rgba(212, 175, 55, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(244, 213, 118, 0), 0 0 0 rgba(244, 213, 118, 0); }
}
/* Micro-vibración del mazo al soltar cada carta */
.vp-deck-stub.vpx-deck-kick { animation: vpxDeckKick 0.16s ease-out 1; }
.vp-deck-stub.vpx-deck-glow.vpx-deck-kick { animation: vpxDeckKickGlow 0.16s ease-out 1; }
@keyframes vpxDeckKick {
  0% { transform: translate(0, 0); }
  40% { transform: translate(-4px, 1px) rotate(-1.5deg); }
  100% { transform: translate(0, 0); }
}
@keyframes vpxDeckKickGlow {
  0% { transform: translateY(-2px) rotate(-1.2deg); }
  40% { transform: translate(-4px, -1px) rotate(-2.6deg); }
  100% { transform: translateY(-2px) rotate(-1.2deg); }
}

/* Carta fantasma (dorso) que viaja del mazo al slot */
.vpx-ghost {
  position: fixed;
  left: 0; top: 0;
  border-radius: clamp(7px, 1.4vw, 13px);
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 175, 55, 0.35);
  pointer-events: none;
  z-index: 45;
  will-change: transform, opacity;
  transform-origin: center;
  opacity: 0;
}

/* ----------------------------------------------------------------------------
   4. HOLD — realce elegante al retener
   -------------------------------------------------------------------------- */

.vp-card-slot.selectable .vp-face.front { transition: box-shadow 0.18s ease, filter 0.18s ease; }
.vp-card-slot.selectable:hover:not(.held) .vp-face.front {
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(244, 213, 118, 0.45), 0 0 18px rgba(212, 175, 55, 0.3),
    inset 0 0 0 3px rgba(255, 255, 255, 0.55), inset 0 0 0 4px rgba(212, 175, 55, 0.28);
}
.vp-card-slot.held .vp-face.front {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.6), 0 0 0 3px var(--vpx-gold), 0 0 22px rgba(212, 175, 55, 0.5),
    inset 0 0 0 3px rgba(255, 255, 255, 0.55), inset 0 0 0 4px rgba(212, 175, 55, 0.28);
  animation: vpxHeldFlash 0.42s var(--vpx-ease) 1;
}
@keyframes vpxHeldFlash {
  0%   { box-shadow: 0 14px 26px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(244, 213, 118, 0.3), 0 0 0 rgba(212, 175, 55, 0); }
  40%  { box-shadow: 0 14px 26px rgba(0, 0, 0, 0.6), 0 0 0 4px var(--vpx-gold-bright), 0 0 36px rgba(244, 213, 118, 0.85); }
  100% { box-shadow: 0 14px 26px rgba(0, 0, 0, 0.6), 0 0 0 3px var(--vpx-gold), 0 0 22px rgba(212, 175, 55, 0.5); }
}
/* Destello dorado que barre la carta al retenerla */
.vp-card-slot.held .vp-face.front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 241, 190, 0.55) 48%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 241, 190, 0.55) 52%, transparent 70%);
  transform: translateX(-120%);
  animation: vpxSheen 0.55s ease-out 1 forwards;
  pointer-events: none;
  z-index: 4;
}
.vp-held-tag {
  top: -14px;
  background: linear-gradient(180deg, #fbe8a6 0%, var(--vpx-gold) 50%, #a8842a 100%);
  border: 1px solid #fff0c2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 18px rgba(212, 175, 55, 0.7), inset 0 1px rgba(255, 255, 255, 0.65);
  letter-spacing: 0.26em;
  animation: vpxHeldPop 0.32s var(--vpx-ease-snap) 1;
}
@keyframes vpxHeldPop {
  0%   { transform: translate(-50%, 8px) scale(0.6); opacity: 0; }
  60%  { transform: translate(-50%, -2px) scale(1.06); opacity: 1; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

/* ----------------------------------------------------------------------------
   5. GANANCIAS — pulso dorado en cartas ganadoras, fila del paytable, contador
   -------------------------------------------------------------------------- */

.vp-card-slot.win-card .vp-face.front {
  animation: vpxWinCard 0.6s ease-in-out 3;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.58), 0 0 0 2px rgba(212, 175, 55, 0.55), 0 0 14px rgba(244, 213, 118, 0.3),
    inset 0 0 0 3px rgba(255, 255, 255, 0.55), inset 0 0 0 4px rgba(212, 175, 55, 0.28);
}
.vp-card-slot.win-card { animation: vpxWinLift 0.6s ease-in-out 3; }
@keyframes vpxWinLift {
  0%, 100% { translate: 0 0; }
  45%      { translate: 0 -4px; }
}
@keyframes vpxWinCard {
  0%, 100% { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.58), 0 0 0 2px rgba(212, 175, 55, 0.55), 0 0 10px rgba(244, 213, 118, 0.2),
               inset 0 0 0 3px rgba(255, 255, 255, 0.55), inset 0 0 0 4px rgba(212, 175, 55, 0.28); filter: brightness(1); }
  45%      { box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6), 0 0 0 3px var(--vpx-gold-bright), 0 0 38px rgba(244, 213, 118, 0.85),
               inset 0 0 0 3px rgba(255, 255, 255, 0.6), inset 0 0 0 4px rgba(244, 213, 118, 0.5); filter: brightness(1.07); }
}
.vp-card-slot.win-card .vp-face.front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 241, 190, 0.5) 48%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 241, 190, 0.5) 52%, transparent 70%);
  transform: translateX(-120%);
  animation: vpxSheen 0.7s ease-out 1 forwards;
  animation-delay: 0.15s;
  pointer-events: none;
  z-index: 4;
}
@keyframes vpxSheen {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
/* Las cartas que no forman la combinación se atenúan levemente */
.vp-root.vpx-has-win .vp-cards .vp-card-slot:not(.win-card) .vp-face.front {
  filter: brightness(0.88) saturate(0.9);
  transition: filter 0.4s ease;
}

/* Fila ganadora del paytable: mismo ritmo que las cartas */
.vp-paytable tr.row-win td {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.42), rgba(212, 175, 55, 0.14) 70%, rgba(212, 175, 55, 0.05));
  color: #fff;
  text-shadow: 0 0 12px rgba(244, 213, 118, 0.7);
  animation: vpxRowWin 0.6s ease-in-out 3;
}
.vp-paytable tr.row-win td:first-child {
  box-shadow: inset 4px 0 0 var(--vpx-gold-bright);
  color: var(--vpx-gold-bright);
}
.vp-paytable tr.row-win td.col-active {
  background: linear-gradient(180deg, rgba(244, 213, 118, 0.55), rgba(212, 175, 55, 0.3));
  color: #fffbe8;
}
@keyframes vpxRowWin {
  0%, 100% { background-color: rgba(244, 213, 118, 0.0); box-shadow: inset 0 0 0 rgba(244, 213, 118, 0); }
  45%      { background-color: rgba(244, 213, 118, 0.32); box-shadow: inset 0 0 18px rgba(244, 213, 118, 0.35); text-shadow: 0 0 16px rgba(255, 240, 200, 0.95); }
}
.vp-paytable tr.row-win td:first-child { animation: vpxRowWin 0.6s ease-in-out 3, vpxRowBar 0.6s ease-in-out 3; }
@keyframes vpxRowBar {
  0%, 100% { box-shadow: inset 4px 0 0 var(--vpx-gold-bright); }
  45%      { box-shadow: inset 6px 0 0 #fff3cf, inset 0 0 18px rgba(244, 213, 118, 0.35); }
}

/* Contador WIN animado */
.vp-info-box.win { position: relative; }
.vp-info-box.win.vpx-counting .value { opacity: 0; }
.vpx-win-counter {
  position: absolute;
  left: 8px; right: 8px;
  bottom: 9px;
  font-size: clamp(14px, 2.3vw, 24px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--vpx-gold-bright);
  text-shadow: 0 0 16px rgba(244, 213, 118, 0.6);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.2;
}
.vp-info-box.win.vpx-win-pop { animation: vpxBoxPop 0.55s var(--vpx-ease-snap) 1; }
.vp-info-box.win.vpx-win-pop-big { animation: vpxBoxPopBig 0.9s var(--vpx-ease-snap) 1; }
@keyframes vpxBoxPop {
  0%   { box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 0 0 rgba(244, 213, 118, 0); }
  40%  { box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(244, 213, 118, 0.6), 0 0 18px rgba(212, 175, 55, 0.45); transform: scale(1.02); }
  100% { box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 0 0 rgba(244, 213, 118, 0); transform: scale(1); }
}
@keyframes vpxBoxPopBig {
  0%   { box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 0 0 rgba(244, 213, 118, 0); }
  30%  { box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 0 0 2px var(--vpx-gold-bright), 0 0 36px rgba(244, 213, 118, 0.85); transform: scale(1.06); }
  100% { box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 0 0 rgba(244, 213, 118, 0); transform: scale(1); }
}

/* Canvas de partículas propias (premios altos) */
.vpx-fx {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 44;
}

/* ----------------------------------------------------------------------------
   6. BOTONES — estados normal / hover / pressed / disabled
   -------------------------------------------------------------------------- */

.vp-btn {
  position: relative;
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(180deg, rgba(38, 76, 61, 0.97), rgba(14, 38, 30, 0.97));
  color: #f5ead0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.1), inset 0 -1px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease, opacity 0.25s ease;
}
.vp-btn:hover:not(:disabled) {
  filter: brightness(1.16);
  border-color: rgba(244, 213, 118, 0.8);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.32), inset 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.vp-btn:active:not(:disabled) {
  transform: translateY(1px);
  filter: brightness(0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 2px 6px rgba(0, 0, 0, 0.45);
}
/* Deshabilitado: misma familia cromática, menor intensidad (nunca gris muerto) */
.vp-btn:disabled {
  opacity: 0.86;
  filter: saturate(0.8) brightness(0.86);
  border-color: rgba(212, 175, 55, 0.4);
  color: #e6d9b4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.06);
}
.vp-btn:disabled small { color: #bfae84; }
.vp-bet-group .vp-btn { transform: none !important; box-shadow: none !important; }
.vp-bet-group .vp-btn:hover:not(:disabled) { background: rgba(212, 175, 55, 0.14); filter: brightness(1.15); }
.vp-bet-group .vp-btn:active:not(:disabled) { background: rgba(212, 175, 55, 0.24); }

.vp-btn.double {
  background: linear-gradient(180deg, #ad3a29, #6a1c11);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.14), inset 0 -1px rgba(0, 0, 0, 0.35);
}
.vp-btn.double:hover:not(:disabled) { box-shadow: 0 7px 18px rgba(0, 0, 0, 0.5), 0 0 20px rgba(217, 122, 107, 0.4); }
.vp-btn.double:disabled { filter: saturate(0.7) brightness(0.8); color: #fbe3dd; border-color: rgba(217, 122, 107, 0.5); }
.vp-btn.double:disabled small { color: #e8b8ae; }
.vp-btn.collect {
  background: linear-gradient(180deg, #33955f, #145033);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.16), inset 0 -1px rgba(0, 0, 0, 0.35);
}
.vp-btn.collect:hover:not(:disabled) { box-shadow: 0 7px 18px rgba(0, 0, 0, 0.5), 0 0 20px rgba(111, 211, 155, 0.4); }
.vp-btn.collect:disabled { filter: saturate(0.7) brightness(0.82); color: #e6f7ec; border-color: rgba(111, 211, 155, 0.5); }
.vp-btn.collect:disabled small { color: #b6dfc5; }
/* COLLECT disponible respira suavemente para invitar a cobrar */
.vp-btn.collect:not(:disabled) { animation: vpxCollectBreath 1.8s ease-in-out infinite; }
@keyframes vpxCollectBreath {
  0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42), 0 0 0 rgba(111, 211, 155, 0), inset 0 1px rgba(255, 255, 255, 0.16); }
  50%      { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42), 0 0 20px rgba(111, 211, 155, 0.45), inset 0 1px rgba(255, 255, 255, 0.16); }
}

/* Botón principal DEAL / DRAW */
.vp-primary-btn {
  position: relative;
  overflow: hidden;
  border-color: #f9e9b4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), 0 0 24px rgba(212, 175, 55, 0.38), inset 0 1px rgba(255, 255, 255, 0.6), inset 0 -2px rgba(0, 0, 0, 0.18);
  transition: filter 0.16s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.vp-primary-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}
.vp-primary-btn:not(:disabled)::after { animation: vpxPrimarySheen 4.2s ease-in-out infinite; }
@keyframes vpxPrimarySheen {
  0%, 72% { transform: translateX(-130%); }
  88%, 100% { transform: translateX(130%); }
}
.vp-primary-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 34px rgba(244, 213, 118, 0.55), inset 0 1px rgba(255, 255, 255, 0.65), inset 0 -2px rgba(0, 0, 0, 0.18);
}
.vp-primary-btn:active:not(:disabled) {
  transform: translateY(2px);
  filter: brightness(0.97);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), 0 0 16px rgba(212, 175, 55, 0.3), inset 0 3px 8px rgba(0, 0, 0, 0.28);
}
/* Deshabilitado: dorado apagado pero reconocible */
.vp-primary-btn:disabled {
  filter: saturate(0.55) brightness(0.74);
  cursor: not-allowed;
  border-color: rgba(247, 227, 161, 0.55);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.35);
}
.vp-primary-btn:disabled small { color: #5c4a14; }

.vp-info-btn { transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.vp-info-btn:hover { transform: scale(1.06); box-shadow: 0 0 20px rgba(212, 175, 55, 0.45); }

/* Info boxes: un pelo más de relieve */
.vp-info-box {
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ----------------------------------------------------------------------------
   7. DOUBLE — tensión: entrada, hover, flip rápido, WIN/LOSE
   -------------------------------------------------------------------------- */

.vp-double-overlay {
  animation: vpxOverlayIn 0.32s ease both;
  background: radial-gradient(ellipse at 50% 40%, rgba(6, 26, 18, 0.88), rgba(2, 9, 7, 0.94));
}
@keyframes vpxOverlayIn { 0% { opacity: 0; backdrop-filter: blur(0); } 100% { opacity: 1; } }

/* Entrada escalonada (no toca el transform del panel, que gestiona Framer) */
.vp-double-title, .vp-double-sub, .vp-double-stake, .vp-double-label, .vp-double-dealer-row, .vp-double-pick-row {
  animation: vpxRise 0.45s var(--vpx-ease) both;
}
.vp-double-sub { animation-delay: 0.05s; }
.vp-double-stake { animation-delay: 0.1s; }
.vp-double-label { animation-delay: 0.14s; }
.vp-double-dealer-row { animation-delay: 0.18s; }
.vp-double-pick-row { animation-delay: 0.26s; }
@keyframes vpxRise {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.vp-double-panel {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(212, 175, 55, 0.18), inset 0 1px rgba(255, 255, 255, 0.06);
}
.vp-double-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(212, 175, 55, 0.08), transparent 70%);
  pointer-events: none;
}
.vp-double-stake {
  color: var(--vpx-gold-bright);
  text-shadow: 0 0 14px rgba(244, 213, 118, 0.45);
}
/* Cuando aún no se ha elegido, la fila de cartas respira (tensión) */
.vp-double-pick-row:not(.locked) .vp-card-slot .vp-face.back {
  animation: vpxPickBreath 1.6s ease-in-out infinite;
}
.vp-double-pick-row:not(.locked) .vp-card-slot:nth-child(2) .vp-face.back { animation-delay: 0.2s; }
.vp-double-pick-row:not(.locked) .vp-card-slot:nth-child(3) .vp-face.back { animation-delay: 0.4s; }
.vp-double-pick-row:not(.locked) .vp-card-slot:nth-child(4) .vp-face.back { animation-delay: 0.6s; }
@keyframes vpxPickBreath {
  0%, 100% { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(212, 175, 55, 0.25), 0 0 0 rgba(212, 175, 55, 0); }
  50%      { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(212, 175, 55, 0.5), 0 0 16px rgba(212, 175, 55, 0.3); }
}
/* Hover visible sobre las 4 cartas */
.vp-double-pick-row:not(.locked) .vp-card-slot { transition: filter 0.18s ease; }
.vp-double-pick-row:not(.locked) .vp-card-slot:hover .vp-face.back {
  animation: none;
  filter: brightness(1.16);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.65), 0 0 0 3px var(--vpx-gold-bright), 0 0 30px rgba(244, 213, 118, 0.7);
}
.vp-double-pick-row:not(.locked) .vp-card-slot:hover::before { transform: translateY(8px) scaleX(0.9); opacity: 0.7; }
/* Cartas hermanas se apagan un poco al pasar por una */
.vp-double-pick-row:not(.locked):hover .vp-card-slot:not(:hover) { filter: brightness(0.82); }
/* Flip rápido al seleccionar */
.vp-double-pick-row .vp-card-inner { transition-duration: 0.22s !important; transition-timing-function: cubic-bezier(0.3, 0.8, 0.4, 1) !important; }
.vp-double-pick-row.locked .vp-card-slot:not(.chosen) .vp-face.front { filter: brightness(0.78) saturate(0.85); transition: filter 0.4s ease 0.25s; }
.vp-card-slot.chosen .vp-face.front {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.6), 0 0 0 3px var(--vpx-gold-bright), 0 0 40px rgba(244, 213, 118, 0.9);
}
/* Resultado WIN / LOSE */
.vp-double-result {
  animation: vpxResultPop 0.5s var(--vpx-ease-snap) both;
}
.vp-double-result.win {
  color: var(--vpx-gold-bright);
  text-shadow: 0 0 22px rgba(244, 213, 118, 0.85), 0 0 50px rgba(212, 175, 55, 0.5);
  animation: vpxResultPop 0.5s var(--vpx-ease-snap) both, winPulseOnce 0.9s ease-in-out 1;
}
.vp-double-result.lose {
  color: #e8735f;
  text-shadow: 0 0 18px rgba(232, 115, 95, 0.6);
  animation: vpxResultPop 0.4s var(--vpx-ease-snap) both, loseShake 0.4s ease 0.1s;
}
@keyframes vpxResultPop {
  0% { opacity: 0; transform: scale(0.7); letter-spacing: 0.1em; }
  60% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
.vp-double-panel.win::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 60%, rgba(244, 213, 118, 0.22), rgba(212, 175, 55, 0.04) 60%, transparent 80%);
  pointer-events: none;
  animation: vpxGoldFlash 1.1s ease-out forwards;
}
@keyframes vpxGoldFlash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.vp-double-panel.lose { border-color: rgba(224, 106, 90, 0.55); }
.vp-double-actions .vp-btn { animation: vpxRise 0.35s var(--vpx-ease) both 0.15s; }

/* Footer un poco más discreto */
.vp-footer-note { color: rgba(205, 178, 113, 0.42); }

/* LOSE: la carta elegida pasa a borde rojizo (sin dorado engañoso) */
.vp-double-panel.lose .vp-card-slot.chosen .vp-face.front {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(224, 106, 90, 0.85), 0 0 26px rgba(224, 106, 90, 0.45);
  filter: saturate(0.9);
}
.vp-double-panel.lose .vp-card-slot.chosen::after { border-color: rgba(224, 106, 90, 0.6); animation-duration: 1.1s; }
.vp-double-panel.lose .vp-double-stake { color: #d9c4b5; text-shadow: none; }

/* Aviso de saldo insuficiente (gestionado por premium.js) */
.vpx-lowbal {
  position: fixed;
  left: 50%;
  bottom: 4.6rem;
  transform: translateX(-50%) translateY(8px);
  z-index: 46;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 10px;
  background: rgba(7, 26, 19, 0.94);
  color: #f3e6bd;
  font: 700 0.76rem/1.3 "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.vpx-lowbal.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.vpx-lowbal b { color: var(--vpx-gold-bright); }
