/* Sirius Casino · SiriusCore. Lujo nocturno: negro aterciopelado, oro y tapete verde, con el violeta del portal al fondo. */
:root {
    --bg: #07060d;
    --bg2: #0d0b17;
    --panel: #12101e;
    --panel2: #1a1629;
    --panel3: #231e36;
    --line: rgba(232, 193, 112, .14);
    --line-strong: rgba(232, 193, 112, .32);
    --gold: #e8c170;
    --gold2: #b8873a;
    --gold3: #7a5520;
    --gold-hi: #fff1c9;
    --gold-grad: linear-gradient(135deg, #fff1c9 0%, #e8c170 38%, #b8873a 70%, #fbe3a6 100%);
    --violet: #8b5cf6;
    --violet-glow: rgba(139, 92, 246, .35);
    --felt: #0f3d2e;
    --felt2: #082219;
    --red: #e5484d;
    --red2: #9e1c22;
    --green: #3dd68c;
    --text: #f4efe6;
    --text2: #d6cdbd;
    --muted: #a39cb4;
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -20px rgba(0, 0, 0, .9);
    --display: "Cinzel", "Trajan Pro", "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --font: "Inter", "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ───────── fondo ───────── */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
    background: radial-gradient(1200px 700px at 50% -10%, #1a1230 0%, transparent 60%), var(--bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 26s ease-in-out infinite alternate; }
.o1 { width: 520px; height: 520px; left: -140px; top: 10%; background: radial-gradient(circle, #5b2fb8 0%, transparent 70%); }
.o2 { width: 460px; height: 460px; right: -120px; top: 40%; background: radial-gradient(circle, #8a5a16 0%, transparent 70%); animation-delay: -9s; }
.o3 { width: 420px; height: 420px; left: 35%; bottom: -200px; background: radial-gradient(circle, #0f5a40 0%, transparent 70%); animation-delay: -17s; opacity: .35; }
.grain { position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
    background-image: repeating-radial-gradient(circle at 17% 32%, #fff 0 .6px, transparent .6px 3px); }
@keyframes drift { to { transform: translate(60px, -40px) scale(1.12); } }

/* ───────── títulos y botones ───────── */
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--display); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px;
    border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text);
    font-weight: 600; letter-spacing: .02em; transition: transform .12s, background .2s, border-color .2s, box-shadow .2s; user-select: none;
    text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--gold); background: rgba(232, 193, 112, .08); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold { border: 0; color: #2a1a05; background: var(--gold-grad); box-shadow: 0 6px 24px -8px rgba(232, 193, 112, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { background: var(--gold-grad); filter: brightness(1.07); box-shadow: 0 10px 34px -8px rgba(232, 193, 112, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .05); border-color: transparent; }
.btn-danger { border-color: rgba(229, 72, 77, .5); color: #ffb3b5; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.icon { width: 18px; height: 18px; flex: none; }

.card { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.input { height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .35); padding: 0 14px;
    outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 193, 112, .18); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ───────── entrada (emparejar) ───────── */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.gate-inner { width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.crest { width: 92px; height: 92px; margin-bottom: 22px; filter: drop-shadow(0 8px 30px rgba(232, 193, 112, .35)); }
.gate h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 76px); line-height: .95; margin: 0 0 14px;
    letter-spacing: .08em; text-transform: uppercase; }
.gate h1 small { display: block; font-size: .32em; letter-spacing: .5em; color: var(--muted); margin-top: 14px; font-weight: 500; }
.gate p.lead { color: var(--text2); font-size: 17px; max-width: 46ch; margin: 0 0 26px; }
.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--text2); }
.steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display);
    border: 1px solid var(--line-strong); color: var(--gold); font-size: 13px; }
.steps code { font-family: var(--mono); background: rgba(232, 193, 112, .1); color: var(--gold-hi); padding: 1px 7px; border-radius: 6px; }
.link-card { padding: 30px; position: relative; overflow: hidden; }
.link-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, rgba(232, 193, 112, .55), transparent 40%, transparent 60%, rgba(139, 92, 246, .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.link-card h2 { margin: 0 0 6px; font-family: var(--display); letter-spacing: .12em; font-size: 20px; text-transform: uppercase; }
.code-input { font-family: var(--mono); font-size: 30px; letter-spacing: .32em; text-align: center; text-transform: uppercase; height: 68px;
    padding: 0 8px 0 18px; }
.code-input::placeholder { color: rgba(255, 255, 255, .15); }
.link-card form { display: grid; gap: 14px; margin-top: 20px; }
.wait { text-align: center; display: grid; gap: 14px; justify-items: center; }
.ring { width: 96px; height: 96px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(232, 193, 112, .15);
    border-top-color: var(--gold); animation: spin 1.1s linear infinite; }
.ring span { font-family: var(--mono); font-size: 22px; color: var(--gold-hi); }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { padding: 12px 14px; border-radius: 12px; background: rgba(232, 193, 112, .07); border: 1px solid var(--line); color: var(--text2); font-size: 14px; }
.notice.bad { background: rgba(229, 72, 77, .08); border-color: rgba(229, 72, 77, .3); color: #ffc9cb; }

/* ───────── barra superior ───────── */
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
    background: rgba(7, 6, 13, .72); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-weight: 700; letter-spacing: .2em; font-size: 15px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a, .navbtn { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: color .2s, background .2s;
    display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; }
.nav a:hover, .navbtn:hover { color: var(--text); }
.nav a.on, .navbtn.on { color: var(--gold-hi); background: rgba(232, 193, 112, .1); box-shadow: inset 0 0 0 1px var(--line); }
.navbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.navbtn svg { transition: transform .2s; }
.dd { position: relative; }
/* Fijo y centrado en la pantalla: nunca se sale por un lado, sea cual sea el ancho. */
.mega { position: fixed; left: 50%; transform: translateX(-50%); top: 64px; z-index: 60; width: min(640px, calc(100vw - 32px)); padding: 12px; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; max-height: 60vh; overflow: auto; }
.mini { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--text); border: 1px solid transparent;
    transition: border-color .2s, transform .2s; }
.mini:hover { border-color: var(--line-strong); transform: translateX(2px); }
.mini-art { width: 54px; height: 54px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 0, 0, .35); overflow: hidden; }
.mini-art svg { width: 82%; height: 82%; }
.mini b { display: block; font-size: 14px; }
.mini small { color: var(--muted); font-size: 12px; }
.mini.closed { filter: grayscale(.85); opacity: .7; }
.mega-all { display: block; text-align: right; margin-top: 8px; padding: 6px 8px 2px; color: var(--gold); text-decoration: none; font-weight: 600; font-size: 13px; }
.spacer { flex: 1; }
.balance { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border-radius: 999px; background: rgba(0, 0, 0, .4);
    border: 1px solid var(--line-strong); }
.balance .chipico { width: 22px; height: 22px; }
.balance .num { font-size: 16px; font-weight: 700; color: var(--gold-hi); min-width: 3ch; text-align: right; transition: color .3s; }
.balance.up .num { color: var(--green); }
.balance.down .num { color: #ffb3b5; }
.balance .btn { min-height: 30px; padding: 0 12px; font-size: 13px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--panel2); display: grid; place-items: center;
    font-family: var(--display); color: var(--gold); font-weight: 700; position: relative; }
.menu { position: absolute; right: 0; top: 46px; min-width: 220px; padding: 8px; display: grid; gap: 2px; z-index: 60; }
.menu a, .menu button, .sheet a, .sheet button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 12px; border-radius: 10px; border: 0;
    background: none; color: var(--text2); text-decoration: none; font-size: 14px; width: 100%; }
.menu a:hover, .menu button:hover, .sheet a:hover, .sheet button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.menu svg, .sheet svg { width: 18px; height: 18px; flex: none; color: var(--gold); }
.menu .who, .sheet .who { display: flex; align-items: center; gap: 12px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.avatar.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.bottomnav { display: none; }
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(4, 3, 8, .6); backdrop-filter: blur(4px); display: flex; align-items: flex-end; animation: toastIn .2s; }
.sheet { width: 100%; border-radius: 22px 22px 0 0; padding: 10px 14px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 2px; animation: sheetUp .28s cubic-bezier(.2, .8, .2, 1); }
.sheet .grip { width: 44px; height: 5px; border-radius: 99px; background: var(--line-strong); justify-self: center; margin: 2px 0 8px; }
.sheet a, .sheet button { font-size: 16px; padding: 14px 12px; }
@keyframes sheetUp { from { transform: translateY(100%); } }

/* Ancho del contenido: crece en pantallas grandes y panorámicas. */
:root { --maxw: 1240px; }
@media (min-width: 1600px) { :root { --maxw: 1520px; } }
@media (min-width: 2200px) { :root { --maxw: 1960px; } }
main { max-width: var(--maxw); margin: 0 auto; padding: 26px 16px 90px; }
.view-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.view-title h1 { margin: 0; font-family: var(--display); font-size: clamp(26px, 4vw, 38px); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }

/* ───────── lobby ───────── */
.hero { position: relative; overflow: hidden; padding: 34px 30px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
    background: radial-gradient(800px 300px at 80% 0%, rgba(232, 193, 112, .16), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(139, 92, 246, .18), transparent 60%), var(--panel); }
.hero h1 { font-family: var(--display); font-size: clamp(30px, 5vw, 52px); margin: 6px 0 10px; letter-spacing: .08em; line-height: 1.02; text-transform: uppercase; }
.hero p { color: var(--text2); margin: 0 0 18px; max-width: 48ch; }
.jackpot { text-align: center; padding: 22px; border-radius: 16px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-strong);
    box-shadow: inset 0 0 40px rgba(232, 193, 112, .08); }
.jackpot .eyebrow { display: block; margin-bottom: 10px; }
.odometer { display: inline-flex; gap: 4px; font-family: var(--mono); font-size: clamp(30px, 5vw, 46px); font-weight: 700; }
.odometer .d { width: .78em; height: 1.3em; border-radius: 8px; overflow: hidden; position: relative;
    background: linear-gradient(180deg, #1b1527, #0b0912); border: 1px solid rgba(232, 193, 112, .25); box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .6); }
.odometer .d .roll { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center;
    transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); color: var(--gold-hi); text-shadow: 0 0 18px rgba(232, 193, 112, .5); }
.odometer .d .roll span { height: 1.3em; line-height: 1.3em; }
.odometer .sep { align-self: flex-end; color: var(--gold); padding-bottom: .1em; }

/* Se reparten solas: caben más columnas cuanto más ancha es la pantalla (y más juegos se añadan). */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; margin-top: 14px; }
.game .kind { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 26px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 16px; color: var(--text2); }
.section-head a { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 14px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.jackpot-sub { margin-top: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.chip-f { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text2); font-weight: 600; font-size: 13px; }
.chip-f:hover { border-color: var(--line-strong); color: var(--text); }
.chip-f.on { background: rgba(232, 193, 112, .12); border-color: var(--gold); color: var(--gold-hi); }
.search { max-width: 280px; height: 42px; }
.game { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); min-height: 250px; padding: 18px;
    display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: var(--text); isolation: isolate;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s; box-shadow: var(--shadow); }
.game:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 22px 50px -20px rgba(232, 193, 112, .35); }
.game .art { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.game:hover .art { transform: scale(1.06); }
.game .art svg { width: 64%; max-height: 64%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(5, 4, 10, .92)); }
.game h3 { margin: 0; font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-size: 19px; }
.game p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.game .tag { position: absolute; top: 14px; left: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
    background: rgba(0, 0, 0, .5); border: 1px solid var(--line-strong); color: var(--gold-hi); }
.game.closed { filter: grayscale(.85) brightness(.7); }
.game.closed .tag { color: #ffb3b5; border-color: rgba(229, 72, 77, .5); }
.notice-bar { max-width: var(--maxw); margin: 14px auto 0; padding: 10px 16px; border-radius: 12px; text-align: center; font-size: 14px;
    background: linear-gradient(90deg, rgba(232, 193, 112, .12), rgba(139, 92, 246, .12)); border: 1px solid var(--line-strong); color: var(--gold-hi); }
.notice-bar.closed { background: rgba(229, 72, 77, .1); border-color: rgba(229, 72, 77, .4); color: #ffc9cb; }
@media (max-width: 1272px) { .notice-bar { margin-left: 16px; margin-right: 16px; } }
.g-slots { background: radial-gradient(circle at 50% 35%, #3a2160, #120b20 70%); }
.g-roulette { background: radial-gradient(circle at 50% 35%, #5a1a22, #160609 70%); }
.g-blackjack { background: radial-gradient(circle at 50% 35%, #145a41, #04140e 70%); }
.g-mines { background: radial-gradient(circle at 50% 35%, #2d3a4a, #0a0e13 70%); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }
.panel { padding: 18px 20px; }
.panel h2 { margin: 0 0 12px; font-family: var(--display); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.feed { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.feed-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.feed-row img { width: 26px; height: 26px; border-radius: 6px; image-rendering: pixelated; }
.feed-row .x { color: var(--gold-hi); font-weight: 700; }
.feed-new { animation: flashIn .8s ease; }
@keyframes flashIn { from { background: rgba(232, 193, 112, .25); transform: translateX(-6px); } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--mono); font-size: 20px; color: var(--text); }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ───────── controles de apuesta ───────── */
.betbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .4); overflow: hidden; }
.stepper button { width: 40px; height: 42px; border: 0; background: none; color: var(--gold); font-size: 20px; }
.stepper button:hover { background: rgba(232, 193, 112, .1); }
.stepper input { width: 96px; height: 42px; text-align: center; border: 0; background: none; outline: none; font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--gold-hi); }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.presets button { min-height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text2); font-size: 13px; font-family: var(--mono); }
.presets button:hover { border-color: var(--gold); color: var(--gold-hi); }
.toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); font-size: 13px; cursor: pointer; user-select: none; }
.toggle input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: #2b2540; position: relative; transition: background .2s; cursor: pointer; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #cfc6e6; transition: transform .2s; }
.toggle input:checked { background: var(--gold2); }
.toggle input:checked::after { transform: translateX(16px); background: #fff3d6; }

/* fichas */
.chip { --c: #3b82f6; --c2: #1e3a8a; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none;
    font: 700 11px var(--mono); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); border: 0;
    background: radial-gradient(circle at 50% 50%, var(--c) 0 52%, transparent 53%),
    repeating-conic-gradient(from 0deg, #fff 0 10deg, var(--c) 10deg 30deg), var(--c);
    box-shadow: inset 0 0 0 3px var(--c2), inset 0 0 0 7px rgba(255, 255, 255, .1), 0 4px 10px rgba(0, 0, 0, .55); transition: transform .15s; }
.chip::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .55); }
.chip.sel { transform: translateY(-6px) scale(1.06); box-shadow: inset 0 0 0 3px var(--c2), 0 0 0 3px var(--gold), 0 10px 22px rgba(232, 193, 112, .35); }
.chip-1 { --c: #d9d4c7; --c2: #8f887a; color: #2a2620; text-shadow: none; }
.chip-5 { --c: #d23b3b; --c2: #7c1414; }
.chip-25 { --c: #1f9e5b; --c2: #0b5530; }
.chip-100 { --c: #23232b; --c2: #000; }
.chip-500 { --c: #7c3aed; --c2: #3b1580; }
.chip-1000 { --c: #e0a526; --c2: #8a5a0c; color: #2a1a05; text-shadow: none; }
.chip-5000 { --c: #2b6fd6; --c2: #0c2e66; }

/* ───────── tragaperras ───────── */
.slots-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.cabinet { position: relative; padding: 22px; border-radius: 28px;
    background: linear-gradient(180deg, #2a1d10, #120b05); box-shadow: inset 0 0 0 2px #6b4a1c, inset 0 0 0 7px #1a1107, inset 0 0 0 9px #c89a4a,
    0 30px 70px -30px rgba(0, 0, 0, .95), 0 0 80px -30px rgba(232, 193, 112, .35); }
.cabinet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.marquee { font-family: var(--display); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: 18px; }
.lights { display: flex; gap: 6px; }
.lights i { width: 8px; height: 8px; border-radius: 50%; background: #ffd77a; box-shadow: 0 0 8px #ffb84d; animation: blink 1.4s infinite; }
.lights i:nth-child(2n) { animation-delay: .7s; }
@keyframes blink { 50% { opacity: .25; box-shadow: none; } }
.reels { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px; border-radius: 16px;
    background: linear-gradient(180deg, #0a0712, #15101f 50%, #0a0712); box-shadow: inset 0 10px 30px rgba(0, 0, 0, .9), inset 0 -10px 30px rgba(0, 0, 0, .9); }
.reel { position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #e9e1cf, #fffaf0 50%, #e9e1cf);
    aspect-ratio: 1 / 3; box-shadow: inset 0 18px 18px -12px rgba(0, 0, 0, .55), inset 0 -18px 18px -12px rgba(0, 0, 0, .55); }
.strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.strip.blur { filter: blur(1.4px) saturate(1.2); }
.cell { height: calc(100% / 3); display: grid; place-items: center; }
.reel .strip .cell { height: var(--cell); }
.cell svg { width: 72%; height: 72%; image-rendering: pixelated; shape-rendering: crispEdges; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
.cell.win svg { animation: pop .7s ease-in-out infinite alternate; }
@keyframes pop { to { transform: scale(1.14); filter: drop-shadow(0 0 10px rgba(255, 215, 120, .9)); } }
.paylines { position: absolute; inset: 10px; pointer-events: none; }
.paylines polyline { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px currentColor); opacity: 0; }
.paylines polyline.show { animation: drawLine 1.1s ease forwards; }
@keyframes drawLine { from { opacity: 0; stroke-dasharray: 0 2000; } to { opacity: .95; stroke-dasharray: 2000 0; } }
.win-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; text-align: center;
    padding: 14px 26px; border-radius: 16px; background: rgba(8, 6, 14, .82); border: 1px solid var(--gold); box-shadow: 0 0 60px rgba(232, 193, 112, .5); z-index: 5; }
.win-banner.on { animation: banner 2.6s cubic-bezier(.2, .8, .2, 1) forwards; }
.win-banner b { display: block; font-family: var(--display); letter-spacing: .2em; font-size: 14px; color: var(--gold); }
.win-banner span { font-family: var(--mono); font-size: 40px; font-weight: 800; }
@keyframes banner { 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } 20% { transform: translate(-50%, -50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
.cabinet-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.spin-btn { width: 86px; height: 86px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #2a1a05; font-family: var(--display); font-weight: 800;
    letter-spacing: .1em; font-size: 14px; background: radial-gradient(circle at 35% 30%, #fff6dc, #e8c170 45%, #a87420);
    box-shadow: 0 0 0 4px #3a2710, 0 0 0 6px #c89a4a, 0 14px 30px rgba(0, 0, 0, .6), 0 0 40px rgba(232, 193, 112, .35); transition: transform .12s, filter .2s; }
.spin-btn:hover { filter: brightness(1.08); }
.spin-btn:active { transform: scale(.95); }
.spin-btn:disabled { filter: grayscale(.6) brightness(.7); cursor: not-allowed; }
.spin-btn.busy svg { animation: spin 1s linear infinite; }
.readout { display: grid; gap: 2px; text-align: center; }
.readout span { font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.readout b { font-family: var(--mono); font-size: 20px; color: var(--gold-hi); }
.free-badge { position: absolute; top: 12px; right: 22px; padding: 4px 12px; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 700; font-size: 12px;
    letter-spacing: .1em; box-shadow: 0 0 20px var(--violet-glow); }
.paytable { display: grid; gap: 6px; }
.pay-row { display: grid; grid-template-columns: 36px 1fr repeat(3, 44px); align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; }
.pay-row svg { width: 30px; height: 30px; image-rendering: pixelated; shape-rendering: crispEdges; }
.pay-row .h { color: var(--muted); font-size: 11px; text-align: center; }
.pay-row span { text-align: center; color: var(--text2); }

/* ───────── ruleta ───────── */
.roulette-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 20px; align-items: start; }
.wheel-box { position: relative; padding: 16px; display: grid; place-items: center; }
.wheel-box canvas { width: 100%; max-width: 380px; aspect-ratio: 1; display: block; }
.wheel-result { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--display); font-size: 34px; font-weight: 800; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.wheel-result.on { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
.wheel-result.red { background: radial-gradient(circle, #e5484d, #8f1219); box-shadow: 0 0 40px rgba(229, 72, 77, .7); }
.wheel-result.black { background: radial-gradient(circle, #33303c, #0b0a10); box-shadow: 0 0 40px rgba(255, 255, 255, .25); }
.wheel-result.green { background: radial-gradient(circle, #23b26b, #0b5a33); box-shadow: 0 0 40px rgba(61, 214, 140, .6); }
.history { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; justify-content: center; }
.history i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 700 12px var(--mono); font-style: normal; }
.history i.red { background: var(--red2); }
.history i.black { background: #1f1c27; border: 1px solid #3a3446; }
.history i.green { background: #0d6b3d; }
.felt { border-radius: 22px; padding: 18px; background: radial-gradient(ellipse at 50% 0%, #17543f, var(--felt) 45%, var(--felt2));
    box-shadow: inset 0 0 0 2px rgba(232, 193, 112, .35), inset 0 0 60px rgba(0, 0, 0, .55), var(--shadow); position: relative; }
.felt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .18; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .25) .6px, transparent .7px); background-size: 4px 4px; }
.table-grid { display: grid; grid-template-columns: 52px repeat(12, 1fr) 52px; grid-template-rows: repeat(3, 54px) 46px 46px; gap: 0;
    position: relative; user-select: none; border: 2px solid rgba(255, 255, 255, .75); border-radius: 8px; overflow: visible; }
.tc { position: relative; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .55); font-family: var(--display); font-weight: 700; font-size: 17px;
    color: #fff; cursor: pointer; transition: background .15s; }
.tc:hover { background: rgba(255, 255, 255, .1); }
.tc .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.tc.red .n { background: #b3232b; }
.tc.black .n { background: #121117; }
.tc.zero { grid-row: 1 / span 3; grid-column: 1; background: rgba(13, 107, 61, .6); border-radius: 30px 0 0 30px; }
.tc.out { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.tc.hit { animation: hit 1s ease 3; }
@keyframes hit { 50% { background: rgba(255, 220, 130, .45); box-shadow: inset 0 0 20px rgba(255, 230, 160, .9); } }
.diamond { width: 18px; height: 18px; transform: rotate(45deg); border-radius: 3px; }
.hot { position: absolute; z-index: 3; cursor: pointer; }
.hot:hover { background: rgba(255, 230, 160, .35); border-radius: 4px; }
.placed { position: absolute; z-index: 4; transform: translate(-50%, -50%) scale(.62); pointer-events: none; animation: drop .25s ease; }
@keyframes drop { from { transform: translate(-50%, -110%) scale(.8); opacity: 0; } }
.placed .count { position: absolute; bottom: -6px; right: -10px; background: #000; color: var(--gold-hi); border-radius: 999px; padding: 0 6px; font: 700 15px var(--mono); }
.chip-rack { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 4px 4px; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.table-actions .total { margin-left: auto; font-family: var(--mono); color: var(--gold-hi); }
.table-scroll { overflow-x: auto; padding-bottom: 6px; }
.table-scroll .table-grid { min-width: 720px; }

/* ───────── cartas ───────── */
.bj-table { min-height: 520px; padding: 28px 22px; display: grid; grid-template-rows: auto 1fr auto auto; gap: 18px; text-align: center; overflow: hidden; }
.arc { font-family: var(--display); letter-spacing: .3em; font-size: 12px; color: rgba(255, 236, 190, .7); text-transform: uppercase; }
.arc b { color: var(--gold-hi); font-size: 15px; display: block; letter-spacing: .4em; margin-bottom: 4px; }
.hand-zone { display: grid; gap: 10px; justify-items: center; }
.hand-zone .label { font-size: 12px; color: rgba(255, 255, 255, .7); letter-spacing: .14em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.total-pill { min-width: 34px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); font: 700 14px var(--mono); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.total-pill.bust { background: var(--red2); }
.total-pill.bj { background: var(--gold-grad); color: #2a1a05; }
.cards { display: flex; justify-content: center; min-height: 128px; }
.pcard { width: 86px; height: 122px; border-radius: 10px; margin-left: -34px; position: relative; flex: none; perspective: 800px; animation: deal .45s cubic-bezier(.2, .8, .2, 1) both; }
.pcard:first-child { margin-left: 0; }
@keyframes deal { from { transform: translate(260px, -240px) rotate(-30deg); opacity: 0; } }
.pcard .face, .pcard .back { position: absolute; inset: 0; border-radius: inherit; backface-visibility: hidden; transition: transform .5s; }
.pcard .face { background: linear-gradient(160deg, #ffffff, #f1ece1); box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .1);
    color: #16131c; display: block; }
.pcard.red .face { color: #c2202a; }
.pcard .face .tl, .pcard .face .br { position: absolute; font: 800 18px/1 var(--display); display: grid; justify-items: center; gap: 1px; }
.pcard .face .tl { top: 8px; left: 8px; }
.pcard .face .br { bottom: 8px; right: 8px; transform: rotate(180deg); }
.pcard .face .tl i, .pcard .face .br i { font-style: normal; font-size: 15px; }
.pcard .face .pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; }
.pcard .back { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #2a1a52 0 6px, #3b2775 6px 12px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 0 4px #f4efe6, inset 0 0 0 6px var(--gold2); }
.pcard.hidden .face { transform: rotateY(-180deg); }
.pcard.hidden .back { transform: rotateY(0deg); }
.hands { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.hand { padding: 10px 14px 12px; border-radius: 16px; transition: background .2s, box-shadow .2s; }
.hand.active { background: rgba(255, 236, 190, .08); box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .35); }
.hand .res { margin-top: 6px; font-family: var(--display); letter-spacing: .16em; font-size: 13px; text-transform: uppercase; }
.res.win, .res.blackjack { color: #9ff5c6; }
.res.lose { color: #ffb3b5; }
.res.push { color: #e8e1cf; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ───────── minas ───────── */
.mines-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.mines-board { padding: 18px; border-radius: 22px; background: linear-gradient(180deg, #1b2230, #0d1118); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06), var(--shadow); }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 560px; margin: 0 auto; }
.tile { aspect-ratio: 1; border-radius: 12px; border: 0; position: relative; perspective: 600px; padding: 0; background: none; }
.tile .f, .tile .b { position: absolute; inset: 0; border-radius: inherit; backface-visibility: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1); display: grid; place-items: center; }
.tile .f { image-rendering: pixelated;
    background: linear-gradient(135deg, rgba(255, 255, 255, .14), transparent 40%), repeating-linear-gradient(0deg, transparent 0 25%, rgba(0, 0, 0, .12) 25% 26%),
    repeating-linear-gradient(90deg, transparent 0 25%, rgba(0, 0, 0, .1) 25% 26%), #6c6f78;
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .28), inset 0 4px 0 rgba(255, 255, 255, .12), 0 6px 14px rgba(0, 0, 0, .5); }
.tile:not(:disabled):hover .f { filter: brightness(1.18); transform: translateY(-3px); }
.tile .b { transform: rotateY(180deg); background: #11161f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tile .b svg { width: 62%; height: 62%; image-rendering: pixelated; shape-rendering: crispEdges; }
.tile.open .f { transform: rotateY(-180deg); }
.tile.open .b { transform: rotateY(0); }
.tile.gem .b { background: radial-gradient(circle, rgba(79, 227, 214, .35), #0d1d22 70%); box-shadow: inset 0 0 0 1px rgba(79, 227, 214, .5), 0 0 24px rgba(79, 227, 214, .25); }
.tile.boom .b { background: radial-gradient(circle, #ff9b3d, #b3231b 55%, #2a0705); animation: shake .5s; box-shadow: 0 0 40px rgba(255, 120, 40, .7); }
.tile.ghost .b { opacity: .55; }
.tile:disabled { cursor: default; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.mult { text-align: center; }
.mult b { display: block; font-family: var(--mono); font-size: 46px; color: var(--gold-hi); text-shadow: 0 0 30px rgba(232, 193, 112, .4); }
.mult span { font-size: 12px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.side { display: grid; gap: 16px; padding: 20px; }
.range { width: 100%; accent-color: var(--gold); }

/* ───────── cartera, justo, ajustes ───────── */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bigbal { font-family: var(--mono); font-size: 44px; font-weight: 800; }
.conv { font-size: 13px; color: var(--muted); }
.rows { display: grid; gap: 4px; max-height: 420px; overflow: auto; }
.row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025); font-size: 14px; }
.row .plus { color: var(--green); font-family: var(--mono); }
.row .minus { color: #ffb3b5; font-family: var(--mono); }
.state { font-size: 11px; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--line); }
.state.done { color: #9ff5c6; border-color: rgba(61, 214, 140, .4); }
.state.failed { color: #ffb3b5; border-color: rgba(229, 72, 77, .4); }
.state.pending, .state.unknown { color: var(--gold-hi); }
.mono-box { font-family: var(--mono); font-size: 12px; word-break: break-all; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: var(--text2); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; align-items: center; }
.kv > span { color: var(--muted); font-size: 13px; }
.formrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.formrow .field { flex: 1; min-width: 160px; }

/* ───────── avisos y confeti ───────── */
#toasts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: rgba(20, 16, 30, .96); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: toastIn .3s ease;
    font-size: 14px; pointer-events: auto; }
.toast.bad { border-color: rgba(229, 72, 77, .55); }
.toast.good { border-color: rgba(61, 214, 140, .55); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }

.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(4, 3, 8, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: toastIn .2s; }
.modal { width: min(560px, 100%); max-height: 86vh; overflow: auto; padding: 24px; }
.modal h2 { margin: 0 0 14px; font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; }

/* ───────── tamaños de pantalla ─────────
 * Panorámica (≥1600): más ancho y más columnas. Escritorio: lo de arriba. Tablet (≤1080): los juegos en una columna,
 * menú arriba. Móvil (≤760): barra inferior con lo básico (Inicio, Juegos, Cartera, Menú), nunca con cada juego.
 * Además, la mesa de cada juego se limita por la ALTURA de la pantalla para que quepa sin desplazarse (pantallas
 * anchas y bajas, o el móvil en horizontal). */
.reels { width: clamp(280px, calc((100dvh - 390px) * 1.72), 100%); margin: 0 auto; }
.games.featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
/* Las columnas de una mesa pueden encoger: lo que no quepa (el tapete de la ruleta) se desplaza dentro. */
.slots-wrap > *, .roulette-wrap > *, .mines-wrap > *, .split > *, .grid2 > * { min-width: 0; }
.wheel-box canvas { max-width: clamp(240px, calc(100dvh - 240px), 380px); }
.grid5 { max-width: min(560px, calc(100dvh - 200px)); min-width: min(100%, 300px); }
@media (min-width: 1600px) {
    .slots-wrap { grid-template-columns: 1fr 340px; }
    .roulette-wrap { grid-template-columns: minmax(420px, 520px) 1fr; }
    .wheel-box canvas { max-width: min(500px, calc(100dvh - 240px)); }
    .mines-wrap { grid-template-columns: 360px 1fr; }
    .grid5 { max-width: min(680px, calc(100dvh - 200px)); }
    .pcard { width: 100px; height: 142px; margin-left: -40px; }
    .pcard .face .pip { font-size: 54px; }
    .bj-table { min-height: 600px; }
}
@media (max-width: 1080px) {
    .slots-wrap, .roulette-wrap, .mines-wrap { grid-template-columns: 1fr; }
    .roulette-wrap .wheel-box { max-width: 460px; width: 100%; margin: 0 auto; }
    .mines-wrap .side { order: 2; }
    .nav a, .navbtn { padding: 8px 10px; }
    .nav a[href="#/justo"] { display: none; }
}
@media (max-width: 760px) {
    .gate-inner, .hero, .split, .grid2 { grid-template-columns: 1fr; }
    .gate-inner { gap: 26px; }
    .nav, .balance .btn, .desk { display: none; }
    .topbar-inner { gap: 10px; }
    .brand span { display: none; }
    main { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
    .games { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .game { min-height: 180px; padding: 14px; }
    .game h3 { font-size: 15px; }
    .game p { display: none; }
    .view-title { align-items: stretch; }
    .search { max-width: none; width: 100%; }
    .bottomnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(9, 7, 15, .92); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
    .bottomnav a, .bottomnav button { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: 11px;
        border-radius: 10px; border: 0; background: none; font-weight: 600; }
    .bottomnav .on { color: var(--gold-hi); background: rgba(232, 193, 112, .08); }
    .bottomnav svg { width: 22px; height: 22px; }
    .hero { padding: 24px 20px; }
    .roulette-wrap .wheel-box { max-width: 340px; }
    .cabinet { padding: 14px; border-radius: 22px; }
    .cabinet-top { justify-content: center; }
    .cabinet-top .lights { display: none; }
    .marquee { font-size: 15px; letter-spacing: .18em; white-space: nowrap; }
    .reels { gap: 5px; padding: 6px; }
    .pcard { width: 66px; height: 94px; margin-left: -28px; }
    .pcard .face .pip { font-size: 34px; }
    .pcard .face .tl, .pcard .face .br { font-size: 14px; }
    .kv { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .bigbal { font-size: 34px; }
}
/* Pantallas bajas (móvil en horizontal): cabecera compacta, mesa y controles uno al lado del otro. */
@media (max-height: 520px) and (orientation: landscape) {
    main { padding-top: 10px; }
    .view-title { margin-bottom: 8px; }
    .view-title h1 { font-size: 22px; }
    .view-title .eyebrow, .view-title .readout span { display: none; }
    .notice-bar { margin-top: 6px; padding: 6px 12px; font-size: 13px; }
    .roulette-wrap { grid-template-columns: minmax(230px, 290px) 1fr; }
    .roulette-wrap .wheel-box { padding: 8px; }
    .wheel-box canvas { max-width: 270px; }
    .mines-wrap { grid-template-columns: 250px 1fr; }
    .mines-wrap .side { order: 0; padding: 14px; gap: 10px; }
    .mult b { font-size: 30px; }
    .grid5 { max-width: calc(100dvh - 40px); }
    .reels { width: clamp(280px, calc((100dvh - 150px) * 1.72), 100%); }
    .cabinet { padding: 12px; }
    .cabinet-top { margin-bottom: 8px; }
    .bj-table { min-height: 0; padding: 16px; gap: 10px; }
    .pcard { width: 62px; height: 88px; margin-left: -26px; }
    .pcard .face .pip { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .orb { display: none; }
}
