/* ============================================================
   GamesMas · Design System — DARK GAMER FUTURISTA
   Paleta extraída del logo oficial (games+):
     #000107 fondo · #00D7FD cian neón · #0087FA azul eléctrico
     #F9FBFC blanco · #B6C9DC gris frío
   Dark fijo: es una plataforma gamer, no hay light mode.
   ============================================================ */

:root {
  /* Superficies */
  --bg-0: #000107;
  --bg-1: #00081E;
  --bg-2: #001033;
  --bg-3: #001A4A;
  --glass: rgba(0, 20, 62, .38);
  --glass-hi: rgba(0, 30, 84, .55);

  /* Líneas */
  --line: #0A2A5E;
  --line-soft: rgba(10, 42, 94, .55);
  --line-neon: rgba(0, 215, 253, .35);

  /* Texto */
  --txt: #F9FBFC;
  --txt-2: #B6C9DC;
  --txt-3: #5A7391;

  /* Acentos */
  --neon: #00D7FD;
  --electric: #0087FA;
  --deep: #0147F9;
  --danger: #FF4D6D;
  --success: #00E58A;
  --warning: #FFB020;
  --gold: #FFC53D;
  --silver: #C8D6E5;
  --bronze: #D98E4A;

  /* Gradientes */
  --grad-neon: linear-gradient(135deg, #00D7FD 0%, #0087FA 100%);
  --grad-deep: linear-gradient(135deg, #0147F9 0%, #00D7FD 100%);
  --grad-panel: linear-gradient(160deg, rgba(0, 30, 84, .55) 0%, rgba(0, 8, 30, .35) 100%);

  /* Glow */
  --glow-s: 0 0 14px rgba(0, 215, 253, .35);
  --glow-m: 0 0 28px rgba(0, 215, 253, .45);
  --glow-l: 0 0 56px rgba(0, 135, 250, .40);

  /* Layout */
  --header-h: 62px;
  --footer-h: 66px;
  --radius: 14px;
  --chamfer: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text; -moz-user-select: text; user-select: text;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--txt);
  background: var(--bg-0);
  overscroll-behavior-y: none;
}
/* Malla técnica + halos, la firma visual del logo */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 135, 250, .20), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 215, 253, .10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(1, 71, 249, .10), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(10, 42, 94, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 42, 94, .22) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 80%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; }
h1 { font-size: 28px; letter-spacing: -.01em; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
p { margin: 0; }
a { color: var(--neon); text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }

/* Tipografía display para títulos gamer */
.display {
  font-family: "Orbitron", Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--txt-3); font-weight: 600;
}
.neon-txt { color: var(--neon); text-shadow: 0 0 16px rgba(0, 215, 253, .55); }
.muted { color: var(--txt-3); }
.dim { color: var(--txt-2); }

/* ---------- Layout ---------- */
.app-main { padding-top: var(--header-h); min-height: 100vh; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem; }
.container-narrow { max-width: 460px; }
@media (max-width: 768px) {
  .container { padding: 1.25rem 1rem; }
  .app-main { padding-bottom: calc(var(--footer-h) + 16px); }
}

/* ---------- Header ---------- */
.gm-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 900;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(0, 1, 7, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.gm-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent); opacity: .55;
}
.gm-brand { display: flex; align-items: center; gap: .6rem; cursor: pointer; margin-right: auto; }
.gm-brand img { height: 38px; width: 38px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(0, 215, 253, .55)); }
.gm-brand-name { font-family: "Orbitron", Inter, sans-serif; font-weight: 800; font-size: 16px; letter-spacing: .08em; }
.gm-brand-name b { color: var(--neon); }

.gm-nav-desktop { display: flex; align-items: center; gap: .25rem; }
.gm-nav-desktop a {
  display: flex; align-items: center; gap: .45rem;
  padding: .5rem .85rem; border-radius: 10px;
  color: var(--txt-2); font-size: 14px; font-weight: 500;
  transition: color .18s, background .18s;
}
.gm-nav-desktop a:hover { color: var(--txt); background: rgba(0, 135, 250, .12); }
.gm-nav-desktop a.active { color: var(--neon); background: rgba(0, 215, 253, .10); box-shadow: inset 0 0 0 1px var(--line-neon); }
.gm-nav-desktop i { width: 17px; height: 17px; }
@media (max-width: 900px) { .gm-nav-desktop { display: none; } }

/* Chips de economía en el header */
.hud-chips { display: flex; gap: .5rem; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 34px; padding: 0 .7rem; border-radius: 9px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.chip i { width: 15px; height: 15px; }
.chip-tokens { color: var(--gold); border-color: rgba(255, 197, 61, .3); }
.chip-tokens i { color: var(--gold); }
.chip-puntos { color: var(--neon); border-color: var(--line-neon); }
.chip-puntos i { color: var(--neon); }
@media (max-width: 480px) {
  .chip { padding: 0 .55rem; font-size: 12px; }
  .gm-brand-name { display: none; }
  .hide-xs { display: none !important; }
}

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.4rem;
  border: 0; border-radius: 11px;
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn i { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-neon); color: #00121F; box-shadow: 0 4px 22px rgba(0, 135, 250, .40); }
.btn-primary:hover { box-shadow: 0 6px 30px rgba(0, 215, 253, .55); }
.btn-ghost { background: var(--glass); color: var(--txt); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-neon); color: var(--neon); }
.btn-danger { background: rgba(255, 77, 109, .14); color: var(--danger); border: 1px solid rgba(255, 77, 109, .35); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: 13.5px; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* Ripple (skill 31) */
.ripple { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255, 255, 255, .35);
  animation: ripple-anim .6s linear; pointer-events: none;
}
.btn-primary .ripple-wave { background: rgba(0, 20, 40, .28); }
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ---------- Paneles ---------- */
.panel {
  position: relative;
  background: var(--grad-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.panel-neon { border-color: var(--line-neon); box-shadow: var(--glow-s), inset 0 1px 0 rgba(0, 215, 253, .12); }
/* Corte diagonal tipo HUD, el detalle del marco del logo */
.panel-cut { clip-path: var(--chamfer); border-radius: 0; }
.panel-cut::before {
  content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--neon), transparent 70%); opacity: .7;
}
.panel-title { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.panel-title i { width: 18px; height: 18px; color: var(--neon); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1rem; }
.grid-games { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 560px) { .grid-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Stat / KPI ---------- */
.stat {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 12px; padding: .95rem 1.1rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.stat-val { font-family: "Orbitron", Inter, sans-serif; font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--txt-3); font-weight: 600; }
.stat-neon .stat-val { color: var(--neon); text-shadow: 0 0 18px rgba(0, 215, 253, .5); }
.stat-gold .stat-val { color: var(--gold); text-shadow: 0 0 18px rgba(255, 197, 61, .45); }

/* ---------- Card de juego ---------- */
.game-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 210px; padding: 1.25rem;
  background: var(--grad-panel);
  border: 1px solid var(--line);
  clip-path: var(--chamfer);
  cursor: pointer;
  transition: border-color .22s, transform .22s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--line-neon); }
.game-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at 80% 0%, rgba(0, 215, 253, .22), transparent 62%);
}
.game-card:hover::before { opacity: 1; }
.game-card > * { position: relative; }
.game-icon {
  width: 54px; height: 54px; border-radius: 13px; margin-bottom: .9rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-neon); color: #00121F;
  box-shadow: 0 0 26px rgba(0, 135, 250, .45);
}
.game-icon i { width: 27px; height: 27px; }
.game-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.game-card h3 { margin-bottom: .3rem; }
.game-card p { font-size: 13.5px; color: var(--txt-2); flex: 1; }
.game-meta { display: flex; gap: 1.1rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line-soft); }
.game-meta div { display: flex; flex-direction: column; }
.game-meta b { font-size: 15px; color: var(--neon); font-family: "Orbitron", Inter, sans-serif; }
.game-meta span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--txt-3); }
.badge-soon {
  position: absolute; top: 0; right: 0;
  padding: .3rem .7rem; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(0, 0, 0, .5); color: var(--txt-3); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* ---------- Hero (composición asimétrica) ---------- */
.hero { position: relative; padding: 3.5rem 1.5rem 2.5rem; max-width: 1180px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; } .hero { padding: 2.25rem 1rem 1.5rem; } }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
  padding: .35rem .8rem; border-radius: 99px;
  background: rgba(0, 215, 253, .10); border: 1px solid var(--line-neon);
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--neon);
}
.hero-kicker i { width: 13px; height: 13px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); font-family: "Orbitron", Inter, sans-serif; font-weight: 900; letter-spacing: -.01em; line-height: 1.05; }
.hero h1 em { font-style: normal; background: var(--grad-neon); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { margin: 1rem 0 1.9rem; font-size: 16.5px; color: var(--txt-2); max-width: 46ch; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art img { width: min(320px, 78%); filter: drop-shadow(0 0 60px rgba(0, 135, 250, .6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-ring {
  position: absolute; width: min(380px, 92%); aspect-ratio: 1;
  border: 1px solid var(--line-neon); border-radius: 50%;
  animation: spin 26s linear infinite;
}
.hero-ring::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: var(--neon); box-shadow: var(--glow-m);
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img, .hero-ring { animation: none; } }

/* ---------- Formularios ---------- */
.field { margin-bottom: 1.05rem; }
.field > label { display: block; margin-bottom: .4rem; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--txt-3); font-weight: 600; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > i:first-child {
  position: absolute; left: 13px; width: 17px; height: 17px; color: var(--txt-3); pointer-events: none;
}
.input {
  width: 100%; min-height: 50px;
  padding: .8rem 1rem .8rem 2.55rem;
  background: rgba(0, 8, 30, .75); color: var(--txt);
  border: 1px solid var(--line); border-radius: 11px;
  font-size: 15px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input::placeholder { color: var(--txt-3); }
.input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0, 215, 253, .13); }
.input-wrap.no-icon .input { padding-left: 1rem; }
.toggle-pass {
  position: absolute; right: 6px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--txt-3); border-radius: 9px;
}
.toggle-pass:hover { color: var(--neon); }
.toggle-pass i { width: 18px; height: 18px; }
.field-error { margin-top: .35rem; font-size: 12.5px; color: var(--danger); min-height: 17px; }
.form-foot { margin-top: 1.4rem; text-align: center; font-size: 14px; color: var(--txt-2); }

/* ---------- Barra de progreso de nivel ---------- */
.lvl-bar { height: 9px; border-radius: 99px; background: rgba(0, 8, 30, .9); border: 1px solid var(--line); overflow: hidden; }
.lvl-fill { height: 100%; border-radius: 99px; background: var(--grad-neon); box-shadow: var(--glow-s); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.lvl-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; flex-shrink: 0;
  font-family: "Orbitron", Inter, sans-serif; font-weight: 800; font-size: 22px;
  color: var(--neon);
  background: radial-gradient(circle, rgba(0, 135, 250, .25), transparent 70%);
  border: 2px solid var(--neon); border-radius: 50%;
  box-shadow: var(--glow-m), inset 0 0 18px rgba(0, 215, 253, .2);
}

/* ---------- Avatar ---------- */
.avatar {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--grad-deep); color: #00121F;
  font-family: "Orbitron", Inter, sans-serif; font-weight: 800; font-size: 28px;
  border: 2px solid rgba(0, 215, 253, .5); box-shadow: var(--glow-s);
  object-fit: cover; overflow: hidden;
}
.avatar-sm { width: 40px; height: 40px; font-size: 15px; border-width: 1px; }

/* ---------- Ranking ---------- */
.rank-row {
  display: flex; align-items: center; gap: .85rem;
  padding: .8rem 1rem; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line-soft);
  margin-bottom: .55rem;
}
.rank-row.yo { border-color: var(--neon); box-shadow: var(--glow-s); }
.rank-pos {
  width: 34px; flex-shrink: 0; text-align: center;
  font-family: "Orbitron", Inter, sans-serif; font-weight: 800; font-size: 16px; color: var(--txt-3);
}
.rank-1 .rank-pos { color: var(--gold); text-shadow: 0 0 14px rgba(255, 197, 61, .6); }
.rank-2 .rank-pos { color: var(--silver); }
.rank-3 .rank-pos { color: var(--bronze); }
.rank-name { flex: 1; min-width: 0; }
.rank-name b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name span { font-size: 11.5px; color: var(--txt-3); }
.rank-pts { font-family: "Orbitron", Inter, sans-serif; font-weight: 800; font-size: 15px; color: var(--neon); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .4rem; margin-bottom: 1.25rem; overflow-x: auto; padding-bottom: .2rem; }
.tab {
  flex-shrink: 0; padding: .5rem 1rem; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--txt-2); font-size: 13.5px; font-weight: 600;
}
.tab.active { color: var(--neon); border-color: var(--line-neon); background: rgba(0, 215, 253, .10); }

/* ---------- Estados vacíos / error (skill 04) ---------- */
.state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 3rem 1.5rem; gap: .6rem;
}
.state-icon {
  width: 66px; height: 66px; border-radius: 50%; margin-bottom: .4rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 135, 250, .10); border: 1px solid var(--line);
}
.state-icon i { width: 28px; height: 28px; color: var(--txt-3); }
.state h3 { font-size: 17px; }
.state p { color: var(--txt-2); font-size: 14px; max-width: 40ch; }
.state .btn { margin-top: .9rem; }

/* ---------- Skeleton ---------- */
.sk { border-radius: 10px; background: linear-gradient(90deg, rgba(0,30,84,.35) 25%, rgba(0,50,120,.5) 37%, rgba(0,30,84,.35) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Toast (nunca alert) ---------- */
#toast-host {
  position: fixed; left: 50%; bottom: calc(var(--footer-h) + 18px); transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: .5rem; align-items: center;
  pointer-events: none; width: calc(100% - 2rem); max-width: 420px;
}
@media (min-width: 769px) { #toast-host { bottom: 24px; } }
.toast {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1.1rem; border-radius: 12px;
  background: rgba(0, 12, 36, .96); border: 1px solid var(--line);
  color: var(--txt); font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
  animation: toast-in .28s cubic-bezier(.2, .9, .3, 1);
}
.toast i { width: 18px; height: 18px; flex-shrink: 0; }
.toast.error { border-color: rgba(255, 77, 109, .5); } .toast.error i { color: var(--danger); }
.toast.success { border-color: rgba(0, 229, 138, .5); } .toast.success i { color: var(--success); }
.toast.warning { border-color: rgba(255, 176, 32, .5); } .toast.warning i { color: var(--warning); }
.toast.info { border-color: var(--line-neon); } .toast.info i { color: var(--neon); }
.toast.out { animation: toast-out .25s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Modal (skill 02) ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(0, 1, 7, .78); backdrop-filter: blur(6px);
  animation: fade .2s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 520px; max-height: 90vh;
  display: flex; flex-direction: column;
  background: var(--bg-1); border: 1px solid var(--line-neon);
  border-radius: 16px; box-shadow: var(--glow-l), 0 24px 60px rgba(0, 0, 0, .6);
  animation: modal-in .26s cubic-bezier(.2, .9, .3, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal-head {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.1rem 1.35rem; border-bottom: 1px solid var(--line-soft);
}
.modal-head h3 { flex: 1; font-size: 17px; }
.modal-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--txt-3); border-radius: 9px; }
.modal-close:hover { color: var(--danger); }
.modal-body { flex: 1; overflow-y: auto; padding: 1.35rem; }
.modal-foot { padding: 1rem 1.35rem; border-top: 1px solid var(--line-soft); display: flex; gap: .7rem; justify-content: flex-end; }
@media (max-width: 560px) {
  .modal-wrap { align-items: flex-end; padding: 0; }
  .modal { max-width: 100%; border-radius: 18px 18px 0 0; max-height: 88vh; }
}

/* ---------- Footer nav mobile (skill 31) ---------- */
.gm-footer {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
  height: var(--footer-h);
  background: rgba(0, 1, 7, .93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  padding-bottom: env(safe-area-inset-bottom);
}
.gm-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent); opacity: .5;
}
.gm-footer a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-height: 44px; color: var(--txt-3); font-size: 10px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.gm-footer a i { width: 21px; height: 21px; }
.gm-footer a.active { color: var(--neon); }
.gm-footer a.active i { filter: drop-shadow(0 0 8px rgba(0, 215, 253, .8)); }
@media (max-width: 900px) { .gm-footer { display: flex; } }

/* Grid del menú "Ver más" */
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.more-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem .5rem; min-height: 88px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 13px;
  color: var(--txt-2); font-size: 11.5px; font-weight: 600; text-align: center;
}
.more-item i { width: 22px; height: 22px; color: var(--neon); }
.more-item.danger { color: var(--danger); } .more-item.danger i { color: var(--danger); }

/* ---------- Splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem;
  background: var(--bg-0);
  transition: opacity .5s;
}
#splash .sp-glow {
  position: absolute; width: min(560px, 90vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 135, 250, .30), transparent 65%);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
#splash img { position: relative; width: min(240px, 62vw); filter: drop-shadow(0 0 44px rgba(0, 215, 253, .55)); }
#splash .sp-tag { position: relative; color: var(--txt-2); font-size: 13.5px; letter-spacing: .04em; }
#splash .sp-bar { position: relative; width: min(240px, 62vw); height: 3px; border-radius: 3px; background: rgba(10, 42, 94, .8); overflow: hidden; }
#splash .sp-fill { height: 100%; width: 0; background: var(--grad-neon); box-shadow: var(--glow-s); transition: width .1s linear; }
#splash .sp-skip {
  position: absolute; bottom: 28px; background: none; border: 0;
  color: var(--txt-3); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
}

/* ---------- Utilidades ---------- */
.row { display: flex; align-items: center; gap: 1rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wrap-gap { display: flex; flex-wrap: wrap; gap: .7rem; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.1rem; } .mt-3 { margin-top: 1.8rem; }
.mb-2 { margin-bottom: 1.1rem; } .mb-3 { margin-bottom: 1.8rem; }
.text-c { text-align: center; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.sec-head h2 { display: flex; align-items: center; gap: .55rem; }
.sec-head h2 i { width: 20px; height: 20px; color: var(--neon); }
.divider { height: 1px; background: var(--line-soft); margin: 1.5rem 0; }
