@font-face { font-family: CinzelD; src: url(fonts/CinzelDec.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: AntonT; src: url(fonts/Anton.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: LobsterT; src: url(fonts/Lobster.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: RyeT; src: url(fonts/Rye.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: CreepT; src: url(fonts/Creepster.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: BowlbyT; src: url(fonts/Bowlby.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: PirataT; src: url(fonts/Pirata.woff2) format('woff2'); font-display: swap; }
/* ============================================================
   24/7 Bet — Dark VIP · estructura Home de alta conversión
   Fondo #0A0D14 · tarjetas #121722 · acentos esmeralda + metálico
   ============================================================ */
:root {
  --bg: #0A0D14; --surface: #0E121B; --card: #121722; --card2: #171d2b; --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.16);
  --emerald: #19d98a; --emerald2: #0fae6c; --gold: #d9b45b; --gold2: #f3dc9b;
  --metal: linear-gradient(135deg, #f3dc9b 0%, #c9a24a 45%, #8f6f2a 100%);
  --accent: var(--emerald); --accent-ink: #04140c; --ok: #19d98a;
  --nav-h: 74px;
}
body { background: radial-gradient(900px 480px at 12% -10%, rgba(25,217,138,.10), transparent 60%), radial-gradient(800px 460px at 100% 0%, rgba(217,180,91,.07), transparent 55%), var(--bg); background-attachment: fixed; }
body.has-nav main { padding-bottom: calc(var(--nav-h) + 90px + env(safe-area-inset-bottom)); }
main { max-width: 1180px; }
.card { background: var(--card); border-color: var(--line); }
input, select, textarea { background: #0c1019; border-color: var(--line); }
textarea { width: 100%; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 13px; font: inherit; font-size: 16px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(25,217,138,.18); }
button { background: linear-gradient(180deg, var(--emerald), var(--emerald2)); box-shadow: none; }
button.ghost { background: transparent; }
.pill { background: rgba(25,217,138,.10); border-color: rgba(25,217,138,.35); color: var(--emerald); }
.field.valid input { border-color: rgba(25,217,138,.7); }
.linklike { background: none; border: 0; color: var(--emerald); font: inherit; font-weight: 700; padding: 0; min-height: 0; cursor: pointer; text-decoration: underline; }
.linklike.dim { color: var(--muted); text-decoration: none; display: block; margin: 14px auto 0; }
.alt-link { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); font-size: 13px; }
label.check input { width: 20px; min-height: 0; height: 20px; accent-color: var(--emerald); flex: none; margin-top: 1px; }
.cta { font-weight: 900; letter-spacing: .6px; border-radius: 16px; min-height: 52px; box-shadow: 0 10px 28px -8px rgba(25,217,138,.55); }
.cta:disabled { box-shadow: none; }

/* Logo propio 24/7 Bet */
.logo247 { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font-family: Anton, Impact, "Arial Narrow Bold", system-ui, sans-serif; letter-spacing: .5px; line-height: 1; }
.logo247 .l-num { font-size: 26px; color: var(--emerald); text-shadow: 0 0 18px rgba(25,217,138,.45); }
.logo247 .l-num i { font-style: normal; color: var(--gold2); padding: 0 1px; }
.logo247 .l-bet { font-size: 26px; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-icon { width: 92px; height: 92px; margin: 4px auto 14px; border-radius: 26px; display: grid; place-items: center; background: radial-gradient(80% 80% at 30% 20%, #1d2a3d, #0a0f18); border: 1px solid rgba(217,180,91,.4); box-shadow: 0 14px 40px -10px rgba(25,217,138,.45), inset 0 0 0 1px rgba(255,255,255,.04); }
.app-icon span { font-family: Anton, Impact, system-ui, sans-serif; font-size: 30px; color: var(--emerald); text-shadow: 0 0 18px rgba(25,217,138,.5); }
.app-icon i { font-style: normal; color: var(--gold2); }
.hero-card { border-radius: 28px; border-color: rgba(25,217,138,.25); background: linear-gradient(180deg, rgba(25,217,138,.06), transparent 30%), var(--card); }
.hero-card h1 { font-size: 30px; line-height: 1.1; } .hero-card h1 em { font-style: normal; color: var(--emerald); }
.lead { color: var(--muted); font-size: 16px; margin: 4px 0 8px; }
.hero-card input { border-radius: 16px; min-height: 52px; }
.secure { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 22px 0 8px; }
.legal-links .linklike { color: var(--muted); font-weight: 600; font-size: 13px; }
.legal-txt { color: #6f7a97; font-size: 12px; margin: 8px 0 0; }

/* Header: ☰ · logo · saldo · perfil */
.vip-top { gap: 10px 12px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(10,13,20,.9); border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
.top-spacer { flex: 1; min-width: 0; }
.icon-btn { width: 40px; min-height: 40px; padding: 0; display: grid; place-items: center; background: transparent; color: var(--text); border: 0; border-radius: 10px; }
.top-nav { display: none; gap: 4px; margin-left: 18px; }
.top-nav button { background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 10px; min-height: 0; }
.top-nav button:hover, .top-nav button.on { color: var(--emerald); background: rgba(25,217,138,.08); }
.bal-pill { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; background: var(--card); color: var(--emerald); border: 1.5px solid rgba(25,217,138,.55); font-size: 15px; }
.bal-pill strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bal-pill .sync { opacity: .7; }
.bal-pill.spin .sync { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel-link { color: var(--gold2); border: 1px solid rgba(217,180,91,.45); border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.profile { position: relative; }
.avatar { position: relative; width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 14px; background: var(--card); color: var(--text); border: 1.5px solid rgba(25,217,138,.55); display: grid; place-items: center; }
.av-badge { position: absolute; right: -3px; bottom: -3px; font-size: 9px; font-style: normal; color: var(--muted); }
.menu { position: absolute; right: 0; top: 52px; min-width: 240px; background: var(--card2); border: 1px solid var(--line2); border-radius: 14px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.55); z-index: 60; }
.menu .menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.menu .menu-head > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.menu-bal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 8px 8px; }
.menu-bal small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.menu-bal strong { font-size: 14px; }
.menu button { display: block; width: 100%; text-align: left; background: none; color: var(--text); border: 0; border-radius: 8px; padding: 11px 10px; font-size: 14px; min-height: 0; }
.menu button:hover { background: rgba(255,255,255,.06); }
.menu button.danger { color: var(--bad); }

/* Drawer ☰ */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-bg { position: absolute; inset: 0; background: rgba(3,5,10,.7); animation: fadeIn .2s; }
.drawer-box { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 84vw); background: var(--card); border-right: 1px solid var(--line2); padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); animation: drawerIn .25s cubic-bezier(.2,.7,.2,1); overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dr-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-size: 15px; font-weight: 600; padding: 13px 10px; border-radius: 12px; min-height: 0; text-decoration: none; }
.dr-item:hover, .dr-item.on { background: rgba(25,217,138,.08); color: var(--emerald); }
.dr-sep { height: 1px; background: var(--line); margin: 8px 0; }
@keyframes drawerIn { from { transform: translate3d(-30px, 0, 0); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tira de promos (chips) */
.promo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 14px; }
.pchip { grid-column: span 2; display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 52px; padding: 8px 8px; text-align: left; border-radius: 14px; border: 1.5px solid var(--b, rgba(25,217,138,.45)); background: linear-gradient(110deg, var(--p1, #14301f), var(--p2, #0c1522)); color: var(--text); font-size: 11px; font-weight: 700; line-height: 1.15; overflow: hidden; transition: transform .2s; }
.pchip > span { min-width: 0; overflow-wrap: break-word; }
.pchip.w { grid-column: span 3; min-height: 58px; font-size: 13px; }
.pchip b { display: block; font-size: 12px; color: var(--gold2); }
.pchip i { font-style: normal; font-size: 18px; flex: none; }
.pchip:hover { transform: translate3d(0, -2px, 0); }

/* Hero carrusel */
.hero { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; contain: layout paint; }
.hero-track { display: flex; transition: transform .6s cubic-bezier(.2,.7,.2,1); will-change: transform; touch-action: pan-y; }
.hero-slide { flex: 0 0 100%; min-height: 250px; padding: 28px 22px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; position: relative; overflow: hidden; background: linear-gradient(120deg, var(--h1), var(--h2)); isolation: isolate; }
.hero-bg { position: absolute; inset: -4%; z-index: -3; background-size: cover; background-position: right center; background-repeat: no-repeat; transform: scale(1.06); animation: heroZoom 16s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroZoom { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); } }
.hero-slide::before { content: ''; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3,10,8,.82) 0%, rgba(3,10,8,.5) 40%, rgba(3,10,8,0) 70%), linear-gradient(0deg, rgba(3,10,8,.55) 0%, transparent 30%); pointer-events: none; }
.hero-slide::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 90% at 100% 0%, rgba(255,214,102,.22), transparent 62%); pointer-events: none; }
.hero-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .8; background-image: radial-gradient(circle, #ffe08a 0 1.6px, transparent 2.4px), radial-gradient(circle, #fff3c4 0 1px, transparent 1.8px), radial-gradient(circle, #ffc94d 0 2px, transparent 3px); background-size: 150px 190px, 110px 140px, 230px 260px; background-position: 0 0, 40px 70px, 90px 30px; animation: heroSparks 12s linear infinite; mask-image: linear-gradient(90deg, transparent 20%, #000 100%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%); }
@keyframes heroSparks { to { background-position: -30px -190px, 10px -70px, 60px -230px; } }
.hero-fg { position: absolute; right: 2%; bottom: 0; height: 100%; width: auto; max-width: 52%; object-fit: contain; object-position: bottom right; z-index: 0; pointer-events: none; filter: drop-shadow(0 14px 26px rgba(0,0,0,.55)); }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; max-width: min(100%, 560px); }
.hero-tag { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.2); color: var(--gold2); }
.hero-slide h2 { margin: 0; font-family: BowlbyT, Anton, Impact, system-ui, sans-serif; font-weight: 400; font-style: italic; text-transform: uppercase; font-size: clamp(22px, 4.6vw, 38px); line-height: 1.05; max-width: 15ch; background: linear-gradient(180deg, #fffbe6 0%, #ffe08a 42%, #f0a81f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 8px rgba(0,0,0,.65)); }
.hero-slide p { margin: 0; max-width: 38ch; color: rgba(255,255,255,.9); font-size: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.hero-cta { position: relative; overflow: hidden; margin-top: 6px; padding: 11px 22px; border-radius: 999px; font-weight: 900; font-style: italic; text-transform: uppercase; background: linear-gradient(180deg, var(--emerald), var(--emerald2)); color: var(--accent-ink); border: 0; box-shadow: 0 8px 22px -6px rgba(0,0,0,.6); }
.hero-cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: ctaShine 3.6s ease-in-out infinite; }
@keyframes ctaShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.18); font-size: 22px; line-height: 1; z-index: 3; opacity: 0; transition: opacity .2s; }
.hero:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
.hero-nav.prev { left: 10px; } .hero-nav.next { right: 10px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.hero-dots button { width: 8px; height: 8px; min-height: 0; padding: 0; border-radius: 99px; background: rgba(255,255,255,.35); border: 0; transition: width .25s, background .25s; }
.hero-dots button.on { width: 22px; background: var(--emerald); }

/* Dúo (Tragamonedas / Megaways) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.duo-card { position: relative; min-height: 124px; border-radius: 20px; padding: 14px; text-align: left; color: var(--text); border: 1.5px solid rgba(25,217,138,.45); background: linear-gradient(135deg, #10241d, #0c1320); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s; }
.duo-card:nth-child(2) { text-align: right; align-items: flex-end; border-color: rgba(217,180,91,.5); background: linear-gradient(225deg, #2a2210, #0c1320); }
.duo-card h3 { margin: 0; font-family: BowlbyT, Anton, Impact, system-ui, sans-serif; font-weight: 400; font-size: 22px; line-height: 1; letter-spacing: .3px; }
.duo-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; max-width: 11ch; position: relative; z-index: 1; }
.duo-card > div, .duo-card .go { position: relative; z-index: 1; }
.duo-card .go { font-weight: 800; font-size: 12px; letter-spacing: .6px; color: var(--muted); }
.duo-card .art { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: 62%; object-fit: cover; object-position: left center; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
.duo-card:nth-child(2) .art { right: auto; left: 0; object-position: right center; -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 55%); mask-image: linear-gradient(270deg, transparent 0%, #000 55%); }
.duo-card:nth-child(2) small { margin-left: auto; }
.duo-card:hover { transform: translate3d(0, -3px, 0); }

/* 3 destacados con marco dorado */
.feat3 { display: flex; gap: 10px; margin-bottom: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.feat3::-webkit-scrollbar { display: none; }
.feat3 .feat { flex: 0 0 calc((100% - 20px) / 3.15); scroll-snap-align: start; }
.feat { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 2px solid var(--gold); padding: 0; background: linear-gradient(160deg, var(--g1), var(--g2)); transform: translateZ(0); transition: transform .25s, box-shadow .25s; min-height: 0; }
.feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat span.s { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; }
.feat:hover { transform: translate3d(0, -4px, 0); box-shadow: 0 14px 30px rgba(0,0,0,.5), 0 0 0 1px var(--gold2); }

/* Banner ancho + botones Depósito / Retiro */
.wide-banner { position: relative; width: 100%; min-height: 70px; border-radius: 16px; margin-bottom: 12px; padding: 0 18px 0 92px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; border: 1.5px solid rgba(25,217,138,.5); background: linear-gradient(100deg, #0d2a22, #16322a 55%, #0c1b2b); overflow: hidden; font-family: BowlbyT, Anton, Impact, system-ui, sans-serif; font-style: normal; text-transform: uppercase; font-size: 24px; letter-spacing: .5px; text-shadow: 0 2px 0 #2a0b00, 0 4px 10px rgba(0,0,0,.6); }
.wide-banner::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 96px; background: url(banners/gift.webp) center / contain no-repeat; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.wide-banner small { display: block; font-family: system-ui, sans-serif; font-style: normal; font-size: 12px; color: var(--gold2); text-transform: none; letter-spacing: 0; }
.cashbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.cb-dep, .cb-ret { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 999px; font-weight: 900; font-size: 15px; letter-spacing: .5px; border: 0; transition: transform .2s; }
.cb-dep { background: linear-gradient(180deg, var(--emerald), var(--emerald2)); color: var(--accent-ink); box-shadow: 0 10px 26px -8px rgba(25,217,138,.55); }
.cb-ret { background: var(--card2); color: var(--text); border: 1.5px solid var(--line2); }
.cb-dep:hover, .cb-ret:hover { transform: translate3d(0, -2px, 0); }
/* Botón DEPÓSITO destacado: más grande, dorado/verde brillante, con brillo que lo recorre */
.cashbtns { grid-template-columns: 1.6fr 1fr; align-items: stretch; }
.cb-dep { position: relative; overflow: hidden; min-height: 66px; font-size: 20px; letter-spacing: 1px; color: #04140c; text-transform: uppercase;
  background: linear-gradient(180deg, #f3dc9b 0%, #d9b45b 38%, #19d98a 100%); border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 0 0 0 rgba(25,217,138,.6), 0 12px 30px -6px rgba(25,217,138,.75); animation: depPulse 2.2s ease-out infinite; }
.cb-dep svg { width: 28px; height: 28px; stroke-width: 2.4; }
.cb-dep::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: depShine 3s ease-in-out infinite; pointer-events: none; }
.cb-ret { min-height: 66px; }
@keyframes depPulse { 0% { box-shadow: 0 0 0 0 rgba(25,217,138,.55), 0 12px 30px -6px rgba(25,217,138,.75); } 70% { box-shadow: 0 0 0 16px rgba(25,217,138,0), 0 12px 30px -6px rgba(25,217,138,.75); } 100% { box-shadow: 0 0 0 0 rgba(25,217,138,0), 0 12px 30px -6px rgba(25,217,138,.75); } }
@keyframes depShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .cb-dep, .cb-dep::after { animation: none; } }

/* Búsqueda + categorías */
.lobby-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.search { position: relative; flex: 1; color: var(--muted); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search input { padding-left: 40px; border-radius: 999px; background: var(--card); }
.count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: var(--card); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 700; min-height: 0; transition: color .15s, border-color .15s, background .15s; white-space: nowrap; }
.tab:hover { color: var(--text); border-color: var(--line2); }
.tab.on { background: rgba(25,217,138,.12); color: var(--emerald); border-color: rgba(25,217,138,.55); }
.tab small { opacity: .65; margin-left: 5px; font-weight: 600; }

/* Secciones con filas horizontales */
.sec { margin: 6px 0 22px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -.01em; }
.sec-head h2 i { font-style: normal; font-size: 26px; }
.sec-more { background: var(--card2); color: var(--text); border: 0; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; min-height: 0; white-space: nowrap; }
.sec-more:hover { background: #1f2740; }
.row-scroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll .gcard { flex: 0 0 calc((100% - 28px) / 3.25); scroll-snap-align: start; }
@media (min-width: 700px) { .row-scroll .gcard { flex-basis: 180px; } }

/* Tarjeta de juego (única, filas y retícula) */
.gcard { position: relative; display: block; padding: 0; min-height: 0; text-align: left; background: none; border: 0; box-shadow: none; color: var(--text); contain: layout paint; }
.gcard::after { display: none; }
.gcard .art { position: relative; display: block; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, var(--g1), var(--g2)); border: 1px solid var(--line); transform: translateZ(0); will-change: transform; transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, border-color .28s; }
.gcard .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateZ(0) scale(1); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gcard .art .sym-bg { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-size: 54px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); letter-spacing: 3px; white-space: nowrap; }
.gcard .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(5,8,14,.5)); pointer-events: none; }
.gcard .cat { position: absolute; left: 8px; top: 8px; z-index: 2; font-size: 9.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(5,8,14,.72); border: 1px solid rgba(255,255,255,.16); color: var(--gold2); }
.gcard .play { line-height: 0; position: absolute; left: 50%; top: 50%; z-index: 2; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: var(--emerald); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; transform: scale(.7); transition: opacity .25s, transform .25s; box-shadow: 0 8px 22px rgba(0,0,0,.5); padding-left: 0; }
.gcard .heart { position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(23,29,43,.88); color: #9aa6c8; border: 0; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: transform .2s, color .2s; }
.gcard .heart.on { color: #ff6b81; } .gcard .heart:hover { transform: scale(1.1); }
.gcard .gname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gcard .gtag { display: none; }
.gcard:hover .art, .gcard:focus-visible .art { transform: translate3d(0, -5px, 0); border-color: var(--acc); box-shadow: 0 16px 30px rgba(0,0,0,.55), 0 0 26px -6px var(--acc); }
.gcard:hover .art img, .gcard:focus-visible .art img { transform: translateZ(0) scale(1.08); }
.gcard:hover .play, .gcard:focus-visible .play { opacity: 1; transform: scale(1); }
.gcard:active .art { transform: translate3d(0, -1px, 0) scale(.985); }
@media (hover: none) { .gcard .play { display: none; } }

/* Retícula (categoría / búsqueda) */
.vip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; }
@media (min-width: 480px) { .vip-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; } }
@media (min-width: 900px) { .vip-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); } }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; border: 1px dashed var(--line2); border-radius: 16px; }
@media (prefers-reduced-motion: reduce) { .hero-bg, .hero-sparks, .hero-cta::after { animation: none !important; } .hero-track, .gcard .art, .gcard .art img, .gcard .play, .duo-card, .feat, .pchip { transition: none !important; } }

/* Navegación inferior (móvil) */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: linear-gradient(180deg, #151c2b, #0d121b); border-top: 1px solid var(--line2); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
.bn { background: none; border: 0; color: #c8d0e6; min-height: 0; padding: 10px 2px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; line-height: 1.1; text-align: center; }
.bn svg { opacity: .85; }
.bn.on { color: var(--emerald); } .bn.on svg { opacity: 1; }
.bn.center { position: relative; }
.bn.center .emb { display: flex; align-items: center; justify-content: center; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); width: 64px; height: 64px; border-radius: 22px; flex-direction: row; gap: 1px; background: radial-gradient(80% 80% at 30% 20%, #1d2a3d, #0a0f18); border: 1.5px solid rgba(217,180,91,.6); box-shadow: 0 10px 28px -6px rgba(25,217,138,.55); font-family: Anton, Impact, system-ui, sans-serif; font-size: 18px; white-space: nowrap; letter-spacing: .5px; color: var(--emerald); }
.bn.center .emb i { font-style: normal; color: var(--gold2); }
.bn.center span.t { margin-top: 36px; }
@media (min-width: 900px) { .bottom-nav { display: none !important; } body.has-nav main { padding-bottom: 60px; } .top-nav { display: flex; } #btnMenu { display: none; } .row-scroll .gcard { flex-basis: 190px; } .hero-slide { min-height: 420px; padding: 44px 64px; } .hero-slide h2 { font-size: 54px; } .hero-slide p { font-size: 16px; } .hero-cta { padding: 14px 30px; font-size: 16px; } .promo-strip { grid-template-columns: repeat(5, 1fr); } .pchip, .pchip.w { grid-column: span 1; } .duo-card { min-height: 160px; } .duo-card h3 { font-size: 30px; } .feat3 { overflow: visible; } .feat3 .feat { flex: 1 1 0; } .wide-banner { min-height: 84px; font-size: 28px; } }
@media (max-width: 899px) { .top-nav { display: none !important; } #btnInstall { display: none !important; } .hero-nav { display: none; } .hero-slide { padding: 20px 18px 34px; } .hero-slide::before { font-size: 92px; } }
@media (max-width: 380px) { .bal-pill { padding: 0 10px; font-size: 13px; } .logo247 .l-num, .logo247 .l-bet { font-size: 22px; } }

/* Widgets flotantes */
.fab { position: fixed; z-index: 44; width: 60px; height: 60px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 28px rgba(0,0,0,.55); border: 0; transform: translateZ(0); transition: transform .2s; }
.fab:hover { transform: translate3d(0, -3px, 0); }
.fab-left { left: 14px; bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #2a3550, #171d2b); color: #fff; border: 1.5px solid var(--line2); }
.fab-right-wrap { position: fixed; z-index: 44; right: 14px; bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.fab-right-wrap > * { pointer-events: auto; }
.fab-right-wrap .fab { position: relative; right: auto; bottom: auto; background: linear-gradient(180deg, #2fe39c, #12b672); color: #04301d; }
.cargas-pill { background: linear-gradient(180deg, #2fe39c, #12b672); color: #04301d; font-weight: 900; font-size: 12.5px; letter-spacing: 1.4px; padding: 7px 14px; border-radius: 999px; box-shadow: 0 8px 18px rgba(0,0,0,.45); }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -3px, 0); } }
.fab-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: #e0314d; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
@media (min-width: 900px) { .fab-left, .fab-right-wrap { bottom: 24px; } }
body.in-game .fab, body.in-game .fab-right-wrap, body.in-game .bottom-nav { display: none !important; }

/* Hojas / modales */
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(3,5,10,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
@media (min-width: 640px) { .sheet { align-items: center; padding: 20px; } }
.sheet-box { width: min(480px, 100%); max-height: 92vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 50px rgba(0,0,0,.6); animation: sheetUp .28s cubic-bezier(.2,.7,.2,1); }
@media (min-width: 640px) { .sheet-box { border-radius: 22px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; }
.sheet-x { width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%; background: var(--card2); color: var(--text); border: 1px solid var(--line); font-size: 22px; line-height: 1; }
@keyframes sheetUp { from { transform: translate3d(0, 30px, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.seg { display: flex; gap: 4px; background: #0c1019; border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 12px 0 14px; }
.seg button { flex: 1; background: none; color: var(--muted); border: 0; border-radius: 9px; padding: 9px 6px; font-size: 13px; font-weight: 700; min-height: 0; }
.seg button.on { background: var(--card2); color: var(--emerald); box-shadow: 0 0 0 1px rgba(25,217,138,.4) inset; }
.tickets { display: grid; gap: 8px; }
.ticket { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #0c1019; font-size: 13px; }
.ticket .t1 { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tag.open { background: rgba(217,180,91,.15); color: var(--gold2); } .tag.closed { background: rgba(25,217,138,.14); color: var(--emerald); }
.proof { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.proof img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line2); }

/* Pop-ups centrados (instalar app, legales) */
.sheet.pop { align-items: center; padding: 20px; }
.pop-box { width: min(420px, 100%); text-align: center; padding: 26px 22px 22px; border-radius: 28px; background: linear-gradient(180deg, #1a2740, #101826 70%); border: 1px solid rgba(25,217,138,.3); box-shadow: 0 30px 80px rgba(0,0,0,.65); animation: sheetUp .28s cubic-bezier(.2,.7,.2,1); max-height: 90vh; overflow-y: auto; }
.pop-box h2 { font-size: 26px; line-height: 1.15; margin: 0 0 8px; }
.ins-box { margin: 16px 0 16px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line2); font-size: 16px; line-height: 1.7; }
.ins-box svg { vertical-align: middle; color: var(--emerald); } .ins-box .plus { color: var(--emerald); }

/* Chat de Tesorería */
.sheet.chat { padding: 0; align-items: flex-end; }
.chat-box { width: min(480px, 100%); height: min(88vh, 760px); display: flex; flex-direction: column; border-radius: 26px 26px 0 0; overflow: hidden; background: #e9e1d9; color: #111; box-shadow: 0 -10px 60px rgba(0,0,0,.6); animation: sheetUp .28s cubic-bezier(.2,.7,.2,1); }
@media (min-width: 640px) { .sheet.chat { align-items: center; padding: 20px; } .chat-box { border-radius: 26px; height: min(86vh, 720px); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #0a5f52; color: #fff; }
.chat-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(80% 80% at 30% 20%, #1d2a3d, #0a0f18); border: 1.5px solid rgba(217,180,91,.6); font-family: Anton, Impact, system-ui, sans-serif; font-size: 13px; color: var(--emerald); flex: none; }
.chat-av i { font-style: normal; color: var(--gold2); }
.chat-who { flex: 1; min-width: 0; } .chat-who strong { display: block; font-size: 18px; } .chat-who small { opacity: .8; font-size: 14px; }
.chat-x { width: 40px; height: 40px; min-height: 0; padding: 0; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 10px 12px; -webkit-overflow-scrolling: touch; }
.chat-sys { width: fit-content; max-width: 100%; margin: 0 auto 10px; padding: 8px 18px; border-radius: 12px; background: #d6ecf6; color: #1b4a5e; font-size: 14px; text-align: center; }
.bubble { background: #fff; border-radius: 6px 16px 16px 16px; padding: 14px; max-width: 94%; box-shadow: 0 1px 2px rgba(0,0,0,.15); font-size: 16px; line-height: 1.4; }
.bubble.me { margin-left: auto; background: #d9fdd3; border-radius: 16px 6px 16px 16px; margin-top: 8px; }
.bubble .bonus { font-weight: 800; }
.bdata { margin: 10px 0; padding: 10px 14px; border-radius: 14px; background: #f5f6f8; border: 1px solid #e3e5ea; display: grid; gap: 6px; }
.bdata div { display: flex; justify-content: space-between; gap: 12px; } .bdata span { color: #0a5f52; font-weight: 700; } .bdata b { font-weight: 600; text-align: right; word-break: break-all; }
.bbtn { display: block; width: 100%; margin-top: 10px; min-height: 50px; padding: 12px; border-radius: 16px; font-weight: 800; font-size: 17px; letter-spacing: .3px; background: #fff; color: #0a5f52; border: 2px solid #0a5f52; }
.bbtn.go { background: #25d366; color: #fff; border-color: #25d366; box-shadow: 0 6px 14px rgba(37,211,102,.35); }
.bbtn:disabled { opacity: .5; }
.bubble a.wa { color: #0a5f52; font-weight: 700; }
.chat-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 12px; background: #efeae4; border-top: 1px solid #d9d2c9; }
.chat-opts button { min-height: 48px; padding: 0; border-radius: 16px; background: #fff; color: #0a5f52; border: 2px solid #0a5f52; font-weight: 900; font-size: 16px; letter-spacing: .5px; }
.chat-opts button.on { background: #25d366; color: #fff; border-color: #25d366; box-shadow: 0 6px 14px rgba(37,211,102,.3); }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #efeae4; }
.chat-input input[type=text], .chat-input #chatMsg { flex: 1; min-height: 46px; border-radius: 999px; background: #fff; color: #111; border: 0; padding: 0 18px; font-size: 16px; }
.chat-input #chatMsg::placeholder { color: #8a8f9c; }
.chat-input .clip { background: none; border: 0; color: #667; min-height: 0; width: 40px; height: 40px; padding: 0; }
.chat-input .send { width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; background: #0a5f52; color: #fff; border: 0; display: grid; place-items: center; }
.trs-form { background: #fff; border-radius: 16px; padding: 14px; margin-top: 4px; }
.trs-form label { color: #111; font-weight: 700; font-size: 15px; }
.trs-form input { background: #f1ecf8; color: #111; border: 0; border-radius: 999px; min-height: 48px; padding: 0 18px; }
.trs-form input[readonly] { color: #555; }
.trs-form .muted { color: #667; }
.trs-form .back { background: none; border: 0; color: #0a5f52; font-size: 20px; padding: 0 0 8px; min-height: 0; text-align: left; }
.trs-form .ghost { background: #fff; color: #0a5f52; border: 2px solid #0a5f52; }
.trs-form .form-error { background: #fdecef; color: #a1122d; border-color: #f3b7c2; }

/* Cookies */
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 85; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 16px; text-align: center; background: var(--card2); border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.6); font-size: 14px; }
.cookie-bar p { margin: 0; }
@media (min-width: 700px) { .cookie-bar { left: 50%; right: auto; width: 560px; transform: translateX(-50%); flex-direction: row; text-align: left; } }

/* Bandeja del personal */
.inbox { display: grid; gap: 8px; }
.inbox .ticket .acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.inbox .ticket .acts button { padding: 7px 12px; min-height: 0; font-size: 12px; }
.proof-full { max-width: 100%; border-radius: 12px; margin-top: 8px; border: 1px solid var(--line2); }
.toast { z-index: 95; }
.bn.center .emb { white-space: nowrap; font-size: 18px; flex-direction: row; line-height: 1; }
.bn.center .emb i { display: inline; }

/* portadas ilustradas: el título va dentro del arte */
.gcard .art .sym-bg, .gcard .art .cat { display: none; }
.gcard .heart { top: 6px; bottom: auto; right: 6px; width: 30px; height: 30px; background: rgba(8,10,20,.55); }
.gcard .heart svg { width: 16px; height: 16px; }

.gtitle { --ol: #3a0d00; --ol2: #1f0600; --g1: #fffbd6; --g2: #ffe14a; --g3: #ff9d00; --g4: #ff5a00; --sw: 8px; --ex: 5px; position: absolute; left: 2px; right: 2px; bottom: 8px; z-index: 1; display: flex; flex-direction: column; align-items: center; font-size: clamp(14px, 4.2vw, 24px); line-height: 1; pointer-events: none; font-family: BowlbyT, Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0; }
.gtitle .w { position: relative; display: block; text-align: center; white-space: nowrap; isolation: isolate; line-height: .98; }
.gtitle .w.big { font-size: 1.32em; } .gtitle .w.sm { font-size: .6em; line-height: 1.1; }
.gtitle .w::before { content: attr(data-t); position: absolute; left: 0; right: 0; top: 0; color: var(--ol); -webkit-text-stroke: var(--sw) var(--ol); paint-order: stroke fill; text-shadow: 0 1px 0 var(--ol), 0 calc(var(--ex) * .5) 0 var(--ol2), 0 var(--ex) 0 var(--ol2), 0 calc(var(--ex) * 1.5) 0 var(--ol2), 0 calc(var(--ex) * 2.4) 10px rgba(0,0,0,.8); }
.gtitle .w b { position: relative; font-weight: inherit; background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 30%, var(--g3) 54%, var(--g4) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* estilos de logo por tema */
.gtitle.s-roman { font-family: CinzelD, Georgia, serif; font-size: clamp(12px, 3.5vw, 20px); --sw: 6px; --ex: 3px; --ol: #3a1a00; --ol2: #1c0b00; --g1: #fff7c2; --g2: #f6d65a; --g3: #b8871a; --g4: #f3cf5a; }
.gtitle.s-roman.p1 { --ol: #12214d; --ol2: #070f2a; --g1: #ffffff; --g2: #cfe6ff; --g3: #6fa3e8; --g4: #dff0ff; }
.gtitle.s-roman.p2 { --ol: #4a0a14; --ol2: #260308; --g1: #fff4cf; --g2: #ffd24a; --g3: #d98a12; --g4: #ffe07a; }
.gtitle.s-tall { font-family: AntonT, Impact, sans-serif; font-size: clamp(20px, 6.3vw, 36px); letter-spacing: .5px; --sw: 7px; --ex: 4px; --ol: #072a73; --ol2: #031445; --g1: #f2fdff; --g2: #6be8ff; --g3: #1f8dff; --g4: #ffd21f; }
.gtitle.s-tall.p1 { --ol: #4b0a60; --ol2: #240330; --g1: #fff0ff; --g2: #ff7ee8; --g3: #b03dff; --g4: #ffd21f; }
.gtitle.s-tall.p2 { --ol: #5a1000; --ol2: #2c0700; --g1: #fffbd0; --g2: #ffd23a; --g3: #ff7a00; --g4: #e11a00; }
.gtitle.s-script { font-family: LobsterT, cursive; text-transform: none; font-size: clamp(18px, 5.6vw, 32px); --sw: 7px; --ex: 3px; --ol: #5a0838; --ol2: #2a031c; --g1: #fff1f9; --g2: #ff9ad8; --g3: #ff3fa6; --g4: #ffd34a; }
.gtitle.s-script.p1 { --ol: #5a2a00; --ol2: #2b1200; --g1: #fffbe0; --g2: #ffe36a; --g3: #ffa51f; --g4: #ff6a00; }
.gtitle.s-script.p2 { --ol: #0a3a5a; --ol2: #031c2c; --g1: #f0ffff; --g2: #8ff0ff; --g3: #2fb7ff; --g4: #ffe14a; }
.gtitle.s-west { font-family: RyeT, serif; font-size: clamp(13px, 3.9vw, 22px); --sw: 6px; --ex: 3px; --ol: #2a1200; --ol2: #140700; --g1: #fff3c0; --g2: #ffcf4a; --g3: #d98a12; --g4: #9a4f0a; }
.gtitle.s-west.p1 { --ol: #5a1005; --ol2: #2b0602; --g1: #fff0d0; --g2: #ffc060; --g3: #ff6a1a; --g4: #c21e0a; }
.gtitle.s-west.p2 { --ol: #1d2a0a; --ol2: #0e1505; --g1: #f5ffd0; --g2: #d6f06a; --g3: #9ac91f; --g4: #5a8a0a; }
.gtitle.s-horror { font-family: CreepT, cursive; text-transform: none; letter-spacing: 1px; font-size: clamp(19px, 5.8vw, 32px); --sw: 7px; --ex: 3px; --ol: #240038; --ol2: #10001c; --g1: #f6ffd0; --g2: #b6ff3f; --g3: #ff9a1a; --g4: #ff4d00; }
.gtitle.s-horror.p1 { --ol: #38000f; --ol2: #1a0007; --g1: #fff0f0; --g2: #ff9a9a; --g3: #ff2a3a; --g4: #a8000f; }
.gtitle.s-horror.p2 { --ol: #1a0a3a; --ol2: #0b0420; --g1: #f3e8ff; --g2: #c98aff; --g3: #8a3dff; --g4: #ff7ad8; }
.gtitle.s-pirate { font-family: PirataT, serif; font-size: clamp(18px, 5.4vw, 30px); letter-spacing: .5px; --sw: 7px; --ex: 3px; --ol: #1a0f00; --ol2: #0a0600; --g1: #fffbe8; --g2: #ffe27a; --g3: #e8a317; --g4: #8a5a0a; }
.gtitle.s-pirate.p1 { --ol: #05283a; --ol2: #02131c; --g1: #f2ffff; --g2: #a6f0ff; --g3: #3fb0d8; --g4: #0b6a8a; }
.gtitle.s-pirate.p2 { --ol: #3a0a0a; --ol2: #1c0404; --g1: #fff4e0; --g2: #ffc27a; --g3: #e8581f; --g4: #9a1a0a; }
.gtitle.s-block { font-family: BowlbyT, Impact, sans-serif; font-size: clamp(13px, 3.9vw, 22px); --sw: 8px; --ex: 5px; --ol: #4a0a00; --ol2: #240400; --g1: #fff7a8; --g2: #ffd21f; --g3: #ff7a00; --g4: #e11a00; }
.gtitle.s-block.p1 { --ol: #0a3a1a; --ol2: #041c0b; --g1: #f4ffb0; --g2: #b6f03a; --g3: #2fc23a; --g4: #0a8a3a; }
.gtitle.s-block.p2 { --ol: #1a1060; --ol2: #0a0630; --g1: #e8f4ff; --g2: #7ad0ff; --g3: #3a7aff; --g4: #5a2ad6; }
.feat .gtitle { font-size: clamp(14px, 4.2vw, 26px); }
.feat .gtitle.s-tall { font-size: clamp(22px, 6.6vw, 40px); } .feat .gtitle.s-script, .feat .gtitle.s-horror, .feat .gtitle.s-pirate { font-size: clamp(20px, 6vw, 34px); }

.rollbar { margin: 8px 0 12px; }
.rollbar .rb { height: 12px; border-radius: 99px; background: #1b2142; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.rollbar .rb i { display: block; height: 100%; background: linear-gradient(90deg, #ffd24a, #ff9d00); transition: width .4s; }
.rollbar.ok .rb i { background: linear-gradient(90deg, #2fe39c, #12b672); }
.rollbar .rt { font-size: 12.5px; margin-top: 6px; opacity: .9; }

/* Modo visitante (sin cuenta) */
.guest-login{display:none;background:linear-gradient(180deg,#ffd76a,#e0a92a);color:#1a1205;font-weight:800;border:0;border-radius:999px;padding:8px 16px;font-size:13px;letter-spacing:.04em;cursor:pointer}
body.guest .guest-login{display:inline-block}
body.guest #btnSync,body.guest .profile,body.guest #linkPanel{display:none!important}

.cashtop { margin: 12px 0; }
.cashtop .cb-dep { width: 100%; }

/* Botón DEPOSITAR junto al saldo, en el encabezado: mismo tamaño que la pastilla del saldo */
.hdr-dep { min-height: 38px; height: 38px; padding: 0 11px; font-size: 12px; letter-spacing: .4px; gap: 5px; border-radius: 12px; flex: none; border-width: 1.5px; animation: none; box-shadow: 0 4px 12px -4px rgba(25,217,138,.7); }
.hdr-dep.hidden { display: none; }
.hdr-dep svg { width: 15px; height: 15px; stroke-width: 3.2; }
.hdr-dep::after { animation-duration: 4s; }
@media (max-width: 460px) { .hdr-dep { padding: 0 9px; } .hdr-dep .hd-txt { display: none; } }

/* ---- Efecto pop-out (personaje recortado que sale del marco) ---- */
.row-scroll { padding-top: 30px; margin-top: -30px; }
.gcard.pop .art { overflow: visible; border-color: color-mix(in srgb, var(--acc) 60%, transparent); box-shadow: 0 10px 22px rgba(0,0,0,.55), 0 0 18px -4px var(--acc); }
.gcard.pop .bgc { position: absolute; inset: 0; border-radius: 17px; overflow: hidden; }
.gcard.pop .bgc img { inset: auto; left: var(--hx, -8%); top: var(--hy, -14%); width: var(--hs, 116%); height: var(--hs, 116%); filter: saturate(1.1) brightness(.78); transform: none; }
.gcard.pop .bgc::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 55%, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%), linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(5,8,14,.75)); box-shadow: inset 0 0 18px rgba(0,0,0,.6); }
.gcard.pop .pglow { position: absolute; left: 8%; right: 8%; top: 12%; height: 60%; background: radial-gradient(ellipse, var(--acc), rgba(0,0,0,0) 70%); opacity: .5; mix-blend-mode: screen; filter: blur(5px); pointer-events: none; }
.gcard.pop .hero { position: absolute; inset: auto; left: var(--hx, -8%); top: var(--hy, -14%); width: var(--hs, 116%); height: var(--hs, 116%); max-width: none; object-fit: contain; z-index: 3; filter: drop-shadow(0 0 2px var(--acc)) drop-shadow(0 9px 8px rgba(0,0,0,.7)); animation: popfl 3.4s ease-in-out infinite; transform: none; }
.gcard.pop .shine { position: absolute; left: var(--hx, -8%); top: var(--hy, -14%); width: var(--hs, 116%); height: var(--hs, 116%); z-index: 4; background: linear-gradient(160deg, rgba(255,255,255,.38), rgba(255,255,255,0) 45%); mix-blend-mode: screen; pointer-events: none; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.gcard.pop .pt i { position: absolute; z-index: 2; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px var(--acc); opacity: 0; animation: poptw 2.6s ease-in-out infinite; }
.gcard.pop .pt i:nth-child(1) { left: 12%; top: 32%; } .gcard.pop .pt i:nth-child(2) { left: 82%; top: 24%; animation-delay: .6s; } .gcard.pop .pt i:nth-child(3) { left: 70%; top: 56%; animation-delay: 1.1s; } .gcard.pop .pt i:nth-child(4) { left: 20%; top: 62%; animation-delay: 1.7s; } .gcard.pop .pt i:nth-child(5) { left: 50%; top: 8%; animation-delay: .3s; }
.gcard.pop .gtitle { z-index: 5; } .gcard.pop .heart { z-index: 6; } .gcard.pop .play { z-index: 6; }
.gcard.pop:hover .art img.hero, .gcard.pop:focus-visible .art img.hero { transform: none; }
@keyframes popfl { 50% { transform: translateY(-2px); } }
@keyframes poptw { 0%, 100% { opacity: 0; transform: translateY(6px) scale(.5); } 50% { opacity: 1; transform: translateY(-8px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .gcard.pop .hero, .gcard.pop .pt i { animation: none !important; } .gcard.pop .pt i { opacity: .7; } }
.gcard.pop:hover .bgc img, .gcard.pop:focus-visible .bgc img { transform: none; }
.gcard.pop { contain: layout; overflow: visible; }
.row-scroll { padding-bottom: 26px; margin-bottom: -20px; } .gcard.pop .art { box-shadow: 0 8px 14px rgba(0,0,0,.5), 0 0 12px -3px var(--acc); }
.gcard.pop .pglow { mix-blend-mode: normal; filter: none; opacity: .35; } .gcard.pop .art { will-change: auto; }
.gcard.pop .gtitle { transform: scale(.6); transform-origin: 50% 100%; bottom: 7px; }

/* ---- Marco de color vivo + efectos de tema (colores propios de cada juego: --acc / --g1) ---- */
.gcard.pop .art { border: 0; box-shadow: 0 10px 20px rgba(0,0,0,.55), 0 0 16px -2px var(--acc); }
.gcard.pop .frm { position: absolute; inset: -2px; border-radius: 20px; padding: 3px; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 35%, #fff) 0%, var(--acc) 28%, color-mix(in srgb, var(--g1) 60%, #000) 52%, var(--acc) 76%, color-mix(in srgb, var(--acc) 35%, #fff) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); filter: drop-shadow(0 0 4px var(--acc)); }
.gcard.pop .bgc img { filter: saturate(1.4) contrast(1.1) brightness(.82); }
.gcard.pop .pglow { opacity: .55; }
.gcard.pop .shine { background: linear-gradient(160deg, rgba(255,255,255,.45), rgba(255,255,255,0) 45%); }
.gcard.pop .pt i:nth-child(6) { left: 36%; top: 40%; animation-delay: 2.1s; } .gcard.pop .pt i:nth-child(7) { left: 90%; top: 46%; animation-delay: .9s; }
/* destellos (por defecto / aztecas: estrellas de 4 puntas doradas) */
.gcard.pop .pt.fx-star i { width: 9px; height: 9px; border-radius: 0; background: #fff3b0; box-shadow: none; filter: drop-shadow(0 0 4px var(--acc)); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
/* Olimpo: chispas eléctricas + relámpago */
.gcard.pop .pt.fx-bolt i { width: 3px; height: 13px; border-radius: 2px; background: #fff; box-shadow: 0 0 7px 2px #8fd8ff; transform-origin: 50% 100%; animation: popzap 1.7s steps(1, end) infinite; }
.gcard.pop .pt.fx-bolt i:nth-child(even) { height: 9px; animation-delay: .5s; rotate: 25deg; } .gcard.pop .pt.fx-bolt i:nth-child(3n) { rotate: -30deg; animation-delay: 1.1s; }
/* Dragón: brasas que suben */
.gcard.pop .pt.fx-ember i { width: 5px; height: 5px; background: #ffb347; box-shadow: 0 0 8px 3px #ff3d1f; top: auto; bottom: 22%; animation: popember 2.8s ease-in infinite; }
.gcard.pop .pt.fx-ember i:nth-child(odd) { background: #ffd86b; width: 4px; height: 4px; animation-duration: 3.4s; }
/* Safari: polvo dorado que flota de lado */
.gcard.pop .pt.fx-dust i { width: 7px; height: 7px; background: radial-gradient(circle, rgba(255,214,140,.95), rgba(255,170,70,0) 70%); box-shadow: none; animation: popdust 5s linear infinite; }
/* Piratas: burbujas / gotas */
.gcard.pop .pt.fx-bubble i { width: 8px; height: 8px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(120,220,255,.25) 55%, rgba(120,220,255,0) 70%); border: 1px solid rgba(190,240,255,.8); box-shadow: none; top: auto; bottom: 18%; animation: popbub 3.2s ease-in infinite; }
@keyframes popzap { 0%, 100% { opacity: 0; } 8% { opacity: 1; } 14% { opacity: 0; } 20% { opacity: .9; } 26% { opacity: 0; } }
@keyframes popember { 0% { opacity: 0; transform: translateY(0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -90px) scale(.3); } }
@keyframes popdust { 0% { opacity: 0; transform: translate(-12px, 4px) scale(.6); } 30% { opacity: .95; } 100% { opacity: 0; transform: translate(40px, -10px) scale(1.2); } }
@keyframes popbub { 0% { opacity: 0; transform: translateY(0) scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-80px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .gcard.pop .pt i { animation: none !important; opacity: .7; } }
.gcard.pop:not(:has(.hero)) .bgc img { inset: 0; left: 0; top: 0; width: 100%; height: 100%; }
#lobbyGrid { row-gap: 30px !important; padding-top: 24px; }
