:root { --juego: #f2c94c; --pano: #0f5c3a; --pano-2: #0b4a2e; --madera: #5a3820; --oro: #f2c94c; }

/* ---------- salón ---------- */
.salon { max-width: 1160px; margin: 0 auto; padding: 30px 16px 70px; }
.salon-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.salon-hero h1 { font-size: clamp(44px, 7vw, 86px); }
.salon-hero h1 em { font-style: normal; color: var(--oro); }
.salon-hero p { color: var(--blanco-2); font-size: 18px; max-width: 520px; margin-top: 8px; }
.saldo-grande { padding: 14px 20px; border-radius: 18px; background: linear-gradient(160deg, #2a2410, #1b1a18); box-shadow: inset 0 0 0 1px rgba(242,201,76,.35); text-align: right; }
.saldo-grande b { display: block; font-family: var(--titulo); font-size: 34px; color: var(--oro); }
.mesas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mesa-card { position: relative; border-radius: 22px; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; isolation: isolate; box-shadow: 0 20px 40px -24px #000; transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.mesa-card:hover { transform: translateY(-6px) rotate(-.4deg); }
.mesa-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 30%, #1d7a4f, var(--pano) 55%, #062a1a); }
.mesa-card.bj::before { background: radial-gradient(ellipse at 50% 20%, #23628f, #123a5c 60%, #081b2c); }
.mesa-card.slots::before { background: radial-gradient(ellipse at 50% 20%, #8f2350, #5c1236 60%, #2c0818); }
.mesa-card .arte { position: absolute; inset: 18px 18px auto; height: 160px; display: grid; place-items: center; z-index: -1; }
.mesa-card h2 { font-size: 34px; }
.mesa-card p { opacity: .85; font-size: 15px; margin: 4px 0 14px; }
.mesa-card .pie { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.mesas-chicas { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.privada { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- mesa (común) ---------- */
.mesa { max-width: 1280px; margin: 0 auto; padding: 14px 14px 40px; }
.mesa-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mesa-top h1 { font-size: 24px; }
.mesa-top .gente { display: flex; margin-left: 6px; }
.mesa-top .gente .avatar { width: 28px; height: 28px; font-size: 12px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 2px var(--carbon); }
.mesa-top .espacio { flex: 1; }
.saldo { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: #2a2410; box-shadow: inset 0 0 0 1px rgba(242,201,76,.4); font-family: var(--titulo); font-weight: 700; color: var(--oro); }
.saldo.sube { animation: sube .7s; }
.saldo.baja { animation: baja .5s; }
@keyframes sube { 30% { transform: scale(1.15); box-shadow: inset 0 0 0 2px var(--lima), 0 0 30px rgba(197,240,74,.5); color: var(--lima); } }
@keyframes baja { 30% { transform: scale(.94); } }
.estado-mesa { font-family: var(--titulo); font-size: 15px; padding: 7px 14px; border-radius: 99px; background: var(--carbon-3); }
.estado-mesa.abierta { background: rgba(197,240,74,.14); color: var(--lima); }
.estado-mesa.cerrada { background: rgba(255,107,91,.14); color: #ff9c90; }
.mesa-cuerpo { display: grid; grid-template-columns: 1fr 280px; gap: 14px; align-items: start; }
.chat { display: flex; flex-direction: column; height: 520px; padding: 0; overflow: hidden; }
.chat h3 { font-size: 14px; padding: 14px 14px 8px; }
.chat-log { flex: 1; overflow-y: auto; padding: 0 12px 8px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.chat-log .sis { color: var(--oro); }
.chat-log b { color: var(--blanco); }
.chat form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--borde); }
.chat form .entrada { padding: 8px 10px; font-size: 14px; }

.pano { position: relative; border-radius: 28px; padding: 22px; background: radial-gradient(ellipse at 50% 35%, #187a4b, var(--pano) 50%, #08321f); box-shadow: inset 0 0 0 10px var(--madera), inset 0 0 0 12px #3b2414, inset 0 0 80px rgba(0,0,0,.55), 0 30px 60px -30px #000; }
.pano::after { content: ''; position: absolute; inset: 12px; border-radius: 18px; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 4px 4px; }

/* fichas */
.ficha { --c: #2b6cd4; --b: #fff; width: 40px; height: 40px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center;
  background: repeating-conic-gradient(var(--b) 0 12deg, var(--c) 12deg 45deg); box-shadow: 0 2px 0 rgba(0,0,0,.45), inset 0 0 0 2px rgba(0,0,0,.2);
  font: 800 11px/1 var(--titulo); color: #111; border: 0; padding: 0; }
.ficha::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.ficha span { position: relative; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.6); letter-spacing: -.03em; }
.ficha[data-v="10"] { --c: #2b6cd4; } .ficha[data-v="50"] { --c: #d42b2b; } .ficha[data-v="100"] { --c: #1d1d1d; }
.ficha[data-v="500"] { --c: #7b3fc4; } .ficha[data-v="1000"] { --c: #e0a80f; --b: #1d1d1d; } .ficha[data-v="5000"] { --c: #e2672b; }
.selector-fichas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.selector-fichas .ficha { width: 50px; height: 50px; cursor: pointer; transition: transform .15s; font-size: 12px; }
.selector-fichas .ficha:hover { transform: translateY(-3px); }
.selector-fichas .ficha.on { transform: translateY(-6px) scale(1.08); box-shadow: 0 0 0 3px var(--lima), 0 8px 14px rgba(0,0,0,.5); }
.ficha-mini { width: 22px; height: 22px; font-size: 7px; }
.ficha-mini::before { inset: 4px; }
.pila { position: absolute; z-index: 3; pointer-events: none; display: grid; }
.pila .ficha { grid-area: 1 / 1; width: 26px; height: 26px; font-size: 8px; }
.pila .ficha::before { inset: 4px; }
.pila .ficha.otro { box-shadow: 0 0 0 2px var(--av), 0 2px 0 rgba(0,0,0,.5); }
.cae { animation: cae .32s cubic-bezier(.3,1.5,.5,1); }
@keyframes cae { from { transform: translateY(-30px) scale(1.3); opacity: 0; } }

/* ---------- ruleta ---------- */
.ruleta-zona { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: center; }
.rueda-caja { position: relative; aspect-ratio: 1; width: 100%; max-width: 330px; margin: 0 auto; }
.rueda-caja::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: #1e1108; box-shadow: 0 24px 50px rgba(0,0,0,.65), 0 0 0 3px #8a5a31; }
.rueda { position: absolute; inset: 0; }
.rueda svg { width: 100%; height: 100%; display: block; }
.bola-pista { position: absolute; inset: 0; pointer-events: none; }
.bola-pista.gira { animation: bola 7s cubic-bezier(.15,.6,.15,1) forwards; }
@keyframes bola {
  0% { transform: rotate(1440deg) scale(1.08); }
  70% { transform: rotate(60deg) scale(1.03); }
  85% { transform: rotate(-12deg) scale(.99); }
  100% { transform: rotate(0deg) scale(1); }
}
.bola { position: absolute; left: 50%; top: 13.5%; width: 4.6%; aspect-ratio: 1; margin-left: -2.3%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #d9d9d9 55%, #8a8a8a); box-shadow: 0 2px 3px rgba(0,0,0,.6); }
.puntero { position: absolute; left: 50%; top: -14px; width: 0; height: 0; margin-left: -9px; border: 9px solid transparent; border-top: 14px solid var(--oro); z-index: 2; filter: drop-shadow(0 2px 2px #000); }
.resultado-grande { position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center; font: 900 46px/1 var(--titulo); color: #fff; opacity: 0; transform: scale(.4); transition: all .4s cubic-bezier(.2,1.6,.4,1); z-index: 3; }
.resultado-grande.ver { opacity: 1; transform: none; }
.resultado-grande.rojo { background: #c8102e; } .resultado-grande.negro { background: #111; } .resultado-grande.verde { background: #0a8f3c; }
.historial-ruleta { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.historial-ruleta span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font: 800 12px var(--titulo); color: #fff; }
.historial-ruleta span:first-child { box-shadow: 0 0 0 2px var(--oro); transform: scale(1.1); }
.r-rojo { background: #c8102e; } .r-negro { background: #161616; } .r-verde { background: #0a8f3c; }

.tablero { display: grid; grid-template-columns: 52px repeat(12, 1fr) 54px; grid-template-rows: repeat(3, 46px) 40px 40px; gap: 3px; user-select: none; }
.tablero .c { position: relative; display: grid; place-items: center; border-radius: 6px; font: 800 14px var(--titulo); color: #fff; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); transition: filter .12s, transform .12s; }
.tablero .c:hover { filter: brightness(1.35); }
.tablero .c.gana { animation: brilla 1s 4; z-index: 2; }
@keyframes brilla { 50% { box-shadow: inset 0 0 0 3px var(--oro), 0 0 24px var(--oro); transform: scale(1.06); } }
.tablero .num-rojo { background: #b50e28; } .tablero .num-negro { background: #121212; }
.tablero .cero { grid-row: 1 / 4; background: #0a8f3c; border-radius: 22px 6px 6px 22px; font-size: 18px; }
.tablero .afuera { background: rgba(0,0,0,.18); font-size: 12px; letter-spacing: .02em; }
.tablero .rombo { width: 22px; height: 22px; transform: rotate(45deg); border-radius: 4px; }
.cerrado .tablero .c { cursor: not-allowed; }
.controles { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-top: 16px; }
.reloj-mesa { position: relative; height: 6px; border-radius: 99px; background: rgba(0,0,0,.35); overflow: hidden; margin-top: 14px; }
.reloj-mesa i { position: absolute; inset: 0; background: var(--oro); transform-origin: left; }
.banner { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.6); opacity: 0; z-index: 10; padding: 18px 30px; border-radius: 20px; text-align: center; background: rgba(10,10,10,.92); box-shadow: 0 0 0 2px var(--oro), 0 30px 80px #000; transition: all .35s cubic-bezier(.2,1.5,.4,1); pointer-events: none; }
.banner.ver { opacity: 1; transform: translate(-50%, -50%); }
.banner b { display: block; font: 900 40px var(--titulo); color: var(--lima); }
.banner.pierde b { color: #ff9c90; }

/* ---------- cartas ---------- */
.carta { --rot: 0deg; position: relative; width: 68px; height: 96px; border-radius: 8px; background: linear-gradient(160deg, #fff, #ecebe6); box-shadow: 0 4px 10px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,0,0,.12); color: #151515; font-family: var(--titulo); flex: none; transform: rotate(var(--rot)); }
.carta.roja { color: #c8102e; }
.carta .esq { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 800; font-size: 15px; }
.carta .esq i { font-style: normal; font-size: 13px; }
.carta .e1 { left: 6px; top: 6px; } .carta .e2 { right: 6px; bottom: 6px; transform: rotate(180deg); }
.carta .centro { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; }
.carta.dorso { background: repeating-linear-gradient(45deg, #9b1c31 0 6px, #7d1527 6px 12px); box-shadow: 0 4px 10px rgba(0,0,0,.4), inset 0 0 0 4px #fff, inset 0 0 0 6px #9b1c31; }
.carta.nueva { animation: reparte .45s cubic-bezier(.2,.9,.3,1) backwards; }
@keyframes reparte { from { transform: translate(260px, -220px) rotate(40deg); opacity: 0; } }
.mano { display: flex; justify-content: center; }
.mano .carta + .carta { margin-left: -40px; }

/* ---------- blackjack ---------- */
.bj-mesa { min-height: 560px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(ellipse 80% 100% at 50% 0%, #1f6aa0, #133f63 55%, #0a2236); border-radius: 26px 26px 50% 50% / 26px 26px 34% 34%; padding: 26px 22px 70px; }
.bj-banca { text-align: center; }
.bj-banca .etq { color: rgba(255,255,255,.65); }
.bj-leyenda { text-align: center; font: 700 13px var(--titulo); letter-spacing: .14em; color: rgba(255,255,255,.35); margin: 18px 0; text-transform: uppercase; }
.bj-leyenda b { display: block; font-size: 11px; letter-spacing: .1em; }
.asientos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; }
.asiento { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 230px; justify-content: flex-end; position: relative; }
.asiento:nth-child(1), .asiento:nth-child(5) { transform: translateY(-46px); }
.asiento:nth-child(2), .asiento:nth-child(4) { transform: translateY(-12px); }
.asiento .lugar { width: 82px; height: 82px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); display: grid; place-items: center; color: rgba(255,255,255,.6); font: 700 12px var(--titulo); background: rgba(0,0,0,.12); }
button.lugar { cursor: pointer; }
button.lugar:hover { border-color: var(--oro); color: var(--oro); }
.asiento .quien { font: 700 13px var(--titulo); background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 99px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.asiento.turno .quien { background: var(--oro); color: #1a1405; box-shadow: 0 0 20px var(--oro); }
.asiento.yo .lugar { border-color: var(--lima); border-style: solid; }
.total { font: 800 14px var(--titulo); padding: 3px 10px; border-radius: 8px; background: rgba(0,0,0,.6); }
.total.pasado { background: #b50e28; } .total.bj { background: var(--oro); color: #1a1405; }
.res-asiento { font: 900 14px var(--titulo); padding: 4px 10px; border-radius: 8px; animation: cae .4s cubic-bezier(.3,1.5,.5,1); }
.res-asiento.gana, .res-asiento.blackjack { background: var(--lima); color: #16200a; }
.res-asiento.pierde { background: #b50e28; }
.res-asiento.empate { background: #555; }
.bj-acciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ---------- tragamonedas ---------- */
.slots-zona { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.maquina { position: relative; padding: 26px 26px 30px; border-radius: 40px 40px 24px 24px; background: linear-gradient(180deg, #b0123f, #6d0b27 60%, #3e0616); box-shadow: inset 0 0 0 6px #e9b949, inset 0 0 0 10px #8a5f12, 0 30px 60px -20px #000; }
.marquesina { text-align: center; padding: 10px 14px 16px; }
.marquesina .etq { color: #ffe9a8; }
.pozo { font: 900 clamp(34px, 6vw, 56px)/1 var(--titulo); color: #ffe066; text-shadow: 0 0 18px rgba(255,200,0,.75), 0 3px 0 #8a5f12; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.luces { display: flex; justify-content: space-between; padding: 0 6px; margin-bottom: 12px; }
.luces i { width: 12px; height: 12px; border-radius: 50%; background: #ffe066; box-shadow: 0 0 10px #ffd000; animation: luz 1.2s infinite; }
.luces i:nth-child(even) { animation-delay: .6s; }
@keyframes luz { 50% { background: #7a5a00; box-shadow: none; } }
.ventana { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; border-radius: 18px; background: #1b0a10; box-shadow: inset 0 6px 18px #000; }
.rodillo { position: relative; height: 300px; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #ddd, #fff 20%, #fff 80%, #ddd); box-shadow: inset 0 14px 18px -8px rgba(0,0,0,.45), inset 0 -14px 18px -8px rgba(0,0,0,.45); }
.tira { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.tira .s { height: 100px; display: grid; place-items: center; }
.tira .s svg { width: 72px; height: 72px; }
.lineas-premio { position: absolute; inset: 12px; pointer-events: none; }
.lineas-premio svg { width: 100%; height: 100%; }
.lineas-premio line { stroke: #ffd000; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px #ffd000); animation: linea 1s infinite; }
@keyframes linea { 50% { opacity: .35; } }
.panel-slots { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; }
.apuestas-slot { display: flex; gap: 6px; }
.apuestas-slot button { padding: 8px 12px; border-radius: 10px; border: 0; background: #2b0712; color: #ffe9a8; font: 800 13px var(--titulo); box-shadow: inset 0 0 0 1px #8a5f12; }
.apuestas-slot button.on { background: #ffd000; color: #2b0712; }
.palanca { width: 120px; height: 120px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #ff6b6b, #c8102e 60%, #7a0718); box-shadow: 0 8px 0 #4d0410, 0 16px 30px rgba(0,0,0,.6), inset 0 -6px 10px rgba(0,0,0,.3); color: #fff; font: 900 22px var(--titulo); transition: transform .08s, box-shadow .08s; }
.palanca:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 2px 0 #4d0410, 0 8px 18px rgba(0,0,0,.6); }
.palanca:disabled { filter: grayscale(.6); opacity: .7; }
.premio-slot { text-align: center; min-height: 40px; font: 900 26px var(--titulo); color: #ffe066; margin-top: 12px; }
.feed { display: flex; flex-direction: column; gap: 6px; }
.feed div { padding: 8px 10px; border-radius: 10px; background: var(--carbon-3); font-size: 14px; animation: cae .4s; }
.feed div.pozo { background: linear-gradient(90deg, #5a4200, #2a2410); box-shadow: inset 0 0 0 1px var(--oro); }
.feed b { color: var(--oro); }
.tabla-premios { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; color: var(--blanco-2); }
.tabla-premios span:nth-child(even) { font-family: var(--mono); color: var(--oro); text-align: right; }
.tabla-premios svg { width: 22px; height: 22px; vertical-align: middle; }

@media (max-width: 1000px) {
  .mesa-cuerpo, .slots-zona, .ruleta-zona { grid-template-columns: 1fr; }
  .mesas-grid, .privada { grid-template-columns: 1fr; }
  .chat { height: 320px; }
}
@media (max-width: 700px) {
  .tablero { grid-template-columns: 34px repeat(12, 1fr) 36px; grid-template-rows: repeat(3, 38px) 34px 34px; gap: 2px; }
  .tablero .c { font-size: 11px; }
  .tablero .afuera { font-size: 9px; }
  .asientos { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .asiento .lugar { width: 54px; height: 54px; font-size: 10px; }
  .carta { width: 46px; height: 66px; }
  .carta .centro { font-size: 22px; }
  .carta .esq { font-size: 11px; }
  .mano .carta + .carta { margin-left: -30px; }
  .asiento:nth-child(1), .asiento:nth-child(5), .asiento:nth-child(2), .asiento:nth-child(4) { transform: none; }
  .rodillo { height: 210px; }
  .tira .s { height: 70px; }
  .tira .s svg { width: 52px; height: 52px; }
  .palanca { width: 90px; height: 90px; font-size: 17px; }
}
.rodillo.girando .tira { animation: girar .22s linear infinite; }
@keyframes girar { from { transform: translateY(-400px); } to { transform: translateY(0); } }
@media (max-width: 700px) { @keyframes girar { from { transform: translateY(-280px); } to { transform: translateY(0); } } }
.tabla-premios span:nth-child(odd) { display: flex; gap: 1px; align-items: center; }
.tabla-premios svg { width: 20px; height: 20px; flex: none; }

/* ---------- ruleta: arrastre, pago y desafío ---------- */
.ficha.volando { position: fixed; z-index: 60; width: 44px; height: 44px; pointer-events: none; transition: transform .34s cubic-bezier(.3,1.3,.5,1); }
.ficha.arrastrada { position: fixed; z-index: 60; width: 50px; height: 50px; pointer-events: none; transform: scale(1.1) rotate(-8deg); box-shadow: 0 14px 24px rgba(0,0,0,.55); }
.selector-fichas .ficha { touch-action: none; }
.tablero .c.apuntado { filter: brightness(1.5); box-shadow: inset 0 0 0 3px var(--oro); }
.tablero .c.cubierto { filter: brightness(1.45); box-shadow: inset 0 0 0 2px rgba(242,201,76,.8); }
.pila.cobra .ficha { animation: cobra 1s ease-in-out 3; }
@keyframes cobra { 50% { box-shadow: 0 0 0 3px var(--oro), 0 0 18px var(--oro); transform: translateY(-6px) scale(1.15); } }
.pila.barre { animation: barre .9s 1.4s cubic-bezier(.5,0,.8,.4) forwards; }
@keyframes barre { to { transform: translate(-60px, -140px) scale(.4); opacity: 0; } }
.dolly { position: absolute; z-index: 4; width: 22px; height: 30px; top: -12px; left: 50%; margin-left: -11px; border-radius: 11px 11px 6px 6px; background: linear-gradient(180deg, #fff, #cfcfcf); box-shadow: 0 4px 8px rgba(0,0,0,.6), inset 0 -4px 0 #9a9a9a; animation: cae .4s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.btn-oro { background: var(--oro); color: #2a1d00; box-shadow: 0 4px 0 #a07d1c; }
.desafio { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 1px rgba(242,201,76,.35); color: #fff; }
.desafio .d-tit { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.desafio .d-tit b { font: 800 16px var(--titulo); text-transform: uppercase; color: var(--oro); }
.desafio .d-tit span { font-size: 13px; color: rgba(255,255,255,.75); }
.desafio .d-fila { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 10px; }
.desafio .d-montos { display: flex; gap: 6px; flex-wrap: wrap; }
.desafio .d-quienes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.desafio .d-quienes i { font-style: normal; font-weight: 700; font-size: 13px; padding: 4px 9px; border-radius: 99px; background: rgba(242,201,76,.18); }
.desafio .d-nota { font-size: 13px; color: rgba(255,255,255,.7); }
.desafio .d-pozo { color: var(--lima); }
.desafio.gano { animation: brilla 1s 3; }

/* ---------- blackjack 3D ---------- */
.bj3d-pano { padding: 12px; }
.bj3d { position: relative; height: min(62vh, 560px); min-height: 360px; border-radius: 18px; overflow: hidden; background: #120d0a; cursor: grab; }
.bj3d:active { cursor: grabbing; }
.bj3d canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.bj3d-ayuda { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 12px; color: rgba(255,255,255,.6); pointer-events: none; }
.bj-lugares { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }

/* ---------- ruleta liviana: la rueda gira con transform ---------- */
.rueda > svg, .rueda-gira, .rueda-gira svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rueda-gira { will-change: transform; }
.bola-div { position: absolute; left: 0; top: 0; width: 3.5%; aspect-ratio: 1; margin: -1.75% 0 0 -1.75%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ddd 55%, #7a7a7a); box-shadow: 0 1px 2px rgba(0,0,0,.7); will-change: transform; z-index: 2; }

/* ---------- gente en la mesa y bots ---------- */
.mesa-gente { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.persona-mesa { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; }
.persona-mesa .av { width: 48px; height: 48px; display: block; }
.persona-mesa .av svg { width: 100%; height: 100%; display: block; }
.persona-mesa small { color: #fff; font-weight: 700; font-size: 11px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.globo-mesa { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) scale(.6); opacity: 0; width: max-content; max-width: 190px; padding: 7px 10px; border-radius: 12px; background: #fff; color: #141413; font-size: 12px; font-weight: 600; line-height: 1.25; box-shadow: 0 6px 16px rgba(0,0,0,.4); transition: all .25s cubic-bezier(.2,1.5,.4,1); pointer-events: none; z-index: 5; }
.globo-mesa::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; }
.globo-mesa.ver { opacity: 1; transform: translateX(-50%) scale(1); }
.bots-mesa { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.bots-mesa .etq { color: rgba(255,255,255,.75); }
.chat-log .bot b { color: var(--oro); }
.bj3d-full { position: absolute; right: 10px; top: 10px; z-index: 3; }
.bj3d-pano:fullscreen { border-radius: 0; padding: 10px; display: flex; flex-direction: column; overflow-y: auto; }
.bj3d-pano:fullscreen .bj3d { flex: 1; height: auto; min-height: 0; }

/* salón con alfombra roja y luces doradas */
.salon { position: relative; }
.salon-hero h1 { text-shadow: 0 4px 0 #000, 0 0 30px rgba(242,201,76,.35); }
.salon-hero p { color: #f3d9c0; }
.mesa-card { border: 3px solid var(--oro); }
.mesa-card:hover { transform: translateY(-4px) rotate(-.4deg); }

/* ---------- blackjack a pantalla completa ---------- */
body.casino-full { overflow: hidden; }
.mesa-bj { position: fixed; inset: 56px 0 0 0; padding: 0; max-width: none; margin: 0; }
.mesa-bj .mesa-top { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 6; background: rgba(15,10,8,.72); backdrop-filter: blur(6px); border-radius: 16px; padding: 8px 12px; margin: 0; }
.mesa-bj .mesa-cuerpo { display: block; height: 100%; }
.mesa-bj [data-zona] { position: absolute; inset: 0; }
.mesa-bj .bj3d-pano { height: 100%; border-radius: 0; padding: 0; box-shadow: none; background: #120d0a; }
.mesa-bj .bj3d-pano::after { display: none; }
.mesa-bj .bj3d { position: absolute; inset: 0; height: auto; min-height: 0; border-radius: 0; }
.mesa-bj [data-controles] { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5; margin: 0 !important; background: rgba(8,36,22,.86); backdrop-filter: blur(6px); border-radius: 18px; padding: 10px 14px; width: min(900px, calc(100% - 24px)); box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(242,201,76,.35); }
.mesa-bj [data-controles]:empty { display: none; }
.mesa-bj .reloj-mesa { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; z-index: 5; border-radius: 0; height: 5px; }
.mesa-bj [data-desafio] { position: absolute; left: 12px; top: 74px; z-index: 5; width: min(330px, calc(100% - 24px)); }
.mesa-bj [data-desafio] .desafio { margin: 0; background: rgba(15,10,8,.78); backdrop-filter: blur(6px); }
.mesa-bj .chat { position: absolute; right: 12px; top: 74px; bottom: 120px; width: 290px; z-index: 5; background: rgba(15,10,8,.7); backdrop-filter: blur(6px); display: flex; flex-direction: column; }
.mesa-bj .chat .chat-log { flex: 1; min-height: 0; }
.mesa-bj .bj3d-full { top: auto; bottom: 120px; left: 12px; right: auto; }
.mesa-bj .bj3d-ayuda { bottom: 96px; }
.mesa-bj .banner { top: 42%; }
@media (max-width: 900px) { .mesa-bj .chat { display: none; } .mesa-bj [data-desafio] { top: auto; bottom: 150px; } }
.mesa-bj .chat { bottom: auto; height: min(300px, calc(100% - 220px)); width: 270px; }
.casino-cargando { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(circle at 50% 35%, #3d3120, #170f10 70%); color: #f5e9d2; }
.casino-cargando-ficha { display: grid; place-items: center; width: 72px; height: 72px; border: 5px dashed #f2c94c; border-radius: 50%; color: #f2c94c; font: 900 34px var(--titulo); animation: gira-ficha 2s linear infinite; }
.casino-cargando small { color: #d8c9ac; }
@keyframes gira-ficha { to { transform: rotate(360deg); } }

/* el salón 3D de fondo en el salón y en las mesas de ruleta y tragamonedas */
.salon .menu-fondo::after, .mesa .menu-fondo::after { background: linear-gradient(180deg, rgba(8, 3, 6, .55) 0%, rgba(8, 3, 6, .25) 40%, rgba(8, 3, 6, .75) 100%); }
.mesa.sobre-juego { position: relative; z-index: 1; }
