/* =============================================================
   PIXELRAP.COM — CERO
   Estética: híbrido pixel-art + neón frecuencias
   ============================================================= */

:root {
  --bg:        #0a0a12;
  --bg-2:      #11111d;
  --bg-3:      #16162a;
  --ink:       #ececf5;
  --muted:     #9090ad;
  --cyan:      #2ce5ff;
  --magenta:   #ff3d9a;
  --yellow:    #ffd62e;
  --purple:    #7a5cff;
  --line:      #2a2a44;

  --pixel:  'Press Start 2P', monospace;
  --term:   'VT323', monospace;
  --body:   'Rubik', system-ui, -apple-system, Segoe UI, sans-serif;

  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { image-rendering: pixelated; max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--magenta); color: #fff; }

/* =============================================================
   FX: onda sinusoidal de fondo (canvas) + medidor vertical
   ============================================================= */

#waveBg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* el contenido tiene que pisar al canvas */
.nav, .hero, .section, .cta-band, .footer { position: relative; z-index: 2; }

/* ---------- tótem 3D — flythrough por secciones ----------
   Estructura generada por JS:
     <main class="totem">
       <div class="totem__viewport">    ← sticky top:0, 100vh, contiene todas las secciones
         <section class="section">       ← position: absolute, todas superpuestas
           <div class="section__inner">  ← recibe el transform 3D
         ...
       </div>
       <div class="totem__spacer"> × N  ← extiende la altura del totem para drivear el scroll
     </main>
   El scroll dentro del totem dispara el ciclo de vida de cada sección:
     enter (0-0.30) → pin (0.30-0.70) → exit (0.70-1.00)
*/

.totem {
  position: relative;
  display: block;
}

.totem__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  perspective: 1500px;
  perspective-origin: 50% 50%;   /* centro: alineado con el vanishing del túnel 3D */
}

.totem__spacer {
  height: 180vh;          /* scroll por sección — más alto = más tiempo de emerger/pin/salir */
}
.page-prologo .totem__spacer {
  height: 320vh;          /* prólogo: cínico/lento, cada panel respira mucho */
}

.totem .section {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  max-width: none;
  border: none;
  will-change: opacity;
  pointer-events: none;     /* las secciones inactivas no bloquean clicks */
}
.totem .section.is-active { pointer-events: auto; }

/* ---------- sección INTRO (logo + "presenta") ---------- */
.totem .section--intro {
  background: transparent !important;
  border: none !important;
}
.totem .section--intro .section__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.intro__logo {
  display: block;
  width: min(78vw, 940px);
  height: auto;
  filter: drop-shadow(0 0 38px rgba(140, 100, 240, 0.55))
          drop-shadow(0 0 12px rgba(80, 130, 255, 0.45));
}
.intro__kicker {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 30px);
  color: rgba(232, 232, 240, 0.55);
  letter-spacing: 6px;
  text-transform: lowercase;
}

/* ---------- sección TÍTULO DEL JUEGO ("Cerounno: el videojuego") ---------- */
.totem .section--game-title {
  background: transparent !important;
  border: none !important;
}
.totem .section--game-title .section__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 6vw, 80px);
}
.game-title-text {
  font-family: var(--pixel);
  font-size: clamp(36px, 8.5vw, 110px);
  line-height: 1.15;
  letter-spacing: 4px;
  color: var(--ink);
  text-align: center;
  text-shadow:
    0 0 26px rgba(140, 100, 240, 0.65),
    0 0 52px rgba(80, 130, 255, 0.40);
}

/* ---------- frags lateralizados (us vs them) ---------- */
.totem .section--frag-left .section__inner {
  justify-content: flex-start;
  padding-left: clamp(24px, 10vw, 180px);
  padding-right: clamp(24px, 6vw, 80px);
}
.totem .section--frag-right .section__inner {
  justify-content: flex-end;
  padding-right: clamp(24px, 10vw, 180px);
  padding-left: clamp(24px, 6vw, 80px);
}
.section--frag-left .frag  { text-align: left;  max-width: 16ch; }
.section--frag-right .frag { text-align: right; max-width: 16ch; }

.totem .section--alt {
  background: rgba(17, 17, 29, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-top: 2px solid rgba(42, 42, 68, 0.5);
  border-bottom: 2px solid rgba(42, 42, 68, 0.5);
}

/* cards / items: translucentes para que se siga viendo el túnel */
.totem .card,
.totem .world__item {
  background: rgba(17, 17, 29, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-color: rgba(42, 42, 68, 0.7);
}
.totem .loop__step {
  background: rgba(22, 22, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-color: rgba(42, 42, 68, 0.7);
}
.totem .mode {
  background: rgba(10, 10, 18, 0.50);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-color: rgba(42, 42, 68, 0.7);
}

.section__inner {
  width: 100%;
  max-width: var(--maxw);
  padding: clamp(40px, 5vw, 80px) clamp(16px, 5vw, 48px);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

/* items internos: hidden por default; .is-stepped los revela */
.totem .reveal:not(.section__head):not(.is-stepped) {
  opacity: 0;
  transform: translateY(22px) scale(0.97);
}
.totem .is-stepped {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.totem .section__head { transition: opacity 0.5s ease, transform 0.5s ease; }

@media (max-width: 820px) {
  /* en mobile desactivo todo el efecto: layout normal, sections apiladas */
  .totem { position: static; }
  .totem__viewport {
    position: static;
    height: auto;
    overflow: visible;
    perspective: none;
  }
  .totem__spacer { display: none; }
  .totem .section {
    position: relative;
    inset: auto;
    pointer-events: auto;
    padding: clamp(64px, 9vw, 100px) clamp(16px, 5vw, 48px);
    min-height: 0;
  }
  .totem .section__inner {
    transform: none !important;
    padding: 0;
  }
  .totem .reveal:not(.is-stepped) { opacity: 1; transform: none; }
}

/* medidor vertical lateral */
#eqMeter {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: rgba(10, 10, 18, 0.5);
  border: 2px solid var(--line);
  backdrop-filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.eqMeter__top {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--term);
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(44, 229, 255, 0.6);
}
.eqMeter__hz { font-size: 24px; line-height: 1; min-width: 48px; text-align: right; transition: color 0.3s; }
.eqMeter__unit { font-size: 12px; color: var(--muted); }

.eqMeter__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 36px;
}
.eqMeter__bars .bar {
  height: 4px;
  background: var(--line);
  width: 100%;
  transform-origin: left center;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.eqMeter__bars .bar.is-near {
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(44, 229, 255, 0.5);
}
.eqMeter__bars .bar.is-active {
  background: var(--magenta);
  transform: scaleX(1.4);
  box-shadow: 0 0 12px rgba(255, 61, 154, 0.9);
}

.eqMeter__label {
  font-family: var(--pixel);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 4px;
  text-align: center;
  min-height: 12px;
  transition: color 0.3s;
}

@media (max-width: 820px) {
  #eqMeter { display: none; }
  #waveBg { opacity: 0.35; }
}

/* ---------- audio toggle (esquina inferior izquierda) ---------- */
.audio-toggle {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(10, 10, 18, 0.6);
  border: 2px solid var(--line);
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 1.5px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  user-select: none;
}
.audio-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.audio-toggle.is-playing {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(10, 10, 18, 0.75);
  box-shadow: 0 0 16px rgba(44, 229, 255, 0.25);
}

.audio-toggle__icon {
  font-family: var(--term);
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  transition: color 0.2s, text-shadow 0.2s;
}
.audio-toggle.is-playing .audio-toggle__icon {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(44, 229, 255, 0.8);
}

/* mini ecualizador animado dentro del botón */
.audio-toggle__eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.audio-toggle.is-playing .audio-toggle__eq { display: inline-flex; }
.audio-toggle__eq span {
  display: block;
  width: 3px;
  background: var(--cyan);
  animation: audioEq 0.7s ease-in-out infinite alternate;
}
.audio-toggle__eq span:nth-child(2) { animation-duration: 0.5s; animation-delay: 0.1s; }
.audio-toggle__eq span:nth-child(3) { animation-duration: 0.9s; animation-delay: 0.25s; }
@keyframes audioEq {
  from { height: 3px; }
  to   { height: 14px; }
}

@media (max-width: 820px) {
  .audio-toggle {
    bottom: 12px;
    left: 12px;
    padding: 8px 10px;
    font-size: 8px;
  }
  .audio-toggle__label { display: none; }
}

/* ---------- scanline overlay ---------- */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  opacity: 0.5;
  mix-blend-mode: multiply;
}

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(10, 10, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 12px; }

.nav__brand-img {
  height: 30px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.footer .nav__brand-img { height: 36px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--cyan); }

/* lang switch */
.lang { display: flex; border: 2px solid var(--line); }
.lang__btn {
  font-family: var(--term);
  font-size: 17px;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.15s;
}
.lang__btn.is-active { background: var(--magenta); color: #fff; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 24px;
  height: 3px;
  background: var(--ink);
  transition: 0.2s;
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(122, 92, 255, 0.22), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 61, 154, 0.16), transparent 55%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 40%, #000 10%, transparent 75%);
  opacity: 0.5;
}

.hero__inner { position: relative; max-width: 820px; }

.hero__kicker {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--pixel);
  font-size: clamp(56px, 14vw, 150px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: 4px;
  text-shadow:
    4px 4px 0 var(--magenta),
    8px 8px 0 var(--cyan);
}

.hero__subtitle {
  font-family: var(--term);
  font-size: clamp(20px, 3.4vw, 32px);
  color: var(--cyan);
  margin-top: 26px;
  letter-spacing: 0.5px;
}

.hero__desc {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin: 14px auto 0;
}

/* equalizer */
.equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 64px;
  margin: 34px 0;
}
.equalizer span {
  width: 8px;
  background: linear-gradient(var(--cyan), var(--magenta));
  animation: eq 0.9s ease-in-out infinite alternate;
}
.equalizer span:nth-child(odd)  { animation-duration: 0.7s; }
.equalizer span:nth-child(3n)   { animation-duration: 1.1s; }
.equalizer span:nth-child(3n+1) { animation-delay: 0.15s; }
.equalizer span:nth-child(4n)   { animation-delay: 0.3s; background: linear-gradient(var(--yellow), var(--magenta)); }
@keyframes eq {
  from { height: 8px; }
  to   { height: 64px; }
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__badge {
  font-family: var(--term);
  font-size: 18px;
  color: var(--muted);
  margin-top: 22px;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 16px 24px;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 5px 5px 0 var(--magenta);
}
.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--magenta);
}
.btn--primary:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--magenta);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--big { font-size: 13px; padding: 20px 34px; }

/* =============================================================
   SECTIONS (shared)
   ============================================================= */
.section {
  padding: clamp(64px, 9vw, 120px) clamp(16px, 5vw, 48px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section--alt {
  max-width: none;
  background: var(--bg-2);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.section--alt > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section__head { max-width: 720px; margin-bottom: 56px; }

.eyebrow {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--magenta);
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.section__title {
  font-family: var(--pixel);
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.35;
  margin-bottom: 18px;
}

.section__lead {
  color: var(--muted);
  font-size: 17px;
}

/* =============================================================
   CARDS (juego)
   ============================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg-2);
  border: 2px solid var(--line);
  padding: 30px 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.card__icon {
  font-size: 30px;
  color: var(--cyan);
  margin-bottom: 16px;
}
.card h3 {
  font-family: var(--pixel);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.card p { color: var(--muted); font-size: 15px; }

/* =============================================================
   LOOP
   ============================================================= */
.loop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
}
.loop__step {
  position: relative;
  background: var(--bg-3);
  border: 2px solid var(--line);
  padding: 28px 22px;
}
.loop__step::after {
  content: '▸';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--magenta);
  font-size: 20px;
  z-index: 2;
}
.loop__step:last-child::after { content: '↻'; color: var(--cyan); }
.loop__num {
  font-family: var(--pixel);
  font-size: 22px;
  color: var(--purple);
  display: block;
  margin-bottom: 14px;
}
.loop__step h3 {
  font-family: var(--pixel);
  font-size: 12px;
  margin-bottom: 10px;
}
.loop__step p { color: var(--muted); font-size: 14px; }

/* =============================================================
   MUNDO
   ============================================================= */
.world {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.world__item {
  border: 2px solid var(--line);
  border-left: 6px solid var(--magenta);
  padding: 28px 26px;
  background: var(--bg-2);
}
.world__item:nth-child(2) { border-left-color: var(--cyan); }
.world__item:nth-child(3) { border-left-color: var(--yellow); }
.world__tag {
  font-family: var(--term);
  font-size: 22px;
  color: var(--cyan);
}
.world__item h3 {
  font-family: var(--pixel);
  font-size: 14px;
  margin: 10px 0 12px;
}
.world__item p { color: var(--muted); font-size: 15px; }

/* =============================================================
   MODOS
   ============================================================= */
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.mode {
  background: var(--bg);
  border: 2px solid var(--line);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.mode::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.mode:hover { transform: translateY(-4px); }
.mode:hover::before { transform: scaleX(1); }
.mode h3 {
  font-family: var(--pixel);
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--cyan);
}
.mode p { color: var(--muted); font-size: 14px; }

/* =============================================================
   ARTISTA
   ============================================================= */
.artist {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.artist__quote {
  font-family: var(--term);
  font-size: 26px;
  color: var(--yellow);
  border-left: 4px solid var(--magenta);
  padding-left: 20px;
  margin: 24px 0;
  line-height: 1.4;
}
.artist__text p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }

.artist__visual { display: grid; place-items: center; }
.vinyl {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #1a1a2e 0 3px, #0d0d18 3px 6px);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px #08080f, 0 0 60px rgba(44, 229, 255, 0.25);
  animation: spin 8s linear infinite;
}
.vinyl__label {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--magenta);
  display: grid;
  place-items: center;
  font-family: var(--pixel);
  font-size: 26px;
  color: var(--bg);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   ESTUDIO + CTA
   ============================================================= */
.studio__contact { margin-top: 8px; }

.cta-band {
  text-align: center;
  padding: clamp(64px, 10vw, 130px) 20px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(122, 92, 255, 0.25), transparent 70%);
}
.cta-band h2 {
  font-family: var(--pixel);
  font-size: clamp(18px, 3.4vw, 30px);
  line-height: 1.5;
  margin-bottom: 16px;
}
.cta-band p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  border-top: 2px solid var(--line);
  background: var(--bg-2);
  padding: 44px clamp(16px, 5vw, 48px);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__made { font-family: var(--term); font-size: 18px; color: var(--cyan); }
.footer__copy { color: var(--muted); font-size: 13px; }

/* =============================================================
   REVEAL ANIMATION
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg-2);
    border-bottom: 2px solid var(--line);
    padding: 24px clamp(16px, 4vw, 48px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .artist { grid-template-columns: 1fr; gap: 36px; }
  .artist__visual { order: -1; }
  .loop__step::after { display: none; }
}

/* =============================================================
   PÁGINA PRÓLOGO — overrides scoped
   ============================================================= */

.page-prologo .scanlines { display: none; }
.page-prologo .nav--minimal {
  background: transparent;
  border-bottom: none;
  position: fixed;
  top: 0; left: 0; right: 0;
}

/* sección título "PRÓLOGO" */
.totem .section--prologue-title { background: transparent !important; border: none !important; }
.totem .section--prologue-title .section__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.prologue-title { text-align: center; }
.prologue-title__main {
  font-family: var(--pixel);
  font-size: clamp(64px, 17vw, 220px);
  line-height: 0.95;
  letter-spacing: 10px;
  color: var(--ink);
  text-shadow:
    0 0 24px rgba(140, 100, 240, 0.6),
    0 0 48px rgba(80, 130, 255, 0.4);
  margin-bottom: 30px;
}
.prologue-title__sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(24px, 4vw, 42px);
  color: rgba(232, 232, 240, 0.75);
  letter-spacing: 0.5px;
}

/* fragmentos de lore */
.totem .section--frag { background: transparent !important; border: none !important; }
.totem .section--frag .section__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(24px, 6vw, 80px);
}
.frag {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 7.5vw, 96px);
  line-height: 1.20;
  color: rgba(232, 232, 240, 0.95);
  text-align: center;
  max-width: 18ch;
  text-shadow:
    0 0 22px rgba(140, 100, 240, 0.45),
    0 2px 14px rgba(0, 0, 0, 0.65);
}

/* sección final: play (fuera del tótem) */
.play-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.play-section__inner {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.play-section__pretext {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  color: rgba(232, 232, 240, 0.55);
  letter-spacing: 0.5px;
}
.play-section__title {
  font-family: var(--pixel);
  font-size: clamp(28px, 5.5vw, 72px);
  line-height: 1.2;
  letter-spacing: 4px;
  color: var(--ink);
  text-shadow:
    0 0 24px rgba(140, 100, 240, 0.55),
    0 0 48px rgba(80, 130, 255, 0.35);
}

/* ---------- overlay del juego (WebGL fullscreen dentro de la página) ---------- */
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.game-overlay[hidden] { display: none; }
.game-overlay__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.game-overlay__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 18, 0.78);
  border: 2px solid var(--line);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  font-family: monospace;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.game-overlay__close:hover {
  background: rgba(180, 50, 110, 0.55);
  border-color: var(--magenta);
  color: #fff;
}
.game-overlay__close:active { transform: scale(0.95); }
.play-btn {
  font-size: 14px;
  padding: 22px 38px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, rgb(80, 130, 255), rgb(140, 100, 240));
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(140, 100, 240, 0.6);
  transition: transform 0.15s, box-shadow 0.15s;
}
.play-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(140, 100, 240, 0.85);
}
.play-btn.is-disabled {
  filter: grayscale(0.6) brightness(0.7);
  cursor: not-allowed;
}
.play-section__note {
  font-family: var(--term);
  font-size: 18px;
  color: var(--magenta);
  margin-top: 4px;
}

.page-prologo .footer {
  background: transparent;
  border-top: 1px solid rgba(42, 42, 68, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
