:root {
  --ink: #0d0a16;
  --night: #140f24;
  --panel: #1c1630;
  --panel-2: #251d3e;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f1fa;
  --dim: #a9a2c0;
  --magenta: #ff2e88;
  --cyan: #2fd4ff;
  --gold: #ffd31a;
  --green: #2ee6a6;
  --danger: #ff5a6a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); }
img { max-width: 100%; display: block; }
h1, h2, h3, .display {
  font-family: "Russo One", "Rubik", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0;
}

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(13, 10, 22, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: "Russo One", sans-serif; font-size: 18px; letter-spacing: 0.04em; }
.brand small { color: var(--dim); font-family: "Rubik", sans-serif; font-size: 13px; margin-left: 2px; }
.account { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 14px; color: var(--text);
  max-width: 46vw;
}
.chip .avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  font-weight: 700; font-size: 13px; color: #fff;
}
.chip .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Botones (estilo cómic del juego) ---------- */
.btn {
  --face: var(--panel-2); --shade: var(--magenta); --fg: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--face); color: var(--fg);
  font-family: "Russo One", sans-serif; font-size: 16px; letter-spacing: 0.03em; text-decoration: none;
  box-shadow: 5px 5px 0 var(--shade);
  transform: skewX(-8deg);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn > * { transform: skewX(8deg); }
.btn:hover { filter: brightness(1.08); transform: skewX(-8deg) translate(-1px, -1px); box-shadow: 6px 6px 0 var(--shade); }
.btn:active { transform: skewX(-8deg) translate(3px, 3px); box-shadow: 2px 2px 0 var(--shade); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn[disabled] { opacity: 0.5; cursor: default; filter: none; }
.btn.gold { --face: var(--gold); --shade: var(--ink); --fg: #1a1200; }
.btn.green { --face: var(--green); --shade: var(--ink); --fg: #04261a; }
.btn.ghost { --face: transparent; --shade: transparent; border-color: var(--line); transform: none; box-shadow: none; }
.btn.ghost > * { transform: none; }
.btn.ghost:hover { border-color: var(--cyan); transform: none; box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.big { padding: 16px 30px; font-size: 20px; }
.btn.block { display: flex; width: 100%; }
.btn .g { width: 20px; height: 20px; background: #fff; border-radius: 50%; display: grid; place-items: center; }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(88vh, 820px);
  display: grid; align-items: center;
  padding: 40px clamp(16px, 5vw, 64px) 60px;
  background:
    linear-gradient(90deg, rgba(13, 10, 22, 0.94) 0%, rgba(13, 10, 22, 0.7) 45%, rgba(13, 10, 22, 0.2) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(13, 10, 22, 0) 30%),
    url("bg.jpg") center / cover no-repeat;
}
.hero-inner { position: relative; z-index: 2; max-width: 620px; }
.hero .logo { width: min(560px, 100%); margin: 0 0 8px -8px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55)); }
.kicker {
  display: inline-block; margin-bottom: 14px;
  padding: 4px 12px; border-radius: 4px;
  background: var(--magenta); color: #fff;
  font-family: "Russo One", sans-serif; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  transform: skewX(-8deg);
}
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: #e3ddf2; margin: 10px 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero .fiorella {
  position: absolute; z-index: 1; right: clamp(-120px, -4vw, 0px); bottom: 0;
  height: min(92%, 760px); width: auto; max-width: none;
  filter: drop-shadow(-12px 0 30px rgba(255, 46, 136, 0.25));
  pointer-events: none;
}
.note { color: var(--dim); font-size: 14px; }

/* ---------- Secciones ---------- */
section.block { padding: 64px clamp(16px, 5vw, 64px); max-width: 1180px; margin: 0 auto; }
section.block h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
section.block > p.sub { color: var(--dim); margin: 0 0 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--accent, var(--cyan));
}
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { margin: 0; color: #cfc8e2; }
.sync {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, rgba(255, 46, 136, 0.14), rgba(47, 212, 255, 0.1));
  border: 1px solid var(--line); border-radius: 20px; padding: 28px;
}
.sync ul { margin: 12px 0 0; padding-left: 20px; color: #ddd6ee; }
.sync li { margin: 6px 0; }
.sync img { justify-self: center; width: min(320px, 100%); }

/* ---------- Panel de acceso ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px; background: rgba(5, 3, 10, 0.78); backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.auth {
  position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--night); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.auth::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 18px 18px 0 0; background: repeating-linear-gradient(-45deg, var(--gold) 0 12px, var(--ink) 12px 22px); }
.auth .close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 20px; cursor: pointer; }
.auth h2 { font-size: 24px; margin: 6px 0 4px; }
.auth .sub { color: var(--dim); font-size: 15px; margin: 0 0 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--panel); border-radius: 10px; margin-bottom: 18px; }
.tabs button { padding: 9px; border: 0; border-radius: 7px; background: transparent; color: var(--dim); font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--cyan); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
label.field { display: block; margin-bottom: 12px; font-size: 14px; color: var(--dim); }
label.field input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-size: 16px;
}
label.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47, 212, 255, 0.2); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(255, 90, 106, 0.14); border: 1px solid rgba(255, 90, 106, 0.4); color: #ffc2c8; }
.msg.ok { background: rgba(46, 230, 166, 0.12); border: 1px solid rgba(46, 230, 166, 0.4); color: #bff5e2; }
.legal { margin-top: 14px; font-size: 12px; color: var(--dim); text-align: center; }

/* ---------- Pie ---------- */
footer {
  border-top: 1px solid var(--line); margin-top: 30px;
  padding: 28px clamp(16px, 5vw, 64px);
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
  color: var(--dim); font-size: 14px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }

/* ---------- Páginas de texto (privacidad, términos) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 48px clamp(16px, 5vw, 40px) 20px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.doc .updated { color: var(--dim); margin: 0 0 30px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; color: var(--gold); }
.doc p, .doc li { color: #ddd6ee; }
.doc ul { padding-left: 22px; }

/* ---------- Juego ---------- */
body.play { --gamebar: 52px; overflow: hidden; height: 100vh; height: 100dvh; background: #000; }
.stage { position: fixed; inset: var(--gamebar) 0 0 0; background: #000; }
/* barra del juego: logo de Inkomic, "Tactics" y la sesión (con "Salir") a la derecha */
.gamebar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--gamebar);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 clamp(10px, 2.5vw, 24px);
  background: #000; border-bottom: 1px solid var(--line);
}
.gamebar .brand { gap: 12px; min-width: 0; }
.gamebar .brand img { width: auto; height: calc(var(--gamebar) - 14px); }
.gamebar .brand span { font-size: 17px; letter-spacing: 0.14em; color: var(--gold); transform: skewX(-8deg); }
.gamebar .chip { padding: 4px 10px 4px 4px; max-width: 34vw; }
.gamebar .chip .avatar { width: 26px; height: 26px; }
.gamebar .btn.small { padding: 6px 12px; font-size: 13px; }
/* celular acostado: la barra se achica para dejarle lugar al juego */
@media (max-height: 520px) {
  body.play { --gamebar: 38px; }
  .gamebar .brand span { font-size: 14px; }
  .gamebar .chip .who { display: none; }
  .gamebar .chip { padding: 3px; }
}
/* anuncios: costados (160×600) y abajo (728×90). Solo con body.ads; separados del juego para no tocarlos sin querer.
   En pantallas chicas (celular) se ocultan: el juego usa toda la pantalla. */
.stage { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr auto; }
.stage .game { position: relative; min-width: 0; min-height: 0; grid-column: 2; grid-row: 1; }
#ad-left { grid-column: 1; grid-row: 1; }
#ad-right { grid-column: 3; grid-row: 1; }
.ad-rail, .ad-bottom { display: none; }
body.ads .ad-rail, body.ads .ad-bottom { place-items: center; background: #07050c; }
body.ads .ad-rail { width: 176px; padding: 0 8px; }
body.ads .ad-bottom { grid-column: 1 / -1; height: 106px; padding: 8px 0; }
@media (min-width: 1100px) and (min-height: 720px) { body.ads .ad-rail { display: grid; } }
@media (min-width: 760px) and (min-height: 560px) { body.ads .ad-bottom { display: grid; } }
.ad-ph { display: grid; place-content: center; gap: 4px; text-align: center; border: 1px solid #2a2140; border-radius: 6px; background: repeating-linear-gradient(135deg, #0d0a16 0 12px, #110d1d 12px 24px); color: #6d6488; }
.ad-ph span { font-family: "Russo One", sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.ad-ph small { font-size: 11px; opacity: .7; }
#unity-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #0d0a16; outline: none; }
.loader {
  position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 16px;
  background: linear-gradient(0deg, rgba(13, 10, 22, 0.9), rgba(13, 10, 22, 0.75)), url("bg.jpg") center / cover;
}
.loader .logo { width: min(460px, 86vw); margin: 0 auto 18px; }
.bar { width: min(460px, 86vw); height: 14px; margin: 0 auto; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; border: 1px solid var(--line); }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--magenta), var(--gold)); transition: width 0.2s ease; }
.loader p { color: var(--dim); margin: 14px 0 0; }
.loader .actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: 28px; padding-bottom: 300px;
    background:
      linear-gradient(0deg, var(--ink) 0%, rgba(13, 10, 22, 0.55) 40%, rgba(13, 10, 22, 0.85) 100%),
      url("bg.jpg") center / cover no-repeat; }
  .hero .fiorella { height: 320px; right: 50%; transform: translateX(50%); }
  .sync { grid-template-columns: 1fr; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Enlaces de la barra: Códice e Inkomic (se abren en inkomic.com, en otra pestaña) ---------- */
.topbar, .gamebar { gap: 14px; }
.sitenav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.navlink {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--text); text-decoration: none;
  font-family: "Russo One", sans-serif; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.navlink::after { content: "↗"; font-family: "Rubik", sans-serif; font-size: 12px; color: var(--dim); }
.navlink:hover { border-color: var(--cyan); background: rgba(47, 212, 255, 0.08); }
.navlink.codex { border-color: rgba(255, 211, 26, 0.55); color: var(--gold); }
.navlink.codex:hover { background: rgba(255, 211, 26, 0.1); border-color: var(--gold); }
.navlink:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
/* barra del juego: logo de Inkomic + logo de Tactics */
.gamebar .brand .tlogo { height: calc(var(--gamebar) - 16px); width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
@media (max-width: 640px) {
  .topbar .brand span { font-size: 15px; }
  .topbar .brand img { width: 30px; height: 30px; }
  .navlink { padding: 5px 8px; font-size: 12px; letter-spacing: 0.04em; }
  .navlink::after { display: none; }
  .chip .who { max-width: 22vw; }
  .gamebar .brand .tlogo { display: none; }
}
@media (max-height: 520px) {
  .gamebar .navlink { padding: 3px 8px; font-size: 11px; }
  .gamebar .navlink::after { display: none; }
}

/* ---------- Mi cuenta ---------- */
.chip.as-btn { cursor: pointer; font: inherit; font-size: 14px; }
.chip.as-btn:hover { border-color: var(--cyan); }
.chip.as-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.chip .caret { color: var(--dim); font-size: 11px; }
.account-panel { width: min(500px, 100%); }
.acc-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; }
.avatar.big {
  width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--magenta), var(--cyan)); color: #fff; font-weight: 700; font-size: 24px;
}
.tabs.four { grid-template-columns: repeat(4, 1fr); }
.tabs.four button { padding: 9px 4px; font-size: 14px; }
.account-panel h3 { font-size: 17px; margin: 22px 0 4px; }
.account-panel section > h3:first-child { margin-top: 4px; }
.account-panel h3.danger { color: var(--danger); }
.account-panel .sub { font-size: 14px; margin-bottom: 12px; }
.facts { margin: 18px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--dim); font-size: 14px; }
.facts dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.facts + .btn { margin-top: 14px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--panel-2); color: var(--dim); vertical-align: 1px; }
.pill.ok { background: rgba(46, 230, 166, 0.16); color: var(--green); }
.acc-notes { padding-left: 18px; margin-top: 16px; }
.acc-notes li { margin: 4px 0; }
.btn.danger { --face: var(--danger); --shade: var(--ink); --fg: #2a0005; }
@media (max-width: 480px) {
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .tabs.four button { font-size: 13px; }
}
/* el logo nunca se achica a cero: en celular parado se esconde el nombre del jugador (queda la inicial) */
.gamebar .brand { flex: none; }
@media (max-width: 480px) {
  .gamebar { gap: 8px; }
  .gamebar .brand img { height: calc(var(--gamebar) - 20px); }
  .gamebar .chip .who, .gamebar .chip .caret { display: none; }
  .gamebar .chip { padding: 3px; }
  .gamebar .sitenav { gap: 4px; }
}

/* ---------- Portada: solo la barra y el hero, a pantalla completa ---------- */
body.home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.hero.full { flex: 1; min-height: 0; padding-bottom: 76px; }
.hero.full h1 { margin: 0; }
.hero.full .cta { gap: 18px 20px; }
.hero.full .note.cloud { margin: 18px 0 0; font-size: 15px; color: #d5cfe6; }
/* Google Play: bloqueado hasta que salga */
.btn.store { --face: rgba(28, 22, 48, 0.85); --shade: rgba(255, 255, 255, 0.12); --fg: var(--dim); cursor: not-allowed; filter: none; }
.btn.store:hover, .btn.store:active { transform: skewX(-8deg); box-shadow: 5px 5px 0 var(--shade); filter: none; }
.btn.store.big { padding: 10px 22px; font-size: 16px; }
.store-in { display: flex; align-items: center; gap: 12px; }
.store-txt { display: grid; line-height: 1.1; text-align: left; }
.store-txt small { font-family: "Rubik", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.store .lock { opacity: 0.8; }
/* pie del hero: versión a la izquierda, legales chicos a la derecha */
.hero-foot {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  padding: 14px clamp(16px, 5vw, 64px);
  font-size: 13px; color: var(--dim);
}
.hero-foot .version {
  font-family: "Russo One", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px;
  padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line); background: rgba(13, 10, 22, 0.7);
}
.hero-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-foot a { color: var(--dim); text-decoration: none; }
.hero-foot a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 860px) {
  .hero.full { padding-bottom: 330px; }
  .hero.full .fiorella { bottom: 46px; height: 300px; }
  .hero-foot { justify-content: center; background: linear-gradient(0deg, var(--ink) 40%, transparent); }
}
.hero-foot nav { text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, 0.8); }
/* celular: todo el hero entra en una pantalla */
@media (max-width: 860px) {
  .hero.full { padding-top: 20px; padding-bottom: calc(min(30vh, 250px) + 44px); align-items: start; }
  .hero.full .fiorella { height: min(30vh, 250px); bottom: 40px; }
  .hero.full .logo { width: min(300px, 82%); margin-bottom: 4px; }
  .hero.full .kicker { margin-bottom: 8px; }
  .hero.full .lead { font-size: 16px; margin: 6px 0 16px; }
  .hero.full .cta { gap: 12px; }
  .hero.full .btn.big { padding: 12px 22px; font-size: 18px; }
  .hero.full .btn.store.big { padding: 8px 18px; font-size: 15px; }
  .hero.full .note.cloud { font-size: 14px; margin-top: 12px; }
  .hero-foot { padding: 8px 16px; font-size: 12px; }
}
@media (max-width: 640px) {
  .topbar .brand span, .topbar .brand small { display: none; }
}
@media (max-width: 860px) {
  .hero.full .logo { width: auto; max-width: 82%; height: auto; max-height: min(22vh, 190px); }
  .hero.full { padding-bottom: calc(min(26vh, 220px) + 40px); }
  .hero.full .fiorella { height: min(26vh, 220px); }
}
@media (max-width: 860px) { .hero-foot { justify-content: space-between; } }
/* compu con pantalla baja: el logo se achica para que todo entre sin scroll */
.hero.full { min-height: 0; }
@media (min-width: 861px) and (max-height: 860px) {
  .hero.full { padding-top: 24px; }
  .hero.full .logo { width: auto; height: auto; max-width: min(560px, 100%); max-height: 26vh; }
  .hero.full .kicker { margin-bottom: 8px; }
  .hero.full .lead { font-size: 18px; margin: 6px 0 18px; }
}

/* ---------- Portada con efectos: ciudad en parallax, lluvia y Fiorella con neón ---------- */
.hero.full { background: var(--ink); isolation: isolate; --mx: 0; --my: 0; }
.hero.full img.logo { height: auto; }                       /* el logo mantiene sus proporciones */
.hero-bg { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-bg__img {
  position: absolute; inset: -2% -8%;
  background: url("bg.jpg") center / cover no-repeat;
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -8px), 0);
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bg__img { animation: city-pan 26s ease-in-out infinite alternate; }
}
@keyframes city-pan { from { translate: -4% 0; } to { translate: 4% 0; } }
.rain { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 10, 22, 0.94) 0%, rgba(13, 10, 22, 0.7) 42%, rgba(13, 10, 22, 0.15) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(13, 10, 22, 0) 28%);
}
/* Fiorella: más adelante que el fondo, con un halo celeste que late y la sigue con el mouse */
.fio {
  position: absolute; z-index: 1; right: clamp(-120px, -4vw, 0px); bottom: 0;
  height: min(92%, 760px); aspect-ratio: 720 / 787;
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 6px), 0);
  pointer-events: none;
}
.fio .fiorella { position: absolute; inset: auto 0 0 auto; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; transform: none; filter: drop-shadow(0 0 18px rgba(47, 212, 255, 0.35)) drop-shadow(-10px 0 28px rgba(255, 46, 136, 0.18)); }
.fio__glow {
  position: absolute; left: 12%; right: 6%; top: 12%; bottom: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 212, 255, 0.55), rgba(47, 212, 255, 0.18) 55%, transparent 75%);
  filter: blur(38px);
  transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * 12px), 0);
}
@media (prefers-reduced-motion: no-preference) {
  .fio__glow { animation: neon-pulse 3.2s ease-in-out infinite; }
  .btn.glow { animation: btn-glow 2.4s ease-in-out infinite; }
}
@keyframes neon-pulse { 0%, 100% { opacity: 0.7; scale: 1; } 50% { opacity: 1; scale: 1.05; } }
/* botón Jugar con brillo dorado */
.btn.glow { box-shadow: 5px 5px 0 var(--shade), 0 0 22px rgba(255, 211, 26, 0.45); }
@keyframes btn-glow {
  0%, 100% { box-shadow: 5px 5px 0 var(--shade), 0 0 14px rgba(255, 211, 26, 0.35); }
  50% { box-shadow: 5px 5px 0 var(--shade), 0 0 34px rgba(255, 211, 26, 0.85), 0 0 60px rgba(255, 211, 26, 0.3); }
}
.btn.glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%) -120% 0 / 220% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) { .btn.glow::after { animation: btn-shine 3.6s ease-in-out infinite; } }
@keyframes btn-shine { 0%, 55% { background-position: -120% 0; } 85%, 100% { background-position: 220% 0; } }
.fx-off .hero-bg__img, .fx-off .fio, .fx-off .fio__glow { transform: none; animation: none; }
.fx-off .rain { display: none; }

/* pie: versión y, debajo, los legales (todo a la izquierda) */
.hero-foot { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; }
.hero-foot .version { color: var(--text); text-decoration: none; }
.hero-foot .version:hover { border-color: var(--cyan); }
.hero-foot nav { gap: 4px 14px; }

@media (max-width: 860px) {
  .fio { right: 50%; height: min(26vh, 220px); bottom: 40px; transform: translateX(50%); }
  .fio .fiorella { height: 100%; }
  .fio__glow { filter: blur(24px); }
  .hero-bg__img { inset: -2% -6%; }
  .hero.full { padding-bottom: calc(min(26vh, 220px) + 70px); }
  .hero.full .fio + .hero-foot, .hero-foot { align-items: flex-start; }
}
.topbar .brand { flex: none; }
@media (max-width: 420px) { .topbar { gap: 8px; } .topbar .sitenav { gap: 4px; } .topbar .navlink { padding: 5px 7px; font-size: 11px; } }

/* ---------- Tienda web (Mercado Pago) ---------- */
.shopmodal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 16px; background: rgba(5, 3, 10, 0.8); backdrop-filter: blur(6px); }
.shopmodal.open { display: grid; }
.shopmodal__card { width: min(440px, 100%); padding: 26px 24px 20px; text-align: center; background: var(--panel, #171226); border: 2px solid var(--gold); border-radius: 14px; box-shadow: 8px 8px 0 var(--magenta); }
.shopmodal__k { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--magenta); font-weight: 600; }
.shopmodal__card h2 { margin: 0; font-size: 26px; }
.shopmodal__price { margin: 10px 0 0; font-family: "Russo One", sans-serif; font-size: 30px; color: var(--gold); }
.shopmodal__msg { min-height: 20px; margin: 12px 0 0; font-size: 14px; color: var(--dim); }
.shopmodal__msg.err { color: #ff6b8a; }
.shopmodal__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }
.shopmodal__pay { --face: #00b1ea; --fg: #fff; }
.shopmodal__fine { margin: 16px 0 0; font-size: 12px; color: var(--dim); }
