/* TAPETAZO — estilos */
:root {
  --wine: #6b1022; --wine2: #3b0a14; --wine3: #24060c;
  --gold: #f6c453; --gold2: #d9961e; --gold3: #fff0b8;
  --cream: #fff6e3; --ink: #1d1410; --muted: #cdb9a6;
  --green: #2fae5f; --green2: #1f7d43; --red: #e2463c; --blue: #3a78d8; --purple: #8e4fd0;
  --oros: #b8820f; --copas: #c0392b; --espadas: #2b5d9a; --bastos: #3d8b3d;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Arial Black", "Segoe UI Black", "Franklin Gothic Heavy", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--wine3); color: var(--cream); font-family: var(--font); overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
input { font: inherit; }
img { -webkit-user-drag: none; }
.dim { opacity: .72; }
.small { font-size: 12px; }
.center { text-align: center; }
.big { font-size: 1.25em; }
.good { color: #6dff9e; } .bad { color: #ff8a80; }
.coin { display: inline-block; width: 1em; height: 1em; border-radius: 50%; vertical-align: -0.14em; background: radial-gradient(circle at 35% 30%, #fff7c2 0 18%, #f6c453 30%, #c98a12 75%, #8a5a00 100%); box-shadow: inset 0 0 0 .08em #8a5a00, 0 .05em .1em rgba(0,0,0,.4); }

/* ---------- Pantallas ---------- */
#app { position: fixed; inset: 0; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; overflow: hidden; }
.screen.active { display: flex; }
.home-bg { position: absolute; inset: 0; z-index: 0; }
.home-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.7) 100%); }
#s-splash { align-items: center; justify-content: center; gap: 22px; }
#s-splash > *:not(.home-bg) { position: relative; z-index: 1; }
.splash-sub { margin: 0; font-weight: 700; color: var(--gold3); text-shadow: 0 2px 4px #000; text-align: center; padding: 0 20px; }

/* ---------- Logo ---------- */
.logo { text-align: center; position: relative; padding-top: 70px; margin: 0 auto; }
.logo .fan { position: absolute; left: 50%; top: 0; width: 0; height: 0; }
.logo .fan .mcard { position: absolute; width: 58px; left: -29px; top: 0; transform-origin: 50% 130%; animation: fanIn .9s cubic-bezier(.2,.9,.3,1.3) both; }
.logo .fan .f0 { --r: -27deg; animation-delay: .05s; } .logo .fan .f1 { --r: -9deg; animation-delay: .12s; }
.logo .fan .f2 { --r: 9deg; animation-delay: .19s; } .logo .fan .f3 { --r: 27deg; animation-delay: .26s; }
@keyframes fanIn { from { transform: rotate(0) translateY(30px) scale(.6); opacity: 0; } to { transform: rotate(var(--r)) translateY(0); opacity: 1; } }
.logo h1 { margin: 0; font-family: var(--display); font-size: clamp(44px, 13vw, 84px); line-height: 1; letter-spacing: .02em; position: relative; transform: rotate(-3deg); }
.logo h1 span { background: linear-gradient(180deg, #fff6c9 0%, #f6c453 45%, #d9961e 60%, #fbe08a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px #4a1208; filter: drop-shadow(0 4px 0 #4a1208) drop-shadow(0 8px 10px rgba(0,0,0,.6)); }
.logo p { margin: 6px 0 0; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; font-size: 13px; color: var(--gold3); text-shadow: 0 2px 3px #000; }
.logo.small { padding-top: 46px; transform: scale(.82); margin: -8px auto -6px; }
.logo.small .fan .mcard { width: 42px; left: -21px; }
.logo.small h1 { font-size: clamp(38px, 11vw, 60px); }

/* ---------- Botones ---------- */
.bigbtn { display: block; width: 100%; max-width: 420px; margin: 8px auto; padding: 16px 20px; border-radius: 18px; font-family: var(--display); font-size: 20px; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0,0,0,.35); position: relative; transition: transform .08s, filter .15s; }
.bigbtn:active { transform: translateY(3px); }
.bigbtn.go { background: linear-gradient(#4fd17f, #23944f); box-shadow: 0 5px 0 #145c31, 0 8px 16px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.35); }
.bigbtn.gold { background: linear-gradient(#ffe08a, #e0a024); color: #3b1a00; text-shadow: 0 1px 0 rgba(255,255,255,.5); box-shadow: 0 5px 0 #8a5a00, 0 8px 16px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.5); }
.bigbtn.alt { background: linear-gradient(#5a6d8f, #3a4a66); box-shadow: 0 5px 0 #222d40, 0 8px 16px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.25); font-size: 17px; }
.bigbtn.danger { background: linear-gradient(#f0675e, #b8261d); box-shadow: 0 5px 0 #6e1410, 0 8px 16px rgba(0,0,0,.4); font-size: 17px; }
.bigbtn:disabled { filter: grayscale(.8) brightness(.7); }
.pulse { animation: pulse 1.6s ease-in-out infinite; max-width: 300px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.mini-btn { padding: 9px 14px; border-radius: 12px; font-weight: 800; font-size: 15px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); white-space: nowrap; }
.mini-btn.go { background: linear-gradient(#4fd17f, #23944f); box-shadow: 0 3px 0 #145c31; }
.mini-btn.gold { background: linear-gradient(#ffe08a, #e0a024); color: #3b1a00; box-shadow: 0 3px 0 #8a5a00; }
.mini-btn.alt { background: linear-gradient(#5a6d8f, #3a4a66); box-shadow: 0 3px 0 #222d40; }
.mini-btn.danger { background: rgba(226,70,60,.25); box-shadow: inset 0 0 0 1px rgba(255,120,110,.6); display: block; margin: 18px auto 6px; }
.mini-btn:disabled { opacity: .7; }
.mini-btn[data-poor] { filter: saturate(.4) brightness(.8); }
.link-btn { font-size: 14px; font-weight: 800; color: var(--gold); padding: 2px 6px; }
.seg { display: flex; gap: 6px; background: rgba(0,0,0,.28); padding: 5px; border-radius: 14px; flex-wrap: wrap; }
.seg button { flex: 1 1 0; min-width: 64px; padding: 11px 8px; border-radius: 10px; font-weight: 800; font-size: 16px; color: #e9dccb; line-height: 1.1; }
.seg button small { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.seg button.on { background: linear-gradient(#ffe08a, #e0a024); color: #3b1a00; box-shadow: 0 2px 0 #8a5a00; }
.seg.wide { margin: 0 0 12px; }

/* ---------- Inicio ---------- */
#s-home > *:not(.home-bg) { position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 8px; background: linear-gradient(rgba(36,6,12,.9), rgba(36,6,12,.55)); box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.me-chip { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.ring { position: relative; width: 52px; height: 52px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); display: grid; place-items: center; flex: none; }
.av.emo { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: radial-gradient(#7a2a3a, #3b0a14); }
.av.emo.big { width: 76px; height: 76px; font-size: 46px; box-shadow: 0 0 0 4px var(--gold); }
.ring .lv { position: absolute; right: -4px; bottom: -4px; background: var(--gold); color: #3b1a00; font-size: 12px; font-weight: 900; border-radius: 10px; padding: 1px 6px; box-shadow: 0 2px 0 #8a5a00; }
.me-txt { display: flex; flex-direction: column; min-width: 0; }
.me-txt b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.me-txt small { font-size: 12px; color: var(--gold3); }
.xpbar { height: 7px; width: 110px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 4px; position: relative; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, #7ef0a8, #2fae5f); border-radius: 6px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.xpbar.big { width: 100%; height: 14px; }
.xpbar.big span { position: absolute; inset: 0; font-size: 11px; font-weight: 800; text-align: center; line-height: 14px; text-shadow: 0 1px 1px #000; }
.coins { display: flex; align-items: center; gap: 6px; padding: 8px 6px 8px 12px; border-radius: 22px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 2px rgba(246,196,83,.5); font-size: 19px; }
.coins .coin { font-size: 22px; }
.coins .plus { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--green); font-weight: 900; font-size: 18px; }
.tab-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 14px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tab-body > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.tabs { display: flex; padding: 6px 6px calc(6px + var(--safe-b)); background: linear-gradient(rgba(36,6,12,.75), rgba(20,3,7,.97)); box-shadow: 0 -2px 14px rgba(0,0,0,.4); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; font-size: 13px; font-weight: 800; color: #cdb9a6; position: relative; }
.tabs button span { font-size: 26px; line-height: 1.1; filter: grayscale(.4); transition: transform .2s; }
.tabs button.on { color: var(--gold); background: rgba(246,196,83,.12); }
.tabs button.on span { filter: none; transform: translateY(-2px) scale(1.12); }
.tabs .dot { position: absolute; top: 4px; right: 22%; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #2a0710; display: none; }
.tabs .dot.on { display: block; animation: pulse 1.2s infinite; }
.sec { font-family: var(--display); font-size: 20px; margin: 18px auto 10px; color: var(--gold3); text-shadow: 0 2px 3px rgba(0,0,0,.6); }
.sec small { font-family: var(--font); font-size: 14px; color: var(--muted); }
.banner-btn { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; align-items: center; text-align: left; width: 100%; padding: 12px 14px; margin: 8px auto; border-radius: 18px; column-gap: 10px; box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 8px 16px rgba(0,0,0,.3); }
.banner-btn span { grid-row: span 2; font-size: 38px; text-align: center; }
.banner-btn b { font-size: 18px; }
.banner-btn small { font-size: 14px; opacity: .9; }
.banner-btn.daily { background: linear-gradient(100deg, #ffde7a, #e39a1c); color: #3b1a00; animation: pulse 1.8s infinite; }
.banner-btn.cont { background: linear-gradient(100deg, #3a8ee6, #2357a8); }
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .games { grid-template-columns: repeat(3, 1fr); } }
.gtile { position: relative; text-align: left; border-radius: 20px; padding: 86px 12px 12px; min-height: 182px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; box-shadow: 0 5px 0 rgba(0,0,0,.35), 0 10px 18px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.25); transition: transform .1s; }
.gtile:active { transform: scale(.97); }
.gtile b { font-family: var(--display); font-size: 21px; text-shadow: 0 2px 0 rgba(0,0,0,.4); }
.gtile small { font-size: 13px; line-height: 1.25; opacity: .93; }
.gtile .gst { position: absolute; top: 9px; right: 8px; font-size: 11px; font-weight: 800; background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 10px; }
.gtile .gst em { font-style: normal; color: var(--gold); }
.gcards { position: absolute; top: 12px; left: 14px; height: 70px; width: 140px; }
.gcards .mcard { position: absolute; width: 40px; top: 4px; transform-origin: 50% 120%; box-shadow: 0 3px 6px rgba(0,0,0,.45); }
.gcards .t0 { left: 0; transform: rotate(-12deg); } .gcards .t1 { left: 22px; transform: rotate(0deg) translateY(-3px); } .gcards .t2 { left: 44px; transform: rotate(12deg); }
.g-escoba { background: linear-gradient(150deg, #2fb366, #145c31); }
.g-brisca { background: linear-gradient(150deg, #3d86e0, #1d3f87); }
.g-tute { background: linear-gradient(150deg, #9b5ad8, #4a1f7a); }
.g-julepe { background: linear-gradient(150deg, #e2564c, #861a17); }
.g-chinchon { background: linear-gradient(150deg, #f29a2e, #a14f0a); }
.g-siete { background: linear-gradient(150deg, #1fb2a6, #0d5e60); }
.more-games { margin: 16px auto 4px; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--muted); }
.more-games b { color: var(--gold3); }

/* Gira */
.gira-head { text-align: center; margin-top: 10px; }
.gira-head h2 { font-family: var(--display); margin: 4px 0; font-size: 26px; color: var(--gold); text-shadow: 0 3px 0 #4a1208; }
.gira-head p { margin: 0 0 10px; color: var(--muted); }
.starbar { display: flex; align-items: center; gap: 10px; justify-content: center; background: rgba(0,0,0,.35); border-radius: 16px; padding: 10px 12px; flex-wrap: wrap; }
.starbar > span { font-size: 18px; }
.sb { flex: 1; min-width: 90px; height: 12px; background: rgba(255,255,255,.12); border-radius: 8px; overflow: hidden; }
.sb i { display: block; height: 100%; background: linear-gradient(90deg, #ffe08a, #e0a024); }
.loc { position: relative; margin: 14px auto; border-radius: 22px; padding: 14px; overflow: hidden; box-shadow: 0 6px 0 rgba(0,0,0,.35), 0 10px 20px rgba(0,0,0,.4); }
.loc::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.5)); }
.loc > * { position: relative; }
.loc.locked { filter: grayscale(.85) brightness(.6); }
.loc-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.loc-h b { font-family: var(--display); font-size: 20px; text-shadow: 0 2px 2px #000; }
.loc-h small { display: block; color: #f3e6d2; font-size: 13px; margin-top: 2px; text-shadow: 0 1px 2px #000; }
.lst { background: rgba(0,0,0,.5); padding: 4px 9px; border-radius: 10px; font-weight: 800; white-space: nowrap; }
.path { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.path .link { flex: 1; height: 5px; margin: 0 -2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 6px, transparent 6px 11px); min-width: 6px; }
.node { position: relative; width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff3cf, #e9b64a 60%, #9a6413); box-shadow: 0 4px 0 #5a3a08, 0 6px 10px rgba(0,0,0,.4); color: #3b1a00; }
.node .ni { font-size: 24px; }
.node .nk { position: absolute; top: -8px; left: -6px; background: var(--wine); color: #fff; font-weight: 900; font-size: 12px; border-radius: 10px; padding: 1px 7px; box-shadow: 0 0 0 2px var(--gold); }
.node .ns { position: absolute; bottom: -17px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--gold); text-shadow: 0 1px 2px #000; white-space: nowrap; letter-spacing: -1px; }
.node.boss { width: 66px; height: 66px; background: radial-gradient(circle at 35% 30%, #ffd2d2, #e2463c 60%, #7a1010); box-shadow: 0 4px 0 #4a0808, 0 0 0 3px var(--gold), 0 6px 14px rgba(0,0,0,.5); }
.node.lock { background: radial-gradient(circle at 35% 30%, #777, #444); box-shadow: 0 4px 0 #222; color: #ccc; }
.node.done:not(.lock) { box-shadow: 0 4px 0 #5a3a08, 0 0 0 3px #6dff9e, 0 6px 10px rgba(0,0,0,.4); }
.node:not(.lock):not(.done) { animation: pulse 1.6s infinite; }
.loc-r { margin-top: 18px; font-size: 13px; font-weight: 700; text-align: right; color: var(--gold3); text-shadow: 0 1px 2px #000; }

/* Retos */
.daily-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dbox { background: rgba(0,0,0,.35); border-radius: 12px; padding: 7px 2px; text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.dbox b { font-size: 20px; } .dbox span { font-weight: 800; font-size: 13px; }
.dbox.got { background: rgba(47,174,95,.35); box-shadow: inset 0 0 0 2px #2fae5f; }
.dbox.now { background: linear-gradient(#ffe08a, #e0a024); color: #3b1a00; animation: pulse 1.4s infinite; }
.dbox.big b { font-size: 24px; }
.wheel-box { text-align: center; }
.wheel-wrap { position: relative; width: 250px; height: 250px; margin: 6px auto 4px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; position: relative; box-shadow: 0 0 0 8px #5a2a10, 0 0 0 11px var(--gold), 0 10px 22px rgba(0,0,0,.5); }
.wheel span { position: absolute; left: 50%; top: 0; height: 50%; width: 0; transform-origin: 50% 100%; }
.wheel span b { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 17px; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 3px #000; }
.wheel-pin { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 30px; color: var(--gold); text-shadow: 0 3px 0 #5a2a10; z-index: 2; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%; background: radial-gradient(#fff3cf, #c98a12); display: grid; place-items: center; font-size: 26px; box-shadow: 0 3px 6px rgba(0,0,0,.5); }
.missions { display: flex; flex-direction: column; gap: 10px; }
.mission { position: relative; background: rgba(0,0,0,.35); border-radius: 16px; padding: 12px 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.mission.done:not(.claimed) { box-shadow: inset 0 0 0 2px var(--gold); background: rgba(246,196,83,.15); }
.mission.claimed { opacity: .6; }
.mt { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; padding-right: 74px; }
.mt span { white-space: nowrap; font-weight: 800; }
.mbar { position: relative; height: 16px; border-radius: 9px; background: rgba(255,255,255,.12); margin-top: 8px; overflow: hidden; margin-right: 74px; }
.mbar i { display: block; height: 100%; background: linear-gradient(90deg, #7ef0a8, #2fae5f); }
.mbar small { position: absolute; inset: 0; text-align: center; font-size: 12px; font-weight: 800; line-height: 16px; }
.mission .mini-btn, .mission .ok { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.mission .ok { font-size: 24px; color: #6dff9e; }
.chests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chest { background: rgba(0,0,0,.35); border-radius: 14px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 3px; align-items: center; }
.chest b { font-size: 30px; } .chest small { font-weight: 800; } .chest span { font-size: 13px; }
.chest.ready { box-shadow: inset 0 0 0 2px var(--gold); animation: pulse 1.4s infinite; }
.chest.claimed { opacity: .5; }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ach { background: rgba(0,0,0,.35); border-radius: 14px; padding: 10px; display: grid; grid-template-columns: 38px 1fr; column-gap: 8px; align-items: center; filter: grayscale(1); opacity: .55; }
.ach b { grid-row: span 3; font-size: 30px; text-align: center; }
.ach span { font-weight: 800; font-size: 14px; } .ach small { font-size: 12px; color: var(--muted); } .ach em { font-style: normal; font-size: 12px; }
.ach.got { filter: none; opacity: 1; box-shadow: inset 0 0 0 2px var(--gold); }

/* Tienda */
.shop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .shop { grid-template-columns: repeat(3, 1fr); } }
.item { background: rgba(0,0,0,.38); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.item.used { box-shadow: inset 0 0 0 3px var(--gold); }
.item b { font-size: 17px; } .item small { font-size: 13px; color: var(--muted); flex: 1; } .item small em { color: var(--gold3); font-style: normal; }
.prev { position: relative; height: 104px; border-radius: 12px; overflow: hidden; }
.prev .mcard { position: absolute; width: 46px; top: 14px; box-shadow: 0 3px 6px rgba(0,0,0,.5); }
.prev .p0 { left: 6%; transform: rotate(-10deg); } .prev .p1 { left: 24%; transform: rotate(-3deg); } .prev .p2 { left: 42%; transform: rotate(4deg); } .prev .p3 { left: 60%; transform: rotate(10deg); }
.prev .pb { right: 4%; top: 22px; width: 40px; transform: rotate(14deg); }
.swatch .p0 { left: 22%; } .swatch .p1 { left: 50%; }
.sw-emb { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 16px; color: rgba(255,255,255,.12); letter-spacing: .1em; }

/* Perfil */
.profile { padding-top: 10px; }
.pbig { display: flex; gap: 14px; align-items: center; background: rgba(0,0,0,.35); border-radius: 18px; padding: 14px; }
.pbig > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.name-in { background: rgba(255,255,255,.1); border: 0; border-radius: 10px; color: #fff; font-size: 20px; font-weight: 800; padding: 8px 10px; width: 100%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.avatars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 12px 0; }
.avatars button { font-size: 26px; padding: 6px 0; border-radius: 12px; background: rgba(0,0,0,.3); }
.avatars button.on { background: rgba(246,196,83,.3); box-shadow: inset 0 0 0 2px var(--gold); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kpis div { background: rgba(0,0,0,.35); border-radius: 12px; padding: 8px 4px; text-align: center; }
.kpis b { display: block; font-family: var(--display); font-size: 20px; color: var(--gold); } .kpis small { font-size: 11px; }
.stats { width: 100%; border-collapse: collapse; margin-top: 12px; background: rgba(0,0,0,.3); border-radius: 12px; overflow: hidden; font-size: 15px; }
.stats th, .stats td { padding: 8px; text-align: center; } .stats td:first-child, .stats th:first-child { text-align: left; }
.stats tr:nth-child(even) { background: rgba(255,255,255,.05); }
.settings { display: flex; flex-direction: column; gap: 8px; }
.tog, .setrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(0,0,0,.35); padding: 12px 14px; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; }
.setrow .seg { flex: 0 1 260px; }
.tog input { display: none; }
.tog i { width: 52px; height: 30px; border-radius: 16px; background: #555; position: relative; flex: none; transition: background .2s; }
.tog i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.tog input:checked + i { background: var(--green); }
.tog input:checked + i::after { transform: translateX(22px); }
.settings.compact { margin: 10px 0; }

/* ---------- Ventanas ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10,2,4,.6); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; backdrop-filter: blur(2px); }
.modal.on { opacity: 1; pointer-events: auto; }
.sheet { width: 100%; max-width: 560px; max-height: 92%; overflow-y: auto; background: linear-gradient(#4a0e1c, #2a0710); border-radius: 26px 26px 0 0; padding: 20px 18px calc(20px + var(--safe-b)); box-shadow: 0 -10px 40px rgba(0,0,0,.6), inset 0 2px 0 rgba(246,196,83,.4); transform: translateY(30px); transition: transform .28s cubic-bezier(.2,.9,.3,1.1); }
.modal.on .sheet { transform: translateY(0); }
@media (min-width: 720px) { .modal { align-items: center; } .sheet { border-radius: 26px; } }
.sheet h2 { font-family: var(--display); color: var(--gold); margin: 4px 0 10px; font-size: 22px; }
.mbtns { margin-top: 14px; }
.giftbig { font-size: 74px; animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.setup .su-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.su-i { font-size: 44px; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 18px; background: rgba(0,0,0,.3); flex: none; }
.setup .su-h h2 { margin: 0; } .setup .su-h p { margin: 4px 0 0; color: #f0dfc8; font-size: 15px; }
.field { margin: 14px 0; }
.field > label { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; margin-bottom: 6px; color: var(--gold3); }
.rivals { display: flex; gap: 8px; flex-wrap: wrap; }
.rv { flex: 1 1 90px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 2px var(--cc, #888); min-width: 86px; }
.rv img { width: 58px; height: 58px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 0 3px var(--cc); object-fit: cover; }
.rv b { font-size: 14px; text-align: center; } .rv small { font-size: 11px; color: var(--muted); text-align: center; }
.rv.partner { box-shadow: inset 0 0 0 3px #6dff9e; } .rv.partner small { color: #6dff9e; font-weight: 800; }
.setup .play { margin-top: 18px; font-size: 24px; }
.starsinfo { display: flex; flex-direction: column; gap: 5px; margin: 14px 0; }
.starsinfo div { background: rgba(0,0,0,.3); padding: 8px 12px; border-radius: 12px; font-weight: 700; color: var(--muted); }
.starsinfo div.on { color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.setup.gl { margin: -20px -18px; padding: 20px 18px; position: relative; }
.setup.gl::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(42,7,16,.65), rgba(42,7,16,.92)); }
.setup.gl > * { position: relative; }
.howto h2 { text-align: center; }
.hcards { display: flex; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.hcards .mcard { width: 52px; }
.howto ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.howto li { display: flex; gap: 10px; align-items: flex-start; background: rgba(0,0,0,.28); border-radius: 14px; padding: 10px 12px; }
.howto li span { font-size: 26px; line-height: 1.2; }
.howto li p { margin: 0; font-size: 16px; line-height: 1.38; }
.howto li b { color: var(--gold); }
.result { text-align: center; }
.r-title { font-family: var(--display); font-size: 46px; margin: 2px 0 6px; animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.result.win .r-title { background: linear-gradient(#fff6c9, #f6c453 50%, #d9961e); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #4a1208; filter: drop-shadow(0 4px 0 #4a1208); }
.result.lose .r-title { color: #c9b4c0; text-shadow: 0 4px 0 #1a0408; }
.r-stars { display: flex; justify-content: center; gap: 10px; font-size: 48px; margin-bottom: 4px; }
.r-stars span { color: rgba(255,255,255,.18); }
.r-stars span.on { color: var(--gold); text-shadow: 0 0 16px rgba(246,196,83,.9), 0 3px 0 #8a5a00; animation: pop .45s cubic-bezier(.2,1.8,.4,1) both; animation-delay: var(--d); }
.r-rival { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.3); border-radius: 18px; padding: 10px; text-align: left; }
.r-rival img { width: 74px; height: 74px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px var(--gold); background: #222; }
.r-q { font-style: italic; font-size: 16px; } .r-q b { display: block; font-style: normal; color: var(--gold); }
.r-detail { color: var(--muted); font-size: 14px; margin: 8px 0; }
.r-lines { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.r-lines div { display: flex; justify-content: space-between; background: rgba(0,0,0,.25); padding: 7px 12px; border-radius: 10px; animation: slideIn .4s both; animation-delay: var(--d); }
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
.r-total { font-family: var(--display); font-size: 40px; color: var(--gold); margin: 6px 0; text-shadow: 0 3px 0 #5a2a00; }
.r-total .coin { font-size: 36px; margin-right: 6px; }
.r-xp { display: flex; flex-direction: column; gap: 4px; align-items: center; margin-bottom: 8px; }
.r-xp span { font-weight: 800; color: #7ef0a8; }
.r-up { margin: 6px 0; padding: 10px; border-radius: 14px; background: linear-gradient(90deg, #ffe08a, #e0a024); color: #3b1a00; font-family: var(--display); font-size: 18px; animation: pop .5s 1.4s both; }
.r-up small { font-family: var(--font); font-weight: 800; }
.r-up.gift { background: linear-gradient(90deg, #6dff9e, #2fae5f); animation-delay: 1.7s; }
.r-ach { margin: 6px 0; padding: 8px; border-radius: 12px; background: rgba(246,196,83,.15); box-shadow: inset 0 0 0 2px var(--gold); animation: pop .5s 2s both; }
.toast { position: fixed; left: 50%; top: calc(16px + var(--safe-t)); transform: translate(-50%, -160%); visibility: hidden; z-index: 80; max-width: 90vw; padding: 12px 18px; border-radius: 16px; background: rgba(20,4,8,.94); box-shadow: 0 0 0 2px var(--gold), 0 8px 20px rgba(0,0,0,.5); font-weight: 700; transition: transform .3s cubic-bezier(.2,.9,.3,1.2); text-align: center; }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.fx-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* ---------- Tapetes ---------- */
.tap-verde { background-color: #156a3a; background-image: radial-gradient(ellipse at 50% 42%, rgba(80,200,120,.38), rgba(0,0,0,0) 60%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 .1 0 0 0 0 0 0 0 0 .28 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(#17723f, #0c4a27); }
.tap-azul { background-color: #123d84; background-image: radial-gradient(ellipse at 50% 42%, rgba(120,170,255,.35), rgba(0,0,0,0) 62%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 .1 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(#1a4ea3, #0a2556); }
.tap-hule { background-color: #f6efe0; background-image: linear-gradient(90deg, rgba(196,32,44,.55) 50%, rgba(196,32,44,0) 50%), linear-gradient(rgba(196,32,44,.55) 50%, rgba(196,32,44,0) 50%), radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.3), rgba(60,20,0,.25)); background-size: 46px 46px, 46px 46px, 100% 100%; }
.tap-madera { background-color: #7a4a24; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .32' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .1 0 0 0 0 .02 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='400' height='120' filter='url(%23w)'/%3E%3C/svg%3E"), repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 2px, rgba(0,0,0,0) 2px 120px), radial-gradient(ellipse at 50% 42%, rgba(255,200,140,.28), rgba(0,0,0,.25)), linear-gradient(#8c5a2e, #5a3418); }
.tap-neon { background-color: #12052a; background-image: radial-gradient(ellipse at 50% 45%, rgba(190,60,255,.35), rgba(0,0,0,0) 60%), linear-gradient(rgba(255,60,200,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(60,220,255,.13) 1px, transparent 1px), linear-gradient(#1c0740, #08021a); background-size: 100% 100%, 34px 34px, 34px 34px, 100% 100%; }
.tap-real { background-color: #5a0d1e; background-image: radial-gradient(ellipse at 50% 42%, rgba(255,90,110,.28), rgba(0,0,0,0) 60%), radial-gradient(circle at 50% 50%, rgba(246,196,83,.16) 2px, transparent 3px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 0 0 0 0 0 .02 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(#6d1426, #2e040d); background-size: 100% 100%, 28px 28px, auto, 100% 100%; }

/* ---------- Mesa ---------- */
#s-game { background: #000; }
.board { position: absolute; inset: 0; overflow: hidden; touch-action: manipulation; }
.board::before { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 7px rgba(60,30,10,.85), inset 0 0 0 9px rgba(246,196,83,.25), inset 0 0 120px rgba(0,0,0,.65); z-index: 1; }
.board.tap-hule::before { box-shadow: inset 0 0 0 7px rgba(120,60,20,.6), inset 0 0 90px rgba(60,20,0,.35); }
.board.tap-neon::before { box-shadow: inset 0 0 0 3px rgba(255,60,200,.8), inset 0 0 18px rgba(255,60,200,.6), inset 0 0 120px rgba(0,0,0,.6); }
.board.tap-real::before { box-shadow: inset 0 0 0 6px #2a0408, inset 0 0 0 9px var(--gold), inset 0 0 0 11px #2a0408, inset 0 0 120px rgba(0,0,0,.6); }
.board.tap-azul::before { box-shadow: inset 0 0 0 7px #0a1530, inset 0 0 0 9px rgba(246,196,83,.55), inset 0 0 120px rgba(0,0,0,.55); }
.b-emblem { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); pointer-events: none; width: min(70vw, 420px); height: min(70vw, 420px); border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08); }
.b-emblem span { font-family: var(--display); font-size: min(9vw, 54px); letter-spacing: .12em; color: rgba(255,255,255,.07); transform: rotate(-8deg); }
.tap-hule .b-emblem span { color: rgba(120,20,20,.12); }
.tap-neon .b-emblem { box-shadow: 0 0 0 2px rgba(60,220,255,.25), 0 0 30px rgba(60,220,255,.15); }
.tap-neon .b-emblem span { color: rgba(255,80,220,.16); text-shadow: 0 0 12px rgba(255,80,220,.4); }
.tap-real .b-emblem { box-shadow: inset 0 0 0 2px rgba(246,196,83,.25), 0 0 0 10px rgba(246,196,83,.05); }
.b-layer, .b-seats, .b-fx { position: absolute; inset: 0; }
.b-layer { z-index: 3; perspective: 1400px; }
.b-seats { z-index: 2; pointer-events: none; }
.b-fx { z-index: 6; pointer-events: none; }
.b-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.board.shake { animation: shake .45s; }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-6px, 2px); } 40%, 60% { transform: translate(6px, -1px); } }

.g-hud { position: absolute; top: 0; left: 0; right: 0; z-index: 8; display: flex; align-items: center; gap: 8px; padding: calc(6px + var(--safe-t)) 8px 6px; background: linear-gradient(rgba(10,2,4,.75), rgba(10,2,4,0)); pointer-events: none; }
.g-hud > * { pointer-events: auto; }
.hbtn { width: 42px; height: 42px; border-radius: 13px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); font-size: 22px; font-weight: 900; flex: none; }
.g-title { font-family: var(--display); font-size: 17px; text-shadow: 0 2px 2px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.trump { font-family: var(--font); font-size: 13px; font-weight: 800; background: rgba(0,0,0,.5); padding: 3px 8px 3px 4px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; box-shadow: inset 0 0 0 1px rgba(246,196,83,.6); }
.tsi { width: 18px; height: 18px; vertical-align: -4px; }
.bsi { width: 20px; height: 20px; vertical-align: -5px; }
.g-score { margin-left: auto; font-weight: 800; font-size: 15px; background: rgba(0,0,0,.5); padding: 7px 11px; border-radius: 12px; white-space: nowrap; }
.g-msg { position: absolute; width: max-content; left: 50%; bottom: calc(var(--handH, 130px) + var(--avMe, 46px) + 48px + var(--safe-b)); transform: translate(-50%, 10px); z-index: 7; max-width: 94vw; padding: 8px 14px; border-radius: 14px; background: rgba(10,2,4,.78); box-shadow: 0 0 0 1px rgba(246,196,83,.45); font-size: 15px; font-weight: 600; text-align: center; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.g-msg.on { opacity: 1; transform: translate(-50%, 0); }
.g-msg b.ok { color: #6dff9e; font-size: 1.15em; } .g-msg b.ko { color: #ffcf6a; font-size: 1.15em; }
.g-actions { position: absolute; left: 0; right: 0; bottom: calc(var(--handH, 130px) + 2px + var(--safe-b)); min-height: calc(var(--avMe, 46px) + 8px); z-index: 7; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 10px 0 calc(var(--avMe, 46px) + 18px); pointer-events: none; }
.g-actions:empty { display: none; }
.abtn { pointer-events: auto; padding: 13px 16px; border-radius: 16px; font-family: var(--display); font-size: 17px; text-shadow: 0 2px 0 rgba(0,0,0,.35); background: linear-gradient(#4fd17f, #23944f); box-shadow: 0 4px 0 #145c31, 0 6px 14px rgba(0,0,0,.45); animation: popIn .25s cubic-bezier(.2,1.5,.4,1) both; transition: transform .08s, filter .2s; }
.abtn:active { transform: translateY(3px); }
.abtn.alt { background: linear-gradient(#5a6d8f, #3a4a66); box-shadow: 0 4px 0 #222d40, 0 6px 14px rgba(0,0,0,.45); }
.abtn.gold { background: linear-gradient(#ffe08a, #e0a024); color: #3b1a00; text-shadow: none; box-shadow: 0 4px 0 #8a5a00, 0 6px 14px rgba(0,0,0,.45); }
.abtn:disabled { filter: grayscale(.9) brightness(.6); }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Asientos */
.seat { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: transform .3s; }
.seat .av { position: absolute; width: var(--av); height: var(--av); left: calc(var(--av) / -2); top: calc(var(--av) / -2); border-radius: 50%; overflow: hidden; background: var(--cc, #555); box-shadow: 0 0 0 3px var(--cc, #ddd), 0 4px 10px rgba(0,0,0,.6); }
.seat .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seat .av.emo { font-size: calc(var(--av) * .55); }
.seat .nm { position: absolute; top: calc(var(--av) / 2 + 3px); left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 800; background: rgba(10,2,4,.8); padding: 2px 8px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.seat .inf { position: absolute; top: calc(var(--av) / 2 + 24px); left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--gold3); text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.seat .inf b { color: #fff; font-size: 15px; }
.seat .tag { position: absolute; bottom: calc(var(--av) / 2 + 2px); left: 0; transform: translate(-50%, 6px) scale(.6); opacity: 0; white-space: nowrap; font-size: 13px; font-weight: 900; padding: 3px 9px; border-radius: 10px; background: rgba(10,2,4,.85); transition: all .25s cubic-bezier(.2,1.5,.4,1); }
.seat .tag.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.seat .tag.gold { background: linear-gradient(#ffe08a, #e0a024); color: #3b1a00; }
.seat .tag.good { background: linear-gradient(#7ef0a8, #2fae5f); color: #0b2a14; }
.seat .tag.off { opacity: .75; color: #bbb; }
.seat .tag .dots { letter-spacing: 2px; }
.seat.turn .av { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gold), 0 0 22px 6px rgba(246,196,83,.8); animation: turnPulse 1s ease-in-out infinite; }
@keyframes turnPulse { 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--gold), 0 0 30px 10px rgba(246,196,83,.9); } }
.seat.out { filter: grayscale(1) brightness(.6); }
.seat.me .av { width: var(--avMe); height: var(--avMe); left: calc(var(--avMe) / -2); top: calc(var(--avMe) / -2); font-size: calc(var(--avMe) * .58); }
.seat.me .nm { display: none; }
.seat.me .inf { top: auto; bottom: calc(var(--avMe) / 2 + 4px); left: -8px; transform: none; background: rgba(10,2,4,.75); padding: 2px 8px; border-radius: 9px; }
.seat.me .tag { left: -8px; bottom: calc(var(--avMe) / 2 + 30px); transform: scale(.6); transform-origin: 0 100%; }
.seat.me .tag.on { transform: scale(1); }
.seat.me .inf:empty { display: none; }
.seat.team0:not(.me) .av { box-shadow: 0 0 0 3px #6dff9e, 0 4px 10px rgba(0,0,0,.6); }
.seat.team0:not(.me) .nm::before { content: '🤝 '; }
.bubble { position: absolute; z-index: 9; max-width: 210px; padding: 9px 12px; border-radius: 16px; background: #fffdf5; color: #2a1408; font-size: 14px; font-weight: 700; line-height: 1.25; box-shadow: 0 6px 16px rgba(0,0,0,.45); opacity: 0; transform: translate(-50%, 0) scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.2,1.5,.4,1); pointer-events: none; }
.bubble.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bubble.p-top, .bubble.p-topleft, .bubble.p-topright { margin-top: calc(var(--av) * .55 + 46px); }
.bubble.p-topleft { transform-origin: 30% 0; } .bubble.p-topright { transform-origin: 70% 0; }
.bubble.p-left { margin-top: calc(var(--av) * -1.35); margin-left: 70px; }
.bubble.p-right { margin-top: calc(var(--av) * -1.35); margin-left: -70px; }
.bubble::after { content: ''; position: absolute; left: 50%; top: -8px; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #fffdf5; }
.bubble.p-left::after, .bubble.p-right::after { top: auto; bottom: -8px; border-bottom: 0; border-top: 8px solid #fffdf5; }


.seat.p-left .nm, .seat.p-left .inf { left: calc(var(--av) / -2 - 2px); transform: none; }
.seat.p-right .nm, .seat.p-right .inf { left: auto; right: calc(var(--av) / -2 - 2px); transform: none; }
.seat.p-left .tag { left: calc(var(--av) / -2); transform: translate(0, 6px) scale(.6); }
.seat.p-left .tag.on { transform: none; }
.seat.p-right .tag { left: auto; right: calc(var(--av) / -2); transform: translate(0, 6px) scale(.6); }
.seat.p-right .tag.on { transform: none; }
.seat .inf .coin { font-size: 12px; }
.g-msg { max-width: calc(100% - 110px); }

/* Efectos */
.banner { position: absolute; left: 50%; z-index: 10; transform: translate(-50%, -50%) scale(.3) rotate(-8deg); opacity: 0; text-align: center; transition: transform .38s cubic-bezier(.2,1.7,.4,1), opacity .2s; white-space: nowrap; }
.banner.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.banner.off { opacity: 0; transform: translate(-50%, -80%) scale(1.15) rotate(-4deg); transition: transform .35s, opacity .35s; }
.banner b { display: block; font-family: var(--display); font-size: clamp(30px, 10vw, 64px); color: #fff; -webkit-text-stroke: 2px #3b0a14; text-shadow: 0 5px 0 #3b0a14, 0 10px 22px rgba(0,0,0,.7); }
.banner.gold b { background: linear-gradient(#fff6c9, #f6c453 50%, #d9961e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 #4a1208) drop-shadow(0 10px 18px rgba(0,0,0,.6)); text-shadow: none; }
.banner.red b { color: #ff6b5e; }
.banner.big b { font-size: clamp(40px, 14vw, 88px); }
.banner small { display: inline-block; margin-top: 6px; padding: 5px 12px; border-radius: 12px; background: rgba(10,2,4,.8); font-size: 15px; font-weight: 800; white-space: normal; max-width: 86vw; }
.float { position: absolute; z-index: 10; transform: translate(-50%, 0); font-family: var(--display); font-size: 22px; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px #000; opacity: 0; transition: transform 1.3s cubic-bezier(.2,.8,.3,1), opacity .25s; white-space: nowrap; }
.float.on { opacity: 1; transform: translate(-50%, -54px); }
.float.good { color: #7ef0a8; } .float.bad { color: #ff8a80; } .float.gold { color: var(--gold); }
.toastg { position: absolute; left: 50%; top: 64px; transform: translate(-50%, -20px); opacity: 0; z-index: 11; padding: 9px 16px; border-radius: 14px; background: rgba(10,2,4,.9); box-shadow: 0 0 0 2px var(--gold); font-weight: 700; font-size: 15px; transition: all .25s; max-width: 92vw; text-align: center; }
.toastg.on { opacity: 1; transform: translate(-50%, 0); }
.deckc { position: absolute; transform: translate(-50%, 0); z-index: 4; font-weight: 900; font-size: 13px; padding: 1px 8px; border-radius: 9px; background: rgba(10,2,4,.8); opacity: 0; transition: opacity .2s; }
.deckc.on { opacity: 1; }
.plato { position: absolute; z-index: 4; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; background: rgba(10,2,4,.6); padding: 8px 14px; border-radius: 18px; box-shadow: 0 0 0 2px rgba(246,196,83,.6); }
.plato b { font-family: var(--display); font-size: 22px; color: var(--gold); }
.plato small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.plato .pchips { width: 40px; height: 22px; background: radial-gradient(circle at 30% 50%, #f6c453 0 30%, transparent 31%), radial-gradient(circle at 60% 40%, #e2463c 0 30%, transparent 31%), radial-gradient(circle at 75% 65%, #3a78d8 0 30%, transparent 31%); }
.plato.bump { animation: pop .4s; }
.sumpill { position: absolute; z-index: 5; transform: translate(-50%, -50%) scale(.6); opacity: 0; font-family: var(--display); font-size: 26px; padding: 4px 16px; border-radius: 16px; background: rgba(10,2,4,.8); box-shadow: 0 0 0 2px rgba(255,255,255,.4); transition: all .25s cubic-bezier(.2,1.5,.4,1); }
.sumpill.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sumpill.bust { color: #ff6b5e; box-shadow: 0 0 0 2px #ff6b5e; }
.sumpill.max { color: var(--gold); box-shadow: 0 0 0 3px var(--gold), 0 0 18px var(--gold); }

/* Paneles en partida */
.gpanel { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(10,2,4,.55); opacity: 0; transition: opacity .25s; }
.gpanel.on { opacity: 1; }
.gp-card { width: 100%; max-width: 480px; max-height: 92%; overflow-y: auto; background: linear-gradient(#4a0e1c, #2a0710); border-radius: 24px; padding: 18px; box-shadow: 0 0 0 2px rgba(246,196,83,.5), 0 20px 50px rgba(0,0,0,.7); transform: scale(.85); transition: transform .3s cubic-bezier(.2,1.5,.4,1); }
.gp-card.wide { max-width: 640px; }
.gpanel.on .gp-card { transform: scale(1); }
.gp-card h3 { margin: 0 0 12px; text-align: center; font-family: var(--display); font-size: 24px; color: var(--gold); }
.gp-btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.gp-btns .abtn { animation: none; min-width: 200px; }
.duel { display: flex; align-items: center; justify-content: center; gap: 14px; }
.duel .side { flex: 1; text-align: center; background: rgba(0,0,0,.3); border-radius: 16px; padding: 10px; }
.duel .side.win { box-shadow: inset 0 0 0 3px var(--gold); background: rgba(246,196,83,.15); }
.duel .who { font-weight: 800; }
.duel .big { font-family: var(--display); font-size: 46px; color: #fff; }
.duel .side.win .big { color: var(--gold); }
.duel .vs { font-size: 24px; opacity: .6; }
.meter { position: relative; height: 14px; border-radius: 8px; background: rgba(255,255,255,.12); margin: 12px 0; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #7ef0a8, #2fae5f); }
.meter b { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; }
.chip { display: inline-block; background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 10px; margin: 2px; font-size: 14px; }
.rtab { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 15px; }
.rtab th { font-size: 12px; font-weight: 800; color: var(--muted); padding: 2px; }
.rtab th small { display: block; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 auto; }
.rtab td { background: rgba(0,0,0,.28); padding: 7px 6px; text-align: center; font-weight: 700; }
.rtab td:first-child { border-radius: 10px 0 0 10px; text-align: left; } .rtab td:last-child { border-radius: 0 10px 10px 0; }
.rtab td.lbl { font-size: 14px; white-space: nowrap; }
.rtab td.pt { color: var(--gold); }
.rtab td em { font-style: normal; display: inline-block; margin-left: 4px; background: var(--gold); color: #3b1a00; border-radius: 8px; padding: 0 5px; font-size: 12px; font-weight: 900; }
.rtab tr.tot td { background: rgba(246,196,83,.12); }
.rtab tr.tot.big td { font-family: var(--display); font-size: 20px; }
.rtab td.win { color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.rtab tr.me td { box-shadow: inset 0 0 0 0 transparent; background: rgba(246,196,83,.12); }
.rtab tr.out td { opacity: .6; }
.rtab.anim tr { animation: slideIn .35s both; animation-delay: var(--d, 0s); }
.mav { width: 34px; height: 34px; border-radius: 50%; display: block; margin: 0 auto 2px; object-fit: cover; background: #333; }
.mav.emo { display: grid; place-items: center; font-size: 20px; background: radial-gradient(#7a2a3a, #3b0a14); }
.mini-rank { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 13px; }
.mini-rank span { background: rgba(0,0,0,.3); padding: 4px 8px; border-radius: 10px; }
.mini-rank span.me { box-shadow: inset 0 0 0 2px var(--gold); }
.mhand { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-start; }
.rtab.chin td.cards { text-align: left; }
.rtab.chin td.who { font-size: 13px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Cartas ---------- */
.card { position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); transform-origin: 50% 50%; transition: transform .38s cubic-bezier(.2,.75,.25,1), opacity .3s; will-change: transform; cursor: default; }
.noanim .card, .noanim .card .ci { transition: none !important; }
.card .ci { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .38s ease; }
.card.up .ci { transform: rotateY(180deg); }
.cfront, .cback { position: absolute; inset: 0; border-radius: calc(var(--cw) * .085); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 1px 1px rgba(0,0,0,.35), 0 3px 8px rgba(0,0,0,.35); }
.card .cfront { transform: rotateY(180deg); }
.card.gone { opacity: 0; pointer-events: none; }
.card.can { cursor: pointer; }
.card.can .cfront { box-shadow: 0 0 0 3px #ffe27a, 0 0 16px 3px rgba(255,214,90,.7), 0 3px 8px rgba(0,0,0,.4); }
.card.dimx .cfront { filter: brightness(.55) saturate(.55); }
.card.sel .cfront { box-shadow: 0 0 0 4px #fff, 0 0 22px 6px rgba(255,240,180,.95), 0 8px 14px rgba(0,0,0,.5); }
.card.pick .cfront { box-shadow: 0 0 0 4px #ffcf3a, 0 0 22px 8px rgba(255,200,40,.95); filter: brightness(1.08); }
.card.opt:not(.pick) .cfront { box-shadow: 0 0 0 3px rgba(140,220,255,.9), 0 0 14px 2px rgba(140,220,255,.6); }
.card.win .cfront { box-shadow: 0 0 0 4px var(--gold), 0 0 26px 8px rgba(246,196,83,.95); animation: winGlow .5s ease-in-out infinite alternate; }
@keyframes winGlow { to { filter: brightness(1.18); } }
.card.show .cfront { box-shadow: 0 0 0 4px #ff9be0, 0 0 22px 6px rgba(255,120,220,.85); }
.card.sug .cfront { box-shadow: 0 0 0 4px #6dff9e, 0 0 20px 5px rgba(80,255,150,.8); animation: winGlow .6s ease-in-out infinite alternate; }
.card.new .cfront { animation: newGlow 1.2s ease-out; }
@keyframes newGlow { from { box-shadow: 0 0 0 4px #fff, 0 0 26px 10px rgba(255,255,255,.9); } }
.card.mark .cfront::before { content: '✕'; position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; font-size: calc(var(--cw) * .7); font-weight: 900; color: #ff3b30; background: rgba(255,255,255,.35); text-shadow: 0 2px 0 #fff; }
.card.mark { filter: drop-shadow(0 0 8px rgba(255,60,48,.9)); }
.card.nope .ci { animation: nope .35s; }
.card.up.nope .ci { animation: nopeUp .35s; }
@keyframes nope { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
@keyframes nopeUp { 0%, 100% { transform: rotateY(180deg); } 25% { transform: rotateY(180deg) translateX(7px); } 75% { transform: rotateY(180deg) translateX(-7px); } }
.card.shuf .ci { animation: shuf .32s ease-in-out 2; }
@keyframes shuf { 50% { transform: translate(calc(var(--cw) * .45), -4px) rotate(8deg); } }
.card.m1 .cfront::after, .card.m2 .cfront::after, .card.m3 .cfront::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: 2.5%; height: 6%; border-radius: 4px; z-index: 6; }
.card.m1 .cfront::after { background: #2fae5f; } .card.m2 .cfront::after { background: #3a78d8; } .card.m3 .cfront::after { background: #9b59d0; }
.card.hint15::before, .card.hintesc::before { position: absolute; z-index: 8; top: -10px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 900; padding: 1px 7px; border-radius: 9px; background: #2fae5f; color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.5); white-space: nowrap; }
.card.hint15::before { content: '15'; }
.card.hintesc::before { content: '🧹 ESCOBA'; background: linear-gradient(#ffe08a, #e0a024); color: #3b1a00; }
.board.show-v .card.up[data-v]::after { content: attr(data-v); position: absolute; z-index: 8; left: -5px; bottom: 12%; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: rgba(29,20,16,.92); color: var(--gold); font-weight: 900; font-size: 12px; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px var(--gold), 0 2px 4px rgba(0,0,0,.5); }

/* Anverso común */
.cfront { background: linear-gradient(160deg, #fffdf6, #f5ecd8); color: #222; }
.frm { position: absolute; inset: 3.5% 4.5%; border: max(1.5px, calc(var(--cw) * .025)) solid currentColor; border-radius: calc(var(--cw) * .06); }
.gps { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 9%; height: max(2px, calc(var(--cw) * .04)); }
.gps.t { top: calc(var(--cw) * -.03); } .gps.b { bottom: calc(var(--cw) * -.03); }
.gps i { width: 9%; height: 100%; background: #fbf5e8; }
.cfront .fig { position: absolute; left: 10%; right: 10%; top: 8%; bottom: 7%; width: 80%; height: 85%; object-fit: contain; }
.cfront .ace { position: absolute; left: 50%; top: 50%; width: 78%; transform: translate(-50%, -50%); }
.cfront .pp { position: absolute; width: auto; }
.cfront .ix { position: absolute; z-index: 4; font-family: var(--display); font-size: calc(var(--cw) * .2); line-height: .9; padding: 2% 3% 3%; background: #fbf5e8; border-radius: 0 0 30% 0; display: flex; flex-direction: column; align-items: center; letter-spacing: -.04em; }
.cfront .ix.tl { left: 1.5%; top: 1%; }
.cfront .ix.br { right: 1.5%; bottom: 1%; transform: rotate(180deg); }
.cfront .ixs { width: calc(var(--cw) * .15); height: calc(var(--cw) * .15); margin-top: 1px; }
.bigidx .cfront .ix { font-size: calc(var(--cw) * .3); }
.bigidx .cfront .ixs { width: calc(var(--cw) * .2); height: calc(var(--cw) * .2); }
.c0 { color: var(--oros); } .c1 { color: var(--copas); } .c2 { color: var(--espadas); } .c3 { color: var(--bastos); }
.joker { position: absolute; inset: 8%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; }
.joker svg { width: 82%; }
.joker b { font-family: var(--display); font-size: calc(var(--cw) * .15); color: #b8261d; letter-spacing: .02em; }

/* Barajas */
.d-cartoon .cfront { background: #f9f6e6; }
.d-cartoon .cfront .fig { left: 6%; right: 6%; width: 88%; top: 12%; bottom: 10%; height: 78%; }
.d-cartoon .gps i, .d-cartoon .cfront .ix { background: #f9f6e6; }
.d-tipica .cfront { background: linear-gradient(160deg, #fffaf0, #f3e7cf); }
.d-parroquia .cfront { background: linear-gradient(160deg, #fff8ec, #efe0c4); }
.d-parroquia .frm { border-style: double; border-width: max(3px, calc(var(--cw) * .045)); }
.d-neon .cfront { background: radial-gradient(ellipse at 50% 40%, #1f2552, #090b1c 75%); color: #fff; }
.d-neon .frm { box-shadow: 0 0 6px currentColor, inset 0 0 6px currentColor; }
.d-neon .gps i, .d-neon .cfront .ix { background: #0e1128; }
.d-neon .cfront .ix { text-shadow: 0 0 6px currentColor; }
.d-neon .c0 { color: #ffcf3a; } .d-neon .c1 { color: #ff3d7f; } .d-neon .c2 { color: #35e4ff; } .d-neon .c3 { color: #45ff8a; }
.d-neon .joker b { color: #ff3d7f; text-shadow: 0 0 8px #ff3d7f; }
.d-retro .cfront { background: #f3ead2; border-radius: 3px; box-shadow: 0 0 0 2px #2a2018, 0 3px 0 #2a2018; }
.d-retro .cfront img { image-rendering: pixelated; image-rendering: crisp-edges; }
.d-retro .frm { border-radius: 0; border-style: dashed; }
.d-retro .gps i, .d-retro .cfront .ix { background: #f3ead2; }
.d-retro .cfront .ix { font-family: "Courier New", ui-monospace, monospace; font-weight: 900; border-radius: 0; }
.d-retro .cback { border-radius: 3px; }

/* Reversos */
.cback { background: #7a1424; }
.d-clasica .cback { background: #8a1b28 url('../assets/decks/clasica/back.webp') center / cover; }
.d-tipica .cback { background: repeating-linear-gradient(45deg, #b3202a 0 7px, #d23a3f 7px 14px), #b3202a; box-shadow: inset 0 0 0 calc(var(--cw) * .05) #fbf2df, inset 0 0 0 calc(var(--cw) * .07) #b3202a, 0 3px 8px rgba(0,0,0,.35); }
.d-tipica .cback::after, .d-parroquia .cback::after, .d-cartoon .cback::after { content: 'T'; position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #fbf2df; color: #b3202a; font-family: var(--display); font-size: calc(var(--cw) * .28); display: grid; place-items: center; box-shadow: 0 0 0 3px #f6c453; }
.d-parroquia .cback { background: radial-gradient(circle at 25% 25%, #3c9a5a 0 12%, transparent 13%) 0 0 / 22% 16%, radial-gradient(circle at 75% 75%, #2e7d48 0 12%, transparent 13%) 0 0 / 22% 16%, #1f5e36; box-shadow: inset 0 0 0 calc(var(--cw) * .05) #f6e7c4, inset 0 0 0 calc(var(--cw) * .07) #1f5e36, 0 3px 8px rgba(0,0,0,.35); }
.d-parroquia .cback::after { color: #1f5e36; }
.d-cartoon .cback { background: radial-gradient(circle, #6fb1ff 0 22%, transparent 23%) 0 0 / 18% 12%, #2f6fd1; box-shadow: inset 0 0 0 calc(var(--cw) * .05) #fff, 0 3px 8px rgba(0,0,0,.35); }
.d-cartoon .cback::after { color: #2f6fd1; background: #fff; }
.d-neon .cback { background: linear-gradient(rgba(255,61,127,.35) 1px, transparent 1px) 0 0 / 100% 12%, linear-gradient(90deg, rgba(53,228,255,.35) 1px, transparent 1px) 0 0 / 16% 100%, radial-gradient(#2a1050, #0a0418); box-shadow: inset 0 0 0 2px #ff3d7f, inset 0 0 12px #ff3d7f, 0 3px 8px rgba(0,0,0,.5); }
.d-neon .cback::after { content: 'T'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: calc(var(--cw) * .5); color: #35e4ff; text-shadow: 0 0 8px #35e4ff, 0 0 18px #35e4ff; }
.d-retro .cback { background: repeating-conic-gradient(#3a5bd0 0 25%, #2a3f99 0 50%) 0 0 / 20% 13%; box-shadow: inset 0 0 0 3px #f3ead2, inset 0 0 0 5px #2a2018, 0 0 0 2px #2a2018; }

/* Cartas de menú */
.mcard { position: relative; width: 54px; aspect-ratio: 1 / 1.54; --cw: 54px; flex: none; }
.mcard.sm { width: 46px; --cw: 46px; }
.mcard.xs { width: 30px; --cw: 30px; }
.mcard.xs .gps { display: none; }
.mcard .cfront, .mcard .cback { position: absolute; inset: 0; transform: none; border-radius: calc(var(--cw) * .1); }
.gcards .mcard, .logo .fan .mcard, .prev .mcard { --cw: 40px; }
.logo .fan .mcard { --cw: 58px; }
.logo.small .fan .mcard { --cw: 42px; }
.prev .mcard { --cw: 46px; } .prev .pb { --cw: 40px; }
.hcards .mcard { --cw: 52px; }
.mcard.lo { outline: 2px solid #ff6b5e; outline-offset: 1px; border-radius: 3px; }
.mcard.g1 .cfront::after, .mcard.g2 .cfront::after, .mcard.g3 .cfront::after, .mcard.laid .cfront::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: 3%; height: 8%; border-radius: 3px; z-index: 6; }
.mcard.g1 .cfront::after { background: #2fae5f; } .mcard.g2 .cfront::after { background: #3a78d8; } .mcard.g3 .cfront::after { background: #9b59d0; } .mcard.laid .cfront::after { background: #f6c453; }

/* Escritorio / horizontal */
@media (orientation: landscape) and (min-width: 900px) {
  .bubble { font-size: 15px; max-width: 260px; }
  .g-title { font-size: 20px; }
}
@media (max-width: 380px) {
  .gtile b { font-size: 18px; } .gtile small { font-size: 12px; }
  .abtn { padding: 11px 15px; font-size: 16px; }
  .seg button { font-size: 14px; min-width: 54px; }
}
.sheet .setup[class*="g-"] { margin: -20px -18px calc(-20px - var(--safe-b)); padding: 20px 18px calc(20px + var(--safe-b)); min-height: 100%; }
@media (max-width: 420px) {
  .abtn { font-size: 15px; padding: 12px 12px; }
}

.banner-btn.chall { background: linear-gradient(100deg, #9b59d0, #5a2a8a); }
.banner-btn.chall.done { filter: saturate(.4); opacity: .8; }
.goal { display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 8px auto; padding: 10px 14px; border-radius: 16px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); text-align: left; }
.goal .gl-t { font-size: 15px; } .goal .gl-t b { color: var(--gold); }
.goal .gl-b { position: relative; display: block; height: 18px; border-radius: 10px; background: rgba(255,255,255,.12); overflow: hidden; }
.goal .gl-b i { display: block; height: 100%; background: linear-gradient(90deg, #ffe08a, #e0a024); }
.goal .gl-b small { position: absolute; inset: 0; text-align: center; font-size: 12px; font-weight: 800; line-height: 18px; text-shadow: 0 1px 1px #000; }
.streak { align-self: flex-start; font-weight: 900; font-size: 14px; color: #ffb36b; background: rgba(255,120,40,.18); padding: 3px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,140,60,.5); }
.rv .vs { font-style: normal; font-size: 12px; font-weight: 900; color: var(--gold); background: rgba(0,0,0,.4); border-radius: 8px; padding: 1px 7px; margin-top: 2px; }
.r-q .vsl { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Versión 2: baraja Tradicional (Fournier 1878), cartas grandes y nuevas marcas ---------- */
.cfront .full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.d-tradicional .cfront { background: #efe3c8; }
.d-tradicional .cback { background: #8a1420 url('../assets/decks/tradicional/back.webp') center / cover; box-shadow: inset 0 0 0 calc(var(--cw) * .045) #f1e6cd, inset 0 0 0 calc(var(--cw) * .06) #8a1420, 0 3px 8px rgba(0,0,0,.35); }
.cfront .ix.over { display: none; }
.bigidx .cfront .ix.over { display: flex; background: #f1e6cd; border-radius: 0 0 28% 0; padding: 3% 4% 4%; box-shadow: 1px 1px 0 rgba(0,0,0,.08); }
.bigidx .cfront .ix.over.br { border-radius: 0 0 28% 0; }
.bigidx .cfront .ix { font-size: calc(var(--cw) * .3); }
.card.played .cfront { box-shadow: 0 0 0 4px #7fd3ff, 0 0 22px 6px rgba(120,210,255,.85); }
.sumlbl { position: absolute; z-index: 12; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; text-align: center; font-family: var(--display); font-size: clamp(26px, 8vw, 44px); color: #fff; padding: 8px 18px; border-radius: 18px; background: rgba(10,2,4,.82); box-shadow: 0 0 0 3px var(--gold), 0 10px 26px rgba(0,0,0,.6); transition: transform .3s cubic-bezier(.2,1.6,.4,1), opacity .2s; white-space: nowrap; }
.sumlbl.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sumlbl b { color: var(--gold); }
.sumlbl small { display: block; font-family: var(--font); font-size: 15px; font-weight: 800; color: var(--gold3); margin-bottom: 2px; }
.board.dragon .b-layer .card { touch-action: none; }
.card.dragging { transition: none !important; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.card.dragging .cfront { box-shadow: 0 0 0 3px #fff, 0 0 18px 4px rgba(255,255,255,.6); }
.lastt { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.lastt > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 14px; background: rgba(0,0,0,.25); }
.lastt > div.win { box-shadow: inset 0 0 0 3px var(--gold); background: rgba(246,196,83,.15); }
.lastt b { font-size: 14px; } .lastt small { color: var(--gold); font-weight: 800; }
.mcard.lg { width: 76px; --cw: 76px; }
.diffhelp { margin: -4px 0 6px; font-size: 14px; color: #f0dfc8; background: rgba(0,0,0,.25); padding: 8px 12px; border-radius: 12px; }
.g-hud #g-last { font-size: 20px; }
.card.mark { filter: drop-shadow(0 0 8px rgba(255,60,48,.9)); }

@media (max-width: 440px) {
  .g-title .gname { display: none; }
  .g-hud { gap: 6px; }
  .g-score { font-size: 14px; padding: 6px 9px; }
  .hbtn { width: 40px; height: 40px; }
}
.abtn.claim { font-size: 22px; padding: 16px 26px; background: linear-gradient(#ff7a6e, #d42a1f); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); box-shadow: 0 5px 0 #7a120c, 0 0 0 4px rgba(255,220,120,.9), 0 0 30px 8px rgba(255,80,60,.75); animation: claimPulse .5s ease-in-out infinite alternate, popIn .25s both; }
.abtn.claim small { font-family: var(--font); font-weight: 900; background: rgba(0,0,0,.35); border-radius: 10px; padding: 1px 8px; margin-left: 4px; }
@keyframes claimPulse { from { transform: scale(1); } to { transform: scale(1.08); } }

.sumlbl.mini { font-size: clamp(17px, 5vw, 24px); padding: 6px 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.35), 0 8px 18px rgba(0,0,0,.5); }
.sumlbl.mini small { font-size: 13px; }

/* Carta que va ganando la baza */
.card.lead .cfront { box-shadow: 0 0 0 3px var(--gold), 0 0 16px 4px rgba(246,196,83,.7); }
.card.lead::before { content: '👑'; position: absolute; z-index: 9; top: -16px; left: 50%; transform: translateX(-50%); font-size: 20px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
/* Letra más grande para leer mejor */
.g-msg { font-size: 17px; }
.bubble { font-size: 15px; }
.seat .nm { font-size: 14px; }
.seat .inf { font-size: 14px; }
.toastg { font-size: 16px; }

.g-guinote { background: linear-gradient(150deg, #c9a227, #6e4f08); }
.g-pocha { background: linear-gradient(150deg, #e05a9a, #7a1a4c); }
.g-cinquillo { background: linear-gradient(150deg, #4caf50, #1e5e2a); }
.g-mentiroso { background: linear-gradient(150deg, #6d6dd8, #2c2c7a); }
.abtn.bid { min-width: 52px; padding: 12px 10px; }
.mpile { position: absolute; z-index: 5; transform: translate(-50%, -100%); text-align: center; padding: 6px 14px; border-radius: 14px; background: rgba(10,2,4,.75); box-shadow: 0 0 0 2px rgba(246,196,83,.55); opacity: 0; transition: opacity .2s; pointer-events: none; }
.mpile.on { opacity: 1; }
.mpile b { display: block; font-family: var(--display); font-size: 20px; color: var(--gold); }
.mpile small { font-size: 13px; font-weight: 800; }
.tmeld { display: flex; align-items: center; gap: 8px; margin: 6px 0; background: rgba(0,0,0,.25); padding: 6px 8px; border-radius: 12px; }
.tmeld > small { min-width: 64px; font-weight: 800; color: var(--gold3); }
.tmeld .lay { position: relative; display: inline-block; }
.tmeld .lay.new .mcard { outline: 3px solid var(--gold); outline-offset: 1px; border-radius: 4px; }
.tmeld .lay em { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 900; color: var(--gold); white-space: nowrap; }
.tmeld .mhand { gap: 3px; padding-bottom: 12px; }

.board.n4 .seat.p-top .nm, .board.n4 .seat.p-topleft .nm, .board.n4 .seat.p-topright .nm,
.board.n3 .seat.p-topleft .nm, .board.n3 .seat.p-topright .nm { max-width: 96px; }
.board.n5 .seat .nm, .board.n6 .seat .nm { max-width: 84px; font-size: 13px; }

/* Maestro (consejos) */
.coach { position: absolute; left: 50%; top: 62px; z-index: 30; width: min(94vw, 460px); transform: translate(-50%, -16px); opacity: 0; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 18px; background: linear-gradient(#fffaf0, #f3e6c8); color: #2a1408; box-shadow: 0 0 0 3px var(--gold), 0 10px 26px rgba(0,0,0,.55); pointer-events: auto; transition: all .3s cubic-bezier(.2,1.4,.4,1); }
.coach.on { opacity: 1; transform: translate(-50%, 0); }
.coach img { width: 52px; height: 52px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px #5fd3ff; background: #5fd3ff; }
.coach b { font-size: 13px; color: #8a1420; }
.coach p { margin: 2px 0 0; font-size: 16px; line-height: 1.35; font-weight: 600; }
.coach button { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; font-size: 18px; }
.card.coachhl .cfront { animation: coachPulse .7s ease-in-out infinite alternate; }
@keyframes coachPulse { from { box-shadow: 0 0 0 3px #5fd3ff, 0 0 10px 2px rgba(95,211,255,.6); } to { box-shadow: 0 0 0 5px #5fd3ff, 0 0 26px 8px rgba(95,211,255,.95); } }
.banner-btn.resume { background: linear-gradient(100deg, #2fae5f, #176c39); }
.banner-btn .x { position: absolute; right: 10px; top: 8px; font-size: 13px; font-weight: 800; background: rgba(0,0,0,.3); border-radius: 10px; padding: 3px 8px; }
.banner-btn { position: relative; }
.banner-btn.tourney { background: linear-gradient(100deg, #f6c453, #b9741a); color: #3b1a00; }
.banner-btn.weekend { background: linear-gradient(100deg, #ff6b9a, #a22a6a); }
.advice { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(95,211,255,.12); box-shadow: inset 0 0 0 2px rgba(95,211,255,.5); text-align: left; font-size: 15px; }
.advice b { color: #9fe3ff; }
.advice li { margin: 4px 0; }
.advice ul { margin: 4px 0 0; padding-left: 18px; }

/* Juegos nuevos */
.g-tutecabron { background: linear-gradient(150deg, #8a6a4a, #3e2a17); }
.g-burro { background: linear-gradient(150deg, #7d8a96, #3a4450); }
/* Eventos y torneo */
.evstrip { display: flex; flex-direction: column; gap: 4px; margin: 8px auto; padding: 9px 14px; border-radius: 14px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 2px rgba(246,196,83,.35); font-size: 15px; }
.evstrip b { color: var(--gold3); }
.banner-btn.tourney small { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.banner-btn.tourney.done { filter: saturate(.6); opacity: .85; }
.tsteps { display: inline-flex; gap: 4px; }
.tsteps i { font-style: normal; font-size: 18px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.25); filter: grayscale(1); opacity: .6; }
.tsteps i.on { filter: none; opacity: 1; background: rgba(255,255,255,.55); }
.tsteps i.cur { filter: none; opacity: 1; box-shadow: 0 0 0 2px #3b1a00; animation: pulse 1.6s infinite; }
.banner-btn.resume { animation: pulse 2.2s infinite; }
/* Tapetes de temporada */
.tap-navidad { background-color: #8e1222; background-image: radial-gradient(circle at 20px 20px, rgba(255,255,255,.55) 1.6px, transparent 2.4px), radial-gradient(circle at 62px 48px, rgba(255,255,255,.4) 1.2px, transparent 2px), radial-gradient(circle at 40px 78px, rgba(255,255,255,.5) 2px, transparent 2.8px), radial-gradient(ellipse at 50% 42%, rgba(255,120,120,.3), rgba(0,0,0,0) 62%), linear-gradient(#a3192b, #4d0610); background-size: 90px 90px, 90px 90px, 90px 90px, 100% 100%, 100% 100%; }
.board.tap-navidad::before { box-shadow: inset 0 0 0 6px #0f5a2c, inset 0 0 0 9px var(--gold), inset 0 0 0 11px #0f5a2c, inset 0 0 120px rgba(0,0,0,.55); }
.tap-navidad .b-emblem span { color: rgba(255,255,255,.12); }
.tap-verbena { background-color: #102a52; background-image: radial-gradient(circle at 12px 10px, #ff5a5f 4px, transparent 5px), radial-gradient(circle at 42px 16px, #f6c453 4px, transparent 5px), radial-gradient(circle at 72px 10px, #3ad07a 4px, transparent 5px), radial-gradient(circle at 102px 16px, #4fa3ff 4px, transparent 5px), radial-gradient(ellipse at 50% 46%, rgba(255,200,120,.25), rgba(0,0,0,0) 62%), linear-gradient(#173a6e, #070f24); background-size: 120px 60px, 120px 60px, 120px 60px, 120px 60px, 100% 100%, 100% 100%; background-repeat: repeat-x, repeat-x, repeat-x, repeat-x, no-repeat, no-repeat; }
.board.tap-verbena::before { box-shadow: inset 0 0 0 4px rgba(246,196,83,.7), inset 0 0 120px rgba(0,0,0,.6); }
.tap-verbena .b-emblem span { color: rgba(255,220,150,.14); }

/* Online */
.banner-btn.online { background: linear-gradient(100deg, #4fa3ff, #6a3bd1); }
.online .field input.big, .online .code-in { font-size: 22px; padding: 12px 14px; border-radius: 14px; width: 100%; box-sizing: border-box; background: rgba(0,0,0,.35); color: #fff; border: 2px solid rgba(255,255,255,.25); }
.online .code-in { text-transform: uppercase; letter-spacing: 8px; font-weight: 900; text-align: center; font-size: 28px; }
.joinrow { display: flex; gap: 8px; align-items: stretch; }
.joinrow .code-in { flex: 1; min-width: 0; }
.joinrow .bigbtn { width: auto; margin: 0; padding: 0 16px; }
.codebox { margin: 10px auto; padding: 12px; border-radius: 18px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 2px var(--gold); text-align: center; }
.codebox small { display: block; color: var(--muted); font-size: 14px; }
.codebox b { display: block; font-size: 52px; letter-spacing: 12px; color: var(--gold3); font-weight: 900; margin: 2px 0 8px; }
.roster { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.roster .rs { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: rgba(0,0,0,.25); opacity: .7; }
.roster .rs.in { opacity: 1; background: rgba(58,208,122,.18); box-shadow: inset 0 0 0 2px rgba(58,208,122,.5); }
.roster .rs span { font-size: 30px; text-align: center; }
.roster .rs b { font-size: 17px; }
.roster .rs small { color: var(--muted); }
.room .wait, .result .wait { font-size: 17px; animation: pulse 1.6s infinite; }
.roomrow { display: grid; grid-template-columns: 46px 1fr auto; grid-template-rows: auto auto; align-items: center; width: 100%; text-align: left; padding: 10px 12px; margin: 6px 0; border-radius: 16px; background: rgba(255,255,255,.08); column-gap: 8px; }
.roomrow span { grid-row: span 2; font-size: 32px; text-align: center; }
.roomrow b { font-size: 18px; }
.roomrow small { color: var(--muted); font-size: 14px; }
.roomrow em { grid-row: 1 / span 2; grid-column: 3; font-style: normal; font-weight: 800; color: var(--gold3); }
.games.mini { grid-template-columns: repeat(2, 1fr); }
.gtile.small { min-height: 70px; padding: 10px; }
.emotes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.emotes .bigbtn { margin: 0; font-size: 15px; padding: 10px 6px; }
.seat.remote .nm { color: #9ad7ff; }
/* Subtítulo del narrador */
.narcap { position: fixed; left: 50%; top: 64px; z-index: 40; max-width: min(92vw, 520px); transform: translate(-50%, -10px); opacity: 0; display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 16px; background: rgba(20,10,4,.82); color: #fff3d6; font-size: 16px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 0 0 2px rgba(246,196,83,.55); pointer-events: none; transition: all .25s ease; }
.narcap.on { opacity: 1; transform: translate(-50%, 0); }
.narcap i { font-style: normal; font-size: 20px; }
.b-fx .narcap { position: absolute; }
