* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #130516;
  color: #f5f5f5;
  min-height: 100vh;
}
#app {
  min-height: 100vh;
  box-sizing: border-box;
}
.containerloader {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader {
  width: 150px; height: 10px; border-radius: 20px;
  border: 2px solid #ffd200; position: relative;
}
.loader::before {
  content: ""; position: absolute; margin: 2px; inset: 0 100% 0 0;
  border-radius: inherit; background: #fff;
  animation: l6 2s infinite;
}
@keyframes l6 { 100% { inset: 0; } }

/* ============ NEON CASINO - LOGIN ============ */
.nc-login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,45,143,.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(176,107,255,.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255,210,0,.12) 0%, transparent 55%),
    linear-gradient(135deg, #0d011f 0%, #130516 50%, #1a0333 100%);
  position: relative;
  overflow: hidden;
}
.nc-login-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,79,163,.15) 1px, transparent 1.5px);
  background-size: 40px 40px, 60px 60px;
  background-position: 0 0, 20px 20px;
  pointer-events: none;
  animation: sbSparkle 12s linear infinite;
}
.nc-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 36px 32px;
  border-radius: 24px;
  background: rgba(30, 8, 50, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,79,163,.4);
  box-shadow:
    0 30px 80px rgba(0,0,0,.8),
    0 0 0 1px rgba(255,255,255,.05),
    0 0 60px rgba(255,45,143,.35),
    inset 0 1px 0 rgba(255,255,255,.15);
  animation: ncLoginIn .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ncLoginIn {
  0%   { opacity: 0; transform: translateY(20px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.nc-login-logo {
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ff2d8f;
  text-shadow:
    0 0 10px rgba(255,45,143,.9),
    0 0 25px rgba(255,45,143,.6),
    0 0 50px rgba(255,45,143,.4);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nc-login-logo span { color: #ffd200; text-shadow: 0 0 10px rgba(255,210,0,.9), 0 0 25px rgba(255,210,0,.6); }
.nc-login-logo-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 14px rgba(255,90,0,.5));
}
.nc-login-logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 10px rgba(255,210,0,.8));
  animation: ncCoinFloat 3s ease-in-out infinite;
}
.nc-login-welcome {
  text-align: center;
  font-size: 13px;
  color: #c9c9d6;
  margin: 0 0 24px;
}
.nc-login-field {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.nc-login-field-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  opacity: .7;
  pointer-events: none;
  z-index: 1;
}
.nc-login-field input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,79,163,.3);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.nc-login-field input::placeholder { color: #888; }
.nc-login-field input:focus {
  outline: none;
  border-color: #ff2d8f;
  background: rgba(0,0,0,.5);
  box-shadow:
    0 0 0 3px rgba(255,45,143,.25),
    0 0 20px rgba(255,45,143,.4);
}
.nc-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 20px;
  font-size: 12px;
}
.nc-login-check {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c9c9d6;
  cursor: pointer;
  user-select: none;
}
.nc-login-check input {
  accent-color: #ff2d8f;
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.nc-login-link {
  color: #ff8fd0;
  text-decoration: none;
  font-weight: 700;
  transition: color .15s, text-shadow .15s;
}
.nc-login-link:hover {
  color: #ffd200;
  text-shadow: 0 0 10px rgba(255,210,0,.7);
}
.nc-login-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid #fff8b0;
  background: linear-gradient(180deg, #ffe066 0%, #ffb300 50%, #e67e00 100%);
  color: #4a1a00;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow:
    0 6px 0 #8a4a00,
    0 12px 24px rgba(255,179,0,.5),
    inset 0 2px 0 rgba(255,255,255,.6);
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.nc-login-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  box-shadow:
    0 8px 0 #8a4a00,
    0 16px 30px rgba(255,179,0,.6),
    inset 0 2px 0 rgba(255,255,255,.7);
}
.nc-login-btn:active { transform: translateY(2px) scale(.99); }
.nc-login-label {
  display: block;
  font-size: 12px;
  color: #c9c9d6;
  margin: 2px 0 6px 4px;
}
.nc-login-field input[type="date"] { color-scheme: dark; }
.nc-login-note {
  font-size: 11px;
  color: #9a9aac;
  margin: -6px 0 18px 4px;
}
.nc-login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #c9c9d6;
}

/* ============ NEON CASINO - LOBBY PROFESIONAL ============ */
.nc-navbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: linear-gradient(180deg, #0d011f 0%, #130516 100%);
  border-bottom: 1px solid rgba(255,79,163,.3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.nc-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ff2d8f;
  text-shadow:
    0 0 10px rgba(255,45,143,.9),
    0 0 20px rgba(255,45,143,.6),
    0 0 40px rgba(255,45,143,.4);
  white-space: nowrap;
}
.nc-logo span { color: #ffd200; text-shadow: 0 0 10px rgba(255,210,0,.9), 0 0 20px rgba(255,210,0,.6); }
.nc-logo img {
  display: block;
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255,90,0,.45));
}
.nc-search {
  flex: 1;
  max-width: 420px;
  position: relative;
  display: flex;
  align-items: center;
}
.nc-search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  opacity: .6;
  pointer-events: none;
}
.nc-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,79,163,.3);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 13px;
}
.nc-search input:focus {
  outline: none;
  border-color: #ff2d8f;
  box-shadow: 0 0 0 3px rgba(255,45,143,.2);
}
.nc-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(60,20,100,.9), rgba(30,5,60,.95));
  border: 1px solid rgba(255,210,0,.4);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 8px rgba(0,0,0,.5);
}
.nc-coin { font-size: 18px; }
.nc-wallet b { color: #ffd200; font-size: 14px; text-shadow: 0 0 8px rgba(255,210,0,.6); }
.nc-deposit {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7dff5f, #2ecc40);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 #0f5a1a, 0 4px 8px rgba(0,0,0,.4);
  transition: transform .15s;
}
.nc-deposit:hover { transform: scale(1.1); }
.nc-profile { position: relative; }
.nc-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,79,163,.3);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.nc-profile-btn:hover { background: rgba(255,255,255,.1); }
.nc-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff5fb0, #c4006b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 13px;
}
.nc-caret { font-size: 10px; opacity: .7; }
.nc-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #1c0a20;
  border: 1px solid rgba(255,79,163,.4);
  border-radius: 12px;
  padding: 6px;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.8);
  z-index: 200;
}
.nc-dropdown.open { display: block; }
.nc-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: #fff;
  text-align: left;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: capitalize;
}
.nc-dropdown-item:hover { background: rgba(255,79,163,.2); }
.nc-logout { color: #f87171; font-weight: 700; }

.nc-layout {
  display: flex;
  min-height: calc(100vh - 70px);
}
.nc-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0d011f 0%, #130516 100%);
  border-right: 1px solid rgba(255,79,163,.2);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nc-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #e8e8f0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.nc-side-item span {
  font-size: 18px;
  filter: drop-shadow(0 0 4px rgba(255,79,163,.4)) brightness(1.15);
}
.nc-side-item em { font-style: normal; }
.nc-side-item:hover { background: rgba(255,79,163,.15); color: #fff; }
.nc-side-item.active {
  background: linear-gradient(90deg, rgba(255,45,143,.3), rgba(255,45,143,.05));
  color: #fff;
  border-left: 3px solid #ff2d8f;
  box-shadow: inset 0 0 20px rgba(255,45,143,.15);
}

.nc-main {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

/* Hero banner */
.nc-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 220px;
  /* La imagen del banner ya trae el espacio vacío a la izquierda para el texto */
  background:
    linear-gradient(90deg, rgba(42,5,80,.55) 0%, rgba(42,5,80,0) 55%),
    url('assets/banner-bienvenida.jpg') right center / cover no-repeat,
    linear-gradient(135deg, #2a0550 0%, #0d011f 100%);
  border: 2px solid rgba(255,79,163,.5);
  box-shadow: 0 20px 50px rgba(0,0,0,.7), 0 0 40px rgba(255,45,143,.3);
}
.nc-hero-art { display: none !important; }
.nc-hero-content { max-width: 56%; }
.nc-hero-slide {
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 220px;
  flex-wrap: wrap;
}
.nc-hero-art {
  position: relative;
  width: 320px;
  height: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.nc-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 10px 25px rgba(0,0,0,.7))
    drop-shadow(0 0 30px rgba(255,210,0,.55));
  animation: ncHeroImgFloat 4s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: screen;
}
@keyframes ncHeroImgFloat {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-10px) rotate(1deg); }
}
.nc-hero-wheel {
  font-size: 130px;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.7)) drop-shadow(0 0 30px rgba(255,210,0,.5));
  animation: ncWheelSpin 12s linear infinite;
}
@keyframes ncWheelSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.nc-hero-coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nc-coin-float {
  position: absolute;
  font-size: 34px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.6));
  animation: ncCoinFloat 3s ease-in-out infinite;
}
.nc-coin-float.c1 { top: 5%;  left: 5%;  animation-delay: 0s; }
.nc-coin-float.c2 { top: 15%; right: 0%; animation-delay: .6s; font-size: 40px; }
.nc-coin-float.c3 { bottom: 10%; left: 15%; animation-delay: 1.2s; }
.nc-coin-float.c4 { bottom: 5%; right: 10%; animation-delay: 1.8s; font-size: 30px; }
@keyframes ncCoinFloat {
  0%,100% { transform: translateY(0) rotate(-8deg); }
  50%     { transform: translateY(-14px) rotate(8deg); }
}
@media (max-width: 720px) {
  .nc-hero {
    background:
      linear-gradient(180deg, rgba(30,4,60,.35) 0%, rgba(30,4,60,.85) 100%),
      url('assets/banner-bienvenida.jpg') 78% center / cover no-repeat,
      #2a0550;
  }
  .nc-hero-content { max-width: none; }
  .nc-hero-slide {
    padding: 24px;
    gap: 16px;
    justify-content: center;
    text-align: center;
  }
  .nc-hero-content h2 { font-size: 30px; }
  .nc-hero-content p { font-size: 14px; }
}
.nc-hero-content h2 {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0 0 10px;
  background: linear-gradient(180deg, #fff8b0 0%, #ffd200 40%, #ff8a00 75%, #b35c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  /* Sombra con filter: con text-shadow el texto transparente se ve borroso */
  filter: drop-shadow(0 3px 0 #7a3d00) drop-shadow(0 6px 14px rgba(0,0,0,.7));
}
.nc-hero-content p {
  font-size: 16px;
  font-weight: 700;
  color: #ffe9a0;
  margin: 0 0 22px;
  text-shadow: 0 2px 6px rgba(0,0,0,.8), 0 0 12px rgba(255,210,0,.35);
  letter-spacing: .3px;
}
.nc-hero-btn {
  position: relative;
  padding: 14px 34px;
  background: linear-gradient(180deg, #fff3a0 0%, #ffd200 35%, #ffb300 65%, #e67e00 100%);
  color: #4a1a00;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 3px solid #fff8b0;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 6px 0 #8a4a00,
    0 12px 24px rgba(255,179,0,.55),
    0 0 30px rgba(255,210,0,.7),
    inset 0 2px 0 rgba(255,255,255,.7),
    inset 0 -3px 0 rgba(0,0,0,.2);
  transition: transform .15s, filter .15s, box-shadow .15s;
  animation: ncHeroBtnPulse 1.8s ease-in-out infinite;
}
.nc-hero-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.85), transparent);
  transform: skewX(-20deg);
  animation: ncHeroBtnShine 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ncHeroBtnShine {
  0%   { left: -60%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}
@keyframes ncHeroBtnPulse {
  0%,100% { box-shadow: 0 6px 0 #8a4a00, 0 12px 24px rgba(255,179,0,.55), 0 0 25px rgba(255,210,0,.6), inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,0,0,.2); }
  50%     { box-shadow: 0 6px 0 #8a4a00, 0 12px 24px rgba(255,179,0,.7), 0 0 45px rgba(255,210,0,1), inset 0 2px 0 rgba(255,255,255,.8), inset 0 -3px 0 rgba(0,0,0,.2); }
}
.nc-hero-btn:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.12);
}
.nc-hero-btn:active {
  transform: translateY(2px) scale(.98);
}
.nc-hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.nc-hero-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.nc-hero-dots span.active { background: #ffd200; box-shadow: 0 0 10px #ffd200; }

/* Páginas informativas: Promociones y Soporte */
.nc-info-page { max-width: 960px; margin: 0 auto; }
.nc-info-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
  color: #ffd200;
  text-shadow: 0 0 12px rgba(255,210,0,.6);
}
.nc-info-sub { margin: 0 0 22px; color: #c9c9d6; font-size: 14px; }
.nc-info-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.nc-info-card {
  position: relative;
  padding: 22px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(120,40,160,.35), rgba(20,8,30,.8));
  border: 1px solid rgba(255,45,143,.45);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.nc-info-card h3 { margin: 10px 0 6px; font-size: 16px; color: #fff; }
.nc-info-card p { margin: 0; font-size: 13px; line-height: 1.5; color: #c9c9d6; }
.nc-info-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900;
  color: #4a1a00;
  background: linear-gradient(180deg, #fff3a0, #ffd200 40%, #e67e00);
  box-shadow: 0 0 14px rgba(255,210,0,.6);
}
.nc-info-note { margin: 22px 0 0; font-size: 12px; color: #999; text-align: center; }
.nc-support-card { text-align: center; }
.nc-support-icon { font-size: 34px; }
.nc-support-link { color: #7dff5f; font-weight: 800; text-decoration: none; word-break: break-all; }
.nc-support-link:hover { text-decoration: underline; }
.nc-support-soon {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #ffd200;
  border: 1px solid rgba(255,210,0,.5);
  background: rgba(0,0,0,.4);
}
.nc-support-card.soon { opacity: .75; }

/* Juego todavía no disponible */
.nc-game-card.soon .nc-game-img { filter: grayscale(.6) brightness(.7); }
.nc-soon-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4a1a00;
  background: linear-gradient(180deg, #fff3a0, #ffd200 40%, #e67e00);
  box-shadow: 0 0 12px rgba(255,210,0,.6);
}

/* Sección de juegos */
.nc-section-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 0 10px rgba(255,45,143,.5);
}
.nc-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.nc-game-card {
  background: linear-gradient(180deg, #1c0a20, #0d011f);
  border: 1px solid rgba(255,79,163,.3);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}
.nc-game-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #ff2d8f;
  box-shadow: 0 20px 40px rgba(0,0,0,.7), 0 0 30px rgba(255,45,143,.5);
}
.nc-game-thumb {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
/* Ilustraciones de fondo estilizadas por juego (cover) */
.nc-thumb-pink {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255,210,0,.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #ff5fb0 0%, #a3005c 45%, #3a0020 100%);
}
.nc-thumb-red {
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,.3) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(255,210,0,.3) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #e53935 0%, #8a0000 45%, #2a0000 100%);
}
.nc-thumb-green {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255,210,0,.3) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #2ecc40 0%, #0f5a1a 45%, #04200a 100%);
}
.nc-thumb-blue {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(176,107,255,.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #1e90ff 0%, #003a8a 45%, #001a3a 100%);
}
.nc-thumb-purple {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255,45,143,.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #b06bff 0%, #4a0f9c 45%, #1a0030 100%);
}
.nc-thumb-gold {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.4) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255,210,0,.5) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #ffd200 0%, #b8860b 45%, #3a2400 100%);
}
.nc-thumb-sand {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255,210,0,.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #d4a373 0%, #8b5a2b 45%, #2a1a0a 100%);
}
.nc-thumb-cherry {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255,210,0,.35) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #ff4d4d 0%, #a30000 45%, #2a0000 100%);
}
.nc-thumb-brown {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255,210,0,.3) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #a0522d 0%, #5a2a10 45%, #1a0a00 100%);
}
.nc-thumb-aqua {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(79,195,247,.4) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #00bcd4 0%, #006064 45%, #001a1a 100%);
}
.nc-game-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,210,0,.5);
  color: #ffd200;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}
.nc-game-emoji {
  font-size: 110px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.7)) drop-shadow(0 0 20px rgba(255,255,255,.25));
  transition: transform .3s ease;
  position: relative;
  z-index: 1;
}
.nc-game-card:hover .nc-game-emoji { transform: scale(1.2) rotate(-5deg); }
/* Imagen real de portada (ej: Sweet Bonanza) */
.nc-game-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  z-index: 1;
  transition: transform .3s ease;
  will-change: transform;
}
.nc-game-card:hover .nc-game-img { transform: scale(1.05); }
.nc-game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 3;
}
.nc-game-card:hover .nc-game-overlay { opacity: 1; }
.nc-play-btn {
  padding: 10px 28px;
  background: linear-gradient(180deg, #ffe066, #ffb300);
  color: #4a1a00;
  font-weight: 900;
  font-size: 14px;
  border: 2px solid #fff8b0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 0 #8a4a00, 0 8px 16px rgba(0,0,0,.5);
  transition: transform .15s;
}
.nc-play-btn:hover { transform: scale(1.08); }
/* Capa de degradado negro inferior para legibilidad */
.nc-game-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}
.nc-game-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.nc-game-info b {
  display: block;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 2px 6px rgba(0,0,0,.9);
}
.nc-game-label {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,210,0,.5);
  color: #ffd200;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Ventana de juego */
.nc-game-window {
  background: #0d011f;
  border: 2px solid rgba(255,79,163,.5);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.8), 0 0 40px rgba(255,45,143,.3);
  animation: ncGameIn .35s ease;
}
@keyframes ncGameIn {
  0%   { opacity: 0; transform: scale(.96); }
  100% { opacity: 1; transform: scale(1); }
}
.nc-game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: linear-gradient(180deg, #1c0a20, #0d011f);
  border-bottom: 1px solid rgba(255,79,163,.3);
}
.nc-game-back {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,79,163,.3);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.nc-game-back:hover { background: rgba(255,79,163,.2); }
.nc-game-title {
  font-size: 16px;
  font-weight: 900;
  color: #ffd200;
  text-shadow: 0 0 10px rgba(255,210,0,.6);
}
.nc-game-actions { display: flex; gap: 8px; }
.nc-game-action {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,79,163,.3);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}
.nc-game-action:hover { background: rgba(255,79,163,.2); transform: scale(1.05); }
.nc-game-body { padding: 20px; }

/* Pantalla completa: la ventana ocupa toda la pantalla y, si el juego no
   entra, se puede desplazar en vez de quedar cortado */
.nc-game-window:fullscreen {
  border: none;
  border-radius: 0;
  overflow-y: auto;
  animation: none;
}
.nc-game-window:fullscreen .nc-game-body { padding: 12px; }

/* ============ RULETA ============ */
.rl {
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #2a0f16 0%, #12060a 70%);
  border: 1px solid #4a1f28;
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
  color: #fff;
}
.rl-has-background { background: url('assets/roulette/background.jpg') center top / cover no-repeat; }
.rl-top {
  display: flex;
  gap: 18px;
  padding: 16px;
  align-items: center;
}
.rl-wheel-box {
  position: relative;
  flex: 0 0 min(380px, 42%);
  display: flex;
  justify-content: center;
}
.rl-wheel-box canvas { display: block; filter: drop-shadow(0 14px 22px rgba(0,0,0,.6)); }
.rl-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 110px;
  padding: 10px 16px;
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  animation: rlPop .35s ease-out;
  pointer-events: none;
}
.rl-result[hidden] { display: none; }
.rl-result b { font-size: 44px; line-height: 1; font-family: Georgia, serif; }
.rl-result span { font-size: 12px; font-weight: 800; letter-spacing: 2px; opacity: .85; }
.rl-result em { font-style: normal; font-weight: 900; font-size: 14px; color: #2a1a00; background: #ffd75e; border-radius: 6px; padding: 2px 8px; margin-top: 4px; }
.rl-result-red   { background: rgba(192,22,44,.94); }
.rl-result-black { background: rgba(21,21,28,.94); border: 1px solid #444; }
.rl-result-green { background: rgba(15,138,60,.94); }
@keyframes rlPop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.rl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rl-hist-label { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: #e9c27a; text-transform: uppercase; }
.rl-history { display: flex; gap: 5px; flex-wrap: wrap; min-height: 30px; }
.rl-hn {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.rl-hn-red   { background: #c0162c; }
.rl-hn-black { background: #1b1b22; border: 1px solid #444; }
.rl-hn-green { background: #0f8a3c; }
.rl-hn-last  { box-shadow: 0 0 0 2px #ffd75e; transform: scale(1.12); }
.rl-empty { font-size: 12px; color: #a98c8c; }
.rl-stats { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.rl-stats > div { display: flex; align-items: center; gap: 4px; }
.rl-stats small { font-size: 11px; color: #c9a9a9; margin-right: 4px; }
.rl-stats .rl-hn { width: 24px; height: 24px; font-size: 11px; }
.rl-bars { flex: 1 1 100%; display: flex !important; height: 18px; border-radius: 6px; overflow: hidden; gap: 0 !important; }
.rl-bars i { font-style: normal; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; min-width: 26px; }
.rl-bars .r { background: #c0162c; } .rl-bars .g { background: #0f8a3c; } .rl-bars .b { background: #1b1b22; }
.rl-stats-note { flex: 1 1 100%; }
.rl-track { width: 100%; max-width: 680px; height: auto; user-select: none; }
.rl-track-band { fill: #0b4a2a; stroke: #d9b35a; stroke-width: 3; }
.rl-sec rect { fill: rgba(255,255,255,.04); stroke: rgba(217,179,90,.5); stroke-width: 2; cursor: pointer; }
.rl-sec:hover rect { fill: rgba(255,215,94,.18); }
.rl-sec text { fill: #f3dc9a; font-weight: 800; font-size: 22px; letter-spacing: 2px; pointer-events: none; }
.rl-tn { cursor: pointer; }
.rl-tn circle { stroke: rgba(255,255,255,.5); stroke-width: 2; }
.rl-tn-red circle { fill: #c0162c; } .rl-tn-black circle { fill: #1b1b22; } .rl-tn-green circle { fill: #0f8a3c; }
.rl-tn text { fill: #fff; font-weight: 800; font-size: 20px; pointer-events: none; }
.rl-tn:hover circle { stroke: #ffd75e; stroke-width: 4; }
.rl-track-hint { font-size: 11px; color: #b99a9a; margin-top: -4px; }
.rl-secbtns { display: none; gap: 6px; flex-wrap: wrap; }
.rl-secbtns button {
  flex: 1 1 40%;
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid rgba(217,179,90,.6);
  background: #0b4a2a;
  color: #f3dc9a;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.rl-felt {
  padding: 18px 20px 14px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.10) 0%, transparent 60%),
    linear-gradient(180deg, #0f6a3d, #094a2a);
  border-top: 4px solid #4a2a10;
}
.rl-board {
  position: relative;
  width: 100%;
  aspect-ratio: 14 / 5;
  user-select: none;
}
.rl-board.rl-vertical { aspect-ratio: 5 / 8.5; max-width: 420px; margin: 0 auto; }
.rl-cell {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(12px, 1.7vw, 20px);
  cursor: pointer;
  transition: filter .15s, box-shadow .15s;
}
.rl-cell span { pointer-events: none; }
.rl-red   { background: #b4142a; }
.rl-black { background: #17171d; }
.rl-green { background: #0f8a3c; }
.rl-zero  { border-radius: 40% 0 0 40% / 50% 0 0 50%; }
.rl-vertical .rl-zero { border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.rl-out { background: rgba(0,0,0,.12); font-size: clamp(11px, 1.3vw, 15px); letter-spacing: .5px; }
.rl-diamond { display: inline-block; width: 22px; height: 22px; transform: rotate(45deg); border: 2px solid #fff; }
.rl-diamond.red { background: #b4142a; } .rl-diamond.black { background: #17171d; }
.rl-cell.rl-cover { filter: brightness(1.45); box-shadow: inset 0 0 0 2px #ffd75e; }
.rl-cell.rl-win { animation: rlWin 0.8s ease-in-out infinite alternate; z-index: 1; }
@keyframes rlWin { from { box-shadow: inset 0 0 0 3px #ffd75e, 0 0 6px #ffd75e; } to { box-shadow: inset 0 0 0 3px #fff, 0 0 22px #ffd75e; } }
.rl-hot {
  position: absolute;
  width: 4.2%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.rl-vertical .rl-hot { width: 11%; }
.rl-hot:hover { background: rgba(255,215,94,.45); }
/* Fichas */
.rl-chip {
  --c: #2f6fd6;
  border-radius: 50%;
  border: 4px dashed rgba(255,255,255,.85);
  background: radial-gradient(circle, var(--c) 0 52%, color-mix(in srgb, var(--c) 70%, #000) 53% 100%);
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0,0,0,.5);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  padding: 0;
}
.rl-chip-10   { --c: #2f6fd6; }
.rl-chip-50   { --c: #d23a3a; }
.rl-chip-100  { --c: #1f9c55; }
.rl-chip-500  { --c: #7a3fd1; }
.rl-chip-1000 { --c: #e0a10f; color: #2a1a00; text-shadow: none; }
.rl-chip-5000 { --c: #1b1b22; }
.rl-placed {
  position: absolute;
  width: 4.6%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  font-size: clamp(8px, 1vw, 12px);
  border-width: 3px;
  pointer-events: none;
  z-index: 3;
  transition: opacity .4s, transform .4s;
}
.rl-vertical .rl-placed { width: 12%; font-size: 10px; }
.rl-placed.rl-lost { opacity: 0; transform: translate(-50%, -150%) scale(.6); }
.rl-placed.rl-win { box-shadow: 0 0 0 3px #ffd75e, 0 0 14px #ffd75e; }
.rl-payout {
  position: absolute;
  transform: translate(-50%, -170%);
  background: #ffd75e;
  color: #2a1a00;
  font-weight: 900;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
}
/* Festejo de la ruleta */
.rl { position: relative; }
.rl-payout { animation: rlPayoutIn .5s cubic-bezier(.2, 1.8, .4, 1) both; }
@keyframes rlPayoutIn {
  from { transform: translate(-50%, -60%) scale(.2); opacity: 0; }
  to { transform: translate(-50%, -170%) scale(1); opacity: 1; }
}
.rl-placed.rl-win { animation: rlChipWin .5s ease-in-out infinite alternate; }
@keyframes rlChipWin { to { box-shadow: 0 0 0 3px #fff, 0 0 24px 6px #ffd75e; } }
.rl-result-won { animation: rlPop .35s ease-out, rlWonGlow .6s ease-in-out .35s infinite alternate; }
@keyframes rlWonGlow { to { box-shadow: 0 8px 24px rgba(0,0,0,.6), 0 0 0 3px #ffd75e, 0 0 36px 8px rgba(255, 215, 94, .75); } }
.rl-result em i { font-style: normal; font-variant-numeric: tabular-nums; display: inline-block; text-align: center; }
#rlWin { display: inline-block; text-align: left; }
.rl.win-glow .rl-felt { animation: rlFeltGlow .4s ease-in-out 4 alternate; }
@keyframes rlFeltGlow { to { filter: brightness(1.18) saturate(1.2); box-shadow: inset 0 0 0 4px #ffd75e, inset 0 0 60px rgba(255, 215, 94, .6); } }
.rl-win.win-pop { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  .rl-payout, .rl-placed.rl-win, .rl-result-won, .rl.win-glow .rl-felt { animation: none; }
}
/* Festejos de Minas, Blackjack y Chicken Cross (el cartel grande va encima del juego) */
.mn, .bj2, .cc2 { position: relative; }
.mn > .sb2-overlay, .cc2 > .sb2-overlay { border-radius: inherit; }
.mn-banner .mn-win-amt {
  display: block; margin: 4px auto 0;
  font-size: 40px; color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 0 #a04a00, 0 0 18px rgba(255, 200, 40, .9);
}
.mn-cell.gem.mn-cheer:not(.dim) { animation: mnCheer .55s cubic-bezier(.2, 1.8, .4, 1), mnGemShine 1.4s ease-in-out .55s infinite alternate; }
@keyframes mnCheer {
  0% { transform: scale(1); }
  40% { transform: scale(1.22) rotate(-6deg); filter: brightness(1.6); }
  100% { transform: scale(1); }
}
.mn.win-glow .mn-board { animation: rlFeltGlow .4s ease-in-out 4 alternate; border-radius: 14px; }
.bj2-msg .bj2-win-amt { display: inline-block; text-align: left; font-variant-numeric: tabular-nums; }
.bj2-msg.win { animation: bjWinGlow .6s ease-in-out infinite alternate; }
.bj2-msg.win.bj { font-size: 28px; background: linear-gradient(180deg, #fff3a8, #ffc21a 50%, #e08a00); }
@keyframes bjWinGlow { to { box-shadow: 0 0 0 3px #fff, 0 0 46px 10px rgba(255, 200, 40, .85); } }
.bj2-hand-won .bj2-card { animation: bjCardWin .6s ease-in-out infinite alternate; }
@keyframes bjCardWin { to { box-shadow: 0 0 0 3px #ffd75e, 0 0 22px 4px rgba(255, 215, 94, .9); } }
.bj2.win-glow .bj2-felt { animation: rlFeltGlow .4s ease-in-out 4 alternate; }
.cc2-banner .cc2-win-amt { display: inline-block; text-align: left; font-variant-numeric: tabular-nums; }
.cc2.win-glow .cc2-stage { animation: rlFeltGlow .4s ease-in-out 4 alternate; }
@media (prefers-reduced-motion: reduce) {
  .mn-cell.gem.mn-cheer:not(.dim), .bj2-msg.win, .bj2-hand-won .bj2-card { animation: none; }
}
.rl-limits { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,.6); text-align: center; }
.rl-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1a1208, #0e0a05);
}
.rl-rack { display: flex; gap: 8px; }
.rl-rack .rl-chip { width: 50px; height: 50px; font-size: 13px; cursor: pointer; transition: transform .12s; }
.rl-rack .rl-chip:hover { transform: translateY(-3px); }
.rl-rack .rl-chip.active { transform: translateY(-6px); box-shadow: 0 0 0 3px #ffd75e, 0 6px 12px rgba(0,0,0,.6); }
.rl-tools { display: flex; gap: 6px; }
.rl-tool {
  width: 58px; height: 50px;
  border-radius: 10px;
  border: 1px solid #4a3a20;
  background: #2a1f10;
  color: #ffe9a6;
  font-size: 17px; font-weight: 800;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.rl-tool small { font-size: 10px; font-weight: 700; color: #c9b47a; }
.rl-spinning .rl-tool, .rl-spinning .rl-rack { opacity: .45; pointer-events: none; }
.rl-totals { display: flex; flex-direction: column; font-size: 12px; color: #c9b47a; gap: 2px; min-width: 120px; }
.rl-totals b { color: #fff; font-size: 15px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.rl-spin {
  min-width: 150px; height: 56px;
  border: none; border-radius: 12px;
  background: linear-gradient(180deg, #ffd75e, #d49a00);
  box-shadow: 0 4px 0 #8a6200;
  color: #2a1a00;
  font-weight: 900; font-size: 18px; letter-spacing: 1px;
  cursor: pointer;
}
.rl-spin:disabled { opacity: .45; cursor: default; }
.rl-spin:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #8a6200; }

/* En pantalla completa la rueda y el paño se achican para entrar en el alto */
.nc-game-window:fullscreen .rl {
  --rl-wheel: clamp(220px, calc(100vh - 520px), 380px);
  /* Sin tope se estiraba a todo el ancho: la rueda quedaba pegada a la
     izquierda y el paño al centro. Así queda armada y centrada. */
  max-width: 1200px;
  margin: 0 auto;
}
.nc-game-window:fullscreen .rl-wheel-box { flex-basis: var(--rl-wheel); }
.nc-game-window:fullscreen .rl-track { max-height: calc(var(--rl-wheel) - 130px); }
.nc-game-window:fullscreen .rl-board:not(.rl-vertical) {
  max-width: calc((100vh - 310px - var(--rl-wheel)) * 2.8);
  margin: 0 auto;
}
/* Notebooks (alto de 900 px o menos): sin esto las fichas y el botón GIRAR
   quedaban debajo del aviso amarillo y había que bajar para jugar */
@media (min-width: 721px) and (max-height: 900px) {
  .nc-game-window:not(:fullscreen) .rl { --rl-wheel: clamp(220px, calc(100vh - 500px), 380px); }
  .nc-game-window:not(:fullscreen) .rl-wheel-box { flex-basis: var(--rl-wheel); }
  .nc-game-window:not(:fullscreen) .rl-track { max-height: calc(var(--rl-wheel) - 100px); }
  .nc-game-window:not(:fullscreen) .rl-board:not(.rl-vertical) {
    max-width: calc((100vh - 200px - var(--rl-wheel)) * 2.8);
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .rl-top { flex-direction: column; }
  .rl-wheel-box { flex: none; width: min(320px, 100%); }
  .rl-info { width: 100%; }
}
@media (max-width: 720px) {
  .rl-top { padding: 12px 10px; }
  .rl-felt { padding: 14px 10px 10px; }
  .rl-cell { font-size: 15px; }
  .rl-out { font-size: 12px; }
  .rl-vertical .rl-out span { writing-mode: vertical-rl; transform: rotate(180deg); }
  .rl-diamond { width: 16px; height: 16px; }
  .rl-rack { gap: 5px; }
  .rl-rack .rl-chip { width: 44px; height: 44px; font-size: 12px; }
  .rl-tool { width: 52px; }
  .rl-totals { flex-direction: row; gap: 14px; min-width: 0; }
  .rl-spin { flex: 1 1 100%; }
  /* La pista es muy chica para el dedo: se reemplaza por botones de sección */
  .rl-track, .rl-track-hint { display: none; }
  .rl-secbtns { display: flex; }
}

/* ============ PLINKO ============ */
.pk2 {
  display: flex;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #0f212e;
  border: 1px solid #213743;
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
}
.pk2-panel {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #213743;
}
.pk2-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #0f212e;
  margin-bottom: 6px;
}
.pk2-tabs button {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #b1bad3;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.pk2-tabs button.active { background: #2f4553; color: #fff; }
.pk2-label { font-size: 12px; font-weight: 700; color: #b1bad3; margin-top: 4px; }
.pk2-bet {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #2f4553;
  background: #0f212e;
}
.pk2-bet input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}
.pk2-bet button {
  width: 46px;
  border: none;
  border-left: 2px solid #213743;
  background: #2f4553;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.pk2-bet button:hover { background: #557086; }
.pk2-select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 2px solid #2f4553;
  background: #0f212e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.pk2-select:disabled { opacity: .55; cursor: not-allowed; }
.pk2-auto { display: flex; flex-direction: column; gap: 8px; }
.pk2-auto[hidden] { display: none; }
.pk2-play {
  margin-top: 10px;
  padding: 14px;
  border: none;
  border-radius: 6px;
  background: #00e701;
  color: #05290a;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #009e01;
  transition: transform .08s, filter .15s;
}
.pk2-play:hover { filter: brightness(1.08); }
.pk2-play:active { transform: translateY(2px); box-shadow: 0 2px 0 #009e01; }
.pk2-play.stop { background: #ff4d6d; color: #fff; box-shadow: 0 4px 0 #b3002a; }
.pk2-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.pk2-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #0f212e;
}
.pk2-stats span { font-size: 11px; font-weight: 700; color: #b1bad3; }
.pk2-stats b { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Panel de apuestas del Plinko: botones en vez de desplegables */
.pk2-panel { gap: 14px; background: linear-gradient(180deg, #213743, #182a35); }
.pk2-field { display: flex; flex-direction: column; gap: 7px; }
.pk2-panel .pk2-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 0; font-size: 11px; letter-spacing: .8px; text-transform: uppercase;
}
.pk2-label b { color: #fff; font-size: 13px; }
.pk2-panel .pk2-bet { border-radius: 10px; align-items: stretch; transition: border-color .15s; }
.pk2-panel .pk2-bet:focus-within { border-color: #00e701; }
.pk2-cur { display: flex; align-items: center; padding-left: 12px; color: #00e701; font-weight: 900; font-size: 16px; }
.pk2-panel .pk2-bet input { font-size: 17px; padding: 11px 8px; }
.pk2-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.pk2-chip {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, .6);
  color: #fff; font-size: 12px; font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .4), inset 0 0 0 3px rgba(0, 0, 0, .18);
  transition: transform .12s, filter .12s;
}
.pk2-chip:hover { transform: translateY(-2px); filter: brightness(1.12); }
.pk2-chip:active { transform: translateY(1px); }
.pk2-chip-10   { background: radial-gradient(circle, #60a5fa 0 45%, #2563eb 46%); }
.pk2-chip-50   { background: radial-gradient(circle, #fb7185 0 45%, #e11d48 46%); }
.pk2-chip-100  { background: radial-gradient(circle, #4ade80 0 45%, #16a34a 46%); }
.pk2-chip-500  { background: radial-gradient(circle, #a78bfa 0 45%, #7c3aed 46%); }
.pk2-chip-1000 { background: radial-gradient(circle, #fcd34d 0 45%, #d97706 46%); color: #3a2000; text-shadow: none; }
.pk2-chip-pop { animation: winPop .4s cubic-bezier(.2, 1.6, .4, 1); }
.pk2-seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #0f212e; }
.pk2-seg button, .pk2-rows button {
  flex: 1;
  padding: 9px 0;
  border: none; border-radius: 7px;
  background: transparent; color: #b1bad3;
  font-size: 13px; font-weight: 800;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pk2-seg button:hover:not(:disabled):not(.active), .pk2-rows button:hover:not(:disabled):not(.active) { background: #2f4553; color: #fff; }
.pk2-seg button.active { background: #2f4553; color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.pk2-risk button[data-risk="low"].active { background: #16a34a; }
.pk2-risk button[data-risk="medium"].active { background: #f59e0b; color: #2a1a00; }
.pk2-risk button[data-risk="high"].active { background: #e11d48; }
.pk2-rows { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; padding: 4px; border-radius: 10px; background: #0f212e; }
.pk2-rows button { padding: 8px 0; font-size: 12px; border-radius: 6px; }
.pk2-rows button.active { background: #00e701; color: #05290a; box-shadow: 0 2px 0 #009e01; }
.pk2-seg button:disabled, .pk2-rows button:disabled { cursor: not-allowed; opacity: .45; }
.pk2-seg button.active:disabled, .pk2-rows button.active:disabled { opacity: .8; }
.pk2-panel .pk2-play {
  margin-top: 4px;
  padding: 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3dff3e, #00c701);
  font-size: 17px; letter-spacing: 1px; text-transform: uppercase;
}
.pk2-panel .pk2-play.stop { background: linear-gradient(180deg, #ff6d86, #e11d48); }

.pk2-board {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.pk2-board {
  /* Si existe assets/plinko/background.jpg se usa de fondo del tablero */
  background: #0f212e url('assets/plinko/background.jpg') center / cover no-repeat;
}
.pk2-board canvas { display: block; position: relative; z-index: 1; }
.pk2-logo {
  position: absolute;
  left: 14px;
  top: 12px;
  width: 22%;
  max-width: 180px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
}
.pk2-history {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 54px;
}
.pk2-hist-item {
  padding: 8px 0;
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #1a0b00;
  animation: pkHistIn .25s ease-out;
}
.pk2-hist-item:nth-child(n+5) { opacity: .6; }
@keyframes pkHistIn {
  from { transform: translateY(-12px) scale(.8); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@media (max-width: 720px) {
  .pk2 { flex-direction: column; }
  .pk2-board { order: 1; padding: 8px 0 4px; }
  .pk2-panel { order: 2; width: auto; }
  .pk2-history {
    top: 8px; right: 8px; transform: none;
    flex-direction: row; width: auto;
  }
  .pk2-hist-item { width: 40px; padding: 4px 0; font-size: 10px; }
  .pk2-hist-item:nth-child(n+5) { display: none; }
}

/* ============ SPACEMAN ============ */
.sm {
  background: #0b0624;
  border: 1px solid #2a1d5c;
  border-radius: 16px;
  padding: 12px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
}
.sm-history {
  display: flex;
  gap: 6px;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 26px;
}
.sm-h {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sm-h-blue   { background: #1d3a7a; color: #8fc4ff; }
.sm-h-purple { background: #4b2283; color: #e0b6ff; }
.sm-h-gold   { background: #6b4a00; color: #ffd75e; box-shadow: 0 0 8px rgba(255,200,40,.4); }
.sm-main {
  display: flex;
  gap: 10px;
}
.sm-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: #070219;
}
.sm-stage canvas { display: block; position: absolute; left: 0; top: 0; }
.sm-logo {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 150px;
  max-width: 30%;
  pointer-events: none;
}
.sm-mult {
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  text-shadow: 0 4px 18px rgba(0,0,0,.6);
  pointer-events: none;
}
.sm-mult-blue   { color: #fff; }
.sm-mult-purple { color: #e9c6ff; text-shadow: 0 0 24px rgba(176,107,255,.8); }
.sm-mult-gold   { color: #ffd75e; text-shadow: 0 0 28px rgba(255,190,40,.9); }
.sm-mult-crash  { color: #ff4d5e; text-shadow: 0 0 24px rgba(255,60,80,.7); }
.sm-count {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, 80%);
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  pointer-events: none;
}
.sm-count-bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
}
.sm-count-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffb020, #ff5a2e);
  border-radius: 999px;
}
.sm-banner {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, 0) scale(.8);
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 18px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  white-space: nowrap;
}
.sm-banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.sm-banner.lost { background: rgba(160,20,40,.85); }
.sm-conn {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 12px;
  color: #b9a8ff;
}
.sm-side {
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #120a33;
  border-radius: 12px;
  padding: 10px;
  max-height: 380px;
}
.sm-side-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #c9bdf5;
  margin-bottom: 6px;
}
.sm-side-head b { color: #fff; }
.sm-side-cols, .sm-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr .9fr 1fr;
  gap: 4px;
  font-size: 12px;
}
.sm-side-cols {
  color: #7f72b3;
  padding: 0 6px 4px;
  border-bottom: 1px solid #2a1d5c;
}
.sm-list { overflow-y: auto; flex: 1; }
.sm-row {
  padding: 5px 6px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.sm-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-row:nth-child(odd) { background: rgba(255,255,255,.03); }
.sm-row-me { outline: 1px solid #ffb020; }
.sm-row-won { color: #6dffa0; }
.sm-row-lost { color: #8a7fb0; }
.sm-empty { padding: 16px 6px; color: #7f72b3; font-size: 12px; text-align: center; }
.sm-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 10px;
  margin-top: 10px;
}
.sm-panel {
  position: relative;
  display: flex;
  gap: 10px;
  background: #120a33;
  border: 1px solid #2a1d5c;
  border-radius: 12px;
  padding: 10px;
}
.sm-panel-live { border-color: #ff9a20; box-shadow: 0 0 14px rgba(255,150,30,.25); }
.sm-p-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sm-amt { display: flex; gap: 4px; }
.sm-amt input {
  flex: 1;
  min-width: 0;
  background: #0b0624;
  border: 1px solid #2a1d5c;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  padding: 6px;
}
.sm-amt button, .sm-chips button {
  background: #2a1d5c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
.sm-amt button { width: 34px; font-size: 18px; }
.sm-chips { display: flex; gap: 4px; }
.sm-chips button { flex: 1; min-width: 0; padding: 5px 0; font-size: 12px; }
.sm-amt button:disabled, .sm-chips button:disabled, .sm-amt input:disabled { opacity: .45; cursor: default; }
.sm-auto {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c9bdf5;
}
.sm-auto span { white-space: nowrap; }
.sm-auto .sm-auto-x {
  width: 64px;
  background: #0b0624;
  border: 1px solid #2a1d5c;
  border-radius: 6px;
  color: #fff;
  padding: 3px 5px;
  font-weight: 700;
}
.sm-p-right { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.sm-go {
  flex: 1;
  min-height: 70px;
  border: none;
  border-radius: 10px;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.sm-go small { font-size: 12px; font-weight: 700; opacity: .9; font-variant-numeric: tabular-nums; }
.sm-go-bet    { background: linear-gradient(180deg, #3bd16f, #1c9a48); box-shadow: 0 4px 0 #126b31; }
.sm-go-cancel { background: linear-gradient(180deg, #ff5a6a, #c42639); box-shadow: 0 4px 0 #861a27; }
.sm-go-cash   { background: linear-gradient(180deg, #ffb020, #f07400); box-shadow: 0 4px 0 #a54f00; }
.sm-go-won    { background: #2a1d5c; color: #6dffa0; cursor: default; }
.sm-go:disabled { opacity: .8; }
.sm-go:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.sm-half {
  border: 1px solid #ff9a20;
  background: transparent;
  color: #ffb020;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  padding: 6px;
  cursor: pointer;
}
.sm-pop {
  position: absolute;
  right: 18px;
  top: -10px;
  background: #1c9a48;
  border-radius: 10px;
  padding: 6px 12px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: smPop 1.8s ease-out forwards;
  pointer-events: none;
}
@keyframes smPop {
  0%   { opacity: 0; transform: translateY(10px) scale(.8); }
  15%  { opacity: 1; transform: translateY(-10px) scale(1); }
  80%  { opacity: 1; transform: translateY(-20px); }
  100% { opacity: 0; transform: translateY(-34px); }
}

@media (max-width: 900px) {
  /* En pantallas angostas: escena, paneles y después la lista */
  .sm { display: flex; flex-direction: column; gap: 10px; }
  .sm-history { margin-bottom: 0; }
  .sm-main { display: contents; }
  .sm-stage { flex: none; order: 1; }
  .sm-panels { order: 2; margin-top: 0; }
  .sm-side { order: 3; width: auto; max-height: 260px; }
}
@media (max-width: 720px) {
  .sm { padding: 8px; }
  .sm-p-right { width: 112px; }
  .sm-auto .sm-auto-x { width: 54px; }
  .sm-panel { gap: 8px; }
  .sm-auto { gap: 4px; }
  .sm-go { font-size: 16px; min-height: 64px; }
}

/* ============ BLACKJACK ============ */
.bj2 {
  border-radius: 18px;
  overflow: hidden;
  background: #04170e;
  border: 1px solid #1d4a33;
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
  color: #fff;
}
.bj2-felt {
  position: relative;
  min-height: 470px;
  padding: 18px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 40%, #13774a 0%, #0b5233 55%, #06311f 100%);
  border-bottom: 6px solid #3a2310;
  box-shadow: inset 0 -10px 0 #5a3818, inset 0 0 80px rgba(0,0,0,.45);
}
.bj2-has-table .bj2-felt {
  /* La baranda de madera viene en la imagen: se deja lugar abajo */
  background: url('assets/blackjack/table.jpg') center bottom / cover no-repeat;
  border-bottom: none;
  box-shadow: none;
  padding-bottom: 92px;
}
.bj2-shoe {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 74px;
  height: 92px;
  border-radius: 8px 8px 14px 14px;
  background: linear-gradient(160deg, #2b2b33, #0d0d12);
  box-shadow: 0 6px 14px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.12);
  transform: rotate(-8deg);
}
.bj2-shoe-cards {
  position: absolute;
  left: 8px; right: 8px; top: 10px; height: 46px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #8c1b2b 0 3px, #f2e9e9 3px 4px);
}
.bj2-has-shoe .bj2-shoe {
  background: url('assets/blackjack/shoe.png') center / contain no-repeat;
  box-shadow: none;
  border-radius: 0;
  width: 140px; height: 112px;
  top: 6px; right: 6px;
  transform: none;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.5));
}
.bj2-has-shoe .bj2-shoe-cards { display: none; }
.bj2-dealer, .bj2-hand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 126px;
}
.bj2-cards {
  display: flex;
  min-height: 112px;
  padding-left: 46px; /* compensa el solapado de la primera carta */
}
.bj2-card {
  position: relative;
  width: 78px;
  height: 110px;
  margin-left: -46px;
  border-radius: 8px;
  background: linear-gradient(160deg, #ffffff, #f1f1f4);
  color: #141420;
  box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.12);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
}
.bj2-card.red { color: #c3122b; }
.bj2-corner {
  position: absolute;
  top: 5px;
  left: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 19px;
  line-height: 1;
}
.bj2-corner i { font-style: normal; font-size: 15px; }
.bj2-corner-b { top: auto; left: auto; bottom: 5px; right: 6px; transform: rotate(180deg); }
.bj2-pip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.bj2-back {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 4px, transparent 4px 8px),
    linear-gradient(160deg, #b0182e, #6c0b1a);
  border: 4px solid #fff;
}
.bj2-has-card-back .bj2-back {
  background: url('assets/blackjack/card-back.png') center / cover no-repeat;
  border: none;
}
.bj2-badge {
  margin-top: 6px;
  min-width: 42px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.25);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.bj2-badge:empty { visibility: hidden; }
.bj2-badge.best { background: #d4a017; color: #1b1300; border-color: #ffe28a; }
.bj2-badge.bust { background: #9b1c2c; border-color: #ff8a98; }
.bj2-arc {
  width: min(620px, 100%);
  margin: 2px 0 -10px;
  pointer-events: none;
}
.bj2-arc text { fill: rgba(255,236,170,.85); font-weight: 800; letter-spacing: 3px; }
.bj2-arc-1 { font-size: 26px; }
.bj2-arc-2 { font-size: 14px; fill: rgba(255,255,255,.55) !important; letter-spacing: 2px; }
.bj2-msg {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 22px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 5;
}
.bj2-msg.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bj2-msg.win  { background: linear-gradient(180deg, #ffd75e, #d49a00); color: #2a1a00; box-shadow: 0 0 30px rgba(255,200,40,.6); }
.bj2-msg.push { background: rgba(20,30,60,.9); border: 1px solid #8fa8ff; }
.bj2-msg.lose { background: rgba(120,15,30,.9); border: 1px solid #ff8a98; }
.bj2-hands {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: auto;
}
.bj2-hand {
  padding: 6px 8px 4px;
  border-radius: 14px;
  border: 2px solid transparent;
  transition: border-color .2s, opacity .2s;
}
.bj2-hand.bj2-active { border-color: #ffd75e; box-shadow: 0 0 18px rgba(255,215,94,.35); }
.bj2-hand.bj2-out .bj2-cards { opacity: .55; }
.bj2-hbet {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #ffe9a6;
}
.bj2-hres { min-height: 24px; margin-top: 4px; }
.bj2-res {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
}
.bj2-res-win  { background: #d4a017; color: #1b1300; }
.bj2-res-push { background: #2c3e72; }
.bj2-res-lose { background: #7d1524; }
.bj2-spot {
  margin-top: auto;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 3px solid rgba(255,236,170,.7);
  box-shadow: inset 0 0 0 6px rgba(0,0,0,.15), 0 0 0 4px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.bj2-spot[hidden] { display: none; }
.bj2-spot-empty { animation: bjSpotPulse 1.6s ease-in-out infinite; }
@keyframes bjSpotPulse {
  0%, 100% { box-shadow: inset 0 0 0 6px rgba(0,0,0,.15), 0 0 0 0 rgba(255,236,170,.0); }
  50%      { box-shadow: inset 0 0 0 6px rgba(0,0,0,.15), 0 0 0 8px rgba(255,236,170,.18); }
}
.bj2-spot-amt { font-size: 13px; font-weight: 900; color: #ffecaa; letter-spacing: 1px; }
.bj2-stack {
  position: relative;
  width: 46px;
  height: 46px;
}
.bj2-stack:empty { display: none; }
.bj2-stack .bj2-chip {
  position: absolute;
  left: 0;
  bottom: calc(var(--i) * 4px);
  width: 46px;
  height: 46px;
  font-size: 12px;
}
.bj2-stack-sm { width: 30px; height: 30px; }
.bj2-stack-sm .bj2-chip { width: 30px; height: 30px; font-size: 9px; border-width: 3px; bottom: calc(var(--i) * 3px); }
/* Ficha: borde con muescas y número al centro */
.bj2-chip {
  --c: #6b7280;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 5px dashed rgba(255,255,255,.85);
  background: radial-gradient(circle, var(--c) 0 52%, color-mix(in srgb, var(--c) 70%, #000) 53% 100%);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0,0,0,.5), inset 0 0 0 2px var(--c);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  padding: 0;
}
.bj2-chip-10   { --c: #2f6fd6; }
.bj2-chip-50   { --c: #d23a3a; }
.bj2-chip-100  { --c: #1f9c55; }
.bj2-chip-500  { --c: #7a3fd1; }
.bj2-chip-1000 { --c: #e0a10f; color: #2a1a00; text-shadow: none; }
.bj2-chip-5000 { --c: #1b1b22; }
.bj2-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  min-height: 92px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1a1208, #0e0a05);
}
.bj2-rack { display: flex; gap: 8px; }
.bj2-rack .bj2-chip { cursor: pointer; transition: transform .12s; }
.bj2-rack .bj2-chip:hover { transform: translateY(-4px); }
.bj2-tools { display: flex; gap: 6px; }
.bj2-tool {
  width: 58px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid #4a3a20;
  background: #2a1f10;
  color: #ffe9a6;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bj2-tool small { font-size: 10px; font-weight: 700; color: #c9b47a; }
.bj2-tool:disabled, .bj2-act:disabled, .bj2-deal:disabled { opacity: .4; cursor: default; }
.bj2-deal {
  min-width: 170px;
  height: 56px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd75e, #d49a00);
  box-shadow: 0 4px 0 #8a6200;
  color: #2a1a00;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
  cursor: pointer;
}
.bj2-deal:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #8a6200; }
.bj2-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bj2-act {
  min-width: 104px;
  height: 60px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.bj2-act b { font-size: 18px; line-height: 1; }
.bj2-act-hit    { background: linear-gradient(180deg, #2fbf66, #178a45); box-shadow: 0 4px 0 #0e5c2d; }
.bj2-act-stand  { background: linear-gradient(180deg, #e2454f, #a8202b); box-shadow: 0 4px 0 #6e121a; }
.bj2-act-double { background: linear-gradient(180deg, #f0a52c, #c67508); box-shadow: 0 4px 0 #7f4a00; }
.bj2-act-split  { background: linear-gradient(180deg, #4a7fe0, #2652a8); box-shadow: 0 4px 0 #17346e; }
.bj2-act-yes    { background: linear-gradient(180deg, #2fbf66, #178a45); box-shadow: 0 4px 0 #0e5c2d; }
.bj2-act-no     { background: #2a1f10; border: 1px solid #4a3a20; color: #ffe9a6; }
.bj2-act:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.bj2-ask { width: 100%; text-align: center; font-weight: 800; color: #ffe9a6; }

@media (max-width: 720px) {
  .bj2-felt { min-height: 430px; padding: 12px 8px 18px; }
  .bj2-shoe { width: 52px; height: 66px; top: 8px; right: 8px; }
  .bj2-has-shoe .bj2-shoe { width: 84px; height: 68px; }
  .bj2-has-table .bj2-felt { padding-bottom: 60px; }
  .bj2-card { width: 60px; height: 86px; margin-left: -36px; }
  .bj2-cards { min-height: 88px; padding-left: 36px; }
  .bj2-corner { font-size: 15px; }
  .bj2-corner i { font-size: 12px; }
  .bj2-pip { font-size: 30px; }
  .bj2-dealer, .bj2-hand { min-height: 100px; }
  .bj2-arc-1 { font-size: 30px; }
  .bj2-arc-2 { font-size: 17px; }
  .bj2-msg { font-size: 17px; }
  .bj2-rack { gap: 5px; }
  .bj2-rack .bj2-chip { width: 44px; height: 44px; font-size: 12px; border-width: 4px; }
  .bj2-tool { width: 52px; }
  .bj2-deal { min-width: 0; flex: 1 1 100%; }
  .bj2-bar { gap: 10px; }
  .bj2-act { min-width: 0; flex: 1 1 22%; height: 56px; font-size: 11px; }
  .bj2-acts { width: 100%; flex-wrap: nowrap; gap: 6px; }
}

/* Modal "Próximamente" */
.nc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: ncModalFade .25s ease;
}
@keyframes ncModalFade {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}
.nc-modal-box {
  background: linear-gradient(180deg, #1c0a20, #0d011f);
  border: 2px solid rgba(255,79,163,.6);
  border-radius: 20px;
  padding: 36px 44px;
  text-align: center;
  max-width: 420px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.9),
    0 0 40px rgba(255,45,143,.4);
  animation: ncModalPop .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ncModalPop {
  0%   { transform: scale(.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.nc-modal-icon {
  font-size: 56px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.6));
}
.nc-modal-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffd200;
  margin: 0 0 12px;
  text-shadow: 0 0 12px rgba(255,210,0,.7);
}
.nc-modal-text {
  font-size: 14px;
  color: #ccc;
  margin: 0 0 24px;
  line-height: 1.5;
}
.nc-modal-btn {
  padding: 12px 32px;
  background: linear-gradient(180deg, #ff5fb0, #c4006b);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    0 6px 0 #7a0042,
    0 10px 20px rgba(255,45,143,.5),
    inset 0 2px 0 rgba(255,255,255,.4);
  transition: transform .15s, filter .15s;
}
.nc-modal-btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.15); }
.nc-modal-btn:active { transform: translateY(2px) scale(.98); }

main { max-width: 1000px; margin: 0 auto; padding: 20px; }

.card {
  background: #1c0a20; border: 1px solid #3a1a40;
  border-radius: 10px; padding: 16px; margin-bottom: 16px;
}
.card h2 { margin-top: 0; color: #ffd200; font-size: 18px; }

input, select, button {
  font: inherit; padding: 8px 10px; border-radius: 6px;
  border: 1px solid #3a1a40; background: #130516; color: #f5f5f5;
}
button {
  background: #ffd200; color: #130516; font-weight: 700;
  cursor: pointer; border: none;
}
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { background: #3a1a40; color: #f5f5f5; }

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.row label { font-size: 13px; color: #bbb; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #3a1a40; }
th { color: #ffd200; }

.balance { font-size: 22px; color: #ffd200; font-weight: 700; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: #3a1a40; color: #f5f5f5; }
.tabs button.active { background: #ffd200; color: #130516; }

.reels { display: flex; gap: 12px; justify-content: center; margin: 16px 0; }
.reel {
  width: 80px; height: 80px; background: #130516; border: 2px solid #ffd200;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.msg { margin-top: 8px; font-size: 14px; }
.msg.win { color: #4ade80; }
.msg.lose { color: #f87171; }

.roulette-board {
  display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; margin: 12px 0;
}
.roulette-board .cell {
  padding: 6px; text-align: center; font-size: 12px; border-radius: 4px;
  background: #3a1a40;
}
.roulette-board .cell.red { background: #7f1d1d; }
.roulette-board .cell.black { background: #111; }
.roulette-board .cell.green { background: #14532d; }

.hand { display: flex; gap: 6px; margin: 8px 0; }
.card-face {
  background: #fff; color: #130516; padding: 8px 10px; border-radius: 6px;
  font-weight: 700; min-width: 40px; text-align: center;
}
.card-face.red { color: #b91c1c; }

.error { color: #f87171; font-size: 13px; margin-top: 6px; }

/* ============ ANIMACIONES / FX ============ */

/* Contador de saldo animado */
.balance-pop { animation: balancePop .5s ease; }
@keyframes balancePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); color: #4ade80; }
  100% { transform: scale(1); }
}
.balance-pop.lose { animation: balancePopLose .5s ease; }
@keyframes balancePopLose {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); color: #f87171; }
  100% { transform: scale(1); }
}

/* Botón con glow */
button.glow {
  box-shadow: 0 0 0 0 rgba(255,210,0,.7);
  animation: glowPulse 1.8s infinite;
}
@keyframes glowPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,210,0,.7); }
  70%  { box-shadow: 0 0 0 14px rgba(255,210,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,210,0,0); }
}

/* ============ SWEET BONANZA 1000 ============ */
.sb2 {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.5) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(255,214,240,.6) 0%, transparent 45%),
    linear-gradient(180deg, #8fd3ff 0%, #c6a6ff 45%, #ff9fd6 100%);
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
}
.sb2-has-background { background: url('assets/bonanza/background.jpg') center / cover no-repeat; }
.sb2.sb2-free { background: linear-gradient(180deg, #ff6fb5 0%, #b44cff 55%, #5b1fb8 100%); }
.sb2-has-background.sb2-free { background: url('assets/bonanza/background.jpg') center / cover no-repeat; filter: none; }
.sb2-has-background.sb2-free .sb2-body { background: rgba(120, 20, 120, .25); }
.sb2-body {
  display: flex;
  gap: 16px;
  padding: 16px;
  align-items: stretch;
}
.sb2-side {
  width: 210px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb2-logo { text-align: center; min-height: 70px; display: flex; align-items: center; justify-content: center; }
.sb2-logo img { max-width: 100%; max-height: 120px; }
.sb2-logo img + span { display: none; }
.sb2-logo span {
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 1.5px #c2187a;
  text-shadow: 0 4px 0 #c2187a, 0 8px 14px rgba(0,0,0,.3);
}
.sb2-logo span b { display: block; font-size: 34px; color: #ffe14d; -webkit-text-stroke: 1.5px #b05a00; text-shadow: 0 4px 0 #b05a00; }
.sb2-buy {
  border: 3px solid #fff;
  border-radius: 16px;
  padding: 10px 8px;
  background: linear-gradient(180deg, #ff4fa8, #c2187a);
  box-shadow: 0 5px 0 #7a0e4c, 0 8px 14px rgba(0,0,0,.3);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.sb2-buy span { font-size: 12px; letter-spacing: .5px; }
.sb2-buy b { font-size: 20px; color: #ffe14d; text-shadow: 0 2px 0 #7a0e4c; }
.sb2-buy small { font-size: 10px; font-weight: 700; opacity: .9; }
.sb2-buy-super { background: linear-gradient(180deg, #ffb020, #e06a00); box-shadow: 0 5px 0 #8a3c00, 0 8px 14px rgba(0,0,0,.3); }
.sb2-buy-super b { text-shadow: 0 2px 0 #8a3c00; color: #fff; }
.sb2-buy:disabled { opacity: .5; cursor: default; }
.sb2-buy:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 #7a0e4c; }
.sb2-ante {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 3px solid #fff;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(180deg, #34c86a, #138a40);
  box-shadow: 0 5px 0 #0a5226;
  cursor: pointer;
}
.sb2-ante input { display: none; }
.sb2-ante-txt { flex: 1; display: flex; flex-direction: column; }
.sb2-ante-txt b { font-size: 13px; }
.sb2-ante-txt small { font-size: 10px; opacity: .9; }
.sb2-ante-txt em { font-style: normal; font-size: 11px; font-weight: 800; color: #ffe14d; }
.sb2-switch {
  width: 40px; height: 22px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}
.sb2-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left .2s;
}
.sb2-ante input:checked ~ .sb2-switch { background: #ffe14d; }
.sb2-ante input:checked ~ .sb2-switch::after { left: 21px; }
.sb2-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sb2-fsbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(90, 10, 90, .75);
  border: 2px solid #ffe14d;
  font-weight: 900;
  font-size: 14px;
}
.sb2-fsbar[hidden] { display: none; }
.sb2-fsbar b { color: #ffe14d; font-size: 18px; margin-left: 6px; }
.sb2-frame {
  position: relative;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.25));
  border: 5px solid #fff;
  box-shadow: 0 0 0 4px #ff7ac8, 0 12px 24px rgba(120,0,80,.35), inset 0 0 30px rgba(255,255,255,.4);
}
.sb2-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 1fr);
  aspect-ratio: 6 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(70, 120, 200, .18);
}
.sb2-cell { position: relative; display: flex; align-items: center; justify-content: center; }
.sb2-sym {
  width: 92%;
  height: 92%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.sb2-sym img, .sb2-sym svg { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.sb2-cell.sb2-hit .sb2-sym { animation: sbHit .32s ease-in-out infinite alternate; }
@keyframes sbHit { from { transform: scale(1); filter: brightness(1); } to { transform: scale(1.12); filter: brightness(1.35) drop-shadow(0 0 10px #fff); } }
.sb2-cell.sb2-scatter-hit .sb2-sym { animation: sbScatter .5s ease-in-out infinite alternate; }
@keyframes sbScatter { from { transform: scale(1) rotate(-6deg); } to { transform: scale(1.22) rotate(6deg); filter: drop-shadow(0 0 14px #ffe14d); } }
.sb2-paytag {
  position: absolute;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 10px;
  background: #fff;
  color: #c2187a;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  animation: sbTag 1s ease-out forwards;
  pointer-events: none;
  white-space: nowrap;
}
@keyframes sbTag { from { transform: scale(.4); opacity: 0; } 25% { transform: scale(1.15); opacity: 1; } to { transform: translateY(-14px); opacity: 1; } }
/* Bomba multiplicadora */
.sb2-bomb { position: relative; }
.sb2-bomb-ball {
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #ff8ad0 18%, #d4148a 55%, #6a0042 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,.35);
}
.sb2-bomb-mid .sb2-bomb-ball { background: radial-gradient(circle at 35% 30%, #fff 0 8%, #9ae6ff 18%, #2a6fe0 55%, #0c2470 100%); }
.sb2-bomb-big .sb2-bomb-ball { background: radial-gradient(circle at 35% 30%, #fff 0 8%, #ffe58a 18%, #f0a10a 55%, #7a4300 100%); }
.sb2-bomb b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: clamp(13px, 2.2vw, 24px);
  color: #fff;
  -webkit-text-stroke: 1px #5a0038;
  text-shadow: 0 2px 0 #5a0038;
}
.sb2-cell.sb2-bomb-hit .sb2-sym { animation: sbBomb .4s ease-in-out infinite alternate; }
@keyframes sbBomb { from { transform: scale(1); } to { transform: scale(1.25); filter: drop-shadow(0 0 16px #ffe14d); } }
.sb2-mult {
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 6px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe14d, #f09a00);
  color: #6a2a00;
  font-weight: 900;
  font-size: 30px;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  z-index: 4;
}
.sb2-mult[hidden] { display: none; }
.sb2-banner {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) scale(.7);
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(194, 24, 122, .92);
  border: 3px solid #fff;
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 4;
}
.sb2-banner.show { opacity: 1; transform: translateX(-50%) scale(1); }
.sb2-banner b { color: #ffe14d; font-size: 22px; }
.sb2-banner i { font-style: normal; color: #ffe14d; }
.sb2-banner.mult { background: rgba(90, 10, 130, .94); }
.sb2-msg { text-align: center; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(120,0,80,.6); }
.sb2-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(60,10,80,.88), rgba(30,5,45,.95));
  border-top: 3px solid #ff7ac8;
}
.sb2-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 900;
  font-family: Georgia, serif;
  font-size: 18px;
  cursor: pointer;
}
.sb2-betbox, .sb2-winbox { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sb2-betbox small, .sb2-winbox small { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #ffb3e0; }
.sb2-betrow { display: flex; align-items: center; gap: 10px; }
.sb2-betrow b, .sb2-winbox b { font-size: 20px; min-width: 90px; text-align: center; font-variant-numeric: tabular-nums; }
.sb2-winbox b { color: #ffe14d; }
.sb2-round {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #c2187a;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.sb2-round:disabled { opacity: .4; cursor: default; }
.sb2-spin {
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: radial-gradient(circle at 35% 30%, #7dff9e, #19b44a 60%, #0a6a2a);
  box-shadow: 0 6px 0 #064a1c, 0 10px 18px rgba(0,0,0,.45);
  color: #fff;
  font-size: 40px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb2-spin span { display: inline-block; line-height: 1; }
.sb2-spin.spinning span { animation: sbSpinIcon .8s linear infinite; }
@keyframes sbSpinIcon { to { transform: rotate(360deg); } }
.sb2-spin:disabled { filter: saturate(.6); cursor: default; }
.sb2-spin:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 #064a1c; }
.sb2-autobox { display: flex; flex-direction: column; gap: 6px; }
.sb2-pill {
  min-width: 96px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
}
.sb2-pill.active { background: #ffe14d; color: #6a2a00; }
.sb2-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 0, 50, .6);
  backdrop-filter: blur(2px);
  padding: 16px;
}
.sb2-overlay[hidden] { display: none; }
.sb2-card {
  max-width: 460px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
  padding: 22px 20px;
  border-radius: 22px;
  border: 4px solid #fff;
  background: linear-gradient(180deg, #ff6fb5, #b44cff);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  animation: sbCard .35s ease-out;
}
@keyframes sbCard { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sb2-card h2 { margin: 0 0 8px; font-size: 26px; font-weight: 900; color: #ffe14d; -webkit-text-stroke: 1px #7a0e4c; text-shadow: 0 3px 0 #7a0e4c; }
.sb2-card p { margin: 6px 0; font-weight: 700; }
.sb2-card small { display: block; font-size: 11px; opacity: .85; margin: 6px 0; }
.sb2-card-total { display: block; font-size: 40px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 #7a0e4c; margin: 8px 0; }
.sb2-go {
  margin-top: 12px;
  padding: 12px 34px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: linear-gradient(180deg, #7dff9e, #19b44a);
  box-shadow: 0 4px 0 #064a1c;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
}
.sb2-go-ghost { background: rgba(255,255,255,.15); box-shadow: none; font-size: 14px; padding: 8px 20px; }
.sb2-autos { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.sb2-autos button {
  min-width: 70px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 3px solid #fff;
  background: #c2187a;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}
.sb2-autos button.ghost { background: rgba(255,255,255,.15); }
.sb2-big h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  color: #ffe14d;
  -webkit-text-stroke: 2px #b05a00;
  text-shadow: 0 6px 0 #b05a00, 0 0 40px rgba(255,225,77,.8);
  animation: sbBigTitle .6s ease-in-out infinite alternate;
  text-align: center;
}
@keyframes sbBigTitle { from { transform: scale(1); } to { transform: scale(1.08); } }
.sb2-big b { display: block; text-align: center; font-size: clamp(40px, 8vw, 76px); font-weight: 900; color: #fff; text-shadow: 0 5px 0 #7a0e4c; font-variant-numeric: tabular-nums; }
.sb2-big small { display: block; text-align: center; opacity: .8; margin-top: 8px; }
.sb2-paytable { max-width: 560px; text-align: left; }
.sb2-paytable h2, .sb2-paytable > p { text-align: center; }
.sb2-payrow {
  display: grid;
  grid-template-columns: 52px 1fr 1fr 1fr;
  gap: 6px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  margin: 4px 0;
  font-size: 12px;
}
.sb2-payrow b { display: block; color: #ffe14d; font-size: 14px; }
.sb2-payicon .sb2-sym { width: 46px; height: 46px; }
.sb2-paytable ul { font-size: 12px; padding-left: 18px; margin: 10px 0 0; }
.sb2-paytable .sb2-go { display: block; margin: 12px auto 0; }


/* ---- Gates of Olympus: cielo, mármol y oro ---- */
.sb2-theme-olympus {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,240,190,.55) 0%, transparent 50%),
    linear-gradient(180deg, #2a4fa8 0%, #5b3fa8 55%, #2a1458 100%);
}
.sb2-theme-olympus.sb2-has-background { background: url('assets/olympus/background.jpg') center / cover no-repeat; }
.sb2-theme-olympus.sb2-free { background: linear-gradient(180deg, #7a2aa8 0%, #3a1470 60%, #14062e 100%); }
.sb2-theme-olympus.sb2-has-background.sb2-free { background: url('assets/olympus/background.jpg') center / cover no-repeat; }
.sb2-theme-olympus .sb2-logo span { -webkit-text-stroke: 1.5px #6a3a00; text-shadow: 0 4px 0 #6a3a00, 0 8px 14px rgba(0,0,0,.35); color: #fff6d0; }
.sb2-theme-olympus .sb2-logo span b { color: #ffd34d; -webkit-text-stroke: 1.5px #6a3a00; text-shadow: 0 4px 0 #6a3a00; font-size: 30px; }
.sb2-theme-olympus .sb2-frame {
  background: linear-gradient(180deg, rgba(20,20,60,.55), rgba(40,20,80,.45));
  border-color: #ffd34d;
  box-shadow: 0 0 0 4px #8a5a10, 0 12px 24px rgba(0,0,40,.45), inset 0 0 30px rgba(255,220,120,.15);
}
.sb2-theme-olympus .sb2-grid { background: rgba(10, 10, 40, .35); }
.sb2-theme-olympus .sb2-buy { background: linear-gradient(180deg, #3a6fe0, #1c3a9a); box-shadow: 0 5px 0 #0e1f5a, 0 8px 14px rgba(0,0,0,.3); border-color: #ffd34d; }
.sb2-theme-olympus .sb2-buy b { text-shadow: 0 2px 0 #0e1f5a; }
.sb2-theme-olympus .sb2-ante { background: linear-gradient(180deg, #b07a18, #7a4e00); box-shadow: 0 5px 0 #4a2e00; border-color: #ffd34d; }
.sb2-theme-olympus .sb2-bar { background: linear-gradient(180deg, rgba(20,15,60,.9), rgba(8,6,30,.96)); border-top-color: #ffd34d; }
.sb2-theme-olympus .sb2-round { background: #3a6fe0; }
.sb2-theme-olympus .sb2-banner { background: rgba(30, 40, 120, .92); border-color: #ffd34d; }
.sb2-theme-olympus .sb2-fsbar { background: rgba(20, 15, 70, .8); }
.sb2-theme-olympus .sb2-card { background: linear-gradient(180deg, #3a5fd0, #3a1a80); border-color: #ffd34d; }
.sb2-theme-olympus .sb2-card h2 { -webkit-text-stroke: 1px #6a3a00; text-shadow: 0 3px 0 #6a3a00; }
.sb2-theme-olympus .sb2-msg { text-shadow: 0 1px 3px rgba(0,0,40,.8); }
/* Orbe multiplicador: esfera de vidrio con el número */
.sb2-theme-olympus .sb2-bomb-ball {
  background: radial-gradient(circle at 35% 30%, #fff 0 7%, #9ff0ff 16%, #22a8e0 50%, #0a3a7a 100%);
  box-shadow: 0 0 12px rgba(120,220,255,.8), inset 0 -6px 10px rgba(0,0,40,.4);
}
.sb2-theme-olympus .sb2-bomb-mid .sb2-bomb-ball { background: radial-gradient(circle at 35% 30%, #fff 0 7%, #d6a6ff 16%, #8a3ae0 50%, #34106a 100%); box-shadow: 0 0 14px rgba(190,120,255,.85); }
.sb2-theme-olympus .sb2-bomb-big .sb2-bomb-ball { background: radial-gradient(circle at 35% 30%, #fff 0 7%, #ffe9a0 16%, #ffb020 50%, #8a4a00 100%); box-shadow: 0 0 18px rgba(255,200,60,.95); }
.sb2-theme-olympus .sb2-bomb b { -webkit-text-stroke: 1px #0a1e4a; text-shadow: 0 2px 0 #0a1e4a; }
.sb2-theme-olympus .sb2-mult { background: linear-gradient(180deg, #9ff0ff, #2a7ae0); color: #0a1e4a; }

/* ---- Fruit Party: fiesta de colores ---- */
.sb2-theme-fruit {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.45) 0%, transparent 40%),
    linear-gradient(180deg, #ffb347 0%, #ff5e8a 55%, #b23a9a 100%);
}
.sb2-theme-fruit.sb2-has-background { background: url('assets/fruitparty/background.jpg') center / cover no-repeat; }
.sb2-theme-fruit.sb2-free { background: linear-gradient(180deg, #3ad0a0 0%, #1e8ad0 60%, #4a2aa8 100%); }
.sb2-theme-fruit.sb2-has-background.sb2-free { background: url('assets/fruitparty/background.jpg') center / cover no-repeat; }
.sb2-theme-fruit .sb2-frame { border-color: #fff; box-shadow: 0 0 0 4px #ff8a3a, 0 12px 24px rgba(120,20,40,.35); background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.2)); }
.sb2-theme-fruit .sb2-grid { background: rgba(120, 30, 60, .15); }
.sb2-theme-fruit .sb2-buy { background: linear-gradient(180deg, #ff8a3a, #d0480a); box-shadow: 0 5px 0 #7a2600, 0 8px 14px rgba(0,0,0,.3); }
.sb2-theme-fruit .sb2-bar { border-top-color: #ff8a3a; }
.sb2-theme-fruit .sb2-logo span { -webkit-text-stroke: 1.5px #a0281a; text-shadow: 0 4px 0 #a0281a, 0 8px 14px rgba(0,0,0,.3); }
.sb2-theme-fruit .sb2-logo span b { color: #ffe14d; -webkit-text-stroke: 1.5px #a0281a; text-shadow: 0 4px 0 #a0281a; }
/* Grilla de 7x7 */
.sb2-big-grid .sb2-grid { grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); aspect-ratio: 1; }
.sb2-big-grid .sb2-frame { max-width: min(100%, 560px); margin: 0 auto; width: 100%; box-sizing: border-box; }
.sb2-big-grid .sb2-paytag { font-size: 13px; }
/* Multiplicador de casilla */
.sb2-mark {
  position: absolute;
  inset: 6%;
  border-radius: 10px;
  border: 2px solid #ffe14d;
  background: rgba(255, 225, 77, .22);
  color: #fff;
  font-weight: 900;
  font-size: clamp(11px, 1.6vw, 17px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 2px 5px;
  -webkit-text-stroke: 1px #7a3a00;
  text-shadow: 0 2px 0 #7a3a00;
  pointer-events: none;
  z-index: 2;
}
.sb2-payrow-5 { grid-template-columns: 52px 1fr 1fr 1fr 1fr; }


/* ---- Rodillos 5x3 con líneas (Book of Dead, Big Bass) ---- */
.ls-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  aspect-ratio: 5 / 3;
  border-radius: 12px;
  overflow: hidden;
}
.ls-reel {
  position: relative;
  container-type: size; /* cada celda mide un tercio del alto del rodillo */
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0,0,0,.25);
}
.ls-strip { display: flex; flex-direction: column; will-change: transform; }
.ls-cell {
  position: relative;
  height: 33.333cqh;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-sym { position: relative; }
.ls-letter { font-size: clamp(22px, 4vw, 46px); font-weight: 900; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.ls-fish-value {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 8px;
  background: #ffe14d;
  color: #5a2a00;
  font-size: clamp(10px, 1.4vw, 15px);
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
  z-index: 2;
}
.ls-frame { display: flex; align-items: stretch; gap: 4px; }
.ls-board { position: relative; flex: 1; min-width: 0; }
.ls-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
/* Números de línea a los costados */
.ls-nums { display: flex; flex-direction: column; width: 20px; flex-shrink: 0; }
.ls-nums-row { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; }
.ls-num {
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: #1a1000;
  background: var(--c); opacity: .45;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
  transition: opacity .15s, transform .15s;
}
.ls-num.on { opacity: 1; transform: scale(1.25); box-shadow: 0 0 0 2px #fff, 0 0 10px var(--c); }
.sb2-banner.line { background: rgba(20, 20, 30, .92); display: flex; align-items: center; gap: 6px; }
.sb2-banner small { font-size: 12px; font-weight: 700; opacity: .85; }
.ls-banner-sym { display: inline-flex; width: 32px; height: 32px; }
.ls-banner-sym .sb2-sym { width: 100%; height: 100%; }
.ls-banner-sym img { width: 100%; height: 100%; object-fit: contain; }
.ls-banner-sym .ls-letter { font-size: 22px; color: #fff !important; }
.sb2-msg.ls-msg-line { color: #ffe14d; font-size: 14px; }
.ls-mini-box { position: relative; }
.ls-mini-box span {
  position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c); color: #1a1000; font-size: 10px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.ls-lines polyline, .ls-mini polyline { fill: none; stroke-width: 0.07; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 0.05px #000); }
.ls-cell.ls-hit .sb2-sym { animation: sbHit .35s ease-in-out infinite alternate; }
.ls-cell.ls-scatter-hit .sb2-sym { animation: sbScatter .5s ease-in-out infinite alternate; }
.ls-cell.ls-expanded { background: radial-gradient(circle, rgba(255,215,94,.45), rgba(255,215,94,.05) 70%); }
.ls-side-info { display: flex; flex-direction: column; gap: 6px; }
.ls-side-info div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.25);
}
.ls-side-info small { font-size: 11px; font-weight: 800; opacity: .85; }
.ls-side-info b { color: #ffe14d; }
.ls-fs-special { display: flex; align-items: center; gap: 6px; }
.ls-fs-special .sb2-sym { width: 34px; height: 34px; }
.ls-meter { display: flex; align-items: center; gap: 6px; }
.ls-hooks { display: inline-flex; gap: 3px; }
.ls-hooks i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #ffe14d; display: inline-block; }
.ls-hooks i.on { background: #ffe14d; }
.ls-reveal { width: 120px; height: 120px; margin: 12px auto; border-radius: 16px; background: rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
.ls-reveal .sb2-sym { width: 100px; height: 100px; }
.ls-reveal.chosen { box-shadow: 0 0 0 4px #ffe14d, 0 0 30px rgba(255,225,77,.8); }
.ls-minis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.ls-mini { width: 100%; aspect-ratio: 5 / 3; background: rgba(0,0,0,.3); border-radius: 6px; }

/* Book of Dead: Egipto, arena y oro */
.sb2-theme-book { background: radial-gradient(ellipse at 50% 0%, rgba(255,220,140,.35), transparent 55%), linear-gradient(180deg, #5a3a14 0%, #2e1c08 60%, #140a02 100%); }
.sb2-theme-book.sb2-has-background { background: url('assets/bookofdead/background.jpg') center / cover no-repeat; }
.sb2-theme-book.sb2-free { background: linear-gradient(180deg, #3a1a4a 0%, #1e0a2a 60%, #0a0410 100%); }
.sb2-theme-book .sb2-frame { background: linear-gradient(180deg, rgba(40,25,8,.75), rgba(20,12,4,.75)); border-color: #e0b050; box-shadow: 0 0 0 4px #6a4510, 0 12px 24px rgba(0,0,0,.5); }
.sb2-theme-book .ls-reel { background: linear-gradient(180deg, #f3e3bd, #d9c08a); }
.sb2-theme-book .sb2-logo span { color: #ffe9a6; -webkit-text-stroke: 1.5px #5a3a00; text-shadow: 0 4px 0 #5a3a00; }
.sb2-theme-book .sb2-logo span b { color: #ffd34d; -webkit-text-stroke: 1.5px #5a3a00; text-shadow: 0 4px 0 #5a3a00; }
.sb2-theme-book .sb2-bar { background: linear-gradient(180deg, rgba(40,25,8,.95), rgba(15,8,2,.98)); border-top-color: #e0b050; }
.sb2-theme-book .sb2-round, .sb2-theme-book .sb2-autos button { background: #8a5a10; }
.sb2-theme-book .sb2-banner { background: rgba(60,35,5,.94); border-color: #ffd34d; }
.sb2-theme-book .sb2-card { background: linear-gradient(180deg, #8a5a10, #3a2208); border-color: #ffd34d; }
.sb2-theme-book .sb2-fsbar { background: rgba(40,20,5,.85); border-color: #ffd34d; }
.sb2-theme-book .ls-letter { color: #6a4210; text-shadow: 0 2px 0 rgba(255,255,255,.5); }

/* Big Bass: lago y madera */
.sb2-theme-bass { background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.35), transparent 55%), linear-gradient(180deg, #5fc8ff 0%, #1f7ac0 55%, #0a3a6a 100%); }
.sb2-theme-bass.sb2-has-background { background: url('assets/bigbass/background.jpg') center / cover no-repeat; }
.sb2-theme-bass.sb2-free { background: linear-gradient(180deg, #1aa07a 0%, #0a6a8a 60%, #062a4a 100%); }
.sb2-theme-bass .sb2-frame { background: linear-gradient(180deg, rgba(10,40,70,.55), rgba(5,25,50,.65)); border-color: #c98a3a; box-shadow: 0 0 0 4px #6a4015, 0 12px 24px rgba(0,20,40,.45); }
.sb2-theme-bass .ls-reel { background: linear-gradient(180deg, rgba(170,225,255,.9), rgba(90,170,230,.85)); }
.sb2-theme-bass .sb2-logo span { -webkit-text-stroke: 1.5px #0a3a6a; text-shadow: 0 4px 0 #0a3a6a; }
.sb2-theme-bass .sb2-logo span b { color: #ffe14d; -webkit-text-stroke: 1.5px #0a3a6a; text-shadow: 0 4px 0 #0a3a6a; }
.sb2-theme-bass .sb2-bar { background: linear-gradient(180deg, rgba(10,40,70,.95), rgba(4,18,35,.98)); border-top-color: #c98a3a; }
.sb2-theme-bass .sb2-round, .sb2-theme-bass .sb2-autos button { background: #1f7ac0; }
.sb2-theme-bass .sb2-banner { background: rgba(10,50,90,.94); }
.sb2-theme-bass .sb2-card { background: linear-gradient(180deg, #2a9ad0, #0a3a6a); }
.sb2-theme-bass .sb2-fsbar { background: rgba(5,30,55,.85); }
.sb2-theme-bass .ls-letter { color: #0a3a6a; text-shadow: 0 2px 0 rgba(255,255,255,.6); }

/* ---- 4 filas (Fiebre del Oro) ---- */
.ls-rows-4 .ls-reels { aspect-ratio: 5 / 4; }
.ls-rows-4 .ls-cell { height: 25cqh; }
.ls-rows-4 .ls-nums { width: 32px; }
.ls-rows-4 .ls-nums-row { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 1px; min-height: 0; }
.ls-rows-4 .ls-num { width: 15px; height: 15px; font-size: 8px; }
@media (max-width: 720px) {
  .ls-rows-4 .ls-nums { width: 22px; }
  .ls-rows-4 .ls-num { width: 10px; height: 10px; font-size: 6px; }
}
@media (min-width: 721px) {
  .ls-rows-4 .ls-nums { width: 40px; }
  .ls-rows-4 .ls-num { width: 19px; height: 19px; font-size: 11px; }
}
/* Dinamitas fijas: capa quieta encima de los rodillos mientras giran */
.ls-sticky-layer {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: grid; grid-template-columns: repeat(5, 1fr); column-gap: 6px;
}
.ls-rows-4 .ls-sticky-layer { grid-template-rows: repeat(4, 1fr); }
.ls-sticky-layer .ls-cell { height: auto; border-radius: 8px; }
.ls-cell.ls-sticky {
  background: radial-gradient(circle, rgba(255,90,40,.55), rgba(120,20,0,.35) 75%);
  box-shadow: inset 0 0 0 3px #ffb300, 0 0 14px rgba(255,140,0,.7);
  border-radius: 8px;
}
.ls-wild-mult {
  position: absolute; right: 4%; top: 4%;
  padding: 1px 7px; border-radius: 999px;
  background: linear-gradient(180deg, #fff3a0, #ffb300); color: #5a1a00;
  border: 2px solid #5a1a00;
  font-size: clamp(11px, 1.6vw, 17px); font-weight: 900;
  box-shadow: 0 2px 4px rgba(0,0,0,.45);
  z-index: 2;
}

.sb2-theme-gold { background: radial-gradient(ellipse at 50% 0%, rgba(255,190,110,.45), transparent 55%), linear-gradient(180deg, #c8662a 0%, #7a3414 55%, #2a1006 100%); }
.sb2-theme-gold.sb2-has-background { background: url('assets/goldrush/background.jpg') center / cover no-repeat; }
.sb2-theme-gold.sb2-free { background: radial-gradient(ellipse at 50% 0%, rgba(255,120,60,.4), transparent 55%), linear-gradient(180deg, #4a1a2a 0%, #2a0a14 60%, #0e0306 100%); }
.sb2-theme-gold .sb2-frame { background: linear-gradient(180deg, rgba(50,24,8,.8), rgba(24,10,2,.8)); border-color: #d9a441; box-shadow: 0 0 0 4px #5a3210, 0 12px 24px rgba(0,0,0,.5); }
.sb2-theme-gold .ls-reel { background: linear-gradient(180deg, #f6e2b8, #d8b27a); }
.sb2-theme-gold .sb2-logo span { color: #ffe9a6; -webkit-text-stroke: 1.5px #4a1a00; text-shadow: 0 4px 0 #4a1a00; }
.sb2-theme-gold .sb2-logo span b { color: #ffc23a; -webkit-text-stroke: 1.5px #4a1a00; text-shadow: 0 4px 0 #4a1a00; }
.sb2-theme-gold .sb2-bar { background: linear-gradient(180deg, rgba(50,22,6,.95), rgba(18,8,2,.98)); border-top-color: #d9a441; }
.sb2-theme-gold .sb2-round, .sb2-theme-gold .sb2-autos button { background: #a0521c; }
.sb2-theme-gold .sb2-banner { background: rgba(70,28,6,.94); border-color: #ffc23a; }
.sb2-theme-gold .sb2-card { background: linear-gradient(180deg, #a0521c, #3a1606); border-color: #ffc23a; }
.sb2-theme-gold .sb2-fsbar { background: rgba(50,18,4,.88); border-color: #ffc23a; }
.sb2-theme-gold .ls-letter { color: #6a3010; text-shadow: 0 2px 0 rgba(255,255,255,.5); }

/* ---- 3 rodillos (777 Clásico) ---- */
.ls-cols-3 .ls-reels { grid-template-columns: repeat(3, 1fr); aspect-ratio: 4 / 3; gap: 10px; }
.ls-cols-3 .sb2-frame.ls-frame { max-width: 640px; margin: 0 auto; width: 100%; }
.ls-cols-3 .ls-nums { width: 26px; }
.ls-cols-3 .ls-num { width: 22px; height: 22px; font-size: 12px; }

.sb2-theme-clasico { background: radial-gradient(ellipse at 50% 0%, rgba(255,80,80,.35), transparent 55%), linear-gradient(180deg, #8a0a14 0%, #4a040a 55%, #1a0004 100%); }
.sb2-theme-clasico.sb2-has-background { background: url('assets/clasico/background.jpg') center / cover no-repeat; }
.sb2-theme-clasico .sb2-frame {
  background: linear-gradient(180deg, #e8e8f0, #8a8a98 50%, #d0d0dc);
  border-color: #ffd34d;
  box-shadow: 0 0 0 4px #6a4a00, 0 0 0 7px #ffd34d, 0 0 30px rgba(255,211,77,.45), 0 12px 24px rgba(0,0,0,.6);
}
.sb2-theme-clasico .ls-reel { background: linear-gradient(180deg, #c8c8d0 0%, #ffffff 30%, #ffffff 70%, #c8c8d0 100%); box-shadow: inset 0 0 12px rgba(0,0,0,.35); }
.sb2-theme-clasico .ls-reels { padding: 4px; background: #1a1a1a; }
.sb2-theme-clasico .sb2-logo span { color: #fff; -webkit-text-stroke: 1.5px #6a0008; text-shadow: 0 4px 0 #6a0008, 0 0 18px rgba(255,211,77,.6); }
.sb2-theme-clasico .sb2-logo span b { color: #ffd34d; -webkit-text-stroke: 1.5px #6a0008; text-shadow: 0 4px 0 #6a0008; }
.sb2-theme-clasico .sb2-bar { background: linear-gradient(180deg, rgba(70,4,10,.96), rgba(20,0,4,.98)); border-top-color: #ffd34d; }
.sb2-theme-clasico .sb2-round, .sb2-theme-clasico .sb2-autos button { background: #b0101e; }
.sb2-theme-clasico .sb2-banner { background: rgba(90,4,12,.94); border-color: #ffd34d; }
.sb2-theme-clasico .sb2-card { background: linear-gradient(180deg, #b0101e, #3a0006); border-color: #ffd34d; }
.sb2-theme-clasico .ls-blank img { opacity: 0; }

/* ---- Pueblo Amarillo ---- */
.sb2-theme-amarillo {
  background:
    radial-gradient(ellipse 30% 14% at 18% 14%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(ellipse 24% 10% at 78% 22%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(ellipse 120% 40% at 50% 112%, #4cc04a 0 60%, transparent 61%),
    linear-gradient(180deg, #3a8ae8 0%, #7ac0ff 55%, #b8e4ff 100%);
}
.sb2-theme-amarillo.sb2-has-background { background: url('assets/amarillo/background.jpg') center / cover no-repeat; }
.sb2-theme-amarillo.sb2-free {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,74,168,.45), transparent 55%),
    repeating-conic-gradient(from 0deg at 50% 30%, rgba(255,225,74,.18) 0 10deg, transparent 10deg 20deg),
    linear-gradient(180deg, #ff8ac8 0%, #c04a9a 60%, #5a1a5a 100%);
}
.sb2-theme-amarillo .sb2-frame {
  background: rgba(255,248,210,.9);
  border-color: #ff4aa8;
  box-shadow: 0 0 0 4px #ffd90f, 0 0 0 7px #7a3a00, 0 10px 28px rgba(0,0,0,.45);
}
.sb2-theme-amarillo .ls-reel { background: linear-gradient(180deg, #fff6c8, #ffe680 50%, #fff6c8); box-shadow: inset 0 0 0 2px rgba(122,58,0,.35); }
.sb2-theme-amarillo .sb2-logo span { color: #ffd90f; font-family: 'Arial Black', Arial, sans-serif; -webkit-text-stroke: 1.5px #3a1a00; text-shadow: 3px 3px 0 #ff4aa8, 0 4px 10px rgba(0,0,0,.4); }
.sb2-theme-amarillo .sb2-logo span b { color: #ff4aa8; -webkit-text-stroke: 1.5px #3a0020; text-shadow: 3px 3px 0 #ffd90f, 0 4px 10px rgba(0,0,0,.4); }
.sb2-theme-amarillo .sb2-msg { color: #3a1a00; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.sb2-theme-amarillo.sb2-free .sb2-msg { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.sb2-theme-amarillo .sb2-bar { background: linear-gradient(180deg, rgba(60,30,10,.96), rgba(24,10,2,.98)); border-top-color: #ffd90f; }
.sb2-theme-amarillo .sb2-round, .sb2-theme-amarillo .sb2-autos button { background: #ff4aa8; }
.sb2-theme-amarillo .sb2-banner { background: rgba(60,20,40,.94); border-color: #ffd90f; }
.sb2-theme-amarillo .sb2-card { background: linear-gradient(180deg, #ff6ab8, #7a1a5a); border-color: #ffd90f; }
.sb2-theme-amarillo .sb2-fsbar { background: rgba(90,20,60,.9); border-color: #ffd90f; }
.sb2-theme-amarillo .ls-cell.ls-expanded { background: radial-gradient(circle, rgba(255,74,168,.45), rgba(255,74,168,.06) 70%); }

/* ---- Corte del Bufón ---- */
.sb2-theme-bufon {
  background:
    radial-gradient(ellipse 60% 30% at 50% 0%, rgba(255,196,0,.35), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 22px, transparent 22px 44px),
    linear-gradient(90deg, #6a0a1a 0 8%, transparent 8% 92%, #6a0a1a 92%),
    linear-gradient(180deg, #3a0a5a 0%, #22063a 60%, #10021c 100%);
}
.sb2-theme-bufon.sb2-has-background { background: url('assets/bufon/background.jpg') center / cover no-repeat; }
.sb2-theme-bufon.sb2-free {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,196,0,.4), transparent 55%),
    repeating-conic-gradient(from 0deg at 50% 30%, rgba(224,32,58,.22) 0 15deg, rgba(42,184,74,.18) 15deg 30deg, rgba(122,42,192,.22) 30deg 45deg),
    linear-gradient(180deg, #5a0a6a 0%, #2a0440 60%, #12021e 100%);
}
.sb2-theme-bufon .sb2-frame {
  background: rgba(20,4,34,.88);
  border-color: #ffc400;
  box-shadow: 0 0 0 4px #e0203a, 0 0 0 7px #2ab84a, 0 10px 28px rgba(0,0,0,.5);
}
.sb2-theme-bufon .ls-reel { background: linear-gradient(180deg, #fff6e6, #f2dcc0 50%, #fff6e6); box-shadow: inset 0 0 0 2px rgba(122,42,192,.4); }
.sb2-theme-bufon .sb2-logo span { color: #ffc400; font-family: Georgia, 'Times New Roman', serif; -webkit-text-stroke: 1.5px #4a0a1a; text-shadow: 3px 3px 0 #e0203a, 0 4px 10px rgba(0,0,0,.5); }
.sb2-theme-bufon .sb2-logo span b { color: #fff; -webkit-text-stroke: 1.5px #2a0a4a; text-shadow: 3px 3px 0 #7a2ac0, 0 4px 10px rgba(0,0,0,.5); }
.sb2-theme-bufon .sb2-bar { background: linear-gradient(180deg, rgba(58,10,90,.96), rgba(16,2,28,.98)); border-top-color: #ffc400; }
.sb2-theme-bufon .sb2-round, .sb2-theme-bufon .sb2-autos button { background: #e0203a; }
.sb2-theme-bufon .sb2-banner { background: rgba(40,6,60,.94); border-color: #ffc400; }
.sb2-theme-bufon .sb2-card { background: linear-gradient(180deg, #7a2ac0, #2a0a4a); border-color: #ffc400; }
.sb2-theme-bufon .sb2-fsbar { background: rgba(58,10,90,.92); border-color: #ffc400; }
.sb2-theme-bufon .sb2-buy { background: linear-gradient(180deg, #e0203a, #8a0a1e); box-shadow: 0 5px 0 #4a0010, 0 8px 14px rgba(0,0,0,.35); border-color: #ffc400; }
.sb2-theme-bufon .sb2-buy b { text-shadow: 0 2px 0 #4a0010; }
.sb2-theme-bufon .sb2-buy:active:not(:disabled) { box-shadow: 0 2px 0 #4a0010; }

/* ---- Arcade Retro ---- */
.sb2-theme-arcade {
  background:
    linear-gradient(rgba(255,79,216,.08) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(90,200,255,.08) 1px, transparent 1px) 0 0 / 24px 100%,
    radial-gradient(ellipse at 50% 0%, rgba(160,74,255,.45), transparent 60%),
    linear-gradient(180deg, #1a0a3a 0%, #0c0420 60%, #04010c 100%);
}
.sb2-theme-arcade.sb2-has-background { background: url('assets/arcade/background.jpg') center / cover no-repeat; }
.sb2-theme-arcade.sb2-free {
  background:
    linear-gradient(rgba(255,230,0,.08) 1px, transparent 1px) 0 0 / 100% 24px,
    radial-gradient(ellipse at 50% 0%, rgba(255,79,216,.5), transparent 60%),
    linear-gradient(180deg, #3a0a3a 0%, #1a0420 60%, #08010c 100%);
}
.sb2-theme-arcade .sb2-frame {
  background: rgba(8,2,24,.85);
  border-color: #ff4fd8;
  box-shadow: 0 0 0 3px #5ac8ff, 0 0 24px rgba(255,79,216,.6), 0 0 48px rgba(90,200,255,.3), inset 0 0 20px rgba(90,200,255,.25);
}
.sb2-theme-arcade .ls-reel { background: linear-gradient(180deg, #1a1040, #2a1a5a 50%, #1a1040); box-shadow: inset 0 0 0 1px rgba(90,200,255,.35); }
.sb2-theme-arcade .sb2-logo span { color: #5ac8ff; font-family: 'Courier New', monospace; letter-spacing: 2px; -webkit-text-stroke: 1px #0a1a5a; text-shadow: 3px 3px 0 #ff4fd8, 0 0 16px rgba(90,200,255,.8); }
.sb2-theme-arcade .sb2-logo span b { color: #ffe600; -webkit-text-stroke: 1px #5a3a00; text-shadow: 3px 3px 0 #ff4fd8, 0 0 16px rgba(255,230,0,.8); }
.sb2-theme-arcade .sb2-bar { background: linear-gradient(180deg, rgba(26,10,58,.96), rgba(6,2,16,.98)); border-top-color: #ff4fd8; }
.sb2-theme-arcade .sb2-round, .sb2-theme-arcade .sb2-autos button { background: #7a2ad8; }
.sb2-theme-arcade .sb2-banner { background: rgba(20,6,50,.94); border-color: #ffe600; font-family: 'Courier New', monospace; }
.sb2-theme-arcade .sb2-card { background: linear-gradient(180deg, #5a1ab0, #140630); border-color: #ff4fd8; }
.sb2-theme-arcade .sb2-fsbar { background: rgba(20,6,50,.9); border-color: #ffe600; }
.ls-levels { display: inline-flex; gap: 3px; }
.ls-levels i {
  font-style: normal; font-size: 10px; font-weight: 900; padding: 1px 5px; border-radius: 4px;
  border: 1px solid #ffe600; color: #ffe600; opacity: .45;
}
.ls-levels i.on { background: #ffe600; color: #1a0a3a; opacity: 1; box-shadow: 0 0 8px rgba(255,230,0,.8); }

@media (max-width: 900px) {
  .sb2-body { flex-direction: column; }
  .sb2-side { width: auto; display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .sb2-logo { display: none; }
  .sb2-stage { order: -1; }
}
@media (max-width: 720px) {
  .sb2-body { padding: 10px; gap: 10px; }
  /* En el celular el botón de girar va justo debajo de la grilla y las
     compras de giros abajo (si no, había que bajar para girar) */
  .sb2 { display: flex; flex-direction: column; }
  .sb2 > .sb2-body { display: contents; }
  .sb2 > .sb2-body > .sb2-stage { order: -2; padding: 10px 10px 0; }
  .sb2 > .sb2-bar { order: -1; }
  .sb2 > .sb2-body > .sb2-side { padding: 10px; }
  .sb2-side { grid-template-columns: 1fr 1fr; }
  .sb2-ante { grid-column: 1 / -1; }
  .sb2-buy:only-of-type { grid-column: 1 / -1; }
  .ls .sb2-side { grid-template-columns: 1fr; }
  .ls-side-info { flex-direction: row; }
  .ls-side-info div { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 8px; }
  .ls-side-info b { font-size: 13px; }
  .sb2-buy b { font-size: 16px; }
  .sb2-frame { padding: 6px; border-width: 4px; }
  .sb2-bar { gap: 10px 14px; padding: 10px; }
  .sb2-spin { width: 72px; height: 72px; font-size: 32px; }
  .sb2-betrow b, .sb2-winbox b { font-size: 17px; min-width: 70px; }
  .sb2-banner { font-size: 14px; bottom: 10px; }
  .sb2-banner b { font-size: 16px; }
  .ls-frame { gap: 2px; }
  .ls-nums { width: 14px; }
  .ls-num { width: 13px; height: 13px; font-size: 8px; }
  .ls-banner-sym { width: 24px; height: 24px; }
}

/* ============ TRAGAMONEDAS (legacy) ============ */
.slot-machine {
  position: relative;
  background: linear-gradient(180deg, #2a0d30 0%, #1c0a20 100%);
  border: 3px solid #ffd200;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(255,210,0,.25), inset 0 0 40px rgba(255,210,0,.08);
  overflow: hidden;
}
.slot-machine.win {
  animation: machineShake .6s ease;
  box-shadow: 0 0 60px rgba(255,210,0,.9), inset 0 0 60px rgba(255,210,0,.3);
}
@keyframes machineShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px) rotate(-.5deg); }
  40%     { transform: translateX(6px) rotate(.5deg); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

/* Luces LED alrededor */
.slot-lights {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 10%, #ffd200 0 3px, transparent 4px),
    radial-gradient(circle at 30% 10%, #ffd200 0 3px, transparent 4px),
    radial-gradient(circle at 50% 10%, #ffd200 0 3px, transparent 4px),
    radial-gradient(circle at 70% 10%, #ffd200 0 3px, transparent 4px),
    radial-gradient(circle at 90% 10%, #ffd200 0 3px, transparent 4px),
    radial-gradient(circle at 10% 90%, #ffd200 0 3px, transparent 4px),
    radial-gradient(circle at 30% 90%, #ffd200 0 3px, transparent 4px),
    radial-gradient(circle at 50% 90%, #ffd200 0 3px, transparent 4px),
    radial-gradient(circle at 70% 90%, #ffd200 0 3px, transparent 4px),
    radial-gradient(circle at 90% 90%, #ffd200 0 3px, transparent 4px);
  animation: lightsBlink 1s infinite;
  opacity: .9;
}
@keyframes lightsBlink {
  0%,100% { filter: brightness(1); }
  50%     { filter: brightness(2.2); }
}

/* Rodillos */
.reels {
  display: flex; gap: 12px; justify-content: center; margin: 16px 0;
  perspective: 800px;
}
.reel {
  width: 90px; height: 110px;
  background: linear-gradient(180deg, #fff 0%, #f0e6c8 50%, #fff 100%);
  border: 3px solid #ffd200;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,.15);
}
.reel::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 20%, transparent 80%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
}
.reel .symbol {
  display: inline-block;
  transition: transform .1s;
}
.reel.spinning .symbol {
  animation: reelSpin .12s linear infinite;
}
@keyframes reelSpin {
  0%   { transform: translateY(-100%); opacity: .3; }
  50%  { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100%); opacity: .3; }
}
.reel.landed {
  animation: reelLand .35s ease;
}
@keyframes reelLand {
  0%   { transform: scale(1.15); }
  60%  { transform: scale(.95); }
  100% { transform: scale(1); }
}

/* ============ RULETA ============ */
.roulette-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin: 16px 0;
}
.roulette-wheel {
  width: 260px; height: 260px;
  border-radius: 50%;
  position: relative;
  border: 6px solid #ffd200;
  box-shadow: 0 0 30px rgba(255,210,0,.4), inset 0 0 30px rgba(0,0,0,.6);
  background: conic-gradient(
    #14532d 0deg 9.73deg,
    #7f1d1d 9.73deg 19.46deg,
    #111 19.46deg 29.19deg,
    #7f1d1d 29.19deg 38.92deg,
    #111 38.92deg 48.65deg,
    #7f1d1d 48.65deg 58.38deg,
    #111 58.38deg 68.11deg,
    #7f1d1d 68.11deg 77.84deg,
    #111 77.84deg 87.57deg,
    #7f1d1d 87.57deg 97.3deg,
    #111 97.3deg 107.03deg,
    #7f1d1d 107.03deg 116.76deg,
    #111 116.76deg 126.49deg,
    #7f1d1d 126.49deg 136.22deg,
    #111 136.22deg 145.95deg,
    #7f1d1d 145.95deg 155.68deg,
    #111 155.68deg 165.41deg,
    #7f1d1d 165.41deg 175.14deg,
    #111 175.14deg 184.87deg,
    #7f1d1d 184.87deg 194.6deg,
    #111 194.6deg 204.33deg,
    #7f1d1d 204.33deg 214.06deg,
    #111 214.06deg 223.79deg,
    #7f1d1d 223.79deg 233.52deg,
    #111 233.52deg 243.25deg,
    #7f1d1d 243.25deg 252.98deg,
    #111 252.98deg 262.71deg,
    #7f1d1d 262.71deg 272.44deg,
    #111 272.44deg 282.17deg,
    #7f1d1d 282.17deg 291.9deg,
    #111 291.9deg 301.63deg,
    #7f1d1d 301.63deg 311.36deg,
    #111 311.36deg 321.09deg,
    #7f1d1d 321.09deg 330.82deg,
    #111 330.82deg 340.55deg,
    #7f1d1d 340.55deg 350.28deg,
    #111 350.28deg 360deg
  );
  transition: transform 3s cubic-bezier(.17,.67,.35,1);
}
.roulette-wheel::after {
  content: ""; position: absolute; inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd200 0%, #b8860b 100%);
  box-shadow: inset 0 0 20px rgba(0,0,0,.5);
}
.roulette-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid #ffd200;
  filter: drop-shadow(0 0 6px #ffd200);
  z-index: 2;
}
.roulette-result {
  font-size: 22px; font-weight: 700; color: #ffd200;
  min-height: 30px;
}
.roulette-history {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.roulette-history .chip {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.roulette-history .chip.red   { background: #7f1d1d; }
.roulette-history .chip.black { background: #111; border: 1px solid #444; }
.roulette-history .chip.green { background: #14532d; }

/* ============ BLACKJACK ============ */
.hand { display: flex; gap: 8px; margin: 8px 0; min-height: 90px; }
.card-face {
  width: 60px; height: 84px;
  background: #fff; color: #130516;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
  transform-style: preserve-3d;
  animation: cardDeal .4s ease;
}
.card-face.red { color: #b91c1c; }
.card-face.hidden {
  background: repeating-linear-gradient(45deg, #7f1d1d, #7f1d1d 6px, #b91c1c 6px, #b91c1c 12px);
  color: transparent;
}
@keyframes cardDeal {
  0%   { transform: translateY(-80px) rotate(-15deg); opacity: 0; }
  100% { transform: translateY(0) rotate(0); opacity: 1; }
}
.card-face.flip {
  animation: cardFlip .5s ease;
}
@keyframes cardFlip {
  0%   { transform: rotateY(0); }
  50%  { transform: rotateY(90deg); }
  100% { transform: rotateY(0); }
}

/* ============ PARTÍCULAS DE PREMIO ============ */
.particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ffd200;
  box-shadow: 0 0 10px #ffd200;
  animation: particleFall 1.6s ease-out forwards;
}
@keyframes particleFall {
  0%   { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ============ BILLETERA DUAL / MODO ============ */
.nc-mode-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  cursor: pointer;
  border: 1px solid rgba(255,79,163,.4);
  background: rgba(255,255,255,.05);
  color: #fff;
  transition: background .15s, border-color .15s;
}
.nc-mode-badge:hover { background: rgba(255,79,163,.2); }
.nc-mode-badge.demo {
  border-color: rgba(79,195,247,.6);
  background: linear-gradient(180deg, rgba(79,195,247,.25), rgba(30,90,140,.35));
  color: #bae6fd;
}
.nc-mode-badge.real {
  border-color: rgba(255,210,0,.6);
  background: linear-gradient(180deg, rgba(255,210,0,.25), rgba(140,90,0,.35));
  color: #ffd200;
}
.nc-reload-btn {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(125,255,95,.6);
  background: linear-gradient(180deg, #7dff5f, #2ecc40);
  color: #0a2a10;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 2px 0 #0f5a1a, 0 4px 10px rgba(46,204,64,.4);
  transition: transform .15s, filter .15s;
}
.nc-reload-btn:hover { transform: scale(1.05); filter: brightness(1.1); }
.nc-reload-btn:active { transform: scale(.97); }

/* ============ LIVE BETS FEED ============ */
.nc-live-bets {
  margin-top: 32px;
  background: linear-gradient(180deg, rgba(20,3,45,.92), rgba(8,1,20,.96));
  border: 2px solid rgba(255,79,163,.5);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0,0,0,.7),
    0 0 30px rgba(255,45,143,.25),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.nc-live-bets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(40,10,70,.9), rgba(20,3,45,.95));
  border-bottom: 1px solid rgba(255,79,163,.3);
  flex-wrap: wrap;
}
.nc-live-bets-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd200;
  text-shadow: 0 0 10px rgba(255,210,0,.6);
}
.nc-live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80, 0 0 20px rgba(74,222,128,.6);
  animation: ncLivePulse 1.4s ease-in-out infinite;
}
@keyframes ncLivePulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.4); opacity: .6; }
}
.nc-live-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0,0,0,.4);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255,79,163,.3);
}
.nc-live-tab {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #ccc;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nc-live-tab:hover { background: rgba(255,255,255,.08); color: #fff; }
.nc-live-tab.active {
  background: linear-gradient(180deg, #ff5fb0, #c4006b);
  color: #fff;
  box-shadow: 0 2px 0 #7a0042, 0 4px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4);
}
.nc-live-table-wrap {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
}
.nc-live-table-wrap::-webkit-scrollbar { width: 8px; }
.nc-live-table-wrap::-webkit-scrollbar-track { background: rgba(0,0,0,.3); }
.nc-live-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,79,163,.5);
  border-radius: 4px;
}
.nc-live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.nc-live-table thead th {
  position: sticky;
  top: 0;
  background: rgba(20,3,45,.98);
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ff8fd0;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,79,163,.3);
  z-index: 2;
}
.nc-live-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,79,163,.1);
  color: #e8e8f0;
  vertical-align: middle;
}
.nc-live-table tbody tr {
  animation: ncLiveRowIn .45s cubic-bezier(.34,1.56,.64,1);
}
.nc-live-table tbody tr.mine {
  background: linear-gradient(90deg, rgba(255,210,0,.08), transparent);
}
.nc-live-table tbody tr.mine td:first-child {
  border-left: 3px solid #ffd200;
}
@keyframes ncLiveRowIn {
  0%   { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.nc-live-game {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.nc-live-game-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,79,163,.3);
  flex-shrink: 0;
}
.nc-live-user {
  font-weight: 700;
  color: #fff;
}
.nc-live-user.mine { color: #ffd200; }
.nc-live-mult {
  font-weight: 900;
  font-size: 14px;
  color: #e8e8f0;
}
.nc-live-mult.green {
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74,222,128,.6);
}
.nc-live-mult.gold {
  color: #ffd200;
  text-shadow: 0 0 10px rgba(255,210,0,.8), 0 0 20px rgba(255,180,0,.5);
}
.nc-live-payout {
  font-weight: 900;
  color: #ffd200;
  text-shadow: 0 0 6px rgba(255,210,0,.4);
}
.nc-live-empty {
  padding: 30px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

/* ============ TRUCO ARGENTINO 1v1 ============ */
.tr-table {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20,90,50,.55) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,.6) 0%, transparent 70%),
    linear-gradient(180deg, #0a3a1e 0%, #062a14 50%, #041a0c 100%);
  border: 3px solid rgba(212,160,23,.6);
  border-radius: 24px;
  padding: 20px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.8),
    0 0 40px rgba(15,122,58,.35),
    inset 0 0 100px rgba(0,0,0,.55);
  position: relative;
  overflow: hidden;
}
.tr-table::before {
  content: "";
  position: absolute; inset: 14px;
  border: 2px dashed rgba(212,160,23,.18);
  border-radius: 18px;
  pointer-events: none;
}

/* Marcador */
.tr-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border: 1px solid rgba(212,160,23,.4);
  border-radius: 14px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.tr-score-side {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  min-width: 150px;
}
.tr-score-side.us { border-color: rgba(74,222,128,.5); }
.tr-score-side.them { border-color: rgba(248,113,113,.5); }
.tr-score-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd200;
  text-transform: uppercase;
}
.tr-score-side.us .tr-score-label { color: #4ade80; }
.tr-score-side.them .tr-score-label { color: #f87171; }
.tr-score-value {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.4);
  min-width: 34px;
  text-align: center;
}
.tr-score-goal {
  font-size: 10px;
  color: #999;
  font-weight: 700;
}
.tr-score-vs {
  font-size: 14px;
  font-weight: 900;
  color: #ffd200;
  text-shadow: 0 0 10px rgba(255,210,0,.7);
}

/* Zona rival */
.tr-opponent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.tr-opponent-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f87171;
  text-shadow: 0 0 8px rgba(248,113,113,.5);
}
.tr-opponent-hand {
  display: flex;
  gap: 8px;
  min-height: 96px;
  align-items: center;
}

/* Centro del tapete */
.tr-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 160px;
  position: relative;
  z-index: 1;
}
.tr-played-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tr-played-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd200;
  opacity: .8;
  text-transform: uppercase;
}
.tr-played-slot {
  width: 62px;
  height: 90px;
  border-radius: 8px;
  border: 2px dashed rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.2);
}
.tr-played-slot.filled {
  border-style: solid;
  border-color: rgba(212,160,23,.5);
  background: transparent;
}

/* Mano del jugador */
.tr-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.tr-player-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74,222,128,.5);
}
.tr-player-hand {
  display: flex;
  gap: 10px;
  min-height: 130px;
  align-items: center;
}

/* Cartas */
.tr-card {
  width: 78px;
  height: 116px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf5, #f0e6c8);
  border: 2px solid #d4a017;
  box-shadow: 0 6px 14px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  position: relative;
  cursor: default;
  transition: transform .15s, box-shadow .15s;
  user-select: none;
}
.tr-card.playable {
  cursor: pointer;
}
.tr-card.playable:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 12px 24px rgba(0,0,0,.7), 0 0 20px rgba(255,210,0,.6);
}
.tr-card.selected {
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 12px 24px rgba(0,0,0,.7), 0 0 24px rgba(74,222,128,.9);
  border-color: #4ade80;
}
.tr-card.back {
  background:
    repeating-linear-gradient(45deg, #7f1d1d, #7f1d1d 6px, #b91c1c 6px, #b91c1c 12px);
  border-color: #d4a017;
  box-shadow: 0 6px 14px rgba(0,0,0,.6), inset 0 0 20px rgba(0,0,0,.4);
}
.tr-card.small {
  width: 62px;
  height: 90px;
  padding: 4px 2px;
}
.tr-card-rank {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: #1a1a1a;
}
.tr-card.small .tr-card-rank { font-size: 14px; }
.tr-card-suit {
  font-size: 26px;
  line-height: 1;
}
.tr-card.small .tr-card-suit { font-size: 20px; }
.tr-card-suit.red { color: #b91c1c; }
.tr-card-suit.black { color: #1a1a1a; }
.tr-card-center {
  font-size: 30px;
  line-height: 1;
}
.tr-card.small .tr-card-center { font-size: 22px; }
.tr-card-center.red { color: #b91c1c; }
.tr-card-center.black { color: #1a1a1a; }

/* Barra superior del tablero de truco */
.tr-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border: 1px solid rgba(212,160,23,.4);
  border-radius: 14px;
  position: relative;
  z-index: 2;
}
.tr-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd200;
  text-shadow: 0 0 10px rgba(255,210,0,.6);
}
.tr-topbar-spacer { width: 160px; }
.tr-exit-btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff8a8a, #e53935 50%, #a00000);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer;
  box-shadow: 0 4px 0 #5a0000, 0 6px 12px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.3);
  transition: transform .15s, filter .15s;
  white-space: nowrap;
}
.tr-exit-btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.15); }
.tr-exit-btn:active { transform: translateY(1px) scale(.98); }

/* Cartas jugables: hover con ascenso y borde dorado */
.tr-card.playable {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tr-card.playable:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: #ffd200;
  box-shadow:
    0 12px 24px rgba(0,0,0,.7),
    0 0 20px rgba(255,210,0,.9),
    0 0 40px rgba(255,180,0,.5),
    inset 0 1px 0 rgba(255,255,255,.8);
}

/* Botonera de acciones: dos filas */
.tr-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.tr-actions-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.tr-actions-row-respond {
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(212,160,23,.3);
}
.tr-btn-mazo {
  background: linear-gradient(180deg, #a0a0a0, #4a4a4a 50%, #1a1a1a);
  color: #fff;
}
.tr-btn-info {
  background: linear-gradient(180deg, #ffd200, #b8860b);
  color: #3a1a00;
}

/* Globo de canto */
.tr-bubble {
  position: absolute;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .5px;
  color: #1a0a00;
  background: linear-gradient(180deg, #ffe066, #ffb300);
  border: 2px solid #fff8b0;
  box-shadow: 0 4px 12px rgba(0,0,0,.6), 0 0 20px rgba(255,210,0,.6);
  z-index: 20;
  animation: trBubbleIn .3s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
  pointer-events: none;
}
.tr-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffb300;
}
.tr-bubble.them {
  background: linear-gradient(180deg, #ff8a8a, #e53935);
  border-color: #ffd0d0;
  color: #fff;
}
.tr-bubble.them::after { border-top-color: #e53935; }
.tr-bubble.top { top: -46px; }
.tr-bubble.top::after {
  bottom: auto;
  top: -8px;
  border-top: none;
  border-bottom: 8px solid #ffb300;
}
.tr-bubble.top.them::after { border-bottom-color: #e53935; }
@keyframes trBubbleIn {
  0%   { transform: scale(.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Panel de cantos */
.tr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border: 1px solid rgba(212,160,23,.4);
  border-radius: 14px;
  position: relative;
  z-index: 1;
  min-height: 60px;
  align-items: center;
}
.tr-btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .5px;
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: transform .15s, filter .15s;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.4), 0 6px 12px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.3);
}
.tr-btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); filter: brightness(1.15); }
.tr-btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.tr-btn:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.5); }
.tr-btn-envido {
  background: linear-gradient(180deg, #4fc3f7, #0288d1 50%, #01579b);
}
.tr-btn-truco {
  background: linear-gradient(180deg, #ff8a8a, #e53935 50%, #a00000);
}
.tr-btn-yes {
  background: linear-gradient(180deg, #7dff5f, #2ecc40 50%, #1a8a2a);
}
.tr-btn-no {
  background: linear-gradient(180deg, #b06bff, #7a2fd6 50%, #4a0f9c);
}
.tr-btn-info {
  background: linear-gradient(180deg, #ffd200, #b8860b);
  color: #3a1a00;
}
.tr-actions-hint {
  font-size: 12px;
  color: #ccc;
  font-weight: 700;
  letter-spacing: .5px;
  text-align: center;
  width: 100%;
}

/* Pantalla final */
.tr-finished {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: ncModalPop .5s cubic-bezier(.34,1.56,.64,1);
}
.tr-finished-icon { font-size: 80px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.tr-finished h2 {
  margin: 0; font-size: 36px; font-weight: 900; letter-spacing: 2px;
}
.tr-finished.win h2 {
  color: #ffd200;
  text-shadow: 0 0 20px rgba(255,210,0,1), 0 0 40px rgba(255,180,0,.8), 0 4px 0 #8a5a00;
  animation: sbBigWinGlow 1s ease-in-out infinite alternate;
}
.tr-finished.lose h2 { color: #f87171; text-shadow: 0 0 15px rgba(248,113,113,.8); }
.tr-finished p { margin: 0; color: #ccc; font-size: 14px; }
.tr-prize {
  font-size: 48px; font-weight: 900; color: #4ade80;
  text-shadow: 0 0 20px rgba(74,222,128,1), 0 0 40px rgba(74,222,128,.6), 0 4px 0 #0f5a1a;
  margin: 8px 0;
}
.tr-rake { font-size: 12px; color: #999; }

/* Truco online: reloj, conexión del rival y estado de la mano */
.tr-clock {
  min-width: 160px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  color: #ffd200;
  font-variant-numeric: tabular-nums;
}
.tr-clock.urgent { color: #ff5a5a; animation: trClockBlink .6s ease-in-out infinite alternate; }
@keyframes trClockBlink { from { opacity: 1; } to { opacity: .45; } }
.tr-offline {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(229,57,53,.18);
  border: 1px solid rgba(229,57,53,.6);
  color: #ffb4b4;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.tr-dot-off { font-size: 11px; color: #ff8a8a; font-weight: 700; }
.tr-status-line {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffe08a;
}
.tr-played-col.win .tr-played-label { color: #4ade80; }
.tr-played-col.lose .tr-played-label { color: #f87171; }
.tr-played-col.parda .tr-played-label { color: #ffd200; }

/* Mesa propia esperando rival (lobby PvP) */
.pvp-waiting-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,160,23,.22), rgba(120,40,160,.22));
  border: 1px solid rgba(212,160,23,.6);
}
.pvp-waiting-banner .pvp-btn { width: auto; flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }
.pvp-waiting-banner b { display: block; color: #ffd200; }
.pvp-waiting-banner small { color: #ccc; }

@media (max-width: 720px) {
  .tr-card { width: 62px; height: 92px; }
  .tr-card-rank { font-size: 14px; }
  .tr-card-suit { font-size: 20px; }
  .tr-card-center { font-size: 24px; }
  .tr-played-slot { width: 50px; height: 74px; }
  .tr-center { gap: 12px; }
  .tr-score-side { min-width: 120px; }
  .tr-topbar-spacer { display: none; }
  .tr-clock { min-width: 0; font-size: 11px; }
  .tr-topbar-title { font-size: 11px; }
  .tr-exit-btn { font-size: 11px; padding: 6px 10px; }
}

/* ============ CHINCHÓN 1v1 ============ */
.ch-table {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(20,90,50,.55) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,.6) 0%, transparent 70%),
    linear-gradient(180deg, #0a3a1e 0%, #062a14 50%, #041a0c 100%);
  border: 3px solid rgba(212,160,23,.6);
  border-radius: 24px;
  padding: 20px;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.8),
    0 0 40px rgba(15,122,58,.35),
    inset 0 0 100px rgba(0,0,0,.55);
  position: relative;
  overflow: hidden;
}
.ch-table::before {
  content: "";
  position: absolute; inset: 14px;
  border: 2px dashed rgba(212,160,23,.18);
  border-radius: 18px;
  pointer-events: none;
}
.ch-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border: 1px solid rgba(212,160,23,.4);
  border-radius: 14px;
  position: relative;
  z-index: 2;
}
.ch-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd200;
  text-shadow: 0 0 10px rgba(255,210,0,.6);
}
.ch-topbar-spacer { width: 160px; }

.ch-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border: 1px solid rgba(212,160,23,.4);
  border-radius: 14px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.ch-score-side {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  min-width: 150px;
}
.ch-score-side.us { border-color: rgba(74,222,128,.5); }
.ch-score-side.them { border-color: rgba(248,113,113,.5); }
.ch-score-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffd200;
  text-transform: uppercase;
}
.ch-score-side.us .ch-score-label { color: #4ade80; }
.ch-score-side.them .ch-score-label { color: #f87171; }
.ch-score-value {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.4);
  min-width: 34px;
  text-align: center;
}
.ch-score-goal { font-size: 10px; color: #999; font-weight: 700; }
.ch-score-vs {
  font-size: 14px;
  font-weight: 900;
  color: #ffd200;
  text-shadow: 0 0 10px rgba(255,210,0,.7);
}

.ch-opponent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.ch-opponent-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f87171;
  text-shadow: 0 0 8px rgba(248,113,113,.5);
}
.ch-opponent-hand {
  display: flex;
  gap: 6px;
  min-height: 96px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.ch-opponent-points {
  font-size: 11px;
  font-weight: 700;
  color: #ffd200;
  background: rgba(0,0,0,.4);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(212,160,23,.4);
}

.ch-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 160px;
  position: relative;
  z-index: 1;
}
.ch-pile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ch-pile-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffd200;
  opacity: .85;
  text-transform: uppercase;
}
.ch-deck, .ch-discard {
  width: 78px;
  height: 116px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.ch-deck.clickable, .ch-discard.clickable {
  cursor: pointer;
}
.ch-deck.clickable:hover, .ch-discard.clickable:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 0 20px rgba(255,210,0,.8), 0 0 40px rgba(255,180,0,.5);
}
.ch-card-back {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, #7f1d1d, #7f1d1d 6px, #b91c1c 6px, #b91c1c 12px);
  border: 2px solid #d4a017;
  box-shadow: 0 6px 14px rgba(0,0,0,.6), inset 0 0 20px rgba(0,0,0,.4);
}
.ch-deck-count {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: linear-gradient(180deg, #ffd200, #b8860b);
  color: #3a1a00;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #fff8b0;
  box-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.ch-empty {
  font-size: 11px;
  color: #999;
  font-weight: 700;
}

.ch-status {
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .5px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(212,160,23,.4);
  color: #ccc;
  position: relative;
  z-index: 1;
}
.ch-status.my-turn {
  color: #4ade80;
  border-color: #4ade80;
  box-shadow: 0 0 15px rgba(74,222,128,.5);
  animation: chessClockPulse 1s ease-in-out infinite alternate;
}
.ch-last-action {
  font-size: 11px;
  color: #ffd200;
  font-weight: 700;
  margin-left: 6px;
}

.ch-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.ch-player-name {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #4ade80;
  text-shadow: 0 0 8px rgba(74,222,128,.5);
}
.ch-player-hand {
  display: flex;
  gap: 8px;
  min-height: 130px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.ch-hand-card {
  transition: transform .15s, box-shadow .15s;
  border-radius: 8px;
}
.ch-hand-card.playable { cursor: pointer; }
.ch-hand-card.playable:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 12px 24px rgba(0,0,0,.7), 0 0 20px rgba(255,210,0,.6);
}
.ch-hand-card.selected {
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 12px 24px rgba(0,0,0,.7), 0 0 24px rgba(255,210,0,.9);
}
.ch-hand-card.selected .tr-card {
  border-color: #ffd200;
  box-shadow:
    0 0 0 2px #ffd200,
    0 0 20px rgba(255,210,0,.9),
    0 0 40px rgba(255,180,0,.5);
}
.ch-hand-card.dragging {
  opacity: .4;
  transform: scale(.95);
  cursor: grabbing;
}
.ch-hand-card.drag-over {
  outline: 2px dashed #ffd200;
  outline-offset: 2px;
  border-radius: 10px;
}
.ch-hand-card[draggable="true"] {
  cursor: grab;
}
.ch-hand-card[draggable="true"]:active {
  cursor: grabbing;
}
.ch-hand-info {
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #ccc;
}
.ch-hand-info b { color: #ffd200; }

.ch-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  border: 1px solid rgba(212,160,23,.4);
  border-radius: 14px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.ch-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: transform .15s, filter .15s;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0,0,0,.4), 0 6px 12px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.3);
}
.ch-btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); filter: brightness(1.15); }
.ch-btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.ch-btn:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.5); }
.ch-btn-cut {
  background: linear-gradient(180deg, #ff8a8a, #e53935 50%, #a00000);
}
.ch-btn-sort {
  background: linear-gradient(180deg, #4fc3f7, #0288d1 50%, #01579b);
}

.ch-finished {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: ncModalPop .5s cubic-bezier(.34,1.56,.64,1);
}
.ch-finished-icon { font-size: 80px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.ch-finished h2 {
  margin: 0; font-size: 36px; font-weight: 900; letter-spacing: 2px;
}
.ch-finished.win h2 {
  color: #ffd200;
  text-shadow: 0 0 20px rgba(255,210,0,1), 0 0 40px rgba(255,180,0,.8), 0 4px 0 #8a5a00;
  animation: sbBigWinGlow 1s ease-in-out infinite alternate;
}
.ch-finished.lose h2 { color: #f87171; text-shadow: 0 0 15px rgba(248,113,113,.8); }
.ch-finished p { margin: 0; color: #ccc; font-size: 14px; }
.ch-prize {
  font-size: 48px; font-weight: 900; color: #4ade80;
  text-shadow: 0 0 20px rgba(74,222,128,1), 0 0 40px rgba(74,222,128,.6), 0 4px 0 #0f5a1a;
  margin: 8px 0;
}
.ch-rake { font-size: 12px; color: #999; }

@media (max-width: 720px) {
  .ch-center { gap: 20px; }
  .ch-deck, .ch-discard { width: 62px; height: 92px; }
  .ch-score-side { min-width: 120px; }
  .ch-topbar-spacer { display: none; }
  .ch-topbar-title { font-size: 11px; }
}

/* ============ CABEZONES FÚTBOL 1v1 (HEAD SOCCER) ============ */
.hs-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #0a0320 0%, #130516 100%);
  border-radius: 20px;
  border: 2px solid rgba(79,195,247,.4);
  box-shadow:
    0 20px 60px rgba(0,0,0,.8),
    0 0 40px rgba(79,195,247,.25),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.hs-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(10,3,32,.95), rgba(2,0,10,.98));
  border: 1px solid rgba(79,195,247,.4);
  border-radius: 14px;
  flex-wrap: wrap;
}
.hs-topbar-title {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #4fc3f7;
  text-shadow: 0 0 10px rgba(79,195,247,.7);
}
.hs-topbar-pot {
  font-size: 12px;
  font-weight: 900;
  color: #ffd200;
  background: rgba(0,0,0,.5);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,210,0,.4);
  text-shadow: 0 0 8px rgba(255,210,0,.6);
  white-space: nowrap;
}
.hs-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  background: #0a0320;
  border: 3px solid rgba(79,195,247,.6);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(0,0,0,.6),
    0 0 30px rgba(79,195,247,.4),
    inset 0 0 60px rgba(0,0,0,.8);
}
.hs-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hs-scoreboard {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(0,0,0,.7);
  border: 2px solid rgba(255,210,0,.6);
  border-radius: 14px;
  box-shadow:
    0 4px 12px rgba(0,0,0,.6),
    0 0 20px rgba(255,210,0,.4);
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hs-score-name {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffd200;
  text-shadow: 0 0 8px rgba(255,210,0,.6);
}
.hs-score-num {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  min-width: 32px;
  text-align: center;
  text-shadow: 0 0 12px rgba(255,255,255,.6);
}
.hs-score-sep {
  font-size: 24px;
  font-weight: 900;
  color: #ffd200;
  opacity: .7;
}
.hs-clock {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 16px;
  background: rgba(0,0,0,.7);
  border: 2px solid rgba(79,195,247,.6);
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 900;
  color: #4fc3f7;
  text-shadow: 0 0 10px rgba(79,195,247,.8);
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hs-goal-flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 96px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffd200;
  text-shadow:
    0 0 20px rgba(255,210,0,1),
    0 0 50px rgba(255,180,0,.9),
    0 6px 0 #8a5a00,
    0 10px 0 #5a3a00,
    0 15px 30px rgba(0,0,0,.9);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity .15s;
}
.hs-goal-flash.show {
  opacity: 1;
  animation: hsGoalPop .6s cubic-bezier(.34,1.56,.64,1);
}
@keyframes hsGoalPop {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(-15deg); }
  60%  { transform: translate(-50%, -50%) scale(1.3) rotate(5deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); }
}
.hs-touch {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px;
}
.hs-touch-left, .hs-touch-right {
  display: flex;
  gap: 10px;
}
.hs-touch-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(79,195,247,.9), rgba(2,136,209,.95));
  border: 3px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 0 #01579b,
    0 6px 12px rgba(0,0,0,.5),
    inset 0 2px 0 rgba(255,255,255,.3);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.hs-touch-btn:active {
  transform: translateY(2px) scale(.95);
  box-shadow:
    0 2px 0 #01579b,
    0 4px 8px rgba(0,0,0,.5),
    inset 0 2px 0 rgba(255,255,255,.3);
}
.hs-touch-jump {
  background: linear-gradient(180deg, #b06bff, #7a2fd6);
  box-shadow:
    0 4px 0 #4a0f9c,
    0 6px 12px rgba(0,0,0,.5),
    inset 0 2px 0 rgba(255,255,255,.3);
}
.hs-touch-kick {
  background: linear-gradient(180deg, #ffe066, #ffb300);
  color: #4a1a00;
  box-shadow:
    0 4px 0 #8a4a00,
    0 6px 12px rgba(0,0,0,.5),
    inset 0 2px 0 rgba(255,255,255,.6);
}
.hs-hint {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  letter-spacing: .5px;
}
@media (pointer: coarse) {
  .hs-touch { display: flex; }
  .hs-hint { display: none; }
}
.hs-finished {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: ncModalPop .5s cubic-bezier(.34,1.56,.64,1);
}
.hs-finished-icon {
  font-size: 80px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.6));
}
.hs-finished h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 2px;
}
.hs-finished.win h2 {
  color: #ffd200;
  text-shadow: 0 0 20px rgba(255,210,0,1), 0 0 40px rgba(255,180,0,.8), 0 4px 0 #8a5a00;
  animation: sbBigWinGlow 1s ease-in-out infinite alternate;
}
.hs-finished.lose h2 {
  color: #f87171;
  text-shadow: 0 0 15px rgba(248,113,113,.8);
}
.hs-finished.draw h2 {
  color: #4fc3f7;
  text-shadow: 0 0 15px rgba(79,195,247,.8);
}
.hs-finished p {
  margin: 0;
  color: #ccc;
  font-size: 14px;
}
.hs-prize {
  font-size: 48px;
  font-weight: 900;
  color: #4ade80;
  text-shadow: 0 0 20px rgba(74,222,128,1), 0 0 40px rgba(74,222,128,.6), 0 4px 0 #0f5a1a;
  margin: 8px 0;
}
.hs-rake {
  font-size: 12px;
  color: #999;
}

/* ============ CHICKEN CROSS ============ */
.cc2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1a0830, #0d011f);
  border: 2px solid rgba(255,210,0,.45);
  box-shadow: 0 12px 30px rgba(0,0,0,.6), 0 0 24px rgba(255,140,0,.15);
}
.cc2-stage {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #353a45;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.4);
}
.cc2-stage canvas { display: block; }
.cc2-banner {
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -10px) scale(.9);
  opacity: 0;
  pointer-events: none;
  padding: 12px 22px;
  border-radius: 16px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(10,2,25,.82);
  border: 2px solid rgba(255,255,255,.25);
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
}
.cc2-banner small { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: #ddd; letter-spacing: 0; }
.cc2-banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.cc2-banner.win { color: #ffd200; border-color: #ffd200; text-shadow: 0 0 14px rgba(255,210,0,.8); }
.cc2-banner.lose { color: #ff6b6b; border-color: #e53935; }

.cc2-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(40,10,70,.95), rgba(15,2,35,.98));
  border: 1px solid rgba(255,79,163,.35);
}
.cc2-group { display: flex; flex-direction: column; gap: 6px; }
.cc2-label { font-size: 10px; font-weight: 900; letter-spacing: 1.5px; color: #ff8fd0; }
.cc2-seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,79,163,.3);
}
.cc2-seg button {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #ccc;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.cc2-seg button.active { background: linear-gradient(180deg, #ffd200, #e67e00); color: #4a1a00; }
.cc2-seg button:disabled { cursor: not-allowed; opacity: .55; }
.cc2-seg button.active:disabled { opacity: .85; }
.cc2-bet { display: flex; align-items: center; gap: 6px; }
.cc2-bet input {
  width: 96px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,210,0,.4);
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}
.cc2-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #ffd200, #e67e00);
  color: #4a1a00;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.cc2-quick { display: flex; gap: 4px; }
.cc2-quick button {
  flex: 1;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #ddd;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.cc2-bar button:disabled, .cc2-bar input:disabled { cursor: not-allowed; }
.cc2-icon:disabled, .cc2-quick button:disabled, .cc2-bet input:disabled { opacity: .5; }
.cc2-info { flex-direction: row; gap: 14px; }
.cc2-info div { display: flex; flex-direction: column; gap: 2px; }
.cc2-info span { font-size: 10px; font-weight: 900; letter-spacing: 1px; color: #ff8fd0; }
.cc2-info b {
  font-size: 18px;
  color: #ffd200;
  font-variant-numeric: tabular-nums;
  /* Ancho fijo ("24 / 24", "999.99x"): si crece con el número, los botones
     saltan de renglón justo cuando el jugador los está tocando */
  display: inline-block;
  min-width: 7.5ch;
  white-space: nowrap;
}
.cc2-buttons { display: flex; gap: 10px; margin-left: auto; }
.cc2-go, .cc2-cash {
  min-width: 128px;
  /* Alto fijo: COBRAR con o sin monto mide lo mismo y el panel no salta */
  height: 58px;
  padding: 0 16px;
  border-radius: 14px;
  border: none;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: transform .1s, filter .15s;
}
.cc2-go {
  color: #fff;
  background: linear-gradient(180deg, #7dff5f, #2ecc40 55%, #0f8a2a);
  box-shadow: 0 5px 0 #0b5e1d, 0 10px 18px rgba(46,204,64,.35);
  text-shadow: 0 2px 2px rgba(0,0,0,.35);
}
.cc2-cash {
  color: #4a1a00;
  background: linear-gradient(180deg, #fff3a0, #ffd200 40%, #e67e00);
  box-shadow: 0 5px 0 #8a4a00, 0 10px 18px rgba(255,180,0,.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.cc2-cash small { font-size: 13px; letter-spacing: 0; }
.cc2-cash:not(:disabled) { animation: ccCashoutPulse 1s ease-in-out infinite alternate; }
@keyframes ccCashoutPulse {
  0%   { box-shadow: 0 5px 0 #8a4a00, 0 0 14px rgba(255,210,0,.5); }
  100% { box-shadow: 0 5px 0 #8a4a00, 0 0 34px rgba(255,210,0,1); }
}
.cc2-go:active:not(:disabled), .cc2-cash:active:not(:disabled) { transform: translateY(3px); }
.cc2-go:disabled, .cc2-cash:disabled { filter: grayscale(.8) brightness(.6); }

@media (max-width: 720px) {
  .cc2 { padding: 8px; }
  .cc2-bar { gap: 10px; padding: 10px; }
  .cc2-group { width: 100%; }
  .cc2-seg button { flex: 1; padding: 8px 4px; font-size: 10px; }
  .cc2-bet { width: 100%; }
  .cc2-bet input { flex: 1; width: auto; min-width: 0; }
  .cc2-icon { flex-shrink: 0; }
  .cc2-info { width: auto; }
  .cc2-buttons { width: 100%; margin-left: 0; }
  .cc2-go, .cc2-cash { flex: 1; min-width: 0; }
  .cc2-banner { font-size: 18px; white-space: normal; width: 86%; }
}

/* ============ MINAS DE LAVA ============ */
.mn {
  --mn-background: none;
  --mn-rock: none;
  --mn-gem: none;
  --mn-mine: none;
  --mn-logo: none;
  display: flex;
  flex-direction: row-reverse;
  /* Si no entran grilla y panel lado a lado, el panel pasa abajo */
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 50% 110%, rgba(255,90,0,.35), transparent 60%),
    linear-gradient(180deg, #1c0a06, #0b0303);
  border: 2px solid rgba(255,120,0,.5);
  box-shadow: 0 12px 30px rgba(0,0,0,.6), 0 0 28px rgba(255,80,0,.18);
}
.mn.mn-has-background {
  background: var(--mn-background) center / cover no-repeat, #0b0303;
}
.mn.shake { animation: mnShake .45s ease-in-out; }
@keyframes mnShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-7px, 3px); }
  40% { transform: translate(6px, -4px); }
  60% { transform: translate(-4px, 2px); }
  80% { transform: translate(3px, -1px); }
}

.mn-board-wrap {
  position: relative;
  flex: 3 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mn-logo {
  text-align: center;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffd200;
  text-shadow: 0 0 12px rgba(255,120,0,.9), 0 3px 0 #8a2a00;
}
.mn-logo span { font-size: 28px; }
.mn-logo small { display: block; font-size: 12px; letter-spacing: 6px; color: #ff9a3c; }
.mn.mn-has-logo .mn-logo {
  width: 220px; height: 64px;
  background: var(--mn-logo) center / contain no-repeat;
}
.mn.mn-has-logo .mn-logo span, .mn.mn-has-logo .mn-logo small { visibility: hidden; }

.mn-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: min(100%, 470px);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 18px;
  background: rgba(10,3,2,.72);
  border: 1px solid rgba(255,110,0,.35);
  box-shadow: inset 0 0 30px rgba(255,60,0,.18);
}
.mn-cell {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 12px;
  cursor: default;
  background:
    radial-gradient(60% 50% at 35% 30%, rgba(255,255,255,.12), transparent 70%),
    linear-gradient(160deg, #4b3a36, #2a1d1a 55%, #170e0c);
  box-shadow: 0 4px 0 #0d0605, inset 0 -3px 6px rgba(255,80,0,.25), inset 0 0 0 1px rgba(255,140,60,.18);
  transition: transform .12s, filter .15s, box-shadow .15s;
  overflow: hidden;
}
/* Grietas de lava sobre la roca */
.mn-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 46%, rgba(255,110,0,.55) 48%, transparent 51%),
    linear-gradient(32deg, transparent 62%, rgba(255,150,0,.35) 64%, transparent 66%);
  opacity: .7;
  pointer-events: none;
}
/* La textura de roca va solo en las casillas tapadas: al destapar se ve el fondo de la gema o la mina */
.mn.mn-has-rock .mn-cell:not(.open) { background: var(--mn-rock) center / cover no-repeat, #2a1d1a; }
.mn.mn-has-rock .mn-cell::before { display: none; }
.mn-board.live .mn-cell:not(.open):not(:disabled) { cursor: pointer; }
.mn-board.live .mn-cell:not(.open):not(:disabled):hover {
  transform: translateY(-3px);
  filter: brightness(1.25);
  box-shadow: 0 7px 0 #0d0605, 0 0 16px rgba(255,120,0,.55), inset 0 0 0 1px rgba(255,170,80,.5);
}
.mn-cell.pressing { animation: mnPress .5s ease-in-out infinite alternate; }
@keyframes mnPress { from { filter: brightness(1); } to { filter: brightness(1.6); } }
/* La regla global button:disabled las dejaba al 50%: las casillas se ven siempre enteras */
.mn-cell:disabled { opacity: 1; cursor: default; }

.mn-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mn-svg { width: 72%; height: 72%; }
.mn-art { display: none; position: absolute; inset: 10%; background: center / contain no-repeat; }
.mn.mn-has-gem .mn-art-gem { display: block; background-image: var(--mn-gem); }
.mn.mn-has-mine .mn-art-mine { display: block; background-image: var(--mn-mine); }
.mn.mn-has-gem .gem .mn-svg, .mn.mn-has-mine .mine .mn-svg { display: none; }

.mn-cell.open { animation: mnOpen .32s ease-out both; }
.mn-cell.open::before { display: none; }
.mn-cell.gem {
  /* Fondo oscuro con halo dorado: la gema naranja resalta por contraste */
  background: radial-gradient(circle at 50% 50%, rgba(255,210,80,.55) 0%, rgba(255,120,0,.25) 38%, #2a0c03 72%, #140502 100%);
  box-shadow: 0 0 22px rgba(255,190,0,.95), 0 0 6px rgba(255,240,160,.9), inset 0 0 0 3px #ffd84a, inset 0 0 18px rgba(255,170,0,.6);
  z-index: 1;
}
.mn-cell.gem .mn-svg { filter: drop-shadow(0 0 6px #fff6c8) drop-shadow(0 0 12px rgba(255,200,0,.9)); }
.mn-cell.gem:not(.dim) { animation: mnOpen .32s ease-out both, mnGemShine 1.4s ease-in-out .32s infinite alternate; }
@keyframes mnGemShine {
  from { box-shadow: 0 0 14px rgba(255,190,0,.7), inset 0 0 0 3px #ffd84a, inset 0 0 14px rgba(255,170,0,.5); }
  to   { box-shadow: 0 0 30px rgba(255,200,0,1), inset 0 0 0 3px #fff0a0, inset 0 0 22px rgba(255,190,0,.8); }
}
/* Las gemas que se muestran al final (no tocadas) quedan apagadas */
.mn-cell.gem.dim { background: radial-gradient(circle at 50% 45%, #5a2208, #240b03 70%); box-shadow: none; z-index: 0; }
.mn-cell.gem.dim .mn-svg { filter: none; }
/* Solo halo alrededor: aclarar la imagen lava los naranjas y deja nada más las vetas */
.mn-cell.gem .mn-art-gem { inset: 11%; filter: drop-shadow(0 0 5px rgba(255,240,170,.95)) drop-shadow(0 0 12px rgba(255,170,0,.9)); }
.mn-cell.gem.dim .mn-art-gem { filter: none; }
.mn-cell.mine {
  background: radial-gradient(circle at 50% 55%, #b82a08, #4a0a03 60%, #1a0402);
  box-shadow: inset 0 0 0 2px rgba(255,80,30,.8);
}
.mn-cell.mine.hit {
  background: radial-gradient(circle at 50% 50%, #fff0a0, #ff7a00 35%, #c21800 70%, #4a0602);
  box-shadow: 0 0 32px rgba(255,80,0,1), inset 0 0 0 3px #ffd200;
  z-index: 1;
  animation: mnOpen .32s ease-out both, mnHit .6s ease-in-out .32s 3 alternate;
}
@keyframes mnHit { from { filter: brightness(1); } to { filter: brightness(1.5); } }
.mn-cell.mine:not(.hit) .mn-burst { opacity: .45; }
.mn-cell.mine .mn-svg { width: 84%; height: 84%; }
.mn-cell.dim { opacity: .38; filter: grayscale(.55); box-shadow: none; }
.mn-cell.dim.mine { opacity: .7; filter: none; }
@keyframes mnOpen {
  0% { transform: scale(.6) rotate(-8deg); }
  70% { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}

.mn-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -40%) scale(.9);
  opacity: 0;
  pointer-events: none;
  padding: 14px 24px;
  border-radius: 16px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(15,3,1,.88);
  border: 2px solid rgba(255,255,255,.25);
  transition: opacity .25s, transform .25s;
  white-space: nowrap;
  z-index: 2;
}
.mn-banner small { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; color: #ddd; letter-spacing: 0; }
.mn-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.mn-banner.win { color: #ffd200; border-color: #ffd200; text-shadow: 0 0 14px rgba(255,210,0,.8); }
.mn-banner.lose { color: #ff6b4a; border-color: #ff3d00; text-shadow: 0 0 14px rgba(255,60,0,.8); }

.mn-panel {
  flex: 1 0 250px;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(50,14,6,.95), rgba(18,4,2,.98));
  border: 1px solid rgba(255,110,0,.35);
}
.mn-group { display: flex; flex-direction: column; gap: 6px; }
.mn-label { font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: #ff9a3c; }
.mn-row { display: flex; align-items: center; gap: 6px; }
.mn-row input {
  flex: 1;
  min-width: 0;
  /* Sin esto el campo pide ~20 letras de ancho y empuja el panel abajo de la grilla */
  width: 0;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,170,0,.45);
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.mn-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, #ffd200, #ff6a00);
  color: #4a1200;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.mn-quick { display: flex; gap: 4px; }
.mn-quick button {
  flex: 1;
  padding: 5px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #ddd;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.mn-quick button.active { background: linear-gradient(180deg, #ffd200, #ff6a00); color: #4a1200; border-color: transparent; }
.mn-panel button:disabled, .mn-panel input:disabled { cursor: not-allowed; }
.mn-icon:disabled, .mn-quick button:disabled, .mn-row input:disabled { opacity: .5; }
.mn-quick button.active:disabled { opacity: .85; }

.mn-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(0,0,0,.4);
}
.mn-info div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.mn-info span { font-size: 10px; font-weight: 900; letter-spacing: 1px; color: #ff9a3c; }
.mn-info b { font-size: 16px; color: #ffd200; font-variant-numeric: tabular-nums; white-space: nowrap; }

.mn-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mn-go, .mn-cash, .mn-random {
  height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  border: none;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: transform .1s, filter .15s;
}
.mn-random {
  height: 42px;
  font-size: 13px;
  color: #ffd9b0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,140,60,.4);
}
.mn-go {
  color: #fff;
  background: linear-gradient(180deg, #ffb347, #ff6a00 55%, #c22a00);
  box-shadow: 0 5px 0 #7a1a00, 0 10px 18px rgba(255,90,0,.35);
  text-shadow: 0 2px 2px rgba(0,0,0,.35);
}
.mn-cash {
  color: #4a1200;
  background: linear-gradient(180deg, #fff3a0, #ffd200 40%, #ff9a00);
  box-shadow: 0 5px 0 #8a4a00, 0 10px 18px rgba(255,180,0,.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.mn-cash small { font-size: 13px; letter-spacing: 0; }
.mn-cash:not(:disabled) { animation: ccCashoutPulse 1s ease-in-out infinite alternate; }
.mn-go:active:not(:disabled), .mn-cash:active:not(:disabled), .mn-random:active:not(:disabled) { transform: translateY(3px); }
.mn-go:disabled, .mn-cash:disabled, .mn-random:disabled { filter: grayscale(.8) brightness(.6); }

@media (max-width: 720px) {
  .mn { flex-direction: column; padding: 8px; gap: 10px; }
  .mn-panel { width: auto; padding: 10px; gap: 10px; }
  .mn-logo span { font-size: 22px; }
  .mn-board { gap: 6px; padding: 8px; }
  .mn-buttons { flex-direction: row; flex-wrap: wrap; }
  .mn-go, .mn-cash { flex: 1; min-width: 0; }
  .mn-random { width: 100%; order: 3; height: 36px; }
  /* Botones e info pegados a la grilla: se juega sin bajar */
  .mn-info { order: -2; padding: 6px; }
  .mn-buttons { order: -1; margin-top: 0; gap: 8px; }
  .mn-go, .mn-cash { height: 50px; }
  .mn-logo { display: none; }
  .mn-banner { font-size: 20px; white-space: normal; width: 86%; }
}

/* ============ TOAST ============ */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: #ffd200; color: #130516;
  padding: 10px 20px; border-radius: 8px;
  font-weight: 700; z-index: 1000;
  animation: toastIn .3s ease, toastOut .3s ease 2.2s forwards;
  box-shadow: 0 4px 20px rgba(255,210,0,.5);
}
@keyframes toastIn {
  0%   { transform: translate(-50%, -60px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}
@keyframes toastOut {
  0%   { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, -60px); opacity: 0; }
}

/* ============ PVP: SALAS JUGADOR VS JUGADOR ============ */
.pvp-lobby { display: flex; flex-direction: column; gap: 20px; }
.pvp-header { text-align: center; padding: 10px 0; }
.pvp-title {
  font-size: 28px; font-weight: 900; margin: 0 0 6px;
  color: #ffd200;
  text-shadow: 0 0 15px rgba(255,210,0,.8), 0 0 30px rgba(255,180,0,.5);
}
.pvp-sub { font-size: 13px; color: #c9c9d6; margin: 0; }

.pvp-filters {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  background: rgba(0,0,0,.3); padding: 8px; border-radius: 14px;
  border: 1px solid rgba(255,79,163,.3);
}
.pvp-filter {
  padding: 8px 16px; border-radius: 10px; border: none;
  background: transparent; color: #ccc; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .15s, color .15s;
}
.pvp-filter:hover { background: rgba(255,255,255,.08); color: #fff; }
.pvp-filter.active {
  background: linear-gradient(180deg, #ff5fb0, #c4006b);
  color: #fff;
  box-shadow: 0 2px 0 #7a0042, 0 4px 8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4);
}

.pvp-create {
  background: linear-gradient(180deg, rgba(30,8,50,.9), rgba(15,2,35,.95));
  border: 2px solid rgba(255,79,163,.5);
  border-radius: 18px; padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 20px rgba(255,45,143,.2);
}
.pvp-create h3 {
  margin: 0 0 14px; font-size: 16px; color: #ffd200;
  text-shadow: 0 0 10px rgba(255,210,0,.6);
}
.pvp-create-row {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
}
.pvp-create-row label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px; font-weight: 800; color: #ff8fd0;
  letter-spacing: .5px; text-transform: uppercase;
}
.pvp-create-row select,
.pvp-create-row input[type="password"] {
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,79,163,.4);
  background: rgba(0,0,0,.5); color: #fff;
  font-size: 14px; font-weight: 700; min-width: 140px;
}
.pvp-create-row select:focus,
.pvp-create-row input:focus {
  outline: none; border-color: #ff2d8f;
  box-shadow: 0 0 0 3px rgba(255,45,143,.25);
}
.pvp-check {
  flex-direction: row !important; align-items: center !important;
  gap: 8px !important; text-transform: none !important;
  font-size: 13px !important; color: #e8e8f0 !important;
  cursor: pointer; user-select: none;
}
.pvp-check input { accent-color: #ff2d8f; width: 16px; height: 16px; cursor: pointer; }
.pvp-create-btn {
  padding: 12px 24px; border-radius: 12px;
  background: linear-gradient(180deg, #ffe066, #ffb300 50%, #e67e00 100%);
  color: #4a1a00; font-size: 14px; font-weight: 900; letter-spacing: 1px;
  border: 2px solid #fff8b0; cursor: pointer;
  box-shadow: 0 4px 0 #8a4a00, 0 8px 16px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.6);
  transition: transform .15s, filter .15s;
}
.pvp-create-btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.1); }
.pvp-create-btn:active { transform: translateY(2px) scale(.98); }

.pvp-section-title {
  font-size: 18px; font-weight: 900; color: #fff;
  margin: 8px 0 0; text-shadow: 0 0 10px rgba(255,45,143,.5);
}
.pvp-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.pvp-empty {
  grid-column: 1 / -1; text-align: center; padding: 40px;
  color: #888; font-size: 14px;
  background: rgba(0,0,0,.3); border-radius: 14px;
  border: 1px dashed rgba(255,79,163,.3);
}
.pvp-room-card {
  background: linear-gradient(180deg, #1c0a20, #0d011f);
  border: 2px solid rgba(255,79,163,.4);
  border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pvp-room-card:hover {
  transform: translateY(-4px);
  border-color: #ff2d8f;
  box-shadow: 0 16px 32px rgba(0,0,0,.7), 0 0 24px rgba(255,45,143,.4);
}
.pvp-room-head { display: flex; align-items: center; gap: 10px; }
.pvp-room-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(180deg, #ff5fb0, #c4006b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff; font-size: 16px;
  box-shadow: 0 2px 8px rgba(255,45,143,.5);
}
.pvp-room-host { flex: 1; display: flex; flex-direction: column; }
.pvp-room-host b { color: #fff; font-size: 14px; }
.pvp-room-host small { color: #999; font-size: 11px; }
.pvp-room-game {
  padding: 4px 10px; border-radius: 8px;
  background: rgba(255,210,0,.15);
  border: 1px solid rgba(255,210,0,.4);
  color: #ffd200; font-size: 11px; font-weight: 900;
  white-space: nowrap;
}
.pvp-room-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 10px; background: rgba(0,0,0,.4); border-radius: 10px;
}
.pvp-room-stats > div { display: flex; flex-direction: column; gap: 2px; }
.pvp-room-stats span { font-size: 9px; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.pvp-room-stats b { font-size: 13px; color: #fff; }
.pvp-room-stats .pvp-prize { color: #4ade80; text-shadow: 0 0 8px rgba(74,222,128,.5); }
.pvp-room-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pvp-btn {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 900; letter-spacing: .5px;
  border: none; cursor: pointer;
  transition: transform .15s, filter .15s;
  min-width: 120px;
}
.pvp-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.pvp-btn:active { transform: translateY(1px); }
.pvp-btn-join {
  background: linear-gradient(180deg, #7dff5f, #2ecc40 50%, #1a8a2a 100%);
  color: #fff;
  box-shadow: 0 4px 0 #0f5a1a, 0 6px 12px rgba(46,204,64,.4), inset 0 2px 0 rgba(255,255,255,.4);
}
.pvp-btn-bot {
  background: linear-gradient(180deg, #b06bff, #7a2fd6);
  color: #fff;
  box-shadow: 0 4px 0 #4a0f9c, 0 6px 12px rgba(122,47,214,.4), inset 0 2px 0 rgba(255,255,255,.3);
}
.pvp-btn-cancel {
  background: linear-gradient(180deg, #ff8a8a, #e53935 50%, #a00000 100%);
  color: #fff;
  box-shadow: 0 4px 0 #5a0000, 0 6px 12px rgba(229,57,53,.4), inset 0 2px 0 rgba(255,255,255,.3);
}

/* Vista de partida PvP */
.pvp-game {
  background: #0d011f;
  border: 2px solid rgba(255,79,163,.5);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.8), 0 0 40px rgba(255,45,143,.3);
}
.pvp-game-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px;
  background: linear-gradient(180deg, #1c0a20, #0d011f);
  border-bottom: 1px solid rgba(255,79,163,.3);
  flex-wrap: wrap;
}
.pvp-game-title { font-size: 15px; font-weight: 900; color: #ffd200; text-shadow: 0 0 10px rgba(255,210,0,.6); }
.pvp-game-pot { font-size: 12px; font-weight: 700; color: #4ade80; }
.pvp-game-body { padding: 20px; }

.pvp-waiting {
  text-align: center; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.pvp-waiting-icon { font-size: 64px; animation: ncCoinFloat 2s ease-in-out infinite; }
.pvp-waiting h3 { margin: 0; color: #ffd200; font-size: 22px; text-shadow: 0 0 12px rgba(255,210,0,.6); }
.pvp-waiting p { margin: 0; color: #ccc; font-size: 13px; max-width: 400px; }
.pvp-waiting-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* Tablero de ajedrez */
.chess-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.chess-players {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  width: 100%; max-width: 560px;
}
.chess-player {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(0,0,0,.4);
  border: 2px solid rgba(255,79,163,.3);
  transition: border-color .2s, box-shadow .2s;
  flex: 1; min-width: 180px;
}
.chess-player.active {
  border-color: #ffd200;
  box-shadow: 0 0 20px rgba(255,210,0,.5);
}
.chess-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(180deg, #ff5fb0, #c4006b);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff; font-size: 14px;
}
.chess-pname { flex: 1; font-size: 13px; font-weight: 700; color: #fff; }
.chess-pname small { color: #999; font-weight: 400; }
.chess-clock {
  font-family: 'Courier New', monospace;
  font-size: 18px; font-weight: 900; color: #ffd200;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,210,0,.4);
  min-width: 70px; text-align: center;
}
.chess-clock.running {
  color: #4ade80;
  border-color: #4ade80;
  box-shadow: 0 0 12px rgba(74,222,128,.6);
  animation: chessClockPulse 1s ease-in-out infinite alternate;
}
@keyframes chessClockPulse {
  0%   { box-shadow: 0 0 8px rgba(74,222,128,.4); }
  100% { box-shadow: 0 0 20px rgba(74,222,128,.8); }
}
.chess-vs { font-size: 14px; font-weight: 900; color: #ff2d8f; text-shadow: 0 0 10px rgba(255,45,143,.8); }

.chess-status {
  font-size: 14px; font-weight: 900; letter-spacing: 1px;
  padding: 8px 20px; border-radius: 10px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,79,163,.3);
  color: #ccc;
}
.chess-status.my-turn {
  color: #4ade80;
  border-color: #4ade80;
  box-shadow: 0 0 15px rgba(74,222,128,.5);
  animation: chessClockPulse 1s ease-in-out infinite alternate;
}

.chess-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: min(90vw, 560px);
  height: min(90vw, 560px);
  border: 4px solid #d4a017;
  border-radius: 8px;
  box-shadow:
    0 0 0 2px rgba(0,0,0,.6),
    0 0 30px rgba(212,160,23,.5),
    0 20px 40px rgba(0,0,0,.7);
  overflow: hidden;
}
.chess-cell {
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  transition: background .15s;
  user-select: none;
}
.chess-cell.light { background: #f0d9b5; }
.chess-cell.dark { background: #b58863; }
.chess-cell:hover { filter: brightness(1.1); }
.chess-cell.selected {
  background: #ffd200 !important;
  box-shadow:
    inset 0 0 0 3px #4ade80,
    inset 0 0 20px rgba(74,222,128,.8),
    0 0 15px rgba(74,222,128,.9);
  z-index: 2;
}
.chess-cell.legal-move::after {
  content: "";
  position: absolute;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,222,128,.95), rgba(74,222,128,.35) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(74,222,128,.9);
  pointer-events: none;
}
.chess-cell.legal-capture::after {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 3px solid rgba(74,222,128,.95);
  box-shadow: 0 0 12px rgba(74,222,128,.9), inset 0 0 12px rgba(74,222,128,.6);
  pointer-events: none;
}
.chess-cell.last-move {
  box-shadow: inset 0 0 0 3px rgba(255,210,0,.7);
}
.chess-cell.check {
  background: radial-gradient(circle, #ff3b3b 0%, #7a0000 100%) !important;
  animation: chessCheckPulse .8s ease-in-out infinite alternate;
}
@keyframes chessCheckPulse {
  0%   { box-shadow: inset 0 0 10px rgba(255,59,59,.6); }
  100% { box-shadow: inset 0 0 25px rgba(255,59,59,1), 0 0 20px rgba(255,59,59,.8); }
}
.chess-board.locked {
  pointer-events: none;
  filter: brightness(.85) saturate(.8);
}
.chess-board.locked .chess-cell { cursor: not-allowed; }
.chess-promo-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.chess-promo-box {
  background: linear-gradient(180deg, #1c0a20, #0d011f);
  border: 2px solid rgba(255,79,163,.6);
  border-radius: 20px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.9), 0 0 40px rgba(255,45,143,.4);
}
.chess-promo-box h3 {
  margin: 0 0 16px; color: #ffd200; font-size: 18px;
  text-shadow: 0 0 12px rgba(255,210,0,.7);
}
.chess-promo-row { display: flex; gap: 10px; justify-content: center; }
.chess-promo-btn {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f0d9b5, #b58863);
  border: 2px solid #ffd200;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  color: #1a1a1a;
  transition: transform .15s, filter .15s;
  box-shadow: 0 4px 0 #5a3a00, 0 6px 12px rgba(0,0,0,.5);
}
.chess-promo-btn:hover { transform: scale(1.1); filter: brightness(1.15); }
.chess-piece {
  font-size: min(9vw, 56px);
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.4));
}
.chess-piece.white { color: #fff; text-shadow: 0 0 2px #000, 0 1px 2px rgba(0,0,0,.6); }
.chess-piece.black { color: #1a1a1a; text-shadow: 0 0 2px rgba(255,255,255,.3); }

.chess-actions { display: flex; gap: 10px; justify-content: center; }

/* Pantalla de fin de partida */
.chess-finished {
  text-align: center; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: ncModalPop .5s cubic-bezier(.34,1.56,.64,1);
}
.chess-finished-icon { font-size: 80px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)); }
.chess-finished h2 {
  margin: 0; font-size: 36px; font-weight: 900; letter-spacing: 2px;
}
.chess-finished.win h2 {
  color: #ffd200;
  text-shadow: 0 0 20px rgba(255,210,0,1), 0 0 40px rgba(255,180,0,.8), 0 4px 0 #8a5a00;
  animation: sbBigWinGlow 1s ease-in-out infinite alternate;
}
.chess-finished.lose h2 { color: #f87171; text-shadow: 0 0 15px rgba(248,113,113,.8); }
.chess-finished.draw h2 { color: #4fc3f7; text-shadow: 0 0 15px rgba(79,195,247,.8); }
.chess-finished p { margin: 0; color: #ccc; font-size: 14px; }
.chess-prize {
  font-size: 48px; font-weight: 900; color: #4ade80;
  text-shadow: 0 0 20px rgba(74,222,128,1), 0 0 40px rgba(74,222,128,.6), 0 4px 0 #0f5a1a;
  margin: 8px 0;
}
.chess-rake { font-size: 12px; color: #999; }

@media (max-width: 720px) {
  .chess-players { flex-direction: column; }
  .chess-player { width: 100%; }
  .chess-vs { display: none; }
  .pvp-create-row { flex-direction: column; align-items: stretch; }
  .pvp-create-row select,
  .pvp-create-row input[type="password"] { width: 100%; }
}

/* Va al final para ganarle a las reglas base del lobby */
/* Celular: barra compacta y menú lateral convertido en fila deslizable */
@media (max-width: 720px) {
  .nc-navbar { gap: 8px; padding: 8px 10px; }
  .nc-logo img { height: 36px; }
  .nc-search { min-width: 0; }
  .nc-search input { font-size: 12px; }
  .nc-wallet { padding: 6px 8px; gap: 6px; flex-shrink: 0; }
  .nc-wallet b { font-size: 12px; white-space: nowrap; }
  .nc-profile-btn { padding: 4px; }
  .nc-username, .nc-caret { display: none; }

  .nc-layout { flex-direction: column; min-height: 0; }
  .nc-sidebar {
    width: auto;
    flex-direction: row;
    gap: 6px;
    padding: 8px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    border-right: none;
    border-bottom: 1px solid rgba(255,79,163,.2);
    position: sticky;
    top: 52px;
    z-index: 90;
  }
  .nc-sidebar::-webkit-scrollbar { display: none; }
  .nc-side-item {
    flex-shrink: 0;
    gap: 6px;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
  }
  .nc-side-item span { font-size: 15px; }
  .nc-side-item.active {
    border-left: none;
    background: linear-gradient(90deg, rgba(255,45,143,.55), rgba(255,45,143,.25));
  }
  .nc-main { padding: 12px; min-width: 0; }

  .nc-hero-content h2 { font-size: 26px; }
  .nc-section-title { scroll-margin-top: 120px; }

  /* Feed de apuestas: pestañas a lo ancho y tabla compacta */
  .nc-live-bets-header { padding: 12px; }
  .nc-live-tabs { width: 100%; }
  .nc-live-tab { flex: 1; min-width: 0; padding: 7px 4px; font-size: 11px; white-space: normal; line-height: 1.2; }

  /* Juegos de a dos por fila */
  .nc-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nc-game-thumb { height: 150px; }
  .nc-game-info { padding: 8px; gap: 4px; }
  .nc-game-info b { font-size: 12px; }
  .nc-game-label { font-size: 9px; padding: 1px 6px; }
  .nc-soon-badge { top: 6px; right: 6px; font-size: 9px; padding: 2px 6px; }
  .nc-live-table { font-size: 11px; table-layout: fixed; }
  .nc-live-table thead th, .nc-live-table td { padding: 8px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}


/* ============ TRUCO (mesa nueva) ============ */
.t2-game { border: 0; background: transparent; box-shadow: none; overflow: visible; }
.t2-table {
  --cw: clamp(52px, min(13.5cqh, 15cqw), 112px);
  container-type: size;
  position: relative;
  height: clamp(520px, calc(100dvh - 150px), 900px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 3px solid #b8862b;
  box-shadow: 0 0 0 5px #4a2e10, 0 20px 50px rgba(0,0,0,.7), inset 0 0 120px rgba(0,0,0,.55);
  background: radial-gradient(ellipse at 50% 45%, #1f7a45 0%, #0f5530 45%, #08341c 100%);
  overflow: hidden;
  color: #fff;
}
.t2-table.t2-has-bg { background: url('assets/truco/mesa.jpg') center / cover no-repeat; }
.t2-table::before {
  content: ""; position: absolute; inset: 10px; border-radius: 16px;
  border: 2px dashed rgba(255,215,120,.16); pointer-events: none;
}

.t2-topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
}
.t2-title { flex: 1; text-align: center; font-weight: 900; font-size: 14px; color: #ffe08a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2-exit, .t2-voice {
  border-radius: 10px; padding: 7px 12px; cursor: pointer;
  font-weight: 800; font-size: 12px; color: #fff; background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.2);
}
.t2-exit:hover, .t2-voice:hover { background: rgba(0,0,0,.65); }
.t2-voice { padding: 6px 9px; font-size: 15px; }
.t2-clock { display: flex; align-items: center; gap: 6px; min-width: 104px; justify-content: flex-end; font-size: 12px; font-weight: 800; color: #cfe; }
.t2-clock b { background: rgba(0,0,0,.45); padding: 3px 8px; border-radius: 8px; font-size: 14px; color: #ffe08a; }
.t2-clock.urgent b { color: #ff6b6b; animation: trClockBlink .6s ease-in-out infinite alternate; }

.t2-offline {
  position: relative; z-index: 2; margin: 4px auto 0; padding: 6px 14px; border-radius: 10px;
  background: rgba(120,20,20,.8); font-size: 12px; font-weight: 700;
}

.t2-board {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr minmax(120px, 150px);
  gap: 10px;
  padding: 6px 14px 4px;
}

/* Marcador con fósforos */
.t2-score {
  align-self: center;
  display: flex; gap: 8px; justify-content: center;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,215,120,.25);
  border-radius: 14px; padding: 10px 8px;
}
.t2-score-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.t2-score-head { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.t2-score-col.us .t2-score-head { color: #7ef0a4; }
.t2-score-col.them .t2-score-head { color: #ff9b9b; }
.t2-score-num { font-size: 26px; font-weight: 900; line-height: 1; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.t2-score-boxes { display: flex; flex-direction: column; gap: 4px; }
.t2-score-box { display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,.25); border-radius: 8px; padding: 2px 4px; }
.t2-score-box small { font-size: 9px; font-weight: 800; color: #ffe08a; text-transform: uppercase; }
.t2-fosforos { width: 34px; height: auto; display: block; }
.t2-stick line { stroke: #f1d9a6; stroke-width: 3.2; stroke-linecap: round; }
.t2-stick circle { fill: #d93a2b; }

/* Información de la mano */
.t2-info { align-self: center; display: flex; flex-direction: column; gap: 6px; }
.t2-info div {
  display: flex; flex-direction: column; padding: 7px 10px; border-radius: 10px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,215,120,.2);
}
.t2-info small { font-size: 10px; font-weight: 800; color: #ffe08a; text-transform: uppercase; letter-spacing: .05em; }
.t2-info b { font-size: 13px; }

/* Tapete: rival, centro y jugador */
.t2-felt { min-height: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 4px; }
.t2-seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.t2-name { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.4); }
.t2-seat.active .t2-name { box-shadow: 0 0 0 2px #ffd45e, 0 0 14px rgba(255,212,94,.7); }
.t2-mano { margin-left: 4px; font-size: 9px; padding: 1px 5px; border-radius: 5px; background: #ffd45e; color: #4a2e00; vertical-align: 1px; }
.t2-opp-hand, .t2-my-hand { display: flex; justify-content: center; }
.t2-opp-hand { min-height: calc(var(--cw) * .68 * 1.5); }
.t2-opp-hand .t2-card { --w: calc(var(--cw) * .68); margin: 0 -6px; transform: rotate(calc((var(--i) - 1) * 6deg)); }
.t2-my-hand { gap: 10px; min-height: calc(var(--cw) * 1.5); }

.t2-center { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; align-items: center; gap: clamp(10px, 3cqw, 34px); }
.t2-baza { position: relative; display: flex; flex-direction: column; align-items: center; }
.t2-slot { width: calc(var(--cw) * .82); height: calc(var(--cw) * .82 * 1.5); border-radius: 8px; border: 2px dashed rgba(255,255,255,.12); }
.t2-slot.filled { border: 0; }
.t2-slot.them { margin-bottom: calc(var(--cw) * -.45); }
.t2-slot.me { position: relative; z-index: 1; }
.t2-slot .t2-card { --w: calc(var(--cw) * .82); }
.t2-slot.me .t2-card { rotate: -3deg; }
.t2-slot.them .t2-card { rotate: 4deg; }
.t2-baza.win .t2-slot.me .t2-card, .t2-baza.lose .t2-slot.them .t2-card { box-shadow: 0 0 0 3px #ffd45e, 0 8px 18px rgba(0,0,0,.55); }
.t2-baza-tag { margin-top: 4px; font-size: 10px; font-weight: 900; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.4); color: #cfd; }
.t2-baza.win .t2-baza-tag { background: #1f9d55; color: #fff; }
.t2-baza.lose .t2-baza-tag { background: #b3261e; color: #fff; }
.t2-baza.parda .t2-baza-tag { background: #ffd45e; color: #4a2e00; }

/* Cartas */
.t2-card {
  --w: var(--cw);
  position: relative; flex-shrink: 0;
  width: var(--w); height: calc(var(--w) * 1.5);
  border-radius: calc(var(--w) * .1);
  box-shadow: 0 6px 14px rgba(0,0,0,.5);
  user-select: none;
}
.t2-face { background: linear-gradient(160deg, #fffdf6, #f1e6c9); border: 2px solid #d9b25c; }
.t2-face::after { content: ""; position: absolute; inset: 4%; border: 1px solid rgba(0,0,0,.12); border-radius: calc(var(--w) * .07); pointer-events: none; }
.t2-corner { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.t2-corner b { font-size: calc(var(--w) * .2); font-weight: 900; }
.t2-corner svg, .t2-corner img { width: calc(var(--w) * .16); height: calc(var(--w) * .16); object-fit: contain; }
.t2-corner.tl { top: 5%; left: 7%; }
.t2-corner.br { bottom: 5%; right: 7%; transform: rotate(180deg); }
.t2-pip { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.t2-pip svg, .t2-pip img { width: 52%; height: 52%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.t2-fig { position: absolute; bottom: 16%; left: 0; right: 0; text-align: center; font-size: calc(var(--w) * .13); font-weight: 800; color: #6a4a10; }
.t2-oros .t2-corner b { color: #a86c00; }
.t2-copas .t2-corner b { color: #b3261e; }
.t2-espadas .t2-corner b { color: #1d5a9a; }
.t2-bastos .t2-corner b { color: #2e7d32; }
.t2-back {
  border: 2px solid #d9b25c;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,215,120,.35) 0 18%, transparent 19%),
    repeating-linear-gradient(45deg, #8e1b1b 0 6px, #b52a2a 6px 12px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.t2-back img { width: 100%; height: 100%; object-fit: cover; }
.t2-back-logo { font-weight: 900; font-size: calc(var(--w) * .22); color: #ffe08a; text-shadow: 0 2px 0 #4a0d0d; }

.t2-playable { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.t2-playable:hover { transform: translateY(-12px); box-shadow: 0 14px 26px rgba(0,0,0,.6), 0 0 0 3px #ffd45e; }
.t2-sent { opacity: .35; transform: translateY(-14px); pointer-events: none; }

/* Reparto */
.t2-deal .t2-my-hand .t2-card { animation: t2DealMe .45s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i) * 120ms); }
.t2-deal .t2-opp-hand .t2-card { animation: t2DealThem .45s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i) * 120ms + 60ms); }
@keyframes t2DealMe { from { opacity: 0; translate: 0 -30cqh; scale: .6; } }
@keyframes t2DealThem { from { opacity: 0; translate: 0 25cqh; scale: .6; } }

/* Globos de canto */
.t2-bubble {
  position: absolute; z-index: 5; left: 50%;
  padding: 8px 16px; border-radius: 16px; white-space: nowrap;
  font-weight: 900; font-size: clamp(14px, 2.4cqw, 20px);
  background: #fff; color: #222; box-shadow: 0 8px 18px rgba(0,0,0,.45);
  opacity: 0; transform: translateX(-50%) scale(.6); pointer-events: none;
  transition: opacity .15s, transform .2s cubic-bezier(.3,1.6,.5,1);
}
.t2-seat.them .t2-bubble { top: calc(100% - 4px); }
.t2-seat.me .t2-bubble { bottom: calc(100% - 4px); }
.t2-bubble.show { opacity: 1; transform: translateX(-50%) scale(1); }
.t2-bubble-call { background: #ffd45e; color: #5a2a00; }
.t2-bubble-yes { background: #2ecc71; color: #fff; }
.t2-bubble-no { background: #e74c3c; color: #fff; }
.t2-bubble-info { background: #fff; color: #1a3a6a; }

/* Resumen de la mano */
.t2-summary {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  min-width: min(320px, 90%); padding: 14px 18px; border-radius: 16px; text-align: center;
  background: rgba(8,20,12,.92); border: 2px solid #ffd45e; box-shadow: 0 16px 40px rgba(0,0,0,.6);
  animation: t2Pop .3s cubic-bezier(.3,1.5,.5,1) .5s both;
}
.t2-summary.lose { border-color: #ff8a8a; }
.t2-summary-title { font-size: 18px; font-weight: 900; color: #ffd45e; margin-bottom: 6px; }
.t2-summary.lose .t2-summary-title { color: #ffb0b0; }
.t2-summary-line { font-size: 13px; padding: 3px 0; color: #e8f5ec; }
.t2-summary-line b { color: #7ef0a4; }
.t2-summary-foot { margin-top: 6px; font-size: 11px; color: #9bb; }
@keyframes t2Pop { from { opacity: 0; scale: .7; } }

/* Botonera */
.t2-actions {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,.15));
}
.t2-hint { font-size: 13px; font-weight: 800; color: #e8f5ec; }
.t2-hint.alert { color: #ffd45e; animation: trClockBlink .7s ease-in-out infinite alternate; }
.t2-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 40px; }
.t2-btn {
  border: 0; border-radius: 12px; padding: 10px 18px; cursor: pointer;
  font-weight: 900; font-size: 14px; color: #fff; letter-spacing: .02em;
  box-shadow: 0 4px 0 rgba(0,0,0,.35); transition: transform .1s, filter .1s;
}
.t2-btn:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.t2-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.t2-btn:disabled { opacity: .5; cursor: default; }
.t2-btn-envido { background: linear-gradient(180deg, #3b8ee8, #1f5fb0); }
.t2-btn-truco { background: linear-gradient(180deg, #ef4444, #b91c1c); }
.t2-btn-yes { background: linear-gradient(180deg, #34d27a, #1a9d52); }
.t2-btn-no { background: linear-gradient(180deg, #f97373, #c62828); }
.t2-btn-mazo { background: linear-gradient(180deg, #5b5b66, #34343c); }

/* Pantalla final */
.t2-final { align-items: center; justify-content: center; }
.t2-finished { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px; }
.t2-finished-icon { font-size: 64px; }
.t2-finished h2 { margin: 0; font-size: 34px; }
.t2-finished.win h2 { color: #ffd45e; text-shadow: 0 0 18px rgba(255,212,94,.7); }
.t2-finished.lose h2 { color: #ff9b9b; }
.t2-finished p { margin: 0; color: #dde; }
.t2-final-score { display: flex; gap: 12px; background: rgba(0,0,0,.35); border-radius: 14px; padding: 10px 14px; }
.t2-prize { font-size: 28px; font-weight: 900; color: #7ef0a4 !important; }
.t2-rake { font-size: 12px; color: #aab !important; }
.t2-final-btns { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
.t2-rematch-msg { font-weight: 800; color: #ffd45e !important; }
.t2-rematch-msg.off { color: #ffb0b0 !important; }

@media (max-width: 720px) {
  .t2-table { --cw: clamp(48px, min(12.5cqh, 21cqw), 90px); height: calc(100dvh - 165px); min-height: 480px; border-radius: 14px; }
  .t2-board { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 4px 8px; gap: 4px; }
  .t2-info { display: none; }
  .t2-opp-hand .t2-card { --w: calc(var(--cw) * .55); }
  .t2-opp-hand { min-height: calc(var(--cw) * .55 * 1.5); }
  .t2-score { flex-direction: row; padding: 4px 8px; gap: 14px; }
  .t2-score-col { flex-direction: row; gap: 6px; }
  .t2-score-boxes { flex-direction: row; }
  .t2-fosforos { width: 16px; }
  .t2-score-num { font-size: 18px; }
  .t2-score-box small { display: none; }
  .t2-title { font-size: 11px; }
  .t2-clock { min-width: 0; }
  .t2-btn { padding: 9px 12px; font-size: 12px; }
  .t2-actions { padding: 6px 8px 10px; }
}

/* ---------- Chinchón y Ajedrez online ---------- */
.chx-table { position: relative; }
.ch-table.chx-table { min-height: 0; padding: 14px 16px; gap: 10px; }
.chx-table > .t2-topbar { position: relative; z-index: 2; }
.chx-bar { width: 110px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 4px; }
.chx-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4ade80, #facc15 60%, #f87171); }
.chx-active { box-shadow: 0 0 0 2px rgba(255,210,0,.55), 0 0 18px rgba(255,210,0,.25); border-radius: 14px; }
.ch-hand-card.chx-meld .tr-card { box-shadow: 0 0 0 3px var(--meld, #4ade80), 0 6px 14px rgba(0,0,0,.5); }
.chx-meld-0 { --meld: #4ade80; } .chx-meld-1 { --meld: #60a5fa; } .chx-meld-2 { --meld: #f472b6; } .chx-meld-3 { --meld: #facc15; }
.ch-hand-card.chx-blocked { opacity: .55; }
.ch-hand-card.chx-blocked::after { content: "🔒"; position: absolute; top: -6px; right: -4px; font-size: 14px; }
.ch-hand-card { position: relative; }
.ch-hand-card.chx-sent { transform: translateY(-40px) scale(.9); opacity: .4; transition: all .25s; }
.chx-result { background: rgba(0,0,0,.45); border: 1px solid rgba(212,160,23,.5); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; animation: chxPop .35s ease-out; }
.chx-result h3 { margin: 0; text-align: center; color: #ffd200; font-size: 18px; letter-spacing: 1px; }
.chx-res-side { display: flex; flex-direction: column; gap: 4px; }
.chx-res-name { font-weight: 800; color: #fff; font-size: 13px; }
.chx-res-name b.bad { color: #f87171; } .chx-res-name b.good { color: #4ade80; }
.chx-res-groups { display: flex; flex-wrap: wrap; gap: 10px; }
.chx-res-meld { display: flex; gap: 2px; padding: 4px; border-radius: 10px; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.4); }
.chx-res-meld.attached { background: rgba(96,165,250,.14); border-color: rgba(96,165,250,.5); }
.chx-res-meld.dead { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.45); }
.chx-res-meld .tr-card.small { width: 44px; height: 66px; }
.chx-res-foot { margin: 0; text-align: center; font-size: 12px; color: #bbb; }
.chx-final { font-size: 18px; color: #fff; } .chx-final b { color: #ffd200; font-size: 22px; }
@keyframes chxPop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

.chx-table:not(.ch-table) {
  background: radial-gradient(ellipse at 50% 30%, #2a1a3a 0%, #120a1c 70%);
  border: 3px solid rgba(212,160,23,.55); border-radius: 24px; padding: 14px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.8), inset 0 0 80px rgba(0,0,0,.5);
}
.chx-layout { display: flex; gap: 18px; justify-content: center; align-items: flex-start; margin-top: 10px; }
.chx-main { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.chx-main .chess-board { width: min(90vw, calc(100dvh - 360px), 560px); height: min(90vw, calc(100dvh - 360px), 560px); }
.chx-main .chess-player { width: 100%; box-sizing: border-box; }
.chx-capt { font-size: 15px; letter-spacing: -2px; color: #ddd; min-height: 16px; }
.chess-clock.urgent { color: #ff6b6b !important; }
.chx-side { width: 240px; display: flex; flex-direction: column; gap: 10px; }
.chx-history { background: rgba(0,0,0,.4); border-radius: 12px; padding: 10px; height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; font: 600 13px/1.4 ui-monospace, monospace; color: #eee; }
.chx-history i { color: #888; font-style: normal; display: inline-block; width: 30px; }
.chx-history em { color: #888; font-family: inherit; }
.chx-side .chess-actions { display: flex; flex-direction: column; gap: 8px; }
.chess-cell .chess-piece { position: relative; z-index: 1; }
.chx-coord { position: absolute; font-size: 10px; font-weight: 800; opacity: .65; pointer-events: none; }
.chx-coord.r { top: 2px; left: 3px; } .chx-coord.f { bottom: 1px; right: 3px; }
.chess-cell.light .chx-coord { color: #b58863; } .chess-cell.dark .chx-coord { color: #f0d9b5; }
@media (max-width: 860px) {
  .chx-layout { flex-direction: column; align-items: center; }
  .chx-side { width: min(92vw, 560px); }
  .chx-history { height: 90px; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
  .chx-main .chess-board { width: min(92vw, 560px); height: min(92vw, 560px); }
  .chx-side .chess-actions { flex-direction: row; flex-wrap: wrap; }
  .chx-bar { width: 70px; }
}

/* ---------- Cabezones online ---------- */
.hsx-wrap > .t2-topbar { margin-bottom: 8px; }
.hs-score-name.hsx-me { color: #4fc3f7; text-shadow: 0 0 8px rgba(79,195,247,.8); }
.hs-clock.hsx-golden { color: #ffb020; text-shadow: 0 0 10px rgba(255,176,32,.9); }
.hs-goal-flash.hsx-them { color: #ff7ab8; }
.hsx-wrap canvas { touch-action: none; }
/* La cancha se achica con el alto de la pantalla (sin estirarse), así la
   ayuda de controles de abajo no queda tapada por el aviso amarillo */
.hsx-wrap .hs-stage { max-width: max(320px, calc((100vh - 290px) * 16 / 9)); margin: 0 auto; }
.hsx-wrap .hs-hint { margin-top: 10px; font-size: 12px; color: #c9c9d6; }

/* Chinchón con las cartas del Truco */
.chx-cards { --cw: clamp(46px, 6.4vw, 68px); }
.chx-cards.chx-has-bg { background: var(--mesa) center/cover; }
.chx-cards .ch-opponent-hand { gap: 0; }
.chx-cards .ch-opponent-hand .t2-card { --w: calc(var(--cw) * .7); margin: 0 -4px; }
.chx-cards .ch-deck, .chx-cards .ch-discard { width: auto; height: auto; background: none; border: 0; box-shadow: none; }
.chx-cards .ch-deck .t2-card, .chx-cards .ch-discard .t2-card { --w: calc(var(--cw) * 1.05); }
.chx-cards .ch-hand-card.selected .t2-card { box-shadow: 0 0 0 3px #ffd200, 0 0 20px rgba(255,210,0,.9); transform: translateY(-10px); }
.chx-cards .ch-hand-card.chx-meld .t2-card { box-shadow: 0 0 0 3px var(--meld, #4ade80), 0 6px 14px rgba(0,0,0,.5); }
.chx-cards .ch-hand-card.selected.chx-meld .t2-card { box-shadow: 0 0 0 3px #ffd200, 0 0 20px rgba(255,210,0,.9); }
.chx-res-meld .t2-card { --w: calc(var(--cw) * .66); }
@media (max-width: 640px) { .chx-cards { --cw: clamp(38px, 11.5vw, 54px); } .chx-cards .ch-player-hand { gap: 2px; } }
/* Notebooks (alto de 900 px o menos): se compacta la mesa para que la mano
   y los botones (Cortar, Ordenar) se vean sin bajar */
@media (min-width: 721px) and (max-height: 900px) {
  .chx-cards { --cw: clamp(46px, min(6.4vw, 8vh), 68px); }
  .ch-table.chx-table.chx-cards { gap: 6px; padding: 10px 14px; }
  .chx-cards .ch-opponent-hand { min-height: 0; }
  .chx-cards .ch-opponent-hand .t2-card { --w: calc(var(--cw) * .55); }
  .chx-cards .ch-player-hand { min-height: 0; }
  .chx-cards .ch-scoreboard { padding: 4px 12px; }
  .chx-cards .ch-status { padding: 6px 16px; }
  .chx-cards .ch-actions { padding: 8px; }
}

/* Ajedrez con imágenes */
.chx-piece-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.chx-piece-img img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.45)); pointer-events: none; }
.chess-board.chx-has-board { background: var(--tablero) center/100% 100%; }
.chess-board.chx-has-board .chess-cell.light, .chess-board.chx-has-board .chess-cell.dark { background: transparent; }
.chess-board.chx-has-board .chess-cell.last-move { background: rgba(255,210,0,.35) !important; }
.chx-capt img { width: 16px; height: 16px; object-fit: contain; margin-right: -4px; vertical-align: middle; }

/* ---------- Panel de administración y Mi cuenta ---------- */
.nc-search-off { visibility: hidden; }
.nc-dropdown-role { color: #ffd200; font-weight: 800; cursor: default; }
.nc-dropdown-role:hover { background: transparent; }

.adm-page { max-width: 1100px; margin: 0 auto; }
.adm-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-title { margin: 0 0 6px; font-size: 26px; font-weight: 900; color: #ffd200; text-shadow: 0 0 12px rgba(255,210,0,.5); }
.adm-head-row .adm-title { margin: 0; }
.adm-sub { margin: 0 0 18px; color: #c9c9d6; font-size: 14px; }
.adm-subtitle { margin: 26px 0 12px; font-size: 15px; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.adm-empty { color: #a9a9bb; font-size: 14px; padding: 18px 4px; }
.adm-muted { color: #777; }
.adm-gold { color: #ffd200; }
.adm-plus { color: #4ade80; }
.adm-minus { color: #f87171; }
.adm-nowrap { white-space: nowrap; }

.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.adm-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(120,40,160,.3), rgba(20,8,30,.85));
  border: 1px solid rgba(255,45,143,.35);
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
  min-width: 0;
}
.adm-stat span { font-size: 12px; color: #c9c9d6; text-transform: uppercase; letter-spacing: .05em; }
.adm-stat b { font-size: 24px; font-weight: 900; color: #fff; overflow-wrap: anywhere; }
.adm-stat b.adm-gold { color: #ffd200; }
.adm-stat b.adm-plus { color: #4ade80; }
.adm-stat b.adm-minus { color: #f87171; }
.adm-stat small { font-size: 11px; color: #9a9ab0; }
.adm-quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.adm-box {
  margin-top: 22px; padding: 18px; border-radius: 14px;
  background: rgba(28,10,32,.85); border: 1px solid rgba(255,79,163,.25);
}
.adm-box h3 { margin: 0 0 14px; color: #fff; font-size: 16px; }
.adm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }

.adm-page label, .adm-modal label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #c9c9d6; font-weight: 700; }
.adm-page input, .adm-page select, .adm-modal input, .adm-modal select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,79,163,.35); background: #0d011f; color: #fff; font-size: 14px;
}
.adm-page input:focus, .adm-modal input:focus, .adm-modal select:focus { outline: none; border-color: #ff4fa3; box-shadow: 0 0 0 3px rgba(255,79,163,.2); }
/* Editor de "Cómo conseguir fichas" */
.promo-edit { display: grid; gap: 14px; }
.promo-edit small { font-weight: 400; color: #999; }
.adm-page textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; resize: vertical;
  border: 1px solid rgba(255,79,163,.35); background: #0d011f; color: #fff;
  font: inherit; font-size: 14px; font-weight: 400; line-height: 1.4;
}
.adm-page textarea:focus { outline: none; border-color: #ff4fa3; box-shadow: 0 0 0 3px rgba(255,79,163,.2); }
.promo-edit-sections { display: grid; gap: 16px; }
.promo-edit-section {
  display: grid; gap: 12px; padding: 14px;
  border-radius: 14px; border: 1px solid rgba(255,79,163,.35); background: rgba(255,79,163,.05);
}
.promo-edit-section > [data-act="step-add"] { justify-self: start; }
.promo-edit-section > [data-act="step-add"]:disabled, #promoAddSec:disabled { opacity: .4; cursor: default; }
.promo-edit-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.promo-edit-section-head b { color: #ff8fd0; font-size: 15px; }
#promoAddSec { justify-self: start; }
.nc-info-section + .nc-info-section { margin-top: 30px; }
/* Pasos de "Cómo conseguir fichas": número centrado y los Enter del texto se respetan */
.nc-info-section .nc-info-num { margin: 0 auto; }
.nc-info-section .nc-info-card h3 { text-align: center; }
.nc-info-section .nc-info-card p,
.nc-info-section .nc-info-sub { white-space: pre-line; }
.promo-edit-steps { display: grid; gap: 12px; }
.promo-edit-step {
  display: grid; gap: 10px; margin: 0; padding: 12px 14px 14px;
  border-radius: 12px; border: 1px solid rgba(255,210,0,.25); background: rgba(0,0,0,.2);
}
.promo-edit-step legend { padding: 0 6px; color: #ffd200; font-weight: 800; font-size: 13px; }
.promo-edit-step-btns { display: flex; gap: 8px; justify-content: flex-end; }
.promo-edit-step-btns .adm-btn:disabled, #promoAdd:disabled { opacity: .4; cursor: default; }
#promoAdd { justify-self: start; }
.promo-edit-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.promo-edit-when { font-size: 12px; color: #999; }
.promo-preview { padding: 16px; border-radius: 12px; background: rgba(0,0,0,.25); }

.adm-inline { display: flex; gap: 8px; }
.adm-inline input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; letter-spacing: .05em; }

.adm-btn {
  padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: filter .15s, transform .1s;
}
.adm-btn:active { transform: translateY(1px); }
.adm-btn-primary { background: linear-gradient(180deg, #ff5fb0, #c4006b); color: #fff; box-shadow: 0 4px 14px rgba(255,45,143,.35); }
.adm-btn-green { background: linear-gradient(180deg, #4ade80, #16a34a); color: #062a12; }
.adm-btn-danger { background: linear-gradient(180deg, #f87171, #b91c1c); color: #fff; }
.adm-btn-ghost { background: rgba(255,255,255,.06); color: #f0f0f8; border-color: rgba(255,255,255,.14); }
.adm-btn-danger-ghost { background: rgba(248,113,113,.1); color: #fca5a5; border-color: rgba(248,113,113,.35); }
.adm-btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }

.adm-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.adm-search { max-width: 280px; }
.adm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-chips button {
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.06); color: #ddd; border: 1px solid rgba(255,255,255,.12);
}
.adm-chips button.active { background: rgba(255,45,143,.35); color: #fff; border-color: #ff4fa3; }

.adm-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(255,79,163,.2); background: rgba(13,1,31,.6); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { position: sticky; top: 0; background: #1c0a20; color: #ffd200; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; text-align: left; white-space: nowrap; }
.adm-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: rgba(255,79,163,.06); }
.adm-table .num { text-align: right; }
.adm-users tr.adm-off td { opacity: .55; }
.adm-users tr.adm-off td.adm-actions { opacity: 1; }
.adm-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-tag { display: block; margin-top: 2px; font-size: 10px; color: #fbbf24; font-weight: 600; }
.adm-role { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.adm-role-admin { background: rgba(168,85,247,.25); color: #e9d5ff; }
.adm-role-cajero { background: rgba(59,130,246,.25); color: #bfdbfe; }
.adm-role-jugador { background: rgba(34,197,94,.2); color: #bbf7d0; }
.adm-ok { color: #4ade80; font-weight: 700; }
.adm-bad { color: #f87171; font-weight: 700; }
.adm-kind { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.08); }
.adm-kind-issue, .adm-kind-transfer, .adm-kind-credit { background: rgba(34,197,94,.18); color: #86efac; }
.adm-kind-debit { background: rgba(251,191,36,.18); color: #fde68a; }
.adm-kind-bet { background: rgba(248,113,113,.15); color: #fca5a5; }
.adm-kind-win { background: rgba(255,210,0,.18); color: #ffe066; }
.adm-foot { margin: 10px 2px 0; font-size: 12px; color: #9a9ab0; }
.adm-more { display: flex; justify-content: center; padding: 12px; }

.adm-modal-overlay { padding: 16px; }
.adm-modal {
  width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow: auto;
  background: linear-gradient(180deg, #1c0a20, #0d011f);
  border: 1px solid rgba(255,79,163,.55); border-radius: 18px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.9), 0 0 30px rgba(255,45,143,.3);
  animation: ncModalPop .3s cubic-bezier(.34,1.56,.64,1);
}
.adm-modal.wide { max-width: 900px; }
.adm-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-modal-head h3 { margin: 0; font-size: 18px; color: #ffd200; }
.adm-modal-x { background: transparent; color: #aaa; font-size: 18px; padding: 4px 8px; }
.adm-modal-body { display: flex; flex-direction: column; gap: 12px; }
.adm-modal-info { margin: 0; font-size: 13px; color: #c9c9d6; line-height: 1.5; }
.adm-modal-info b { color: #fff; }
.adm-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.adm-modal .error:empty { display: none; }

@media (max-width: 720px) {
  .adm-title { font-size: 21px; }
  .adm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .adm-stat { padding: 12px; }
  .adm-stat b { font-size: 18px; }
  .adm-search { max-width: none; }
  .adm-actions { flex-wrap: nowrap; }
  .adm-modal { padding: 16px; }
}

/* ---------- Lobby: duelos PvP y menú lateral fijo ---------- */
.nc-section-gap { margin-top: 34px; }
.nc-pvp-thumb { flex-direction: column; }
.nc-pvp-emoji {
  font-size: 92px; line-height: 1; margin-bottom: 36px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.6));
  transition: transform .3s ease;
}
.nc-pvp-card:hover .nc-pvp-emoji { transform: scale(1.12) rotate(-6deg); }
.nc-pvp-truco     { background: radial-gradient(circle at 50% 35%, #2f9e5a 0%, #0f4d2a 55%, #062014 100%); }
.nc-pvp-chinchon  { background: radial-gradient(circle at 50% 35%, #c2410c 0%, #6b1d05 55%, #2a0a02 100%); }
.nc-pvp-chess     { background: radial-gradient(circle at 50% 35%, #64748b 0%, #283445 55%, #0b1018 100%); }
.nc-pvp-cabezones { background: radial-gradient(circle at 50% 35%, #2563eb 0%, #123a8a 55%, #06132e 100%); }

@media (min-width: 721px) {
  .nc-sidebar {
    position: sticky;
    top: 70px;
    align-self: flex-start;
    height: calc(100vh - 70px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
@media (max-width: 720px) {
  .nc-pvp-emoji { font-size: 60px; margin-bottom: 28px; }
}

/* Juego abierto: menos margen arriba para que entre más juego en la pantalla */
@media (min-width: 721px) {
  .nc-main:has(> .nc-game-window) { padding-top: 14px; padding-bottom: 14px; }
  .nc-game-body { padding: 14px; }
  .nc-game-topbar { padding: 8px 14px; }
}

/* Barra superior del juego en celular: todo en una línea */
.nc-game-back { white-space: nowrap; }
.nc-game-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; flex: 1; padding: 0 10px; }
@media (max-width: 720px) {
  .nc-hide-sm { display: none; }
  .nc-game-topbar { padding: 8px 10px; gap: 6px; }
  .nc-game-back { padding: 7px 10px; font-size: 12px; }
  .nc-game-title { font-size: 14px; padding: 0 4px; }
  .nc-game-action { width: 32px; height: 32px; font-size: 14px; }
}

/* Celular: el buscador se abre sobre la barra al tocarlo */
@media (max-width: 720px) {
  .nc-search input::placeholder { color: transparent; }
  .nc-search:focus-within {
    position: absolute;
    left: 10px; right: 10px; top: 50%;
    transform: translateY(-50%);
    max-width: none;
    z-index: 5;
  }
  .nc-search:focus-within input { background: #1c0a20; font-size: 15px; }
  .nc-search:focus-within input::placeholder { color: #999; }
}
.nc-search-empty { color: #c9c9d6; font-size: 15px; padding: 24px 4px; text-align: center; }

/* Usuarios en celular: una tarjeta por persona, con los botones a la vista */
.adm-sm-only { display: none; }
@media (max-width: 720px) {
  .adm-users thead { display: none; }
  .adm-users, .adm-users tbody { display: block; }
  .adm-users tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name bal" "meta meta" "act act";
    gap: 8px 10px;
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .adm-users td { display: block; padding: 0; border: none; }
  .adm-users .adm-c-name { grid-area: name; font-size: 15px; }
  .adm-users .adm-c-bal { grid-area: bal; font-size: 15px; }
  .adm-users .adm-c-role, .adm-users .adm-c-parent, .adm-users .adm-c-state {
    grid-area: meta; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #c9c9d6;
  }
  .adm-users .adm-c-role { justify-self: start; }
  .adm-users .adm-c-parent { justify-self: center; }
  .adm-users .adm-c-state { justify-self: end; }
  .adm-users .adm-c-act { grid-area: act; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .adm-users .adm-c-act .adm-btn { width: 100%; padding: 8px 4px; }
  .adm-sm-only { display: inline; color: #8a8aa0; }
  .adm-users tbody tr:hover { background: transparent; }
}

/* ============ FESTEJO DE PREMIOS ============ */
.coin-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1000; }

/* Caja de ganancia que salta al cobrar */
.win-pop { animation: winPop .6s cubic-bezier(.2, 1.6, .4, 1); display: inline-block; }
@keyframes winPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); color: #fff; text-shadow: 0 0 18px #ffe14d, 0 0 4px #fff; }
  100% { transform: scale(1); }
}

/* Brillo de la máquina en premios medianos */
.win-glow .sb2-frame { animation: winGlow .4s ease-in-out 4 alternate; }
@keyframes winGlow {
  from { filter: brightness(1); }
  to { filter: brightness(1.25) saturate(1.2); box-shadow: 0 0 0 4px #ffe14d, 0 0 50px 12px rgba(255, 210, 60, .8); }
}

/* Cartel grande */
.win-big {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  animation: winIn .45s cubic-bezier(.2, 1.5, .4, 1);
}
@keyframes winIn { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.win-rays {
  position: absolute; left: 50%; top: 50%;
  width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 225, 90, .28) 0deg 9deg, transparent 9deg 22.5deg);
  mask-image: radial-gradient(circle, #000 15%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 62%);
  animation: winRays 9s linear infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes winRays { to { transform: rotate(360deg); } }
.win-title {
  margin: 0;
  font-size: clamp(34px, 7vw, 68px);
  font-weight: 900;
  line-height: 1;
  color: #ffe14d;
  -webkit-text-stroke: 2px #a04a00;
  text-shadow: 0 6px 0 #a04a00, 0 0 40px rgba(255, 225, 77, .9);
  animation: sbBigTitle .5s ease-in-out infinite alternate;
}
.win-title-pop { animation: winTitlePop .5s cubic-bezier(.2, 1.8, .4, 1), sbBigTitle .5s ease-in-out .5s infinite alternate; }
@keyframes winTitlePop { from { transform: scale(2.2) rotate(-6deg); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.win-num {
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 5px 0 #7a3a00, 0 0 24px rgba(255, 200, 60, .9);
}
.win-x {
  font-size: 22px; font-weight: 900; color: #1a1000;
  background: linear-gradient(180deg, #fff3a8, #ffc21a);
  padding: 4px 16px; border-radius: 999px; border: 3px solid #fff;
  opacity: 0; transform: scale(.4);
  transition: opacity .3s, transform .4s cubic-bezier(.2, 1.8, .4, 1);
}
.win-x.show { opacity: 1; transform: scale(1); }
.win-big small { opacity: .8; font-weight: 700; }
/* Cada nivel cambia el color del título y acelera los rayos */
.win-big[data-level="1"] .win-title { color: #7df9ff; -webkit-text-stroke-color: #0a4a8a; text-shadow: 0 6px 0 #0a4a8a, 0 0 40px rgba(125, 249, 255, .9); }
.win-big[data-level="2"] .win-title { color: #ff8af0; -webkit-text-stroke-color: #7a0e6c; text-shadow: 0 6px 0 #7a0e6c, 0 0 46px rgba(255, 138, 240, .95); }
.win-big[data-level="3"] .win-title { color: #fff; -webkit-text-stroke-color: #c0392b; text-shadow: 0 6px 0 #c0392b, 0 0 50px #ffe14d, 0 0 90px #ff5a3d; }
.win-big[data-level="1"] .win-rays { animation-duration: 6s; }
.win-big[data-level="2"] .win-rays { animation-duration: 4s; }
.win-big[data-level="3"] .win-rays { animation-duration: 2.5s; }
.win-done .win-num { animation: winPop .7s cubic-bezier(.2, 1.6, .4, 1); }

/* Latido del número mientras cuenta (y del cartel de abajo en premios medianos) */
.win-beat { animation: winBeat .3s ease-out; }
@keyframes winBeat {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); filter: brightness(1.4); }
  100% { transform: scale(1); }
}
.win-num.win-beat { display: inline-block; }
/* Destello de pantalla al subir de nivel */
.win-flash::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 245, 200, .9), rgba(255, 200, 60, 0) 70%);
  animation: winFlash .6s ease-out forwards;
}
@keyframes winFlash { from { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .win-rays, .win-title, .win-title-pop, .win-beat, .win-flash::before { animation: none; }
}
.sb2-overlay:has(.win-big) { overflow: hidden; background: radial-gradient(circle, rgba(80, 30, 0, .55), rgba(20, 0, 30, .85)); }
/* El comodín de una línea ganadora muestra qué símbolo reemplaza */
.ls-cell.ls-wild-as::after {
  content: attr(data-as);
  position: absolute; left: 50%; top: 4%;
  transform: translateX(-50%);
  padding: 1px 8px; border-radius: 999px;
  background: #fff; color: #5a2a00; border: 2px solid #ffb300;
  font-size: clamp(10px, 1.4vw, 14px); font-weight: 900; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  z-index: 4;
}

/* =====================================================================
   LOBBY NUEVO: barra, menú lateral, banner, categorías, grilla y PvP
   (va al final para ganarle a las reglas viejas del lobby)
   ===================================================================== */
:root {
  --lv-bg: #110a26;
  --lv-panel: #1a1036;
  --lv-line: rgba(170, 120, 255, .22);
  --lv-purple: #8b3dff;
  --lv-purple-2: #b67aff;
  --lv-yellow: #ffc928;
  --lv-text: #eeebf8;
  --lv-mute: #b3acd0;
}
body { background: var(--lv-bg); }

/* Barra de arriba */
.nc-navbar {
  background: var(--lv-bg);
  border-bottom: 1px solid var(--lv-line);
  box-shadow: none;
  padding: 12px 24px;
  gap: 18px;
}
.nc-search { max-width: 640px; }
.nc-search-icon { left: 16px; font-size: 15px; }
.nc-search input {
  border-radius: 999px;
  padding: 11px 16px 11px 42px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--lv-line);
  font-size: 14px;
}
.nc-search input:focus { border-color: var(--lv-purple-2); box-shadow: 0 0 0 3px rgba(139,61,255,.25); }
.nc-wallet {
  margin-left: auto;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,201,40,.45);
  box-shadow: none;
}
.nc-wallet b { color: var(--lv-yellow); text-shadow: none; font-size: 15px; }
.nc-profile-btn { background: transparent; border: none; font-size: 14px; padding: 4px 6px; }
.nc-profile-btn:hover { background: rgba(255,255,255,.06); }
.nc-avatar { width: 34px; height: 34px; font-size: 15px; background: linear-gradient(180deg, #b67aff, #7a2fd6); }
.nc-dropdown { background: var(--lv-panel); border-color: var(--lv-line); }
.nc-dropdown-item:hover { background: rgba(139,61,255,.2); }

/* Menú lateral */
.nc-sidebar {
  width: 236px;
  background: var(--lv-bg);
  border-right: 1px solid var(--lv-line);
  padding: 18px 14px;
  gap: 6px;
}
.nc-side-item {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--lv-text);
  font-size: 15px;
  font-weight: 600;
  text-shadow: none;
}
.nc-side-item span { font-size: 20px; width: 24px; text-align: center; filter: none; }
.nc-side-item:hover { background: rgba(139,61,255,.14); }
.nc-side-item.active {
  background: linear-gradient(90deg, rgba(139,61,255,.6), rgba(139,61,255,.28));
  border: 1px solid var(--lv-purple-2);
  border-left: 1px solid var(--lv-purple-2);
  box-shadow: 0 0 18px rgba(139,61,255,.45), inset 0 0 14px rgba(182,122,255,.25);
  font-weight: 800;
}
.nc-side-promo {
  margin-top: auto;
  padding: 22px 14px;
  border-radius: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--lv-line);
  background:
    radial-gradient(circle at 85% 115%, rgba(255,120,60,.6), transparent 45%),
    linear-gradient(160deg, #3d1676, #1c0b3d);
}
.nc-side-promo-icon { font-size: 36px; line-height: 1; margin-bottom: 4px; }
.nc-side-promo b { font-size: 19px; line-height: 1.15; color: #fff; }
.nc-side-promo small { font-size: 14px; color: var(--lv-mute); }

/* Banner con novedades */
.nc-hero {
  display: grid;
  min-height: 270px;
  margin-bottom: 22px;
  border-radius: 22px;
  border: 1px solid rgba(182,122,255,.5);
  background: linear-gradient(120deg, #3e1288 0%, #1d0b48 55%, #2c0f63 100%);
  box-shadow: 0 0 32px rgba(139,61,255,.25);
}
.nc-hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 270px;
  padding: 36px 48px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.nc-hero-slide.active { opacity: 1; visibility: visible; }
.nc-hero-has-bg {
  background:
    linear-gradient(90deg, rgba(29,8,64,.9) 0%, rgba(29,8,64,.45) 45%, rgba(29,8,64,0) 70%),
    var(--hero-bg) right center / cover no-repeat;
}
.nc-hero-content { max-width: 52%; position: relative; z-index: 2; }
.nc-hero-content h2 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.5px;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.45));
}
.nc-hero-kicker { color: var(--lv-yellow); font-style: italic; margin-right: .15em; }
.nc-hero-content p {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #f1ecff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  letter-spacing: 0;
}
.nc-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd84a, #ffb800);
  color: #2a1400;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 6px 22px rgba(255,190,0,.35);
  animation: none;
}
.nc-hero-btn span { font-size: 24px; line-height: 1; margin-top: -2px; }
.nc-hero-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.nc-hero-collage {
  position: absolute;
  right: 4%;
  top: 50%;
  width: 42%;
  height: 88%;
  transform: translateY(-50%);
  pointer-events: none;
}
.nc-hero-collage img {
  position: absolute;
  width: 40%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,.3);
  box-shadow: 0 14px 30px rgba(0,0,0,.55);
}
.nc-hero-collage img:nth-child(1) { left: 0; top: 22%; transform: rotate(-8deg); }
.nc-hero-collage img:nth-child(2) { left: 27%; top: 4%; width: 46%; z-index: 2; box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 30px rgba(182,122,255,.5); }
.nc-hero-collage img:nth-child(3) { right: 0; top: 22%; transform: rotate(8deg); }
.nc-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.nc-hero-dots button {
  width: 11px; height: 11px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}
.nc-hero-dots button.active { background: var(--lv-yellow); box-shadow: 0 0 10px rgba(255,201,40,.8); }

/* Categorías */
.nc-cats-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; scroll-margin-top: 90px; }
.nc-cats {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
}
.nc-cats::-webkit-scrollbar { display: none; }
.nc-cat {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--lv-line);
  background: rgba(255,255,255,.04);
  color: var(--lv-text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.nc-cat span { font-size: 18px; line-height: 1; }
.nc-cat:hover { background: rgba(139,61,255,.16); }
.nc-cat.active {
  background: linear-gradient(180deg, #9b4dff, #6d22d9);
  border-color: #cfa6ff;
  color: #fff;
  box-shadow: 0 0 18px rgba(139,61,255,.55);
}
.nc-cats-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.nc-cats-arrow {
  width: 44px; height: 44px;
  padding: 0 0 3px;
  border-radius: 50%;
  border: 1px solid var(--lv-line);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nc-cats-arrow:hover { background: rgba(139,61,255,.25); }

/* Grilla de juegos */
.nc-games-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.nc-game-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--lv-panel);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.nc-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--lv-purple-2);
  box-shadow: 0 14px 30px rgba(0,0,0,.5), 0 0 24px rgba(139,61,255,.5);
}
.nc-game-thumb { height: auto; aspect-ratio: 6 / 5; background: var(--lv-panel); }
.nc-game-img { border-radius: 0; }
.nc-game-fade { height: 58%; background: linear-gradient(to top, rgba(12,5,28,.94) 0%, rgba(12,5,28,.6) 45%, transparent 100%); }
.nc-game-info { padding: 12px 10px; gap: 6px; }
.nc-game-info b { font-size: 17px; font-weight: 900; line-height: 1.15; }
.nc-game-label {
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(60,25,110,.8);
  border: 1px solid rgba(190,140,255,.55);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.nc-game-label i { font-style: normal; color: var(--lv-yellow); }
.nc-play-btn { border-radius: 999px; border: none; background: linear-gradient(180deg, #ffd84a, #ffb800); color: #2a1400; box-shadow: 0 6px 18px rgba(255,190,0,.35); }
.nc-soon-badge { font-size: 12px; border-radius: 999px; }
.nc-section-title { color: #fff; text-shadow: none; }

/* ---------- Lobby PvP ---------- */
.pvp-lobby { gap: 22px; }
.pvp-header { text-align: left; padding: 0; }
.pvp-title { font-size: 32px; color: #fff; text-shadow: none; margin: 0 0 6px; }
.pvp-sub { font-size: 15px; color: var(--lv-mute); }
.pvp-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pvp-pick {
  position: relative;
  aspect-ratio: 6 / 5;
  padding: 0;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,.12);
  background: var(--lv-panel);
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  font: inherit;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pvp-pick img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.7) saturate(.8);
  transition: filter .2s, transform .3s;
}
.pvp-pick:hover { transform: translateY(-3px); }
.pvp-pick:hover img { filter: brightness(.9) saturate(.95); }
.pvp-pick.active { border-color: var(--lv-purple-2); box-shadow: 0 0 0 3px rgba(182,122,255,.35), 0 0 28px rgba(139,61,255,.6); }
.pvp-pick.active img { filter: none; transform: scale(1.04); }
.pvp-pick-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(12,5,28,.94), transparent); }
.pvp-pick-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pvp-pick-info b { font-size: 19px; font-weight: 900; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.pvp-pick-count {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #22c55e;
  color: #052e14;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(34,197,94,.6);
}
.pvp-panel { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pvp-create {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--lv-line);
  background: var(--lv-panel);
  box-shadow: none;
}
.pvp-create-head h3 { margin: 0 0 6px; font-size: 22px; color: #fff; text-shadow: none; }
.pvp-create-head p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--lv-mute); }
.pvp-field { display: flex; flex-direction: column; gap: 8px; }
.pvp-field-label { font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #cdb8ff; }
.pvp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pvp-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--lv-line);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.pvp-chip:hover { background: rgba(139,61,255,.18); }
.pvp-chip.active { background: linear-gradient(180deg, #9b4dff, #6d22d9); border-color: #cfa6ff; box-shadow: 0 0 14px rgba(139,61,255,.5); }
.pvp-field-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.pvp-field-row .pvp-check { font-size: 15px !important; }
#pvpPassword {
  flex: 1; min-width: 160px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--lv-line);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 15px;
}
.pvp-prize-line { font-size: 15px; color: var(--lv-mute); }
.pvp-prize-line b { color: #4ade80; font-size: 17px; }
.pvp-create-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pvp-create-actions .pvp-create-btn,
.pvp-create-actions .pvp-btn {
  min-width: 0;
  padding: 14px 12px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: 0;
}
.pvp-create-btn { border: none; background: linear-gradient(180deg, #ffd84a, #ffb800); color: #2a1400; box-shadow: 0 6px 18px rgba(255,190,0,.3); }
.pvp-create-btn:disabled, .pvp-btn:disabled { opacity: .45; cursor: default; transform: none; }
.pvp-rooms { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pvp-section-title { margin: 0; font-size: 20px; text-shadow: none; }
.pvp-rooms-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pvp-empty { padding: 36px 20px; font-size: 15px; color: var(--lv-mute); background: rgba(255,255,255,.03); border: 1px dashed var(--lv-line); }
.pvp-room-card { background: var(--lv-panel); border: 1px solid var(--lv-line); }
.pvp-room-stats span { font-size: 11px; color: var(--lv-mute); }
.pvp-room-stats b { font-size: 15px; }
.pvp-room-host small { font-size: 12px; color: var(--lv-mute); }
.pvp-waiting-banner { border-radius: 16px; }

@media (max-width: 1100px) {
  .pvp-panel { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nc-hero-content { max-width: 60%; }
  .nc-hero-collage { width: 36%; }
}
/* Celular */
@media (max-width: 720px) {
  .nc-navbar { padding: 8px 10px; gap: 8px; }
  .nc-wallet b { font-size: 13px; }
  .nc-side-item { font-size: 13px; padding: 8px 14px; border-radius: 999px; }
  .nc-side-item span { font-size: 16px; width: auto; }
  .nc-side-item.active { border-left: 1px solid var(--lv-purple-2); }
  .nc-side-promo { display: none; }

  .nc-hero, .nc-hero-slide { min-height: 240px; }
  .nc-hero-slide { padding: 22px 20px 40px; }
  .nc-hero-has-bg {
    background:
      linear-gradient(180deg, rgba(29,8,64,.35) 0%, rgba(29,8,64,.9) 100%),
      var(--hero-bg) 75% center / cover no-repeat;
  }
  .nc-hero-content { max-width: none; text-align: left; }
  .nc-hero-content h2 { font-size: 27px; }
  .nc-hero-content p { font-size: 15px; margin-bottom: 18px; }
  .nc-hero-btn { font-size: 15px; padding: 12px 22px; }
  .nc-hero-collage { display: none; }

  .nc-cats-arrows { display: none; }
  .nc-cats { gap: 8px; }
  .nc-cat { padding: 9px 14px; font-size: 14px; }

  .nc-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nc-game-thumb { height: auto; }
  .nc-game-info { padding: 8px 6px; gap: 4px; }
  .nc-game-info b { font-size: 14px; }
  .nc-game-label { font-size: 11px; padding: 2px 8px; }

  .pvp-title { font-size: 26px; }
  .pvp-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pvp-pick-info b { font-size: 16px; }
  .pvp-pick-count { font-size: 11px; top: 6px; left: 6px; }
  .pvp-create { padding: 16px; }
  .pvp-create-actions { grid-template-columns: 1fr; }
}
/* Portadas del PvP más bajas en compu para que el formulario entre en pantalla */
@media (min-width: 721px) { .pvp-pick { aspect-ratio: 16 / 9; } .pvp-pick img { object-position: center 40%; } .pvp-create { gap: 12px; } }

/* ---------- Botones − y + de la apuesta ----------
   El signo se dibuja con dos rayitas en vez de con el carácter, así queda
   centrado exacto en el círculo con cualquier fuente y tamaño */
.sb2-round, .cc2-icon {
  position: relative;
  padding: 0;
  font-size: 0 !important;
  color: #fff;
}
.cc2-icon { color: #4a1a00; }
.sb2-round::before, .cc2-icon::before,
.sb2-betrow .sb2-round:last-child::after, #ccPlus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 42%; height: 3px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.sb2-betrow .sb2-round:last-child::after, #ccPlus::after { width: 3px; height: 42%; }

/* ---------- Textos que se leían muy chicos ----------
   En la compu el juego se achica para entrar en la pantalla (hasta 0,66),
   así que estos textos se agrandan para que se sigan leyendo */
@media (min-width: 721px) {
  .sb2-buy span { font-size: 15px; }
  .sb2-buy small { font-size: 14px; line-height: 1.25; }
  .sb2-ante-txt b { font-size: 16px; }
  .sb2-ante-txt small { font-size: 14px; line-height: 1.25; }
  .sb2-ante-txt em { font-size: 15px; }
  .sb2-msg { font-size: 16px; }
  .sb2-msg.ls-msg-line { font-size: 16px; }
  .sb2-pill { font-size: 15px; }
  .sb2-betbox small, .sb2-winbox small { font-size: 14px; }
  .ls-side-info small { font-size: 14px; }
  .ls-num { width: 20px; height: 20px; font-size: 12px; }

  .rl-hist-label { font-size: 15px; }
  .rl-empty { font-size: 15px; }
  .rl-track-hint { font-size: 15px; }
  .rl-limits { font-size: 14px; }
  .rl-tool small { font-size: 13px; }
  .rl-totals { font-size: 14px; }
  .rl-rack .rl-chip { font-size: 15px; }

  .bj2-tool small { font-size: 12px; }
  .pk2-stats span { font-size: 12px; }
  .cc2-label { font-size: 13px; }
  .cc2-info span { font-size: 13px; }
}
/* Celular: menú en fila a lo ancho y buscador como botón redondo */
@media (max-width: 720px) {
  .nc-sidebar { width: auto; padding: 8px 10px; border-right: none; }
  .nc-search { flex: 0 0 42px; }
  .nc-search input { padding: 10px 0 10px 40px; height: 42px; }
  .nc-search-icon { left: 13px; }
  .nc-search:focus-within input { padding-left: 40px; }
}
/* La tarjeta del menú entra en notebooks; en pantallas muy bajas se oculta */
@media (min-width: 721px) { .nc-sidebar { top: 73px; height: calc(100vh - 73px); gap: 4px; } .nc-side-promo { padding: 16px 12px; } }
@media (min-width: 721px) and (max-height: 700px) { .nc-side-promo { display: none; } }
.nc-sidebar { scrollbar-width: none; }
.nc-sidebar::-webkit-scrollbar { display: none; }

/* ---------- Duelos 1 vs 1 en pantalla completa ---------- */
.t2-full { line-height: 1; }
.nc-main:fullscreen {
  max-width: none;
  margin: 0;
  padding: 10px;
  overflow-y: auto;
  background: var(--lv-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nc-main:fullscreen > .pvp-game { width: 100%; max-width: 1500px; margin: 0 auto; }
/* La cancha y el tablero usan el alto que queda libre */
.nc-main:fullscreen .hsx-wrap .hs-stage { max-width: calc((100vh - 110px) * 16 / 9); }
.nc-main:fullscreen .chx-main .chess-board {
  width: min(90vw, calc(100dvh - 260px), 760px);
  height: min(90vw, calc(100dvh - 260px), 760px);
}
.nc-main:fullscreen .ch-table.chx-table,
.nc-main:fullscreen .t2-table { min-height: calc(100vh - 20px); }

/* Logo de la barra: vuelve al inicio */
a.nc-logo { text-decoration: none; cursor: pointer; }

/* "+" de las fichas: dibujado con dos barras para que quede centrado exacto */
.nc-deposit { position: relative; font-size: 0 !important; padding: 0; flex-shrink: 0; }
.nc-deposit::before, .nc-deposit::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 3px;
  border-radius: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.nc-deposit::after { width: 3px; height: 12px; }

/* Grilla del lobby: la última fila queda centrada, no tirada a la izquierda */
#ncGamesGrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
#ncGamesGrid > .nc-game-card { flex: 0 0 200px; min-width: 0; }
@media (max-width: 720px) {
  #ncGamesGrid { gap: 10px; }
  #ncGamesGrid > .nc-game-card { flex: 0 0 calc(50% - 5px); }
}

/* Tarjeta "¡Divertite sin límites!": si existe assets/promo-lateral.jpg se usa de fondo;
   si no, queda el degradé violeta de siempre */
.nc-side-promo {
  background:
    linear-gradient(180deg, rgba(20,6,45,.35), rgba(20,6,45,.85)),
    url('assets/promo-lateral.jpg') center / cover no-repeat,
    radial-gradient(circle at 85% 115%, rgba(255,120,60,.6), transparent 45%),
    linear-gradient(160deg, #3d1676, #1c0b3d);
}
.nc-side-promo b, .nc-side-promo small { text-shadow: 0 2px 6px rgba(0,0,0,.7); }

/* Sin el emoji, la tarjeta mantiene su alto y el texto va abajo, sobre la parte oscura de la imagen */
.nc-side-promo { min-height: 190px; justify-content: flex-end; padding: 18px 14px; }
@media (min-width: 721px) { .nc-side-promo { padding: 18px 12px; } }

/* Panel: Juegos y RTP */
.rtp-periods { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.rtp-table-wrap { overflow-x: auto; }
.rtp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rtp-table th, .rtp-table td { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: middle; }
.rtp-table td small { display: block; opacity: .6; font-size: 12px; }
.rtp-table .rtp-warn { color: #f0b429; opacity: 1; }
.rtp-edit { white-space: nowrap; }
.rtp-edit input { width: 70px; padding: 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.3); color: inherit; }
.nc-game-rtp { font-size: 12px; opacity: .7; margin-left: 8px; font-weight: 400; }

/* ============ SELECTOR DE IDIOMA ============ */
.lang-picker { position: relative; flex-shrink: 0; }
.lang-current {
  display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--lv-line, rgba(255,255,255,.18));
  background: rgba(255,255,255,.04);
  color: #fff; font-size: 13px; font-weight: 800;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.lang-current::after { content: '▾'; font-size: 11px; opacity: .7; }
.lang-current:hover, .lang-picker.open .lang-current { background: rgba(139,61,255,.22); border-color: #8b3dff; }
.lang-globe { font-size: 15px; line-height: 1; }
.lang-code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 20px; border-radius: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font-size: 11px; font-weight: 900; letter-spacing: .5px; color: #cdbdff;
}
.lang-menu button.active .lang-code { background: #8b3dff; border-color: #8b3dff; color: #fff; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 170px;
  display: none; flex-direction: column; gap: 2px;
  padding: 6px;
  border-radius: 14px;
  background: var(--lv-panel, #1c0f33);
  border: 1px solid var(--lv-line, rgba(255,255,255,.18));
  box-shadow: 0 14px 34px rgba(0,0,0,.6);
  z-index: 300;
}
.lang-picker.open .lang-menu { display: flex; animation: langIn .15s ease-out; }
@keyframes langIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-menu button {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: none; border-radius: 10px;
  background: transparent; color: #eeebf8;
  font-size: 14px; font-weight: 700; text-align: left;
  cursor: pointer;
}
.lang-menu button:hover { background: rgba(139,61,255,.2); }
.lang-menu button.active { background: rgba(139,61,255,.32); color: #fff; }
.lang-menu button.active::after { content: '✓'; margin-left: auto; color: #b67aff; }
/* En la barra va pegado al saldo */
.nc-navbar .nc-lang { margin-left: auto; }
.nc-navbar .nc-lang + .nc-wallet { margin-left: 0; }
/* En las pantallas de ingreso, arriba a la derecha de la tarjeta */
.lang-login { position: absolute; top: 14px; right: 14px; }
.lang-login .lang-current { height: 32px; padding: 0 10px; font-size: 12px; }
/* Fila de idiomas dentro del menú del perfil (solo en el celular) */
.nc-dropdown-langs { display: none; align-items: center; gap: 6px; padding: 8px 12px 10px; border-bottom: 1px solid var(--lv-line, rgba(255,255,255,.12)); }
.nc-dropdown-langs button {
  flex: 1; padding: 7px 0;
  border-radius: 8px; border: 1px solid var(--lv-line, rgba(255,255,255,.15));
  background: rgba(255,255,255,.05); color: #cdbdff;
  font-size: 12px; font-weight: 900; cursor: pointer;
}
.nc-dropdown-langs button.active { background: #8b3dff; border-color: #8b3dff; color: #fff; }
@media (max-width: 720px) {
  .nc-navbar .nc-lang { display: none; }
  .nc-navbar .nc-lang + .nc-wallet { margin-left: auto; }
  .nc-dropdown-langs { display: flex; }
}

/* Referidos (.adm-toolbar ya existe) */
.ref-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-actions .adm-btn { padding: 4px 10px; font-size: 12px; }
tr.ref-off td { opacity: .5; }
.ref-share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ref-share input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.25); color: inherit; }
