/* Pantalla del sorteo. Todo se dibuja en un lienzo logico de 1920x1080 que se escala para caber. */
.st-root { position: relative; overflow: hidden; }
.st-root.st-bg { background: #1b1b22; }
.st-root.st-preview { background: radial-gradient(ellipse at 50% 35%, #5a4020 0%, var(--felt-dark) 62%, var(--felt-deep) 100%); }
.st-screen { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; font-family: var(--font-body); color: var(--ink); }
.st-screen *, .st-screen *::before, .st-screen *::after { box-sizing: border-box; }
.st-gold { background: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- HUD compacto (OBS) ---------- */
.st-hud { position: absolute; top: 36px; left: 36px; display: none; align-items: center; gap: 24px; padding: 16px 32px 16px 22px; font-size: 40px; background: linear-gradient(180deg, rgba(58, 44, 26, .96), rgba(26, 20, 12, .96)); border: 3px solid var(--gold-dark); border-radius: 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .06); }
.st-hud.show { display: flex; animation: stSlide .5s cubic-bezier(.2, 1.2, .4, 1); }
.st-hud svg, .st-hud img { height: 68px; width: 68px; }
.st-hud b { color: var(--gold); }
.st-hud .n { min-width: 76px; text-align: center; background: var(--gold); color: var(--black); font-weight: 900; border-radius: 999px; padding: 2px 22px; }
@keyframes stSlide { from { transform: translateX(-120%); } to { transform: none; } }

/* ---------- Reposo (solo vista previa del estudio) ---------- */
.st-idle { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.st-idle.show { display: flex; }
.st-idle .emblem { width: 230px; height: 230px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); animation: stFloat 4s ease-in-out infinite; }
.st-idle .emblem svg, .st-idle .emblem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 26px rgba(224, 176, 80, .6)); }
.st-logo svg, .st-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.neon-sub { font: 900 70px/1 var(--font-display); letter-spacing: .6em; padding-left: .6em; color: #fff; text-shadow: 0 0 12px var(--neon-pink), 0 0 34px var(--neon-pink), 0 0 70px var(--neon-pink); animation: stFlicker 5s infinite; }
@keyframes stFlicker { 0%, 100% { opacity: 1; } 91% { opacity: 1; } 92% { opacity: .55; } 93% { opacity: 1; } 95% { opacity: .7; } 96% { opacity: 1; } }
.st-idle .ttl { font: 900 176px/1 var(--font-display); letter-spacing: .06em; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .45)); }
.st-idle .msg { font-size: 64px; }
.st-idle .msg b { color: var(--gold); }
.st-idle .count { font-size: 46px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.st-idle .count b { color: var(--ink); font-size: 72px; margin-right: 12px; }
@keyframes stFloat { 50% { transform: translateY(-16px); } }
@keyframes stSpin { to { transform: rotate(360deg); } }

/* ---------- Escenario ---------- */
.st-stage { position: absolute; inset: 0; display: none; flex-direction: column; background: radial-gradient(ellipse at 50% 42%, rgba(70, 52, 28, .96) 0%, rgba(26, 20, 12, .97) 62%, rgba(12, 9, 6, .98) 100%); }
.st-stage.show { display: flex; animation: stFade .5s ease; }
/* Capa de juego a pantalla completa (juegos con fullscreen:true, p.ej. la tragamonedas) */
.st-full { position: absolute; inset: 0; z-index: 30; display: none; background: #05010f; }
.st-full.show { display: block; animation: stFade .5s ease; }
.st-full canvas { display: block; width: 100%; height: 100%; }
@keyframes stFade { from { opacity: 0; } to { opacity: 1; } }
/* Luces de casino alrededor del escenario */
.st-lights { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.st-lights i { position: absolute; animation: stChase .9s linear infinite; }
.st-lights .t, .st-lights .b { left: 10px; right: 10px; height: 24px; background: radial-gradient(circle at 24px 50%, var(--neon-pink) 0 6px, rgba(255, 63, 180, 0) 11px), radial-gradient(circle at 72px 50%, var(--neon-cyan) 0 6px, rgba(53, 230, 255, 0) 11px); background-size: 96px 100%; }
.st-lights .t { top: 6px; }
.st-lights .b { bottom: 6px; }
.st-lights .l, .st-lights .r { top: 40px; bottom: 40px; width: 24px; background: radial-gradient(circle at 50% 24px, var(--neon-pink) 0 6px, rgba(255, 63, 180, 0) 11px), radial-gradient(circle at 50% 72px, var(--neon-cyan) 0 6px, rgba(53, 230, 255, 0) 11px); background-size: 100% 96px; }
.st-lights .l { left: 6px; }
.st-lights .r { right: 6px; }
@keyframes stChase { 0%, 49% { background-position: 0 0; } 50%, 100% { background-position: 48px 48px; } }
.st-brand { position: absolute; left: 50px; top: 30px; z-index: 9; display: flex; align-items: center; gap: 16px; }
.st-brand .st-logo { width: 84px; height: 84px; }
.st-brand b { display: block; font: 900 36px/1 var(--font-display); letter-spacing: .12em; color: #fff; text-shadow: 0 0 10px var(--neon-pink), 0 0 26px var(--neon-pink); }
.st-brand small { display: block; margin-top: 6px; font: 800 22px/1 var(--font-body); letter-spacing: .6em; color: var(--neon-cyan); text-shadow: 0 0 12px var(--neon-cyan); }
.st-title { height: 150px; padding-top: 20px; text-align: center; flex: none; }
.st-title h1 { margin: 0; font: 900 66px/1.1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .45)); }
.st-title p { margin: 4px 0 0; font-size: 28px; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); }
.st-body { flex: 1; display: flex; min-height: 0; }
.st-game { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; }
.st-ticker { height: 104px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0 60px; text-align: center; }
.st-ticker span { display: inline-block; max-width: 1720px; padding: 8px 40px; font: 800 44px/1.15 var(--font-display); text-shadow: 0 4px 0 rgba(0, 0, 0, .55); background: linear-gradient(180deg, #1c0a3e, #0a0420); border: 3px solid var(--neon-pink); border-radius: 18px; box-shadow: 0 0 26px rgba(255, 63, 180, .5), inset 0 0 22px rgba(0, 0, 0, .65); animation: stTick .5s ease; }
.st-ticker b { color: var(--gold); }
@keyframes stTick { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.st-count { position: absolute; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; pointer-events: none; background: rgba(0, 0, 0, .5); }
.st-count.show { display: flex; }
.st-count span { font: 900 440px/1 var(--font-display); color: var(--gold); text-shadow: 0 0 90px rgba(245, 197, 66, .85), 0 12px 0 rgba(0, 0, 0, .5); animation: stPulse 1s ease-out; }
@keyframes stPulse { 0% { transform: scale(1.7); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(.85); opacity: .85; } }

/* ---------- Tablero de participantes ---------- */
.st-board { display: none; flex-direction: column; width: 520px; flex: none; padding: 0 0 0 30px; }
.st-board.show { display: flex; }
.st-board-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px 8px; font-size: 22px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.st-board-head b { font-size: 36px; letter-spacing: 0; color: var(--ink); }
.st-board-grid { flex: 1; display: grid; grid-auto-flow: column; gap: 3px 6px; align-content: start; }
.bn { display: flex; align-items: center; gap: 6px; padding: 0 8px; border-radius: 7px; background: rgba(255, 255, 255, .11); font-weight: 700; white-space: nowrap; overflow: hidden; transition: opacity .5s, background .3s, transform .3s; }
.bn .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bn .bd { flex: none; min-width: 2em; text-align: center; border-radius: 5px; padding: 0 5px; font-size: .86em; font-weight: 900; background: #333; color: #fff; }
.bn .bd.rojo { background: var(--red); }
.bn .bd.negro { background: #000; box-shadow: inset 0 0 0 1px #777; }
.bn .bd.verde { background: #1f8a4c; }
.bn .bd.cr { background: #fffdf5; color: #15151a; }
.bn .bd.cr.red { color: var(--red); }
/* Simbolos de la tragamonedas en las fichas del tablero */
.bn .bd.s-joystick { background: #8b3dff; }
.bn .bd.s-coin { background: #f5c542; color: #241a00; }
.bn .bd.s-glove { background: #e63946; }
.bn .bd.s-belt { background: #2ec27e; color: #06210f; }
.bn .bd.s-skull { background: #ff3fb4; }
.bn .bd.s-fist { background: #35e6ff; color: #062430; }
/* Ficha en la mira (a punto de caer por el simbolo condenado) */
.bn.risk { background: var(--red-bright); color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 0 18px rgba(230, 57, 70, .85); animation: stRisk .5s ease-in-out infinite; }
@keyframes stRisk { 50% { transform: scale(1.05); } }
.bn.out { opacity: .3; background: rgba(192, 39, 45, .4); transition: opacity .5s, background .5s, transform .5s; }
.bn.out .t { text-decoration: line-through; }
.bn.falling { background: var(--red-bright); color: #fff; transform: scale(1.08); box-shadow: 0 0 22px rgba(230, 57, 70, .8); z-index: 2; animation: stKnock .3s ease; }
@keyframes stKnock { 0% { transform: scale(1); } 40% { transform: scale(1.14) translateX(3px); } 70% { transform: scale(1.08) translateX(-3px); } 100% { transform: scale(1.08); } }
.bn.hot { background: var(--gold); color: #2a1d00; transform: scale(1.04); }
.bn.spot { background: linear-gradient(90deg, rgba(53, 230, 255, .3), rgba(139, 61, 255, .3)); box-shadow: inset 0 0 0 2px var(--neon-cyan), 0 0 16px rgba(53, 230, 255, .5); color: #fff; animation: stSpotPulse 1.6s ease-in-out infinite; }
@keyframes stSpotPulse { 50% { box-shadow: inset 0 0 0 2px var(--neon-pink), 0 0 22px rgba(255, 63, 180, .7); } }
.bn.win { background: linear-gradient(90deg, var(--gold-light), var(--gold)); color: #2a1d00; transform: scale(1.1); box-shadow: 0 0 30px rgba(245, 197, 66, .9); animation: stWinPulse 1s ease-in-out infinite; }
@keyframes stWinPulse { 50% { transform: scale(1.16); } }

/* ---------- Tarjeta de ganador ---------- */
.st-card { position: absolute; left: 50%; top: 52%; z-index: 60; transform: translate(-50%, -50%) scale(.5); opacity: 0; pointer-events: none; text-align: center; padding: 30px 120px 46px; border-radius: 40px; max-width: 1760px; background: linear-gradient(160deg, #fff6c8, var(--gold) 45%, var(--gold-dark)); color: #2a1d00; border: 8px solid #fff8e1; box-shadow: 0 0 120px rgba(245, 197, 66, .85), 0 30px 90px rgba(0, 0, 0, .7); transition: transform .6s cubic-bezier(.2, 1.5, .4, 1), opacity .4s; }
.st-card.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.st-card svg { width: 150px; height: 100px; display: block; margin: 0 auto 6px; }
.st-card small { display: block; font-size: 40px; letter-spacing: .55em; font-weight: 900; padding-left: .55em; }
.st-card strong { display: block; font: 900 128px/1.15 var(--font-display); max-width: 1500px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-card ol { margin: 14px 0 0; padding: 0; list-style: none; text-align: left; font: 900 76px/1.25 var(--font-display); }
.st-card ol li::before { content: "\2605"; color: var(--red); margin-right: 26px; }

/* ---------- Particulas ---------- */
.st-p { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; pointer-events: none; z-index: 70; background: radial-gradient(circle at 35% 30%, #fff8c6, var(--gold) 55%, var(--gold-dark)); box-shadow: inset 0 0 0 4px rgba(184, 144, 31, .65); animation: stFly var(--t, 1.8s) cubic-bezier(.3, .6, .4, 1) forwards; }
.st-p.rect { width: 18px; height: 30px; border-radius: 3px; box-shadow: none; }
@keyframes stFly {
  0% { transform: translate(0, 0) rotate(0) scale(.4); opacity: 1; }
  45% { transform: translate(calc(var(--dx) * .65), var(--up)) rotate(calc(var(--r) * .5)) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--fall)) rotate(var(--r)) scale(1); opacity: 0; }
}

/* ============ RULETA ============ */
.rl { position: relative; display: flex; align-items: center; gap: 36px; }
.rl-call { position: absolute; left: 390px; top: 390px; z-index: 5; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; padding: 10px 44px; white-space: nowrap; border-radius: 22px; background: rgba(10, 4, 28, .88); border: 4px solid var(--neon-pink); font: 900 72px/1.1 var(--font-display); letter-spacing: .12em; color: #fff; text-shadow: 0 0 12px var(--neon-pink), 0 0 36px var(--neon-pink); box-shadow: 0 0 40px rgba(255, 63, 180, .6); transition: transform .3s cubic-bezier(.2, 1.5, .4, 1), opacity .25s; }
.rl-call.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.rl canvas { width: 780px; height: 780px; flex: none; }
.rl-info { width: 430px; display: flex; flex-direction: column; gap: 12px; }
.rl-round { font-size: 26px; font-weight: 700; letter-spacing: .4em; color: var(--muted); }
.rl-bet { font: 900 58px/1.05 var(--font-display); }
.rl-rule { font-size: 25px; line-height: 1.3; color: var(--muted); min-height: 98px; }
.rl-result { display: flex; align-items: center; gap: 20px; min-height: 130px; font-size: 40px; font-weight: 800; letter-spacing: .1em; }
.rl-num { width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; font: 900 64px var(--font-display); border: 6px solid var(--gold); background: #333; color: #fff; }
.rl-num.rojo, .rl-last i.rojo { background: var(--red); }
.rl-num.negro, .rl-last i.negro { background: #000; }
.rl-num.verde, .rl-last i.verde { background: #1f8a4c; }
.rl-last { display: flex; flex-wrap: wrap; gap: 8px; min-height: 100px; align-content: flex-start; }
.rl-last i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 22px var(--font-body); font-style: normal; color: #fff; border: 2px solid rgba(255, 255, 255, .35); }
.rl-alive { font-size: 28px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.rl-alive b { font: 900 76px var(--font-display); color: var(--gold); margin-right: 12px; letter-spacing: 0; }

/* ============ TRAGAMONEDAS ============ */
.sm { position: relative; width: 1240px; height: 780px; }
.sm-body { position: absolute; inset: 0; border-radius: 64px; border: 10px solid var(--gold); background: linear-gradient(180deg, #7b2ff0, #4a1a9e 45%, #250b5c); box-shadow: 0 0 0 6px #6b4e0c, 0 0 90px rgba(255, 63, 180, .35), 0 40px 90px rgba(0, 0, 0, .65), inset 0 0 70px rgba(0, 0, 0, .5); }
.sm-body::after { content: ""; position: absolute; inset: 0; border-radius: 52px; background: linear-gradient(115deg, rgba(255, 255, 255, .16), transparent 28%, transparent 70%, rgba(255, 255, 255, .08)); pointer-events: none; }
.sm { --heat: 0; }
.bulb { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #ffd75e; box-shadow: 0 0 16px #ffd75e; animation: stBulb calc(.7s - var(--heat, 0) * .4s) steps(1) infinite alternate; }
.bulb:nth-child(even) { animation-delay: .35s; }
@keyframes stBulb { 0% { opacity: 1; } 100% { opacity: .25; } }
.sm.hot .bulb { animation-duration: .3s; }
.sm.win .bulb { animation-duration: .16s; }
.sm-beacon { position: absolute; top: 44px; width: 74px; height: 88px; z-index: 4; border-radius: 37px 37px 8px 8px; overflow: hidden; border: 4px solid var(--gold-dark); background: radial-gradient(circle at 50% 40%, #ff9a9a, #c0272d 55%, #5a0b10); box-shadow: 0 0 26px rgba(255, 60, 60, .55); }
.sm-beacon.l { left: 40px; }
.sm-beacon.r { right: 40px; }
.sm-beacon i { position: absolute; inset: -40px; background: conic-gradient(from 0deg, rgba(255, 255, 255, .85) 0 38deg, transparent 38deg 180deg, rgba(255, 255, 255, .85) 180deg 218deg, transparent 218deg); animation: stSpin calc(3s - var(--heat, 0) * 1.7s) linear infinite; mix-blend-mode: overlay; }
.sm.hot .sm-beacon i { animation-duration: 1s; }
.sm.win .sm-beacon i { animation-duration: .45s; }
.sm.win .sm-beacon, .sm.hot .sm-beacon { box-shadow: 0 0 60px 14px rgba(255, 60, 60, .8); }
.sm-marquee { position: absolute; left: 130px; right: 130px; top: 42px; height: 100px; border-radius: 26px; background: #12042c; border: 6px solid var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 30px rgba(255, 63, 180, .35); }
.sm-marquee span { font: 900 68px var(--font-display); letter-spacing: .28em; padding-left: .28em; color: #fff; text-shadow: 0 0 10px var(--neon-pink), 0 0 30px var(--neon-pink), 0 0 60px var(--neon-pink); }
.sm.hot .sm-marquee span { animation: stBlink .35s steps(1) infinite; }
.sm.win .sm-marquee span { color: var(--gold-light); text-shadow: 0 0 12px var(--gold), 0 0 40px var(--gold); animation: stBlink .25s steps(1) infinite; }
@keyframes stBlink { 50% { color: #fff; opacity: .35; } }
.sm-window { position: absolute; left: 45px; top: 162px; width: 1150px; height: 502px; display: flex; gap: 18px; padding: 18px; border-radius: 30px; background: #0a0a0a; border: 8px solid var(--gold-dark); box-shadow: inset 0 0 40px rgba(0, 0, 0, .9), 0 0 0 3px #4b3606; }
.sm-reel { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 16px; background: linear-gradient(90deg, #cfc6b0, #fffaf0 18%, #fffdf6 50%, #fffaf0 82%, #cfc6b0); }
.sm-reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .68), transparent 30%, transparent 70%, rgba(0, 0, 0, .68)); }
.sm-reel.antic { animation: stAntic .3s steps(1) infinite; }
@keyframes stAntic { 0% { box-shadow: 0 0 0 8px var(--neon-pink), 0 0 60px 14px var(--neon-pink); } 50% { box-shadow: 0 0 0 8px var(--gold), 0 0 60px 14px var(--gold); } }
.sm-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform, filter; }
.sm-item { height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.sm-item i { display: block; width: 62px; height: 62px; }
.sm-item i svg { width: 100%; height: 100%; display: block; }
.sm-item span { max-width: 100%; padding: 0 12px; font: 900 44px/1.1 var(--font-display); color: #2a1d00; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-item.hit span { color: var(--red); animation: stBlink .25s steps(1) 6; }
.sm-item.hit i { animation: stPop .5s ease 3; }
@keyframes stPop { 50% { transform: scale(1.3); } }
.sm-item.near i { animation: stNear .5s ease 2; filter: drop-shadow(0 0 14px var(--neon-cyan)); }
.sm-item.near span { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
@keyframes stNear { 50% { transform: scale(1.22) rotate(-4deg); } }
.sm-line.flash { animation: stBlink .12s steps(1) 4; background: var(--neon-cyan); box-shadow: 0 0 26px var(--neon-cyan); }
.sm-line { position: absolute; left: 34px; right: 34px; top: 410px; height: 8px; border-radius: 4px; background: var(--red-bright); box-shadow: 0 0 22px #ff3b44; z-index: 3; opacity: .9; }
.sm.win .sm-line { animation: stBlink .2s steps(1) infinite; }
.sm-arrow { position: absolute; top: 392px; z-index: 4; width: 0; height: 0; border-top: 22px solid transparent; border-bottom: 22px solid transparent; filter: drop-shadow(0 0 8px #ff3b44); }
.sm-arrow.l { left: 12px; border-left: 30px solid var(--red-bright); }
.sm-arrow.r { right: 12px; border-right: 30px solid var(--red-bright); }
.sm-deck { position: absolute; left: 60px; right: 60px; bottom: 36px; height: 74px; display: flex; gap: 14px; align-items: stretch; }
.sm-lcd { flex: 1; border-radius: 14px; background: #060606; border: 4px solid var(--gold-dark); padding: 4px 14px; display: flex; flex-direction: column; justify-content: center; box-shadow: inset 0 0 18px rgba(0, 0, 0, .9); }
.sm-lcd.wide { flex: 1.6; }
.sm-lcd small { font: 700 15px/1 var(--font-body); letter-spacing: .3em; color: #b57a00; }
.sm-lcd b { font: 900 34px/1.05 "Consolas", "Courier New", monospace; color: #ffb000; text-shadow: 0 0 14px rgba(255, 176, 0, .8); white-space: nowrap; overflow: hidden; }
.sm.win .sm-lcd.wide b { animation: stBlink .25s steps(1) infinite; }
.sm-btn { width: 190px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, #ff6a72, var(--red) 55%, #7d1014); border: 4px solid #ffb3b7; box-shadow: 0 6px 0 #5a0b10, 0 0 22px rgba(230, 57, 70, .5); }
.sm-btn i { font: 900 30px var(--font-body); font-style: normal; letter-spacing: .2em; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.sm-btn.lit { transform: translateY(5px); box-shadow: 0 1px 0 #5a0b10, 0 0 60px 10px rgba(255, 90, 100, .9); filter: brightness(1.3); }
.sm-lever { position: absolute; right: -78px; top: 260px; width: 60px; height: 240px; z-index: 5; }
.sm-lever .base { position: absolute; bottom: 0; left: 6px; width: 48px; height: 56px; border-radius: 12px; background: linear-gradient(90deg, #7a5a12, var(--gold), #7a5a12); }
.sm-lever .stick { position: absolute; bottom: 34px; left: 23px; width: 14px; height: 170px; transform-origin: 50% 100%; background: linear-gradient(90deg, #999, #eee, #888); border-radius: 7px; }
.sm-lever .knob { position: absolute; top: -34px; left: -20px; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9aa0, var(--red) 60%, #6d0f13); box-shadow: 0 6px 12px rgba(0, 0, 0, .5); }

/* ============ CARTAS ============ */
.cd { display: flex; flex-direction: column; align-items: center; gap: 26px; width: 100%; }
.cd-rule { font: 900 50px/1.15 var(--font-display); text-align: center; min-height: 60px; }
.cd-row { display: flex; align-items: center; gap: 70px; }
.cd-deck { position: relative; width: 150px; height: 215px; }
.cd-deck i { position: absolute; inset: 0; border-radius: 14px; border: 7px solid #fff8e1; background: repeating-linear-gradient(45deg, #a3151b 0 10px, #7f0f14 10px 20px); box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.cd-deck i:nth-child(1) { transform: translate(-10px, 8px); }
.cd-deck i:nth-child(2) { transform: translate(-5px, 4px); }
.cd-slot { width: 290px; height: 415px; }
.cd-tray { display: grid; grid-template-columns: repeat(3, 84px); gap: 10px; width: 280px; align-content: start; min-height: 240px; }
.tc { height: 118px; border-radius: 10px; background: #fffdf5; color: #15151a; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 800 32px/1 var(--font-display); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); animation: stTick .4s ease; }
.tc.red { color: var(--red); }
.tc.burn { background: repeating-linear-gradient(45deg, #a3151b 0 8px, #7f0f14 8px 16px); }
.tc svg { width: 32px; height: 32px; fill: currentColor; margin-top: 4px; }
.cd-tray-title { grid-column: 1 / -1; font-size: 20px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.pc { position: relative; width: var(--cw, 290px); height: calc(var(--cw, 290px) * 1.43); perspective: 1400px; }
.pc .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, 1.2, .4, 1); }
.pc.up .in { transform: rotateY(180deg); }
.pc .face { position: absolute; inset: 0; border-radius: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 16px 44px rgba(0, 0, 0, .55); }
.pc .back { border: 12px solid #fff8e1; background: repeating-linear-gradient(45deg, #a3151b 0 14px, #7f0f14 14px 28px); display: flex; align-items: center; justify-content: center; }
.pc .back::before { content: ""; position: absolute; inset: 8px; border: 4px solid var(--gold); border-radius: 10px; }
.pc .back svg { width: 40%; height: auto; position: relative; }
.pc .front { transform: rotateY(180deg); background: #fffdf5; border: 3px solid #ddd; color: #15151a; display: flex; align-items: center; justify-content: center; }
.pc .front.red { color: var(--red); }
.pc .front .suit { width: 46%; fill: currentColor; }
.pc .corner { position: absolute; left: 20px; top: 14px; text-align: center; font: 800 54px/1 var(--font-display); }
.pc .corner svg { width: 40px; height: 40px; display: block; margin: 2px auto 0; fill: currentColor; }
.pc .corner.br { left: auto; top: auto; right: 20px; bottom: 14px; transform: rotate(180deg); }
.pc.win .front { box-shadow: 0 0 0 10px var(--gold), 0 0 100px 24px rgba(245, 197, 66, .95); }
.pc.fade { opacity: 0; transition: opacity .5s; }

/* ============ COFRES ============ */
.chests { display: grid; gap: 34px 26px; justify-content: center; align-content: center; }
.ch { position: relative; width: 220px; text-align: center; transition: transform .2s, filter .2s, opacity .6s; }
.ch svg.box { width: 220px; height: 187px; overflow: visible; display: block; }
.ch.hot { transform: translateY(-16px) scale(1.07); filter: drop-shadow(0 0 30px rgba(245, 197, 66, .95)); }
.ch.shake { animation: stShake .12s linear infinite; }
@keyframes stShake { 0% { transform: translateX(-6px) rotate(-1.5deg); } 50% { transform: translateX(6px) rotate(1.5deg); } 100% { transform: translateX(-6px) rotate(-1.5deg); } }
.ch .lid { transform-origin: 16px 78px; transition: transform .9s cubic-bezier(.3, 1.5, .4, 1); }
.ch.open .lid { transform: rotate(-64deg); }
.ch .treasure { opacity: 0; transition: opacity .5s .2s; }
.ch.open .treasure { opacity: 1; }
.ch.trap .treasure { opacity: 0; }
.ch .beam { position: absolute; left: 50%; top: -170px; width: 340px; height: 340px; margin-left: -170px; pointer-events: none; opacity: 0; transition: opacity .6s; background: radial-gradient(closest-side, rgba(255, 240, 170, .9), rgba(255, 240, 170, 0) 72%); }
.ch.open .beam { opacity: 1; }
.ch.trap .beam { background: radial-gradient(closest-side, rgba(255, 60, 60, .8), rgba(255, 60, 60, 0) 72%); }
.ch .plate { margin: 12px auto 0; min-height: 52px; max-width: 220px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .55); border: 3px solid var(--gold-dark); font: 800 26px/1.15 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .5s cubic-bezier(.2, 1.5, .4, 1), background .3s; }
.ch .num { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font: 900 26px var(--font-display); color: var(--gold); text-shadow: 0 2px 0 #000; }
.ch.win .plate, .ch.safe .plate { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #2a1d00; border-color: #fff8e1; }
.ch.win .plate { transform: scale(1.2); }
.ch.trap .plate { background: rgba(192, 39, 45, .8); border-color: #ff9aa0; }
.ch.trap { opacity: .55; }
