/* =========================================================
   Lobby Arcade – estilo portal de juegos
   ========================================================= */
:root {
  --bg: #0a0e1f;
  --panel: #131a36;
  --panel-2: #1b2450;
  --line: rgba(255, 255, 255, .08);
  --text: #ffffff;
  --muted: #9aa4d6;
  --yellow: #ffd23f;
  --pink: #ff3e8a;
  --cyan: #2de2ff;
  --green: #3dff8a;
  --purple: #8b5cff;
  --radius: 18px;
  --side: 232px;
  --head: 70px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
  --display: "Arial Black", "Segoe UI Black", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  min-height: 100vh;
  background: var(--bg);
}
/* Fondo decorativo en su propia capa fija: al hacer scroll no se repinta, solo se compone (mucho más fluido) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(139, 92, 255, .22), transparent 60%),
    radial-gradient(800px 500px at 100% 10%, rgba(45, 226, 255, .14), transparent 60%),
    radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 22px 22px;
  transform: translateZ(0);
}
a { color: var(--cyan); }
img { max-width: 100%; display: block; }
button { font: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--yellow); --s: #c79a00; --t: #1a1030;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: var(--display); font-weight: 900; letter-spacing: .5px;
  text-transform: uppercase; font-size: 1rem;
  padding: 13px 26px; border-radius: 14px; text-decoration: none;
  background: var(--b); color: var(--t);
  box-shadow: 0 5px 0 var(--s), 0 10px 24px rgba(0, 0, 0, .35);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--s); }
.btn.pink { --b: var(--pink); --s: #a8124f; --t: #fff; }
.btn.cyan { --b: var(--cyan); --s: #0e8aa3; --t: #06142a; }
.btn.ghost { --b: var(--panel-2); --s: #0b1030; --t: #fff; }
.btn.small { padding: 9px 16px; font-size: .82rem; border-radius: 12px; box-shadow: 0 4px 0 var(--s); }
.btn.big { padding: 18px 38px; font-size: 1.25rem; border-radius: 18px; }

kbd {
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 3px;
  border-radius: 6px; padding: 0 7px; font-family: var(--font); font-size: .85em; color: #fff;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--head);
  background: rgba(10, 14, 31, .97);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { height: 100%; display: flex; align-items: center; gap: 18px; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.logo svg { width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(255, 62, 138, .45)); }
.logo-text { font-family: var(--display); font-weight: 900; font-size: 1.45rem; font-style: italic; letter-spacing: -.5px; line-height: 1; }
.logo-text span {
  display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 8px; font-size: .95rem;
  background: linear-gradient(135deg, var(--yellow), var(--pink)); color: #1a1030; transform: rotate(-6deg) translateY(-2px);
}
.search { flex: 1; max-width: 460px; position: relative; margin-left: 8px; }
.search input {
  width: 100%; height: 44px; border-radius: 999px; border: 2px solid transparent;
  background: var(--panel); color: #fff; padding: 0 18px 0 44px; font: inherit; outline: none;
  transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--purple); background: var(--panel-2); }
.search::before { content: "🔍"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: .95rem; opacity: .8; }
.head-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: var(--panel); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; cursor: pointer; }

/* ---------- Layout con menú lateral ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--head)); }
.sidebar {
  position: sticky; top: var(--head); height: calc(100vh - var(--head)); overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 12px 24px; border-right: 1px solid var(--line); background: rgba(10, 14, 31, .5); contain: paint;
}
.side-title { font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin: 18px 12px 8px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  color: #dfe3ff; text-decoration: none; font-weight: 700; font-size: .97rem;
  transition: background .12s, transform .12s;
}
.side-link .ic {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem;
  background: var(--c, var(--panel-2)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.side-link:hover { background: var(--panel); transform: translateX(3px); }
.side-link.on { background: var(--panel-2); color: #fff; }
.side-link .count { margin-left: auto; font-size: .75rem; color: var(--muted); }
.content { padding: 22px 28px 0; min-width: 0; }

/* ---------- Anuncios ----------
   Huecos de tamaño estándar. Tras la aprobación de AdSense se sustituye el
   contenido de cada .ad por el bloque <ins class="adsbygoogle">. */
.ad {
  position: relative; margin-inline: auto; display: grid; place-items: center;
  border-radius: 12px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px), rgba(19, 26, 54, .6);
  border: 1px dashed rgba(255, 255, 255, .12); color: rgba(154, 164, 214, .55);
  font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; overflow: hidden;
}
.ad::before { content: "Publicidad"; position: absolute; top: 6px; left: 10px; font-size: .62rem; letter-spacing: 1px; opacity: .8; }
.ad-leader { width: 100%; max-width: 970px; height: 90px; margin-block: 6px 26px; }
.ad-rect { width: 300px; height: 250px; }
.ad-sky { width: 300px; height: 600px; }
.ad-fill { width: 100%; height: 100%; min-height: 160px; border-radius: var(--radius); }

/* ---------- Portada: destacado ---------- */
.hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 14px; margin: 0 auto 28px; max-width: 1180px; height: 310px; }
.hero-main {
  position: relative; border-radius: 20px; overflow: hidden; min-height: 0; text-decoration: none; color: #fff;
  display: flex; align-items: flex-end; isolation: isolate; box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.hero-main:hover img { transform: scale(1.04); }
.hero-main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 14, 31, .95) 0%, rgba(10, 14, 31, .35) 55%, transparent 100%); }
.hero-body { padding: 22px 26px; max-width: 520px; }
.hero-kicker {
  display: inline-flex; gap: 6px; align-items: center; font-weight: 900; font-size: .75rem; letter-spacing: 1.5px;
  background: var(--pink); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase;
}
.hero-body h1 { font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: .95; margin: 0 0 8px; letter-spacing: -1px; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.hero-body p { margin: 0 0 14px; color: #d9defc; font-size: 1rem; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }

/* ---------- Secciones ---------- */
.sec { margin-bottom: 36px; }
.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sec-head h2 {
  margin: 0; font-family: var(--display); font-style: italic; font-size: 1.45rem; letter-spacing: -.3px; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.sec-head h2 .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--c, var(--purple)); font-size: 1.1rem; font-style: normal; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.sec-head a { margin-left: auto; color: var(--muted); font-weight: 700; text-decoration: none; font-size: .9rem; }
.sec-head a:hover { color: #fff; }

/* ---------- Tarjetas de juego ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.grid.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile {
  --c: var(--purple);
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--panel); text-decoration: none; color: #fff; isolation: isolate;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; backface-visibility: hidden; }
a.tile:hover { transform: translateY(-5px) scale(1.025); box-shadow: 0 0 0 3px var(--c), 0 16px 34px rgba(0, 0, 0, .45); z-index: 2; }
a.tile:hover img { transform: scale(1.08); }
.tile .t-info {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 11px;
  background: linear-gradient(0deg, rgba(8, 10, 26, .92), transparent);
  display: flex; align-items: end; justify-content: space-between; gap: 8px;
}
.tile .t-info b { font-family: var(--display); font-style: italic; font-size: 1.02rem; line-height: 1.1; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.tile .t-info small { font-size: .7rem; color: #c7cdf5; font-weight: 700; white-space: nowrap; }
.tile .play {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.6); opacity: 0;
  width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); color: #1a1030; display: grid; place-items: center;
  font-size: 1.4rem; box-shadow: 0 6px 0 #c79a00; transition: .18s;
}
a.tile:hover .play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tile .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.b { font-size: .66rem; font-weight: 900; letter-spacing: .8px; padding: 4px 8px; border-radius: 8px; text-transform: uppercase; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.b-new { background: var(--green); color: #06301a; }
.b-hot { background: var(--pink); color: #fff; }
.b-multi { background: var(--cyan); color: #06142a; }
.b-pad { background: rgba(10, 14, 31, .75); color: #fff; }
.tile.is-soon img { filter: saturate(.55) brightness(.55); }
.tile .soon {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.tile .soon span { background: rgba(10, 14, 31, .8); padding: 6px 12px; border-radius: 999px; font-weight: 900; font-size: .72rem; letter-spacing: 1px; }
.tile.ad-tile { background: transparent; box-shadow: none; }
.tile.ad-tile .ad { position: absolute; inset: 0; min-height: 0; }
.hero-side .tile { aspect-ratio: auto; height: 100%; }
.hero-side .tile .t-info b { font-size: 1.15rem; }

.empty { color: var(--muted); padding: 30px; text-align: center; background: var(--panel); border-radius: var(--radius); }

/* ---------- Texto SEO / contenido ---------- */
.prose { max-width: 860px; }
.prose h1 { font-family: var(--display); font-style: italic; font-size: 2rem; letter-spacing: -.5px; }
.prose h2 { margin-top: 32px; font-size: 1.3rem; }
.prose p, .prose li { color: #cfd5f7; }
.prose table { border-collapse: collapse; width: 100%; margin: 12px 0; background: var(--panel); border-radius: 14px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; }
.info-card { content-visibility: auto; contain-intrinsic-size: auto 900px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 6px 28px 24px; }
details { background: var(--panel-2); border-radius: 14px; padding: 13px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 10px 0 0; }

/* ---------- Pie ---------- */
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 120px; border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.site-footer .foot { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ---------- Página de juego ---------- */
.game-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.game-col { min-width: 0; }
.game-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--head) + 16px); }
.game-aside .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-aside .mini .tile .t-info { padding: 16px 8px 6px; }
.game-aside .mini .tile .t-info b { font-size: .8rem; }
.game-aside .mini .tile .t-info small, .game-aside .mini .tile .badges { display: none; }
.game-aside .mini .tile .soon span { font-size: .58rem; padding: 3px 8px; }
.game-aside .mini .tile .play { width: 40px; height: 40px; font-size: 1rem; }

.game-bar {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 16px;
  background: var(--panel); border-radius: 18px; flex-wrap: wrap;
}
.game-bar img { width: 64px; height: 40px; object-fit: cover; border-radius: 10px; }
.game-bar h1 { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.35rem; line-height: 1.1; }
.game-bar p { margin: 0; color: var(--muted); font-size: .88rem; }
.game-bar .chips { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--panel-2); padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #dfe3ff; }

.game {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  background: #120a26; box-shadow: 0 0 0 3px rgba(139, 92, 255, .35), 0 24px 60px rgba(0, 0, 0, .5);
  user-select: none; -webkit-user-select: none;
}
.game:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; }
.game .stage { position: absolute; inset: 0; cursor: none; }
.game .stage canvas { width: 100%; height: 100%; display: block; }

.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--display); text-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.hud .tl { position: absolute; top: 14px; left: 18px; }
.hud .tr { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; pointer-events: auto; }
.hud .score { font-size: 2rem; line-height: 1; font-style: italic; }
.hud .mult { font-size: .95rem; color: var(--yellow); }
.hud .hearts { position: absolute; bottom: 14px; left: 18px; font-size: 1.5rem; letter-spacing: 2px; }
.hud .power { position: absolute; bottom: 16px; right: 18px; font-size: 1rem; color: var(--yellow); }
.hud .sector { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); font-size: .85rem; color: #d9defc; letter-spacing: 3px; }
.hud .bossbar { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); width: 40%; height: 12px; background: rgba(0, 0, 0, .45); border-radius: 99px; overflow: hidden; display: none; border: 2px solid rgba(255, 255, 255, .25); }
.hud .bossbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pink), var(--purple)); }
.hud .toast { position: absolute; top: 30%; left: 0; right: 0; text-align: center; font-size: clamp(1.8rem, 4.4vw, 3.4rem); font-style: italic; opacity: 0; letter-spacing: 1px; color: var(--yellow); }
.hud .toast.show { animation: toast 1.6s ease-out; }
@keyframes toast { 0% { opacity: 0; transform: scale(.6) rotate(-4deg); } 15% { opacity: 1; transform: scale(1.08) rotate(-2deg); } 80% { opacity: 1; transform: scale(1) rotate(-2deg); } 100% { opacity: 0; } }
.hud-btn {
  pointer-events: auto; background: rgba(10, 14, 31, .65); color: #fff; border: 2px solid rgba(255, 255, 255, .15);
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-size: 1rem;
}
.hud-btn:hover { background: rgba(139, 92, 255, .6); }
.crosshair {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; left: 50%; top: 50%;
  border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35);
  transition: border-color .08s, transform .08s;
}
.crosshair::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: #fff; border-radius: 50%; }
.crosshair.lock { border-color: var(--pink); transform: scale(.82); }
/* Mira de precisión: el aro es solo guía, lo que cuenta es el punto central */
.crosshair.precise { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-width: 2px; border-color: rgba(255, 255, 255, .55); }
.crosshair.precise::after { width: 6px; height: 6px; margin: -3px; box-shadow: 0 0 0 2px rgba(0, 0, 0, .7); }
.crosshair.precise.lock { transform: none; border-color: var(--pink); }
.crosshair.precise.lock::after { background: var(--pink); width: 8px; height: 8px; margin: -4px; }
.crosshair.hit { border-color: #fff; transform: scale(1.35) rotate(45deg); }
/* Cruz roja que aparece al acertar */
.hud .hitmark { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: 0; transform: scale(.6); transition: opacity .05s, transform .08s; }
.hud .hitmark::before, .hud .hitmark::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 4px; height: 100%; margin-left: -2px;
  background: linear-gradient(#ff2a4a 0 34%, transparent 34% 66%, #ff2a4a 66%); border-radius: 2px;
  box-shadow: 0 0 6px rgba(255, 42, 74, .8);
}
.hud .hitmark::before { transform: rotate(45deg); }
.hud .hitmark::after { transform: rotate(-45deg); }
.hud .hitmark.on { opacity: 1; transform: scale(1); }
.hud .hitmark.head { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.hud .hitmark.head::before, .hud .hitmark.head::after { background: linear-gradient(#ffd23f 0 34%, transparent 34% 66%, #ffd23f 66%); box-shadow: 0 0 8px rgba(255, 210, 63, .9); }
/* Chuleta de controles en una esquina */
.hud .keys-help {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; gap: 3px;
  font-family: var(--font); font-weight: 700; font-size: .68rem; color: #e6e9ff; text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  background: rgba(10, 14, 31, .45); border-radius: 10px; padding: 7px 9px; opacity: .85; pointer-events: none;
}
.hud .keys-help kbd { font-size: .62rem; padding: 0 4px; margin-right: 2px; border-bottom-width: 2px; }
/* Tarjeta del arma actual */
.hud .weapon-card {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  background: rgba(10, 14, 31, .7); border: 2px solid rgba(255, 255, 255, .15); border-radius: 14px; padding: 6px 14px 6px 10px;
}
.hud .weapon-card .wc-icon { width: 96px; height: 32px; }
.hud .weapon-card .wc-icon svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); }
.hud .weapon-card .wc-text { display: flex; flex-direction: column; line-height: 1.15; }
.hud .weapon-card b { font-size: .95rem; font-style: italic; }
.hud .weapon-card small { font-size: .72rem; color: #c7cdf5; font-family: var(--font); font-weight: 700; }
.hud .weapon-card.kick .wc-icon { animation: kick .09s ease-out; }
@keyframes kick { 0% { transform: translateX(0) rotate(0); } 40% { transform: translateX(-6px) rotate(-4deg); } 100% { transform: translateX(0) rotate(0); } }
.crosshair.lock::after { background: var(--pink); }
.hud .hpbar { position: absolute; bottom: 16px; left: 18px; width: min(34%, 300px); height: 22px; background: rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .25); border-radius: 99px; overflow: hidden; }
.hud .hpbar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, var(--green), #2de2ff); transition: width .2s; }
.hud .hpbar span { position: relative; display: block; text-align: center; font-size: .72rem; line-height: 18px; letter-spacing: 1px; }
.hud .radar { position: absolute; bottom: 12px; right: 12px; width: 110px; height: 110px; }
.hud .radar ~ .power { bottom: 130px; }
.hud .crosshair.fixed { left: 50%; top: 50%; }
.upgrades { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.up-card {
  width: 180px; padding: 18px 14px 14px; border-radius: 18px; border: 3px solid rgba(255, 255, 255, .12);
  background: var(--panel-2); color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: 0 6px 0 #0b1030; transition: transform .12s, border-color .12s; position: relative;
}
.up-card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.up-card .up-ic { font-size: 2.2rem; }
.up-card b { font-family: var(--display); font-style: italic; font-size: 1rem; }
.up-card small { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.up-card kbd { position: absolute; top: 8px; right: 8px; }
.hud .feed { position: absolute; top: 60px; right: 14px; text-align: right; font-family: var(--font); font-weight: 700; font-size: .8rem; line-height: 1.7; }
.hud .feed div { background: rgba(10, 14, 31, .55); display: inline-block; padding: 0 8px; border-radius: 6px; margin-top: 3px; clear: both; float: right; }
.hud .big-count { position: absolute; top: 5%; left: 0; right: 0; text-align: center; font-size: clamp(2.8rem, 8vw, 5.5rem); font-style: italic; line-height: 1; color: #fff; text-shadow: 0 5px 0 rgba(0, 0, 0, .25); }
.hud .tap-hint { position: absolute; bottom: 8%; left: 0; right: 0; text-align: center; font-size: 1rem; letter-spacing: 2px; transition: opacity .4s; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hud .pop { position: absolute; top: 62%; left: 0; right: 0; text-align: center; font-size: 1.2rem; font-style: italic; opacity: 0; }
.hud .pop.show { animation: pop .8s ease-out; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-24px) scale(1); } }
/* ---------- Multijugador ---------- */
.hud .board { position: absolute; top: 60px; right: 14px; font-family: var(--font); font-weight: 700; font-size: .8rem; line-height: 1.75; text-align: right; }
.hud .board div { background: rgba(10, 14, 31, .55); padding: 0 9px; border-radius: 6px; margin-top: 3px; }
.hud .board div.me { background: rgba(255, 210, 63, .3); }
.hud .killfeed { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); font-family: var(--font); font-weight: 700; font-size: .82rem; text-align: center; line-height: 1.7; width: 60%; }
.hud .killfeed div { background: rgba(10, 14, 31, .5); display: inline-block; padding: 0 10px; border-radius: 6px; margin: 2px 0; }
.roombox { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(10, 14, 31, .65); color: #fff; padding: 5px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; pointer-events: none; white-space: nowrap; }
.roombox b { color: var(--yellow); letter-spacing: 2px; }
/* ---------- Drift Low: posición, clasificación y nitro ---------- */
.hud .dl-pos { position: absolute; top: 50px; right: 18px; font-family: var(--display); font-size: 2.6rem; font-style: italic; line-height: 1; color: #ffd23f; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.hud .dl-pos small { font-size: 1.1rem; color: #fff; }
.hud .dl-board { top: 100px; }
.hud .dl-board div { display: flex; gap: 8px; justify-content: flex-end; }
.hud .dl-board span { opacity: .7; }
.hud .dl-map { bottom: 58px; }
.hud .dl-nitro { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(240px, 40%); height: 16px; border-radius: 8px; background: rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .3); overflow: hidden; }
.hud .dl-nitro i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #2de2ff, #8b5cff); }
.hud .dl-nitro span { position: relative; display: block; text-align: center; font-size: .64rem; line-height: 12px; letter-spacing: 2px; font-weight: 800; }
.hud .dl-nitro.ready { border-color: #2de2ff; box-shadow: 0 0 12px #2de2ff; }
/* ---------- Space Dodger: calor del cañón y mejoras ---------- */
.hud .sd-heat { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(260px, 40%); height: 16px; border-radius: 8px; background: rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .3); overflow: hidden; }
.hud .sd-heat i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #2de2ff, #ffd23f 60%, #ff3355); transition: width .08s; }
.hud .sd-heat span { position: relative; display: block; text-align: center; font-size: .66rem; line-height: 12px; letter-spacing: 2px; font-weight: 800; }
.hud .sd-heat.over { border-color: #ff3355; animation: blink .4s infinite; }
.hud .sd-buffs { position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.hud .sd-buffs b { display: block; font-size: .95rem; }
.hud .sd-buffs small { font-size: .7rem; color: #9ff3ff; font-family: var(--font); }
/* ---------- Gun Rush: escalera de armas ---------- */
.hud .gr-ladder { position: absolute; bottom: 66px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.hud .gr-ladder div { position: relative; width: 42px; height: 26px; padding: 3px; border-radius: 6px; background: rgba(10, 14, 31, .55); color: #6d7399; }
.hud .gr-ladder svg { width: 100%; height: 100%; display: block; }
.hud .gr-ladder div.done { color: #3dff8a; opacity: .55; }
.hud .gr-ladder div.now { color: #ffd23f; background: rgba(255, 210, 63, .22); outline: 2px solid #ffd23f; transform: scale(1.15); }
.hud .gr-ladder em { position: absolute; bottom: -15px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .62rem; color: #ffd23f; letter-spacing: 1px; }
.hud .gr-respawn { position: absolute; top: 40%; left: 0; right: 0; text-align: center; font-size: 1.3rem; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.hud .gr-respawn b { color: #ffd23f; font-size: 1.8rem; }
/* ---------- Paintball Squad ---------- */
.pbs-size { grid-template-columns: repeat(4, 1fr); }
.hud .pbs-teams { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(10, 14, 31, .7); padding: 4px 16px; border-radius: 999px; font-family: var(--display); font-size: 1rem; white-space: nowrap; letter-spacing: 1px; }
.hud .pbs-teams b { color: #fff; font-size: 1.2rem; }
.hud .pbs-teams i { color: #fff; font-style: normal; font-size: .8rem; margin: 0 4px; opacity: .7; }
.hud .pbs-spec { position: absolute; top: 34%; left: 0; right: 0; text-align: center; font-size: 1.2rem; text-shadow: 0 2px 6px rgba(0, 0, 0, .9); }
.hud .pbs-spec small { font-size: .8rem; color: #c7cdf5; font-family: var(--font); }
.hud .pbs-gear { position: absolute; bottom: 16px; left: 18px; display: flex; flex-direction: column; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.hud .pbs-gear small { font-size: .72rem; color: #3dff8a; font-family: var(--font); }
/* Votación de mapa */
.pbs-maps { display: grid; grid-template-columns: repeat(3, minmax(0, 210px)); gap: 14px; justify-content: center; margin: 14px 0 6px; }
.pbs-map { position: relative; border: 3px solid transparent; border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0; text-align: left; color: #fff; background: #15182e; transition: transform .12s, border-color .12s; font-family: var(--font); }
.pbs-map:hover { transform: translateY(-3px); }
.pbs-map.mine { border-color: #ffd23f; box-shadow: 0 0 0 3px rgba(255, 210, 63, .35); }
.pbs-map .art { height: 96px; display: grid; place-items: center; font-size: 3.2rem; }
.pbs-map .txt { padding: 8px 10px 10px; }
.pbs-map b { display: block; font-family: var(--display); font-size: 1rem; }
.pbs-map small { display: block; font-size: .72rem; color: #c7cdf5; line-height: 1.3; min-height: 2.6em; }
.pbs-map .bar { height: 8px; background: rgba(255, 255, 255, .12); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.pbs-map .bar i { display: block; height: 100%; width: 0; background: #ffd23f; transition: width .25s; }
.pbs-map .n { position: absolute; top: 8px; right: 8px; background: rgba(10, 14, 31, .75); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .85rem; }
.pbs-map kbd { position: absolute; top: 8px; left: 8px; }
.pbs-map .tag { position: absolute; top: 70px; left: 8px; background: #ffd23f; color: #1a1030; border-radius: 6px; padding: 1px 8px; font-weight: 900; font-size: .72rem; }
@media (max-width: 700px) { .pbs-maps { grid-template-columns: 1fr; } .pbs-map .art { height: 56px; font-size: 2rem; } }
/* ---------- Slope Run: barra hasta la meta ---------- */
.sr-progress { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); width: min(300px, 50%); height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .15); }
.sr-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, #2de2ff, #ffd23f, #ff2a2a); }
.sr-progress b { position: absolute; right: -22px; top: -7px; font-size: .9rem; }
/* ---------- Padball ---------- */
.pb-score { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; background: rgba(10, 14, 31, .7); padding: 6px 18px; border-radius: 999px; font-family: var(--display); font-size: 1.15rem; white-space: nowrap; }
.pb-score .a { color: #2de2ff; } .pb-score .b { color: #ff3e8a; } .pb-score i { color: #fff; font-style: normal; }
.pb-score b { font-size: 1.5rem; color: #fff; }
.pb-info { position: absolute; top: 58px; left: 0; right: 0; text-align: center; font-weight: 800; font-size: .95rem; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }
.pb-touches { position: absolute; top: 84px; left: 0; right: 0; text-align: center; font-weight: 800; color: #fff; font-size: .9rem; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); }
.pb-bar-wrap { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: min(380px, 70%); text-align: center; }
.pb-barlabel { font-weight: 800; font-size: .8rem; color: #fff; min-height: 1.1em; margin-bottom: 5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.pb-bar { position: relative; height: 22px; border-radius: 11px; border: 2px solid rgba(255, 255, 255, .7); transition: opacity .15s, box-shadow .15s;
  background: linear-gradient(90deg, #ff3355 0 30%, #ffd23f 30% 43.5%, #3dff8a 43.5% 56.5%, #ffd23f 56.5% 70%, #ff3355 70% 100%); }
.pb-bar i { position: absolute; top: -6px; bottom: -6px; width: 5px; margin-left: -2.5px; background: #fff; border-radius: 3px; box-shadow: 0 0 6px #000; }
.pb-bar.ready { box-shadow: 0 0 0 3px #3dff8a, 0 0 18px #3dff8a; }
.pb-bar.near { box-shadow: 0 0 0 2px rgba(255, 210, 63, .8); }
.pb-bar.flash { animation: pbflash .25s; }
@keyframes pbflash { 0% { transform: scale(1.08); } 100% { transform: scale(1); } }
.pb-size { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(255, 255, 255, .06); padding: 4px; border-radius: 12px; }
.pb-size button { border: 0; border-radius: 9px; padding: 8px; font: 800 .9rem var(--font); color: #c9cdf0; background: transparent; cursor: pointer; }
.pb-size button.on { background: #ffd23f; color: #1a1030; }
.game .roombox.pb-room { bottom: auto; top: 12px; left: 14px; transform: none; }
.mp-form { display: grid; gap: 10px; width: min(440px, 90vw); margin: 0 auto; }
.mp-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-buttons .btn { padding: 12px 10px; font-size: .9rem; }
.overlay h2.mp-title { font-size: clamp(1.8rem, 4vw, 3rem); }
.overlay { overflow-y: auto; }
.mp-form label { margin: 0; }
.mp-form input[type="text"] {
  font: inherit; font-weight: 800; font-size: 1.05rem; text-align: center; padding: 12px 14px; border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, .15); background: var(--panel-2); color: #fff; outline: none; width: 100%;
}
.mp-form input[type="text"]:focus { border-color: var(--yellow); }
.mp-form .join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.mp-form .join-row input { letter-spacing: 6px; text-transform: uppercase; }
.mp-form .or { color: var(--muted); font-size: .8rem; letter-spacing: 2px; }
.mp-status { min-height: 1.4em; font-weight: 700; font-size: .9rem; color: var(--yellow); margin: 0; }
.hud .shbar { position: absolute; bottom: 42px; left: 18px; width: min(34%, 300px); height: 8px; background: rgba(0, 0, 0, .45); border-radius: 99px; overflow: hidden; }
.hud .shbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2de2ff, #5b6cff); transition: width .2s; }
.hud .minimap { position: absolute; bottom: 12px; right: 12px; width: 130px; height: 130px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .3); }
.hud .minimap ~ .power { bottom: 152px; }
.hud .storm-warn { position: absolute; top: 34%; left: 0; right: 0; text-align: center; color: #c7a8ff; font-size: 1.2rem; animation: blink .8s infinite; }
.rank-list { display: grid; gap: 6px; width: min(460px, 90vw); margin: 10px auto 16px; }
.rank-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: rgba(27, 36, 80, .85); padding: 7px 14px; border-radius: 12px; text-align: left; font-size: .95rem; }
.rank-row.me { outline: 3px solid var(--yellow); }
.rank-row span:last-child { color: var(--muted); font-size: .82rem; }
.paint { position: absolute; inset: 0; pointer-events: none; opacity: 0; filter: blur(2px); }
.overlay select {
  font: inherit; font-weight: 700; background: var(--panel-2); color: #fff; border: 2px solid rgba(255, 255, 255, .15);
  border-radius: 10px; padding: 4px 10px;
}
.flash { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px 40px rgba(255, 30, 60, .85); opacity: 0; }

.overlay {
  position: absolute; inset: 0; display: none; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(20, 10, 45, .45), rgba(8, 5, 20, .9));
  cursor: default; padding: 20px;
}
.overlay.on { display: grid; }
.overlay h2 { font-family: var(--display); font-style: italic; font-size: clamp(2.2rem, 6vw, 4.2rem); margin: 0 0 6px; letter-spacing: -1px; line-height: 1; text-shadow: 0 5px 0 rgba(0, 0, 0, .4); }
.overlay h2 .grad { background: linear-gradient(90deg, var(--yellow), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.overlay p { color: #c7cdf5; margin: 0 0 18px; }
.overlay .final-score { font-family: var(--display); font-size: 3.4rem; color: var(--yellow); line-height: 1.1; font-style: italic; }
.overlay .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.overlay .hint { font-size: .9rem; margin-top: 18px; }
.overlay label { display: flex; gap: 10px; align-items: center; justify-content: center; color: #c7cdf5; font-size: .9rem; margin: 0 0 14px; }
.overlay input[type="range"], .overlay input[type="checkbox"] { accent-color: var(--yellow); }
.record { display: inline-block; background: var(--green); color: #06301a; padding: 4px 14px; border-radius: 999px; font-weight: 900; margin-bottom: 12px; }

/* ---------- Modo clase (botón de pánico) ---------- */
#panic { position: fixed; inset: 0; z-index: 9999; display: none; background: #f1f3f4; color: #202124; font-family: Arial, Helvetica, sans-serif; overflow: auto; }
#panic.on { display: block; }
#panic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; user-select: none; }
#panic-cfg .pc-drop { position: relative; display: grid; place-items: center; min-height: 140px; border: 2px dashed rgba(255, 255, 255, .3); border-radius: 12px; padding: 12px; margin: 6px 0 12px; text-align: center; cursor: pointer; font-size: .85rem; color: #c7cdf5; }
#panic-cfg .pc-drop:hover, #panic-cfg .pc-drop.over { border-color: #ffd23f; background: rgba(255, 210, 63, .06); }
#panic-cfg .pc-drop img { max-width: 100%; max-height: 180px; border-radius: 8px; }
#panic-cfg .pc-drop small { margin: 6px 0 0; }
#panic-cfg .pc-lbl { display: block; font-size: .8rem; color: #c7cdf5; margin-bottom: 10px; }
#panic-cfg .pc-lbl input { margin-top: 4px; }
#panic-cfg .pc-more { margin-bottom: 12px; font-size: .8rem; color: #c7cdf5; }
#panic-cfg .pc-more summary { cursor: pointer; margin-bottom: 6px; }
#panic-cfg .pc-msg.err { color: #ff5577; }
#panic-cfg .pc-box { max-height: calc(100vh - 32px); overflow: auto; }
#panic-cfg { position: fixed; inset: 0; z-index: 10000; background: rgba(5, 6, 20, .7); display: grid; place-items: center; padding: 16px; }
#panic-cfg[hidden] { display: none !important; }
#panic-cfg .pc-box { width: min(460px, 100%); background: #15182e; border: 1px solid rgba(255, 255, 255, .15); border-radius: 18px; padding: 22px; color: #e6e9ff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
#panic-cfg h3 { margin: 0 0 10px; font-family: var(--display); }
#panic-cfg p { font-size: .9rem; margin: 0 0 10px; line-height: 1.45; }
#panic-cfg small { display: block; font-size: .76rem; color: #9aa0c8; margin: 10px 0; line-height: 1.45; }
#panic-cfg input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .15); background: #0c0e1e; color: #fff; font: inherit; }
#panic-cfg .pc-row { display: flex; gap: 8px; flex-wrap: wrap; }
#panic-cfg .pc-msg { margin: 10px 0 0; font-size: .8rem; color: #3dff8a; }
.panic-cfg-btn { padding-left: 10px; padding-right: 10px; }
#panic .p-bar { height: 56px; background: #fff; border-bottom: 1px solid #dadce0; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
#panic .p-ico { width: 28px; height: 36px; background: #4a7bd6; border-radius: 3px; }
#panic .p-title { font-size: 18px; }
#panic .p-menu { font-size: 13px; color: #5f6368; display: flex; gap: 14px; }
#panic .p-page { width: min(816px, 100% - 32px); margin: 24px auto; background: #fff; min-height: 80vh; padding: 72px 80px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
#panic h1 { font-size: 26px; font-weight: 400; margin: 0 0 18px; }
#panic h2 { font-size: 18px; margin: 22px 0 8px; }
#panic p, #panic li { font-size: 15px; line-height: 1.7; color: #202124; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .game-page { grid-template-columns: 1fr; }
  .game-aside { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .game-aside .ad-sky { display: none; }
  .game-aside .mini { grid-template-columns: repeat(4, 1fr); width: 100%; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: var(--head); width: 260px; z-index: 55; background: var(--bg);
    transform: translateX(-100%); transition: transform .2s;
  }
  body.menu-open .sidebar { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  .menu-btn { display: block; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero-main { min-height: 220px; }
  .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero-side .tile { aspect-ratio: 16 / 10; }
  .content { padding: 18px 16px 0; }
  .panic-btn .lbl { display: none; }
  #panic .p-page { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .search { display: none; }
  .game-aside .mini { grid-template-columns: 1fr 1fr; }
  .ad-leader { height: 60px; }
}

/* ---------- Sniper Duel ---------- */
.hud .sn-scope { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 0, transparent 38vmin, rgba(0, 0, 0, .55) 38.4vmin, #000 39.5vmin); pointer-events: none; }
.game:fullscreen .hud .sn-scope { background: radial-gradient(circle at 50% 50%, transparent 0, transparent 44vmin, rgba(0, 0, 0, .55) 44.4vmin, #000 45.5vmin); }
.hud .sn-reticle, .hud .sn-reticle svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud .sn-board { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: grid; gap: 4px; }
.hud .sn-score { display: flex; align-items: center; gap: 10px; background: rgba(10, 14, 31, .78); padding: 5px 14px; border-radius: 999px; font-family: var(--font); font-weight: 800; font-size: .85rem; }
.hud .sn-score .pl { display: grid; min-width: 96px; color: var(--c); max-width: 130px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hud .sn-score .pl.r { text-align: right; }
.hud .sn-score .pl small { color: #c7cdf5; font-size: .68rem; font-weight: 700; }
.hud .sn-score > b { font-family: var(--display); font-size: 1.35rem; white-space: nowrap; }
.hud .sn-score > b i { font-style: normal; margin: 0 6px; color: #6d7399; }
.hud .sn-sub { text-align: center; font-family: var(--font); font-weight: 700; font-size: .72rem; color: #e6e9ff; text-shadow: 0 1px 3px #000; }
.hud .sn-alarm { position: absolute; top: 118px; left: 0; right: 0; text-align: center; font-family: var(--font); font-weight: 900; font-size: .95rem; color: #ff5577; text-shadow: 0 2px 4px #000; animation: snBlink .6s infinite alternate; }
@keyframes snBlink { from { opacity: 1; } to { opacity: .45; } }
.hud .sn-mini { position: absolute; left: 14px; top: 56px; width: 96px; height: 160px; border-radius: 10px; background: rgba(10, 14, 31, .55); border: 2px solid rgba(255, 255, 255, .25); }
.hud .sn-reload { position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%); width: min(160px, 30%); height: 10px; border-radius: 5px; background: rgba(0, 0, 0, .55); overflow: hidden; }
.hud .sn-reload i { position: absolute; inset: 0 auto 0 0; background: #ffb36b; }
.hud .sn-reload span { position: relative; display: block; text-align: center; font-size: .52rem; line-height: 10px; letter-spacing: 2px; font-weight: 800; }
.hud .sn-lock { position: absolute; top: 58%; left: 0; right: 0; text-align: center; font-family: var(--font); font-weight: 800; color: #ffd23f; text-shadow: 0 2px 4px #000; }
.hud .sn-banner { position: absolute; top: 86px; left: 0; right: 0; text-align: center; font-family: var(--display); font-size: 1.1rem; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.hud .sn-info { position: absolute; bottom: 16px; left: 18px; background: rgba(10, 14, 31, .72); padding: 6px 12px; border-radius: 10px; font-family: var(--font); font-weight: 700; font-size: .82rem; }
.hud .sn-info .no { color: #ff7a8a; }
.hud .sn-breath { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); width: min(220px, 36%); height: 14px; border-radius: 7px; background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .3); overflow: hidden; }
.hud .sn-breath i { position: absolute; inset: 0 auto 0 0; width: 100%; background: #2de2ff; }
.hud .sn-breath span { position: relative; display: block; text-align: center; font-size: .6rem; line-height: 10px; letter-spacing: 2px; font-weight: 800; }
.hud .sn-breath.hold { border-color: #2de2ff; box-shadow: 0 0 10px #2de2ff; }
.hud .sn-help { position: absolute; bottom: 16px; right: 18px; font-family: var(--font); font-size: .72rem; font-weight: 700; color: #e6e9ff; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.hud .sn-help kbd { font-size: .62rem; }
.hud .sn-big { position: absolute; top: 40%; left: 0; right: 0; text-align: center; font-family: var(--display); font-size: clamp(1.6rem, 4.5vw, 3rem); font-style: italic; opacity: 0; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.hud .sn-big.show { animation: toast 2.4s ease-out; }

/* ---------- Skate Chill ---------- */
.hud .sk-score { position: absolute; top: 14px; left: 16px; background: rgba(30, 18, 40, .55); padding: 6px 14px; border-radius: 14px; font-family: var(--font); display: grid; }
.hud .sk-score span { font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: #ffd8b8; font-weight: 800; }
.hud .sk-score b { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.hud .sk-score small { font-size: .68rem; color: #ffe8d0; font-weight: 700; }
.hud .sk-score small i { font-style: normal; color: #ffd23f; }
.hud .sk-goals { position: absolute; top: 60px; right: 14px; max-width: 250px; background: rgba(30, 18, 40, .5); padding: 7px 12px 8px; border-radius: 12px; font-family: var(--font); font-size: .72rem; font-weight: 700; }
.hud .sk-goals span { display: block; font-size: .68rem; letter-spacing: 1px; color: #ffd8b8; font-weight: 800; margin-bottom: 3px; }
.hud .sk-goals span i { font-style: normal; color: #3dff8a; margin-left: 4px; }
.hud .sk-goals ul { margin: 0; padding-left: 16px; display: grid; gap: 2px; color: #fff; }
.hud .sk-combo { position: absolute; bottom: 56px; left: 0; right: 0; text-align: center; font-family: var(--font); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.hud .sk-combo.on { opacity: 1; transform: none; }
.hud .sk-combo span { display: block; font-weight: 800; font-size: clamp(.85rem, 2vw, 1.1rem); text-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.hud .sk-combo b { font-family: var(--display); font-size: 1.3rem; color: #ffd23f; text-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.hud .sk-toast { position: absolute; top: 26%; left: 0; right: 0; text-align: center; font-family: var(--display); font-size: clamp(1rem, 3vw, 1.6rem); opacity: 0; text-shadow: 0 3px 0 rgba(0, 0, 0, .3); pointer-events: none; }
.hud .sk-toast.show { animation: toast 2.4s ease-out; }
.hud .sk-help { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: var(--font); font-size: .7rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.hud .sk-help kbd { font-size: .6rem; }
.hud-btn.off { opacity: .45; }
.sk-pick { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0; font-weight: 800; font-size: .85rem; }
.sk-pick > span { width: 70px; text-align: right; color: #c7cdf5; }
.sk-pick > div { display: flex; gap: 8px; }
.sk-sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); background: var(--c); cursor: pointer; padding: 0; }
.sk-sw.deck { border-radius: 10px; width: 40px; height: 22px; }
.sk-sw.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 210, 63, .6); }
.hud .sk-flow { position: relative; margin-top: 5px; height: 9px; border-radius: 5px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.hud .sk-flow i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #ff5ecf, #ffd23f, #3dff8a, #4ad0ff); transition: width .3s; }
.hud .sk-flow em { position: relative; display: block; font-style: normal; font-size: .5rem; line-height: 9px; letter-spacing: 3px; text-align: center; font-weight: 900; color: #fff; }
.hud .sk-flow.on { box-shadow: 0 0 10px #ff8af0; animation: snBlink .5s infinite alternate; }
.hud .sk-bar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 100px; width: min(200px, 40%); height: 12px; border-radius: 6px; background: rgba(0, 0, 0, .5); border: 2px solid rgba(255, 255, 255, .3); overflow: hidden; }
.hud .sk-bar span { position: relative; display: block; text-align: center; font-size: .5rem; line-height: 8px; letter-spacing: 2px; font-weight: 900; }
.hud .sk-charge i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #3dff8a, #ffd23f); }
.hud .sk-paint { position: absolute; left: 0; right: 0; bottom: 8px; display: grid; justify-items: center; gap: 4px; font-family: var(--font); text-shadow: none; }
.hud .sk-paint-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 96%; padding: 7px 10px; border-radius: 14px; background: rgba(30, 18, 40, .78); pointer-events: auto; cursor: default; }
.hud .sk-paint-bar button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 2px solid rgba(255, 255, 255, .25); border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font: 800 .8rem var(--font); cursor: pointer; }
.hud .sk-paint-bar button:hover { border-color: #fff; }
.hud .sk-paint-bar button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 210, 63, .75); }
.hud .sk-colors, .hud .sk-sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.hud .sk-colors button { border-radius: 50%; background: var(--c); }
.hud .sk-colors .rainbow { background: conic-gradient(#ff3b4e, #ffd23f, #2fd96b, #2ab8ff, #b04dff, #ff3b4e); }
.hud .sk-colors .eraser { background: rgba(255, 255, 255, .1); }
.hud .sk-sizes i { width: var(--d); height: var(--d); border-radius: 50%; background: #fff; }
.hud .sk-paint-bar .done { width: auto; padding: 0 10px; background: #2fd96b; color: #0d2a16; }
.hud .sk-paint p { margin: 0; padding: 0 8px; text-align: center; font-size: .68rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); }
.hud .sk-paint kbd { font-size: .58rem; }
.sk-painting .stage { cursor: crosshair; touch-action: none; }
.sk-painting .sk-goals { display: none; }
.sk-painting .hud .sk-combo { bottom: 92px; }
.hud-btn[data-paintbtn].on { background: rgba(255, 210, 63, .75); }
.gf .stage { cursor: crosshair; touch-action: none; }
.hud .gf-photo { position: absolute; top: 12px; left: 12px; width: clamp(130px, 25%, 300px); padding: 6px 6px 4px; background: #fff; border-radius: 5px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transform: rotate(-1.5deg); transform-origin: top left; pointer-events: auto; transition: width .2s; text-shadow: none; }
.hud .gf-photo.big { width: min(46%, 620px); }
.hud .gf-photo canvas { display: block; width: 100%; aspect-ratio: 3 / 2; cursor: copy; }
.hud .gf-photo div { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 2px 0; color: #2a2433; font-family: var(--font); font-size: .78rem; }
.hud .gf-photo button { border: 0; background: none; padding: 0 2px; cursor: pointer; font-size: .85rem; }
.gf .sk-toast { left: 25%; }
.gf .sk-paint-bar { gap: 6px; padding: 6px 8px; }
.gf .sk-paint-bar button { width: 24px; height: 24px; }
.gf .sk-paint-bar .done { width: auto; }
.gf .sk-colors, .gf .sk-sizes { gap: 4px; }
@media (max-width: 900px) { .gf .sk-paint p { display: none; } .gf .sk-paint-bar button { width: 21px; height: 21px; font-size: .7rem; } }
.hud-btn[data-guide].on { background: rgba(255, 210, 63, .75); }
.overlay .gf-styles { grid-template-columns: repeat(6, minmax(0, 92px)); }
.gf-levels { width: min(100%, 860px); }
.gf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.gf-head h3 { margin: 0; font-family: var(--display); font-size: 1.3rem; }
.gf-head span { color: var(--yellow); font-weight: 800; margin-right: auto; }
.gf-head .btn { padding: 6px 14px; font-size: .85rem; }
.gf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.gf-card { display: grid; gap: 1px; padding: 5px; border: 2px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(30, 18, 50, .85); color: #fff; font-family: var(--font); font-size: .74rem; cursor: pointer; transition: transform .12s, border-color .12s; }
.gf-card:hover, .gf-card:focus-visible { transform: translateY(-2px); border-color: var(--yellow); }
.gf-card img, .gf-card i { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; border-radius: 6px; font-style: normal; font-size: 1.8rem; }
.gf-card i { background: linear-gradient(120deg, #ff5ecf, #a04dff, #3fd8e8); }
.gf-card span { color: var(--yellow); font-size: .68rem; font-weight: 700; }
.gf-end { width: min(100%, 820px); }
.gf-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-bottom: 10px; }
.gf-vs figure { margin: 0; padding: 6px 6px 4px; background: #fff; border-radius: 5px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transform: rotate(-1.5deg); }
.gf-vs figure:last-child { transform: rotate(1.5deg); }
.gf-vs canvas { display: block; width: 100%; aspect-ratio: 3 / 2; }
.gf-vs figcaption { color: #2a2433; font-family: var(--font); font-weight: 800; font-size: .8rem; padding-top: 3px; }
.gf-score { display: grid; justify-items: center; font-family: var(--font); }
.gf-score > b { font-family: var(--display); font-style: italic; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; color: var(--yellow); }
.gf-score .record { margin: 6px 0 0; font-size: .72rem; }
.gf-stars { display: flex; font-size: clamp(1.3rem, 3.5vw, 2.1rem); line-height: 1.1; }
.gf-stars i { font-style: normal; color: rgba(255, 255, 255, .22); }
.gf-stars .on { color: var(--yellow); animation: gfStar .4s backwards; }
@keyframes gfStar { from { transform: scale(2.4) rotate(-50deg); opacity: 0; } }
@media (max-width: 700px) { .overlay .gf-styles { grid-template-columns: repeat(3, 1fr); } .gf-grid { grid-template-columns: repeat(3, 1fr); } .gf-vs { gap: 8px; } }
.sk-styles { display: grid; grid-template-columns: repeat(4, minmax(0, 88px)); gap: 8px; justify-content: center; margin: 10px 0 6px; }
.sk-style { border: 3px solid rgba(255, 255, 255, .15); border-radius: 12px; background: linear-gradient(160deg, var(--c), rgba(20, 16, 40, .9) 75%); color: #fff; padding: 6px 4px; cursor: pointer; font-family: var(--font); font-weight: 800; font-size: .72rem; display: grid; gap: 2px; }
.sk-style i { font-style: normal; font-size: 1.4rem; }
.sk-style.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 210, 63, .6); }
.sk-sw.deck { background: linear-gradient(90deg, var(--c) 60%, var(--c2, var(--c)) 60%); }
@media (max-width: 700px) { .sk-styles { grid-template-columns: repeat(4, 1fr); } .sk-style span { font-size: .6rem; } }

/* ---------- Duelo al Sol ---------- */
.hud .wd-board { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; font-family: var(--font); font-weight: 800; }
.hud .wd-row { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-size: .8rem; background: rgba(42, 20, 8, .72); padding: 5px 12px; border-radius: 999px; border: 2px solid rgba(255, 210, 150, .35); }
.hud .wd-row .nm { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffe0a0; }
.hud .wd-row b { color: #ffd23f; letter-spacing: 2px; }
.hud .wd-vs { white-space: nowrap; font-family: Georgia, serif; font-size: .8rem; color: #fff2d0; text-shadow: 0 1px 3px #000; letter-spacing: 2px; }
.hud .wd-banner { position: absolute; top: 64px; left: 0; right: 0; text-align: center; font-family: Georgia, serif; font-style: italic; font-size: 1.05rem; color: #fff2d0; text-shadow: 0 2px 5px #000; }
.hud .wd-big { position: absolute; top: 36%; left: 0; right: 0; text-align: center; font-family: Georgia, "Times New Roman", serif; font-weight: 900; font-size: clamp(2rem, 7vw, 4.4rem); opacity: 0; text-shadow: 0 4px 0 rgba(60, 20, 0, .55), 0 0 30px rgba(0, 0, 0, .4); letter-spacing: 2px; }
.hud .wd-big.show { animation: toast 1.6s ease-out; }
.hud .wd-cross { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; box-shadow: 0 0 3px #000; }
.hud .wd-cross::after { content: ''; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; background: #ff3a2a; border-radius: 50%; }
.hud .wd-hitmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 2rem; font-weight: 900; color: #fff; opacity: 0; text-shadow: 0 0 4px #000; }
.hud .wd-hitmark.show { animation: wdHit .35s ease-out; }
@keyframes wdHit { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1.4); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
.hud .wd-reload { position: absolute; left: calc(50% + 26px); top: calc(50% + 14px); width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#ffd23f calc(var(--p, 1) * 360deg), rgba(0, 0, 0, .45) 0); }
.hud .wd-reload i { position: absolute; inset: 5px; border-radius: 50%; background: rgba(42, 20, 8, .9); }
.hud .wd-reload.ready { background: #7dff8a; }
.hud .wd-help { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: var(--font); font-size: .7rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; }
.hud .wd-help kbd { font-size: .6rem; }
.hud .wd-lock { position: absolute; top: 60%; left: 0; right: 0; text-align: center; font-family: var(--font); font-weight: 800; color: #ffd23f; text-shadow: 0 2px 4px #000; }

/* ---------- Rendimiento y accesibilidad ---------- */
/* Quien prefiere menos movimiento (ajuste del sistema) no ve animaciones de la interfaz */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .tile img, .btn, .side-link, .hero-main img { transition: none !important; }
}
/* En el lienzo del juego no hay gestos del navegador (zoom con dos dedos, arrastrar la página…) */
.game .stage canvas { display: block; touch-action: none; }

/* ---------- Guías ---------- */
.site-header .head-links { display: flex; gap: 4px; }
.site-header .head-links a { color: #dfe3ff; text-decoration: none; font-weight: 800; font-size: .92rem; padding: 8px 12px; border-radius: 12px; white-space: nowrap; }
.site-header .head-links a:hover { background: var(--panel); color: #fff; }
@media (max-width: 860px) { .site-header .head-links { display: none; } }
.guide .crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0 4px; }
.guide .crumbs a { color: var(--muted); }
.guide .meta { color: var(--muted); font-size: .88rem; margin-top: 0; }
.guide h1 { line-height: 1.15; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.guide-cards a, .guide-index a { display: grid; gap: 4px; padding: 10px; border-radius: 14px; background: var(--panel-2); color: #fff; text-decoration: none; border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.guide-cards a:hover, .guide-index a:hover { transform: translateY(-2px); border-color: var(--purple); }
.guide-cards img { width: 100%; height: auto; border-radius: 10px; }
.guide-cards span, .guide-index span { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.guide-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.guide-index i { font-style: normal; font-size: 1.6rem; }
.guide-index.home { margin-top: 0; }
.guide-list { columns: 2 260px; }
.catalog { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.catalog li { line-height: 1.45; }
.catalog small { display: block; color: var(--muted); }
.contact-mail { font-size: 1.15rem; }
main.prose.info-card { margin-inline: auto; }
