/* ============================================================
   AURA · Sistema visual (marca propia — estética neón / Gen Alpha)
   ============================================================ */
:root {
  /* Paleta base */
  --bg-0: #05070f;
  --bg-1: #0a0e1c;
  --bg-2: #101a33;
  --surface: rgba(16, 24, 48, 0.55);
  --surface-solid: #0f1830;
  --line: rgba(90, 200, 255, 0.16);
  --line-strong: rgba(120, 165, 255, 0.34);

  --text: #f2f0ff;
  --text-dim: #b3adcf;
  --text-faint: #726d94;

  /* Aura / acentos */
  --aura-violet: #8b5cff;
  --aura-magenta: #ff4dfa;
  --aura-cyan: #22e0ff;
  --aura-lime: #b6ff3d;
  --aura-gold: #ffd24d;
  --danger: #ff4d6d;

  --grad-aura: linear-gradient(135deg, #22e0ff 0%, #8b5cff 45%, #ff4dfa 100%);
  --grad-hot: linear-gradient(135deg, #ff4dfa 0%, #8b5cff 100%);
  --grad-win: linear-gradient(135deg, #b6ff3d 0%, #22e0ff 100%);

  --glow-violet: 0 0 32px rgba(139, 92, 255, 0.55);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 30px;

  --maxw: 480px;
  --nav-h: 74px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Fondo animado de auras ---------- */
.bg-aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 50% -10%, #0b1b3f 0%, var(--bg-0) 62%); }
/* Rejilla vectorial ciberpunk */
.bg-aura::after { content: ''; position: absolute; inset: -2px; background-image: linear-gradient(rgba(90,180,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(90,180,255,.05) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(100% 80% at 50% 20%, #000 30%, transparent 85%); }
.bg-aura .orb { position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.5; mix-blend-mode: screen; }
.orb-1 { width: 60vw; height: 60vw; background: #6a3dff; top: -12vh; left: -15vw; animation: drift1 18s ease-in-out infinite; }
.orb-2 { width: 52vw; height: 52vw; background: #ff3dc9; bottom: -12vh; right: -18vw; animation: drift2 22s ease-in-out infinite; }
.orb-3 { width: 48vw; height: 48vw; background: #22e0ff; top: 42vh; left: 26vw; animation: drift3 26s ease-in-out infinite; }
.orb-3::after { }
.grain { position: absolute; inset: 0; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(6vw,4vh) scale(1.1)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-5vw,-3vh) scale(1.15)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-4vw,5vh) scale(0.9)} }

/* ---------- Layout ---------- */
#app { min-height: 100%; }
.screen {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--safe-top) + 18px) 18px calc(var(--nav-h) + var(--safe-bottom) + 22px);
  min-height: 100vh;
  animation: fadeUp .4s ease both;
}
.screen.no-nav { padding-bottom: calc(var(--safe-bottom) + 22px); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.spread { justify-content: space-between; }
.center { justify-content: center; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.grow { flex: 1; }
.wrap { flex-wrap: wrap; }

/* ---------- Tipografía ---------- */
.h1 { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.lead { color: var(--text-dim); font-size: 15px; line-height: 1.5; }
.small { font-size: 13px; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-variant-numeric: tabular-nums; }
.grad-text { background: var(--grad-aura); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 22px; border-radius: 999px; font-family: var(--font-display);
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s;
  user-select: none; width: 100%;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad-aura); color: #0a0720; box-shadow: 0 8px 30px rgba(139,92,255,.45); }
.btn-hot { background: var(--grad-hot); color: #fff; box-shadow: 0 8px 30px rgba(255,77,250,.4); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); backdrop-filter: blur(12px); }
.btn-sm { padding: 10px 16px; font-size: 14px; width: auto; }
.btn:disabled { opacity: .45; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--text-dim);
  backdrop-filter: blur(8px);
}
.chip.on { background: var(--grad-aura); color: #0a0720; border-color: transparent; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; backdrop-filter: blur(16px);
}
.card-glow { box-shadow: var(--glow-violet); border-color: var(--line-strong); }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-dim); letter-spacing: .01em; }
.input, select.input {
  width: 100%; padding: 15px 16px; border-radius: var(--radius-sm);
  background: rgba(10,8,26,.6); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.input::placeholder { color: var(--text-faint); }
.input:focus { border-color: var(--aura-violet); box-shadow: 0 0 0 3px rgba(139,92,255,.2); }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b3adcf' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }

/* ---------- Avatar ---------- */
.avatar { border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--grad-aura); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #0a0720; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.ring { box-shadow: 0 0 0 2px var(--bg-0), 0 0 0 4px transparent; }

/* ---------- Aura ring (medidor) ---------- */
.aura-ring { position: relative; display: grid; place-items: center; }
.aura-ring svg { transform: rotate(-90deg); }
.aura-ring .val { position: absolute; text-align: center; }
.aura-ring .val .n { font-family: var(--font-display); font-weight: 900; letter-spacing: -0.03em; line-height: 1; }

/* ---------- Nav inferior ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  display: flex; justify-content: center;
  background: linear-gradient(to top, var(--bg-0) 40%, transparent);
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto; display: flex; align-items: center; gap: 4px;
  background: rgba(20,17,44,.72); border: 1px solid var(--line-strong); backdrop-filter: blur(20px);
  border-radius: 999px; padding: 7px; margin: 10px 16px; width: 100%; max-width: calc(var(--maxw) - 20px);
  justify-content: space-between; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 999px; color: var(--text-faint); font-size: 10px; font-weight: 600; transition: color .2s; }
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.on { color: var(--text); }
.nav-btn.scan-cta { flex: 0 0 auto; margin-top: -22px; }
.nav-btn.scan-cta .orb-btn {
  width: 58px; height: 58px; border-radius: 50%; background: var(--grad-aura);
  display: grid; place-items: center; color: #0a0720; box-shadow: 0 8px 26px rgba(139,92,255,.6);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ box-shadow: 0 8px 26px rgba(139,92,255,.55);} 50%{ box-shadow: 0 8px 40px rgba(255,77,250,.75);} }

/* ---------- Utilidades ---------- */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.pill-lvl { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px; font-family:var(--font-display); font-weight:700; font-size:12.5px; }
.badge-pts { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.pos { color: var(--aura-lime); } .neg { color: var(--danger); }
.text-c { text-align: center; }
.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-20{margin-top:20px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}.mb-20{margin-bottom:20px}.mb-24{margin-bottom:24px}

/* ---------- Cámara / scan ---------- */
.cam-wrap { position: relative; width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; background: #000; border: 1px solid var(--line-strong); }
.cam-wrap video, .cam-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-wrap video { transform: scaleX(-1); }
.cam-wrap canvas { transform: scaleX(-1); pointer-events: none; }
.scanline { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--aura-cyan), transparent); box-shadow: 0 0 20px var(--aura-cyan); animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0%{ top: 6%; } 50%{ top: 92%; } 100%{ top: 6%; } }
.cam-hud { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; pointer-events: none; }
.toast-live { align-self: center; padding: 8px 16px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 15px; background: rgba(7,6,15,.7); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); animation: popToast .4s ease both; }
@keyframes popToast { from { transform: scale(.7) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--grad-aura); transition: width .5s cubic-bezier(.2,.8,.2,1); }

/* ---------- VS / duelo ---------- */
.vs-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.vs-badge { font-family: var(--font-display); font-weight: 900; font-size: 26px; background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fighter { text-align: center; }
.round-dots { display: flex; gap: 8px; justify-content: center; }
.round-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); }
.round-dots i.me { background: var(--aura-cyan); } .round-dots i.opp { background: var(--danger); }

/* ---------- Feed ---------- */
.feed-item { display: flex; gap: 12px; }
.count { font-variant-numeric: tabular-nums; }

/* ---------- Confeti / shake ---------- */
@keyframes shake { 10%,90%{transform:translateX(-1px)} 20%,80%{transform:translateX(2px)} 30%,50%,70%{transform:translateX(-4px)} 40%,60%{transform:translateX(4px)} }
.shake { animation: shake .5s; }
.result-hero { animation: heroPop .6s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes heroPop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Panel (alias de card, estética vectorial) ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(16px); }
.panel.edge { border-color: var(--line-strong); box-shadow: inset 0 0 0 1px rgba(34,224,255,.05), 0 0 30px rgba(34,224,255,.08); }

/* Cubierta sobre la cámara (countdown / loading) */
.cam-cover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,7,15,.55); backdrop-filter: blur(2px); }

/* ---------- CastFX · animación agresiva de aura ---------- */
.cast-fx { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; }
.cast-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(182,255,61,.35), rgba(139,92,255,.25) 40%, transparent 70%); animation: castFlash .7s ease-out both; }
.cast-core { text-align: center; animation: castCore .6s cubic-bezier(.2,.9,.3,1.4) both; }
.cast-emoji { font-size: 110px; line-height: 1; filter: drop-shadow(0 0 30px rgba(34,224,255,.8)); animation: castShake .5s ease; }
.cast-name { font-family: var(--font-display); font-weight: 900; font-size: 44px; letter-spacing: -.02em; text-transform: uppercase; color: #fff; margin-top: 6px; position: relative; text-shadow: 0 0 18px rgba(139,92,255,.9); }
.cast-name::before, .cast-name::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; }
.cast-name::before { color: #22e0ff; transform: translate(-3px,0); mix-blend-mode: screen; animation: glitchX .5s steps(2) 2; }
.cast-name::after { color: #ff4dfa; transform: translate(3px,0); mix-blend-mode: screen; animation: glitchX .5s steps(2) 2 reverse; }
.cast-pts { font-family: var(--font-display); font-weight: 900; font-size: 34px; margin-top: 8px; text-shadow: 0 0 16px currentColor; }
@keyframes castFlash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes castCore { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes castShake { 0%,100%{ transform: translateX(0);} 25%{ transform: translateX(-8px) rotate(-4deg);} 75%{ transform: translateX(8px) rotate(4deg);} }
@keyframes glitchX { 0%{ transform: translate(-3px,0);} 50%{ transform: translate(3px,-2px);} 100%{ transform: translate(-3px,0);} }

/* ---------- Foto de perfil que evoluciona con el aura ---------- */
.aura-photo { position: relative; border-radius: 50%; overflow: hidden; flex-shrink: 0; isolation: isolate; }
.aura-photo .ap-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aura-photo .ap-gel { position: absolute; inset: 0; mix-blend-mode: screen; }
.aura-photo.glitch::after { content: ''; position: absolute; left: 0; right: 0; height: 22%; top: 20%; background: rgba(34,224,255,.25); mix-blend-mode: screen; animation: apGlitch 2.6s steps(1) infinite; }
@keyframes apGlitch { 0%,100%{ transform: translateY(0); opacity: 0; } 8%{ opacity: .8; } 10%{ transform: translateY(180%); } 12%{ opacity: 0; } 50%{ opacity: .6; transform: translateY(320%);} 52%{ opacity: 0; } }

/* ---------- Duelo · videollamada simulada ---------- */
.vc-tile { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: #070b16; margin-bottom: 10px; transition: box-shadow .2s; }
.vc-tile.opp { height: 27vh; }
.vc-tile.me { height: 31vh; }
.vc-tile.me video, .vc-tile.me canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-tile.me video { transform: scaleX(-1); }
.vc-tile.me canvas { transform: scaleX(-1); pointer-events: none; }
.vc-tile.active.me { box-shadow: inset 0 0 0 2px var(--aura-cyan), 0 0 34px rgba(34,224,255,.45); }
.vc-tile.active.opp { box-shadow: inset 0 0 0 2px var(--danger), 0 0 34px rgba(255,77,109,.45); }
.vc-grid { position: absolute; inset: 0; background:
  radial-gradient(70% 60% at 50% 40%, rgba(255,77,109,.18), transparent 70%),
  linear-gradient(rgba(120,160,255,.06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(120,160,255,.06) 1px, transparent 1px), #0a1020;
  background-size: auto, 30px 30px, 30px 30px, auto; }
.vc-grid::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: rgba(255,77,250,.35); box-shadow: 0 0 12px rgba(255,77,250,.6); animation: scan 3s linear infinite; }
.vc-av { position: absolute; inset: 0; display: grid; place-items: center; filter: drop-shadow(0 0 24px rgba(255,77,109,.5)); }
.vc-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; z-index: 2; }
.vc-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; z-index: 2; }
.vc-bar > i { display: block; height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.vc-prompt { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(5,7,15,.2); z-index: 2; }
.vc-card { flex: 0 0 auto; width: 92px; padding: 10px 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: center; transition: transform .12s; }
.vc-card:active { transform: scale(.95); }

/* Duelo a PANTALLA COMPLETA · atacante grande 9:16 + rival en PiP */
.battle-fs { position: fixed; inset: 0; z-index: 55; background: #05070f; max-width: 560px; margin: 0 auto; overflow: hidden; perspective: 1200px; }
.battle-fs .vc-tile { position: absolute; margin: 0; border: none; overflow: hidden; transition: top .4s cubic-bezier(.4,0,.2,1), right .4s, left .4s, bottom .4s, width .4s, height .4s, border-radius .4s; }
.battle-fs .vc-tile.big { inset: 0; height: auto; border-radius: 0; z-index: 1; }
.battle-fs .vc-tile.pip { top: calc(var(--safe-top) + 100px); right: 14px; left: auto; bottom: auto; width: 33%; height: 29vh; max-height: 240px; border-radius: 16px; border: 2px solid var(--line-strong); z-index: 4; box-shadow: 0 10px 34px rgba(0,0,0,.6); }
.battle-fs.flip .vc-tile.big { animation: turnFlip .46s ease; }
@keyframes turnFlip { 0% { transform: rotateY(85deg) scale(.92); opacity: .25; } 60% { opacity: 1; } 100% { transform: none; } }
.pip-tag { position: absolute; left: 8px; bottom: 8px; z-index: 5; font-size: 11px; font-weight: 700; background: rgba(5,7,15,.7); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
.battle-top { position: absolute; top: 0; left: 0; right: 0; z-index: 12; padding: calc(var(--safe-top) + 12px) 14px 12px; background: linear-gradient(to bottom, rgba(5,7,15,.85) 60%, transparent); }
.battle-top > .row { align-items: center; }
.score-strip { display: flex; gap: 12px; margin-top: 10px; }
.score-strip .ss { flex: 1; display: flex; align-items: center; gap: 6px; }
.score-strip .ss .small { white-space: nowrap; }
.battle-ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 12; padding: 16px 16px calc(var(--safe-bottom) + 18px); background: linear-gradient(to top, rgba(5,7,15,.94) 58%, transparent); }
.cast-mult { font-family: var(--font-display); font-weight: 900; font-size: 40px; color: var(--aura-gold); text-shadow: 0 0 22px var(--aura-gold); animation: castShake .5s ease; margin-bottom: 2px; }
.cast-fx .cast-core { position: relative; z-index: 1; }
.cast-bolts { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; fill: none; stroke: #e2f4ff; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 8px #7fd8ff) drop-shadow(0 0 22px #4aa8ff); opacity: 0; animation: boltFlash .6s steps(1) 1; }
.cast-fx.zeus .cast-flash { background: radial-gradient(circle at 50% 42%, rgba(205,240,255,.55), rgba(120,180,255,.3) 42%, transparent 72%); }
@keyframes boltFlash { 0%{opacity:0} 10%{opacity:1} 24%{opacity:.15} 36%{opacity:.95} 58%{opacity:0} 100%{opacity:0} }

/* MODO ZEUS · tormenta de fondo + slow-mo */
.battle-fs.zeus-mode { filter: saturate(1.25) contrast(1.06); }
.battle-fs.zeus-mode .vc-tile.pip { filter: grayscale(.4) brightness(.7); }
.zeus-storm { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 120%, rgba(110,70,220,.4), transparent 60%), radial-gradient(100% 60% at 50% -10%, rgba(40,90,220,.4), transparent 60%);
  box-shadow: inset 0 0 160px 44px rgba(4,6,22,.82); animation: zeusFlash 1.5s ease-in-out infinite; }
.zeus-storm::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 42%, rgba(205,232,255,.18) 49%, transparent 53%); mix-blend-mode: screen; animation: zeusSweep 2.3s linear infinite; }
@keyframes zeusFlash { 0%,100%{ box-shadow: inset 0 0 160px 44px rgba(4,6,22,.82);} 6%{ box-shadow: inset 0 0 120px 18px rgba(130,170,255,.45);} 13%{ box-shadow: inset 0 0 160px 44px rgba(4,6,22,.82);} 47%{ box-shadow: inset 0 0 150px 40px rgba(4,6,22,.8);} 52%{ box-shadow: inset 0 0 110px 16px rgba(200,220,255,.5);} 57%{ box-shadow: inset 0 0 160px 44px rgba(4,6,22,.82);} }
@keyframes zeusSweep { from{ transform: translateX(-60%);} to{ transform: translateX(60%);} }
.zeus-btn { background: linear-gradient(135deg, #ffd24d, #ffffff, #22e0ff); color: #0a0720; font-weight: 800; box-shadow: 0 0 26px rgba(255,210,77,.7); animation: zeusPulse 1s ease-in-out infinite; }
@keyframes zeusPulse { 0%,100%{ box-shadow: 0 0 22px rgba(255,210,77,.6);} 50%{ box-shadow: 0 0 42px rgba(34,224,255,.9);} }

/* Rayos que CAEN sobre la pantalla (ambiente) */
.screen-lightning { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; fill: none; stroke: #e6f5ff; stroke-width: 2.4; stroke-linejoin: round; filter: drop-shadow(0 0 7px #7fd8ff) drop-shadow(0 0 18px #4aa8ff); }
.screen-lightning path { opacity: 0; }
.screen-lightning .sl-b1 { animation: strike 6.5s ease-in-out infinite; }
.screen-lightning .sl-b2 { animation: strike 5.3s ease-in-out 2.2s infinite; }
.screen-lightning .sl-b3 { animation: strike 7.7s ease-in-out 4s infinite; }
@keyframes strike { 0%,100%{opacity:0} 1.4%{opacity:1} 2.8%{opacity:.08} 4.4%{opacity:.85} 6.6%{opacity:0} }
.zeus-mode .screen-lightning .sl-b1 { animation-duration: 1.7s; }
.zeus-mode .screen-lightning .sl-b2 { animation-duration: 2.1s; animation-delay: .6s; }
.zeus-mode .screen-lightning .sl-b3 { animation-duration: 1.4s; animation-delay: .3s; }

/* Blur / viñeta / mareo (warp) durante la batalla */
.battle-fs::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5; box-shadow: inset 0 0 150px 34px rgba(3,5,16,.62); }
.battle-fs .vc-tile.pip { filter: blur(1.2px) brightness(.92); }
.vc-tile.dizzy { animation: dizzyWarp 1.7s ease; z-index: 4; }
@keyframes dizzyWarp {
  0% { filter: blur(0) hue-rotate(0deg); transform: none; }
  18% { filter: blur(3px) hue-rotate(45deg) saturate(1.7); transform: skewX(7deg) scale(1.05) rotate(-2deg); }
  38% { filter: blur(4px) hue-rotate(-25deg); transform: skewX(-7deg) scale(.97) rotate(2deg); }
  58% { filter: blur(5px) hue-rotate(30deg); transform: skewY(5deg) rotate(-1.5deg); }
  78% { filter: blur(2px); transform: skewY(-4deg) scale(1.03); }
  100% { filter: none; transform: none; }
}

/* Pantalla VS de enfrentamiento (intro) */
.battle-intro { position: absolute; inset: 0; z-index: 10; overflow-y: auto; padding: calc(var(--safe-top) + 118px) 18px calc(var(--safe-bottom) + 20px); background: rgba(5,7,15,.82); backdrop-filter: blur(10px); }
.vs-grid2, .transfer-stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.fighter2 { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* Transferencia de puntos (final) */
.transfer-stage { position: relative; }
.fighter2.winner { animation: winnerPulse 1.2s ease .9s both; }
.fighter2.loser { opacity: .7; filter: grayscale(.3); }
@keyframes winnerPulse { 0%{ transform: scale(1); } 40%{ transform: scale(1.12); filter: drop-shadow(0 0 24px var(--aura-lime)); } 100%{ transform: scale(1); } }
.transfer-orb { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-weight: 900; font-size: 22px; color: var(--aura-lime); text-shadow: 0 0 18px var(--aura-lime); white-space: nowrap; opacity: 0; }
.transfer-orb.to-left { animation: flyLeft 1.5s ease forwards; }
.transfer-orb.to-right { color: var(--danger); text-shadow: 0 0 18px var(--danger); animation: flyRight 1.5s ease forwards; }
@keyframes flyLeft { 0%{ left: 76%; opacity: 0; } 18%{ opacity: 1; } 82%{ opacity: 1; } 100%{ left: 24%; opacity: 0; } }
@keyframes flyRight { 0%{ left: 24%; opacity: 0; } 18%{ opacity: 1; } 82%{ opacity: 1; } 100%{ left: 76%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .orb, .scanline, .nav-btn.scan-cta .orb-btn, .result-hero, .screen, .vc-grid::after,
  .cast-flash, .cast-core, .cast-emoji, .cast-name::before, .cast-name::after, .aura-photo.glitch::after,
  .cast-bolts, .zeus-storm, .zeus-storm::after, .zeus-btn,
  .screen-lightning path, .vc-tile.dizzy, .transfer-orb, .fighter2.winner { animation: none !important; }
  .transfer-orb { opacity: 1 !important; }
}

/* Aviso de reto entrante */
.challenge-toast { position: fixed; top: calc(var(--safe-top) + 12px); left: 12px; right: 12px; max-width: 460px; margin: 0 auto; z-index: 70; background: rgba(20,17,44,.94); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px; backdrop-filter: blur(16px); box-shadow: 0 12px 40px rgba(0,0,0,.55); animation: dropIn .35s ease both; }
@keyframes dropIn { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   REDISEÑO ESTÉTICO · Tema HUD "esports" LIME (2026-09)
   SOLO estética: override de tokens + forma de componentes.
   No cambia estructura ni lógica. Todos los selectores originales
   se conservan; aquí solo se re-tematiza.
   ============================================================ */
:root {
  --bg-0: #06070a; --bg-1: #0a0c12; --bg-2: #12151c;
  --surface: rgba(255,255,255,.04); --surface-solid: #0c0f14;
  --line: rgba(255,255,255,.10); --line-strong: rgba(255,255,255,.17);
  --text: #eef2f0; --text-dim: #aab2ad; --text-faint: #79857f;
  /* Acentos (se conservan los nombres que usa el JS) */
  --aura-violet: #c6ff3a;   /* acento principal → LIME (antes violeta) */
  --aura-magenta: #12b6ff;  /* secundario → teal/azul */
  --aura-cyan: #22e0ff;
  --aura-lime: #c6ff3a;
  --aura-gold: #ffd24d;
  --danger: #ff3b5c;
  --ink: #0a1004;           /* texto sobre lime */
  --grad-aura: linear-gradient(100deg, #c6ff3a, #7ee61a);
  --grad-hot: linear-gradient(100deg, #ff6a2b, #ff3b5c);
  --grad-win: linear-gradient(100deg, #c6ff3a, #12b6ff);
  --glow-violet: 0 0 30px rgba(198,255,58,.30);
  --radius: 14px; --radius-sm: 11px; --radius-lg: 22px;
  --font-display: 'Rajdhani', system-ui, sans-serif;
  --font-body: 'Rajdhani', system-ui, sans-serif;
  --font-impact: 'Anton', system-ui, sans-serif;
  --font-mono: 'Chakra Petch', ui-monospace, monospace;
}
body { font-weight: 500; }

/* Fondo: HUD oscuro (retoca los orbes y la rejilla, sin quitarlos) */
.bg-aura { background: radial-gradient(120% 90% at 50% -10%, #10160c 0%, var(--bg-0) 60%); }
.bg-aura::after { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
.bg-aura .orb { opacity: .34; filter: blur(80px); }
.orb-1 { background: #7ee61a; } .orb-2 { background: #0e6f66; } .orb-3 { background: #123f6a; }

/* Tipografía impacto (Anton) solo en títulos y números grandes */
.h1 { font-family: var(--font-impact); font-weight: 400; letter-spacing: .01em; }
.aura-ring .val .n, .badge-pts, .cast-name, .cast-pts, .cast-mult,
.vs-badge, .transfer-orb, .cast-mult, .result-hero .h1 { font-family: var(--font-impact); letter-spacing: 0; }
.eyebrow { font-family: var(--font-mono); letter-spacing: .26em; }

/* Botones angulares HUD */
.btn { border-radius: 0; font-family: var(--font-mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: 14.5px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn-sm { clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.btn-primary { color: var(--ink); box-shadow: 0 10px 30px -8px rgba(198,255,58,.45); }
.btn-hot { color: #fff; box-shadow: 0 10px 30px -8px rgba(255,106,43,.45); }

/* Chips angulares */
.chip { border-radius: 0; font-family: var(--font-mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.chip.on { color: var(--ink); }

/* Cards / panels: cristal oscuro + notch angular (radius 0 + clip) */
.card, .panel { border-radius: 0; backdrop-filter: blur(8px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.card-glow, .panel.edge { box-shadow: none; border-color: color-mix(in srgb, var(--aura-lime) 30%, var(--line)); }

/* Inputs angulares + foco lime */
.input, select.input { border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.input:focus { border-color: var(--aura-lime); box-shadow: 0 0 0 1px var(--aura-lime), 0 0 20px -6px var(--aura-lime); }

/* Nav inferior HUD */
.nav-inner { border-radius: 16px; background: rgba(8,10,14,.88); }
.nav-btn { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.nav-btn.on { color: var(--aura-lime); }
.nav-btn.scan-cta .orb-btn { border-radius: 0; color: var(--ink);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Meter / progreso */
.meter > i { border-radius: 0; }
.pill-lvl { border-radius: 0; clip-path: polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px); }
.divider { background: var(--line); }

/* FX de batalla / cámara → lime/teal (solo color, sin tocar animaciones ni lógica) */
.scanline { background: linear-gradient(90deg, transparent, var(--aura-lime), transparent); box-shadow: 0 0 20px var(--aura-lime); }
.cast-flash { background: radial-gradient(circle at 50% 45%, rgba(198,255,58,.35), rgba(18,182,255,.22) 40%, transparent 70%); }
.cast-name { text-shadow: 0 0 18px rgba(198,255,58,.85); }
.cast-name::before { color: #12b6ff; }
.cast-name::after { color: #c6ff3a; }
.vc-grid { background:
  radial-gradient(70% 60% at 50% 40%, rgba(255,59,92,.16), transparent 70%),
  linear-gradient(rgba(198,255,58,.06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(198,255,58,.06) 1px, transparent 1px), #0a0f0a; }
.vc-grid::after { background: rgba(198,255,58,.32); box-shadow: 0 0 12px rgba(198,255,58,.6); }
.vc-tile.active.me { box-shadow: inset 0 0 0 2px var(--aura-lime), 0 0 34px rgba(198,255,58,.45); }
.toast-live { font-family: var(--font-impact); }
.round-dots i.me { background: var(--aura-lime); }
/* Duelo a pantalla completa: acentos del atacante en lime */
.battle-fs .vc-tile.pip { border-color: color-mix(in srgb, var(--aura-lime) 40%, var(--line-strong)); }

/* ============================================================
   LOGIN / GATE (rediseño boceto) — pantalla nueva, full-screen
   ============================================================ */
.login { position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  background: radial-gradient(120% 60% at 50% -6%, color-mix(in srgb, var(--aura-lime) 20%, transparent), transparent 50%), linear-gradient(180deg, var(--bg-1), var(--bg-0)); }
.login .lg-scan { position: absolute; inset: 0; pointer-events: none; opacity: .4; background: repeating-linear-gradient(180deg, #0000 0 2px, #00000022 2px 3px); }
.login .lg-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 100%; width: 100%; max-width: 460px; margin: 0 auto; padding: calc(var(--safe-top) + 22px) 22px calc(var(--safe-bottom) + 20px); }
.lg-hud { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; color: var(--text-faint); text-transform: uppercase; }
.lg-hud .lg-live { display: flex; align-items: center; gap: 6px; color: var(--aura-lime); }
.lg-hud .lg-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--aura-lime); box-shadow: 0 0 10px var(--aura-lime); }
.lg-brand { display: flex; flex-direction: column; align-items: center; margin-top: 26px; }
.lg-em { position: relative; width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 14px; border: 2px solid var(--aura-lime); transform: rotate(45deg); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--aura-lime) 70%, transparent)); }
.lg-em b { transform: rotate(-45deg); font-family: var(--font-impact); font-size: 30px; color: var(--aura-lime); }
.lg-wordmark { font-family: var(--font-impact); font-size: 46px; letter-spacing: .16em; line-height: .9; color: #fff; text-shadow: 0 0 24px color-mix(in srgb, var(--aura-lime) 45%, transparent); }
.lg-wordmark span { color: var(--aura-lime); }
.lg-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .42em; color: var(--text-faint); text-transform: uppercase; margin-top: 8px; }
.lg-head { margin-top: 26px; }
.lg-head .lg-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; color: var(--aura-lime); text-transform: uppercase; }
.lg-head h1 { font-family: var(--font-impact); font-size: 40px; font-style: italic; line-height: .96; margin-top: 2px; transform: skewX(-6deg); text-shadow: 0 3px 0 #0006; }
.lg-head p { color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.lg-form { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.lg-field { position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); padding: 13px 14px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.lg-field:focus-within { border-color: var(--aura-lime); box-shadow: 0 0 0 1px var(--aura-lime); }
.lg-field svg { width: 18px; height: 18px; flex: none; stroke: var(--text-faint); }
.lg-field input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: 16px; }
.lg-field input::placeholder { color: #5c665f; }
.lg-eye { cursor: pointer; color: var(--text-faint); font-size: 15px; }
.lg-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.lg-row label { display: flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 600; }
.lg-cb { width: 15px; height: 15px; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); font-size: 11px; }
.lg-cb.on { background: var(--aura-lime); border-color: var(--aura-lime); }
.lg-row a { color: var(--aura-lime); text-decoration: none; font-weight: 700; }
.lg-cta { margin-top: 6px; border: none; cursor: pointer; width: 100%; color: var(--ink); font-family: var(--font-mono); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; padding: 15px; background: var(--grad-aura); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); box-shadow: 0 10px 30px -8px rgba(198,255,58,.5); }
.lg-cta .lg-ar { margin-left: 8px; }
.lg-or { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em; margin: 16px 0 12px; }
.lg-or::before, .lg-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.lg-social { display: flex; gap: 10px; }
.lg-social button { flex: 1; padding: 12px 0; background: var(--surface); border: 1px solid var(--line); color: var(--text); display: grid; place-items: center; cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%); }
.lg-social svg { width: 20px; height: 20px; }
.lg-foot { margin-top: auto; padding-top: 16px; text-align: center; color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }

/* Onboarding (rediseño boceto) */
.ob-steps { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--text-faint); text-transform: uppercase; }
.ob-bars { display: flex; gap: 5px; }
.ob-bars i { width: 26px; height: 4px; background: rgba(255,255,255,.10); }
.ob-bars i.on { background: var(--aura-lime); box-shadow: 0 0 8px var(--aura-lime); }
.ob-cam { position: absolute; bottom: -6px; right: -6px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; color: var(--ink); background: var(--grad-aura); border-radius: 0; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ob-italic { font-style: italic; transform: skewX(-5deg); }

/* Feed (rediseño boceto) — la pantalla "Gente"/Home */
.fd-tabs { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.fd-tabs .grow { flex: 1; }
.fd-card { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 14px; margin-bottom: 14px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.fd-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--r, var(--aura-lime)); box-shadow: 0 0 12px var(--r, var(--aura-lime)); }
.fd-head { display: flex; align-items: flex-start; gap: 11px; }
.fd-rank { font-family: var(--font-impact); font-size: 13px; color: var(--text-faint); width: 24px; flex: none; padding-top: 4px; }
.fd-rank.top { color: var(--aura-lime); }
.fd-who { flex: 1; min-width: 0; text-align: left; background: none; border: none; padding: 0; color: inherit; }
.fd-name { display: flex; align-items: center; gap: 6px; }
.fd-name b { font-family: var(--font-body); font-weight: 700; font-size: 17px; }
.fd-name .fl { font-size: 14px; }
.fd-tag { font-family: var(--font-mono); font-size: 8.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink); background: var(--r, var(--aura-lime)); padding: 2px 5px; text-transform: uppercase; }
.fd-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--text-faint); margin-top: 2px; }
.fd-meter { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.fd-meter .bar { flex: 1; height: 6px; background: rgba(255,255,255,.10); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 3px 100%); }
.fd-meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--r, var(--aura-lime)), #12b6ff); }
.fd-meter .lv { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--text-faint); text-transform: uppercase; white-space: nowrap; }
.fd-follow { flex: none; align-self: center; font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--aura-lime); background: none; border: 1px solid color-mix(in srgb, var(--aura-lime) 45%, var(--line)); padding: 7px 10px; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.fd-follow.on { color: var(--text-faint); border-color: var(--line); }
.fd-cap { font-size: 14.5px; font-weight: 500; color: #d6ddd8; margin-top: 11px; line-height: 1.35; }
.fd-stat { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.fd-stat .num { font-family: var(--font-impact); font-size: 28px; line-height: .9; color: var(--r, var(--aura-lime)); }
.fd-stat .u { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--text-faint); text-transform: uppercase; }
.fd-stat .tier { margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--text); border: 1px solid var(--line); padding: 4px 8px; text-transform: uppercase; }
.fd-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.fd-likes { display: flex; align-items: center; gap: 7px; color: var(--text-faint); font-weight: 600; font-size: 14px; background: none; border: none; }
.fd-likes.on { color: var(--danger); }
.fd-likes svg { width: 18px; height: 18px; }
.fd-retar { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--grad-hot); border: none; padding: 10px 16px; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.fd-retar svg { width: 15px; height: 15px; }

/* Farm (hub: escaneo + movimientos) — héroe de escaneo */
.fm-scan { position: relative; margin-bottom: 22px; padding: 22px 18px 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--aura-lime) 30%, var(--line)); background: radial-gradient(90% 80% at 50% 0, color-mix(in srgb, var(--aura-lime) 12%, transparent), transparent 60%), var(--surface); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.fm-ret { position: relative; width: 104px; height: 104px; margin: 0 auto 12px; display: grid; place-items: center; }
.fm-ret::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 120deg, var(--aura-lime), #12b6ff, var(--aura-lime)); border-radius: 50%; -webkit-mask: radial-gradient(farthest-side, #0000 68%, #000 70%); mask: radial-gradient(farthest-side, #0000 68%, #000 70%); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--aura-lime) 50%, transparent)); }
.fm-ret i { width: 70px; height: 70px; border-radius: 50%; background: #0b0e13; display: grid; place-items: center; font-size: 30px; font-style: normal; }
.fm-last { margin-top: 12px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--text-faint); text-transform: uppercase; }
.fm-last b { color: var(--aura-lime); }
/* Farm · barra de entrenamiento */
.fm-train { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); padding: 13px 15px; margin-bottom: 20px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.fm-train .t { flex: 1; }
.fm-train .n { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--text-faint); text-transform: uppercase; }
.fm-train .bar { height: 7px; background: rgba(255,255,255,.10); margin-top: 6px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 3px 100%); }
.fm-train .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--aura-lime), #12b6ff); }
.fm-train .big { font-family: var(--font-impact); font-size: 24px; color: var(--aura-lime); }
/* Farm · mazo de movimientos (2 columnas) */
.fm-deck { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.fm-mv { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); padding: 13px; overflow: hidden; color: inherit; cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.fm-mv::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--r, var(--aura-lime)); box-shadow: 0 0 10px var(--r, var(--aura-lime)); }
.fm-mv-top { display: flex; align-items: center; justify-content: space-between; }
.fm-mv-e { font-size: 30px; }
.fm-mv-rar { font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--r, var(--aura-lime)); padding: 2px 6px; }
.fm-mv-rar.lk { background: rgba(255,255,255,.10); color: var(--text-faint); }
.fm-mv-nm { font-family: var(--font-body); font-weight: 700; font-size: 16px; margin-top: 10px; line-height: 1.05; }
.fm-mv-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.fm-mv-tl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; color: var(--text-faint); text-transform: uppercase; }
.fm-mv-bonus { font-family: var(--font-impact); font-size: 18px; color: var(--r, var(--aura-lime)); }
.fm-mv-bar { height: 5px; background: rgba(255,255,255,.10); margin-top: 8px; overflow: hidden; }
.fm-mv-bar i { display: block; height: 100%; background: var(--r, var(--aura-lime)); }
.fm-mv-del { display: inline-block; margin-top: 9px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; color: var(--danger); text-transform: uppercase; }
.fm-mv.soon { opacity: .58; cursor: default; }
.fm-mv.soon .fm-mv-rar.lk { background: rgba(255,255,255,.10); color: var(--text-faint); }
.fm-create { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; border: 1.5px dashed color-mix(in srgb, var(--aura-lime) 45%, var(--line)); background: radial-gradient(120% 100% at 50% 0, color-mix(in srgb, var(--aura-lime) 10%, transparent), transparent 70%); min-height: 150px; cursor: pointer; color: inherit; }
.fm-create .plus { width: 44px; height: 44px; display: grid; place-items: center; background: var(--grad-aura); color: var(--ink); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); font-family: var(--font-impact); font-size: 24px; }
.fm-create.lk .plus { background: rgba(255,255,255,.08); color: var(--aura-lime); }
.fm-create.locked { cursor: default; opacity: .62; border-color: var(--line); background: none; }
.fm-create.locked .ct { color: var(--text-faint); }
.fm-create .ct { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--aura-lime); text-transform: uppercase; }
.fm-create .cs { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; color: var(--text-faint); text-transform: uppercase; }

/* Profile (dashboard, rediseño boceto) */
.pf-banner { position: relative; height: 92px; overflow: hidden; background: radial-gradient(120% 160% at 80% -30%, color-mix(in srgb, var(--aura-lime) 26%, transparent), transparent 55%), linear-gradient(120deg, #12151c, #0b0e14); clip-path: polygon(0 0, 100% 0, 100% 74%, 88% 100%, 0 100%); border: 1px solid var(--line); }
.pf-banner::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 26px 26px; }
.pf-rank { position: absolute; top: 12px; right: 16px; font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--aura-lime); border: 1px solid color-mix(in srgb, var(--aura-lime) 45%, transparent); padding: 5px 9px; text-transform: uppercase; }
.pf-idrow { display: flex; align-items: flex-end; gap: 14px; margin: -40px 4px 0; position: relative; z-index: 3; }
.pf-avatar { width: 90px; height: 90px; flex: none; padding: 3px; border-radius: 20px; background: conic-gradient(from 150deg, var(--aura-lime), #12b6ff, var(--aura-lime)); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--aura-lime) 45%, transparent)); }
.pf-avatar > * { width: 100% !important; height: 100% !important; border-radius: 17px !important; }
.pf-idmeta { flex: 1; padding-bottom: 6px; min-width: 0; }
.pf-idmeta h1 { font-family: var(--font-impact); font-size: 26px; letter-spacing: .02em; line-height: 1; }
.pf-idmeta .h { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.pf-tier { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--grad-aura); padding: 4px 9px; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.pf-aura { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); padding: 16px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.pf-ameta { flex: 1; min-width: 0; }
.pf-ameta .d { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--aura-lime); }
.pf-ameta .nl { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin: 12px 0 6px; letter-spacing: .06em; text-transform: uppercase; }
.pf-xp { height: 8px; background: rgba(255,255,255,.10); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 4px 100%); }
.pf-xp i { display: block; height: 100%; background: linear-gradient(90deg, var(--aura-lime), #12b6ff); }
.pf-xt { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-top: 6px; letter-spacing: .05em; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-st { background: var(--surface); border: 1px solid var(--line); padding: 13px 14px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.pf-st .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--text-faint); text-transform: uppercase; }
.pf-st .v { font-family: var(--font-impact); font-size: 28px; line-height: 1; margin-top: 7px; }
.pf-st .v small { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--text-faint); }
.pf-st.hl .v { color: var(--aura-lime); }
.pf-badges { display: flex; gap: 10px; }
.pf-badge { flex: 1; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--surface); border: 1px solid var(--line); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.pf-badge.on { border-color: color-mix(in srgb, var(--aura-lime) 55%, transparent); background: radial-gradient(120% 120% at 50% 0, color-mix(in srgb, var(--aura-lime) 16%, transparent), transparent 70%); }
.pf-badge.off { opacity: .3; }
.pf-badge .e { font-size: 20px; }
.pf-badge .t { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .05em; color: var(--text-faint); text-transform: uppercase; text-align: center; }
.pf-farm { display: flex; gap: 10px; }
.pf-fbtn { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); padding: 14px; cursor: pointer; text-align: left; color: inherit; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.pf-fbtn.primary { background: linear-gradient(100deg, color-mix(in srgb, var(--aura-lime) 18%, transparent), transparent); border-color: color-mix(in srgb, var(--aura-lime) 40%, var(--line)); }
.pf-fbtn .ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: var(--grad-aura); color: var(--ink); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); font-size: 15px; }
.pf-fbtn b { font-family: var(--font-body); font-weight: 700; font-size: 14px; display: block; }
.pf-fbtn small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; color: var(--text-faint); text-transform: uppercase; }
.pf-set { background: var(--surface); border: 1px solid var(--line); }
.pf-set button { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); width: 100%; text-align: left; font-weight: 600; font-size: 15px; background: none; }
.pf-set button:last-child { border-bottom: none; }
.pf-set button .ch { margin-left: auto; color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }
.pf-set button.danger { color: #ff5a6a; }

/* Ranking (rediseño boceto) — podio + tabla + tu posición */
.rk-podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 14px 0 6px; }
.rk-pod { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.rk-pod .av { border-radius: 50%; padding: 2.5px; background: conic-gradient(from 150deg, var(--r), #12b6ff, var(--r)); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--r) 45%, transparent)); }
.rk-pod.p1 .av { width: 78px; height: 78px; } .rk-pod.p2 .av, .rk-pod.p3 .av { width: 60px; height: 60px; }
.rk-pod .av > * { width: 100% !important; height: 100% !important; border-radius: 50% !important; }
.rk-pod .crown { font-size: 20px; margin-bottom: -4px; }
.rk-pod .nm { font-family: var(--font-body); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rk-pod .au { font-family: var(--font-impact); font-size: 22px; color: var(--r); }
.rk-pod .base { width: 100%; margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-bottom: none; display: grid; place-items: center; font-family: var(--font-impact); font-size: 24px; color: var(--r); }
.rk-pod.p1 .base { height: 60px; background: radial-gradient(120% 120% at 50% 0, color-mix(in srgb, var(--aura-lime) 18%, transparent), var(--surface)); }
.rk-pod.p2 .base { height: 42px; } .rk-pod.p3 .base { height: 32px; }
.rk-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); padding: 10px 13px; margin-bottom: 8px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.rk-row .pos { font-family: var(--font-impact); font-size: 16px; color: var(--text-faint); width: 30px; flex: none; text-align: center; }
.rk-row .av { width: 40px; height: 40px; flex: none; }
.rk-row .av > * { width: 100% !important; height: 100% !important; border-radius: 50% !important; }
.rk-row .w { flex: 1; min-width: 0; } .rk-row .w b { font-family: var(--font-body); font-weight: 700; font-size: 15px; }
.rk-row .w .h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; color: var(--text-faint); }
.rk-row .au { font-family: var(--font-impact); font-size: 20px; color: var(--aura-lime); }
.rk-row.me { border-color: color-mix(in srgb, var(--aura-lime) 55%, transparent); background: linear-gradient(100deg, color-mix(in srgb, var(--aura-lime) 14%, var(--surface)), var(--surface)); }
.rk-row.me .pos { color: var(--aura-lime); }
.rk-filter { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 3px; -webkit-overflow-scrolling: touch; }
.rk-filter::-webkit-scrollbar { display: none; }
.rk-filter .chip { flex: none; white-space: nowrap; }

/* ---- Panel de admin ---- */
.admin-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 4px; padding: 14px 16px; background: linear-gradient(100deg, color-mix(in srgb, var(--aura-lime) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--aura-lime) 40%, transparent); border-radius: 14px; color: var(--text); cursor: pointer; text-align: left; }
.admin-banner .ab-ic { font-size: 22px; }
.admin-banner .ab-tx { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.admin-banner .ab-tx b { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--aura-lime); }
.admin-banner .ab-tx small { color: var(--text-faint); font-size: 12.5px; }
.admin-banner .ab-ch { color: var(--aura-lime); font-size: 20px; }
.adm-stat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.adm-stat > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; }
.adm-stat b { display: block; font-family: var(--font-impact); font-size: 24px; color: var(--aura-lime); line-height: 1; }
.adm-stat span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.adm-search { width: 100%; margin-top: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-family: var(--font-body); font-size: 15px; }
.adm-list { display: flex; flex-direction: column; gap: 8px; }
.adm-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.adm-row .adm-i { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); min-width: 22px; }
.adm-main { flex: 1; min-width: 0; }
.adm-nm { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-nm .faint { color: var(--text-faint); font-weight: 400; }
.adm-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.adm-id { font-family: var(--font-mono); font-size: 9.5px; color: color-mix(in srgb, var(--text-faint) 70%, transparent); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-badge { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.08); color: var(--text-faint); }
.adm-badge.admin { background: color-mix(in srgb, var(--aura-lime) 22%, transparent); color: var(--aura-lime); }
.adm-badge.pro { background: color-mix(in srgb, var(--aura-gold) 22%, transparent); color: var(--aura-gold); }
.adm-aura { text-align: right; font-family: var(--font-impact); font-size: 20px; color: var(--aura-lime); line-height: 1; }
.adm-aura small { display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.adm-aura span { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); margin-top: 2px; }

/* Indicador de presencia online en el lobby de Battle */
.bl-riv .a.on { position: relative; box-shadow: 0 0 0 2px #21d07a, 0 0 10px rgba(33,208,122,.45); border-radius: 50%; }
.riv-on { color: #21d07a; font-weight: 700; }

/* Selector de idioma (Perfil) */
.pf-lang { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; }
.pf-lang > span { font-weight: 600; }
.pf-lang-tg { display: flex; gap: 4px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 3px; }
.pf-lang-tg button { border: 0; background: transparent; color: var(--text-faint); font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.pf-lang-tg button.on { background: var(--aura-lime); color: var(--ink); }

/* Campana con contador de notificaciones */
.hd-notif { position: relative; }
.hd-notif .dot.count { min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--danger); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; display: grid; place-items: center; position: absolute; top: -3px; right: -3px; }

/* Feed de actividad (Home) — misma FORMA que las cards del feed (.fd-card) */
.act-feed { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.ac2 { width: 100%; margin-bottom: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ac2 .fd-h { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-vs { display: flex; align-items: center; gap: 3px; flex: none; }
.ac-vsx { font-size: 13px; }
.ac-emoji2 { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--aura-cyan) 15%, transparent); }

/* Panel de notificaciones */
.nt-list { display: flex; flex-direction: column; gap: 8px; }
.nt-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 8px 10px 8px 13px; }
.nt-row.unread { border-color: color-mix(in srgb, var(--aura-lime) 45%, transparent); background: color-mix(in srgb, var(--aura-lime) 8%, var(--surface)); }
.nt-open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; padding: 0; }
.nt-main { flex: 1; min-width: 0; }
.nt-tx { font-size: 15px; }
.nt-ago { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.nt-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.nt-cta { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--aura-lime); padding: 8px 12px; border-radius: 9px; border: 0; cursor: pointer; }
.nt-rej { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text-faint); font-size: 14px; cursor: pointer; }
.nt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aura-lime); box-shadow: 0 0 8px var(--aura-lime); flex: none; }
.nt-row.unread .nt-tx { font-weight: 700; }
.rk-you { position: sticky; bottom: calc(var(--nav-h) + var(--safe-bottom) + 6px); z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 12px; background: linear-gradient(100deg, color-mix(in srgb, var(--aura-lime) 22%, var(--bg-1)), var(--bg-1)); border: 1px solid color-mix(in srgb, var(--aura-lime) 55%, transparent); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); box-shadow: 0 -6px 20px -8px #000; }
.rk-you .pos { font-family: var(--font-impact); font-size: 18px; color: var(--aura-lime); width: 46px; flex: none; }
.rk-you .av { width: 40px; height: 40px; flex: none; } .rk-you .av > * { width: 100% !important; height: 100% !important; border-radius: 50% !important; }
.rk-you .w b { font-family: var(--font-body); font-weight: 700; font-size: 15px; } .rk-you .w .h { font-family: var(--font-mono); font-size: 10px; color: var(--aura-lime); letter-spacing: .06em; text-transform: uppercase; }
.rk-you .au { font-family: var(--font-impact); font-size: 22px; color: var(--aura-lime); margin-left: auto; }

/* Paywall AURA+ (rediseño boceto) */
.pw-close { width: 34px; height: 34px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-faint); font-size: 16px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%); }
.pw-ben { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; margin-bottom: 11px; }
.pw-ben .c { width: 24px; height: 24px; flex: none; display: grid; place-items: center; background: var(--grad-aura); color: var(--ink); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.pw-ben .c svg { width: 13px; height: 13px; stroke: var(--ink); stroke-width: 3; }
.pw-ben .s { color: var(--text-faint); font-weight: 600; }
.pw-plan { position: relative; background: var(--surface); border: 1px solid var(--aura-lime); box-shadow: 0 0 26px -10px var(--aura-lime); padding: 18px; margin-top: 22px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.pw-plan .p { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--text-faint); text-transform: uppercase; }
.pw-plan .amt { font-family: var(--font-impact); font-size: 34px; margin-top: 6px; }
.pw-plan .amt small { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--text-faint); }

/* Batalla · resultado (rediseño boceto result.html) */
.bt-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .35em; color: var(--aura-lime); text-transform: uppercase; text-align: center; }
.bt-big { font-family: var(--font-impact); font-style: italic; font-size: 62px; line-height: .9; text-align: center; margin-top: 2px; color: #fff; text-shadow: 0 0 30px var(--aura-lime), 0 4px 0 #0007; }
.bt-big.lose { text-shadow: 0 0 30px var(--danger), 0 4px 0 #0007; }
.bt-score { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.bt-score .s { font-family: var(--font-impact); font-size: 44px; }
.bt-score .me { color: var(--aura-lime); text-shadow: 0 0 16px var(--aura-lime); }
.bt-score .foe { color: var(--text-faint); }
.bt-score .d { font-family: var(--font-impact); font-size: 24px; color: var(--text-faint); }
.bt-gain { font-family: var(--font-impact); font-size: 30px; color: var(--aura-lime); text-align: center; margin-top: 12px; text-shadow: 0 0 16px var(--aura-lime); }
.bt-gain span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--text-faint); text-shadow: none; }
.bt-rewards { display: flex; gap: 10px; margin-top: 18px; }
.bt-rw { flex: 1; background: var(--surface); border: 1px solid var(--line); padding: 12px 6px; text-align: center; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.bt-rw .v { font-family: var(--font-impact); font-size: 20px; color: var(--aura-lime); }
.bt-rw .l { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; color: var(--text-faint); text-transform: uppercase; margin-top: 3px; }
/* Batalla · barras de aura tipo boceto (skew) */
.score-strip .ss:first-child .meter { transform: skewX(-12deg); }
.score-strip .ss:last-child .meter { transform: skewX(12deg); }

/* Header común (páginas del menú inferior) */
.app-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hd-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hd-em { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--aura-lime); transform: rotate(45deg); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--aura-lime) 60%, transparent)); }
.hd-em b { transform: rotate(-45deg); font-family: var(--font-impact); font-size: 14px; color: var(--aura-lime); }
.hd-title { font-family: var(--font-impact); font-size: 24px; letter-spacing: .02em; line-height: 1; }
.hd-acts { display: flex; align-items: center; gap: 10px; flex: none; }
.hd-notif { position: relative; width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%); }
.hd-notif.on { border-color: color-mix(in srgb, var(--aura-lime) 45%, var(--line)); color: var(--aura-lime); }
.hd-notif .dot { position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 8px #ff3b5c; border: 2px solid var(--bg-0); }
.hd-av { width: 38px; height: 38px; flex: none; border-radius: 50%; padding: 0; overflow: hidden; background: none; border: 1px solid var(--line); }
.hd-av > * { width: 100% !important; height: 100% !important; border-radius: 50% !important; }
/* Logo oficial (mascota AURA BATTLE) */
.hd-logo { height: 40px; width: auto; display: block; }
.brand-logo { display: flex; justify-content: center; }
.brand-logo img { width: min(68%, 250px); height: auto; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--aura-lime) 35%, transparent)); }
.brand-logo.sm img { width: 128px; }

/* Battle · lobby (boceto battle.html) */
.bl-hd { text-align: center; margin: 2px 0 0; }
.bl-hd .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .26em; color: var(--aura-lime); text-transform: uppercase; }
.bl-hd h1 { font-family: var(--font-impact); font-size: 32px; font-style: italic; transform: skewX(-6deg); margin-top: 2px; }
.bl-vs { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 0 10px; }
.bl-ftr { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bl-ftr .av { width: 84px; height: 84px; padding: 3px; border-radius: 22px; background: conic-gradient(from 150deg, var(--aura-lime), #12b6ff, var(--aura-lime)); filter: drop-shadow(0 0 14px color-mix(in srgb, var(--aura-lime) 45%, transparent)); }
.bl-ftr .av > * { width: 100% !important; height: 100% !important; border-radius: 19px !important; }
.bl-ftr .av.q { background: none; border: 2px dashed var(--line-strong); border-radius: 22px; padding: 0; display: grid; place-content: center; filter: none; }
.bl-ftr .av.q b { display: block; font-family: var(--font-impact); font-size: 40px; line-height: 1; color: var(--text-faint); text-align: center; }
.bl-ftr .nm { font-family: var(--font-body); font-weight: 700; font-size: 16px; }
.bl-ftr .au { font-family: var(--font-impact); font-size: 26px; color: var(--aura-lime); }
.bl-ftr .au.q { color: var(--text-faint); }
.bl-ftr .tg { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--text-faint); text-transform: uppercase; }
.bl-vsx b { font-family: var(--font-impact); font-style: italic; font-size: 30px; color: var(--aura-lime); text-shadow: 0 0 18px color-mix(in srgb, var(--aura-lime) 55%, transparent); }
.bl-two { display: flex; gap: 10px; margin-top: 14px; }
.bl-two button { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 13px; cursor: pointer; text-align: left; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.bl-two .ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--aura-lime) 40%, var(--line)); color: var(--aura-lime); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); font-size: 15px; }
.bl-two b { font-family: var(--font-body); font-weight: 700; font-size: 14px; display: block; }
.bl-two .sub { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .06em; color: var(--text-faint); text-transform: uppercase; }
.bl-riv { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); padding: 11px 13px; margin-bottom: 10px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.bl-riv .a { width: 44px; height: 44px; flex: none; background: none; border: none; padding: 0; }
.bl-riv .a > * { width: 100% !important; height: 100% !important; border-radius: 50% !important; }
.bl-riv .w { flex: 1; min-width: 0; } .bl-riv .w b { font-family: var(--font-body); font-weight: 700; font-size: 15px; }
.bl-riv .w .h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; color: var(--text-faint); }
.bl-riv .au { font-family: var(--font-impact); font-size: 20px; color: var(--r, var(--aura-lime)); }
.bl-riv .r { font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--grad-aura); border: none; padding: 9px 12px; cursor: pointer; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }

/* Guía visual del gesto (movescan) */
.gesture-guide { background: var(--surface); border: 1px solid var(--line); padding: 18px; margin-top: 16px; text-align: center; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.gg-icon { width: 118px; height: 118px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 62px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--aura-lime) 20%, transparent), transparent 72%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--aura-lime) 32%, transparent), 0 0 26px -8px color-mix(in srgb, var(--aura-lime) 50%, transparent); }
.gg-name { font-family: var(--font-impact); font-size: 24px; }
.gg-type { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.gg-how { margin-top: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 13px; text-align: left; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.gg-how .gg-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--aura-lime); text-transform: uppercase; }
.gg-how p { font-size: 15.5px; font-weight: 600; margin-top: 6px; color: var(--text); line-height: 1.35; }
.gg-desc { font-size: 13px; color: var(--text-dim); margin-top: 10px; }
/* Guía del gesto también en la carta de Farm (mini) */
.fm-mv-hint { font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--text-faint); margin-top: 6px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Esqueleto guía del gesto */
.mv-skeleton { display: block; margin: 0 auto; }
.mv-skeleton .sk-head { fill: none; stroke: var(--aura-lime); stroke-width: 3; }
.mv-skeleton .sk-bones line { stroke: color-mix(in srgb, var(--aura-lime) 85%, #12b6ff); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--aura-lime) 55%, transparent)); }
.mv-skeleton .sk-joints circle { fill: var(--aura-lime); }
.mv-skeleton .sk-hands circle { fill: var(--aura-lime); filter: drop-shadow(0 0 8px var(--aura-lime)); }
.mv-skeleton .sk-ghost line { stroke: color-mix(in srgb, var(--aura-lime) 85%, #12b6ff); stroke-width: 3.5; stroke-linecap: round; opacity: .22; }
.mv-skeleton .sk-ghost circle { fill: var(--aura-lime); opacity: .22; }
.mv-skeleton .sk-arrows path { fill: none; stroke: #12b6ff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 7 8; animation: skflow .8s linear infinite; filter: drop-shadow(0 0 4px color-mix(in srgb, #12b6ff 60%, transparent)); }
@keyframes skflow { to { stroke-dashoffset: -15; } }
.cam-warm { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--aura-lime) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--aura-lime) 30%, transparent); color: var(--text); font-family: var(--font-body); }
.cam-warm .cw-spin { display: inline-block; animation: cwspin 1s linear infinite; }
@keyframes cwspin { to { transform: rotate(360deg); } }
.gg-skel { position: relative; width: 150px; height: 200px; margin: 0 auto 6px; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 45%, color-mix(in srgb, var(--aura-lime) 12%, transparent), transparent 72%); }
.gg-skel .gg-emoji { position: absolute; right: 6px; bottom: 6px; font-size: 34px; }
