/* Rebotanks — marcador, mandos y pantallas. Claro, colorido y muy legible; botones sólidos (sin degradados). */
@font-face { font-family: 'Lilita One'; src: url('/games/_vendor/fonts/lilita-one-latin.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'Lilita One'; src: url('/games/_vendor/fonts/lilita-one-latin-ext.woff2') format('woff2'); unicode-range: U+0100-024F; font-display: block; }
@font-face { font-family: 'Inter'; src: url('/games/_vendor/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #16204a; --blue: #2f7cff; --orange: #ff8a1c; --yellow: #ffd23f; --pink: #ff4f92; --green: #1fb85a; --violet: #7a2cf5;
  --red: #f52238; --card: #fffdf7; --soft: #eef3ff; --mute: #6b7399;
  --st: max(8px, env(safe-area-inset-top)); --sb: max(12px, env(safe-area-inset-bottom));
  --sl: max(10px, env(safe-area-inset-left)); --sr: max(10px, env(safe-area-inset-right));
  --u: clamp(62px, 18.5vmin, 88px); --fw: 400;
}
/* Coreano: la letra del título no tiene sus signos; se usa la del equipo, en negrita */
:root:lang(ko) { --fw: 800; font-synthesis: none; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1c2360; touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; padding: 0; background: none; touch-action: manipulation; }
[hidden] { display: none !important; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; }
svg { display: block; }

/* ---------------------------------------------------------------- Marcador */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .3s; --ev: var(--blue); }
.hud.on { opacity: 1; }
.hud .top { position: absolute; top: var(--st); left: var(--sl); right: var(--sr); display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.rb { pointer-events: auto; width: 42px; height: 42px; border-radius: 14px; background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 0 rgba(22, 32, 74, .22), 0 8px 18px rgba(12, 30, 80, .22); flex: none; transition: transform .12s; }
.rb svg { width: 22px; height: 22px; }
.rb:active { transform: translateY(2px); }

.hud:not(.on) .rb, .hud:not(.on) .bt, .hud:not(.on) .ab, .hud:not(.on) .zone, .hud:not(.on) .look { pointer-events: none; }
/* Marcador compacto (pedido del usuario del 2-12-2026, como en los juegos de arena): el reloj y el puesto en una barra pequeña;
   la clasificación, debajo y más chica, con su botón (o la tecla Tab) para esconderla. */
.plate { width: max-content; max-width: 60vw; background: var(--ink); color: #fff; border-radius: 15px; padding: 4px; box-shadow: 0 6px 16px rgba(10, 22, 66, .32); }
.pl1 { display: flex; align-items: center; gap: 9px; min-height: 30px; padding-left: 7px; }
.clock { font: var(--fw) 21px/1 'Lilita One', sans-serif; font-variant-numeric: tabular-nums; min-width: 47px; }
.hud.hot .clock { color: var(--yellow); animation: beat .5s ease-in-out infinite alternate; transform-origin: 0 50%; }
.x2 { display: none; font: var(--fw) 14px/1 'Lilita One', sans-serif; background: var(--pink); border-radius: 7px; padding: 3px 7px 4px; animation: beat .6s ease-in-out infinite alternate; } .hud.hour .x2 { display: block; }
.pos { font: var(--fw) 18px/1.1 'Lilita One', sans-serif; white-space: nowrap; color: var(--yellow); }
.vs { display: none; width: 132px; align-items: center; gap: 6px; --k: 50%; } .teams .vs { display: flex; } .teams .pos { display: none; }
.vs b { font: var(--fw) 18px/1 'Lilita One', sans-serif; min-width: 22px; font-variant-numeric: tabular-nums; } .vs b:first-child { color: #7dbdff; text-align: right; } .vs b:last-child { color: #ff93a6; }
.vs i { position: relative; flex: 1; height: 10px; border-radius: 5px; background: #ff3b5c; overflow: hidden; } .vs i::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--k); background: #1e8bff; transition: width .35s; border-right: 2px solid #fff; }
.bt { pointer-events: auto; display: flex; align-items: center; gap: 4px; height: 26px; margin-left: auto; padding: 0 6px; border-radius: 10px; background: rgba(255, 255, 255, .15); color: #fff; flex: none; transition: background .15s, transform .12s; }
.bt svg { width: 15px; height: 15px; } .bt:hover { background: rgba(255, 255, 255, .26); } .bt:active { transform: translateY(1px); } .bt:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.bt kbd { min-width: 0; height: 16px; padding: 0 4px; border-radius: 5px; background: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; font: 800 9.5px/16px system-ui, sans-serif; }
.bt[aria-pressed='false'] { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); } .touch .bt kbd { display: none; } .touch .bt { height: 28px; padding: 0 8px; }
@keyframes beat { to { transform: scale(1.07); } }
.board { display: grid; gap: 2px; margin-top: 4px; min-width: 200px; max-width: 280px; } .board > div { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .12); border-radius: 8px; padding: 1px 7px 2px 5px; font-size: 11.5px; font-weight: 800; } .hud.noboard .board { display: none; }
.board b { width: 13px; text-align: center; opacity: .75; } .board i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.500px rgba(255, 255, 255, .8); } .board span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .board u { text-decoration: none; font: var(--fw) 13px/1 'Lilita One', sans-serif; color: #ff9be8; font-variant-numeric: tabular-nums; }
.board .me { background: var(--yellow); color: var(--ink); } .board .me u { color: #b0187f; } .board .me b { opacity: 1; } .board .hide { display: none; }
.look { position: absolute; inset: 0; pointer-events: auto; touch-action: none; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M22 3v9M22 32v9M3 22h9M32 22h9' stroke='%2316204a' stroke-width='7'/%3E%3Ccircle cx='22' cy='22' r='10.500' stroke='%2316204a' stroke-width='6'/%3E%3Cpath d='M22 3v9M22 32v9M3 22h9M32 22h9' stroke='%23fff' stroke-width='3'/%3E%3Ccircle cx='22' cy='22' r='10.500' stroke='%23fff' stroke-width='2.600'/%3E%3C/g%3E%3Ccircle cx='22' cy='22' r='2.600' fill='%23ffd23f' stroke='%2316204a' stroke-width='1.500'/%3E%3C/svg%3E") 22 22, crosshair; }
.net { position: absolute; top: calc(var(--st) + 50px); left: var(--sl); z-index: 2; font-size: 11px; font-weight: 800; color: #fff; background: rgba(16, 28, 76, .7); border-radius: 9px; padding: 3px 8px; }
.net.slow { background: #c56a00; } .net.bad { background: var(--red); animation: beat .5s infinite alternate; }

/* Mensajes */
.pops { position: absolute; left: 0; right: 0; top: max(21%, calc(var(--st) + 160px)); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pop { font: var(--fw) clamp(26px, 6.2vmin, 52px)/1 'Lilita One', sans-serif; color: #fff; text-align: center; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; filter: drop-shadow(0 4px 0 rgba(22, 32, 74, .35)); animation: popIn 1.15s cubic-bezier(.2, 1.4, .4, 1) forwards; white-space: nowrap; }
.pop.gold { color: var(--yellow); } .pop.cyan { color: #5fe8ff; } .pop.pink { color: #ff8fc0; } .pop.mint { color: #7dffb0; } .pop.red { color: #ff8a7a; } .pop.orange { color: #ffb04a; }
.pop small { display: block; margin-top: 3px; font-size: .46em; line-height: 1.1; color: #fff; -webkit-text-stroke-width: 5px; }
.pop.small { font-size: clamp(19px, 4.2vmin, 32px); -webkit-text-stroke-width: 5px; }
@keyframes popIn { 0% { transform: scale(.3) translateY(22px); opacity: 0; } 15% { transform: scale(1.16); opacity: 1; } 26% { transform: scale(1); } 80% { opacity: 1; transform: translateY(-8px); } 100% { opacity: 0; transform: translateY(-30px) scale(.96); } }
.toasts { position: absolute; left: calc(var(--sl) + 12px); top: calc(var(--st) + 84px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.toast { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 14px; padding: 7px 13px; font-size: 13px; font-weight: 800; box-shadow: 0 6px 16px rgba(12, 30, 80, .25); animation: rise .35s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .4s, transform .4s; white-space: nowrap; }
.toast i { width: 11px; height: 11px; border-radius: 50%; flex: none; } .toast.out { opacity: 0; transform: translateY(12px); }
.pop.long { animation-duration: 2.2s; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* Destellos, viñeta, líneas de velocidad */
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.flash.gold { background: #ffe27a; }
.vignette { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; box-shadow: inset 0 0 110px 14px rgba(245, 34, 56, .55); }
.hud.hurt .vignette { opacity: 1; animation: hurt .7s ease-in-out infinite alternate; } @keyframes hurt { from { opacity: .45; } }

/* Derribos: quién a quién */
.feed { position: absolute; right: calc(var(--sr) + 52px); top: var(--st); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.feed div { display: flex; align-items: center; gap: 7px; background: rgba(16, 26, 74, .82); border-radius: 10px; padding: 4px 10px 5px; font-size: 12.5px; font-weight: 800; color: #fff; white-space: nowrap; animation: feedIn .3s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .35s; } .feed svg { width: 17px; height: 17px; color: #fff; flex: none; } .feed .me { background: #fff; } .feed .me svg { color: var(--ink); } .feed .out { opacity: 0; } .feed b:empty { display: none; }
@keyframes feedIn { from { transform: translateX(30px); opacity: 0; } }

/* Sobre cada tanque: nombre, cristales, vida y (el mío) munición */
.tags, .nums { position: absolute; inset: 0; overflow: hidden; }
.tagp { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; visibility: hidden; }
.tagp > * { position: absolute; left: 0; transform: translateX(-50%); }
.tn { bottom: 12px; display: flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(16, 26, 74, .72); border-radius: 8px; padding: 2px 4px 2px 7px; } .tn u { text-decoration: none; background: #c21d93; border-radius: 6px; padding: 1px 5px 2px; min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.person .tn { background: var(--c); } .ally .tn { box-shadow: 0 0 0 2px #fff; }
.mine .tn { background: #fff; color: var(--ink); font: var(--fw) 15px/1 'Lilita One', sans-serif; padding: 3px 4px 3px 9px; bottom: 22px; } .mine .tn u { color: #fff; font-size: 13px; padding: 2px 6px 3px; }
.tagp .hp { bottom: 2px; width: 62px; height: 9px; border-radius: 5px; background: #0d1638; padding: 2px; } .hp i { display: block; height: 100%; border-radius: 3px; background: var(--c); transform-origin: 0 50%; transition: transform .12s; }
.mine .hp { width: 82px; height: 11px; bottom: 9px; } .mine .hp i { background: #2be077; } .tagp.low .hp i { background: #ff3b3b; animation: blinkhp .35s steps(2) infinite; } @keyframes blinkhp { 50% { background: #ffd0c9; } }
.tagp .am { bottom: 0; display: flex; gap: 3px; } .am i { position: relative; width: 25px; height: 7px; border-radius: 4px; background: #0d1638; overflow: hidden; --f: 1; } .am i::before { content: ''; position: absolute; inset: 1.500px; border-radius: 3px; background: #8d99c9; transform: scaleX(var(--f)); transform-origin: 0 50%; } .am i.full::before { background: #ffd23f; } .fan .am i.full::before { background: #ff8a1c; }
.nums b { position: absolute; left: 0; top: 0; opacity: 0; font: var(--fw) 24px/1 'Lilita One', sans-serif; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; will-change: transform; }
.nums .gold { color: var(--yellow); font-size: 29px; } .nums .bad { color: #ff7a6b; font-size: 28px; } .nums .gem { color: #ff9be8; font-size: 26px; } .nums .heal { color: #7dffb0; font-size: 28px; }
.arrow { position: absolute; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--ink); color: var(--yellow); display: grid; place-items: center; visibility: hidden; box-shadow: 0 0 0 3px var(--yellow), 0 6px 14px rgba(10, 22, 66, .4); } .arrow svg { width: 25px; height: 25px; }
.arrow i { position: absolute; inset: 0; } .arrow i::before { content: ''; position: absolute; left: 100%; top: 50%; margin: -8px 0 0 5px; border: 8px solid transparent; border-left: 11px solid var(--yellow); border-right: 0; }
.arrow.gd { background: #c21d93; color: #fff; }
.downc { position: absolute; left: 50%; top: 58%; display: flex; align-items: center; gap: 13px; background: var(--ink); color: #fff; border-radius: 18px; padding: 11px 18px 12px 13px; box-shadow: 0 10px 26px rgba(10, 22, 66, .45); opacity: 0; transform: translate(-50%, 24px) scale(.94); transition: opacity .2s, transform .35s cubic-bezier(.2, 1.5, .4, 1); white-space: nowrap; } .downc.on { opacity: 1; transform: translate(-50%, 0); transition-delay: .35s; }
.downc i { width: 12px; align-self: stretch; border-radius: 6px; } .downc b { display: block; font: var(--fw) 21px/1.1 'Lilita One', sans-serif; } .downc span { display: block; font-size: 13px; font-weight: 700; color: #ff9be8; } .downc span:empty { display: none; } .downc strong { font: var(--fw) 16px/1 'Lilita One', sans-serif; background: rgba(255, 255, 255, .14); border-radius: 11px; padding: 9px 12px 10px; color: var(--yellow); font-variant-numeric: tabular-nums; }

/* Mi nivel y mis cristales; turbo y poder */
.mebar { position: absolute; left: 50%; bottom: calc(var(--sb) + 50px); transform: translateX(-50%); display: flex; align-items: center; width: min(400px, 46vw); height: 34px; transition: opacity .25s, bottom .3s; }

.lvb { position: relative; z-index: 1; width: 48px; height: 48px; flex: none; margin-right: -12px; color: var(--ink); display: grid; place-items: center; background: #fff; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); } .lvb::before { content: ''; position: absolute; inset: 4px; background: #b9c8ea; clip-path: inherit; } .lvb u { position: relative; text-decoration: none; font: var(--fw) 24px/1 'Lilita One', sans-serif; }
.mebar[data-lv="1"] .lvb::before { background: #5fe0ff; } .mebar[data-lv="2"] .lvb::before { background: var(--yellow); }
.lvt { position: relative; flex: 1; height: 24px; border-radius: 12px; background: rgba(13, 22, 56, .85); overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(10, 22, 66, .35); } .lvt i { position: absolute; inset: 0; background: #ff4fc4; transform-origin: 0 50%; transform: scaleX(0); transition: transform .25s; } .mebar[data-lv="2"] .lvt i { background: #ffb400; }
.lvt em { position: absolute; inset: 0; display: grid; place-items: center; font: var(--fw) 14px/1 'Lilita One', sans-serif; font-style: normal; color: #fff; -webkit-text-stroke: 3px rgba(13, 22, 56, .85); paint-order: stroke fill; }
.crn { display: flex; align-items: center; gap: 5px; margin-left: 10px; background: #fff; color: #d61fa3; border-radius: 14px; padding: 5px 12px 6px 8px; font: var(--fw) 22px/1 'Lilita One', sans-serif; box-shadow: 0 4px 0 rgba(22, 32, 74, .24); } .crn svg { width: 22px; height: 22px; } .crn b { font-weight: inherit; color: var(--ink); min-width: 22px; font-variant-numeric: tabular-nums; }
.skills { position: absolute; right: calc(var(--sr) + 6px); bottom: calc(var(--sb) + 4px); display: flex; gap: 12px; align-items: flex-end; transition: opacity .25s; } .touch .skills { display: none; }
.sk { position: relative; width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: var(--green); box-shadow: 0 5px 0 rgba(10, 22, 66, .35), inset 0 0 0 4px rgba(255, 255, 255, .85); } .sk svg { width: 34px; height: 34px; } .sk kbd { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); height: 20px; font-size: 10.5px; white-space: nowrap; }
.sk.power { width: 78px; height: 78px; background: #5b678f; } .sk.power.has { background: var(--pc); } .power .pi { --d: #5b678f; } .power.has .pi { --d: var(--pc); } .feed svg { --d: #16204a; } .feed .me svg { --d: #fff; } .sk.power .pi svg { width: 42px; height: 42px; } .sk.power:not(.has) .pi { opacity: .45; } .sk small, .ab.power small { position: absolute; right: -5px; top: -7px; min-width: 26px; height: 26px; border-radius: 13px; background: #fff; color: var(--ink); font: var(--fw) 17px/26px 'Lilita One', sans-serif; text-align: center; } .sk small:empty, .ab.power small:empty { display: none; }
.sk .cd, .ab .cd { position: absolute; inset: 0; border-radius: inherit; opacity: 0; background: conic-gradient(rgba(10, 22, 66, .66) var(--k, 0deg), transparent 0); } .sk.wait .cd, .ab.wait .cd { opacity: 1; }
.power.gold { animation: goldp .7s ease-in-out infinite alternate; } @keyframes goldp { to { filter: brightness(1.25); } }

/* Mandos táctiles: dos palancas (mover · apuntar y disparar) y dos botones */
.zone { position: absolute; top: 18%; bottom: 0; pointer-events: auto; touch-action: none; display: none; z-index: 1; } .zone.l { left: 0; width: 46%; } .zone.r { right: 0; width: 54%; }
.stick { position: absolute; left: 0; top: 0; width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); border-radius: 50%; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .6); opacity: 0; transition: opacity .12s; display: none; z-index: 1; }
.stick.on { opacity: 1; }
.stick i { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px rgba(10, 22, 66, .35); transform: translate(-50%, -50%); }
.stick.r { background: rgba(255, 138, 28, .22); box-shadow: inset 0 0 0 4px rgba(255, 178, 92, .9); } .stick.r i { background: var(--orange); color: #fff; display: grid; place-items: center; width: 52%; height: 52%; box-shadow: 0 6px 14px rgba(10, 22, 66, .35), inset 0 0 0 3px rgba(255, 255, 255, .85); } .stick.r svg { width: 62%; height: 62%; }
.stick.r.hot { background: rgba(245, 34, 56, .32); box-shadow: inset 0 0 0 5px #ff5a4a; } .stick.r.hot i { background: var(--red); }
.stick.home { opacity: .92; left: auto; top: auto; right: calc(var(--sr) + var(--u) * .34); bottom: calc(var(--sb) + var(--u) * .12); }
.pad { position: absolute; right: var(--sr); bottom: var(--sb); width: 0; height: 0; display: none; z-index: 2; }
.touch .zone, .touch .stick, .touch .pad { display: block; }
.ab { pointer-events: auto; position: absolute; width: var(--u); height: var(--u); border-radius: 50%; color: #fff; background: var(--bg, var(--blue)); box-shadow: 0 6px 0 rgba(10, 22, 66, .32), 0 12px 24px rgba(10, 22, 66, .28), inset 0 0 0 4px rgba(255, 255, 255, .85); touch-action: none; transition: transform .06s; }
.ab::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.ab span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.ab svg { width: 42%; height: auto; } .ab .pi { display: grid; place-items: center; width: 50%; } .ab .pi svg { width: 100%; } .ab b { font: var(--fw) 11.500px/1 'Lilita One', sans-serif; letter-spacing: .02em; }
.ab.down { transform: translateY(4px) scale(.96); }
.ab.boost { --bg: var(--green); right: calc(var(--u) * 2.16); bottom: 4px; width: calc(var(--u) * 1.02); height: calc(var(--u) * 1.02); }
.ab.power b { font-size: 10px; letter-spacing: 0; } .ab.power { --bg: #5b678f; right: calc(var(--u) * .1); bottom: calc(var(--u) * 1.98); } .ab.power.has { --bg: var(--pc); } .ab.power:not(.has) span { opacity: .55; }
.touch .mebar { bottom: calc(var(--sb) + 2px); width: min(300px, 31vw); } .touch .downc { top: 50%; }
.hud.scene .pad, .hud.scene .stick, .hud.scene .plate, .hud.scene .mebar, .hud.scene .skills, .hud.scene .feed { opacity: 0; } .hud.scene .ab, .hud.scene .zone { pointer-events: none; }
.pad, .plate, .feed { transition: opacity .25s; }

/* Controles: barra de teclas (computadora), botón y ayudas (celular) y tarjeta */
.rcol { display: grid; gap: 8px; } .rb.ctl { display: none; } .touch .rb.ctl { display: grid; } .rb.ctl svg { width: 25px; height: 25px; }
kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 7px; background: #fff; color: var(--ink); font: 800 12px/1 'Inter', sans-serif; box-shadow: 0 2.500px 0 #aeb9dd; }
kbd.w { padding: 0 9px; } kbd.pb { border-radius: 50%; padding: 0; width: 25px; min-width: 25px; height: 25px; background: var(--c); color: #fff; box-shadow: 0 2.500px 0 rgba(10, 22, 66, .35); }
.cbar .mi text { fill: var(--ink); }
.mi { display: inline-grid; place-items: center; width: 26px; height: 26px; } .mi svg { width: 25px; height: 25px; }
.cbar, .ctab { position: absolute; left: 50%; bottom: calc(var(--sb) - 2px); transform: translate(-50%, 70px); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.2, .4, 1), opacity .25s; color: #fff; background: rgba(16, 26, 74, .66); border-radius: 16px; pointer-events: none; }
.cbar { display: flex; align-items: center; gap: 15px; padding: 7px 8px 8px 13px; white-space: nowrap; font-size: 12.5px; }
.cbar span, .cbar button { display: flex; align-items: center; gap: 4px; } .cbar b { margin-left: 3px; font-weight: 700; }
.cbar button { padding: 4px 7px; border-radius: 10px; background: rgba(255, 255, 255, .13); pointer-events: none; } .cbar button kbd { height: 19px; min-width: 19px; font-size: 10.5px; }
.ctab { display: flex; align-items: center; gap: 6px; padding: 6px 9px; } .ctab svg { width: 22px; height: 22px; } .ctab kbd { height: 20px; min-width: 20px; font-size: 11px; }
.cbar.on, .ctab.on { transform: translate(-50%, 0); opacity: 1; } .cbar.on button, .ctab.on { pointer-events: auto; } .cbar button:hover, .ctab:hover { background: rgba(47, 124, 255, .9); }
.hud.scene .cbar, .hud.scene .ctab { transform: translate(-50%, 70px); opacity: 0; }
@media (max-width: 760px) { .cbar { gap: 9px; font-size: 11px; padding-left: 9px; } .cbar kbd { min-width: 20px; height: 21px; font-size: 10.500px; } .cbar kbd.w { padding: 0 6px; } }
@media (max-width: 600px), (max-height: 330px) { .cbar b { display: none; } }
.coach { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 1; } .coach.on { opacity: 1; }
.cz { position: absolute; display: grid; justify-items: center; gap: 8px; color: #fff; } .cz b { font: var(--fw) 17px/1.1 'Lilita One', sans-serif; background: var(--ink); padding: 7px 12px; border-radius: 12px; text-align: center; max-width: 40vw; }
.cz.l { left: calc(var(--sl) + 22px); bottom: calc(var(--sb) + 26px); } .cz.r { right: calc(var(--sr) + 4px); bottom: calc(var(--sb) + var(--u) * 1.66); } .cz.r b { font-size: 13px; padding: 4px 9px 5px; border-radius: 9px; max-width: 56vw; } .cz.r .cs { display: none; }
.cz .cs { position: relative; width: calc(var(--u) * 1.35); height: calc(var(--u) * 1.35); border-radius: 50%; background: rgba(16, 26, 74, .38); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .85); } .cs u { position: absolute; left: 50%; top: 50%; width: 44%; height: 44%; margin: -22% 0 0 -22%; border-radius: 50%; background: #fff; animation: coach 2.600s ease-in-out infinite; }
@keyframes coach { 0%, 100% { transform: none; } 25% { transform: translate(0, -52%); } 50% { transform: translate(46%, -12%); } 75% { transform: translate(-46%, 12%); } }
.crows { display: grid; gap: 11px; } .crows.t { grid-template-columns: 1fr 1fr; gap: 12px 14px; } .cr { display: flex; align-items: center; gap: 11px; } .cr b { font: var(--fw) 17px/1.1 'Lilita One', sans-serif; } .cr p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--mute); } .cr .ic { width: 42px; height: 42px; border-radius: 13px; color: #fff; display: grid; place-items: center; flex: none; } .cr .ic svg { width: 26px; height: 26px; }
.ck { display: grid; grid-template-columns: auto 1fr auto; gap: 9px 16px; align-items: center; } .ck small { font-size: 11.5px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; } .ck > b { font: var(--fw) 17px/1.1 'Lilita One', sans-serif; } .ck > span { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .ck u { text-decoration: none; font-size: 12px; color: var(--mute); margin: 0 4px; } .ck kbd { background: #f4f6ff; } .ck kbd.pb { background: var(--c); } .ck .mi { color: var(--ink); }

/* Cuenta atrás */
.count { position: absolute; left: 50%; top: 42%; font: var(--fw) min(34vmin, 260px)/1 'Lilita One', sans-serif; color: #fff; -webkit-text-stroke: 16px var(--ink); paint-order: stroke fill; transform: translate(-50%, -50%); opacity: 0; white-space: nowrap; }
.count.word { font-size: min(17vmin, 130px); color: var(--yellow); }

/* Cortinilla del cometa */
.wipe { position: fixed; inset: 0; z-index: 12; pointer-events: none; overflow: hidden; visibility: hidden; }
.wipe i { position: absolute; top: -10%; bottom: -10%; left: -60%; width: 52%; transform: skewX(-18deg); }
.wipe i:nth-child(1) { background: var(--c2); } .wipe i:nth-child(2) { background: var(--c); width: 130%; left: -140%; } .wipe i:nth-child(3) { background: #fff; width: 14%; }

/* Presentación de la arena */
.intro { position: fixed; left: 0; right: 0; bottom: calc(var(--sb) + 5vh); z-index: 6; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px; opacity: 0; transform: translateY(40px); transition: opacity .35s, transform .5s cubic-bezier(.2, 1.4, .4, 1); --ev: var(--blue); }
.intro.on { opacity: 1; transform: none; }
.intro .ic2 { width: clamp(74px, 15vmin, 118px); aspect-ratio: 1; flex: none; border-radius: 28%; background: var(--ev); color: #fff; display: grid; place-items: center; box-shadow: 0 7px 0 rgba(10, 22, 66, .35), inset 0 0 0 5px #fff; transform: rotate(-5deg); } .intro .ic2 svg { width: 62%; }
.intro .tx { background: var(--card); border-radius: 22px; padding: 12px 20px 14px; max-width: min(560px, 74vw); box-shadow: 0 8px 0 rgba(22, 32, 74, .24), 0 20px 40px rgba(10, 22, 66, .35); }
.intro small { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ev); }
.intro h1 { margin: 1px 0 4px; font: var(--fw) clamp(27px, 6vmin, 46px)/1 'Lilita One', sans-serif; } .intro p { margin: 0; font-size: clamp(14px, 2.3vmin, 17px); font-weight: 700; line-height: 1.35; color: #414b70; }

.rk { font: var(--fw) 18px/1 'Lilita One', sans-serif; min-width: 34px; text-align: right; margin-left: 8px; }
.podium img, .seats img { width: 38px; height: 38px; max-height: 92%; aspect-ratio: 1; border-radius: 50%; background: var(--c); flex: none; object-fit: cover; }
.podium strong { display: flex; align-items: center; gap: 4px; font: var(--fw) 20px/1 'Lilita One', sans-serif; min-width: 54px; margin-right: 10px; justify-content: flex-end; } .podium u { text-decoration: none; } .podium strong svg { width: 18px; height: 18px; color: #d61fa3; }

/* ---------------------------------------------------------------- Pantallas */
.screens { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.screen { position: absolute; inset: 0; display: none; padding: var(--st) var(--sr) var(--sb) var(--sl); }
.screen.on { display: flex; }
.screen.on > * { pointer-events: auto; }
.mb { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; border-radius: 18px; padding: 8px 16px 8px 10px; color: #fff; background: var(--bg, var(--blue)); text-align: left; box-shadow: 0 6px 0 var(--ed, #1a55c4), 0 12px 24px rgba(10, 22, 66, .24); transition: transform .1s, box-shadow .1s, filter .15s; }
.mb:hover { filter: brightness(1.06); } .mb:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ed, #1a55c4), 0 6px 14px rgba(10, 22, 66, .24); }
.mb:focus-visible, .rb:focus-visible, .chip:focus-visible, .seg button:focus-visible, .tog button:focus-visible { outline: 4px solid var(--yellow); outline-offset: 2px; }
.mb[disabled] { filter: grayscale(.8) brightness(.95); opacity: .7; cursor: default; }
.mb .ic { --d: var(--bg, var(--blue)); width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; } .mb .ic svg { width: 25px; height: 25px; }
.mb b { display: block; font: var(--fw) 20px/1.1 'Lilita One', sans-serif; letter-spacing: .01em; } .mb small { display: block; font-size: 12.5px; font-weight: 700; opacity: .92; line-height: 1.25; }
.mb.big { min-height: 68px; } .mb.big b { font-size: 25px; } .mb.center { justify-content: center; } .mb.center span { flex: none; }
.mb.orange { --bg: var(--orange); --ed: #c45f00; } .mb.blue { --bg: var(--blue); --ed: #1a55c4; } .mb.violet { --bg: var(--violet); --ed: #5414bd; } .mb.green { --bg: var(--green); --ed: #0f8a3e; } .mb.gray { --bg: #5b678f; --ed: #414b70; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--card); color: var(--ink); border-radius: 13px; padding: 8px 12px; font-size: 13px; font-weight: 800; box-shadow: 0 4px 0 rgba(22, 32, 74, .2); } .chip svg { width: 18px; height: 18px; }
.chip.streak { background: var(--yellow); }

/* Portada */
.title { justify-content: space-between; align-items: stretch; }
.title .col { width: min(40vw, 420px); display: flex; flex-direction: column; justify-content: center; gap: 12px; margin-left: clamp(4px, 3vw, 48px); }
.title .logo { width: 100%; max-height: 40vh; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(10, 22, 66, .35)); animation: float 3s ease-in-out infinite; }
.tagline { margin: -6px 0 2px; text-align: center; font: var(--fw) clamp(16px, 2.6vmin, 22px)/1.15 'Lilita One', sans-serif; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.menu { display: flex; flex-direction: column; gap: 13px; } .row.low { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.kit { align-self: flex-end; margin: 0 clamp(8px, 3vw, 60px) 10px 0; background: var(--card); border-radius: 22px; padding: 10px 13px 12px; text-align: center; box-shadow: 0 6px 0 rgba(22, 32, 74, .3), 0 14px 28px rgba(10, 12, 50, .4); }
.kit .pn { display: block; min-height: 17px; margin-top: 3px; font-size: 13px; font-weight: 800; color: var(--mute); } .kit .pn.need { color: #c2410c; }
.paints { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 9px 0 9px; } .paints button { position: relative; aspect-ratio: 1; border-radius: 12px; padding: 3px; background: var(--soft); } .paints i { display: block; width: 100%; height: 100%; border-radius: 9px; background: var(--a); box-shadow: inset -9px -9px 0 -2px var(--b); } .paints svg { display: none; position: absolute; inset: 0; margin: auto; width: 52%; height: 52%; color: #fff; filter: drop-shadow(0 1px 2px rgba(10, 22, 66, .8)); }
.paints .sel { background: var(--orange); box-shadow: 0 3px 0 #c45f00; } .paints .off i { filter: brightness(.62) saturate(.7); } .paints .off svg { display: block; } .paints button:focus-visible { outline: 4px solid var(--yellow); outline-offset: 2px; }
@keyframes float { 50% { transform: translateY(-7px) rotate(-.6deg); } }

/* Tarjetas */
.panel { align-items: center; justify-content: center; }
.card { background: var(--card); border-radius: 26px; padding: 16px; width: min(560px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain; touch-action: pan-y; display: flex; flex-direction: column; gap: 13px; box-shadow: 0 8px 0 rgba(22, 32, 74, .24), 0 24px 60px rgba(10, 22, 66, .42); animation: cardIn .35s cubic-bezier(.2, 1.3, .4, 1); scrollbar-width: none; }
.card.small { width: min(400px, 100%); } .card.center { align-items: center; text-align: center; }
@keyframes cardIn { from { transform: translateY(26px) scale(.95); opacity: 0; } }
.card header { display: flex; align-items: center; gap: 12px; } .card header .rb { background: var(--soft); box-shadow: none; }
.card h2 { margin: 0; font: var(--fw) 25px/1.1 'Lilita One', sans-serif; } .card p { margin: 0; font-size: 14px; line-height: 1.45; color: #414b70; }
.card label, .joinbox label { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--mute); display: block; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; background: var(--soft); border-radius: 16px; padding: 5px; } .seg.four { grid-template-columns: repeat(4, 1fr); }
.seg button { border-radius: 12px; padding: 11px 4px; font-size: 14px; font-weight: 800; color: #4a5580; } .seg button.sel { background: var(--blue); color: #fff; box-shadow: 0 3px 0 #1a55c4; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-items: stretch; }
.two .up { grid-column: 1 / -1; justify-content: center; } .two .up span { flex: none; }
.hint { text-align: center; font-weight: 700; } .hint:empty { display: none; }
.err { background: #ffe3e0; color: #a81426 !important; border-radius: 12px; padding: 9px 12px; font-weight: 700; text-align: center; }

.name[hidden] { display: none; } .name:not([hidden]) { display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 0 !important; } .name input, .joinbox input { width: 100%; border: 0; border-radius: 13px; background: var(--soft); padding: 11px 13px; font-size: 16px; font-weight: 800; user-select: text; -webkit-user-select: text; outline: none; min-width: 0; } .name input:focus, .joinbox input:focus { box-shadow: 0 0 0 3px var(--blue); }
.joinbox { background: var(--soft); border-radius: 18px; padding: 9px 10px 10px; } .joinbox > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; } .joinbox input { background: #fff; text-transform: uppercase; letter-spacing: .12em; padding: 9px 10px; } .joinbox .mb { min-height: 42px; width: auto; padding: 6px 13px; border-radius: 13px; box-shadow: 0 4px 0 var(--ed); } .joinbox .mb b { font-size: 16px; } .joinbox .mb svg { width: 24px; height: 24px; }

.joinbox.mk { display: grid; gap: 9px; } .joinbox.mk label { margin: 0; } .joinbox.mk > .evs { display: grid; grid-template-columns: 1fr 1fr; } .joinbox.mk .evs button { background: #fff; } .joinbox.mk .evs .sel { background: var(--yellow); } .joinbox.mk .mb { width: 100%; }

.spinner { position: relative; width: 108px; height: 108px; flex: none; }
.spinner i { position: absolute; inset: 0; color: var(--orange); animation: orbit 1.35s linear infinite; }
.spinner i::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: conic-gradient(rgba(255, 138, 26, 0) 8%, rgba(255, 138, 26, .28) 42%, var(--orange) 84%, var(--yellow)); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 10px), #000 calc(100% - 9px)); mask: radial-gradient(closest-side, transparent calc(100% - 10px), #000 calc(100% - 9px)); }
.spinner i svg { position: absolute; left: 50%; top: 0; width: 30px; height: 30px; margin-left: -15px; }
.spinner img { position: absolute; inset: 24px; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: var(--soft); }
@keyframes orbit { to { transform: rotate(360deg); } }
.codebox { display: flex; align-items: center; gap: 12px; background: var(--soft); border-radius: 18px; padding: 9px 12px; flex-wrap: wrap; } .codebox small { font-size: 12px; font-weight: 800; color: var(--mute); } .codebox b { font: var(--fw) 31px/1 'Lilita One', sans-serif; letter-spacing: .1em; color: var(--blue); user-select: text; -webkit-user-select: text; } .codebox .chip { margin-left: auto; }
.heroes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 6px 0 4px; } .heroes button { border-radius: 50%; padding: 3px; background: var(--soft); } .heroes img { display: block; width: clamp(46px, 5.4vw, 66px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.heroes .sel { background: var(--orange); box-shadow: 0 3px 0 #c45f00; } .heroes button:focus-visible, .evs button:focus-visible { outline: 4px solid var(--yellow); outline-offset: 2px; } .hn { font: var(--fw) 21px/1 'Lilita One', sans-serif; }
.evs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .evs button { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--soft); border-radius: 16px; padding: 8px 10px; } .evs .wide { grid-column: 1 / -1; }
.evs i { --d: var(--c); width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; } .evs svg { width: 24px; height: 24px; } .evs b { display: block; font: var(--fw) 16.5px/1.1 'Lilita One', sans-serif; } .evs small { font-size: 12px; font-weight: 700; color: var(--mute); }
.evs.maps { grid-template-columns: repeat(4, 1fr); } .evs.maps button { flex-direction: column; gap: 5px; text-align: center; padding: 9px 4px 8px; } .evs.maps b { font-size: 14.5px; }
.evs .sel { background: var(--yellow); box-shadow: 0 3px 0 #c99a00; } .evs .sel small { color: var(--ink); }
.seats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .seats .pl { display: flex; align-items: center; gap: 9px; min-height: 50px; background: var(--soft); border-radius: 15px; padding: 5px 11px 5px 6px; font-size: 14.5px; font-weight: 800; } .seats .pl span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .seats .pl i { width: 22px; height: 22px; color: var(--green); flex: none; }
.seats .tcol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; align-content: start; min-width: 0; } .seats .pl { min-width: 0; } .seats .tcol > small { font: var(--fw) 16px/1 'Lilita One', sans-serif; color: var(--c); } .seats .pl img { border: 3px solid var(--c); } .md { margin-left: auto; font-size: 12.5px; font-weight: 800; background: var(--soft); border-radius: 10px; padding: 6px 10px; } .rbt.one { grid-template-columns: 1fr; }
.seats .free { color: #9aa3c4; background: none; box-shadow: inset 0 0 0 2px #dbe3f7; } .seats .free img { visibility: hidden; } .seats .me { box-shadow: inset 0 0 0 3px var(--yellow); } .seats .ready { background: #dff7e6; }

.newp { background: #fff0b8; color: #8a4b00 !important; border-radius: 13px; padding: 8px 12px; font: var(--fw) 17px/1.2 'Lilita One', sans-serif !important; animation: cardIn .6s .3s cubic-bezier(.2, 1.6, .4, 1) both; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .awards:empty { display: none; } .awards div { background: var(--soft); border-radius: 12px; padding: 6px 8px 7px; min-width: 0; } .awards div:last-child:nth-child(odd) { grid-column: 1 / -1; } .awards small { display: block; font-size: 11px; font-weight: 700; color: var(--mute); } .awards b { display: block; font: var(--fw) 16px/1.15 'Lilita One', sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; filter: brightness(.82) saturate(1.2); }

/* Resultados: a un lado, para que se vea el podio */
.side { justify-content: flex-end; } .side .card { width: min(430px, 100%); margin-right: clamp(0px, 3vw, 60px); }
.results { text-align: center; } .results h1 { margin: 0; font: var(--fw) clamp(38px, 9vmin, 62px)/1 'Lilita One', sans-serif; color: var(--blue); animation: cardIn .7s cubic-bezier(.2, 1.5, .35, 1); }
[data-res="win"] h1 { color: var(--orange); } [data-res="lose"] h1 { color: var(--blue); } [data-res="draw"] h1 { color: var(--violet); } .results h1 { line-height: 1.02; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; } .podium li { display: flex; align-items: center; gap: 9px; min-height: 44px; background: var(--soft); border-radius: 13px; border-left: 7px solid var(--c); text-align: left; } .podium li.me { background: #fff0b8; }
.podium span { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 800; } .podium span u { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .podium small { display: block; font-size: 11.5px; font-weight: 700; color: var(--mute); } .podium small:empty { display: none; }
.podium img { width: 36px; height: 36px; }

.tog { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tog button { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--soft); border-radius: 13px; padding: 10px 12px; font-size: 13.5px; font-weight: 800; } .tog i { font-style: normal; font-size: 12px; background: #c9d2ea; border-radius: 8px; padding: 3px 8px; } .tog .sel i { background: var(--green); color: #fff; }
.howgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; } .hc { display: flex; gap: 11px; align-items: flex-start; } .hc .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; } .hc .ic svg { width: 27px; height: 27px; } .hc b { font: var(--fw) 18px/1.1 'Lilita One', sans-serif; } .hc p { font-size: 13px; line-height: 1.38; }
.ic.blue { --d: var(--blue); } .ic.orange { --d: var(--orange); } .ic.violet { --d: var(--violet); } .ic.green { --d: var(--green); } .ic.pink { --d: var(--pink); } .howgrid .ic, .cr .ic { background: var(--d); }

/* Vertical */
@media (max-aspect-ratio: 95/100) {
  .title { flex-direction: column; align-items: center; justify-content: space-between; }
  .title .col { display: contents; }
  .title .logo { order: 0; width: min(80vw, 370px); max-height: 26vh; }
  .title .tagline { order: 1; margin: -10px 0 auto; max-width: 90vw; }
  .title .kit { order: 2; align-self: center; margin: 0 0 12px; padding: 7px 12px 9px; } .heroes img { width: min(13vw, 60px); }
  .title .menu { order: 3; width: min(430px, 100%); } .title .row.low { order: 4; justify-content: center; margin: 12px 0 0; }
  .howgrid { grid-template-columns: 1fr; } .pops { top: max(30%, calc(var(--st) + 200px)); } .toasts { top: calc(var(--st) + 156px); }
  .intro { flex-direction: column; gap: 0; bottom: calc(var(--sb) + 9vh); } .intro .ic2 { margin-bottom: -20px; z-index: 1; width: 84px; } .intro .tx { padding-top: 24px; text-align: center; max-width: 92vw; }
  .side { align-items: flex-end; justify-content: center; } .side .card { margin: 0; max-height: 68%; padding: 12px 14px; gap: 8px; } .side .mb b { font-size: 17px; } .side .podium li { min-height: 36px; } .side .podium img { width: 28px; height: 28px; } .results h1 { font-size: 31px; }
  .plate { max-width: calc(100vw - 124px); } .pl1 { gap: 8px; } .vs { width: 118px; } .board { min-width: min(200px, calc(100vw - 132px)); }
  .feed { top: calc(var(--st) + 156px); right: var(--sr); } .feed > div:nth-child(n+4) { display: none; } .zone { top: 45%; } .touch .mebar { bottom: auto; top: calc(var(--st) + 112px); width: min(290px, 74vw); height: 30px; } .touch .lvb { width: 42px; height: 42px; } .touch .lvb u { font-size: 20px; } .touch .lvt { height: 20px; } .touch .crn { font-size: 19px; padding: 3px 10px 4px 7px; } .mebar { width: 82vw; }
  .board > div:nth-child(4):not(.me), .board > div:nth-child(3):not(.me):has(+ .me) { display: none; } .evs.maps { grid-template-columns: 1fr 1fr; } .evs.maps button { flex-direction: row; text-align: left; padding: 7px 9px; }
  .paints { gap: 5px; margin: 7px 0 6px; } .downc { max-width: calc(100vw - 24px); gap: 10px; padding: 10px 12px 11px 10px; } .downc b { font-size: 18px; white-space: normal; } .downc strong { font-size: 14px; padding: 8px 9px 9px; } .ab.power { bottom: calc(var(--u) * 2.02); }
}
@media (max-width: 480px) { .md, .codebox small, .rbt .ic { display: none; } .codebox { flex-wrap: nowrap; } .rbt b { font-size: 15px !important; text-align: center; } .seats.teams .pl { min-height: 42px; } .two { gap: 8px; } .mb { padding-right: 10px; gap: 9px; } .mb b { font-size: 18px; } .mb small { font-size: 11.5px; } [data-s="online"] .two { grid-template-columns: 1fr; } .seg button { font-size: 13px; } .evs b { font-size: 14.5px; } .evs small { font-size: 11px; } .evs i { width: 32px; height: 32px; } }
@media (max-width: 480px) { .crows.t { grid-template-columns: 1fr; gap: 9px; } .cr .ic { width: 38px; height: 38px; } .title .row.low { gap: 8px; flex-wrap: wrap; } }
@media (max-height: 480px) and (min-aspect-ratio: 95/100) { .crows.t { gap: 8px 12px; } .cr p { font-size: 11.5px; } .cr .ic { width: 34px; height: 34px; } .cr b { font-size: 15px; } .cz.l b { font-size: 14px; } .ck { gap: 5px 14px; } }
@media (max-width: 370px) { .evs { grid-template-columns: 1fr; } .seats { gap: 6px; } .seats .pl { padding: 4px 6px; gap: 6px; font-size: 13px; } .evs .wide { grid-column: auto; } .tog button { font-size: 12.5px; padding: 10px 9px; } }
/* Vertical y bajo (el marco del juego en la página, en un celular) */
@media (max-aspect-ratio: 95/100) and (max-height: 700px) {
  .title .logo { max-height: 22vh; } .title .tagline { font-size: 15px; -webkit-text-stroke-width: 4px; margin-top: -8px; }
  .title .kit { padding: 5px 11px 6px; margin-bottom: 9px; border-radius: 18px; } .heroes { margin: 3px 0 2px; } .heroes img { width: min(11.4vw, 46px); } .paints { margin: 5px 0 3px; } .kit .hn { display: none; } .kit .pn { margin: 0; font-size: 12px; min-height: 15px; }
  .title .menu { gap: 10px; } .title .mb { min-height: 46px; padding: 4px 12px 4px 8px; border-radius: 15px; } .title .mb.big { min-height: 52px; } .title .mb.big b { font-size: 21px; } .title .mb .ic { width: 34px; height: 34px; } .title .row.low { margin-top: 10px; } .title .chip { padding: 6px 11px; }
  .card { padding: 12px; gap: 9px; } .card h2 { font-size: 22px; } .card .rb { width: 38px; height: 38px; } .seg button { padding: 9px 3px; } .mb { min-height: 50px; } .mb.big { min-height: 56px; } .evs button { padding: 6px 8px; } .seats { gap: 6px; } .seats .pl { min-height: 42px; } .seats.teams .pl { min-height: 38px; } .seats .tcol { gap: 5px; } .seats .pl img { width: 30px; height: 30px; } .hint { font-size: 12.5px !important; } .hc p, .cr p { font-size: 12px; line-height: 1.3; } .howgrid { gap: 8px; } .hc .ic { width: 38px; height: 38px; }
  .side .card { max-height: 76%; padding: 9px 12px 14px; gap: 7px; } .side .podium { gap: 3px; } .side .podium li { min-height: 24px; } .side .podium img { width: 21px; height: 21px; } .side .podium strong { font-size: 16px; } .side .rk { font-size: 15px; } .results h1 { font-size: 24px; } .side .mb { min-height: 42px; }
  .awards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } .awards div { padding: 3px 5px 4px; } .awards div:last-child:nth-child(odd) { grid-column: auto; } .awards small { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .awards b { font-size: 12.500px; } .newp { padding: 5px 9px; font-size: 14px !important; }
}
@media (max-aspect-ratio: 95/100) and (max-height: 740px) { .side .podium li { min-height: 28px; } .side .podium img { width: 23px; height: 23px; } .side .podium small { display: none; } .side .podium { gap: 4px; } .results h1 { font-size: 27px; } .side .mb { min-height: 46px; } .side .mb .ic { width: 32px; height: 32px; } }
/* Pantallas bajas (móvil en horizontal y marco de la página) */
@media (max-height: 480px) and (min-aspect-ratio: 95/100) {
  .title .col { gap: 8px; width: min(44vw, 340px); } .title .logo { max-height: 38vh; } .mb { min-height: 48px; padding: 5px 12px 5px 8px; border-radius: 15px; } .mb.big { min-height: 54px; } .mb.big b { font-size: 20px; } .mb b { font-size: 17px; } .mb small { font-size: 11px; } .mb .ic { width: 34px; height: 34px; }
  .menu { gap: 10px; } .tagline { display: none; } .card { padding: 12px; gap: 9px; border-radius: 20px; width: min(680px, 100%); } .card h2 { font-size: 21px; } .card header .rb { width: 36px; height: 36px; }
  .kit { margin-bottom: 2px; padding: 5px 10px 7px; } .heroes img { width: 44px; } .evs { grid-template-columns: repeat(3, 1fr); } .evs .wide { grid-column: auto; } .evs button { padding: 5px 8px; } .evs i { width: 30px; height: 30px; } .evs small { display: none; } .seats { grid-template-columns: repeat(3, 1fr); gap: 6px; } .seats .pl { min-height: 42px; }
  .howgrid { gap: 8px 14px; } .hc p { font-size: 12px; }
  .intro { bottom: calc(var(--sb) + 8px); } .intro .ic2 { width: 64px; } .intro .tx { padding: 7px 14px 9px; max-width: 70vw; } .intro h1 { font-size: 24px; } .intro p { font-size: 13px; } .intro small { font-size: 11px; }
  .side .card { width: min(380px, 52vw); margin-right: 0; padding: 8px 12px 12px; gap: 6px; } .results h1 { font-size: 23px; } .podium { gap: 3px; } .podium li { min-height: 26px; } .podium img { width: 21px; height: 21px; } .podium small { display: none; } .side .two { gap: 8px; } .side .mb { min-height: 40px; } .side .mb .ic { width: 28px; height: 28px; }
  .plate { padding: 3px; border-radius: 13px; } .pl1 { min-height: 24px; gap: 7px; padding-left: 6px; } .clock { font-size: 18px; min-width: 42px; } .pos { font-size: 16px; } .vs { width: 112px; } .vs b { font-size: 16px; min-width: 20px; } .bt { height: 24px; } .board { min-width: 180px; gap: 2px; margin-top: 3px; } .board > div { font-size: 10.5px; padding: 1px 6px 2px 4px; } .board u { font-size: 12px; } .board > div:nth-child(3):not(.me):has(+ .me) { display: none; } .pops { top: 31%; }
  .mebar { height: 28px; } .lvb { width: 40px; height: 40px; margin-right: -9px; } .lvb u { font-size: 19px; } .lvt { height: 19px; } .lvt em { font-size: 12px; } .crn { font-size: 18px; padding: 3px 9px 4px 6px; margin-left: 7px; } .crn svg { width: 18px; height: 18px; }
  .downc { padding: 7px 13px 8px 9px; } .downc b { font-size: 17px; } .downc span { font-size: 12px; } .feed div { font-size: 11px; padding: 2px 8px 3px; } .feed svg { width: 14px; height: 14px; } .toasts { top: calc(var(--st) + 96px); } .toast { padding: 5px 10px; font-size: 12px; }
  .paints { gap: 4px; margin: 5px 0; } .paints button { border-radius: 9px; padding: 2px; } .paints i { border-radius: 7px; } .hn { font-size: 17px; } .kit .pn { font-size: 11.5px; min-height: 15px; margin-top: 1px; } .evs.maps { grid-template-columns: repeat(4, 1fr); } .evs.maps button { flex-direction: row; } [data-s="setup"] .card, [data-s="online"] .card { width: min(720px, 100%); }
  [data-s="online"] .card { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; } [data-s="online"] .card > header, [data-s="online"] .card > .name:not([hidden]), [data-s="online"] .card > .hint, [data-s="online"] .card > .err { grid-column: 1 / -1; } [data-s="online"] .joinbox.mk { grid-column: 2; grid-row: 3 / span 2; } [data-s="online"] .card > .mb, [data-s="online"] .card > form { grid-column: 1; } [data-s="online"] .joinbox.mk > .evs { grid-template-columns: 1fr; }
  .seats.teams { grid-template-columns: 1fr 1fr; } .seats .tcol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; } .seats .tcol > small { grid-column: 1 / -1; } .seats.teams .pl { min-height: 38px; font-size: 12.5px; } .seats.teams .pl img { width: 28px; height: 28px; } [data-s="setup"] .two2, .joinbox.mk > .evs { grid-template-columns: 1fr 1fr; } .awards { grid-template-columns: repeat(4, 1fr); } .awards div { padding: 4px 6px 5px; } .awards small { font-size: 9.500px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .awards b { font-size: 13px; } .awards div:last-child:nth-child(odd) { grid-column: auto; }
}
/* Pantallas grandes: todo mayor, para verlo de lejos */
@media (min-width: 1500px) and (min-height: 880px) { .hud .top, .toasts, .feed, .mebar, .skills, .downc, .title .col, .panel .card, .intro { zoom: 1.28; } .plate { zoom: .86; } .title .kit { zoom: 1.12; } .tagp > * { zoom: 1.2; } }
@media (min-width: 2200px) and (min-height: 1200px) { .hud .top, .toasts, .feed, .mebar, .skills, .downc, .title .col, .title .kit, .panel .card, .intro { zoom: 1.7; } .plate { zoom: .8; } .tagp > * { zoom: 1.55; } }
@media (prefers-reduced-motion: reduce) { .title .logo, .tagp em { animation: none; } }
