:root {
  --bg: #07040f;
  --panel: #150d24e6;
  --panel-solid: #150d24;
  --line: #ffffff1a;
  --text: #f6f0ff;
  --muted: #a99cc4;
  --neon: #b46bff;
  --pink: #ff4fd8;
  --gold: #ffd166;
  --good: #43e08a;
  --bad: #ff4d6d;
  --display: 'Bungee', 'Arial Black', system-ui, sans-serif;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Sin barras de scroll visibles (se sigue pudiendo deslizar) */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

html { background: var(--bg); }
html, body {
  height: 100%;
  color: var(--text);
  font-family: var(--body);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
body { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Ciudad de fondo para los menús (la partida tiene la suya dentro del escenario). */
.backdrop { position: fixed; inset: 0; z-index: -1; }
.backdrop .scene-svg { width: 100%; height: 100%; }
.backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, #07040f55, #07040fcc 70%); }
body.playing .backdrop { display: none; }

.screen {
  height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow-y: auto;
}
.screen[hidden] { display: none; }
.screen:not([hidden]) { animation: screenIn .25s ease-out; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } }

h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; text-align: center; letter-spacing: .5px; }
.muted { color: var(--muted); text-align: center; }

.net {
  position: fixed; top: 10px; right: 10px; z-index: 10;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--muted);
}
.net.on { background: var(--good); box-shadow: 0 0 8px var(--good); }

/* ---------- inicio ---------- */

.home { justify-content: flex-start; gap: 10px; }

.logo {
  font-family: var(--display); font-weight: 400;
  display: flex; flex-direction: column; align-items: center;
  line-height: .9; text-align: center;
  margin-top: 4px;
}
.logo .l1 {
  font-size: clamp(2.6rem, 14vw, 3.6rem);
  color: #fff;
  text-shadow: 0 0 18px var(--neon), 0 0 46px #7a2cff;
}
.logo .l2 {
  font-size: clamp(1.7rem, 9vw, 2.3rem);
  background: linear-gradient(90deg, var(--gold), var(--pink), var(--neon));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px #ff4fd866);
}

.picker { display: flex; align-items: center; gap: 4px; width: 100%; justify-content: center; }
.pick-stage { position: relative; display: grid; place-items: center; }
.arrow {
  flex: none; width: 44px; height: 64px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 2rem; line-height: 1;
}
.arrow:active { transform: scale(.94); }
.char.preview { width: min(54vw, 230px); }
.char.preview.locked .rig-svg { filter: brightness(0) drop-shadow(0 0 2px #b46bff); }
.char.preview.locked .aura-fx { opacity: .1; }
.lock-badge {
  position: absolute; bottom: 14%;
  padding: 6px 12px; border-radius: 999px;
  background: #000c; border: 1px solid var(--gold);
  color: var(--gold); font-weight: 800; font-size: .85rem; white-space: nowrap;
}
.lock-badge[hidden] { display: none; }

.pick-info { display: grid; justify-items: center; gap: 2px; text-align: center; margin-top: -6px; }
.pick-info b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.pick-info span { color: var(--muted); font-size: .9rem; }
.dots { display: flex; gap: 6px; margin-top: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #ffffff33; }
.dots i.on { background: var(--neon); box-shadow: 0 0 6px var(--neon); }
.dots i.lk { background: transparent; border: 1px solid #ffffff44; }

.field { width: 100%; display: grid; gap: 6px; font-size: .8rem; color: var(--muted); }
.field input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: 600 1.05rem var(--body);
}
.field input:focus { outline: 2px solid var(--neon); }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

.profile { font-size: .85rem; color: var(--muted); min-height: 1.2em; text-align: center; }
.profile b { color: var(--gold); }

.btn {
  width: 100%; padding: 15px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel);
  backdrop-filter: blur(6px);
  font-size: 1.05rem; font-weight: 800;
}
.btn:active { transform: scale(.97); }
.btn.primary {
  border: 0;
  background: linear-gradient(135deg, #8b3dff, #ff4fd8);
  box-shadow: 0 6px 30px #a24dff66, inset 0 1px 0 #ffffff55;
  font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: .5px;
}
.btn.small { padding: 12px; font-size: 1rem; }
.btn.icon { width: 56px; flex: none; }
.row { display: flex; gap: 8px; width: 100%; }
/* hidden siempre gana (si no, reglas como .btn.google { display: flex } lo pisan) */
[hidden] { display: none !important; }
.btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.g-logo {
  width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #4285f4;
  display: grid; place-items: center; font: 800 1.05rem var(--body);
}
.account { font-size: .82rem; color: var(--muted); }
.account[hidden] { display: none; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: inherit; padding: 4px; }

/* ---------- buscando rival ---------- */

.versus-intro { display: flex; align-items: center; gap: 12px; }
.vs-card {
  width: 110px; height: 140px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.vs-card .char { width: 130%; margin-top: 30%; }
.vs-bolt { font-family: var(--display); font-size: 2rem; color: var(--gold); text-shadow: 0 0 14px var(--gold); }
.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 5px solid #ffffff22; border-top-color: var(--neon);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- partida ---------- */

.screen.game { justify-content: space-between; padding-left: 0; padding-right: 0; gap: 0; }

.hud {
  width: 100%; padding: 8px 14px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 10px;
  background: #07040fcc; backdrop-filter: blur(6px);
  position: relative; z-index: 2;
}
.hud[hidden] { display: none; }
.hud-avatar {
  grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem;
  background: var(--panel-solid); border: 1px solid var(--line);
}
.hud-name { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-score { font-family: var(--display); font-size: 1.6rem; grid-row: 2; grid-column: 2; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hud-fails { grid-column: 3; grid-row: 1 / 3; display: flex; gap: 4px; }
.hud-fails i { width: 12px; height: 12px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 6px var(--neon); }
.hud-fails i.lost { background: #3a2f4a; box-shadow: none; position: relative; }
.hud-fails i.lost::after { content: '✕'; position: absolute; inset: -3px 0 0; font-size: 11px; color: var(--bad); text-align: center; }
.hud.opp { border-bottom: 1px solid var(--line); }
.hud.opp .hud-score { font-size: 1.2rem; }
.hud.me { border-top: 1px solid var(--line); }
.mult { color: var(--gold); font-weight: 800; font-size: .85rem; grid-column: 2; grid-row: 1; justify-self: end; }

.stage {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  overflow: hidden;
}
.scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene .scene-svg { width: 100%; height: 100%; }
.stage > :not(.scene) { position: relative; z-index: 1; }
.stage > .move-label, .stage > .timer, .stage > .mash, .stage > .popups, .stage > .countdown { position: absolute; }
.stage.flash-bad { animation: shake .3s; }
.stage.flash-bad::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; animation: flashBad .35s forwards; }
@keyframes flashBad { 0% { background: #ff4d6d55; } 100% { background: transparent; } }

/* Público: se balancea siempre, salta cuando acertás y se ríe cuando fallás. */
.fan { animation: sway 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
.phone { fill: #cfe8ff; filter: drop-shadow(0 0 4px #cfe8ff); }
.stage.cheer .fan { animation: cheer .45s ease-out; }
.stage.boo .fan { animation: boo .5s ease-in-out; }
.stage.cheer .phone { animation: camFlash .4s; }
.neon-text { font: 26px var(--display); fill: #ff4fd8; filter: drop-shadow(0 0 4px #ff4fd8); animation: neon 3s infinite; }
.win { animation: none; }
@keyframes sway { 50% { transform: translateY(2px) rotate(1deg); } }
@keyframes cheer { 40% { transform: translateY(-16px); } }
@keyframes boo { 25%, 75% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes camFlash { 0%, 100% { fill: #cfe8ff; } 30% { fill: #fff; filter: drop-shadow(0 0 14px #fff); } }
@keyframes neon { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .3; } 96% { opacity: 1; } 98% { opacity: .5; } }

.move-label {
  top: 10px; left: 0; right: 0; z-index: 2;
  text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
}
#moveName {
  font-family: var(--display); font-size: clamp(1.7rem, 10vw, 2.6rem);
  color: #fff;
  text-shadow: 0 0 16px var(--neon), 0 3px 0 #2a0a4a;
}
#moveName.pop { animation: labelPop .2s ease-out; }
@keyframes labelPop { from { transform: scale(1.6); opacity: 0; } }
/* El símbolo del gesto va en una pastilla oscura con borde: el aura del personaje cambia de color con la
   racha (dorada desde 10 aciertos, igual que este texto) y sin fondo propio las flechas se perdían. */
.cue {
  margin-top: 6px; padding: 2px 16px; border-radius: 999px;
  font-size: 1.7rem; line-height: 1.3; color: var(--gold); font-weight: 800;
  background: #07040fd9; border: 2px solid var(--gold);
  text-shadow: 0 0 2px #000, 0 2px 0 #000;
  box-shadow: 0 0 14px #000a;
}
.cue:empty { display: none; }

.timer {
  bottom: 12px; left: 16px; right: 16px; height: 6px; z-index: 2;
  background: #ffffff22; border-radius: 3px; overflow: hidden;
}
.timer i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--neon)); }

.mash {
  bottom: 28px; left: 16px; right: 16px; height: 26px; z-index: 2;
  border-radius: 13px; background: #000a; border: 1px solid var(--line); overflow: hidden;
}
.mash[hidden] { display: none; }
.mash i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); transition: width .08s; }
.mash.done i { background: var(--good); }
.mash span { position: relative; display: block; text-align: center; line-height: 26px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }

.popups { inset: 0; pointer-events: none; z-index: 2; }
.popup {
  position: absolute; left: 50%; top: 38%;
  transform: translateX(-50%);
  font-family: var(--display); font-size: 1.35rem; white-space: nowrap;
  text-shadow: 0 2px 0 #000, 0 0 12px currentColor;
  animation: rise .9s ease-out forwards;
}
.popup.ok { color: var(--good); }
.popup.bad { color: var(--bad); }
@keyframes rise {
  from { opacity: 1; transform: translate(-50%, 0) scale(1.3); }
  to { opacity: 0; transform: translate(-50%, -80px) scale(1); }
}

.countdown {
  inset: 0; z-index: 4;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 5rem;
  background: #07040fcc;
  text-shadow: 0 0 30px var(--neon);
}
.countdown[hidden] { display: none; }

/* ---------- personaje ---------- */

.char {
  --aura: .15;
  --g: 500ms; /* duración del gesto: se acorta a medida que el juego acelera */
  /* Paleta por defecto (Sigma); cada personaje la pisa abajo. */
  --skin: #f3c59d; --skin-line: #c98d6a; --ear: #e6ad85;
  --hair: #1d1426; --hair-hi: #6b4f94;
  --outfit: #2f1d50; --outfit-2: #1e1233;
  --sleeve: var(--outfit); --cuff: var(--outfit-2); --torso: var(--outfit);
  --eye: #2a1640; --lip: #7a3b2e; --brow: var(--hair);
  --aura-c: #b46bff; --aura-c2: #6a1fff;
  position: relative;
  width: min(74vw, 310px);
  aspect-ratio: 360 / 440;
  pointer-events: none;
}

.char[data-char="goleador"] {
  --skin: #d9a173; --skin-line: #a8704a; --ear: #c98f62;
  --hair: #24160c; --hair-hi: #7a5638;
  --outfit: #f4f5fa; --outfit-2: #c9cbd6; --cuff: #d0021b;
  --eye: #3a2410; --aura-c: #ff4d6d; --aura-c2: #b5002b;
}
.char[data-char="reina"] {
  --skin: #f7d6c1; --skin-line: #d29a85; --ear: #ecc0a8;
  --hair: #ff5fae; --hair-hi: #ffc2e1; --brow: #b02f74;
  --outfit: #16121f; --outfit-2: #0a0810;
  --eye: #6a2bd8; --lip: #d6246e; --aura-c: #ff7ad9; --aura-c2: #b0007a;
}
.char[data-char="gaucho"] {
  --skin: #c98b5e; --skin-line: #94603a; --ear: #b97c50;
  --hair: #3b2416; --hair-hi: #6b4a30;
  --outfit: #8a4b22; --outfit-2: #5c2f12;
  --eye: #2a1a0e; --aura-c: #ffb347; --aura-c2: #ff6a00;
}
.char[data-char="chad"] {
  --skin: #f0c8a0; --skin-line: #c4936a; --ear: #e4b58c;
  --hair: #e9c46a; --hair-hi: #fff0b8; --brow: #b8892e;
  --outfit: #5b606c; --outfit-2: #3c404a;
  --sleeve: var(--skin); --cuff: transparent; --torso: var(--skin);
  --eye: #2b6cb0; --aura-c: #8ff8ff; --aura-c2: #2f6bff;
}
.char[data-char="sombra"] {
  --skin: #e8c2a0; --skin-line: #b98d6c; --ear: #d9b08c;
  --hair: #0d0d12; --hair-hi: #3a3a4a;
  --outfit: #15151c; --outfit-2: #07070a;
  --eye: #ff2a4d; --aura-c: #ff2a4d; --aura-c2: #5a0010;
}

/* Auras por anuncios */
.char[data-skin="neon"] { --aura-c: #00f0ff; --aura-c2: #ff00c8; }
.char[data-skin="neon"] .glow { animation: neonPulse .9s steps(2, jump-none) infinite alternate; }
.char[data-skin="neon"] .flame { filter: blur(6px); mix-blend-mode: normal; opacity: .8; }
@keyframes neonPulse { from { filter: blur(10px) brightness(1); } to { filter: blur(6px) brightness(1.8); } }
.char[data-skin="sakura"] { --aura-c: #ffc2dd; --aura-c2: #ff5fa2; }
.char[data-skin="sakura"] .particles i {
  width: 9px; height: 7px; border-radius: 70% 0 70% 0; background: #ffc2dd; box-shadow: none;
  animation-name: petal;
}
@keyframes petal {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(40px, -260px) rotate(540deg); opacity: 0; }
}
.char[data-skin="electrica"] { --aura-c: #fff35c; --aura-c2: #2a6bff; }
.char[data-skin="electrica"] .aura-fx { animation: zap 1.7s infinite; }
.char[data-skin="electrica"] .particles i { width: 2px; height: 14px; border-radius: 1px; background: #fffbd0; box-shadow: 0 0 8px #fff35c; }
@keyframes zap { 0%, 88%, 100% { filter: none; } 90% { filter: brightness(2.4); } 93% { filter: none; } 95% { filter: brightness(2); } }

/* La racha pisa el color del aura: dorada a los 10, arcoíris a los 20. */
.char[data-char="rapero"] {
  --skin: #8d5524; --skin-line: #5e3818; --ear: #7c4a1f;
  --hair: #1a1110; --hair-hi: #4a3628;
  --outfit: #161616; --outfit-2: #000000;
  --eye: #2a1a10; --aura-c: #ffd166; --aura-c2: #b8860b;
}
.char[data-char="gamer"] {
  --skin: #f5d0b5; --skin-line: #c9977e; --ear: #e9bea3;
  --hair: #2ec4ff; --hair-hi: #a6ecff; --brow: #1b6f99;
  --outfit: #1b1b2a; --outfit-2: #0d0d18;
  --eye: #00b36e; --aura-c: #00ffa3; --aura-c2: #00a3ff;
}
.char[data-char="oficinista"] {
  --skin: #eac09a; --skin-line: #bf8e66; --ear: #ddb08a;
  --hair: #2b2118; --hair-hi: #5c4a38;
  --outfit: #1f2d4d; --outfit-2: #131d33;
  --eye: #3b2a1a; --aura-c: #6d8cff; --aura-c2: #1b2a6b;
}
.char[data-char="nona"] {
  --skin: #f2d0bc; --skin-line: #c79c86; --ear: #e6bfa9;
  --hair: #d9d9e0; --hair-hi: #ffffff; --brow: #a9a9b5;
  --outfit: #8e6fb5; --outfit-2: #6a4f8f;
  --eye: #4a3b5c; --lip: #b05a7a; --aura-c: #ffb3e6; --aura-c2: #b04dff;
}

/* Personajes por anuncios */
.char[data-char="rockera"] {
  --skin: #f1c7a5; --skin-line: #c4906c; --ear: #e4b48f;
  --hair: #6b2bd1; --hair-hi: #c49bff; --brow: #3d1580;
  --outfit: #1c1c22; --outfit-2: #0d0d10;
  --eye: #3d1580; --lip: #8a1438; --aura-c: #ff3b6b; --aura-c2: #7a00ff;
}
.char[data-char="chef"] {
  --skin: #f0c49c; --skin-line: #c4906a; --ear: #e2b38a;
  --hair: #3a2a1c; --hair-hi: #6e5640;
  --outfit: #ececf2; --outfit-2: #c9c9d4;
  --eye: #3a2a1c; --aura-c: #ffd166; --aura-c2: #ff6a00;
}
.char[data-char="vampiro"] {
  --skin: #e8e4f0; --skin-line: #ada3c2; --ear: #d8d1e6;
  --hair: #0d0a12; --hair-hi: #3a3050;
  --outfit: #15121c; --outfit-2: #8a0016;
  --eye: #c8102e; --lip: #5a0010; --aura-c: #ff1f4b; --aura-c2: #2a0010;
}
.char[data-char="mago"] {
  --skin: #f2c8a8; --skin-line: #c9967a; --ear: #e6b896;
  --hair: #ecebf4; --hair-hi: #ffffff; --brow: #ecebf4;
  --outfit: #2b2a8a; --outfit-2: #1a1960;
  --eye: #2b4a9a; --aura-c: #7ad7ff; --aura-c2: #5a2bff;
}
/* Personajes nuevos (v11) */
.char[data-char="luchador"] {
  --skin: #d99a66; --skin-line: #a8683a; --ear: #c98a56;
  --hair: #2a1608; --hair-hi: #5a3a1c; --brow: #f2f2f6;
  --outfit: #c8102e; --outfit-2: #7a0a1c;
  --eye: #2a1608; --aura-c: #ff3b30; --aura-c2: #ffd166;
}
.char[data-char="samurai"] {
  --skin: #f0cba4; --skin-line: #c19972; --ear: #e3b98f;
  --hair: #0d0d14; --hair-hi: #3a3a4a;
  --outfit: #1c2b5e; --outfit-2: #101a3d;
  --eye: #2a1a10; --aura-c: #ff5a5a; --aura-c2: #1c2b5e;
}
.char[data-char="astro"] {
  --skin: #f1c7a5; --skin-line: #c4906c; --ear: #e4b48f;
  --hair: #4a3220; --hair-hi: #7a5a3c;
  --outfit: #eef1f8; --outfit-2: #c9d0de;
  --eye: #1c4a9a; --aura-c: #7fd3ff; --aura-c2: #5a2bff;
}
.char[data-char="bebe"] {
  --skin: #ffd9c2; --skin-line: #e0a98c; --ear: #f5c6aa;
  --hair: #5a3a1c; --hair-hi: #8a5e34;
  --outfit: #bfe3ff; --outfit-2: #8cc6f2;
  --eye: #3a2a1a; --aura-c: #ffb3e6; --aura-c2: #7ad7ff;
}
[data-char="vampiro"] .eye { filter: drop-shadow(0 0 3px #ff1f4b); }
[data-char="mago"] .brow { visibility: hidden; }

/* Auras compradas con puntos de aura (data-skin); pisan la del personaje. */
.char[data-skin="fuego"] { --aura-c: #ff7a00; --aura-c2: #d00000; }
.char[data-skin="hielo"] { --aura-c: #8ff8ff; --aura-c2: #2f6bff; }
.char[data-skin="toxica"] { --aura-c: #9dff4f; --aura-c2: #1f8f00; }
.char[data-skin="vacio"] { --aura-c: #9a9ab0; --aura-c2: #000000; }
.char[data-skin="dorada"] { --aura-c: #ffd166; --aura-c2: #ff9f1c; }
.char[data-skin="arcoiris"] { --aura-c: #ff4fd8; --aura-c2: #4d7cff; }
.char[data-skin="arcoiris"] .aura-fx { animation: rainbow 2s linear infinite; }
.char[data-skin="infernal"] { --aura-c: #ff2a4d; --aura-c2: #3a0008; }
.char[data-skin="galaxia"] { --aura-c: #9b7bff; --aura-c2: #0b1a6b; }
/* Galaxia: espacio profundo con estrellas que titilan (no arcoíris) */
.char[data-skin="galaxia"] .glow { background: radial-gradient(closest-side, #b9a4ff, #3b2399 45%, #0b1a6b 70%, transparent); }
.char[data-skin="galaxia"] .flame { mix-blend-mode: normal; opacity: .75; }
.char[data-skin="galaxia"] .particles i { width: 3px; height: 3px; background: #fff; box-shadow: 0 0 6px #fff, 0 0 12px #9b7bff; animation-name: starRise; }
.char[data-skin="galaxia"] .aura-fx::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 64%, #fff, transparent),
    radial-gradient(2px 2px at 46% 14%, #fff, transparent), radial-gradient(1px 1px at 63% 42%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 70%, #fff, transparent), radial-gradient(1px 1px at 88% 26%, #fff, transparent),
    radial-gradient(2px 2px at 20% 84%, #c9b8ff, transparent), radial-gradient(1px 1px at 55% 88%, #fff, transparent);
  animation: twinkleField 2.4s ease-in-out infinite alternate;
}
@keyframes twinkleField { from { opacity: .35; } to { opacity: 1; } }
@keyframes starRise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  20% { opacity: 1; }
  50% { opacity: .3; }
  70% { opacity: 1; }
  100% { transform: translateY(-240px) scale(1); opacity: 0; }
}

/* La racha pisa el color del aura (dorada a los 10, arcoíris a los 20) si no hay aura comprada. */
.char:not([data-skin])[data-tier="1"] { --aura-c: #ffd166; --aura-c2: #ff7a00; }
.char:not([data-skin])[data-tier="2"] { --aura-c: #8ff8ff; --aura-c2: #ff4fd8; }
.char[data-tier="2"] .aura-fx { animation: rainbow 2s linear infinite; }
@keyframes rainbow { to { filter: hue-rotate(360deg); } }

/* Partes propias de cada personaje */
.pt { display: none; }
[data-char="sigma"] .c-sigma, [data-char="goleador"] .c-goleador, [data-char="reina"] .c-reina,
[data-char="gaucho"] .c-gaucho, [data-char="chad"] .c-chad, [data-char="sombra"] .c-sombra,
[data-char="rapero"] .c-rapero, [data-char="gamer"] .c-gamer, [data-char="oficinista"] .c-oficinista,
[data-char="nona"] .c-nona, [data-char="rockera"] .c-rockera, [data-char="chef"] .c-chef,
[data-char="vampiro"] .c-vampiro, [data-char="mago"] .c-mago, [data-char="luchador"] .c-luchador,
[data-char="samurai"] .c-samurai, [data-char="astro"] .c-astro, [data-char="bebe"] .c-bebe { display: inline; }
.glasses { fill: #ffffff18; stroke: #1b1b22; stroke-width: 4; }
.bling { font: 20px var(--display); fill: #7a5200; }
[data-char="chad"] .face-normal { display: none; }
/* Sombra tiene la boca tapada por la máscara */
[data-char="sombra"] .mouth { visibility: hidden; }

.skin { fill: var(--skin); }
.skin-ear { fill: var(--ear); }
.skin-line { stroke: var(--skin-line); }
.hair { fill: var(--hair); }
.hair-shine { stroke: var(--hair-hi); }
.body-base { fill: var(--torso); }
.iris-c { fill: var(--eye); }
.lashes { fill: none; stroke: #2a1030; stroke-width: 2.5; stroke-linecap: round; }
.jersey-num { font: 900 48px var(--display); fill: #d0021b; }
.hand use { fill: var(--skin); stroke: var(--skin-line); }

.rig-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 98%);
}

/* Pivotes: cada grupo rota alrededor de su origen local (hombro, codo, muñeca). */
.sh, .el, .hand { transform-origin: 0 0; }
.head { transform-origin: 150px 205px; }
.rig { transform-origin: 150px 390px; animation: breathe 2.4s ease-in-out infinite; }
.eye, .brow, .num, .loop, .sweat, .sparkle { transform-box: fill-box; transform-origin: center; }
.sh, .el, .hand, .head, .brow, .shades {
  transition: transform calc(var(--g) * .3) cubic-bezier(.2, .9, .3, 1.25), opacity .15s;
}

.sleeve { stroke: var(--sleeve); stroke-width: 30; stroke-linecap: round; }
.cuff { fill: var(--cuff); }

/* Pose base */
.sh.l { transform: rotate(10deg); }
.el.l { transform: rotate(-38deg); }
.sh.r { transform: rotate(-10deg); }
.el.r { transform: rotate(38deg); }
.h-point, .h-fist, .rope { display: none; }

.brow { fill: none; stroke: var(--brow); stroke-width: 7; stroke-linecap: round; }
.eye { animation: blink 4.2s infinite; }
.iris { transition: transform .15s; }
.mouth { display: none; fill: none; stroke: var(--lip); stroke-width: 5; stroke-linecap: round; }
.mouth.shout, .mouth.grin { fill: #4d1520; }
.mouth.neutral { display: block; }
.jawline { stroke: #fff; stroke-width: 4; stroke-linecap: round; opacity: 0; transition: opacity .15s; }
.shades { opacity: 0; transform: translateY(-70px); }
.sweat, .sparkle { opacity: 0; }
.num { font: 58px var(--display); fill: #ffd166; stroke: #1a0b2a; stroke-width: 4; paint-order: stroke; opacity: 0; }
.chain { filter: drop-shadow(0 0 3px #ffd16688); }
[data-char="sombra"] .eye { filter: drop-shadow(0 0 3px #ff2a4d); }

@keyframes breathe { 50% { transform: translateY(3px) scaleY(.99); } }
@keyframes blink { 0%, 95%, 100% { transform: none; } 97% { transform: scaleY(.1); } }

/* ---------- aura ---------- */

.aura-fx {
  position: absolute; inset: -12% -18% 4%;
  opacity: var(--aura);
  transition: opacity .3s;
}
.glow {
  position: absolute; inset: 12% 12% 0;
  background: radial-gradient(closest-side, var(--aura-c), transparent);
  filter: blur(10px);
  animation: pulse 1.6s infinite alternate;
}
.flame {
  position: absolute; bottom: 4%; left: 27%; width: 46%; height: 88%;
  border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  background: linear-gradient(to top, var(--aura-c2), var(--aura-c) 55%, transparent);
  filter: blur(14px);
  transform-origin: bottom center;
  mix-blend-mode: screen;
  animation: flicker 1.1s infinite ease-in-out alternate;
}
.f2 { left: 8%; width: 42%; height: 70%; animation-duration: .9s; animation-delay: -.3s; }
.f3 { left: 50%; width: 42%; height: 74%; animation-duration: 1.3s; animation-delay: -.6s; }
.particles i {
  position: absolute; bottom: 8%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--aura-c); box-shadow: 0 0 10px var(--aura-c);
  animation: particle 1.8s linear infinite;
}
@keyframes pulse { to { transform: scale(1.1); } }
@keyframes flicker {
  0% { transform: scale(1, 1) skewX(0); }
  50% { transform: scale(.94, 1.08) skewX(3deg); }
  100% { transform: scale(1.05, .95) skewX(-3deg); }
}
@keyframes particle {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-280px) scale(.3); opacity: 0; }
}

.burst {
  position: absolute; left: 50%; top: 42%;
  width: 50%; aspect-ratio: 1; border-radius: 50%;
  border: 6px solid var(--aura-c);
  box-shadow: 0 0 20px var(--aura-c), inset 0 0 20px var(--aura-c);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.menace { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.menace span {
  position: absolute;
  font: 900 2.8rem system-ui, sans-serif;
  color: #c86bff;
  text-shadow: 3px 3px 0 #2a0a3a, 0 0 12px #000;
  animation: menace .8s infinite ease-in-out alternate;
}
.menace span:nth-child(1) { left: -10%; top: 6%; }
.menace span:nth-child(2) { left: -2%; top: 30%; animation-delay: -.4s; }
.menace span:nth-child(3) { right: -10%; top: 10%; animation-delay: -.2s; }
.menace span:nth-child(4) { right: -2%; top: 36%; animation-delay: -.6s; }
@keyframes menace {
  from { transform: translateY(0) rotate(-10deg) scale(1); }
  to { transform: translateY(-12px) rotate(10deg) scale(1.15); }
}

/* ---------- SIUUU: agacharse, saltar girando, caer con los brazos abiertos ---------- */

.g-siuuu .rig { animation: siuRig var(--g) ease-out forwards; }
.g-siuuu .sh.l { animation: siuShL var(--g) ease-out forwards; }
.g-siuuu .el.l { animation: siuElL var(--g) ease-out forwards; }
.g-siuuu .sh.r { animation: siuShR var(--g) ease-out forwards; }
.g-siuuu .el.r { animation: siuElR var(--g) ease-out forwards; }
.g-siuuu .mouth.neutral { display: none; }
.g-siuuu .mouth.shout { display: block; }
.g-siuuu .eye { animation: none; transform: scaleY(.45); }
.g-siuuu .brow { transform: translateY(-7px); }
@keyframes siuRig {
  0% { transform: none; }
  15% { transform: translateY(16px) scale(1.05, .92); }
  40% { transform: translateY(-64px) scaleX(1); }
  52% { transform: translateY(-70px) scaleX(-1); }
  64% { transform: translateY(-62px) scaleX(1); }
  84% { transform: translateY(10px) scale(1.07, .92); }
  100% { transform: none; }
}
@keyframes siuShL { 0% { transform: rotate(10deg); } 15% { transform: rotate(35deg); } 40%, 64% { transform: rotate(168deg); } 100% { transform: rotate(64deg); } }
@keyframes siuElL { 0% { transform: rotate(-38deg); } 15% { transform: rotate(-80deg); } 40%, 64% { transform: rotate(0); } 100% { transform: rotate(-6deg); } }
@keyframes siuShR { 0% { transform: rotate(-10deg); } 15% { transform: rotate(-35deg); } 40%, 64% { transform: rotate(-168deg); } 100% { transform: rotate(-64deg); } }
@keyframes siuElR { 0% { transform: rotate(38deg); } 15% { transform: rotate(80deg); } 40%, 64% { transform: rotate(0); } 100% { transform: rotate(6deg); } }

/* ---------- EL LAZO: revolea arriba y tira hacia el pecho ---------- */

.g-lazo .sh.r { animation: lazoSh var(--g) ease-in-out forwards; }
.g-lazo .el.r { animation: lazoEl var(--g) ease-in-out forwards; }
.g-lazo .rig { animation: lazoRig var(--g) ease-in-out forwards; }
.g-lazo .rope { display: block; }
.g-lazo .hand.r .h-open { display: none; }
.g-lazo .hand.r .h-fist { display: block; }
.g-lazo .loop { animation: loopSpin .18s linear infinite; }
.g-lazo .sh.l { transform: rotate(42deg); }
.g-lazo .el.l { transform: rotate(-104deg); }
.g-lazo .hand.l .h-open { display: none; }
.g-lazo .hand.l .h-fist { display: block; }
.g-lazo .brow.l { transform: translateY(3px) rotate(12deg); }
.g-lazo .brow.r { transform: translateY(3px) rotate(-12deg); }
.g-lazo .mouth.neutral { display: none; }
.g-lazo .mouth.grin { display: block; }
@keyframes lazoSh { 0% { transform: rotate(-10deg); } 18%, 62% { transform: rotate(-170deg); } 100% { transform: rotate(-35deg); } }
@keyframes lazoEl {
  0% { transform: rotate(38deg); }
  18% { transform: rotate(-12deg); }
  30% { transform: rotate(22deg); }
  42% { transform: rotate(-16deg); }
  54% { transform: rotate(22deg); }
  62% { transform: rotate(0); }
  100% { transform: rotate(122deg); }
}
@keyframes lazoRig { 0%, 62% { transform: none; } 100% { transform: rotate(-5deg) translateX(-8px); } }
@keyframes loopSpin { 50% { transform: scaleX(.25); } }

/* ---------- MEWING: dedo en la mandíbula, mentón arriba ---------- */

.g-mewL .sh.l { transform: rotate(110deg); }
.g-mewL .el.l { transform: rotate(128deg); }
.g-mewR .sh.r { transform: rotate(-110deg); }
.g-mewR .el.r { transform: rotate(-128deg); }
.g-mewL .hand.l .h-open, .g-mewR .hand.r .h-open { display: none; }
.g-mewL .hand.l .h-point, .g-mewR .hand.r .h-point { display: block; }
.g-mewL .head { transform: rotate(7deg) translateY(-4px); }
.g-mewR .head { transform: rotate(-7deg) translateY(-4px); }
.g-mewL .jawline, .g-mewR .jawline { opacity: .9; }
.g-mewL .eye, .g-mewR .eye { animation: none; transform: scaleY(.5); }
.g-mewL .iris { transform: translateX(-4px); }
.g-mewR .iris { transform: translateX(4px); }
.g-mewL .brow.l, .g-mewR .brow.r { transform: translateY(-5px); }
.g-mewL .sparkle { opacity: 1; transform: translateX(-112px); animation: twinkle .4s infinite alternate; }
.g-mewR .sparkle { opacity: 1; animation: twinkle .4s infinite alternate; }
.g-mewL .mouth.neutral, .g-mewR .mouth.neutral { d: path('M138 172 L162 172'); }
@keyframes twinkle { from { scale: .6; } to { scale: 1.2; } }

/* ---------- RIZZ FACE: lentes, sonrisa de costado y pistolita con los dedos ---------- */

.g-rizz .sh.r { transform: rotate(-26deg); }
.g-rizz .el.r { animation: fingerGun var(--g) ease-out forwards; }
.g-rizz .hand.r .h-open { display: none; }
.g-rizz .hand.r .h-point { display: block; }
.g-rizz .shades { opacity: 1; transform: none; }
.g-rizz .head { transform: rotate(-6deg); }
.g-rizz .brow.l { transform: translateY(-9px) rotate(-6deg); }
.g-rizz .mouth.neutral { display: none; }
.g-rizz .mouth.smirk { display: block; }
.g-rizz .sparkle { opacity: 1; transform: translate(-30px, -70px); animation: twinkle .3s infinite alternate; }
@keyframes fingerGun {
  0% { transform: rotate(38deg); }
  40% { transform: rotate(-124deg); }
  55% { transform: rotate(-145deg); }
  75%, 100% { transform: rotate(-124deg); }
}

/* ---------- 6-7: palmas arriba, sube una y baja la otra ---------- */

.g-sixseven .sh.l { animation: sevenL .22s ease-in-out infinite alternate; }
.g-sixseven .sh.r { animation: sevenR .22s ease-in-out -.22s infinite alternate; }
.g-sixseven .el.l { transform: rotate(64deg); }
.g-sixseven .el.r { transform: rotate(-64deg); }
.g-sixseven .head { animation: bob67 .44s ease-in-out infinite; }
.g-sixseven .num { animation: numPop .44s infinite; }
.g-sixseven .n7 { animation-delay: -.22s; }
.g-sixseven .mouth.neutral { display: none; }
.g-sixseven .mouth.grin { display: block; }
.g-sixseven .brow { transform: translateY(-6px); }
@keyframes sevenL { from { transform: rotate(-12deg); } to { transform: rotate(30deg); } }
@keyframes sevenR { from { transform: rotate(12deg); } to { transform: rotate(-30deg); } }
@keyframes bob67 { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes numPop {
  0% { opacity: 1; transform: translateY(0) scale(1.25); }
  45% { opacity: 0; transform: translateY(-34px) scale(.8); }
  100% { opacity: 0; }
}

/* ---------- MIRADA FIJA: brazos cruzados, ojos entrecerrados, ゴゴゴ ---------- */

.g-stare { --aura: 1 !important; }
.g-stare .rig { animation: none; transform: scale(1.05); transition: transform .2s; }
.g-stare .sh.l { transform: rotate(22deg); }
.g-stare .el.l { transform: rotate(-128deg); }
.g-stare .sh.r { transform: rotate(-22deg); }
.g-stare .el.r { transform: rotate(128deg); }
.g-stare .hand .h-open { display: none; }
.g-stare .hand .h-fist { display: block; }
.g-stare .head { transform: translateY(5px); }
.g-stare .eye { animation: none; transform: scaleY(.3); }
.g-stare .iris { transform: scale(.85); }
.g-stare .iris circle:first-child { fill: #ff3df0; }
.g-stare .eye { filter: drop-shadow(0 0 4px #ff3df0) drop-shadow(0 0 10px #ff3df0); }
.g-stare .brow.l { transform: translateY(7px) rotate(14deg); }
.g-stare .brow.r { transform: translateY(7px) rotate(-14deg); }
.g-stare .menace { opacity: 1; }
.stage:has(.g-stare) { background: radial-gradient(circle at 50% 45%, transparent 30%, #000a 80%); }

/* ---------- DAB: la cara contra el codo, el otro brazo en diagonal ---------- */

.g-dab .sh.l { transform: rotate(140deg); }
.g-dab .el.l { transform: rotate(0deg); }
.g-dab .sh.r { transform: rotate(-150deg); }
.g-dab .el.r { transform: rotate(-108deg); }
.g-dab .head { transform: rotate(-22deg) translate(-12px, 16px); }
.g-dab .eye { animation: none; transform: scaleY(.15); }
.g-dab .rig { animation: dabRig var(--g) ease-out; }
@keyframes dabRig { 30% { transform: translateY(8px) rotate(-4deg); } }

/* ---------- EL FLOSS: brazos de un lado al otro, cadera al revés ---------- */

.g-floss .sh.l { animation: flossL .26s ease-in-out infinite alternate; }
.g-floss .sh.r { animation: flossR .26s ease-in-out infinite alternate; }
.g-floss .el.l { transform: rotate(-55deg); }
.g-floss .el.r { transform: rotate(55deg); }
.g-floss .rig { animation: flossHip .26s ease-in-out infinite alternate; }
.g-floss .mouth.neutral { display: none; }
.g-floss .mouth.grin { display: block; }
@keyframes flossL { from { transform: rotate(75deg); } to { transform: rotate(-5deg); } }
@keyframes flossR { from { transform: rotate(5deg); } to { transform: rotate(-75deg); } }
@keyframes flossHip { from { transform: translateX(12px); } to { transform: translateX(-12px); } }

/* ---------- KAMEHAMEHA: manos juntas, la bola crece mientras cargás ---------- */

.kame { opacity: 0; transform-box: fill-box; transform-origin: center; }
.kame-glow { fill: #7fd3ff; filter: blur(6px); }
.kame-core { fill: #ffffff; }
.g-kame .sh.l { transform: rotate(16deg); }
.g-kame .el.l { transform: rotate(-112deg); }
.g-kame .sh.r { transform: rotate(-16deg); }
.g-kame .el.r { transform: rotate(112deg); }
.g-kame .kame { opacity: 1; animation: kamePulse .25s ease-in-out infinite alternate; }
.g-kame.charging .kame { animation: kameCharge var(--charge, 700ms) ease-in forwards; }
.g-kame .brow.l { transform: translateY(5px) rotate(12deg); }
.g-kame .brow.r { transform: translateY(5px) rotate(-12deg); }
.g-kame .mouth.neutral { display: none; }
.g-kame .mouth.shout { display: block; }
.g-kame.charging { --aura: 1 !important; }
@keyframes kamePulse { from { transform: scale(.55); } to { transform: scale(.75); } }
@keyframes kameCharge { from { transform: scale(.7); } to { transform: scale(2.4); } }

/* ---------- reacciones después de cada gesto ---------- */

/* Le ganaste el intercambio: se le cae la cara */
.r-hit .rig { animation: flinch .35s ease-out; }
.r-hit .burst { animation: burst .45s ease-out; }
.r-hit .sweat { animation: sweat .6s ease-in forwards; }
.r-hit .eye { animation: none; transform: scale(1.2); }
.r-hit .mouth.neutral { display: none; }
.r-hit .mouth.frown { display: block; }
.r-hit .brow.l { transform: translateY(-6px) rotate(-10deg); }
.r-hit .brow.r { transform: translateY(-6px) rotate(10deg); }
@keyframes flinch { 30% { transform: translateY(-8px) rotate(-3deg) scale(.96); } }
@keyframes sweat { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(26px); } }

/* Fallaste: se te ríe en la cara */
.r-fail .head { animation: laugh .5s ease-in-out; }
.r-fail .mouth.neutral { display: none; }
.r-fail .mouth.grin { display: block; }
.r-fail .eye { animation: none; transform: scaleY(.35); }
.r-fail .sh.l { transform: rotate(20deg); }
.r-fail .el.l { transform: rotate(-120deg); }
.r-fail .sh.r { transform: rotate(-20deg); }
.r-fail .el.r { transform: rotate(120deg); }
@keyframes laugh {
  20%, 60% { transform: rotate(-5deg) translateY(-5px); }
  40%, 80% { transform: rotate(5deg); }
}

/* ---------- resultado ---------- */

.res-title {
  font-family: var(--display); font-size: clamp(1.9rem, 10vw, 2.8rem); text-align: center;
  text-shadow: 0 0 24px var(--neon), 0 3px 0 #2a0a4a;
}
.char.result-char { width: min(50vw, 210px); margin: -8px 0 -18px; }
.res-body { text-align: center; display: grid; gap: 10px; width: 100%; }
.res-body .big { font-family: var(--display); font-size: 2.4rem; color: var(--gold); text-shadow: 0 0 16px #ffd16666; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.versus div {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 8px; display: grid; gap: 4px; min-width: 0;
}
.versus div.won { border-color: var(--gold); box-shadow: 0 0 16px #ffd16644; }
.versus small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.versus b { font-family: var(--display); font-weight: 400; font-size: 1.4rem; }
.versus .hud-fails { justify-content: center; grid-column: auto; grid-row: auto; }
.up { color: var(--good); font-weight: 800; }
.down { color: var(--bad); font-weight: 800; }
.unlock-msg {
  padding: 10px 14px; border-radius: 14px;
  background: linear-gradient(135deg, #ffd16633, #ff4fd833); border: 1px solid var(--gold);
  font-weight: 800;
}

/* ---------- ranking / movimientos ---------- */

.panel { justify-content: flex-start; padding-top: max(28px, env(safe-area-inset-top)); }
.tabs { display: flex; gap: 6px; width: 100%; }
.tab { flex: 1; padding: 10px 4px; font-size: .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; }
.tab.active, .shop-tab.active { background: linear-gradient(135deg, #8b3dff, #ff4fd8); border-color: transparent; }
.shop-tab { flex: 1; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; }
.shop-pane { width: 100%; display: grid; gap: 10px; justify-items: center; }
.shop-pane[hidden] { display: none; }

.rank-list, .move-list { width: 100%; list-style: none; display: grid; gap: 8px; overflow-y: auto; align-content: start; }
.rank-list { flex: 1; min-height: 0; }
.rank-list li {
  display: grid; grid-template-columns: 2em 32px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
}
.rank-list li.info { display: flex; justify-content: space-between; }
.rank-list li.muted { display: block; }
.rank-list .pos { font-family: var(--display); color: var(--muted); text-align: center; }
.rank-list .av { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #ffffff12; }
.rank-list .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rank-list li:nth-child(1) { border-color: var(--gold); box-shadow: 0 0 18px #ffd16633; }
.rank-list li:nth-child(1) .pos { color: var(--gold); }
.rank-list li:nth-child(2) .pos { color: #d9dde8; }
.rank-list li:nth-child(3) .pos { color: #e09a5a; }
.rank-list li.me { background: #8b3dff33; }

.move-list li {
  padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; align-items: center;
}
.move-list .mv-char { grid-row: 1 / 4; width: 64px; height: 78px; overflow: hidden; border-radius: 10px; background: #00000040; }
.move-list .mv-char .char { width: 64px; }
.move-list .mv-char .rig-svg { -webkit-mask-image: none; mask-image: none; }
.mv-head { display: flex; justify-content: space-between; align-items: baseline; }
.mv-head b { font-family: var(--display); font-weight: 400; }
.move-list p { font-size: .88rem; color: var(--muted); }
.move-list .mv-input { color: var(--text); font-weight: 600; }
.rules { font-size: .85rem; }

/* ---------- sonido, insignias ---------- */

.sound-btn {
  position: fixed; top: max(8px, env(safe-area-inset-top)); left: 10px; z-index: 10;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #07040fb3; font-size: 1.1rem;
}
body.playing .sound-btn { top: auto; bottom: 86px; }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--pink); color: #fff; font-size: .75rem; font-weight: 800;
}
.home .row .btn { padding: 13px 8px; font-size: .98rem; }

/* ---------- campeones y rankings ---------- */

.champions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.champ {
  border-radius: 16px; padding: 10px 10px 12px; text-align: center; min-width: 0;
  background: linear-gradient(160deg, #ffd16626, #150d24e6); border: 1px solid #ffd16688;
  display: grid; gap: 2px;
}
.champ.week { background: linear-gradient(160deg, #ff4fd826, #150d24e6); border-color: #ff4fd888; }
.champ small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; }
.champ .ic { font-size: 1.8rem; line-height: 1.2; }
.champ b { font-family: var(--display); font-weight: 400; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.champ span { color: var(--gold); font-weight: 800; font-size: .85rem; }
.rank-hint { font-size: .8rem; margin-top: -4px; }
.hall { width: 100%; color: var(--muted); font-size: .9rem; }
.hall summary { cursor: pointer; padding: 6px 0; }
.hall ol { list-style: none; display: grid; gap: 4px; }
.hall li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--panel); }

/* ---------- misiones y auras ---------- */

h2.sub { margin-top: 6px; }
.stars-line { color: var(--muted); }
.stars-line b { color: var(--gold); font-size: 1.2rem; }
.mission-list { width: 100%; list-style: none; display: grid; gap: 8px; }
.mission-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
}
.mission-list li.done { border-color: var(--gold); }
.mission-list .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #ffffff14; overflow: hidden; }
.mission-list .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon), var(--pink)); }
.mission-list .claimed { color: var(--good); font-weight: 800; }
.btn.mini { width: auto; padding: 8px 12px; font-size: .9rem; border-radius: 10px; }
.btn.gold { background: linear-gradient(135deg, #ffd166, #ff9f1c); color: #2a1600; border: 0; }

.skin-list { width: 100%; display: grid; gap: 6px; }
.skin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
h3.tier { font: 400 .95rem var(--display); color: var(--gold); margin-top: 6px; }
.skin {
  border-radius: 14px; padding: 10px 6px; text-align: center; display: grid; gap: 6px; justify-items: center;
  background: var(--panel); border: 1px solid var(--line); font-size: .85rem;
}
.skin.on { border-color: var(--gold); box-shadow: 0 0 14px #ffd16655; }
.skin .orb { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 18px var(--c1); background: radial-gradient(circle at 40% 35%, #fff8, var(--c1) 45%, var(--c2)); }
.skin .orb.rainbow { animation: rainbow 2s linear infinite; }
.skin .orb.galaxy {
  background:
    radial-gradient(1.5px 1.5px at 30% 30%, #fff, transparent), radial-gradient(1px 1px at 66% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 45% 72%, #fff, transparent), radial-gradient(1px 1px at 72% 68%, #fff, transparent),
    radial-gradient(circle at 50% 50%, #b9a4ff, #3b2399 45%, #050520 80%);
  box-shadow: 0 0 18px #9b7bff;
  animation: spin 12s linear infinite;
}
.skin .cost { color: var(--gold); font-weight: 800; }
.skin .orb.neon { background: radial-gradient(circle at 50% 50%, #0b0b1a 38%, var(--c1) 46%, var(--c2) 70%); box-shadow: 0 0 10px var(--c1), 0 0 22px var(--c2); animation: neonOrb 1s steps(2, jump-none) infinite alternate; }
@keyframes neonOrb { to { box-shadow: 0 0 16px var(--c1), 0 0 30px var(--c2); filter: brightness(1.4); } }
.skin .orb.sakura { background: radial-gradient(circle at 40% 35%, #fff, var(--c1) 40%, var(--c2)); }
.skin .orb.sakura::after { content: '🌸'; display: grid; place-items: center; height: 100%; font-size: 1.1rem; }
.skin .orb.electric { background: radial-gradient(circle at 40% 35%, #fff, var(--c1) 40%, var(--c2)); animation: zap 1.7s infinite; }
.skin .orb.electric::after { content: '⚡'; display: grid; place-items: center; height: 100%; font-size: 1.1rem; }
.skin.ad-item { border-style: dashed; }
.btn.mini.ad { padding: 7px 8px; font-size: .78rem; background: linear-gradient(135deg, #1fd1ff, #8b3dff); border: 0; color: #fff; white-space: nowrap; }
.btn.mini.ad small { opacity: .85; font-weight: 600; }
.sc-info .bar.ad i { background: linear-gradient(90deg, #1fd1ff, #8b3dff); }
.tier-hint { font-size: .8rem; margin-top: -2px; }
.ad-note { font-size: .78rem; text-align: center; }
.skin-grid.extras.t { grid-template-columns: repeat(2, 1fr); }
.skin.extra .fx-icon { font-size: 1.8rem; line-height: 42px; height: 42px; }
.title-chip {
  font-weight: 800; font-size: .82rem; padding: 6px 10px; border-radius: 999px; margin-top: 4px;
  background: linear-gradient(135deg, #8b3dff55, #ff4fd855); border: 1px solid #ff4fd888;
}

/* ---------- efecto de victoria (lluvia sobre la pantalla) ---------- */

.win-fx { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.win-fx i { position: absolute; font-style: normal; }
/* Cosas que caen girando en 3D (confeti, billetes, coronas, trofeos, medallas) */
.win-fx { perspective: 600px; }
.win-fx .fall {
  top: -70px; transform-style: preserve-3d;
  animation: fxFall3d 2.8s cubic-bezier(.3, .1, .6, 1) 1 both;
}
@keyframes fxFall3d {
  0% { transform: translate3d(0, 0, 0) rotateZ(0) rotateX(0) scale(var(--s)); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translate3d(var(--drift), 112vh, 0) rotateZ(var(--rot)) rotateX(var(--flip)) scale(var(--s)); opacity: 1; }
}
.win-fx .conf { width: 9px; height: 15px; border-radius: 2px; box-shadow: inset 0 -4px 0 #0002; }
.win-fx .conf.ribbon { width: 5px; height: 26px; border-radius: 3px; }
.win-fx .bill {
  width: 54px; height: 26px; border-radius: 4px; display: grid; place-items: center;
  background: linear-gradient(135deg, #b9f5a0, #3fae4f 45%, #1f7a35); border: 2px solid #155c27;
  box-shadow: inset 0 0 0 3px #d8ffcc55, 0 4px 10px #0006;
}
.win-fx .bill span {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: #d8ffcc; color: #155c27; font: 900 13px var(--display, sans-serif); line-height: 1;
}
.win-fx .svgfall { width: 46px; filter: drop-shadow(0 0 6px #ffd16699) drop-shadow(0 4px 6px #0007); }
.win-fx .svgfall svg { display: block; width: 100%; height: auto; }
.win-fx .svgfall.swing svg { animation: medalSwing .5s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes medalSwing { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
/* Destellos dorados (coronas) y haces de luz giratorios (trofeos) */
.win-fx .glints {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(3px 3px at 15% 25%, #fff6c8, transparent), radial-gradient(2px 2px at 70% 15%, #fff, transparent),
    radial-gradient(3px 3px at 40% 60%, #ffd166, transparent), radial-gradient(2px 2px at 85% 50%, #fff6c8, transparent),
    radial-gradient(3px 3px at 25% 80%, #fff, transparent), radial-gradient(2px 2px at 60% 85%, #ffd166, transparent);
  animation: twinkleField .5s ease-in-out infinite alternate, fxFade 4.2s both;
}
.win-fx .godrays {
  position: absolute; left: 50%; top: 42%; width: 170vmax; height: 170vmax; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, #ffd16633 0deg 9deg, transparent 9deg 22deg);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 75%);
  animation: spin 9s linear infinite, fxFade 4.2s both;
}
@keyframes fxFade { 0% { opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
/* Onda expansiva: anillos de energía desde el centro y un sacudón de luz */
.win-fx .ring {
  left: 50%; top: 45%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 6px solid #bff4ff; box-shadow: 0 0 18px #3fd0ff, inset 0 0 18px #3fd0ff, 0 0 60px #7a5cff;
  opacity: 0; animation: ringOut 1.4s cubic-bezier(.1, .7, .3, 1) both;
}
@keyframes ringOut { 0% { transform: scale(.2); opacity: 1; border-width: 10px; } 100% { transform: scale(22); opacity: 0; border-width: 1px; } }
.win-fx .shake-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #bff4ff88, transparent 60%); animation: fxFlash 1.4s 3; opacity: 0; }
/* Meteoritos: estelas en diagonal con cabeza brillante */
.win-fx .meteor {
  width: var(--len); height: 3px; border-radius: 3px; rotate: 35deg; transform-origin: 100% 50%;
  background: linear-gradient(90deg, transparent, #ffb35c88 50%, #fff); box-shadow: 0 0 10px #ff9a3c;
  opacity: 0; animation: meteor 1s linear both;
}
.win-fx .meteor::after { content: ''; position: absolute; right: -4px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #ffcf7a, 0 0 24px #ff7a00; }
@keyframes meteor { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(85vw, 60vh); opacity: 0; } }
/* "−AURA" que se escapa (Sin aura) */
.win-fx .minus-aura {
  bottom: 10%; font: 400 1.25rem var(--display, sans-serif); color: #d9b3ff; text-shadow: 0 0 10px #7a2bd8, 0 2px 0 #1a0526;
  opacity: 0; animation: minusUp 2.4s ease-out both;
}
@keyframes minusUp { 0% { transform: translateY(0) scale(.8); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-55vh) scale(1.1); opacity: 0; } }
/* Efectos WebGL (canvas a pantalla completa) y sus versiones simples */
.win-fx canvas.fx-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.win-fx .css-firewall {
  position: absolute; left: -10%; right: -10%; bottom: -5%; height: 55%;
  background: radial-gradient(60% 90% at 20% 100%, #ffd166, #ff7a00 35%, transparent 70%),
              radial-gradient(50% 80% at 60% 100%, #ffea8a, #ff4d00 40%, transparent 70%),
              radial-gradient(55% 95% at 90% 100%, #ffd166, #e02000 40%, transparent 72%);
  filter: blur(6px); mix-blend-mode: screen; transform-origin: bottom;
  animation: flicker .25s infinite alternate, fxFade 4.2s both;
}
.win-fx .css-smoke { position: absolute; inset: 0; background: linear-gradient(to top, #08000fe6, #2a0b40aa 45%, transparent 85%); animation: fxFade 4.2s both; }
.win-fx .css-beam {
  position: absolute; left: 6%; top: 40%; height: 70px; width: 0; border-radius: 40px;
  background: linear-gradient(to bottom, transparent, #3fa0ff 25%, #e8f6ff 50%, #3fa0ff 75%, transparent);
  box-shadow: 0 0 40px #3fa0ff, 0 0 90px #2a6bff; animation: beamOut 3.6s ease-out both;
}
@keyframes beamOut { 0% { width: 0; opacity: 0; } 25% { width: 70px; opacity: 1; } 35% { width: 120vw; } 85% { width: 120vw; opacity: 1; } 100% { width: 120vw; opacity: 0; } }
.win-fx .css-hole {
  position: absolute; left: 50%; top: 42%; width: 70vmin; height: 70vmin; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, #000 22%, #ff8a2a 26%, #7a2bd8 40%, transparent 68%);
  animation: spin 1.6s linear infinite, holeGrow 4.2s ease-in-out both;
}
@keyframes holeGrow { 0% { scale: 0; } 25% { scale: 1; } 80% { scale: 1; } 100% { scale: 0; } }
.win-fx[data-fx="rayos"]::before { content: ''; position: absolute; inset: 0; background: #d8e6ff; animation: fxFlash 1.65s 2; opacity: 0; }
/* Rayos: SVG a pantalla completa; cada uno parpadea como un relámpago y se apaga */
.win-fx svg.bolt {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: boltFlash .75s linear both;
  filter: drop-shadow(0 0 4px #bfe6ff) drop-shadow(0 0 12px #4d9bff) drop-shadow(0 0 24px #7a5cff);
}
.win-fx svg.bolt path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.win-fx svg.bolt .glow { stroke: #9fd8ff; stroke-width: 8px; opacity: .35; }
.win-fx svg.bolt .core { stroke: #ffffff; stroke-width: 3px; }
.win-fx svg.bolt .glow.branch { stroke-width: 5px; }
.win-fx svg.bolt .core.branch { stroke-width: 1.6px; opacity: .85; }
@keyframes boltFlash {
  0% { opacity: 0; } 6% { opacity: 1; } 14% { opacity: .15; } 22% { opacity: 1; }
  40% { opacity: .8; } 100% { opacity: 0; }
}
@keyframes fxFall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(var(--drift), 110vh) rotate(var(--rot)); opacity: .9; }
}
@keyframes fxRise {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--drift), -80vh) scale(1.3); opacity: 0; }
}
@keyframes fxFlash { 0%, 100% { opacity: 0; } 4% { opacity: .5; } 8% { opacity: 0; } 12% { opacity: .35; } 16% { opacity: 0; } }

/* Anuncio simulado (solo en desarrollo local) */
.fake-ad {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: #000e; color: #fff; text-align: center;
}
.fake-ad span { font: 400 3rem var(--display); color: var(--gold); }

/* ---------- duelo con amigo ---------- */

.friend-box { width: 100%; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.room-info { display: grid; gap: 8px; justify-items: center; text-align: center; }
.room-info[hidden] { display: none; }
.room-code { font-family: var(--display); font-weight: 400; font-size: 2.6rem; letter-spacing: 8px; color: var(--gold); text-shadow: 0 0 16px #ffd16666; }
.code-input { text-transform: uppercase; letter-spacing: 6px; text-align: center; font-family: var(--display); }
.spinner.tiny { display: inline-block; width: 14px; height: 14px; border-width: 2px; vertical-align: -2px; }

/* ---------- tienda ---------- */

.wallet { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.wallet span { flex: 1 1 30%; min-width: 92px; text-align: center; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: .9rem; }
.wallet b { color: var(--gold); font-size: 1.1rem; }
.shop-chars { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-char {
  display: grid; grid-template-rows: auto auto; border-radius: 16px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.shop-char.on { border-color: var(--gold); box-shadow: 0 0 14px #ffd16644; }
.shop-char .char { width: 100%; height: 150px; aspect-ratio: auto; overflow: hidden; }
.shop-char .char .rig-svg { height: 175%; top: -4%; }
.shop-char .char.locked .rig-svg { filter: brightness(0) drop-shadow(0 0 2px #b46bff); }
.sc-info { position: relative; z-index: 1; display: grid; gap: 4px; padding: 8px 10px 10px; font-size: .85rem; background: var(--panel-solid); }
.sc-info .btn.mini { width: 100%; }
.sc-info b { font-size: .92rem; }
.sc-info .bar { height: 6px; border-radius: 3px; background: #ffffff14; overflow: hidden; }
.sc-info .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon), var(--pink)); }
.dots .more { font-size: .72rem; color: var(--muted); margin-left: 4px; }

/* ---------- banner de publicidad (320×50 fijo, solo en menús) ---------- */

.ad-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; justify-content: center; align-items: center;
  background: #07040fe6; border-top: 1px solid var(--line);
}
.ad-bar ins.adsbygoogle { width: 320px !important; height: 50px !important; max-width: 320px; max-height: 50px; overflow: hidden; }
body.has-ad .screen:not(.game) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

/* ---------- presentación VS antes del duelo ---------- */

.versus-intro { align-items: flex-end; }
.vs-side { display: grid; justify-items: center; gap: 6px; }
.vs-side b { font-family: var(--display); font-weight: 400; font-size: .95rem; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-side small { color: var(--muted); font-size: .78rem; }
.vs-side small.vs-title { color: var(--pink); font-weight: 800; max-width: 130px; text-align: center; }
.vs-side small.vs-title:empty { display: none; }
.rank-title { display: block; font-size: .72rem; color: var(--pink); font-weight: 700; }
.vs-card .char { width: 130%; margin-top: 30%; }
#queue.found .vs-bolt { animation: vsPop .5s ease-out; color: var(--pink); text-shadow: 0 0 18px var(--pink); }
#queue.found .vs-side.opp { animation: vsIn .45s ease-out; }
@keyframes vsPop { 0% { transform: scale(3); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes vsIn { from { transform: translateX(60px); opacity: 0; } }
.opp-tag {
  position: absolute; top: 4px; right: 10px; z-index: 2; pointer-events: none;
  font-weight: 800; font-size: .8rem; color: #fff; text-shadow: 0 1px 4px #000;
  background: #00000066; padding: 3px 8px; border-radius: 999px;
}
.opp-tag[hidden] { display: none; }
.shop-char .char.preview-ad .rig-svg { filter: saturate(.75) brightness(.85); }
.btn.mini.ad.app { background: linear-gradient(135deg, #34a853, #0f9d58); white-space: normal; min-width: 0; padding: 7px 6px; }
.skin-grid > * { min-width: 0; }

/* ---------- v9: exclusivos del ranking, logros y orígenes ---------- */

/* Auras exclusivas */
.char[data-skin="supremo"] { --aura-c: #ffd166; --aura-c2: #1a0f00; }
.char[data-skin="supremo"] .glow { background: radial-gradient(closest-side, #fff2b8, #ffb800 40%, #2a1800 75%, transparent); }
.char[data-skin="supremo"] .flame { mix-blend-mode: normal; }
.char[data-skin="supremo"] .aura-fx { animation: supremeFlash 2.2s infinite; }
@keyframes supremeFlash { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 18px #ffd166) brightness(1.25); } }
.char[data-skin="platino"] { --aura-c: #f2f6ff; --aura-c2: #8aa0c8; }
.char[data-skin="platino"] .aura-fx { animation: shimmer 2.6s linear infinite; }
@keyframes shimmer { 0%, 100% { filter: brightness(1) saturate(.6); } 50% { filter: brightness(1.6) saturate(1.2) hue-rotate(20deg); } }
.char[data-skin="corona"] { --aura-c: #fff3b0; --aura-c2: #ffb800; }
.char[data-skin="corona"] .particles i { width: auto; height: auto; background: none; box-shadow: none; font-size: 12px; filter: drop-shadow(0 0 4px #ffd166); }
.char[data-skin="corona"] .particles i::before { content: '👑'; }
.char[data-skin="invicta"] { --aura-c: #ffffff; --aura-c2: #00c2ff; }
.char[data-skin="invicta"] .glow { animation: pulse .7s infinite alternate; }
.char[data-skin="invicta"] .particles i { background: #fff; box-shadow: 0 0 10px #00c2ff, 0 0 18px #00c2ff; }

.skin .orb.supreme { background: radial-gradient(circle at 40% 35%, #fff6c8, #ffd166 35%, #2a1800 80%); box-shadow: 0 0 18px #ffb800; animation: supremeFlash 2.2s infinite; }
.skin .orb.platinum { background: linear-gradient(135deg, #ffffff, #c9d6ee 40%, #8aa0c8 60%, #f2f6ff); box-shadow: 0 0 16px #c9d6ee; animation: shimmer 2.6s linear infinite; }
.skin .orb.crown { background: radial-gradient(circle at 40% 35%, #fff, #fff3b0 40%, #ffb800); box-shadow: 0 0 18px #ffb800; }
.skin .orb.crown::after { content: '👑'; display: grid; place-items: center; height: 100%; font-size: 1.1rem; }
.skin .orb.invicta { background: radial-gradient(circle at 50% 50%, #fff 30%, #00c2ff 75%); box-shadow: 0 0 18px #00c2ff; animation: pulse .7s infinite alternate; }

/* Origen: ranking (dorado), logro (celeste), anuncios (rosa) */
.skin.rank { border-color: #ffd16677; background: linear-gradient(160deg, #ffd16618, var(--panel) 60%); }
.skin.ach { border-color: #4fc3ff55; }
.skin.locked-item:not(.ads) .orb, .skin.locked-item:not(.ads) .fx-icon { filter: grayscale(.7) brightness(.7); }
.skin .req { display: grid; gap: 3px; width: 100%; font-size: .72rem; line-height: 1.2; }
.skin .req.rank small:first-child { color: var(--gold); }
.skin .req .bar { height: 5px; border-radius: 3px; background: #ffffff14; overflow: hidden; }
.skin .req .bar i { display: block; height: 100%; background: linear-gradient(90deg, #4fc3ff, #00e1a0); }
h4.tier { font: 800 .82rem var(--body, inherit); color: var(--muted); margin-top: 4px; }
.title-chip.rank { background: linear-gradient(135deg, #ffd16655, #ff9f1c55); border-color: #ffd166; color: #ffe9a8; }
.title-chip.ach { background: linear-gradient(135deg, #4fc3ff44, #00e1a044); border-color: #4fc3ff; }
.vs-side small.vs-title.rank, .rank-title.rank { color: var(--gold); text-shadow: 0 0 8px #ffd16688; }
.vs-side small.vs-title.ach, .rank-title.ach { color: #6fd3ff; }
.champions { grid-template-columns: repeat(3, 1fr); }
.champ b { font-size: .85rem; }
.champ.month { background: linear-gradient(160deg, #4fc3ff26, #150d24e6); border-color: #4fc3ff88; }

/* ---------- probador y modo test ---------- */
.tryon-btn { width: 100%; background: linear-gradient(135deg, #1fd1ff33, #8b3dff33); border-color: #8b3dff88; }
.tryon-stage { width: 100%; display: grid; justify-items: center; }
.tryon-stage .char { width: min(62vw, 250px); }
.tryon-name { display: grid; justify-items: center; gap: 2px; margin-top: -6px; }
.tryon-name b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.tryon-name small.vs-title { color: var(--pink); font-weight: 800; }
.tryon-name small.vs-title.rank { color: var(--gold); text-shadow: 0 0 8px #ffd16688; }
.tryon-name small.vs-title.ach { color: #6fd3ff; }
.tryon-name small.vs-title:empty { display: none; }
.try-pickers { width: 100%; display: grid; gap: 4px; }
.try-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.try-strip::-webkit-scrollbar { display: none; }
.try-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; white-space: nowrap;
}
.try-chip.on { border-color: var(--gold); box-shadow: 0 0 10px #ffd16655; }
.try-chip.lock { opacity: .62; }
.try-chip.lock::after { content: '🔒'; font-size: .7rem; }
.try-chip.rank { color: #ffe9a8; }
.try-chip.ach { color: #9fe2ff; }
.try-chip i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff8, var(--c1) 45%, var(--c2)); }
.try-chip small { opacity: .55; font-weight: 400; }
#tryApply { font-size: .9rem; }
.test-box { width: 100%; display: grid; gap: 8px; padding: 12px; border-radius: 16px; border: 1px dashed #00e1a088; background: #00e1a00d; }
.test-box[hidden] { display: none; }
.test-list { list-style: none; display: grid; gap: 3px; font-size: .78rem; max-height: 50vh; overflow: auto; }
.test-list li.head { font-weight: 800; font-size: .9rem; }
.test-list li.bad { color: #ff7a8a; }
.test-list li.ok { color: #9be8c5; }

/* Fuegos artificiales: explosiones de chispas */
.win-fx .fw { position: absolute; width: 0; height: 0; }
.win-fx .fw b {
  position: absolute; left: -5px; top: -2px; width: 18px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--c) 40%, #fff);
  box-shadow: 0 0 8px var(--c), 0 0 16px var(--c);
  opacity: 0; animation: fwSpark 1.4s cubic-bezier(.12, .75, .35, 1) both;
}
.win-fx .fw u {
  position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--c) 30%, transparent 70%);
  opacity: 0; animation: fwFlash .5s ease-out both;
}
@keyframes fwSpark {
  0% { transform: rotate(var(--a)) translateX(0) scale(1.3); opacity: 1; }
  65% { transform: rotate(var(--a)) translateX(calc(var(--r) * .9)) scale(1); opacity: 1; }
  100% { transform: rotate(var(--a)) translateX(var(--r)) translateY(18px) scale(.5); opacity: 0; }
}
@keyframes fwFlash { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- auras WebGL (auragl.js) ---------- */
.aura-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: blur(.6px) saturate(1.25); mix-blend-mode: screen; }
.char:not(.gl) .aura-gl { display: none; }
.char.gl .glow, .char.gl .flame { display: none; }
.gfx-btn { left: 54px; }
body.playing .gfx-btn { display: none; }

.legal-link { display: block; text-align: center; font-size: .78rem; color: var(--muted); opacity: .8; text-decoration: underline; }

/* ---------- mis otras apps ---------- */
button.legal-link { width: 100%; }
.oa-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 6px; }
.oa-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; padding: 8px 4px;
  background: none; border: 0; border-radius: 14px; color: inherit; font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .15s;
}
.oa-tile:active { transform: scale(.95); }
.oa-ico {
  width: 62px; height: 62px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 4px 14px #0006;
}
.oa-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oa-nm {
  font-size: .78rem; font-weight: 600; line-height: 1.25; text-align: center; max-width: 100%; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word;
}

/* ---------- idioma y modo demo ---------- */
.lang-btn { left: 98px; font-size: .74rem; font-weight: 800; letter-spacing: .3px; }
body.playing .lang-btn { display: none; }
.btn.demo { border-style: dashed; border-color: #8b3dff88; background: #8b3dff1a; }

/* Flechas del selector de personajes: más visibles y con un empujoncito que invita a deslizar */
.arrow {
  width: 48px; height: 72px; border-radius: 16px; cursor: pointer;
  border: 1.5px solid #ff4fd8aa;
  background: linear-gradient(160deg, #8b3dff55, #ff4fd833 60%, var(--panel));
  color: #fff; font-weight: 900; font-size: 2.3rem; text-shadow: 0 0 10px #ff4fd8, 0 0 22px #8b3dff;
  box-shadow: 0 0 14px #ff4fd855, inset 0 0 12px #ffffff14;
  animation: arrow-glow 2.2s ease-in-out infinite;
}
#prevChar > span, #nextChar > span { display: inline-block; }
#prevChar { animation: arrow-nudge-l 1.6s ease-in-out infinite, arrow-glow 2.2s ease-in-out infinite; }
#nextChar { animation: arrow-nudge-r 1.6s ease-in-out infinite, arrow-glow 2.2s ease-in-out infinite; }
.arrow:active { transform: scale(.9); animation: none; box-shadow: 0 0 22px #ff4fd8, inset 0 0 14px #ffffff30; }
@keyframes arrow-nudge-l { 0%, 55%, 100% { translate: 0 0; } 25% { translate: -6px 0; } 40% { translate: -2px 0; } }
@keyframes arrow-nudge-r { 0%, 55%, 100% { translate: 0 0; } 25% { translate: 6px 0; } 40% { translate: 2px 0; } }
@keyframes arrow-glow { 0%, 100% { box-shadow: 0 0 10px #ff4fd844, inset 0 0 10px #ffffff10; } 50% { box-shadow: 0 0 22px #ff4fd8aa, inset 0 0 14px #ffffff22; } }
@media (prefers-reduced-motion: reduce) { .arrow, #prevChar, #nextChar { animation: none; } }

/* ---------- v11: auras nuevas por anuncios ---------- */
.char[data-skin="oceano"] { --aura-c: #00e5ff; --aura-c2: #0050ff; }
.char[data-skin="oceano"] .flame { filter: blur(5px); opacity: .85; }
.char[data-skin="oceano"] .particles i { width: 7px; height: 7px; border-radius: 50%; background: #c8f6ff55; border: 1px solid #c8f6ff; box-shadow: none; animation-name: bubbleUp; }
@keyframes bubbleUp {
  0% { transform: translate(0, 0) scale(.5); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(14px, -250px) scale(1.2); opacity: 0; }
}
.char[data-skin="atardecer"] { --aura-c: #ff9a3c; --aura-c2: #b02bff; }
.char[data-skin="atardecer"] .glow { background: radial-gradient(closest-side, #ffd27a, #ff6a3d 40%, #b02bff 72%, transparent); }
.char[data-skin="atardecer"] .flame { mix-blend-mode: normal; opacity: .8; }

/* ---------- LA CEJA: una ceja arriba, mirada de roca ---------- */
.g-ceja .brow.l { transform: translateY(-14px) rotate(-14deg); }
.g-ceja .brow.r { transform: translateY(3px) rotate(8deg); }
.g-ceja .eye.r { transform: scaleY(.7); }
.g-ceja .head { transform: rotate(-3deg) translateY(2px); }
.g-ceja .mouth.neutral { display: none; }
.g-ceja .mouth.smirk { display: block; }
.g-ceja .sh.l { transform: rotate(12deg); }
.g-ceja .el.l { transform: rotate(-24deg); }
.g-ceja .sh.r { transform: rotate(-12deg); }
.g-ceja .el.r { transform: rotate(24deg); }
.g-ceja .sparkle { opacity: 1; transform: translate(-20px, -92px); animation: twinkle .3s infinite alternate; }
.g-ceja .rig { animation: cejaNod var(--g) ease-out; }
@keyframes cejaNod { 25% { transform: translateY(4px) scale(1.02); } }

/* ---------- EL GRIDDY: brazos abiertos, rebote y pies que patinan ---------- */
.g-griddy .sh.l { animation: griddyL .2s ease-in-out infinite alternate; }
.g-griddy .sh.r { animation: griddyR .2s ease-in-out infinite alternate; }
.g-griddy .el.l { transform: rotate(-30deg); }
.g-griddy .el.r { transform: rotate(30deg); }
.g-griddy .rig { animation: griddyHop .4s ease-in-out infinite; }
.g-griddy .head { animation: griddyBob .4s ease-in-out infinite; }
.g-griddy .mouth.neutral { display: none; }
.g-griddy .mouth.grin { display: block; }
.g-griddy .brow { transform: translateY(-5px); }
@keyframes griddyL { from { transform: rotate(70deg); } to { transform: rotate(98deg); } }
@keyframes griddyR { from { transform: rotate(-70deg); } to { transform: rotate(-98deg); } }
@keyframes griddyHop { 0%, 100% { transform: translate(-8px, 0) rotate(-2deg); } 50% { transform: translate(8px, -10px) rotate(2deg); } }
@keyframes griddyBob { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(-3px); } }

/* ---------- EL FLEX: bíceps arriba, todo late a cada toque ---------- */
.g-flex .sh.l { transform: rotate(78deg); }
.g-flex .sh.r { transform: rotate(-78deg); }
.g-flex .el.l { transform: rotate(104deg); animation: flexPump .18s ease-in-out infinite alternate; }
.g-flex .el.r { transform: rotate(-104deg); animation: flexPumpR .18s ease-in-out infinite alternate; }
.g-flex .hand .h-open { display: none; }
.g-flex .hand .h-fist { display: block; }
.g-flex .torso { animation: flexChest .18s ease-in-out infinite alternate; transform-origin: 150px 300px; }
.g-flex .head { transform: translateY(-4px); }
.g-flex .brow.l { transform: translateY(4px) rotate(12deg); }
.g-flex .brow.r { transform: translateY(4px) rotate(-12deg); }
.g-flex .mouth.neutral { display: none; }
.g-flex .mouth.shout { display: block; }
.g-flex .sweat { animation: sweat .5s ease-in infinite; }
@keyframes flexPump { from { transform: rotate(96deg); } to { transform: rotate(116deg); } }
@keyframes flexPumpR { from { transform: rotate(-96deg); } to { transform: rotate(-116deg); } }
@keyframes flexChest { from { transform: scale(1); } to { transform: scale(1.05, 1.03); } }
