body.jg-abierto { overflow: hidden; }
.jg-fondo { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(2, 4, 12, .72); backdrop-filter: blur(4px); animation: jg-in .25s both; }
.jg-caja { width: 100%; max-width: 560px; max-height: 94vh; overflow: auto; padding: 18px 18px 28px; border-radius: 24px 24px 0 0; background: var(--card, #0c1428); border: 1px solid var(--line, #1b2745); color: var(--ink, #eaf1ff); animation: jg-sube .4s cubic-bezier(.34, 1.4, .64, 1) both; }
.jg-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.jg-cab h2 { margin: 0; font-size: 1.35rem; }
.jg-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line, #1b2745); background: transparent; color: inherit; font-size: 1.4rem; cursor: pointer; }
.jg-cuerpo { position: relative; display: grid; gap: 12px; justify-items: center; text-align: center; padding-top: 10px; }
.jg-mut { margin: 0; color: var(--mut, #8c9cc2); }
.jg-mini { margin: 0; color: var(--mut, #8c9cc2); font-size: .82rem; }
.jg-aviso { margin: 0; color: #ffb547; font-size: .9rem; min-height: 1.2em; }
.jg-sub { margin: 6px 0 0; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mut, #8c9cc2); }
.jg-nombres { display: grid; gap: 8px; width: 100%; }
.jg-fila { display: flex; gap: 8px; }
.jg-campo { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #1b2745); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; }
.jg-btn { padding: 13px 22px; border-radius: 14px; border: 0; background: linear-gradient(135deg, #2f66ff, #19d3ff); color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.jg-btn:active { transform: scale(.95); }
.jg-btn.alt { background: transparent; border: 1px solid var(--line, #1b2745); color: inherit; font-weight: 600; }
.jg-btn:disabled { opacity: .5; }
.jg-grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.jg-juego { display: grid; gap: 4px; padding: 16px 10px; border-radius: 16px; border: 1px solid var(--line, #1b2745); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; cursor: pointer; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), border-color .2s; }
.jg-juego:active { transform: scale(.96); border-color: #3d7bff; }
.jg-juego b { font-size: 1.05rem; }
.jg-juego span { font-size: .8rem; color: var(--mut, #8c9cc2); }
.jg-ruleta { position: relative; width: 300px; max-width: 100%; margin: 6px auto; }
.jg-ruleta canvas { display: block; max-width: 100%; border-radius: 50%; box-shadow: 0 0 40px rgba(61, 123, 255, .35); }
.jg-puntero { position: absolute; top: -10px; left: 50%; width: 0; height: 0; margin-left: -14px; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 30px solid #ffd447; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.jg-res { display: grid; gap: 8px; justify-items: center; animation: jg-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.jg-ganador { font-size: 2.2rem; font-weight: 900; background: linear-gradient(135deg, #2f66ff, #19d3ff 60%, #5be3a0); -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-word; }
.jg-codigo { padding: 10px 18px; border-radius: 12px; border: 2px dashed #ffb547; font-size: 1.6rem; font-weight: 900; letter-spacing: .12em; color: #ffd447; }
.jg-pajitas { display: flex; gap: 12px; align-items: flex-end; height: 190px; }
.jg-pajita { display: grid; justify-items: center; align-items: end; gap: 4px; font-size: .8rem; width: 44px; }
.jg-pajita i { display: block; width: 14px; border-radius: 7px; background: linear-gradient(#ffb547, #ff7ab6); transition: height .6s cubic-bezier(.34, 1.56, .64, 1); }
.jg-dados { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.jg-dado-w { display: grid; gap: 4px; justify-items: center; font-size: .8rem; }
.jg-dado { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: #0c1428; font-size: 2rem; font-weight: 900; box-shadow: 0 4px 0 #b8c2d8; }
.jg-dado.empate { outline: 3px solid #ffb547; }
.jg-bomba { font-size: 5rem; animation: jg-late .7s infinite; }
.jg-moneda { width: 130px; height: 130px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffe28a, #d89b1e); color: #5a3a00; font-size: 1.6rem; font-weight: 900; box-shadow: 0 6px 0 #a06f10; }
.jg-moneda.gira { animation: jg-gira .5s linear infinite; }
.jg-raspa { position: relative; width: 300px; height: 150px; border-radius: 16px; overflow: hidden; background: #0c1428; border: 2px solid #ffb547; }
.jg-raspa-txt { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; font-size: 1.5rem; font-weight: 900; color: #ffd447; }
.jg-raspa canvas { position: absolute; inset: 0; cursor: crosshair; }
.jg-ruedas { display: flex; gap: 10px; }
.jg-rueda { width: 84px; height: 100px; display: grid; place-items: center; border-radius: 16px; background: #fff; color: #d32f5a; font-size: 3rem; font-weight: 900; box-shadow: inset 0 0 0 4px #ffd447; }
.jg-rueda.fija { animation: jg-pop .3s both; }
.jg-cofres { display: flex; gap: 14px; }
.jg-cofre { width: 86px; height: 86px; border-radius: 18px; border: 2px solid #ffb547; background: rgba(255, 183, 71, .12); font-size: 2.6rem; cursor: pointer; animation: jg-late 1.6s infinite; }
.jg-cofre.abre { animation: jg-pop .5s both; }
.jg-det { width: 100%; text-align: left; border: 1px solid var(--line, #1b2745); border-radius: 12px; padding: 8px 12px; font-size: .9rem; }
.jg-det ul { margin: 6px 0; padding-left: 18px; }
.jg-confeti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.jg-confeti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: jg-cae 2.4s ease-in both; }
@keyframes jg-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes jg-sube { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes jg-pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes jg-late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes jg-gira { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes jg-cae { to { transform: translate(var(--dx, 0), 520px) rotate(540deg); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .jg-bomba, .jg-cofre, .jg-moneda.gira, .jg-confeti i { animation: none; } }
.vl-cuerpo { display: grid; gap: 12px; padding-top: 10px; }
.vl-cuerpo h3 { margin: 4px 0 0; font-size: 1rem; }
.vl-est { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.vl-b { padding: 12px 0; border-radius: 12px; border: 1px solid var(--line, #1b2745); background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.vl-b.on { background: #ffb547; border-color: #ffb547; color: #1a1200; }
.vl-b.on::after { content: ' ★'; }
.hab { display: grid; gap: 8px; padding: 12px 14px; margin: 10px 0; border-radius: 14px; border: 1px solid var(--line, #1b2745); background: rgba(61, 123, 255, .08); }
.hab p { margin: 0; }
