/* Punchillion · web. Marca: docs/brand/README.md (paleta, tipografías, usos del logo).
   El arte (escenarios, enemigos, iconos, héroes) es el del juego: tools/web/build_assets.py. */

@font-face {
  font-family: "Bangers";
  src: url("/assets/fonts/bangers.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/lilita-one.woff2") format("woff2");
  font-display: swap;
}

:root {
  /* Paleta de marca */
  --ink: #1b0c26;
  --night: #1c0e2a;
  --void: #2e1260;
  --hero: #7a3fd0;
  --gold: #ffd23f;
  --orange: #ff7a1a;
  --crimson: #ff3d4d;
  --cream: #fff3a0;
  --gem: #5ef2ff;
  --glitch: #ff3dd2;
  --paper: #fff6e6;      /* texto de lectura sobre oscuro */
  --muted: #c9b8e0;

  --title: "Bangers", "Impact", "Arial Narrow", sans-serif;
  --text: "Lilita One", "Trebuchet MS", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1160px;
  --header: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--night);
  /* Trama de puntos de cómic muy suave */
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
  color: var(--paper);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.45;
  letter-spacing: .01em;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gem); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 50;
}
.skip:focus { left: 8px; }

/* --- Títulos: Bangers en mayúsculas con contorno Tinta y extrusión púrpura, como el rótulo del juego --- */
.title {
  font-family: var(--title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: .98;
  color: var(--gold);
  -webkit-text-stroke: .15em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--void), 0 .12em 0 var(--ink);
  margin: 0;
}
.title .hot { color: var(--orange); }
.title .red { color: var(--crimson); }
.title .cream { color: var(--cream); }

.kicker {
  display: inline-block;
  font-family: var(--title); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); background: var(--gold);
  padding: 5px 12px 3px; border-radius: 6px; transform: rotate(-2deg);
  box-shadow: 0 3px 0 var(--ink);
}

/* --- Cabecera (fija; se vuelve sólida al bajar) --- */
.site-header { position: relative; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--header); padding-top: 10px; padding-bottom: 10px;
}
.landing .site-header { position: fixed; inset: 0 0 auto; transition: background-color .25s, box-shadow .25s; }
.landing .site-header.solid {
  background: rgba(27, 12, 38, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 3px 0 var(--void);
}
.home { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; text-decoration: none; }
.home img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px var(--void); }

.nav { display: none; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--title); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--paper); text-decoration: none; padding: 8px 12px 6px; border-radius: 8px;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
}
.nav a:hover { color: var(--gold); }

.lang { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ink); border: 2px solid var(--void); }
.lang a, .lang span {
  font-family: var(--title); font-size: 1.15rem; letter-spacing: .06em; line-height: 1;
  padding: 7px 12px 6px; border-radius: 999px; text-decoration: none; color: var(--muted);
}
.lang [aria-current] { background: var(--gold); color: var(--ink); }
.lang a:hover { color: var(--paper); }

main { flex: 1; }

/* =========================================================================
   PORTADA
   ========================================================================= */

/* Escenario de la Zona 1 (cielo + sierra del juego), oscurecido hacia Noche */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header) + 8px) 0 64px; text-align: center; }
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scene img { position: absolute; left: 50%; bottom: 0; width: max(100%, 1100px); max-width: none; height: auto; transform: translateX(-50%); }
.scene .sky { top: 0; bottom: auto; height: 100%; object-fit: cover; }
.scene .ridge { bottom: 18%; opacity: .9; }
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(28, 14, 42, .55) 0%, rgba(28, 14, 42, .15) 30%, rgba(28, 14, 42, .35) 62%, var(--night) 96%),
    radial-gradient(ellipse 70% 55% at 50% 40%, transparent 30%, rgba(28, 14, 42, .45) 100%);
}

/* Rayos de impacto girando detrás del móvil */
.rays {
  position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%);
  z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 63, .22) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(closest-side, #000 22%, transparent 72%);
          mask: radial-gradient(closest-side, #000 22%, transparent 72%);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-grid { display: grid; gap: 34px; justify-items: center; position: relative; }
.hero-copy { display: grid; gap: 20px; justify-items: center; }
.hero-logo { width: min(84vw, 420px); margin: 0 auto; filter: drop-shadow(0 10px 0 rgba(27, 12, 38, .5)); }
.hero-logo img { width: 100%; }
.hero h1 { font-size: clamp(2.6rem, 11.5vw, 4.6rem); }
.lead { margin: 0; max-width: 32rem; font-size: 1.25rem; text-shadow: 0 2px 0 var(--ink); }
.lead strong { color: var(--gold); font-weight: 400; }

/* Contador de daño: sube en saltos de x1000 como en el juego, con el glitch de los números enormes */
.meter {
  display: grid; justify-items: center; gap: 2px;
  padding: 10px 22px 12px; border-radius: 18px;
  background: rgba(27, 12, 38, .78); border: 3px solid var(--ink);
  box-shadow: 0 0 0 3px var(--hero), 0 7px 0 3px var(--void);
  transform: rotate(-1.5deg);
  min-width: min(100%, 300px);
}
.meter-label { font-family: var(--title); letter-spacing: .14em; font-size: 1rem; color: var(--muted); text-transform: uppercase; }
.dmg {
  font-family: var(--title); font-size: clamp(3rem, 14vw, 4.4rem); line-height: 1; letter-spacing: .02em;
  color: var(--cream);
  -webkit-text-stroke: .12em var(--ink); paint-order: stroke fill;
  text-shadow: -3px 0 0 var(--gem), 3px 0 0 var(--glitch), 0 6px 0 var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-block; min-width: 4.6ch;
}
.dmg.pop { animation: pop .32s cubic-bezier(.2, 2.2, .4, 1); }
@keyframes pop { 0% { transform: scale(1.35) rotate(-3deg); color: #fff; } 100% { transform: none; } }
.dmg-name { font-family: var(--title); font-size: 1.15rem; letter-spacing: .1em; color: var(--orange); min-height: 1.2em; }

/* Botón de tienda / "Muy pronto" */
.store { display: grid; justify-items: center; gap: 8px; }
.store .note { color: var(--muted); font-size: .95rem; margin: 0; }
.soon {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 0;
  padding: 12px 28px 10px; border-radius: 16px;
  background: var(--gold); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 6px 0 3px var(--void);
  transform: rotate(-2deg);
}
.soon b { font-family: var(--title); font-weight: 400; font-size: 2rem; letter-spacing: .05em; line-height: 1; }
.soon small { font-size: 1rem; }
.badge { display: inline-block; transition: transform .15s; }
.badge:hover { transform: translateY(-3px) rotate(-1deg); }
.badge img { width: 250px; margin: -12px; }  /* la insignia oficial ya trae su margen */

/* Marco de móvil con el clip en bucle */
.phone-col { position: relative; }
.phone {
  position: relative; width: min(70vw, 300px); aspect-ratio: 9 / 16;
  border-radius: 30px; overflow: hidden; background: var(--void);
  border: 6px solid var(--ink);
  box-shadow: 0 0 0 4px var(--gold), 0 14px 0 4px var(--void), 0 30px 70px rgba(0, 0, 0, .55);
  transform: rotate(3deg);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }

/* Onomatopeyas de cómic pegadas al móvil */
.pow {
  position: absolute; z-index: 2;
  font-family: var(--title); text-transform: uppercase; line-height: 1; letter-spacing: .02em;
  color: var(--gold); -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill;
  text-shadow: 0 .08em 0 var(--ink);
  pointer-events: none;
}
.pow::before {  /* estallido detrás */
  content: ""; position: absolute; inset: -55% -35%; z-index: -1;
  background: var(--crimson);
  clip-path: polygon(50% 0, 60% 30%, 90% 10%, 74% 40%, 100% 50%, 74% 60%, 92% 90%, 60% 72%, 50% 100%, 40% 72%, 8% 90%, 26% 60%, 0 50%, 26% 40%, 10% 10%, 40% 30%);
  filter: drop-shadow(0 4px 0 var(--ink));
}
.pow-1 { font-size: 2.2rem; left: -18px; top: 14%; transform: rotate(-14deg); animation: throb 1.6s ease-in-out infinite; }
.pow-2 { font-size: 1.7rem; right: -14px; bottom: 20%; transform: rotate(10deg); color: var(--cream); animation: throb 1.6s .8s ease-in-out infinite; }
.pow-2::before { background: var(--hero); }
@keyframes throb { 50% { scale: 1.12; } }

/* Enemigos del juego flotando por el escenario */
.foes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.foe { position: absolute; width: var(--s, 88px); aspect-ratio: 1; animation: bob 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.foe img { position: absolute; inset: 0; width: 100%; height: 100%; }
.foe.boss { --s: 124px; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(var(--r, 4deg)); } }
.foes .foe:nth-child(1) { left: 2%;  top: 30%; --d: -.4s; --r: -6deg; }
.foes .foe:nth-child(2) { right: 3%; top: 16%; --d: -1.3s; }
.foes .foe:nth-child(3) { left: 4%;  bottom: 14%; --d: -2s; --s: 60px; }
.foes .foe:nth-child(4) { right: 4%; bottom: 8%; --d: -.9s; --r: -4deg; }
.foes .foe:nth-child(5) { left: 47%; bottom: 7%; --d: -2.6s; --s: 64px; }
@media (max-width: 759px) {
  .foes .foe { --s: 50px; }
  .foes .foe.boss { --s: 66px; }
  .foes .foe:nth-child(1) { left: -14px; top: auto; bottom: 26%; }
  .foes .foe:nth-child(2) { right: -18px; top: auto; bottom: 34%; }
  .foes .foe:nth-child(3) { left: -8px; bottom: 6%; }
  .foes .foe:nth-child(4) { right: -8px; bottom: 3%; }
  .foes .foe:nth-child(5) { display: none; }
}

/* Tocar el escenario lanza números de daño, como en el juego */
.tap-zone { cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.hit {
  position: fixed; z-index: 30; pointer-events: none; transform: translate(-50%, -50%);
  font-family: var(--title); line-height: 1; white-space: nowrap;
  color: var(--cream); -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill;
  text-shadow: -2px 0 0 var(--gem), 2px 0 0 var(--glitch), 0 4px 0 var(--ink);
  animation: rise .9s cubic-bezier(.2, .9, .3, 1) forwards;
}
.hit.crit { color: var(--orange); }
@keyframes rise {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(var(--r, 0deg)); }
  15%  { opacity: 1; transform: translate(-50%, -60%) scale(1.25) rotate(var(--r, 0deg)); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(1) rotate(var(--r, 0deg)); }
}
.spark { position: fixed; z-index: 29; width: 90px; height: 90px; pointer-events: none; transform: translate(-50%, -50%); animation: flash .35s ease-out forwards; }
@keyframes flash { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3) rotate(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4) rotate(40deg); } }
.tap-hint { margin: 0; font-size: .95rem; color: var(--muted); }

/* --- Cinta de números: MILES · MILLONES · ... --- */
.ticker {
  position: relative; z-index: 3; overflow: hidden;
  background: var(--crimson); border-block: 4px solid var(--ink);
  transform: rotate(-2deg); margin: -26px -20px 0; box-shadow: 0 8px 0 var(--void);
}
.ticker-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ticker span {
  font-family: var(--title); font-size: 1.6rem; letter-spacing: .06em; white-space: nowrap;
  padding: 10px 0 7px; color: var(--cream);
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill;
}
.ticker span::after { content: "✦"; color: var(--gold); margin: 0 20px; -webkit-text-stroke: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --- Secciones --- */
.section { padding: 72px 0; position: relative; }
.section-head { text-align: center; display: grid; justify-items: center; gap: 14px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2.5rem, 10vw, 4rem); }
.section-head p { margin: 0; max-width: 34rem; color: var(--muted); font-size: 1.15rem; }
.band { background: linear-gradient(180deg, transparent, rgba(46, 18, 96, .6) 14%, rgba(46, 18, 96, .6) 86%, transparent); }

/* Cómo se juega: viñetas de cómic */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 6px 16px; align-items: center;
  padding: 20px 20px 20px 18px; border-radius: 18px;
  background: linear-gradient(160deg, var(--void), var(--night) 90%);
  border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--hero), 0 8px 0 3px var(--ink);
  counter-increment: step;
}
.step:nth-child(odd) { transform: rotate(-1deg); }
.step:nth-child(even) { transform: rotate(1deg); }
.step::before {
  content: counter(step); position: absolute; top: -16px; left: -10px;
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--title); font-size: 1.5rem; color: var(--ink); background: var(--gold);
  border: 3px solid var(--ink); transform: rotate(-8deg);
}
.step img { grid-row: span 2; width: 76px; height: 76px; filter: drop-shadow(0 4px 0 var(--ink)); }
.step h3 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 2rem; letter-spacing: .04em; line-height: 1; color: var(--gold); text-transform: uppercase; }
.step p { margin: 0; color: var(--paper); }

/* Capturas: carrusel con scroll horizontal en móvil, abanico en escritorio */
.shots {
  list-style: none; margin: 0; padding: 12px var(--gutter) 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--hero) transparent;
}
.shots li { scroll-snap-align: center; }
.shots img {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 18px; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--void), 0 18px 40px rgba(0, 0, 0, .4);
  background: var(--void); transition: transform .25s;
}
.hint { text-align: center; color: var(--muted); font-size: .95rem; margin: 0; }

/* Zonas: el escenario de cada una con su jefe */
.zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.zone {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 170px; border-radius: 18px; border: 4px solid var(--ink);
  box-shadow: 0 8px 0 var(--void);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px;
}
.zone > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.zone > img.ridge { position: absolute; left: 0; right: 0; bottom: -10%; width: 100%; height: auto; z-index: -2; }
.zone::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(27, 12, 38, .85)); }
.zone .num { font-family: var(--title); letter-spacing: .12em; color: var(--cream); font-size: 1rem; text-shadow: 0 2px 0 var(--ink); }
.zone h3 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: .04em; color: var(--gold); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-transform: uppercase; }
.zone .boss { font-size: 1rem; color: var(--paper); margin: 2px 0 0; }
.zone .boss b { color: var(--orange); font-weight: 400; }
.zone .foe { position: absolute; right: 14px; top: 10px; left: auto; --s: 80px; filter: drop-shadow(0 5px 0 rgba(27, 12, 38, .6)); }
.zone .foe.many { display: flex; width: auto; aspect-ratio: auto; }
.zone .foe.many span { position: relative; width: 46px; height: 46px; margin-left: -12px; }
.zone .foe.many img { position: absolute; inset: 0; }
.zone.final { box-shadow: 0 0 0 3px var(--crimson), 0 8px 0 3px var(--void); }

/* Skins legendarias */
.skins { list-style: none; margin: 0; padding: 8px var(--gutter) 24px; display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--hero) transparent; }
.skins li { scroll-snap-align: center; display: grid; }
.skin {
  margin: 0; position: relative;
  border-radius: 20px; overflow: hidden; border: 4px solid var(--ink);
  background: var(--void);
  box-shadow: 0 0 0 3px var(--aura, var(--gold)), 0 10px 0 3px var(--ink);
  display: grid; grid-template-rows: auto 1fr;
}
.skin > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.skin figcaption { padding: 12px 14px 14px; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: center; background: var(--ink); }
.skin .rar { font-family: var(--title); letter-spacing: .14em; font-size: .9rem; color: var(--aura, var(--gold)); }
.skin h3 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 1.7rem; line-height: 1; letter-spacing: .03em; color: var(--paper); text-transform: uppercase; }
.skin figcaption > :not(.ulti) { grid-column: 1; }
.skin .ulti { grid-row: 1 / span 3; grid-column: 2; width: 52px; height: 52px; flex: none; padding: 4px; border-radius: 50%; background: var(--night); border: 3px solid var(--aura, var(--gold)); }
.skin .ulti-name { font-size: .95rem; color: var(--muted); }

/* Tráiler */
.trailer {
  max-width: 900px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  border: 5px solid var(--ink); box-shadow: 0 0 0 4px var(--gold), 0 12px 0 4px var(--void), 0 30px 70px rgba(0, 0, 0, .5);
  background: var(--ink); aspect-ratio: 16 / 9;
}
.trailer video { width: 100%; height: 100%; }

/* Cierre */
.final-cta { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 90px 0 100px; }
.final-cta .rays { width: 140%; animation-duration: 80s; }
.final-cta .wrap { display: grid; gap: 26px; justify-items: center; }
.final-cta h2 { font-size: clamp(2.6rem, 11vw, 4.6rem); }
.fist { width: 140px; height: 140px; border-radius: 30px; box-shadow: 0 0 0 4px var(--ink), 0 10px 0 4px var(--void); animation: punch 2.4s ease-in-out infinite; }
@keyframes punch { 0%, 70%, 100% { transform: rotate(-6deg) scale(1); } 78% { transform: rotate(4deg) scale(1.18); } 86% { transform: rotate(-2deg) scale(.96); } }

/* Barra del contador: cuánto falta para el siguiente orden de magnitud */
.meter-bar { width: 100%; height: 10px; margin-top: 6px; border-radius: 99px; background: var(--ink); border: 2px solid var(--void); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: var(--fill, 10%); border-radius: 99px; background: linear-gradient(90deg, var(--crimson), var(--orange), var(--gold)); transition: width .35s cubic-bezier(.2, 1.4, .4, 1); }

/* Cifras */
.stats { position: relative; z-index: 2; padding: 56px 0 8px; }
.stats ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; text-align: center; }
.stats li { display: grid; justify-items: center; }
.stats b {
  font-family: var(--title); font-weight: 400; font-size: clamp(3rem, 13vw, 4.6rem); line-height: .9;
  color: var(--gold); -webkit-text-stroke: .12em var(--ink); paint-order: stroke fill; text-shadow: 0 .07em 0 var(--void);
}
.stats li:nth-child(2) b { color: var(--orange); }
.stats li:nth-child(3) b { color: var(--crimson); }
.stats li:nth-child(4) b { color: var(--cream); }
.stats li:last-child b { color: var(--gem); text-shadow: -3px 0 0 var(--glitch), 0 .07em 0 var(--void); }
.stats span { font-family: var(--title); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-size: 1.05rem; }

/* Zona 6: misterio */
.zone.mystery { box-shadow: 0 0 0 3px var(--crimson), 0 8px 0 3px var(--void); animation: alarm 2.6s ease-in-out infinite; }
@keyframes alarm { 50% { box-shadow: 0 0 0 3px var(--crimson), 0 8px 0 3px var(--void), 0 0 40px rgba(255, 61, 77, .55); } }
.zone.mystery > img.bg, .zone.mystery > img.ridge { filter: blur(3px) brightness(.45) saturate(1.4); transform: scale(1.08); }
.zone.mystery::after { background: radial-gradient(ellipse at 70% 40%, rgba(255, 61, 77, .25), transparent 60%), linear-gradient(180deg, rgba(27, 12, 38, .2), rgba(27, 12, 38, .92)); }
.zone.mystery .foe.many img { filter: brightness(0); }
.zone.mystery .foe.many { filter: drop-shadow(0 0 6px var(--crimson)) drop-shadow(0 0 2px var(--crimson)); opacity: .9; }
.zone.mystery .foe.many span:nth-child(2) { width: 58px; height: 58px; margin-top: -10px; }
.qmark {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 0;
  font-family: var(--title); font-size: 8.5rem; line-height: 1; color: var(--crimson);
  -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill; text-shadow: 0 .05em 0 var(--ink), 0 0 30px rgba(255, 61, 77, .7);
  opacity: .9; animation: wobble 2.2s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: translate(-50%, -54%) rotate(6deg) scale(1.06); } }
.zone h3.glitch { position: relative; color: var(--paper); letter-spacing: .12em; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; -webkit-text-stroke: 0; pointer-events: none;
}
.glitch::before { color: var(--gem); animation: glitch-a 2.4s steps(1) infinite; }
.glitch::after { color: var(--glitch); animation: glitch-b 2.4s steps(1) infinite; }
@keyframes glitch-a { 0%, 86%, 100% { transform: none; opacity: 0; } 88% { transform: translate(-4px, 1px); opacity: .9; clip-path: inset(0 0 55% 0); } 92% { transform: translate(3px, -1px); opacity: .9; clip-path: inset(40% 0 0 0); } }
@keyframes glitch-b { 0%, 87%, 100% { transform: none; opacity: 0; } 89% { transform: translate(4px, 0); opacity: .9; clip-path: inset(50% 0 0 0); } 93% { transform: translate(-3px, 1px); opacity: .9; clip-path: inset(0 0 60% 0); } }

/* Tarjeta "+6 skins" */
.skin.more { --aura: var(--hero); background: radial-gradient(circle at 50% 35%, var(--hero), var(--void) 70%); }
.more-grid { aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; padding: 14%; align-content: center; }
.more-grid img { width: 100%; filter: drop-shadow(0 4px 0 var(--ink)); }
.more-grid img:nth-child(odd) { transform: rotate(-8deg); }
.more-grid img:nth-child(even) { transform: rotate(8deg) translateY(6px); }

/* Tráiler con botón de reproducir propio */
.trailer { position: relative; }
.play {
  position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; cursor: pointer;
  background: rgba(27, 12, 38, .25); display: grid; place-items: center;
}
.play span {
  width: 96px; height: 96px; border-radius: 50%; background: var(--gold);
  border: 5px solid var(--ink); box-shadow: 0 8px 0 var(--ink), 0 0 0 8px rgba(255, 210, 63, .25);
  display: grid; place-items: center; transition: transform .15s;
}
.play span::before { content: ""; margin-left: 8px; border-style: solid; border-width: 20px 0 20px 32px; border-color: transparent transparent transparent var(--ink); }
.play:hover span { transform: scale(1.1) rotate(-6deg); }
.trailer.playing .play, html:not(.js) .play { display: none; }
@media (max-width: 759px) { .play span { width: 68px; height: 68px; } .play span::before { border-width: 14px 0 14px 22px; margin-left: 6px; } }

/* Preguntas frecuentes */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { border-radius: 16px; background: var(--ink); border: 3px solid var(--void); box-shadow: 0 5px 0 var(--void); overflow: hidden; }
.faq details[open] { border-color: var(--hero); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 54px 16px 18px; position: relative;
  font-family: var(--title); font-size: 1.45rem; letter-spacing: .04em; line-height: 1.1; color: var(--paper); text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--ink); font-family: var(--text); font-size: 1.6rem; line-height: 1; padding-bottom: 2px; transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }


/* Aparición al hacer scroll (solo si hay JS y se permite movimiento) */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .8, .3, 1); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* =========================================================================
   Páginas de texto (privacidad, borrar cuenta, 404)
   ========================================================================= */
.page { padding: 32px 0 64px; }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); margin-bottom: 20px; }
.page p { margin: 0 0 14px; }

/* --- Pie --- */
.site-footer { background: var(--ink); border-top: 4px solid var(--void); padding: 30px 0 34px; }
.site-footer .wrap { display: grid; gap: 14px; justify-items: center; text-align: center; }
.site-footer .foot-logo { width: 150px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.site-footer nav a { color: var(--paper); text-decoration: none; font-size: 1.05rem; padding: 6px 2px; display: inline-block; }
.site-footer nav a:hover { color: var(--gold); text-decoration: underline; }
.site-footer small { color: var(--muted); font-size: .9rem; }

/* =========================================================================
   Escritorio
   ========================================================================= */
@media (min-width: 760px) {
  .nav { display: flex; }
  .hero { padding: calc(var(--header) + 28px) 0 96px; text-align: left; min-height: min(100vh, 900px); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; align-items: center; justify-items: start; gap: 24px 56px; }
  .hero-copy { justify-items: start; gap: 22px; }
  .hero-logo { width: min(100%, 620px); margin: 0 0 0 -14px; }
  .hero h1 { font-size: clamp(3rem, 5.6vw, 5rem); }
  .store, .meter { justify-items: start; }
  .meter { justify-items: start; }
  .phone-col { justify-self: center; }
  .phone { width: 310px; }
  .pow-1 { font-size: 3rem; left: -60px; }
  .pow-2 { font-size: 2.3rem; right: -50px; }
  .ticker span { font-size: 2rem; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .zone { min-height: 210px; transition: transform .2s; }
  .zone:hover { transform: translateY(-4px) rotate(-.6deg); }
  .stats ul { grid-template-columns: repeat(5, 1fr); }
  .skin { transition: transform .2s; }
  .skin:hover { transform: translateY(-6px) rotate(1deg); }

  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 8px 0 0; max-width: 780px; margin: 0 auto; gap: 26px; }
  .shots li:nth-child(odd) img { transform: rotate(-2deg); }
  .shots li:nth-child(even) img { transform: rotate(2deg) translateY(18px); }
  .shots img:hover { transform: rotate(0) scale(1.05) !important; }
  .skins { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 8px 0 0; max-width: 900px; margin: 0 auto; gap: 26px; }
  .hint { display: none; }
}
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 18px 22px; }
  .step img { grid-row: auto; width: 96px; height: 96px; }
  .zones { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(6, 1fr); max-width: var(--max); padding: 8px var(--gutter) 0; gap: 18px; }
  .skins { grid-template-columns: repeat(6, 1fr); max-width: var(--max); padding: 8px var(--gutter) 0; gap: 16px; }
  .skin h3 { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}
