/* menu: menú principal, panel del jugador, botón VOLVER común, control de sonido, idioma, pantallas
   secundarias (estadísticas, cuenta, online, clasificación, controles e info) y el lienzo (bandas). */

/* ---------------------------------------------------------------- tokens comunes */
:root { --gold: #ffd84a; --gold-d: #b38f00; --ink: #f4ecd8; --dim: #9fb3e6; --line: #3b4c86; }

/* ---------------------------------------------------------------- botón VOLVER común (.back-btn)
   Arriba a la izquierda de cada pantalla; lo crea makeBackButton(screenEl) en menus.js (o se pone a mano). */
.back-btn { position: absolute; top: 18px; left: 18px; z-index: 30; pointer-events: auto;
  font: inherit; font-family: "Press Start 2P", monospace; font-size: 10px; letter-spacing: 2px; line-height: 1;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; cursor: pointer;
  color: #f4ecd8; background: linear-gradient(#1d2850, #121a36); border: 0;
  box-shadow: inset 0 0 0 2px #3b4c86, 0 0 0 2px #000, 0 4px 0 #000; text-shadow: 2px 2px 0 #000;
  transition: transform .08s steps(2), background .1s; }
.back-btn::before { content: ""; width: 8px; height: 10px; flex: none; background: #ffd84a;
  clip-path: polygon(0 50%, 100% 0, 100% 100%); transition: transform .12s steps(2); }
.back-btn:hover, .back-btn:focus-visible { outline: none; color: #1a1a1a; text-shadow: none;
  background: linear-gradient(#fff07a, #ffd84a); box-shadow: inset 0 0 0 2px #b38f00, 0 0 0 2px #000, 0 4px 0 #000, 0 0 18px rgba(255,216,74,.45);
  transform: translateX(-2px); }
.back-btn:hover::before, .back-btn:focus-visible::before { background: #1a1a1a; transform: translateX(-3px); }
.back-btn:active { transform: translate(-2px, 3px); box-shadow: inset 0 0 0 2px #b38f00, 0 0 0 2px #000, 0 1px 0 #000; }
.back-btn .k { display: none; }
#queue-back { position: fixed; }
#queue-back[hidden] { display: none; }
@media (max-width: 700px) { .back-btn { top: 10px; left: 10px; font-size: 8px; padding: 8px 10px; } }

/* ---------------------------------------------------------------- lienzo y bandas laterales
   fit() (menus.js): en los menús el lienzo cubre la pantalla entera (cover); en combate se ve entero (contain)
   y las bandas que sobran las rellena #backdrop: una copia diminuta del lienzo, ampliada, desenfocada y oscura. */
#wrap { overflow: hidden; z-index: 1; }
#wrap canvas { flex: none; }
#backdrop { position: fixed; left: -8%; top: -8%; width: 116%; height: 116%; z-index: 0; pointer-events: none; image-rendering: auto;
  background: #0b0d14; filter: blur(26px) brightness(.45) saturate(1.4); opacity: 0; transition: opacity .35s; }
#backdrop.on { opacity: 1; }
body::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,.6) 100%); }
body.letterbox::after { opacity: 1; }
.screen { z-index: 2; }

/* Panel con borde pixel (negro por fuera, línea clara por dentro) */
.panel { background: linear-gradient(180deg, rgba(26,32,70,.88), rgba(10,12,30,.88)); border: 0 !important;
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--line), inset 0 0 0 4px rgba(0,0,0,.5), 0 8px 0 rgba(0,0,0,.35); }

/* ---------------------------------------------------------------- menú principal */
#menu { background: none; pointer-events: none; justify-content: flex-start; gap: 0; padding: 2.6vh 0 2vh; overflow: hidden; }
#menu button, #menu .score-panel, #menu .menu-tools { pointer-events: auto; }

.menu-head { display: flex; flex-direction: column; align-items: center; gap: 1.1vh; margin-bottom: 2.8vh; }
.menu-logo { margin: 0; font-weight: normal; font-size: clamp(20px, min(3.2vw, 5.8vh), 66px); letter-spacing: .02em; line-height: 1;
  white-space: nowrap; color: var(--gold); text-shadow: .06em .06em 0 #b3261e, .12em .12em 0 #000; }
.menu-logo > span + span { color: #fff3c8; }
.menu-logo .ch { display: inline-block; animation: logo-wave 3.2s ease-in-out infinite; animation-delay: calc(var(--d) * 80ms); }
@keyframes logo-wave { 0%, 55%, 100% { transform: none; } 25% { transform: translateY(-.14em); } }
#menu.enter .menu-logo { animation: logo-drop .7s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes logo-drop { from { transform: translateY(-14vh) scale(1.4); opacity: 0; filter: brightness(3); } 60% { filter: brightness(1.6); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

.menu-main { width: clamp(320px, min(32vw, 64vh), 600px); display: flex; flex-direction: column; gap: clamp(9px, 1.5vh, 18px); }
.mgroup { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vh, 14px); }
.mgroup.config { gap: clamp(7px, 1vh, 12px); }

/* Botones del menú */
.mbtn { --b: #2d3b66; --d: #121a33; --l: #5b6fae; --t: #f4ecd8; --g: rgba(159,179,230,.5);
  position: relative; font: inherit; font-family: "Press Start 2P", monospace; color: var(--t); cursor: pointer; text-align: left;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 6px;
  padding: clamp(8px, 1.2vh, 14px) clamp(10px, .9vw, 16px); border: 0; letter-spacing: 1px; text-shadow: 2px 2px 0 #000;
  background: linear-gradient(180deg, rgba(22,28,62,.92) 0%, rgba(10,12,30,.92) 100%);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--b), inset 0 -5px 0 rgba(0,0,0,.45), 0 5px 0 #000;
  transition: transform .1s steps(2); }
.mbtn .ico { color: rgba(10,10,20,.88); grid-row: 1 / span 2; width: clamp(26px, 3.6vh, 40px); height: clamp(26px, 3.6vh, 40px); display: grid; place-items: center;
  background: var(--b); box-shadow: inset 0 0 0 2px #000, inset 0 -4px 0 var(--d), inset 0 3px 0 var(--l); }
.mbtn .ico svg { width: 62%; height: 62%; shape-rendering: crispEdges; }
.mbtn .lbl { letter-spacing: 0; font-size: clamp(8px, min(1.3vh, .7vw), 14px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; line-height: 1.25; }
.mbtn small { line-height: 1.5; font-size: clamp(6px, min(.9vh, .5vw), 9px); color: var(--dim); letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbtn small:empty { display: none; }
.mbtn.nosub .lbl { grid-row: 1 / span 2; }
/* brillo que barre el botón al seleccionarlo */
.mbtn::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 47%, rgba(255,255,255,.1) 53%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0; }
/* flecha pixel a la izquierda del seleccionado */
.mbtn::after { content: ""; position: absolute; left: -22px; top: 50%; width: 10px; height: 14px; margin-top: -7px; background: var(--gold);
  clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: 0; }
.mbtn:hover, .mbtn:focus-visible, .mbtn.sel { outline: none; color: #14141c; text-shadow: 1px 1px 0 rgba(255,255,255,.35);
  background: linear-gradient(180deg, var(--l) 0%, var(--b) 55%, var(--d) 100%);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.35), inset 0 -5px 0 rgba(0,0,0,.3), 0 5px 0 #000, 0 0 24px var(--g);
  transform: translate(4px, -2px); z-index: 1; }
.mbtn:hover small, .mbtn:focus-visible small, .mbtn.sel small { color: rgba(10,10,20,.78); text-shadow: none; }
.mbtn:hover .ico, .mbtn:focus-visible .ico, .mbtn.sel .ico { color: var(--l); background: #14141c; box-shadow: inset 0 0 0 2px #000, inset 0 3px 0 #33334a; }
.mbtn:hover::before, .mbtn.sel::before { opacity: 1; animation: mbtn-shine .7s steps(10) both; }
.mbtn.sel::after { opacity: 1; animation: arrow-nudge .6s steps(2) infinite; }
.mbtn:active { transform: translate(4px, 3px); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.35), 0 0 22px var(--g); }
@keyframes mbtn-shine { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@keyframes arrow-nudge { 50% { transform: translateX(-4px); } }

/* Variantes de color */
.mbtn.arc   { --b: #ff7a4a; --d: #a83a16; --l: #ffb08a; --g: rgba(255,122,74,.55); }
.mbtn.train { --b: #7fd0ff; --d: #2a7aa8; --l: #c0ecff; --g: rgba(127,208,255,.55); }
.mbtn.onl   { --b: #5fe08a; --d: #1f8a45; --l: #a8f5c0; --g: rgba(95,224,138,.5); }
.mbtn.rank  { --b: #c084fc; --d: #5b21b6; --l: #e2c6ff; --g: rgba(192,132,252,.55); }
.mbtn.pass  { --b: #ffb547; --d: #a8580a; --l: #ffe0a0; --g: rgba(255,181,71,.6); }
.mbtn.shop  { --b: #4af2c8; --d: #11866b; --l: #b4fff0; --g: rgba(74,242,200,.55); }
.mbtn.plat  { --b: #ff5a8a; --d: #9a1f48; --l: #ffb0c8; --g: rgba(255,90,138,.6); }
.mbtn.miss  { --b: #9dff4a; --d: #3a8a1a; --l: #d8ffb0; --g: rgba(157,255,74,.55); }
.mgroup .mbtn.wide { grid-column: span 2; }
.mbtn .badge.new-badge { background: #ff5a8a; color: #fff; }
.mbtn.mini  { --b: #3b4c86; --d: #1a2346; --l: #9fb3e6; --g: rgba(159,179,230,.4); padding: clamp(6px, .9vh, 10px) 10px; column-gap: 8px;
  background: rgba(8,10,26,.72); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #26325c, 0 4px 0 #000; }
.mbtn.mini:hover, .mbtn.mini:focus-visible, .mbtn.mini.sel { background: linear-gradient(180deg, var(--l) 0%, #6f84c4 55%, var(--b) 100%);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.35), 0 4px 0 #000, 0 0 18px var(--g); }
.mbtn.mini .ico { width: clamp(18px, 2.4vh, 26px); height: clamp(18px, 2.4vh, 26px); grid-row: 1 / span 2; }
.mbtn.mini .lbl, .mbtn.mini { font-size: clamp(7px, 1vh, 10px); }
#cpu-btn { display: flex; justify-content: center; align-items: center; gap: 10px; text-align: center; }
#cpu-btn .k { color: var(--gold); }
#cpu-btn.sel .k, #cpu-btn:hover .k { color: #14141c; }
/* Pase y tienda: con su color de fondo y una insignia */
.meta2 .mbtn { background: linear-gradient(180deg, color-mix(in srgb, var(--b) 30%, rgba(14,16,36,.94)), rgba(10,12,30,.94)); }
.meta2 .mbtn small { color: color-mix(in srgb, var(--b) 70%, #fff); }
.meta2 .mbtn:hover, .meta2 .mbtn.sel { background: linear-gradient(180deg, var(--l) 0%, var(--b) 55%, var(--d) 100%); }
.mbtn .badge { position: absolute; top: -9px; right: -7px; min-width: 10px; padding: 4px 5px 3px; font-size: 8px; font-weight: normal; text-align: center; z-index: 2;
  color: #fff; background: #e0304a; box-shadow: 0 0 0 2px #000, inset 0 -2px 0 #8a1020; text-shadow: 1px 1px 0 #000; animation: badge-bob 1s steps(2) infinite; }
.mbtn .badge[hidden] { display: none; }
@keyframes badge-bob { 50% { transform: translateY(-2px); } }

/* JUGAR: el protagonista */
.mbtn.hero { --b: #ffd84a; --d: #b38f00; --l: #fff3a8; --g: rgba(255,216,74,.65); --t: #14141c;
  padding: clamp(12px, 1.9vh, 22px) clamp(14px, 1.3vw, 24px); column-gap: 16px; text-shadow: 1px 1px 0 rgba(255,255,255,.4);
  background: linear-gradient(180deg, #fff3a8 0%, #ffd84a 45%, #e6b820 100%);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.5), inset 0 -6px 0 #b38f00, 0 6px 0 #000, 0 0 24px rgba(255,216,74,.35);
  animation: hero-glow 1.8s ease-in-out infinite; }
.mbtn.hero .lbl { font-size: clamp(16px, 2.9vh, 30px); letter-spacing: 4px; overflow: visible; }
.mbtn.hero small { color: rgba(60,40,0,.8); text-shadow: none; font-size: clamp(7px, 1vh, 10px); }
.mbtn.hero .ico { width: clamp(34px, 5.2vh, 58px); height: clamp(34px, 5.2vh, 58px); background: #14141c; box-shadow: inset 0 0 0 2px #000, inset 0 3px 0 #3a3a4a; }
.mbtn.hero::before { opacity: 1; animation: mbtn-shine 3.2s steps(24) infinite; }
.mbtn.hero:hover, .mbtn.hero:focus-visible, .mbtn.hero.sel { color: #14141c; background: linear-gradient(180deg, #fffbe0 0%, #fff07a 45%, #ffd84a 100%); }
.mbtn.hero .ico, .mbtn.hero:hover .ico, .mbtn.hero.sel .ico { color: var(--gold); background: #14141c; }
.mbtn.hero:hover .ico svg, .mbtn.hero.sel .ico svg { animation: ico-pop .5s steps(3) infinite alternate; }
@keyframes ico-pop { to { transform: scale(1.15) rotate(-8deg); } }
@keyframes hero-glow { 50% { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.5), inset 0 -6px 0 #b38f00, 0 6px 0 #000, 0 0 44px rgba(255,216,74,.75); } }

/* Entrada escalonada de los botones */
#menu.enter .mbtn { animation: mbtn-in .5s cubic-bezier(.2, 1.3, .4, 1) both; animation-delay: calc(var(--i) * 55ms + 220ms); }
#menu.enter .mbtn.hero { animation: mbtn-in .5s cubic-bezier(.2, 1.3, .4, 1) 220ms both, hero-glow 1.8s ease-in-out 1s infinite; }
@keyframes mbtn-in { from { opacity: 0; transform: translateY(18px) scale(.92); filter: brightness(2.5); } 60% { filter: brightness(1.3); } }

.menu-foot { position: absolute; bottom: 2vh; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1vh; width: max-content; max-width: 96vw; }
.menu-help { font-size: clamp(6px, .9vh, 9px); color: #c9d3ee; letter-spacing: 1px; text-shadow: 2px 2px 0 #000; opacity: .75; }
.ticker { font-size: clamp(6px, .9vh, 9px); color: #c9d3ee; letter-spacing: 1px; text-shadow: 2px 2px 0 #000; padding: 7px 40px;
  background: linear-gradient(90deg, transparent, rgba(8,10,26,.78) 15%, rgba(8,10,26,.78) 85%, transparent); white-space: nowrap; }
.ticker b { font-weight: normal; color: var(--gold); }
.ticker img { height: 12px; image-rendering: pixelated; vertical-align: middle; }
#menu.enter .menu-foot { animation: fade-in .5s 1s steps(5) both; }
@keyframes fade-in { from { opacity: 0; } }

/* ---------------------------------------------------------------- panel del jugador (arriba a la izquierda) */
.score-panel { position: absolute; top: 2.4vh; left: 1.6vw; width: clamp(250px, min(22vw, 44vh), 400px); box-sizing: border-box; padding: 12px;
  display: flex; flex-direction: column; gap: 10px; text-shadow: 2px 2px 0 #000;
  background: linear-gradient(160deg, rgba(48,26,92,.62) 0%, rgba(16,18,44,.5) 60%, rgba(16,18,44,.18) 100%);
  box-shadow: 0 0 0 2px rgba(0,0,0,.7), inset 0 0 0 2px rgba(159,179,230,.22);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#menu.enter .score-panel { animation: slide-l .55s cubic-bezier(.2, 1.2, .4, 1) .1s both; }
@keyframes slide-l { from { transform: translateX(-40px); opacity: 0; } }
.pc-top { display: flex; gap: 14px; align-items: center; }
.pc-ava { --c1: #2d3b66; --c2: #121a33; position: relative; flex: none; width: clamp(56px, 7.6vh, 80px); aspect-ratio: 1; padding: 4px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.35), 0 0 14px color-mix(in srgb, var(--c1) 55%, transparent);
  transition: transform .1s steps(2); }
.pc-ava img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; background: #070910; box-shadow: 0 0 0 2px #000; }
.pc-ava:hover, .pc-ava:focus-visible { outline: none; transform: translateY(-2px) scale(1.05); }
.pc-ava .pc-lv { position: absolute; bottom: -8px; right: -8px; min-width: 14px; padding: 4px 4px 3px; font-size: 9px; color: #14141c; text-shadow: none; text-align: center;
  background: var(--gold); box-shadow: 0 0 0 2px #000, inset 0 -2px 0 var(--gold-d); }
.pc-ava.fr-pulse { animation: fr-pulse 1.2s ease-in-out infinite; }
.pc-ava.fr-rainbow { animation: fr-rainbow 3s linear infinite; }
@keyframes fr-pulse { 50% { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.5), 0 0 26px var(--c1); } }
@keyframes fr-rainbow { to { filter: hue-rotate(360deg); } }
.pc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pc-name { font-size: clamp(10px, 1.45vh, 15px); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-xp { display: grid; grid-template-columns: auto 1fr; gap: 5px 8px; align-items: center; font-size: 7px; color: #c9d3ee; }
.pc-xp b { font-weight: normal; color: var(--gold); font-size: 8px; white-space: nowrap; }
.pc-xp .bar { height: 8px; background: #0a0d20; box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #2d3b66; position: relative; overflow: hidden; }
.pc-xp .bar i { position: relative; display: block; height: 100%; background: linear-gradient(#fff3a8, #ffd84a 50%, #e09a10); transition: width .6s steps(12); }
.pc-xp .bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  background-size: 40% 100%; background-repeat: no-repeat; animation: xp-shine 2.4s linear infinite; }
@keyframes xp-shine { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.pc-xp em { grid-column: 2; font-style: normal; font-size: 6px; color: #8d99c6; text-align: right; }
.pc-res { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pc-chip { display: flex; align-items: center; gap: 5px; padding: 5px 6px; min-width: 0; font-size: clamp(7px, .95vh, 9px); color: #fff; background: rgba(0,0,0,.32);
  box-shadow: inset 0 0 0 1px rgba(159,179,230,.18); white-space: nowrap; overflow: hidden; }
.pc-chip svg { width: 12px; height: 12px; flex: none; shape-rendering: crispEdges; }
.pc-chip.coins { color: var(--gold); }
.pc-chip.boxes { color: #4af2c8; }
.pc-chip.troph { color: #ffcf7a; }
.pc-rank { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 2px solid rgba(0,0,0,.35); box-shadow: 0 -1px 0 rgba(159,179,230,.12); }
.pc-rank img { width: 26px; image-rendering: pixelated; flex: none; }
.pc-rank .rk { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 6px; color: var(--dim); letter-spacing: 1px; }
.pc-rank .rk b { font-weight: normal; font-size: 9px; letter-spacing: 1px; }
.pc-rank .bar { height: 4px; background: #0a0d20; box-shadow: 0 0 0 1px #000; }
.pc-rank .bar i { display: block; height: 100%; }
.pc-rank.mine { cursor: pointer; }
.pc-rank.mine:hover { filter: brightness(1.25); }
.pc-rank .login { font: inherit; font-size: 7px; letter-spacing: 1px; padding: 7px 8px; cursor: pointer; border: 0; color: #14141c; background: #c084fc;
  box-shadow: 0 0 0 2px #000, inset 0 -3px 0 #5b21b6; white-space: nowrap; }
.pc-rank .login:hover, .pc-rank .login:focus-visible { outline: none; background: #e2c6ff; }

/* ---------------------------------------------------------------- arriba a la derecha: idioma (desplegable) */
.menu-tools { position: absolute; top: 2.4vh; right: calc(1.6vw + 54px); display: flex; gap: 10px; align-items: flex-start; }
#menu.enter .menu-tools { animation: fade-in .5s .2s steps(5) both; }
.lang-pick { position: relative; }
.lang-cur, .lang-list button { font: inherit; font-size: 8px; color: #e6ebff; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; cursor: pointer; border: 0;
  background: rgba(10,12,30,.8); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #3b4c86; text-shadow: 2px 2px 0 #000; letter-spacing: 1px; white-space: nowrap; box-sizing: border-box; }
.lang-pick svg { width: 24px; height: 16px; display: block; box-shadow: 0 0 0 1px #000; shape-rendering: crispEdges; flex: none; }
.lang-cur::after { content: ""; width: 7px; height: 5px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .1s; }
.lang-pick.open .lang-cur::after { transform: rotate(180deg); }
.lang-cur:hover, .lang-cur:focus-visible, .lang-list button:hover, .lang-list button:focus-visible { outline: none; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--gold); color: var(--gold); }
.lang-list { position: absolute; top: calc(100% + 8px); right: 0; display: none; flex-direction: column; gap: 4px; z-index: 5; min-width: 150px; }
.lang-pick.open .lang-list { display: flex; animation: fade-up .18s steps(3); }
.lang-list button.on { color: var(--gold); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--gold-d); }
.lang-list button span { flex: 1; text-align: left; }

/* ---------------------------------------------------------------- control de sonido (siempre visible) */
.sound-ctl { position: fixed; z-index: 40; right: 1.6vw; top: 2.4vh; font-family: "Press Start 2P", monospace; }
body:not([data-shell="menu"]) .sound-ctl { top: auto; bottom: 10px; right: 10px; }
body[data-shell="fight"] .sound-ctl:not(.open) { opacity: .3; transition: opacity .2s; }
body[data-shell="fight"] .sound-ctl:hover { opacity: 1; }
.snd-btn { width: 44px; height: 38px; display: grid; place-items: center; cursor: pointer; border: 0; padding: 0;
  background: rgba(10,12,30,.8); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #3b4c86; }
.snd-btn svg { width: 22px; height: 22px; shape-rendering: crispEdges; }
.snd-btn:hover, .snd-btn:focus-visible, .sound-ctl.open .snd-btn { outline: none; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--gold); }
.snd-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: 14px; display: none; flex-direction: column; gap: 12px; box-sizing: border-box; }
body:not([data-shell="menu"]) .snd-pop { top: auto; bottom: calc(100% + 10px); }
.sound-ctl.open .snd-pop { display: flex; animation: fade-up .18s steps(3); }
.snd-pop h4 { margin: 0; font-weight: normal; font-size: 9px; color: var(--gold); letter-spacing: 2px; text-shadow: 2px 2px 0 #000; }
.snd-row { display: grid; grid-template-columns: 30px 1fr 34px; align-items: center; gap: 8px 10px; }
.snd-row label { grid-column: 1 / -1; font-size: 7px; color: var(--dim); letter-spacing: 1px; text-shadow: 2px 2px 0 #000; }
.snd-row .mute { width: 30px; height: 26px; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; background: #121a33; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #2d3b66; }
.snd-row .mute svg { width: 16px; height: 16px; shape-rendering: crispEdges; }
.snd-row .mute:hover, .snd-row .mute:focus-visible { outline: none; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--gold); }
.snd-row output { font-size: 7px; color: #fff; text-align: right; text-shadow: 2px 2px 0 #000; }
.snd-row input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; margin: 0; cursor: pointer; background: transparent; }
.snd-row input[type=range]::-webkit-slider-runnable-track { height: 8px; background: linear-gradient(90deg, var(--gold) var(--v, 50%), #0a0d20 var(--v, 50%)); box-shadow: 0 0 0 2px #000, inset 0 0 0 1px #2d3b66; }
.snd-row input[type=range]::-moz-range-track { height: 8px; background: linear-gradient(90deg, var(--gold) var(--v, 50%), #0a0d20 var(--v, 50%)); box-shadow: 0 0 0 2px #000; }
.snd-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 16px; margin-top: -4px; background: #fff; border: 0; box-shadow: 0 0 0 2px #000, inset 0 -3px 0 #9fb3e6; }
.snd-row input[type=range]::-moz-range-thumb { width: 10px; height: 16px; background: #fff; border: 0; border-radius: 0; box-shadow: 0 0 0 2px #000; }
.snd-row input[type=range]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.snd-row.off input[type=range] { filter: grayscale(1) brightness(.6); }
.snd-hint { font-size: 6px; color: #7f8cb4; line-height: 1.8; }

/* ---------------------------------------------------------------- pantallas secundarias (stats, cuenta, online, clasificación, info) */
.sub-screen { gap: 18px; padding-top: 72px; }
#stats-screen, #account, #board, #online { background: radial-gradient(ellipse at 50% 30%, rgba(42,58,110,.42) 0%, rgba(8,10,24,.8) 60%, rgba(5,7,16,.92) 100%); }
.sub-screen h2 { position: relative; padding: 0 0 14px; }
.sub-screen h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 120%; height: 4px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); box-shadow: 0 2px 0 #b3261e; opacity: .85; }
.sub-screen:not(.hidden) h2 { animation: fade-up .35s steps(4) both; }
.sub-screen:not(.hidden) .panel { animation: panel-in .35s .06s steps(5) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sub-screen .blink { font-size: 8px; text-shadow: 2px 2px 0 #000; }

/* Cuenta (registro / inicio de sesión) */
.acc-box { width: min(480px, 92vw); padding: 20px 22px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.acc-box[hidden] { display: none; }
.acc-tabs { display: flex; gap: 8px; }
.acc-tabs button { flex: 1; font: inherit; font-size: 9px; letter-spacing: 2px; padding: 11px 6px; cursor: pointer; color: var(--dim); background: #0c1128; border: 0;
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #2d3b66; }
.acc-tabs button.on { color: #14141c; background: #c084fc; box-shadow: 0 0 0 2px #000, inset 0 -3px 0 #5b21b6; }
.acc-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#acc-form, #onl-join-form { display: flex; flex-direction: column; gap: 12px; }
#acc-form label, #onl-join-form label { display: flex; flex-direction: column; gap: 7px; font-size: 8px; letter-spacing: 2px; color: var(--dim); }
#acc-form label[hidden] { display: none; }
#acc-form input, #onl-join-form input { font: inherit; font-size: 12px; padding: 11px 10px; color: var(--ink); background: #060814; border: 0; outline: none; letter-spacing: 1px;
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #2d3b66, inset 0 3px 0 rgba(0,0,0,.6); }
#acc-form input:focus, #onl-join-form input:focus { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #c084fc, 0 0 14px rgba(192,132,252,.35); }
#acc-form .big-btn, #acc-in .big-btn, #online .acc-box .big-btn { font-size: 12px; padding: 13px 18px; align-self: stretch; }
.acc-hint { font-size: 7px; line-height: 1.8; color: #7f8cb4; letter-spacing: 1px; }
.acc-hint:empty, .acc-msg:empty { display: none; }
.acc-msg { font-size: 8px; line-height: 1.8; letter-spacing: 1px; padding: 8px 10px; background: rgba(0,0,0,.35); }
.acc-msg.err { color: #ff6a5a; box-shadow: inset 3px 0 0 #ff6a5a; }
.acc-msg.info { color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.onl-code { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 8px; letter-spacing: 1px; color: var(--dim); padding: 10px; background: rgba(0,0,0,.3); }
.onl-code[hidden] { display: none; }
#onl-create:disabled { opacity: .35; cursor: default; }
.onl-code b { font-size: 30px; letter-spacing: 10px; color: var(--gold); text-shadow: 3px 3px 0 #b3261e, 5px 5px 0 #000; animation: code-pop .4s steps(4); }
@keyframes code-pop { from { transform: scale(1.6); opacity: 0; } }
.onl-code span { font-size: 7px; color: #7f8cb4; }
#onl-join-code { text-transform: uppercase; letter-spacing: 6px; text-align: center; }
#acc-profile { display: flex; gap: 16px; align-items: center; padding: 6px 0 4px; }
#acc-profile .rk-emb img { width: 100%; }

/* Clasificación */
.board { width: min(780px, 94vw); padding: 12px 16px; box-sizing: border-box; max-height: 64vh; overflow-y: auto; }
.board table { width: 100%; border-collapse: collapse; font-size: 9px; letter-spacing: 1px; }
.board th { color: var(--dim); font-weight: normal; font-size: 7px; letter-spacing: 2px; text-align: left; padding: 8px 6px; border-bottom: 2px solid #2d3b66; }
.board td { padding: 7px 6px; border-bottom: 1px solid #161e3a; white-space: nowrap; }
.board tbody tr:nth-child(odd) td { background: rgba(255,255,255,.025); }
.board tbody tr:nth-child(1) td:first-child { color: #ffd84a; }
.board tbody tr:nth-child(2) td:first-child { color: #e6ecf5; }
.board tbody tr:nth-child(3) td:first-child { color: #e0965a; }
.board td.nm { display: flex; align-items: center; gap: 8px; }
.board td.nm img { width: 16px; image-rendering: pixelated; }
.board tr.me td { background: rgba(192,132,252,.2) !important; color: #fff; }
.board tr.gap td { text-align: center; color: #6a789e; }
.board-note { font-size: 8px; color: var(--dim); text-align: center; line-height: 1.8; letter-spacing: 1px; }

/* Estadísticas */
.stats { width: min(920px, 92vw); padding: 14px 20px; box-sizing: border-box; max-height: 70vh; overflow-y: auto; }
.stats h3 { font-size: 10px; color: var(--gold); letter-spacing: 2px; margin: 8px 0 10px; font-weight: normal; display: flex; align-items: center; gap: 10px; text-shadow: 2px 2px 0 #000; }
.stats h3::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, rgba(255,216,74,.6), transparent); }
.stats .none { font-size: 9px; color: var(--dim); margin: 0 0 6px; }
.stats .grid { display: grid; grid-template-columns: 160px 1fr; gap: 0; font-size: 8px; line-height: 1.7; }
.stats .grid > span { padding: 5px 8px; }
.stats .grid > span:nth-child(4n+1), .stats .grid > span:nth-child(4n+2) { background: rgba(255,255,255,.035); }
.stats .sk { color: var(--dim); }
.stats .sv { color: var(--ink); }
.stats img { height: 14px; image-rendering: pixelated; vertical-align: middle; box-shadow: 0 0 0 1px #000; }
.stats .match { display: flex; align-items: center; gap: 8px; font-size: 8px; color: #c9d3ee; padding: 6px 4px; border-top: 1px solid #1d2748; }
.stats .match b { font-weight: normal; color: var(--dim); }
.stats .match b.win { color: var(--gold); }
.stats .match .score { color: #fff; padding: 2px 6px; background: rgba(0,0,0,.4); }
.stats .match .when { color: #6a789e; min-width: 80px; }
.stats .match .when:last-child { margin-left: auto; text-align: right; }

/* Controles e info: pestañas con icono, caras de los luchadores en una tira, tarjetas por tema, teclas
   dibujadas como keycaps pixel, esquema de los mandos, combos animados, barras y pesos. */
#info { gap: 12px; justify-content: flex-start; padding-top: 64px;
  background: radial-gradient(ellipse at 50% 30%, rgba(42,58,110,.42) 0%, rgba(8,10,24,.82) 60%, rgba(5,7,16,.94) 100%); }
#info > h2 { position: relative; padding: 0 0 12px; }
#info > h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 120%; height: 4px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); box-shadow: 0 2px 0 #b3261e; opacity: .85; }
.info-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 0 12px; }
.info-tabs button { font: inherit; font-size: 10px; padding: 9px 14px 9px 10px; color: #c9d3ee; background: rgba(10,12,30,.86); border: 0; cursor: pointer; letter-spacing: 2px;
  display: inline-flex; align-items: center; gap: 8px; text-shadow: 2px 2px 0 #000;
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #2d3b66, inset 0 2px 0 2px rgba(255,255,255,.05), 0 4px 0 #000; transition: transform .08s steps(2); }
.info-tabs button:hover, .info-tabs button:focus-visible { color: var(--gold); transform: translateY(-2px); outline: none; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--gold), 0 6px 0 #000; }
.info-tabs button.on { color: #14141c; text-shadow: none; background: linear-gradient(var(--gold) 0 70%, #e6b820 70%);
  box-shadow: 0 0 0 2px #000, inset 0 2px 0 #fff3a8, inset 0 -3px 0 var(--gold-d), 0 4px 0 #000; transform: translateY(-2px); }
.info-tabs button:focus-visible { outline: 2px dashed #fff; outline-offset: 4px; }
/* iconos pixel de las pestañas (formas con clip-path / degradados duros) */
.ti { width: 14px; height: 12px; flex: none; background: currentColor; display: block; }
.ti-pad { clip-path: polygon(0 25%, 25% 25%, 25% 0, 75% 0, 75% 25%, 100% 25%, 100% 100%, 64% 100%, 64% 75%, 36% 75%, 36% 100%, 0 100%); }
.ti-fist { clip-path: polygon(0 17%, 71% 17%, 71% 0, 100% 0, 100% 83%, 71% 100%, 14% 100%, 0 83%); }
.ti-face { clip-path: polygon(14% 0, 86% 0, 100% 17%, 100% 83%, 86% 100%, 14% 100%, 0 83%, 0 17%, 0 17%, 29% 33%, 29% 50%, 43% 50%, 43% 33%, 57% 33%, 57% 50%, 71% 50%, 71% 33%, 29% 33%, 0 17%); }
.info-tabs button.on .ti { color: #14141c; }

/* tira de caras (solo en la pestaña de personajes; desplazable) */
.info-faces { display: flex; gap: 6px; min-height: 36px; flex-wrap: nowrap; overflow-x: auto; max-width: min(980px, 94vw); padding: 4px 6px 8px; box-sizing: border-box;
  scrollbar-width: thin; scrollbar-color: #3b4c86 transparent; }
.info-faces.off { visibility: hidden; height: 0; min-height: 0; padding: 0; margin: -6px 0; }
.info-faces .face { flex: none; padding: 0; border: 0; cursor: pointer; width: 40px; height: 30px; background: #000; position: relative;
  box-shadow: 0 0 0 2px #000, inset 0 -3px 0 var(--cc); transition: transform .08s steps(2); }
.info-faces .face img { width: 100%; height: 100%; image-rendering: pixelated; display: block; filter: saturate(.6) brightness(.7); }
.info-faces .face:hover img, .info-faces .face.on img { filter: none; }
.info-faces .face:hover { transform: translateY(-2px); }
.info-faces .face.on { transform: translateY(-3px); box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--gold), inset 0 -3px 0 var(--cc); z-index: 1; }
.info-faces .face:focus-visible { outline: 2px dashed #fff; outline-offset: 4px; }

.info-body { width: min(980px, 92vw); max-height: calc(100vh - 230px); overflow-y: auto; padding: 16px 20px; box-sizing: border-box;
  scrollbar-width: thin; scrollbar-color: #3b4c86 #0a0d20; }
.info-body.turn section.on { animation: info-turn .26s steps(4) both; }
@keyframes info-turn { from { opacity: 0; transform: translateX(10px); } }
.info-body section { display: none; }
.info-body section.on { display: block; }
.info-body h3 { font-size: 10px; color: var(--gold); letter-spacing: 2px; margin: 4px 0 10px; font-weight: normal; text-shadow: 2px 2px 0 #000; }
.info-body p, .info-note { font-size: 8px; color: #c9d3ee; line-height: 2; margin: 0 0 8px; }
.info-body b { color: #fff; font-weight: normal; }
.info-note { padding: 8px 10px; background: rgba(0,0,0,.3); box-shadow: inset 3px 0 0 var(--gold); }

/* keycap pixel: cara clara, borde negro y canto inferior de 3 px */
kbd.kc, .info-body i.k { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .35em; box-sizing: border-box; margin: 0 1px 3px;
  font: inherit; font-size: 1em; font-style: normal; line-height: 1; vertical-align: middle; color: #14141c; text-shadow: none;
  background: linear-gradient(#f4f6ff 0 2px, #d7def2 2px); box-shadow: 0 0 0 2px #000, inset -2px -2px 0 #a7b3d6, 0 3px 0 #000, 0 3px 0 2px #000; }
kbd.kc.dir, .info-body i.k { font-family: Arial, sans-serif; font-weight: bold; font-size: 1.15em; }
kbd.kc.tch { color: #fff; background: linear-gradient(#ffb06a 0 2px, #ff7a4a 2px); box-shadow: 0 0 0 2px #000, inset -2px -2px 0 #a83a16, 0 3px 0 #000, 0 3px 0 2px #000; border-radius: 40%; }
kbd.kc.wide { min-width: 3em; }
kbd.kc.num { color: #fff; background: linear-gradient(#9ff0e2 0 2px, #4fbfae 2px); box-shadow: 0 0 0 2px #000, inset -2px -2px 0 #1f7a6d, 0 3px 0 #000, 0 3px 0 2px #000; }
.plus { font-style: normal; color: var(--gold); margin: 0 3px; }

/* esquema de los mandos */
.info-pad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pad-card { padding: 10px 12px 12px; background: rgba(0,0,0,.32); box-shadow: inset 0 0 0 2px #26315a, inset 0 2px 0 2px rgba(255,255,255,.03); position: relative; }
.pad-card.touch { grid-column: 1 / -1; }
.pad-card h4 { margin: 0 0 10px; font-weight: normal; font-size: 8px; color: var(--gold); letter-spacing: 2px; }
.pad-card .chip { color: #14141c; background: #ffd84a; padding: 4px 6px 3px; box-shadow: 2px 2px 0 #000; }
.pad-card.p2 .chip { background: #5fd0ff; }
.pad-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.pad-move { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pad-move em, .pa em { font-style: normal; font-size: 6px; color: var(--dim); letter-spacing: 1px; text-align: center; }
.cross { display: grid; grid-template-columns: repeat(3, auto); grid-template-areas: ". u ." "l d r"; gap: 2px; font-size: 9px; }
.cross .u { grid-area: u; } .cross .l { grid-area: l; } .cross .d { grid-area: d; } .cross .r { grid-area: r; }
.pad-acts { display: flex; gap: 8px; flex-wrap: wrap; font-size: 9px; flex: 1; }
.pa { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 40px; }
.pa.light kbd { background: linear-gradient(#fff 0 2px, #e6ecf5 2px); color: #14141c; }
.pa.ultimate kbd, .pa.ultimate2 kbd { background: linear-gradient(#b0e4ff 0 2px, #7fd0ff 2px); box-shadow: 0 0 0 2px #000, inset -2px -2px 0 #2a7aa8, 0 3px 0 #000, 0 3px 0 2px #000; }
.pa.ability kbd { background: linear-gradient(#ffe0a0 0 2px, #ffb547 2px); box-shadow: 0 0 0 2px #000, inset -2px -2px 0 #a8580a, 0 3px 0 #000, 0 3px 0 2px #000; }
.stick { width: 34px; height: 34px; border-radius: 50%; background: #121a33; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #3b4c86; display: grid; place-items: center; }
.stick i { width: 16px; height: 16px; border-radius: 50%; background: #9fb3e6; box-shadow: 0 0 0 2px #000, inset -2px -2px 0 #4c5a8a; animation: stick-move 2.4s steps(1) infinite; }
@keyframes stick-move { 25% { transform: translateX(6px); } 50% { transform: translateY(-6px); } 75% { transform: translateX(-6px); } }
kbd.kc.round { border-radius: 50%; min-width: 2.6em; height: 2.6em; color: #fff; background: linear-gradient(#ffb06a 0 3px, #ff7a4a 3px); }

.controls { display: grid; grid-template-columns: auto auto auto; gap: 4px 18px; font-size: 8px; color: #c9d3ee; line-height: 1.6; align-items: center;
  background: rgba(0,0,0,.35); padding: 12px 16px; box-shadow: inset 0 0 0 2px #2d3b66; }
.controls > * { padding: 3px 0; }
.controls > :nth-child(3n+1):not(:first-child) { border-top: 1px solid #1a2246; padding-top: 6px; }
.controls b { color: var(--gold); font-weight: normal; }

/* pestaña de combate: tarjetas por tema */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 12px; }
.info-card { position: relative; padding: 12px 14px 10px 14px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 2px #26315a, inset 3px 0 0 var(--ac, var(--gold)); }
.info-card h3 { display: flex; align-items: center; gap: 10px; padding-left: 26px; min-height: 18px; color: var(--ac, var(--gold)); }
.info-card .ic { position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; background: var(--ac, var(--gold)); filter: drop-shadow(2px 2px 0 #000); }
.ic-combo { --ac: #ff7a4a; } .ic-shield { --ac: #7fd0ff; } .ic-charge { --ac: #ffd84a; } .ic-bars { --ac: #c084fc; } .ic-weight { --ac: #5fe08a; }
.ic-combo .ic { clip-path: polygon(40% 0, 100% 0, 60% 40%, 90% 40%, 20% 100%, 40% 55%, 10% 55%); }
.ic-shield .ic { clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.ic-charge .ic { clip-path: polygon(50% 0, 62% 38%, 100% 38%, 69% 62%, 81% 100%, 50% 76%, 19% 100%, 31% 62%, 0 38%, 38% 38%); }
.ic-bars .ic { clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%, 0 44%, 70% 44%, 70% 66%, 0 66%, 0 78%, 40% 78%, 40% 100%, 0 100%); }
.ic-weight .ic { clip-path: polygon(30% 0, 70% 0, 70% 20%, 90% 20%, 100% 100%, 0 100%, 10% 20%, 30% 20%); }
.info-card p { font-size: 8px; }

/* combos de ejemplo: las teclas se iluminan en orden */
.combo-demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 10px; }
.combo { display: flex; flex-direction: column; gap: 8px; padding: 8px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px #2d3b66; }
.combo b { font-size: 6px; letter-spacing: 1px; color: var(--dim); }
.seq { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 8px; }
.seq .st { display: inline-flex; align-items: center; animation: seq-hit calc(var(--n) * .5s + .8s) steps(1) infinite; animation-delay: calc(var(--i) * .5s); }
.seq .st kbd { transition: none; }
@keyframes seq-hit { 0% { transform: translateY(2px); filter: brightness(1.4) drop-shadow(0 0 0 #ffd84a); }
  0%, 18% { filter: brightness(1.25) sepia(1) saturate(4) hue-rotate(5deg); transform: translateY(2px); } 19%, 100% { filter: none; transform: none; } }
.seq .arw { width: 6px; height: 8px; margin: 0 3px; background: #3b4c86; clip-path: polygon(0 0, 100% 50%, 0 100%); flex: none; }

/* esquema de barras */
.bars-demo { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 12px; padding: 10px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px #2d3b66; }
.bd-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; font-size: 8px; }
.bd-name { font-size: 7px; color: var(--dim); letter-spacing: 1px; }
.bd-ult { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 10px; }
.bd-ult i { display: block; background: #0a0d20; box-shadow: 0 0 0 2px #000; position: relative; overflow: hidden; }
.bd-ult i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#b0e4ff 0 2px, #3aa0ff 2px 7px, #1e5c9f 7px); transform-origin: left; animation: bd-fill 4s steps(16) infinite; }
.bd-ult .lv2::after { animation-name: bd-fill2; }
@keyframes bd-fill { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes bd-fill2 { 0%, 40% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
.bd-abl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; height: 4px; }
.bd-abl i { display: block; background: var(--c); box-shadow: 0 0 0 2px #000; animation: rk-blink 1.6s steps(2) infinite; }
.bd-keys { white-space: nowrap; }
.bd-keys em { font-style: normal; color: #7fd0ff; font-size: 7px; }

/* clases de peso */
.info-weights { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.wt { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; padding: 8px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px #2d3b66; }
.wt b { grid-column: 1 / -1; font-size: 9px; color: #5fe08a; letter-spacing: 1px; }
.wt em { grid-column: 1 / -1; font-style: normal; font-size: 6px; color: var(--dim); line-height: 1.7; }
.wbar { height: 6px; background: #0a0d20; box-shadow: 0 0 0 1px #000; display: block; }
.wbar i { display: block; height: 100%; }
.wbar.hp i { background: linear-gradient(#a8f5c0 0 1px, #5fe08a 1px); }
.wbar.sp i { background: linear-gradient(#b0e4ff 0 1px, #7fd0ff 1px); }
.wv { font-size: 6px; color: #c9d3ee; white-space: nowrap; }

/* ficha de personaje */
.char-head { display: flex; gap: 16px; align-items: stretch; margin-bottom: 12px; padding: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--ch) 22%, transparent), rgba(0,0,0,.25));
  box-shadow: inset 0 0 0 2px #26315a, inset 3px 0 0 var(--cc); }
.char-cut { flex: none; width: 140px; height: 96px; background: #05060c; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--cc); overflow: hidden; display: grid; place-items: center; }
.char-cut img { height: 100%; image-rendering: pixelated; }
.char-id { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.char-head .nm { font-size: 18px; letter-spacing: 2px; text-shadow: 3px 3px 0 #000; }
.char-head .meta { font-size: 8px; color: var(--dim); line-height: 1.8; }
.char-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cc { font-size: 7px; padding: 4px 6px 3px; color: #c9d3ee; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px #3b4c86; }
.cc.cat { color: #14141c; background: var(--cc); box-shadow: 2px 2px 0 #000; }
.cc.hp { color: #5fe08a; }
.char-abl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 7px; color: #c9d3ee; line-height: 1.8; }
.char-abl .lbl { color: #ffb547; letter-spacing: 1px; }
.char-abl .keys { font-size: 8px; }
.move-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 10px; margin-bottom: 10px; }
.mg { padding: 10px; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px #26315a; }
.mg h3 { margin: 0 0 8px; font-size: 9px; }
.mv { display: grid; grid-template-columns: minmax(84px, auto) 1fr; gap: 2px 10px; align-items: center; padding: 4px 0; border-top: 1px solid #1a2246; font-size: 8px; color: #c9d3ee; line-height: 1.6; }
.mv:first-of-type { border-top: 0; }
.mv .in { color: var(--dim); font-size: 7px; white-space: nowrap; }
.mv .mn { color: #fff; }
.mv .tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 3px; }
.mv .tags:empty { display: none; }
.mg.def ul { margin: 0; padding-left: 14px; font-size: 8px; color: #c9d3ee; line-height: 1.9; }
.mg.def li::marker { color: var(--gold); content: "■ "; font-size: 6px; }
.moves .mtag, .mtag { display: inline-block; font-size: 6px; padding: 2px 4px 1px; border: 0; color: var(--dim); background: rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px #4c5674; }
.mtag.warn { color: #ff9a8a; box-shadow: inset 0 0 0 1px #b3261e; }

@media (max-width: 480px) { .info-tabs { flex-wrap: nowrap; gap: 6px; } .info-tabs .ti { display: none; } .info-tabs button { font-size: 7px; padding: 8px 7px; } }
@media (max-width: 700px) {
  #info { padding-top: 56px; }
  .info-pad { grid-template-columns: 1fr; }
  .info-tabs button { font-size: 8px; padding: 8px 10px 8px 8px; letter-spacing: 1px; }
  .info-body { padding: 12px; max-height: none; overflow: visible; }
  .char-head { flex-direction: column; }
  .char-cut { width: 100%; }
  .controls { gap: 4px 8px; padding: 10px; font-size: 7px; }
  .bd-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  #info *, #info *::after { animation: none !important; }
}

/* ---------------------------------------------------------------- pantallas bajas / estrechas */
@media (max-height: 640px) {
  .menu-main .mbtn small { display: none; }
  .menu-main .mbtn:not(.hero) .lbl { grid-row: 1 / span 2; }
  .menu-head { margin-bottom: 1.6vh; }
}
@media (max-width: 1100px) {
  .score-panel { width: 236px; padding: 9px; gap: 8px; }
  .pc-res { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .score-panel { position: static; order: 9; margin-top: 14px; width: min(420px, 92vw); }
  .menu-tools { right: calc(10px + 54px); top: 10px; }
  .sound-ctl { right: 10px; top: 10px; }
  #menu { overflow-y: auto; pointer-events: auto; }
  .menu-foot { position: static; transform: none; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #menu *, .sub-screen * { animation: none !important; }
}
/* En los menús el lienzo se recorta por arriba (cielo) y no por abajo (los luchadores) */
body[data-shell="menu"] #wrap, body[data-shell="other"] #wrap { align-items: flex-end; }

/* ================================================================ pulido (rangos/menús)
   Pixel más denso: biseles y marcos a 2 px, tramados finos, remaches, foco de teclado visible,
   transiciones entre pantallas (persiana pixel) y ajustes de móvil. */

/* textura pixel fina (tramado 2x2 muy suave) y bisel a 2 px en los paneles */
.panel { background:
    repeating-conic-gradient(rgba(255,255,255,.018) 0 25%, transparent 0 50%) 0 0 / 4px 4px,
    linear-gradient(180deg, rgba(26,32,70,.9), rgba(10,12,30,.9));
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--line), inset 0 0 0 4px rgba(0,0,0,.5), inset 0 6px 0 rgba(255,255,255,.035), 0 6px 0 rgba(0,0,0,.35); }

/* botones del menú: remaches en las esquinas, línea de luz a 2 px y sombra escalonada */
.mbtn { background-image:
    linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)), linear-gradient(var(--b), var(--b)),
    linear-gradient(180deg, rgba(22,28,62,.92) 0%, rgba(10,12,30,.92) 100%);
  background-size: 2px 2px, 2px 2px, 2px 2px, 2px 2px, auto;
  background-position: 4px 4px, calc(100% - 4px) 4px, 4px calc(100% - 7px), calc(100% - 4px) calc(100% - 7px), 0 0;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--b), inset 0 2px 0 2px color-mix(in srgb, var(--l) 35%, transparent), inset 0 -5px 0 rgba(0,0,0,.45), 2px 5px 0 #000, 0 5px 0 #000; }
.meta2 .mbtn { background-image:
    linear-gradient(var(--l), var(--l)), linear-gradient(var(--l), var(--l)), linear-gradient(var(--l), var(--l)), linear-gradient(var(--l), var(--l)),
    linear-gradient(180deg, color-mix(in srgb, var(--b) 30%, rgba(14,16,36,.94)), rgba(10,12,30,.94));
  background-size: 2px 2px, 2px 2px, 2px 2px, 2px 2px, auto; background-repeat: no-repeat;
  background-position: 4px 4px, calc(100% - 4px) 4px, 4px calc(100% - 7px), calc(100% - 4px) calc(100% - 7px), 0 0; }
.mbtn.mini { background-image: linear-gradient(rgba(8,10,26,.72), rgba(8,10,26,.72)); background-size: auto; background-position: 0 0;
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #26325c, inset 0 2px 0 2px rgba(159,179,230,.07), 0 4px 0 #000; }
.mbtn .ico { box-shadow: inset 0 0 0 2px #000, inset 0 -4px 0 var(--d), inset 0 4px 0 var(--l), inset 2px 0 0 color-mix(in srgb, var(--l) 60%, transparent); }
.mbtn:hover, .mbtn:focus-visible, .mbtn.sel { background-image: linear-gradient(180deg, var(--l) 0 2px, color-mix(in srgb, var(--l) 60%, var(--b)) 2px 30%, var(--b) 30% 70%, var(--d) 70%);
  background-size: auto; background-position: 0 0; }
.mbtn.mini:hover, .mbtn.mini:focus-visible, .mbtn.mini.sel { background-image: linear-gradient(180deg, var(--l) 0 2px, #8fa3dc 2px 45%, #6f84c4 45% 80%, var(--b) 80%); }
.mbtn.hero, .mbtn.hero:hover, .mbtn.hero:focus-visible, .mbtn.hero.sel { background-image:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,.12) 6px 8px),
    linear-gradient(180deg, #fffbe0 0 2px, #fff3a8 2px 30%, #ffd84a 30% 70%, #e6b820 70%); background-size: auto; background-position: 0 0; }
.mbtn.hero:hover, .mbtn.hero.sel, .mbtn.hero:focus-visible { background-image:
    repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,.18) 6px 8px),
    linear-gradient(180deg, #ffffff 0 2px, #fffbe0 2px 30%, #fff07a 30% 70%, #ffd84a 70%); }
/* foco de teclado: marco discontinuo pixel por fuera, además del estado de selección */
.mbtn:focus-visible { outline: 2px dashed #fff; outline-offset: 5px; }
button:focus-visible:not(.mbtn):not(.back-btn):not(.lang-cur):not(.snd-btn), .pc-ava:focus-visible, .rk-retry:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.big-btn:focus-visible { outline: 2px dashed #fff !important; outline-offset: 5px; }
.big-btn.busy { pointer-events: none; color: transparent !important; position: relative; }
.big-btn.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -15px; background: #14141c;
  box-shadow: 12px 0 0 #14141c, 24px 0 0 #14141c; animation: btn-dots .9s steps(3) infinite; }
@keyframes btn-dots { 33% { box-shadow: 12px -4px 0 #14141c, 24px 0 0 #14141c; transform: translateY(0); } 66% { box-shadow: 12px 0 0 #14141c, 24px -4px 0 #14141c; } 0% { transform: translateY(-4px); } }

/* pulsar: hunde 3 px a pasos */
.mbtn:active { transition: none; }

/* logo: brillo pixel que lo cruza y línea de escaneo */
.menu-logo { position: relative; }
.menu-logo::after { content: ""; position: absolute; inset: -.1em -.2em; pointer-events: none;
  background: linear-gradient(105deg, transparent 0 42%, rgba(255,255,255,.55) 42% 45%, transparent 45% 49%, rgba(255,255,255,.3) 49% 50.5%, transparent 50.5%) 0 0 / 300% 100% no-repeat;
  background-position: 130% 0; mix-blend-mode: overlay; animation: logo-shine 5s steps(20) 1.4s infinite; }
@keyframes logo-shine { 0%, 60% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

/* panel del jugador: rango con división y marcas */
.pc-rank b .rk-pips { gap: 4px; vertical-align: 1px; margin-left: 4px; }
.pc-rank b .rk-pips i { width: 5px; height: 5px; box-shadow: 0 0 0 1px #000; }
.pc-rank .bar { position: relative; height: 5px; }
.pc-rank .bar s { position: absolute; top: 0; bottom: 0; width: 1px; background: #000; }
.pc-rank.hi img { animation: pc-rank-glint 3s steps(2) infinite; }
@keyframes pc-rank-glint { 90% { filter: none; } 95% { filter: brightness(1.6); } }
.score-panel { box-shadow: 0 0 0 2px rgba(0,0,0,.7), inset 0 0 0 2px rgba(159,179,230,.22), inset 0 2px 0 2px rgba(255,255,255,.04); }

/* VOLVER: bisel a 2 px */
.back-btn { box-shadow: inset 0 0 0 2px #3b4c86, inset 0 2px 0 2px rgba(255,255,255,.08), 0 0 0 2px #000, 0 4px 0 #000; }
.back-btn:focus-visible { outline: 2px dashed #fff; outline-offset: 4px; }

/* cuenta: la caja tiembla si falla el inicio de sesión */
.acc-box.shake { animation: acc-shake .36s steps(6); }
@keyframes acc-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.acc-tabs button { transition: transform .08s steps(2); }
.acc-tabs button:not(.on):hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #c084fc; }
#acc-form input::placeholder { color: #3b4c86; }

/* ---------------------------------------------------------------- transición entre pantallas: persiana pixel */
@property --blind { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
.screen.scr-in { -webkit-mask: linear-gradient(#000 var(--blind), transparent var(--blind)) 0 0 / 100% 16px;
  mask: linear-gradient(#000 var(--blind), transparent var(--blind)) 0 0 / 100% 16px; animation: scr-blinds .28s steps(8) both; }
@keyframes scr-blinds { from { --blind: 0%; } to { --blind: 100%; } }

/* móvil estrecho: sin desbordes horizontales */
@media (max-width: 860px) { #menu { overflow-x: hidden; } }
.is-mobile .mbtn .badge { right: -2px; }
@media (max-width: 360px) {
  .sub-screen { padding-top: 60px; }
  .acc-box { padding: 16px 14px; }
  .acc-tabs button { font-size: 8px; letter-spacing: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.scr-in { animation: none; -webkit-mask: none; mask: none; }
  .menu-logo::after, .pc-rank.hi img, .acc-box.shake, .big-btn.busy::after { animation: none !important; }
}

/* ---------------------------------------------------------------- modos destacados: RANKED y SMASH PIXELS
   Dos botones grandes bajo JUGAR, siempre a color (no solo al pasar por encima), con su brillo que pasa, icono
   grande, etiqueta arriba a la derecha y un pulso de luz del color del modo. */
.mgroup.featured { gap: clamp(8px, 1.2vh, 14px); }
.mgroup.modes.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mgroup.modes.three .mbtn small { display: none; }
.mgroup.modes.three .mbtn .lbl { grid-row: 1 / span 2; font-size: clamp(7px, min(1.1vh, .55vw), 11px); letter-spacing: 0; white-space: normal; line-height: 1.5; }
.mgroup.modes.three .mbtn { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-left: 6px; padding-right: 6px; }
.mgroup.modes.three .mbtn .ico { display: none; }
.mgroup.modes.three .mbtn .lbl { overflow: visible; text-overflow: clip; }
.mbtn.feat { --t: #ffffff; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; justify-items: start; row-gap: 7px;
  min-height: clamp(84px, 13vh, 132px); padding: clamp(10px, 1.6vh, 18px) clamp(10px, 1vw, 16px); overflow: hidden;
  text-shadow: 2px 2px 0 rgba(0,0,0,.55); animation: feat-glow 2.2s ease-in-out infinite; }
.mbtn.feat .ico { grid-row: auto; width: clamp(30px, 4.6vh, 50px); height: clamp(30px, 4.6vh, 50px); background: rgba(10,10,20,.88); color: var(--l); }
.mbtn.feat .lbl { font-size: clamp(10px, min(1.9vh, 1vw), 20px); letter-spacing: 1px; overflow: visible; white-space: nowrap; }
.mbtn.feat small { color: rgba(255,255,255,.85); white-space: normal; line-height: 1.6; text-shadow: 1px 1px 0 rgba(0,0,0,.6); }
.mbtn.feat .feat-tag { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: clamp(6px, .8vh, 8px); letter-spacing: 1px; padding: 3px 5px 2px;
  color: #14141c; background: var(--l); box-shadow: 0 0 0 2px #000; text-shadow: none; }
.mbtn.feat::before { opacity: 1; animation: mbtn-shine 2.8s steps(22) infinite; }
.mbtn.feat.rank { --b: #a855f7; --d: #3b0f75; --l: #ffd84a; --g: rgba(192,132,252,.7); }
.mbtn.feat.smash { --b: #ff4f7a; --d: #7a1030; --l: #fff07a; --g: rgba(255,90,138,.7); }
.mbtn.feat.rank, .mbtn.feat.rank:hover, .mbtn.feat.rank:focus-visible, .mbtn.feat.rank.sel { background-image:
    radial-gradient(circle at 85% 120%, rgba(255,216,74,.35), transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(255,255,255,.06) 10px 12px),
    linear-gradient(180deg, #d8b4fe 0 2px, #9b4dff 2px 35%, #6d28d9 35% 75%, #3b0f75 75%); background-size: auto; background-position: 0 0; }
.mbtn.feat.smash, .mbtn.feat.smash:hover, .mbtn.feat.smash:focus-visible, .mbtn.feat.smash.sel { background-image:
    radial-gradient(circle at 85% 120%, rgba(255,240,122,.4), transparent 55%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,.07) 10px 12px),
    linear-gradient(180deg, #ffb0c8 0 2px, #ff4f7a 2px 35%, #e0304a 35% 75%, #7a1030 75%); background-size: auto; background-position: 0 0; }
.mbtn.feat:hover, .mbtn.feat.sel, .mbtn.feat:focus-visible { color: #fff; filter: brightness(1.12); transform: translateY(-2px);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px var(--l), inset 0 -6px 0 rgba(0,0,0,.4), 0 6px 0 #000, 0 0 30px var(--g); }
.mbtn.feat:hover small, .mbtn.feat.sel small { color: #fff; }
.mbtn.feat:hover .ico, .mbtn.feat.sel .ico { color: var(--l); background: #14141c; }
.mbtn.feat .badge { top: -9px; right: auto; left: -7px; }
@keyframes feat-glow { 0%, 100% { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.35), inset 0 -6px 0 rgba(0,0,0,.4), 0 6px 0 #000, 0 0 10px var(--g); }
  50% { box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.5), inset 0 -6px 0 rgba(0,0,0,.4), 0 6px 0 #000, 0 0 26px var(--g); } }
#menu.enter .mbtn.feat { animation: mbtn-in .5s cubic-bezier(.2, 1.3, .4, 1) both, feat-glow 2.2s ease-in-out 1s infinite; animation-delay: calc(var(--i) * 45ms + 260ms), 1s; }
@media (max-height: 640px) { .mbtn.feat { min-height: 64px; } .mbtn.feat small { display: none; } }
@media (orientation: landscape) and (max-height: 500px) {
  .mgroup.modes.three { grid-template-columns: repeat(3, 1fr); }
  .menu-main .mbtn.feat { min-height: 52px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; align-items: center; column-gap: 8px; }
  .menu-main .mbtn.feat .lbl { font-size: 11px; }
  .menu-main .mbtn.feat .ico { width: 26px; height: 26px; }
  .mbtn.feat .feat-tag { display: none; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .menu-main .mbtn.feat .lbl { font-size: 12px; }
  .mgroup.modes.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* abajo del menú solo queda el luchador más jugado (sin la ayuda de teclas) */
#menu .menu-help { display: none; }
#menu .ticker:empty { display: none; }
/* selector de estética de los luchadores, a la vista arriba a la derecha (options.js) */
.art-pick { display: flex; align-items: stretch; box-shadow: 0 0 0 2px #000, 0 4px 0 #000; background: #0e1228; font-size: 8px; letter-spacing: 1px; }
.art-pick > span { display: grid; place-items: center; padding: 0 8px; color: #ffd84a; background: #1b2240; text-shadow: 1px 1px 0 #000; }
.art-pick button { font: inherit; font-size: 8px; color: #9fb3e6; background: transparent; border: 0; padding: 8px 10px; cursor: pointer; letter-spacing: 1px; }
.art-pick button.on { color: #14141c; background: linear-gradient(180deg, #fff3a8, #ffd84a 55%, #e6b820); text-shadow: none; }
.art-pick button:not(.on):hover { color: #fff; background: #2d3b66; }
.art-pick button.busy { animation: blink 0.6s steps(2) infinite; }
@media (orientation: landscape) and (max-height: 500px) { .art-pick > span { display: none; } .art-pick button { padding: 6px 7px; } }
/* el selector de estética va debajo del idioma (no tapa el logo) */
.menu-tools { flex-direction: column; align-items: flex-end; }
/* rendimiento: los pulsos de sombra (box-shadow animado) y el arcoíris con filtro repintaban el menú entero en cada
   fotograma. Se dejan quietos (con su brillo) y solo se mueven los brillos que cruzan los botones. */
.mbtn.hero, #menu.enter .mbtn.hero { animation: none; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.5), inset 0 -6px 0 #b38f00, 0 6px 0 #000, 0 0 30px rgba(255,216,74,.5); }
.mbtn.feat, #menu.enter .mbtn.feat { animation: none; box-shadow: 0 0 0 2px #000, inset 0 0 0 2px rgba(255,255,255,.4), inset 0 -6px 0 rgba(0,0,0,.4), 0 6px 0 #000, 0 0 18px var(--g); }
#menu.enter .mbtn.hero, #menu.enter .mbtn.feat { animation: mbtn-in .5s cubic-bezier(.2, 1.3, .4, 1) both; }
/* SMASH PIXELS aún no abierto (solo admin): apagado y con PRÓXIMAMENTE */
.mbtn.feat.smash.soon { filter: grayscale(.75) brightness(.8); animation: none; }
.mbtn.feat.smash.soon::before { animation: none; opacity: .4; }

/* Calidad baja (móvil, device.js añade html.lite): fuera los desenfoques en vivo, que en la gráfica de un móvil son de lo
   más caro. El fondo de las bandas ya es una copia diminuta ampliada con suavizado: se sigue viendo difuso. */
html.lite #backdrop { filter: brightness(.45) saturate(1.4); }
html.lite .score-panel { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(160deg, rgba(48,26,92,.82) 0%, rgba(16,18,44,.72) 60%, rgba(16,18,44,.4) 100%); }
