/* ZOZOBRA.EXE — web. Paleta: zozobra-brand/brand-guidelines/palette.json (la del juego). */
:root {
  --bg: #050818;
  --bg-2: #0b1638;
  --panel: #0c1330;
  --line: #1c2a55;
  --text: #d8f8ff;
  --muted: #8fa3c7;
  --cyan: #29e0ff;
  --cyan-light: #7df3ff;
  --zozo: #ff3bd4;
  --zozo-dark: #8a1273;
  --danger: #ff2a4a;
  --white: #f4f7ff;
  --mono: 'Plex Mono', 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-light); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 5.2vw, 64px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
p { margin: 0 0 1em; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--zozo); color: var(--bg); padding: 8px 14px; font-weight: 700; }
.skip:focus { top: 12px; }
.eyebrow { color: var(--zozo); font-size: 13px; font-weight: 700; letter-spacing: .24em; margin-bottom: 14px; }
.fine { font-size: 13px; color: var(--muted); }
.text-link { color: var(--cyan-light); font-size: 14px; }

/* ---------- botones ---------- */
.button {
  --b: var(--zozo);
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font: 700 15px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--bg); background: var(--b); border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform .25s var(--ease), filter .25s, box-shadow .25s;
  box-shadow: 0 0 0 rgba(255, 59, 212, 0);
}
.button:hover { transform: translateY(-2px); filter: brightness(1.12); }
.button:active { transform: translateY(1px); }
.button-ghost { --b: transparent; color: var(--cyan-light); box-shadow: inset 0 0 0 2px var(--cyan); clip-path: none; }
.button-ghost:hover { background: rgba(41, 224, 255, .1); }
.button-small { padding: 10px 16px; font-size: 13px; }
.button-wide { width: 100%; justify-content: center; padding-block: 18px; }
.button[aria-busy="true"] { filter: grayscale(.6); cursor: progress; }
.play-mini { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- barra de infección (progreso de lectura) ---------- */
.infection {
  position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; pointer-events: none;
}
.infection-bar { position: absolute; inset: 0; }
.infection-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--cyan), var(--zozo)); box-shadow: 0 0 12px var(--zozo); }
.infection-label, .infection-value { display: none; }
@media (min-width: 900px) {
  .infection-label, .infection-value { display: block; position: fixed; bottom: 18px; font-size: 11px; line-height: 24px; letter-spacing: .2em; color: var(--zozo); background: rgba(5, 8, 24, .85); }
  .infection-label { padding-left: 10px; }
  .infection-label { right: 74px; }
  .infection-value { right: 24px; width: 44px; text-align: right; }
}

/* ---------- cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(5, 8, 24, .82); backdrop-filter: blur(10px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .12em; margin-right: auto; }
.brand img { image-rendering: pixelated; }
.nav { display: flex; gap: 26px; }
.nav a, .lang { color: var(--muted); text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; transition: color .2s; }
.nav a:hover, .lang:hover { color: var(--cyan-light); }
.lang { border: 1px solid var(--line); padding: 6px 10px; }
@media (max-width: 860px) { .nav { display: none; } .brand span { display: none; } .header-inner { gap: 12px; } }

/* ---------- hero con parallax ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.parallax { position: absolute; inset: 0; z-index: -1; }
.layer { position: absolute; will-change: transform; }
.layer-far {
  inset: -8%;
  background-size: cover; background-position: 50% 40%;
  image-rendering: pixelated;
  filter: saturate(1.05) brightness(.7);
}
.float { image-rendering: pixelated; opacity: .5; filter: drop-shadow(0 0 18px rgba(41, 224, 255, .25)); }
.float-1 { width: clamp(120px, 14vw, 256px); left: 4%; top: 14%; opacity: .35; }
.float-2 { width: clamp(110px, 12vw, 228px); right: 6%; top: 10%; opacity: .32; }
.float-3 { width: clamp(60px, 6vw, 120px); left: 46%; top: 8%; opacity: .55; }
.float-4 { width: clamp(56px, 5vw, 112px); right: 22%; bottom: 18%; opacity: .5; }
.float-5 { width: clamp(54px, 5vw, 108px); left: 30%; bottom: 10%; opacity: .45; }
.bits { inset: 0; width: 100%; height: 100%; }
.hex span { position: absolute; left: var(--x); top: var(--y); font-size: 12px; letter-spacing: .2em; color: rgba(41, 224, 255, .28); animation: blink 6s steps(1) infinite; animation-delay: calc(var(--y) * .07s); }
.layer-near { right: 7%; bottom: 0; width: clamp(240px, 30vw, 460px); height: 40%; }
.platform {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(41, 224, 255, .25) 24px 40px, transparent 40px 48px) 0 18px / 100% 4px no-repeat, #0b1638;
  border-top: 4px solid var(--cyan-light);
  box-shadow: 0 -2px 0 var(--cyan), 0 -10px 40px rgba(41, 224, 255, .35);
}
.sprite {
  --scale: 4;
  display: block;
  width: calc(48px * var(--scale)); height: calc(48px * var(--scale));
  background-image: var(--sheet);
  background-size: calc(var(--sheet-w) * 1px * var(--scale)) calc(var(--sheet-h) * 1px * var(--scale));
  background-repeat: no-repeat;
  image-rendering: pixelated;
  animation: strip calc(var(--frames) * .16s) steps(var(--frames)) infinite;
}
@keyframes strip { to { background-position-x: calc(var(--sheet-w) * -1px * var(--scale)); } }
.sprite-hero { position: absolute; left: 50%; bottom: calc(42% - 4px * 4 - 2px); transform: translateX(-50%); --scale: 5; filter: drop-shadow(0 0 22px rgba(255, 59, 212, .55)); }
.vignette { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5, 8, 24, .95) 0%, rgba(5, 8, 24, .7) 35%, rgba(5, 8, 24, 0) 65%),
  linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 24, 0) 30%); }
.scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }

.hero-content { position: relative; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding: 120px 0 90px; }
.hero-content > * { max-width: 620px; }
.hero-title { margin-bottom: 18px; }
.hero-logo { width: min(100%, 560px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 30px rgba(255, 59, 212, .4)); }
.hero-title.has-logo .hero-title-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-title:not(.has-logo) { font-size: clamp(44px, 9vw, 112px); color: var(--zozo); text-shadow: 4px 4px 0 var(--zozo-dark); }
.tagline { position: relative; font-size: clamp(15px, 1.8vw, 20px); font-weight: 700; letter-spacing: .22em; color: var(--white); }
.terminal { color: var(--cyan); font-size: 15px; min-height: 1.6em; }
.cursor { animation: blink 1s steps(1) infinite; margin-left: 2px; }
.hero-lead { color: var(--text); font-size: clamp(15px, 1.4vw, 17px); opacity: .9; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 20px; }
.soon { display: inline-block; font-size: 12px; letter-spacing: .3em; color: var(--danger); border: 1px solid rgba(255, 42, 74, .5); padding: 6px 12px; animation: pulse 2.4s ease-in-out infinite; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--muted); font-size: 11px; letter-spacing: .3em; text-decoration: none; text-transform: uppercase; display: grid; justify-items: center; gap: 8px; }
.scroll-hint::after { content: ''; width: 2px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: drip 1.8s var(--ease) infinite; }
@media (max-width: 760px) {
  .vignette { background: linear-gradient(0deg, rgba(5, 8, 24, .97) 0%, rgba(5, 8, 24, .82) 55%, rgba(5, 8, 24, .35) 100%); }
  .layer-near { right: -6%; height: 34%; width: 62vw; top: 9%; bottom: auto; }
  .sprite-hero { --scale: 3; bottom: calc(42% - 14px); }
  .hero-content { padding-top: 46vh; }
  .float-3, .float-4 { display: none; }
}

/* glitch: separación RGB y cortes horizontales, breve (ART_DIRECTION §30) */
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.glitch::before { color: var(--zozo); transform: translateX(-3px); }
.glitch::after { color: var(--cyan); transform: translateX(3px); }
.glitch.is-glitching::before { opacity: .8; animation: slice 260ms steps(2) both; }
.glitch.is-glitching::after { opacity: .8; animation: slice 260ms steps(2) reverse both; }
.glitch-once.is-in { animation: rgb 420ms steps(3) 1; }
@keyframes slice { 0% { clip-path: inset(10% 0 60% 0); } 50% { clip-path: inset(55% 0 20% 0); } 100% { clip-path: inset(30% 0 45% 0); } }
@keyframes rgb { 0% { text-shadow: -4px 0 var(--zozo), 4px 0 var(--cyan); transform: translateX(2px); } 60% { text-shadow: 3px 0 var(--zozo), -3px 0 var(--cyan); transform: translateX(-2px); } 100% { text-shadow: none; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 18px rgba(255, 42, 74, .35); } }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- cinta de terminal ---------- */
.ticker { border-block: 1px solid var(--line); background: #070c22; overflow: hidden; white-space: nowrap; font-size: 12px; letter-spacing: .2em; color: var(--cyan); padding: 12px 0; }
.ticker-track { display: inline-flex; animation: ticker 60s linear infinite; }
.ticker-track span { padding-right: 4em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-bottom: 20px; }
.section-intro { color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); }
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- tráiler ---------- */
.trailer { background: radial-gradient(60% 50% at 50% 30%, rgba(41, 224, 255, .08), transparent 70%); }
.monitor { border: 1px solid var(--line); background: #02040d; box-shadow: 0 0 0 1px rgba(41, 224, 255, .08), 0 40px 120px rgba(41, 224, 255, .12), 0 0 80px rgba(255, 59, 212, .08); }
.monitor-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.monitor-bar span { width: 10px; height: 10px; background: var(--line); }
.monitor-bar span:first-child { background: var(--danger); }
.monitor-bar b { margin-left: auto; font-weight: 400; letter-spacing: .14em; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player video { width: 100%; height: 100%; display: block; }
.player-facade, .player-pending {
  position: absolute; inset: 0; border: 0; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 18px;
  background-size: cover; background-position: center; image-rendering: pixelated; color: var(--white); font: inherit;
}
.player-facade::before, .player-pending::before { content: ''; position: absolute; inset: 0; background: rgba(5, 8, 24, .45); transition: background .3s; }
.player-facade:hover::before { background: rgba(5, 8, 24, .2); }
.player-facade > *, .player-pending > * { position: relative; }
.play-icon { width: clamp(72px, 9vw, 112px); aspect-ratio: 1; background: var(--zozo); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); display: grid; place-items: center; transition: transform .3s var(--ease); box-shadow: 0 0 40px var(--zozo); }
.play-icon::after { content: ''; border-left: 26px solid var(--bg); border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 8px; }
.player-facade:hover .play-icon { transform: scale(1.08); }
.play-label { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; }
.player-pending p { font-size: 15px; letter-spacing: .1em; }
.video-error { position: absolute; left: 12px; bottom: 12px; background: var(--danger); color: var(--white); padding: 6px 10px; margin: 0; }

/* ---------- cómo se juega: relato con captura fija ---------- */
.story { display: grid; gap: 40px; }
.story-visual { display: none; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 56px; counter-reset: step; }
.story-step { border-left: 2px solid var(--line); padding-left: 24px; transition: border-color .4s; }
.story-step.is-current { border-color: var(--zozo); }
.step-number { display: block; color: var(--zozo); font-size: 13px; letter-spacing: .3em; margin-bottom: 10px; }
.story-step h3 { margin-bottom: 14px; }
.story-step p { color: var(--muted); }
.story-inline { image-rendering: pixelated; border: 1px solid var(--line); margin-top: 18px; width: 100%; }
@media (min-width: 960px) {
  .story { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .story-visual { display: block; position: sticky; top: 14vh; height: fit-content; }
  .story-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 60px rgba(41, 224, 255, .08); overflow: hidden; }
  .story-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
  .story-shot.is-active { opacity: 1; transform: none; }
  .story-steps { gap: 0; }
  .story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
  .story-inline { display: none; }
}

/* ---------- cifras ---------- */
.stats { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 59, 212, .06), rgba(41, 224, 255, .06)); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.stats p { margin: 0; display: grid; gap: 4px; }
.stats b { font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--white); text-shadow: 3px 3px 0 var(--zozo-dark); }
.stats span { color: var(--muted); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- zonas: visor, una zona por pantalla (flechas, botones y deslizar) ---------- */
.zones-viewer { position: relative; }
.zones-track { position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; outline-offset: 4px; }
.zones-track::-webkit-scrollbar { display: none; }
.zone {
  position: relative; flex: 0 0 100%; height: min(72vh, 620px); min-height: 440px; scroll-snap-align: start; scroll-snap-stop: always;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; background: #02040d;
}
.zones-controls { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.zones-controls[hidden] { display: none; }
.zones-btn { flex: none; width: 48px; height: 48px; background: var(--panel); color: var(--text); border: 1px solid var(--line); font: 700 24px/1 var(--mono); cursor: pointer; transition: border-color .3s, color .3s, opacity .3s; }
.zones-btn:hover:not(:disabled) { border-color: var(--zozo); color: var(--zozo); }
.zones-btn:disabled { opacity: .35; cursor: default; }
.zones-dots { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.zones-dot { width: 100%; padding: 10px 6px; background: transparent; color: var(--muted); border: 0; border-top: 2px solid var(--line); font: 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-align: left; cursor: pointer; transition: color .3s, border-color .3s; }
.zones-dot b { color: inherit; }
.zones-dot:hover, .zones-dot[aria-current="true"] { color: var(--accent); border-top-color: var(--accent); }
@media (max-width: 720px) {
  .zones-dot { text-align: center; padding-inline: 0; }
  .zones-dot span { display: none; }
}
.zone-bg { position: absolute; inset: -6%; z-index: -3; background-size: cover; background-position: center; image-rendering: pixelated; filter: brightness(.75); }
.zone::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 8, 24, .98) 18%, rgba(5, 8, 24, .2) 70%); }
.zone-layer { position: absolute; z-index: -2; image-rendering: pixelated; opacity: .55; }
.zone-chip { width: 42%; left: 6%; top: 8%; }
.zone-structure { width: 34%; right: 8%; top: 22%; opacity: .4; }
.zone-boss-art { position: absolute; z-index: -1; right: 4%; top: 6%; width: 46%; image-rendering: pixelated; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 50%, transparent)); }
.zone-body { padding: clamp(24px, 4vw, 48px); width: 100%; max-width: 640px; }
.zone .zone-index { font-size: 64px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); margin-bottom: 8px; }
.zone h3 { color: var(--accent); font-size: clamp(26px, 3vw, 38px); margin-bottom: 8px; text-shadow: 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent); }
.zone-tagline { color: var(--white); font-style: italic; }
.zone p { color: var(--muted); font-size: 15px; }
.zone-boss { margin: 0; color: var(--white) !important; letter-spacing: .14em; font-weight: 700; }
.zone-boss span { color: var(--danger); margin-right: 8px; font-size: 12px; }

/* ---------- selector de malware ---------- */
.select { display: grid; gap: 28px; }
.malware-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.malware-panel > * { min-width: 0; }
.malware-tab {
  display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); font: 700 12px/1 var(--mono); letter-spacing: .1em;
  transition: border-color .2s, color .2s, transform .2s, background .2s;
}
.malware-tab:hover { color: var(--text); transform: translateY(-2px); }
.malware-tab[aria-selected="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 25%, transparent); }
.sprite-small { --scale: 1.5; }
.malware-tab:not([aria-selected="true"]) .sprite-small { animation-play-state: paused; filter: grayscale(.5) brightness(.8); }
.malware-panels { position: relative; }
.malware-panel { display: grid; gap: 28px; align-items: center; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: radial-gradient(70% 90% at 25% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--panel); padding: clamp(20px, 4vw, 48px); }
.js .malware-panel[data-inactive] { display: none; }
.js .malware-panel.is-entering { animation: rgb 380ms steps(3) 1; }
/* The floor sits where the feet are: sprites are centred and their feet land on row 45 of 48. */
.malware-stage { --stage-scale: 5; display: grid; place-items: center; min-height: 260px; position: relative; }
.malware-stage::after { content: ''; position: absolute; top: calc(50% + 21px * var(--stage-scale) - 5px); width: 60%; height: 10px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 60%, transparent), transparent); }
.sprite-big { --scale: var(--stage-scale, 5); filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 45%, transparent)); }
.malware-type { color: var(--muted); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 8px; }
.malware-info h3 { font-size: clamp(36px, 5vw, 60px); color: var(--accent); margin-bottom: 10px; }
.malware-quote { color: var(--white); font-style: italic; }
.malware-passive { border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); }
.malware-passive .label { display: block; font-size: 11px; letter-spacing: .24em; color: var(--muted); margin-bottom: 6px; }
.passive-name { color: var(--accent); font-weight: 700; margin-right: 10px; }
@media (min-width: 820px) { .malware-panel { grid-template-columns: 1fr 1.2fr; } .malware-tabs { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
@media (max-width: 520px) { .malware-stage { --stage-scale: 4; } .sprite-small { --scale: 1; } .malware-tabs { gap: 6px; } .malware-tab { padding-inline: 2px; } .malware-tab span { font-size: 9px; letter-spacing: 0; } }

/* ---------- galería del artbook ---------- */
.art-grid { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1280px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: 14px; }
.art-grid li { min-width: 0; }
.art-grid .art-big { grid-column: span 2; grid-row: span 2; }
.art-grid .art-wide { grid-column: span 2; }
.art-card { display: block; position: relative; height: 100%; text-decoration: none; color: var(--text); border: 1px solid var(--line); background: #070a1c; overflow: hidden; transition: border-color .4s; }
.art-card img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; transition: transform .7s var(--ease), filter .5s; filter: brightness(.9); }
.art-card:hover, .art-card:focus-visible { border-color: var(--zozo); }
.art-card:hover img, .art-card:focus-visible img { transform: scale(1.04); filter: none; }
.art-card span { position: absolute; left: 0; bottom: 0; padding: 8px 12px; background: rgba(5, 8, 24, .85); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; border-top: 1px solid var(--zozo); opacity: .85; transition: opacity .3s; }
.art-card:hover span, .art-card:focus-visible span { opacity: 1; }
@media (max-width: 720px) {
  .art-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; gap: 10px; }
}
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(2, 4, 13, .94); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; padding: 60px 16px; }
.lightbox img { max-height: calc(100vh - 140px); max-width: calc(100vw - 140px); width: auto; object-fit: contain; image-rendering: pixelated; border: 1px solid var(--line); }
.lightbox figcaption { color: var(--muted); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.lightbox-btn { position: fixed; background: var(--panel); color: var(--text); border: 1px solid var(--line); width: 48px; height: 48px; font: 700 22px/1 var(--mono); cursor: pointer; }
.lightbox-btn:hover { border-color: var(--zozo); color: var(--zozo); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; }
.lightbox-next { right: 16px; top: 50%; }

/* ---------- reserva ---------- */
.reserve { overflow: hidden; border-top: 1px solid var(--line); }
.reserve-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 80% 40%, rgba(255, 59, 212, .14), transparent 70%), radial-gradient(40% 50% at 10% 80%, rgba(41, 224, 255, .1), transparent 70%); }
.reserve-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .reserve-grid { grid-template-columns: 1fr 1fr; } }
.reserve-form { display: grid; gap: 18px; margin-top: 32px; max-width: 520px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input[type="email"], .field input[type="text"] {
  font: 400 16px/1.4 var(--mono); color: var(--text); background: #02040d; border: 1px solid var(--line); padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(41, 224, 255, .15); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field-check label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--zozo); }
.field-check .field-error { grid-column: 1 / -1; }
.field-error { color: var(--danger); font-size: 13px; margin: 0; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:focus { outline: none; }
.status { margin: 0; padding: 14px 16px; border-left: 3px solid var(--cyan); background: rgba(41, 224, 255, .07); }
.status-ok, .status-downloads { border-color: var(--zozo); background: rgba(255, 59, 212, .08); }
.status-ok b { color: var(--zozo); display: block; margin-bottom: 4px; letter-spacing: .1em; text-transform: uppercase; }
.status-error { border-color: var(--danger); background: rgba(255, 42, 74, .08); }
.status-downloads ul { margin: 8px 0 0; padding-left: 20px; }
.gifts h3 { margin-bottom: 26px; color: var(--white); }
.gift-stack { position: relative; aspect-ratio: 16 / 11; perspective: 1200px; }
.gift { position: absolute; margin: 0; width: 78%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #02040d; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transition: transform .7s var(--ease), box-shadow .5s; overflow: hidden; }
.gift img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.gift:nth-child(1) { left: 0; top: 0; transform: rotateY(12deg) rotateZ(-3deg); }
.gift:nth-child(2) { right: 0; bottom: 0; transform: rotateY(-10deg) rotateZ(3deg); border-color: var(--zozo); }
.gift-stack:hover .gift:nth-child(1) { transform: rotateY(0) rotateZ(-1deg) translate(-4%, -4%); }
.gift-stack:hover .gift:nth-child(2) { transform: rotateY(0) rotateZ(1deg) translate(4%, 4%); box-shadow: 0 30px 90px rgba(255, 59, 212, .3); }
.gift-empty { display: grid; place-items: center; font-size: 64px; color: var(--zozo); }
.gift-locked { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.gift-teaser { position: absolute; inset: -8%; background-size: cover; background-position: center; filter: blur(4px) saturate(1.1) brightness(.55); pointer-events: none; }
.gift-mark { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(56px, 9vw, 112px); font-weight: 700; color: var(--white); text-shadow: 0 0 18px var(--zozo), 0 0 42px rgba(255, 59, 212, .6); pointer-events: none; }
.gifts .fine { margin-top: 22px; }

/* ---------- pie ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; background: #02040d; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footer p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.footer-brand { color: var(--zozo) !important; font-weight: 700; letter-spacing: .14em; }
.footer-links { display: grid; gap: 8px; justify-items: end; font-size: 14px; }
.studio { border-radius: 50%; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; justify-items: start; } .footer-links { justify-items: start; } }

/* ---------- menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .layer { transform: none !important; }
}
