@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-VariableFont_opsz,wdth,wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Special Gothic Expanded One";
  src: url("assets/fonts/SpecialGothicExpandedOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans Code";
  src: url("assets/fonts/GoogleSansCode-VariableFont_MONO,wght.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --violet: #6A009A;
  --violet-light: #9B3FD4;
  --magenta: #E0459E;
  --bg: #0D0710;
  --panel: #17101C;
  --text: #F4EEF8;
  --r: 12px;
  --grad: linear-gradient(110deg, var(--violet), var(--magenta));
  --f-title: "Bricolage Grotesque", system-ui, sans-serif;
  --f-kick: "Special Gothic Expanded One", "Bricolage Grotesque", sans-serif;
  --f-mono: "Google Sans Code", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: radial-gradient(120% 70% at 50% 110%, #1d0a2a, var(--bg) 62%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--f-title);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
button { font: inherit; color: var(--text); }
main, .foot, .nav { position: relative; z-index: 2; }

/* fondo: luces, foco del ratón y ruido */
#lights { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.spot {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(155,63,212,.28), rgba(224,69,158,.08) 45%, transparent 70%);
  mix-blend-mode: screen; will-change: transform;
}
.noise {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); }
  60% { transform: translate(-6%,-2%); } 80% { transform: translate(5%,4%); } 100% { transform: translate(0,0); }
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

h1, h2, h3 { font-family: var(--f-title); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); max-width: 22ch; margin-inline: auto; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); text-shadow: 0 0 30px rgba(155,63,212,.55); }

.kicker {
  font-family: var(--f-kick);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--text);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 12px 2px var(--magenta); animation: blink 1.6s steps(2) infinite; flex: none; }
@keyframes blink { 50% { opacity: .25; } }
.mono, .tag { font-family: var(--f-mono); font-size: .85rem; color: var(--text); }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500; margin-top: 14px; max-width: 34ch; }
.note { margin-top: 36px; }

/* botones */
.btn {
  display: inline-block;
  font-family: var(--f-kick);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--text);
  background: var(--grad);
  border: 0; border-radius: var(--r);
  padding: 15px 26px;
  cursor: pointer;
  box-shadow: 0 0 24px -4px rgba(224,69,158,.7), 0 8px 28px -10px rgba(224,69,158,.8);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.15); box-shadow: 0 0 40px 0 rgba(224,69,158,.9), 0 12px 34px -10px rgba(224,69,158,.9); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, .cab__screen:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }
.btn--small { padding: 10px 18px; font-size: .68rem; }
.btn--ghost { background: rgba(23,16,28,.6); box-shadow: inset 0 0 0 1.5px var(--violet-light), 0 0 18px -6px var(--violet-light); }
.btn--ghost:hover { background: rgba(155,63,212,.3); box-shadow: inset 0 0 0 1.5px var(--violet-light), 0 0 32px -2px var(--violet-light); }

.chip { font-family: var(--f-mono); font-size: .78rem; background: rgba(155,63,212,.3); color: var(--text); padding: 6px 14px; border-radius: 999px; box-shadow: 0 0 18px -4px var(--violet-light); }
.card { background: rgba(23,16,28,.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--r); padding: 28px; box-shadow: 0 0 40px -18px var(--violet-light); }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  transition: background .25s, backdrop-filter .25s;
}
.nav.is-solid { background: rgba(13,7,16,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__logo img { height: clamp(38px, 5vw, 58px); width: auto; filter: drop-shadow(0 0 10px rgba(155,63,212,.7)); }
.nav__links { display: flex; gap: clamp(12px, 2vw, 28px); }
.nav__links a { font-family: var(--f-kick); font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; transition: text-shadow .15s; }
.nav__links a:hover { text-shadow: 0 0 14px var(--magenta), 0 0 4px var(--magenta); }
.hud { display: flex; align-items: center; gap: 12px; }
.hud__credits b { font-weight: 700; text-shadow: 0 0 12px var(--magenta); }
.hud__btn { white-space: nowrap; background: rgba(23,16,28,.7); border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .74rem; box-shadow: inset 0 0 0 1.5px rgba(155,63,212,.6); transition: box-shadow .15s; }
.hud__btn:hover, .hud__btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--magenta), 0 0 16px -2px var(--magenta); }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 20px 70px; overflow: hidden; }
.hero__pool { position: absolute; left: 50%; top: 42%; width: min(1500px, 140vw); height: 520px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(106,0,154,.7), rgba(155,63,212,.2) 55%, transparent); animation: pool 6s ease-in-out infinite; pointer-events: none; }
@keyframes pool { 50% { opacity: .55; transform: translate(-50%,-50%) scale(1.08); } }
.hero__stage { position: relative; width: min(1100px, 100%); display: grid; justify-items: center; }
.hero__stage .kicker { justify-content: center; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 42ch; margin: 18px auto 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* logo gigante */
.logo3d { position: relative; width: min(1040px, 94vw); margin: 10px auto 130px; transform: perspective(1400px) rotateX(0) rotateY(0); transform-style: preserve-3d; cursor: pointer; will-change: transform; }
.logo3d__img { width: 100%; height: auto; position: relative; animation: neon 5s ease-in-out infinite, flick 9s linear infinite; }
@keyframes neon {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(155,63,212,.95)) drop-shadow(0 0 30px rgba(106,0,154,.95)) drop-shadow(0 0 80px rgba(106,0,154,.8)); }
  50% { filter: drop-shadow(0 0 9px rgba(224,69,158,.95)) drop-shadow(0 0 38px rgba(224,69,158,.6)) drop-shadow(0 0 100px rgba(155,63,212,.8)); }
}
@keyframes flick {
  0%, 18%, 22%, 61%, 65%, 100% { opacity: 1; } 20%, 63% { opacity: .78; } 21% { opacity: .95; }
}
.logo3d__refl {
  position: absolute; left: 0; right: 0; top: 100%; width: 100%; margin-top: 10px; transform: scaleY(-1); opacity: .5; filter: blur(2px);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.8), transparent 65%); mask-image: linear-gradient(to top, rgba(0,0,0,.8), transparent 65%);
  pointer-events: none;
}
.ghost { position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url("assets/logo/logo_klayerama_blanco_horizontal.svg") center / contain no-repeat; mask: url("assets/logo/logo_klayerama_blanco_horizontal.svg") center / contain no-repeat; }
.ghost--m { background: var(--magenta); }
.ghost--v { background: var(--violet-light); }
.logo3d.is-glitch .logo3d__img { animation: neon 5s ease-in-out infinite, flick 9s linear infinite, jit .45s steps(4); }
.logo3d.is-glitch .ghost--m { opacity: .95; animation: gm .45s steps(3) both; }
.logo3d.is-glitch .ghost--v { opacity: .95; animation: gv .45s steps(3) both; }
@keyframes jit { 25% { transform: translate(-6px,2px) skewX(-4deg); } 50% { transform: translate(5px,-2px); } 75% { transform: translate(-3px,1px) skewX(3deg); } }
@keyframes gm { 33% { transform: translate(-12px,3px); } 66% { transform: translate(9px,-3px); } 100% { transform: none; } }
@keyframes gv { 33% { transform: translate(11px,-2px); } 66% { transform: translate(-8px,3px); } 100% { transform: none; } }

/* letrero */
.ticker { overflow: hidden; padding: 18px 0; background: rgba(23,16,28,.75); box-shadow: 0 0 60px -10px var(--violet), inset 0 0 40px rgba(106,0,154,.35); position: relative; z-index: 2; }
.ticker__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marq 38s linear infinite; font-family: var(--f-kick); font-size: clamp(1rem, 2.4vw, 1.6rem); text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; text-shadow: 0 0 18px var(--magenta); }
.ticker__track i { width: 12px; height: 12px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 14px 3px var(--magenta); flex: none; }
@keyframes marq { to { transform: translateX(-50%); } }

/* secciones */
.section { padding: clamp(72px, 12vw, 140px) 0; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

/* recreativa */
.cab { background: linear-gradient(180deg, #221430, #130a1a); border-radius: 26px; padding: 14px; box-shadow: 0 0 0 2px rgba(155,63,212,.5), 0 0 80px rgba(106,0,154,.6), 0 50px 120px -30px #000; }
.cab__marquee { background: linear-gradient(180deg, #2c1840, #1a0e24); border-radius: 16px; padding: 14px 22px 18px; margin-bottom: 14px; box-shadow: inset 0 0 40px rgba(224,69,158,.25), 0 0 30px -6px var(--magenta); }
.bulbs { display: flex; justify-content: space-between; margin-bottom: 14px; }
.bulbs i { width: 9px; height: 9px; border-radius: 50%; background: var(--text); animation: bulb 1.4s steps(2) infinite; animation-delay: calc(var(--i) * .07s); }
@keyframes bulb { 0% { opacity: 1; box-shadow: 0 0 10px 2px var(--magenta); background: var(--magenta); } 50% { opacity: .25; box-shadow: none; background: var(--violet-light); } }
.cab__title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.cab__title .kicker { margin-bottom: 8px; }
.cab__body { display: grid; grid-template-columns: 1.9fr 1fr; gap: 14px; }
.cab__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 0 0 7px #07030a, inset 0 0 60px #000, 0 0 70px -8px var(--violet-light); animation: crt 4s ease-in-out infinite; }
@keyframes crt { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.08); } }
.cab__screen img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s, transform .25s; }
.cab__screen img.pixel { image-rendering: pixelated; }
.cab__screen img.is-out { opacity: 0; transform: scale(1.04); }
.cab__screen:active img { transform: scale(1.02); }
.cab__glass { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.2) 45%, transparent 60%); background-size: 260% 100%; background-position: calc(var(--sx, 50) * 1%) 0; box-shadow: inset 0 0 90px rgba(0,0,0,.75); mix-blend-mode: screen; }
.cab__screen.is-hit::after { content: ""; position: absolute; inset: 0; background: var(--text); opacity: .6; animation: flash .25s ease-out forwards; }
@keyframes flash { to { opacity: 0; } }
.cab__hud { position: absolute; left: 14px; top: 12px; background: rgba(13,7,16,.7); padding: 4px 12px; border-radius: 999px; }
.cab__hint { margin-top: 12px; text-align: center; }
.cab__side { display: grid; gap: 14px; align-content: start; }
.catty { position: relative; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 18px; text-align: left; cursor: pointer; border: 0; padding: 22px; }
.catty img { width: 110px; filter: drop-shadow(0 10px 24px rgba(155,63,212,.7)); transition: transform .12s; will-change: transform; }
.catty:hover img { filter: drop-shadow(0 10px 30px rgba(224,69,158,.9)); }
.catty__name b { font-size: 1.7rem; font-weight: 800; }
.catty__name .kicker { margin-bottom: 4px; }
.bubble { position: absolute; left: 18px; right: 18px; top: -22px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .95rem; line-height: 1.3; padding: 10px 14px; border-radius: 14px; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 3; box-shadow: 0 0 30px rgba(224,69,158,.7); }
.bubble.is-on { opacity: 1; transform: none; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lvl { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; cursor: pointer; background: #000; opacity: .55; transition: opacity .15s, transform .15s, box-shadow .15s; }
.lvl img { width: 100%; height: 100%; object-fit: cover; }
.lvl:hover { opacity: .9; transform: scale(1.04); }
.lvl.is-on { opacity: 1; box-shadow: 0 0 0 3px var(--magenta), 0 0 26px 2px var(--magenta); }
.cab__panel { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 14px; padding: 18px 22px; border-radius: 16px; background: linear-gradient(180deg, #1a0e24, #10081a); box-shadow: inset 0 0 30px rgba(106,0,154,.5); }
.stick { width: 54px; height: 54px; border-radius: 50%; background: #07030a; display: grid; place-items: center; box-shadow: inset 0 0 12px #000, 0 0 0 3px #2a1836; }
.stick__ball { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--magenta) 40%, var(--violet) 90%); box-shadow: 0 0 18px var(--magenta); transform: translate(calc(var(--tx, 0) * 1px), calc(var(--ty, 0) * 1px)); transition: transform .08s linear; }
.pad { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.pad--m { background: radial-gradient(circle at 35% 30%, #fff, var(--magenta) 45%, #7a1a55); box-shadow: 0 6px 0 #4a0f33, 0 0 22px var(--magenta); }
.pad--v { background: radial-gradient(circle at 35% 30%, #fff, var(--violet-light) 45%, var(--violet)); box-shadow: 0 6px 0 #3a0058, 0 0 22px var(--violet-light); }
.pad:active { transform: translateY(5px); box-shadow: 0 1px 0 #000, 0 0 36px var(--magenta); }
.cab__panel .tag { margin-left: auto; }

/* soulless: linterna */
.soul { --mx: 70%; --my: 40%; position: relative; padding: clamp(90px, 14vw, 170px) 0; overflow: hidden; background: rgba(5,2,8,.72); z-index: 2; }
.soul::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle 420px at var(--mx) var(--my), rgba(70,150,160,.22), transparent 70%); pointer-events: none; }
.soul__whispers { position: absolute; inset: 0; z-index: 1; pointer-events: none; -webkit-mask-image: radial-gradient(circle 170px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.6) 45%, transparent 100%); mask-image: radial-gradient(circle 170px at var(--mx) var(--my), #000 0%, rgba(0,0,0,.6) 45%, transparent 100%); }
.soul__whispers span { position: absolute; font-family: var(--f-title); font-weight: 600; font-style: italic; text-shadow: 0 0 16px rgba(120,200,210,.8); }
.soul__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.soul__logo { width: min(520px, 100%); margin: 6px 0 22px; filter: drop-shadow(0 0 24px rgba(120,200,210,.45)); }
.soul__text .tag { margin-top: 14px; }
.soul__hint { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.soul__orb { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #000 0 38%, transparent 39%), conic-gradient(from 90deg, rgba(190,60,60,.6), rgba(70,150,160,.6), rgba(190,60,60,.6)); box-shadow: 0 0 90px 12px rgba(70,150,160,.3), inset 0 0 60px rgba(0,0,0,.9); display: grid; place-items: center; animation: orb 12s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.05); box-shadow: 0 0 120px 20px rgba(190,60,60,.35), inset 0 0 60px rgba(0,0,0,.9); } }
.soul__orb i { width: 9%; height: 9%; border-radius: 50%; background: var(--text); box-shadow: 0 0 24px 6px rgba(244,238,248,.7); transition: transform .12s linear; }

/* newsletter */
.news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.form { display: grid; gap: 12px; }
.slotwrap { position: relative; height: 90px; display: grid; align-items: end; overflow: hidden; }
.slot { width: 150px; height: 14px; margin: 0 auto 6px; border-radius: 8px; background: #000; box-shadow: inset 0 0 8px #000, 0 0 0 4px #2a1836, 0 0 26px rgba(224,69,158,.7); animation: slotl 1.6s ease-in-out infinite; }
@keyframes slotl { 50% { box-shadow: inset 0 0 8px #000, 0 0 0 4px #3a2050, 0 0 40px rgba(224,69,158,1); } }
.coin { position: absolute; left: calc(50% - 17px); top: -40px; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--violet-light) 55%, var(--violet)); box-shadow: 0 0 20px var(--magenta); animation: drop .7s cubic-bezier(.5,0,1,.6) forwards; }
@keyframes drop { 0% { transform: translateY(0) rotateY(0); opacity: 1; } 85% { transform: translateY(98px) rotateY(720deg); opacity: 1; } 100% { transform: translateY(104px) scaleY(.1); opacity: 0; } }
.form__row { display: flex; gap: 10px; flex-wrap: wrap; }
.form input { flex: 1 1 200px; min-width: 0; background: var(--bg); color: var(--text); border: 0; border-radius: var(--r); padding: 14px 16px; font: inherit; box-shadow: inset 0 0 0 1.5px rgba(155,63,212,.5); transition: box-shadow .15s; }
.form input:focus { box-shadow: inset 0 0 0 1.5px var(--magenta), 0 0 24px -4px var(--magenta); outline: none; }
.form input::placeholder { color: var(--text); opacity: .45; }
.form__msg { min-height: 1.4em; }

/* equipo */
.select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.char { display: grid; justify-items: center; gap: 4px; padding: 26px 16px 22px; border: 0; border-radius: 16px; background: rgba(23,16,28,.8); cursor: pointer; text-align: center; opacity: .6; transition: transform .2s, opacity .2s, box-shadow .2s; }
.char b { font-size: 1.7rem; font-weight: 800; }
.char__glyph { font-family: var(--f-title); font-weight: 800; font-size: clamp(5rem, 11vw, 8.5rem); line-height: 1; color: var(--text); text-shadow: 0 0 40px var(--violet-light); transition: text-shadow .2s, transform .2s; }
.char:hover { opacity: 1; transform: translateY(-6px); }
.char.is-on { opacity: 1; transform: translateY(-6px); box-shadow: 0 0 0 3px var(--magenta), 0 0 50px 0 rgba(224,69,158,.7); }
.char.is-on .char__glyph { text-shadow: 0 0 30px var(--magenta), 0 0 70px var(--magenta); transform: scale(1.08); }
.select__read { margin-top: 20px; font-family: var(--f-mono); font-size: .95rem; min-height: 5em; display: flex; align-items: center; }

/* contacto */
.contact { text-align: center; }
.contact .kicker { justify-content: center; }
.mailrow { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin: 26px 0 30px; }
.mail { font-family: var(--f-mono); font-size: clamp(1.1rem, 3.6vw, 1.9rem); color: var(--text); text-shadow: 0 0 22px var(--magenta); transition: text-shadow .2s, transform .2s; }
.mail:hover { text-shadow: 0 0 34px var(--magenta), 0 0 8px var(--magenta); transform: scale(1.03); }
.social { list-style: none; padding: 0; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.social a { font-family: var(--f-kick); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; transition: text-shadow .15s; }
.social a:hover { text-shadow: 0 0 14px var(--magenta); }

.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 30px clamp(16px, 4vw, 40px); }
.foot img { height: 46px; width: auto; filter: drop-shadow(0 0 10px rgba(155,63,212,.7)); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--panel); padding: 12px 20px; border-radius: 999px; z-index: 120; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 0 0 1.5px var(--magenta), 0 0 36px rgba(224,69,158,.6); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* aparición */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav__links, .hud__credits { display: none; }
  .cab__body, .soul__grid, .news { grid-template-columns: 1fr; }
  .select { grid-template-columns: 1fr; }
  .char { grid-template-columns: 40px 90px 1fr; justify-items: start; align-items: center; padding: 14px 18px; }
  .char__glyph { font-size: 3.4rem; }
  .soul__orb { max-width: 240px; margin-inline: auto; order: -1; }
  .catty { margin-top: 20px; }
  .cab__panel .tag { margin-left: 0; }
  .bulbs i:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .noise { display: none; }
}

/* ====== TERROR ====== */

/* apagón: la sala se queda a oscuras */
html.black main, html.black .nav, html.black .foot, html.black .ticker { opacity: .04 !important; transition: none !important; }
html.black .spot { opacity: .25; }

/* glitch CRT a pantalla completa */
html.glitch main, html.glitch .nav, html.glitch .foot, html.glitch #lights { filter: url(#crt); }
html.glitch main { animation: shake .1s steps(2) infinite; }
@keyframes shake { 0% { translate: -2px 0; } 50% { translate: 3px 1px; } 100% { translate: -1px -1px; } }
html.glitch .hero, html.glitch .ticker, html.glitch #chaos-of-destiny, html.glitch .soul, html.glitch #newsletter, html.glitch #equipo, html.glitch #contacto { transform: translateX(calc(var(--gx, 0px) * var(--k, 1))) skewX(var(--gs, 0deg)); }
.hero { --k: 1; } .ticker { --k: -1.4; } #chaos-of-destiny { --k: .8; } .soul { --k: -.6; } #newsletter { --k: 1.2; } #equipo { --k: -1; } #contacto { --k: .7; }
.rollbar { position: fixed; left: 0; right: 0; top: -20%; height: 14%; z-index: 96; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(180deg, transparent, rgba(224,69,158,.22), rgba(155,63,212,.16), transparent); }
html.glitch .rollbar { opacity: 1; animation: roll .4s linear; }
@keyframes roll { to { top: 110%; } }

/* logo: grito oculto */
.logo3d__scream { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-kick); font-size: clamp(2.4rem, 11vw, 8rem); letter-spacing: .25em; text-transform: uppercase; color: var(--text); opacity: 0; pointer-events: none; text-shadow: 0 0 30px var(--magenta), 0 0 70px var(--magenta), 6px 0 var(--violet-light); }
.logo3d.is-scream .logo3d__scream { opacity: 1; animation: jit .2s steps(3) infinite; }
.logo3d.is-scream .logo3d__img, .logo3d.is-scream .logo3d__refl { opacity: .08; animation: none; }

/* pantalla de la recreativa: frame malo */
.cab__bad { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-kick); font-size: clamp(1.4rem, 4.5vw, 3rem); letter-spacing: .2em; text-transform: uppercase; color: var(--text); text-shadow: 0 0 24px var(--magenta), 4px 0 var(--magenta), -4px 0 var(--violet-light); opacity: 0; pointer-events: none; z-index: 2; }
.cab__screen.is-bad img { filter: invert(1) contrast(1.7) hue-rotate(250deg); transform: scale(1.12) skewX(-3deg); }
.cab__screen.is-bad .cab__bad { opacity: 1; }

/* Catty se corrompe */
.catty.is-wrong img { filter: hue-rotate(150deg) saturate(2.2) contrast(1.5) drop-shadow(0 0 22px #ff0033); animation: twitch 1.7s steps(2) infinite; }
.catty.is-wrong .bubble { background: var(--magenta); color: var(--text); }
@keyframes twitch { 0%, 88% { transform: none; } 90% { transform: translate(-5px, 2px) scaleX(1.06); } 94% { transform: translate(4px, -2px) scaleY(.94); } }

/* Catty se asoma por una esquina o por abajo */
.peek { position: fixed; z-index: 70; width: min(250px, 50vw); cursor: pointer; transition: transform .95s cubic-bezier(.2,.9,.2,1); filter: drop-shadow(0 0 34px rgba(224,69,158,.85)); }
.peek img { width: 100%; }
.peek--left { left: 0; top: var(--y, 50%); transform: translate(-102%, -50%) rotate(-6deg); }
.peek--left.is-on { transform: translate(-46%, -50%) rotate(-6deg); }
.peek--right { right: 0; top: var(--y, 50%); transform: translate(102%, -50%) rotate(6deg); }
.peek--right.is-on { transform: translate(46%, -50%) rotate(6deg); }
.peek--bottom { left: var(--x, 50%); bottom: 0; transform: translate(-50%, 102%); }
.peek--bottom.is-on { transform: translate(-50%, 46%); }

/* susto */
.scare { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; align-content: center; background: #000; opacity: 0; visibility: hidden; pointer-events: none; overflow: hidden; }
.scare.is-on { visibility: visible; opacity: 1; pointer-events: auto; animation: scflash .12s steps(2) 4; }
.scare img { width: min(86vh, 92vw); filter: drop-shadow(0 0 80px var(--magenta)); transform: scale(.2); }
.scare.is-on img { animation: zoom .18s cubic-bezier(.2,2,.4,1) forwards, shake .08s steps(2) .18s infinite; }
.scare p { position: absolute; bottom: 7%; font-family: var(--f-kick); font-size: clamp(3rem, 14vw, 11rem); letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 0 40px var(--magenta), 8px 0 var(--violet-light), -8px 0 var(--magenta); }
@keyframes zoom { to { transform: scale(1.18); } }
@keyframes scflash { 50% { background: var(--magenta); } }

/* ¿continuar? */
.cont { position: fixed; inset: 0; z-index: 250; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; background: rgba(5,2,8,.93); opacity: 0; visibility: hidden; transition: opacity .3s; }
.cont.is-on { opacity: 1; visibility: visible; }
.cont .kicker { justify-content: center; font-size: clamp(1rem, 3vw, 1.6rem); }
.cont__n { font-family: var(--f-kick); font-weight: 400; font-size: clamp(8rem, 36vw, 24rem); line-height: 1; text-shadow: 0 0 60px var(--magenta), 0 0 20px var(--magenta); animation: pump 1s steps(1) infinite; }
@keyframes pump { 0% { transform: scale(1.12); } 40% { transform: scale(1); } }
.cont.is-over .cont__n { font-size: clamp(3rem, 14vw, 9rem); animation: jit .3s steps(3) infinite; }

/* susurros: ojos */
.eyes { position: absolute; display: flex; gap: 18px; }
.eyes i { width: 16px; height: 9px; border-radius: 50%; background: var(--text); box-shadow: 0 0 14px 3px var(--text); animation: eye 5s infinite; }
.eyes--big i { width: 28px; height: 14px; }
.eyes i:nth-child(2) { animation-delay: .04s; }
@keyframes eye { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.05); } }
.soul__orb { cursor: pointer; }
.soul__orb i { transition: transform .12s linear, width .3s, height .3s; }
.soul__orb.is-open i { width: 22%; height: 22%; box-shadow: 0 0 60px 20px rgba(224,69,158,.8); }

/* P4 */
.select.has4 { grid-template-columns: repeat(4, 1fr); }
.char--ghost { animation: ghost 2.2s steps(1) infinite; }
.char--ghost .char__glyph { text-shadow: 0 0 30px var(--magenta), 5px 0 var(--violet-light), -5px 0 var(--magenta); }
@keyframes ghost { 0%, 70% { transform: none; } 72% { transform: translate(-6px, 0) skewX(-6deg); } 76% { transform: translate(5px, 0); } 80% { transform: none; } }
.char--ghost[hidden] { display: none; }

@media (max-width: 900px) {
  .select.has4 { grid-template-columns: 1fr; }
}

/* texto fantasma: aparece al seleccionar la página (Ctrl+A) */
.ghost-text { color: transparent; font-family: var(--f-mono); font-size: .85rem; margin: 10px 0 0; user-select: text; }
::selection { background: var(--magenta); color: var(--text); }
.ghost-text::selection { background: var(--magenta); color: var(--text); }

@media print {
  body > * { display: none !important; }
  body::before { content: "¿Imprimir esto? Qué valor."; display: block; padding: 40px; font: 800 2rem var(--f-title); color: #000; }
}

/* ====== INTRO: el logo se enciende como un neón ====== */
html.intro-on { overflow: hidden; }
html.intro-on:not(.revealed) .hero__stage > *, html.intro-on:not(.revealed) .nav { opacity: 0; }
html.glitch .intro { filter: url(#crt); }
.intro { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; pointer-events: auto; }
.intro.is-done { display: none; }
.intro__half { position: absolute; left: 0; right: 0; height: 50.4%; background: #050208; transition: transform .95s cubic-bezier(.75,0,.2,1); }
.intro__half--t { top: 0; } .intro__half--b { bottom: 0; }
.intro.go .intro__half--t { transform: translateY(-101%); } .intro.go .intro__half--b { transform: translateY(101%); }
.intro__glow { position: absolute; left: 50%; top: 50%; width: min(1400px, 150vw); height: 70vh; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(106,0,154,.75), rgba(155,63,212,.18) 55%, transparent); opacity: 0; animation: iglow 3s ease-in 1s forwards; }
@keyframes iglow { 0% { opacity: 0; } 60% { opacity: .5; } 100% { opacity: 1; } }
.intro.go .intro__glow { opacity: 0; transition: opacity .6s; animation: none; }
.intro__beam { position: absolute; left: 50%; top: 50%; height: 2px; width: 0; opacity: 0; transform: translate(-50%, -50%); background: var(--text); box-shadow: 0 0 22px 6px var(--magenta), 0 0 60px 14px var(--violet); }
html[data-intro="neon"] .intro__beam { animation: ibeam 1s ease-out .05s forwards; }
@keyframes ibeam { 0% { width: 0; opacity: 1; } 35% { width: 100%; opacity: 1; } 55% { width: 100%; opacity: .15; } 62% { opacity: 1; } 100% { width: 100%; opacity: 0; } }
.intro.go .intro__beam { animation: iflare .7s ease-out forwards; }
@keyframes iflare { 0% { width: 100%; height: 2px; opacity: 1; } 40% { width: 100%; height: 14px; opacity: 1; } 100% { width: 100%; height: 0; opacity: 0; } }
.intro__logo { position: relative; z-index: 2; width: min(920px, 86vw); transition: transform .9s cubic-bezier(.6,0,.9,.4), opacity .8s ease-in, filter .9s; }
.intro__logo svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 0 4px rgba(224,69,158,.0)); }
.intro__logo svg > * { fill: var(--text); opacity: 0; transform-box: fill-box; transform-origin: center; }
html[data-intro="neon"] .intro__logo svg > * { animation: ignite 1s steps(1, end) forwards; animation-delay: calc(.9s + var(--i) * .06s); }
@keyframes ignite { 0% { opacity: 0; } 6% { opacity: 1; } 12% { opacity: .08; } 20% { opacity: .9; } 28% { opacity: .15; } 40% { opacity: 1; } 50% { opacity: .35; } 64%, 100% { opacity: 1; } }
.intro__logo.lit svg { animation: ilit 1s ease-in-out infinite; }
@keyframes ilit {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(155,63,212,.95)) drop-shadow(0 0 30px rgba(106,0,154,.95)) drop-shadow(0 0 80px rgba(106,0,154,.8)); }
  50% { filter: drop-shadow(0 0 10px rgba(224,69,158,1)) drop-shadow(0 0 44px rgba(224,69,158,.7)) drop-shadow(0 0 110px rgba(155,63,212,.9)); }
}
.intro.go .intro__logo { transform: scale(2.4); opacity: 0; filter: blur(8px); }
.intro__hint { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); z-index: 3; animation: breathe 2s ease-in-out infinite; transition: opacity .3s; text-align: center; padding: 0 16px; }
.intro__hint.is-off { opacity: 0; pointer-events: none; }
.intro__skip { position: absolute; right: 18px; bottom: 18px; z-index: 3; background: rgba(23,16,28,.7); border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(155,63,212,.6); }
.intro__skip:hover { box-shadow: inset 0 0 0 1.5px var(--magenta), 0 0 18px -2px var(--magenta); }
.intro.go .intro__hint, .intro.go .intro__skip { opacity: 0; transition: opacity .2s; }

/* entrada de la página tras la intro */
html.revealed .nav { animation: fadein .9s ease .35s backwards; }
html.revealed .hero__stage > * { animation: rise .95s cubic-bezier(.2,.8,.2,1) backwards; }
html.revealed .hero__stage > :nth-child(1) { animation-delay: .5s; }
html.revealed .hero__stage > :nth-child(2) { animation: heroLogo 1.3s cubic-bezier(.2,.8,.2,1) .25s backwards; }
html.revealed .hero__stage > :nth-child(3) { animation-delay: .75s; }
html.revealed .hero__stage > :nth-child(4) { animation-delay: .9s; }
html.revealed .hero__stage > :nth-child(5) { animation-delay: 1.05s; }
html.revealed .hero__stage > :nth-child(6) { animation-delay: 1.2s; }
@keyframes rise { from { opacity: 0; translate: 0 26px; filter: blur(6px); } }
@keyframes heroLogo { from { opacity: 0; scale: 1.5; filter: blur(14px); } 60% { opacity: 1; } }
@keyframes fadein { from { opacity: 0; } }

.hud__btn.is-wake { box-shadow: inset 0 0 0 1.5px var(--magenta), 0 0 18px -2px var(--magenta); animation: wake 1.4s ease-in-out infinite; }
@keyframes wake { 50% { box-shadow: inset 0 0 0 1.5px var(--magenta), 0 0 30px 2px var(--magenta); } }

/* ====== variantes de intro ====== */
.intro__flash { position: absolute; inset: 0; z-index: 4; opacity: 0; pointer-events: none; background: radial-gradient(circle, #F4EEF8, #9B3FD4 70%); }
.intro.flash .intro__flash { animation: iflash .6s ease-out; }
@keyframes iflash { 0% { opacity: .9; } 100% { opacity: 0; } }
.intro__text, .intro__coin, .intro__eyes { display: none; }
.intro.show .intro__logo svg > * { opacity: 1; animation: none; }

/* píxeles: las letras caen y encajan a saltos */
html[data-intro="pixel"] .intro__logo svg > * { animation: pxdrop .6s steps(6, end) forwards; animation-delay: calc(.5s + var(--i) * .07s); }
@keyframes pxdrop { 0% { opacity: 1; transform: translate(calc(var(--r, 0) * 160px), -380px) scale(1.4); } 80% { opacity: 1; transform: translate(0, 12px); } 100% { opacity: 1; transform: none; } }

/* descodificación: señal corrupta que se estabiliza */
html[data-intro="decode"] .intro__logo svg > * { animation: dec 1.1s steps(1, end) forwards; animation-delay: calc(.4s + var(--i) * .05s); }
@keyframes dec {
  0% { opacity: 1; fill: #E0459E; transform: translate(calc(var(--r, 0) * -40px), 8px) skewX(24deg); }
  14% { fill: #9B3FD4; transform: translate(calc(var(--r, 0) * 30px), -10px) skewX(-14deg); }
  28% { opacity: 0; }
  36% { opacity: 1; fill: #E0459E; transform: translate(calc(var(--r, 0) * -14px), 4px); }
  52% { fill: #F4EEF8; transform: translate(8px, 0) skewX(-6deg); }
  64% { opacity: .25; }
  74% { opacity: 1; transform: translate(-3px, 0); }
  88%, 100% { opacity: 1; fill: #F4EEF8; transform: none; }
}

/* trazo: se dibuja el contorno con electricidad y luego se llena */
html[data-intro="trace"] .intro__logo svg { filter: drop-shadow(0 0 6px #E0459E); }
html[data-intro="trace"] .intro__logo svg > * { opacity: 1; fill: transparent; stroke: #E0459E; stroke-width: 1.4px; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .9s cubic-bezier(.3,.6,.3,1) forwards, fillin .5s ease forwards; animation-delay: calc(.5s + var(--i) * .045s), 2.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill: #F4EEF8; stroke: rgba(244,238,248,0); } }

/* moneda: insert coin y el logo aparece con un barrido a saltos */
html[data-intro="coin"] .intro__text { display: block; position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--f-kick); font-size: clamp(1.4rem, 5vw, 3rem); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 30px var(--magenta), 0 0 8px var(--magenta); animation: blinkt .8s steps(1) infinite; }
@keyframes blinkt { 50% { opacity: 0; } }
html[data-intro="coin"] .intro.coin-hit .intro__text { animation: none; }
html[data-intro="coin"] .intro.coin-show .intro__text { opacity: 0; transition: opacity .2s; }
html[data-intro="coin"] .intro__coin { display: block; position: absolute; z-index: 3; left: calc(50% - 32px); top: -90px; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--violet-light) 55%, var(--violet)); box-shadow: 0 0 40px var(--magenta); }
html[data-intro="coin"] .intro.coin-drop .intro__coin { animation: icoin .55s cubic-bezier(.5,0,1,.6) forwards; }
@keyframes icoin { 0% { top: -90px; transform: rotateY(0); opacity: 1; } 85% { top: calc(50% + 30px); transform: rotateY(900deg); opacity: 1; } 100% { top: calc(50% + 44px); transform: rotateY(1000deg) scaleY(.15); opacity: 0; } }
html[data-intro="coin"] .intro__logo { clip-path: inset(0 100% 0 0); }
html[data-intro="coin"] .intro__logo svg > * { opacity: 1; }
html[data-intro="coin"] .intro.coin-show .intro__logo { clip-path: inset(0); transition: clip-path .9s steps(16), transform .9s cubic-bezier(.6,0,.9,.4), opacity .8s ease-in, filter .9s; }
html[data-intro="coin"] .intro.go .intro__logo { clip-path: inset(0); }

/* ojos: te miran en la oscuridad y saltan encima */
html[data-intro="eyes"] .intro__eyes { display: flex; position: absolute; z-index: 3; left: 50%; top: 50%; gap: clamp(36px, 8vw, 70px); transform: translate(-50%, -50%); opacity: 0; }
html[data-intro="eyes"] .intro__eyes i { width: min(110px, 16vw); height: min(62px, 9vw); border-radius: 50%; background: var(--text); box-shadow: 0 0 40px 10px rgba(224,69,158,.7); display: grid; place-items: center; }
html[data-intro="eyes"] .intro__eyes b { width: 34%; height: 72%; border-radius: 50%; background: #000; transition: transform .3s; }
html[data-intro="eyes"] .intro.eyes-on .intro__eyes { opacity: 1; transition: opacity 1s; }
html[data-intro="eyes"] .intro.eyes-blink .intro__eyes i { animation: iblink .36s 2; }
@keyframes iblink { 50% { transform: scaleY(.05); } }
html[data-intro="eyes"] .intro.eyes-left .intro__eyes b { transform: translateX(-130%); }
html[data-intro="eyes"] .intro.eyes-right .intro__eyes b { transform: translateX(130%); }
html[data-intro="eyes"] .intro.eyes-zoom .intro__eyes { transform: translate(-50%, -50%) scale(16); transition: transform .5s cubic-bezier(.7,0,1,.5); }
html[data-intro="eyes"] .intro.eyes-gone .intro__eyes { display: none; }

/* relámpago: el logo solo existe cuando cae el rayo */
html[data-intro="strobe"] .intro__flash { z-index: 1; animation: strobeFlash 2.2s steps(1) .3s both; }
@keyframes strobeFlash { 0%, 100% { opacity: 0; } 4% { opacity: 1; } 9% { opacity: 0; } 20% { opacity: 1; } 25% { opacity: 0; } 36% { opacity: 1; } 39% { opacity: 0; } 41% { opacity: 1; } 50% { opacity: 0; } }
html[data-intro="strobe"] .intro__logo svg > * { opacity: 1; animation: strobeFill 2.2s steps(1) .3s both; }
@keyframes strobeFill { 0% { fill: #050208; } 76%, 100% { fill: #F4EEF8; } }

/* ====== AVISO DE ENTRADA ====== */
.gate { position: fixed; inset: 0; z-index: 500; display: none; place-items: center; padding: 20px; background: rgba(5,2,8,.96); }
html.gate-on .gate { display: grid; }
.gate__box { max-width: 560px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.gate__box .kicker { justify-content: center; }
.gate__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }

/* ====== MODO TRANQUILO ====== */
html.calm .noise, html.calm .rollbar { display: none; }
html.calm .peek, html.calm .scare, html.calm .cont { display: none !important; }
.hud__btn[aria-pressed="true"]#calm { box-shadow: inset 0 0 1.5px 1.5px var(--violet-light), 0 0 16px -2px var(--violet-light); }

/* ====== LA SALA: recreativas con cara ====== */
.floor { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 4vw, 56px); margin-top: 56px; align-items: end; }
.mach { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; cursor: pointer; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.mach:hover, .mach:focus-visible { transform: translateY(-12px) rotate(-1.2deg); }
.mach__svg svg { width: min(100%, 300px); height: auto; overflow: visible; filter: drop-shadow(0 0 34px rgba(155,63,212,.55)); transition: filter .3s; }
.mach:hover .mach__svg svg { filter: drop-shadow(0 0 46px rgba(224,69,158,.8)); }
.mach__name { justify-content: center; margin: 10px 0 0; }
.mach--off { opacity: .85; }
.mach .sb { fill: var(--magenta); animation: bulbs 1.3s steps(2) infinite; animation-delay: calc(var(--i) * .09s); }
@keyframes bulbs { 50% { fill: var(--violet-light); opacity: .35; } }
.mach .eyew, .scare__face .eyew { transform-box: fill-box; transform-origin: center; animation: eyeblink 5s infinite; }
@keyframes eyeblink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.06); } }
.mach .f-pupil, .scare__face .f-pupil, .peek .f-pupil { transform-box: fill-box; transform-origin: center; transition: transform .25s; }
.mach .f-grin, .mach .f-extra, .mach .drip, .mach .veins, .mach .tear, .mach .stare, .scare__face .f-grin, .scare__face .f-extra, .peek .f-grin { opacity: 0; transition: opacity .12s; }
.mach .f-smile, .scare__face .f-smile, .peek .f-smile { transition: opacity .12s; }
.mach .drip { transform-box: fill-box; transform-origin: top; transform: scaleY(0); }
.mach.happy .f-smile { stroke-width: 11; }
.mach.happy svg { animation: bounce .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bounce { 40% { transform: scale(1.04, .96); } 100% { transform: none; } }
.mach.wrong .f-smile, .mach.wrong .lash, .mach.wrong .xx, .mach.wrong .tag-off { opacity: 0; }
.mach.wrong .f-grin, .mach.wrong .f-extra, .mach.wrong .veins, .mach.wrong .tear, .mach.wrong .stare { opacity: 1; }
.mach.wrong .f-pupil { transform: scale(.35); }
.mach.wrong .drip { opacity: 1; animation: dripdown 1.6s ease-in forwards; }
.mach.wrong svg { animation: wobble .12s steps(2) infinite; }
@keyframes dripdown { to { transform: scaleY(1); } }
@keyframes wobble { 0% { transform: translateX(-2px); } 100% { transform: translateX(2px) skewX(-1deg); } }
.mach .coin-fall { transform-box: fill-box; opacity: 0; }
.mach.eating .coin-fall { animation: coinfall .5s ease-in forwards; }
@keyframes coinfall { 0% { transform: translateY(-80px); opacity: 1; } 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(6px) scaleY(.2); opacity: 0; } }
.mach.eating .mouth { animation: chewm .2s steps(2) 4; }
@keyframes chewm { 50% { transform: scaleY(1.9); } }
.mach .mouth { transform-box: fill-box; transform-origin: center; }
.mach .bar { animation: bars 2.4s linear infinite; }
@keyframes bars { from { transform: translateY(-160px); } to { transform: translateY(160px); } }

/* ====== ARCHIVO, CRISTALES, ALAN ====== */
.archive { margin-top: 14px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(180deg, #1a0e24, #10081a); box-shadow: inset 0 0 30px rgba(106,0,154,.5); display: grid; gap: 14px; }
.archive__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.archive__head .kicker { margin: 0; }
.crystals { display: flex; gap: 12px; flex-wrap: wrap; }
.crystal { width: 44px; height: 52px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.crystal i { width: 26px; height: 34px; background: rgba(155,63,212,.15); clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%); box-shadow: inset 0 0 0 1px var(--violet-light); transition: background .3s, transform .2s; outline: 1px solid var(--violet-light); }
.crystal.is-on i { background: radial-gradient(circle at 35% 30%, #fff, var(--magenta) 55%, var(--violet)); animation: gemglow 2s ease-in-out infinite; }
.crystal:hover i { transform: scale(1.15) rotate(-6deg); }
@keyframes gemglow { 50% { filter: drop-shadow(0 0 10px var(--magenta)); } }
.archive__read { font-family: var(--f-mono); font-size: .92rem; min-height: 3.2em; }
.fiche { display: grid; gap: 4px; padding-top: 12px; }
.fiche .kicker { margin: 0; }
.fiche b { font-size: 1.3rem; font-weight: 800; }
.gem-spot { position: absolute; right: 7%; top: 14%; width: 22px; height: 28px; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #fff, var(--magenta) 55%, var(--violet)); clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%); opacity: 0; pointer-events: none; z-index: 3; }
.cab__screen.lvl-1 .gem-spot { opacity: .85; pointer-events: auto; animation: gemglow 1.4s ease-in-out infinite; }
.gem-pop { position: fixed; z-index: 80; width: 34px; height: 44px; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #fff, var(--magenta) 55%, var(--violet)); clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%); animation: gempop .5s cubic-bezier(.3,1.6,.5,1), gemglow 1.2s ease-in-out infinite .5s; filter: drop-shadow(0 0 14px var(--magenta)); }
@keyframes gempop { from { transform: scale(0) rotate(-90deg); } }

.alan { position: fixed; right: 22px; bottom: 22px; z-index: 75; width: 130px; transform: translateY(150%); transition: transform .7s cubic-bezier(.2,.9,.2,1); cursor: pointer; text-align: center; }
.alan.is-on { transform: none; }
.alan svg { width: 100%; filter: drop-shadow(0 0 22px rgba(155,63,212,.8)); }
.alan__say { position: absolute; right: 8px; bottom: calc(100% + 6px); width: 200px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .9rem; line-height: 1.3; padding: 9px 13px; border-radius: 12px; box-shadow: 0 0 24px rgba(224,69,158,.6); }
.alan-mask { position: fixed; z-index: 120; width: 60px; pointer-events: none; transform: translate(-50%, -50%); filter: drop-shadow(0 0 14px var(--magenta)); }
.halk { position: fixed; left: -90px; top: 38%; z-index: 74; width: 74px; cursor: pointer; animation: halkfly 8s linear forwards; }
@keyframes halkfly { 0% { left: -90px; transform: translateY(0); } 25% { transform: translateY(-26px); } 50% { transform: translateY(14px); } 75% { transform: translateY(-20px); } 100% { left: calc(100% + 90px); transform: translateY(0); } }
.halk svg { width: 100%; filter: drop-shadow(0 0 14px rgba(155,63,212,.7)); }
.halk__say { position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 4px 10px; border-radius: 10px; font-weight: 600; font-size: .85rem; white-space: nowrap; }

/* ====== MIEDO ====== */
.scare__catty, .scare__face { display: none; }
.scare.scare--catty .scare__catty { display: block; }
.scare.scare--face .scare__face { display: block; }
.scare__face { width: min(88vh, 94vw); }
.scare__face svg { width: 100%; height: auto; filter: drop-shadow(0 0 70px var(--magenta)); }
.scare.is-on .scare__face { transform: scale(.2); animation: zoom .2s cubic-bezier(.2,2,.4,1) forwards, shake .08s steps(2) .2s infinite; }
.scare.is-on.is-wrong .scare__face .f-smile { opacity: 0; } .scare.is-on.is-wrong .scare__face .f-grin, .scare.is-on.is-wrong .scare__face .f-extra { opacity: 1; }
.scare.is-on.is-wrong .scare__face .f-pupil { transform: scale(.3); }
.scare p { opacity: 0; }
.scare.is-wrong p { opacity: 1; }
.peek svg { width: 100%; height: auto; display: block; }
.peek.is-wrong .f-smile { opacity: 0; } .peek.is-wrong .f-grin { opacity: 1; } .peek.is-wrong .f-pupil { transform: scale(.35); }

/* la ranura de la newsletter es una boca */
.slot { height: 22px; position: relative; overflow: visible; background: #000; border-radius: 12px; box-shadow: inset 0 0 8px #000, 0 0 0 4px #2a1836, 0 0 26px rgba(224,69,158,.7); }
.slot i { position: absolute; inset: 3px 8px; border-radius: 8px; background: repeating-linear-gradient(90deg, transparent 0 7px, var(--text) 7px 11px); clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%); opacity: 0; transition: opacity .15s; }
.slot.chew { animation: slotchew .18s steps(2) 5; }
.slot.chew i { opacity: 1; }
@keyframes slotchew { 50% { transform: scaleY(2.6); } }

.toast.is-flip { box-shadow: 0 0 0 1.5px var(--text), 0 0 50px rgba(224,69,158,.9); background: #2a0a1e; }

@media (max-width: 900px) {
  .floor { grid-template-columns: 1fr; }
  .alan { width: 100px; }
}

/* ====================================================================
   v3: contraste brutal. Cute de verdad, terror de verdad.
   ==================================================================== */

/* nada de superficies blancas y limpias: todo es oscuro y sucio */
.bubble { background: #12081b; color: var(--text); box-shadow: 0 0 0 1.5px var(--magenta), 0 0 30px rgba(224,69,158,.55); }
.catty.is-wrong .bubble { background: #2a0a1e; }
.halk__say { background: #12081b; color: var(--text); box-shadow: 0 0 0 1.5px var(--violet-light); }
body::before { content: ""; position: fixed; inset: 0; z-index: 91; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0,0,0,.55) 100%); }

/* DREAD: por un instante la web abandona el neón y se vuelve fría, sucia y casi real */
.dread { position: fixed; inset: 0; z-index: 97; pointer-events: none; opacity: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 15%, rgba(0,0,0,.92) 88%); }
html.dreading .dread { opacity: 1; }
.dread p { font-family: var(--f-kick); font-size: clamp(2rem, 9vw, 7rem); text-transform: uppercase; letter-spacing: .22em; color: #cfc6cc; text-shadow: 0 0 30px #000, 4px 0 #7b0f2b, -4px 0 #2a4f66; animation: dreadj .09s steps(2) infinite; }
@keyframes dreadj { 0% { transform: translate(-3px, 1px); } 100% { transform: translate(3px, -1px); } }
html.dreading main, html.dreading .nav, html.dreading .foot, html.dreading #lights { filter: grayscale(.92) contrast(1.75) brightness(.62) sepia(.4) hue-rotate(-22deg); }
html.glitch.dreading main, html.glitch.dreading .nav, html.glitch.dreading .foot, html.glitch.dreading #lights { filter: url(#crt) grayscale(.92) contrast(1.75) brightness(.62) sepia(.4) hue-rotate(-22deg); }
html.dreading .noise { opacity: .35; }

/* RECREATIVAS: render con volumen. Dos estados con corte seco, sin transición amable */
.mach__svg svg { width: min(100%, 310px); filter: drop-shadow(0 0 40px rgba(155,63,212,.5)) drop-shadow(0 30px 30px rgba(0,0,0,.7)); }
.mach .scr-dark { opacity: 0; }
.mach.wrong .scr-cute { opacity: 0; }
.mach.wrong .scr-dark { opacity: 1; animation: scrflick .14s steps(2) 3; }
@keyframes scrflick { 50% { opacity: .35; } }
.mach.wrong .body-g { filter: saturate(.25) brightness(.62) contrast(1.25); }
.mach.wrong .neon { opacity: .25; }
.mach.wrong .tmold { stroke: #c0183f; }
.mach.wrong .sb { fill: #c0183f; animation-duration: .3s; }
.mach.wrong svg { animation: none; filter: drop-shadow(0 0 46px rgba(192,24,63,.75)) drop-shadow(0 30px 30px rgba(0,0,0,.8)); }
.mach.wrong .f-pupil { transform: scale(.4); }
.mach .scr-dark .df { display: block; }

/* CARA TÉTRICA: solo ojos y dientes, en la oscuridad */
.df { display: block; width: 100%; height: auto; overflow: visible; animation: dftilt 7s ease-in-out infinite; }
.df-eyes { animation: dfeyes 6s steps(1) infinite; }
.df-grin { transform-box: fill-box; transform-origin: center; animation: dfgrin 9s ease-in-out infinite; }
@keyframes dftilt { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(2.2deg); } }
@keyframes dfeyes { 0%, 93%, 100% { opacity: 1; } 94% { opacity: .1; } 96% { opacity: 1; } 97% { opacity: .1; } }
@keyframes dfgrin { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.12); } }
.peek { filter: drop-shadow(0 0 22px rgba(224,69,158,.55)); }
.peek.is-wrong .df-grin { transform: scaleX(1.3); transition: transform .5s; }
.scare__face .df-grin { animation: none; }
.scare.is-on .scare__face .df-eyes { animation: none; }
.scare.is-on.is-wrong .scare__face .df-grin { transform: scaleX(1.45) scaleY(1.2); transition: transform .35s cubic-bezier(.2,2,.4,1); }
.scare__face svg { filter: none; }
.scare__catty { width: min(88vh, 96vw); filter: contrast(1.1) saturate(1.1); }

/* ALAN, HALKHALDE, BOBBY: los de verdad */
.alan { width: 170px; }
.alan__frame { width: 150px; height: 190px; margin-left: auto; border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 0 0 2px var(--violet-light), 0 0 40px rgba(155,63,212,.7), 0 0 80px rgba(0,0,0,.9); }
.alan__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(106,0,154,.28), transparent 45%), radial-gradient(circle, transparent 45%, rgba(0,0,0,.6)); mix-blend-mode: multiply; }
.alan__frame img { width: 100%; height: 100%; object-fit: cover; animation: alanbreath 4s ease-in-out infinite; }
@keyframes alanbreath { 50% { transform: scale(1.06); } }
.alan__say { right: 4px; background: #12081b; color: var(--text); box-shadow: 0 0 0 1.5px var(--violet-light), 0 0 24px rgba(155,63,212,.5); }
.alan-mask { width: 78px; height: 96px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--magenta), 0 0 20px var(--magenta); }
.alan-mask img { width: 100%; height: 100%; object-fit: cover; }
.poster { position: fixed; inset: 0; z-index: 230; display: grid; place-items: center; background: rgba(5,2,8,.92); opacity: 0; visibility: hidden; pointer-events: none; }
.poster.is-on { opacity: 1; visibility: visible; animation: scflash .12s steps(2) 3; }
.poster img { max-height: 92vh; max-width: 92vw; box-shadow: 0 0 120px rgba(224,69,158,.6); animation: shake .08s steps(2) infinite; }
.halk { width: 96px; }
.halk img { width: 100%; filter: drop-shadow(0 0 16px rgba(80,160,255,.55)); }
.bobby { position: fixed; bottom: 0; z-index: 72; width: 130px; text-align: center; opacity: 0; animation: bobbyin 3s ease-in-out forwards; pointer-events: none; }
.bobby img { width: 100%; filter: brightness(.55) contrast(1.2); }
.bobby span { display: block; margin-top: 4px; }
@keyframes bobbyin { 15%, 85% { opacity: .9; } 100% { opacity: 0; } }

/* archivo: el cristal de verdad de Pixelworld */
.archive { background: linear-gradient(180deg, rgba(10,5,16,.78), rgba(10,5,16,.94)); }


/* ====== v4: integración, no fotos crudas ====== */
.drip { display: none !important; }
.mach .scr-dark .df { display: block; }
.kb { transform-box: fill-box; transform-origin: center; animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.1) translate(-2px, -3px); } }
.ins { animation: blinkt 1.1s steps(1) infinite; paint-order: stroke; stroke: #05020a; stroke-width: 3px; }

/* ojos como los de la sección de Soulless: dos luces, rectas y cercanas */
.df-eyes { animation: none; }
.df-eyes ellipse { transform-box: fill-box; transform-origin: center; animation: dfblink 5.5s infinite; }
.df-eyes ellipse:nth-child(2) { animation-delay: .12s; }
@keyframes dfblink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.06); } }
.df, .df-grin { animation: none; }
.peek .df-eyes { transform-box: fill-box; transform-origin: center; transform: scale(2.4); }
.scare.is-on .scare__face .df-eyes { transform-box: fill-box; transform-origin: center; transform: scale(1); }
.scare.is-on.is-wrong .scare__face .df-eyes { transform: scale(4.5); transition: transform .45s cubic-bezier(.2,2,.4,1); }
.peek.is-wrong .df-eyes { transform: scale(3.2); transition: transform .5s; }

/* Catty oscuro: la silueta de su propio dibujo con los ojos encendidos */
.catty__fig { position: relative; display: block; width: 110px; }
.catty__fig img { width: 100%; }
.catty.is-wrong img { filter: none; animation: none; }
.catty.is-wrong .catty__fig img { filter: brightness(0) drop-shadow(0 0 16px rgba(224,69,158,.55)); animation: twitch 1.7s steps(2) infinite; }
.catty.is-wrong .catty__fig::before, .catty.is-wrong .catty__fig::after { content: ""; position: absolute; top: 49%; width: 15%; height: 6.5%; border-radius: 50%; background: #ffd24a; box-shadow: 0 0 14px 5px rgba(255,200,60,.85); }
.catty.is-wrong .catty__fig::before { left: 30%; } .catty.is-wrong .catty__fig::after { left: 60%; }
.scare__catty { mix-blend-mode: screen; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, transparent 76%); mask-image: radial-gradient(ellipse at center, #000 52%, transparent 76%); }

/* Alan (cuando haya PNG): sin marco, sin foto */
.alan { width: 190px; }
.alan__img { width: 100%; display: block; filter: drop-shadow(0 0 22px rgba(155,63,212,.75)); animation: alanbreath 4s ease-in-out infinite; }
.alan-mask { width: 90px; height: auto; border-radius: 0; box-shadow: none; overflow: visible; }
.alan-mask img { width: 100%; height: auto; filter: drop-shadow(0 0 14px var(--magenta)); }
.bobby img { filter: brightness(.55) contrast(1.2) drop-shadow(0 0 12px rgba(0,0,0,.8)); }

/* ====================================================================
   v5
   ==================================================================== */

/* logo: luz de colores muy lenta y un destello. El glow neón sigue intacto. */
.logo3d__shine, .logo3d__glint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url("assets/logo/logo_klayerama_blanco_horizontal.svg") center / contain no-repeat; mask: url("assets/logo/logo_klayerama_blanco_horizontal.svg") center / contain no-repeat; }
.logo3d__shine { background: linear-gradient(100deg, #55d4e6, #f4c971, #f58cc0, #8a93ff, #86e3ae, #55d4e6); background-size: 320% 100%; opacity: .5; animation: shinemove 22s linear infinite, shinebreath 7s ease-in-out infinite; }
@keyframes shinemove { to { background-position: -320% 0; } }
@keyframes shinebreath { 50% { opacity: .22; } }
.logo3d__glint { background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.9) 50%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; animation: glint 9s ease-in-out infinite; opacity: .75; }
@keyframes glint { 0%, 55% { background-position: 130% 0; } 85%, 100% { background-position: -30% 0; } }

/* panel de control: aquí se justifica el insert coin y el contador */
.deck { margin-top: 6px; display: grid; justify-items: center; gap: 12px; perspective: 900px; }
.deck__plate { display: flex; align-items: stretch; gap: 22px; flex-wrap: wrap; justify-content: center; padding: 20px 28px 22px; border-radius: 18px 18px 26px 26px; transform: rotateX(14deg); transform-origin: 50% 100%;
  background: linear-gradient(180deg, #3a2552, #17101f 55%, #0d0813); box-shadow: 0 0 0 2px #05020a, 0 -1px 0 1px rgba(244,238,248,.22) inset, 0 30px 60px -20px rgba(0,0,0,.85), 0 0 60px -10px rgba(155,63,212,.6); position: relative; }
.deck__plate::before, .deck__plate::after { content: ""; position: absolute; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8d7ca3, #1a1226); box-shadow: 0 0 0 1px #05020a; }
.deck__plate::before { left: 12px; } .deck__plate::after { right: 12px; }
.deck__coin { display: grid; gap: 8px; justify-items: center; align-content: center; min-width: 190px; }
.deck__tag { text-transform: uppercase; letter-spacing: .2em; font-size: .68rem; }
.deck__led { font-family: var(--f-mono); font-weight: 700; font-size: 2rem; letter-spacing: .12em; padding: 4px 16px; border-radius: 8px; background: #0a0306; color: var(--magenta); text-shadow: 0 0 12px var(--magenta), 0 0 3px #fff; box-shadow: inset 0 0 12px #000, 0 0 0 2px #2a1836; min-width: 96px; text-align: center; }
.deck__slot { position: relative; display: grid; gap: 4px; justify-items: center; padding: 12px 18px 10px; border: 0; border-radius: 12px; cursor: pointer; background: linear-gradient(180deg, #2c2038, #120b19); box-shadow: 0 0 0 2px #05020a, inset 0 1px 0 rgba(244,238,248,.2); transition: transform .12s, box-shadow .12s; }
.deck__slot i { width: 62px; height: 10px; border-radius: 6px; background: #000; box-shadow: inset 0 0 6px #000, 0 0 0 3px #3a2552, 0 0 18px var(--magenta); animation: slotl 1.6s ease-in-out infinite; }
.deck__slot b { font-family: var(--f-kick); font-weight: 400; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; animation: blinkt 1.1s steps(1) infinite; }
.deck__slot:hover { box-shadow: 0 0 0 2px #05020a, inset 0 1px 0 rgba(244,238,248,.3), 0 0 26px -2px var(--magenta); }
.deck__slot:active { transform: translateY(2px) scale(.98); }
.deck__sep { width: 2px; background: linear-gradient(180deg, transparent, #05020a, transparent); box-shadow: 1px 0 0 rgba(244,238,248,.12); }
.deck__games { display: flex; gap: 22px; align-items: flex-start; }
.deck__btn { display: grid; gap: 6px; justify-items: center; text-align: center; width: 128px; transition: transform .12s; }
.deck__btn b { font-family: var(--f-kick); font-weight: 400; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; }
.deck__btn small { font-family: var(--f-mono); font-size: .72rem; }
.deck__cap { width: 62px; height: 62px; border-radius: 50%; position: relative; box-shadow: 0 6px 0 #1a0a24, 0 0 0 4px #05020a, 0 0 28px var(--c); transition: transform .08s, box-shadow .08s; background: radial-gradient(circle at 35% 28%, #fff, var(--c) 42%, var(--cd) 100%); }
.deck__btn--a { --c: #E0459E; --cd: #5b1240; } .deck__btn--b { --c: #9B3FD4; --cd: #2d0a46; }
.deck__btn:hover { transform: translateY(-3px); } .deck__btn.pressed .deck__cap, .deck__btn:active .deck__cap { transform: translateY(5px); box-shadow: 0 1px 0 #1a0a24, 0 0 0 4px #05020a, 0 0 40px var(--c); }
.deck__hint { font-size: .8rem; }
.deck.has-credit .deck__cap { animation: capglow 1.2s ease-in-out infinite; }
@keyframes capglow { 50% { box-shadow: 0 6px 0 #1a0a24, 0 0 0 4px #05020a, 0 0 46px var(--c), 0 0 80px var(--c); } }

/* CHAOS OF DESTINY: ventanas del propio juego */
.cod { position: relative; padding: clamp(70px, 10vw, 140px) 0; background: radial-gradient(70% 55% at 88% 100%, rgba(255,90,30,.16), transparent 70%), radial-gradient(60% 50% at 0% 0%, rgba(80,160,255,.1), transparent 70%); }
.cod__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; align-items: stretch; }
.rpgwin { position: relative; padding: 24px 28px; border-radius: 14px; color: var(--text);
  background: linear-gradient(180deg, rgba(20,34,104,.94), rgba(6,10,44,.96)); box-shadow: 0 0 0 2px #cfd8ff, 0 0 0 5px #070b26, 0 0 0 6px rgba(207,216,255,.45), 0 24px 60px -10px rgba(0,0,0,.7), inset 0 0 44px rgba(70,100,240,.28); }
.rpgwin__tag { font-family: var(--f-mono); font-size: .78rem; opacity: .9; margin-bottom: 10px; }
.cod__title { display: grid; gap: 12px; align-content: start; }
.cod__logo { width: min(100%, 560px); height: auto; filter: drop-shadow(0 0 18px rgba(155,63,212,.55)); }
.cod__pitch { font-size: 1.08rem; line-height: 1.55; }
.cod__pitch--b { font-weight: 800; font-size: 1.4rem; font-family: var(--f-title); }
.cod__menu { grid-column: 1; display: grid; gap: 4px; align-content: start; }
.rpgcmd { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; font-weight: 600; font-size: 1.05rem; transition: background .12s, transform .12s; }
.rpgcmd i { font-style: normal; font-size: .85rem; opacity: 0; transform: translateX(-6px); transition: opacity .12s, transform .12s; color: #ffd24a; }
.rpgcmd:hover, .rpgcmd:focus-visible { background: rgba(130,160,255,.28); transform: translateX(4px); }
.rpgcmd:hover i, .rpgcmd:focus-visible i, .rpgcmd--main i { opacity: 1; transform: none; animation: curs .7s steps(1) infinite; }
@keyframes curs { 50% { opacity: .2; } }

/* EQUIPO: expedientes */
.crew { display: grid; grid-template-columns: minmax(230px, 320px) 1fr; gap: 20px; margin-top: 34px; align-items: start; }
.crew__tabs { display: grid; gap: 12px; }
.member { display: grid; grid-template-columns: 52px 1fr; grid-template-areas: "i k" "i n" "i s"; column-gap: 14px; align-items: center; text-align: left; padding: 16px 18px; border: 0; border-radius: 14px; cursor: pointer; background: rgba(23,16,28,.78); opacity: .7; transition: opacity .15s, transform .15s, box-shadow .15s; }
.member svg { grid-area: i; width: 48px; height: 48px; color: var(--violet-light); }
.member .mono { grid-area: k; font-size: .7rem; } .member b { grid-area: n; font-size: 1.5rem; font-weight: 800; line-height: 1.1; } .member small { grid-area: s; font-size: .85rem; line-height: 1.3; }
.member:hover { opacity: 1; transform: translateX(4px); }
.member.is-on { opacity: 1; transform: translateX(8px); box-shadow: 0 0 0 2px var(--magenta), 0 0 40px -6px rgba(224,69,158,.7); }
.member.is-on svg { color: var(--magenta); filter: drop-shadow(0 0 8px var(--magenta)); }
.member--ghost { animation: ghost 2.2s steps(1) infinite; }
.member--ghost[hidden] { display: none; }
.dossier { display: grid; gap: 20px; padding: 30px 32px; min-height: 360px; }
.dos__head { display: flex; gap: 18px; align-items: center; }
.dos__icon { width: 64px; height: 64px; color: var(--magenta); filter: drop-shadow(0 0 12px var(--magenta)); flex: none; }
.dos__head h3 { font-size: clamp(2rem, 4vw, 3rem); }
.dos__role { font-family: var(--f-kick); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; }
.dos__say { font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 800; line-height: 1.2; font-family: var(--f-title); text-shadow: 0 0 30px rgba(155,63,212,.6); }
.dos__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.dos__cols h4 { margin-bottom: 10px; }
.dos__cols ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.dos__cols li { line-height: 1.5; padding-left: 18px; position: relative; }
.dos__cols li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.dos__links a { display: block; padding: 10px 14px; border-radius: 10px; background: rgba(155,63,212,.18); box-shadow: inset 0 0 0 1.5px rgba(155,63,212,.5); transition: background .15s, transform .15s; line-height: 1.35; }
.dos__links a:hover { background: rgba(224,69,158,.28); transform: translateX(4px); }
.dos__rule { padding-top: 6px; }
.dossier.is-in { animation: dosin .35s ease; }
@keyframes dosin { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  .cod__grid { grid-template-columns: 1fr; }
  .cod__menu { order: 3; }
  .crew { grid-template-columns: 1fr; }
  .crew__tabs { grid-template-columns: 1fr; }
  .dos__cols { grid-template-columns: 1fr; }
  .deck__plate { transform: none; }
  .deck__games { gap: 14px; }
}

/* ====== v6: més neó i glow a la hero (el glow és sagrat) ====== */
.nav__links a { white-space: nowrap; }
.logo3d__img { animation: neon2 5s ease-in-out infinite, flick2 9s linear infinite; }
@keyframes neon2 {
  0%, 100% { filter: brightness(1.35) drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 0 10px rgba(155,63,212,1)) drop-shadow(0 0 30px rgba(120,0,170,1)) drop-shadow(0 0 70px rgba(106,0,154,.95)) drop-shadow(0 0 140px rgba(155,63,212,.65)); }
  50% { filter: brightness(1.35) drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 0 12px rgba(224,69,158,1)) drop-shadow(0 0 34px rgba(224,69,158,.8)) drop-shadow(0 0 80px rgba(155,63,212,.9)) drop-shadow(0 0 150px rgba(224,69,158,.55)); }
}
@keyframes flick2 { 0%, 18%, 22%, 61%, 65%, 100% { opacity: 1; } 20%, 63% { opacity: .94; } 21% { opacity: .99; } }
.logo3d::before { content: ""; position: absolute; left: -10%; right: -10%; top: -45%; bottom: -45%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(155,63,212,.6), rgba(224,69,158,.24) 55%, transparent 74%); animation: halo 8s ease-in-out infinite, halohue 26s linear infinite; }
@keyframes halo { 50% { transform: scale(1.12); opacity: .72; } }
@keyframes halohue { 0%, 100% { filter: blur(12px) hue-rotate(0deg); } 50% { filter: blur(12px) hue-rotate(-38deg); } }
.logo3d__refl { opacity: .62; }
.hero__pool { background: radial-gradient(closest-side, rgba(120,0,170,.85), rgba(155,63,212,.3) 55%, transparent); }
.hero__stage h1 { text-shadow: 0 0 24px rgba(155,63,212,.8), 0 0 60px rgba(106,0,154,.7); }
.kicker { text-shadow: 0 0 14px rgba(224,69,158,.9); }
.deck__plate { box-shadow: 0 0 0 2px #05020a, 0 -1px 0 1px rgba(244,238,248,.28) inset, 0 0 0 4px rgba(224,69,158,.35), 0 0 36px 2px rgba(224,69,158,.55), 0 0 100px -6px rgba(155,63,212,.85), 0 30px 60px -20px rgba(0,0,0,.85); }
.deck__led { text-shadow: 0 0 16px var(--magenta), 0 0 36px var(--magenta), 0 0 3px #fff; }

/* ====== v7: neó i glow a tota la landing ====== */
h2 { text-shadow: 0 0 6px rgba(244,238,248,.5), 0 0 22px rgba(155,63,212,.95), 0 0 56px rgba(106,0,154,.85), 0 0 110px rgba(106,0,154,.5); }
.reveal.is-in h2 { animation: neonon 1.2s steps(1) 1; }
@keyframes neonon { 0% { opacity: 0; } 6% { opacity: 1; } 12% { opacity: .15; } 22% { opacity: 1; } 30% { opacity: .35; } 46% { opacity: 1; } 54% { opacity: .6; } 100% { opacity: 1; } }
.lead { text-shadow: 0 0 22px rgba(155,63,212,.35); }

/* cada sección tiene su luz de color detrás */
.section, .soul, .cod { position: relative; }
.section::after { content: ""; position: absolute; z-index: -1; width: min(900px, 90vw); height: 420px; top: 18%; pointer-events: none; opacity: .5; filter: blur(30px);
  background: radial-gradient(closest-side, rgba(155,63,212,.55), rgba(224,69,158,.18) 60%, transparent); animation: sectionglow 11s ease-in-out infinite; }
#sala::after { left: -10%; } #newsletter::after { right: -12%; background: radial-gradient(closest-side, rgba(224,69,158,.5), rgba(155,63,212,.2) 60%, transparent); }
#equipo::after { left: 20%; } #contacto::after { right: 10%; background: radial-gradient(closest-side, rgba(224,69,158,.5), rgba(106,0,154,.2) 60%, transparent); }
@keyframes sectionglow { 50% { opacity: .8; transform: scale(1.1); } }

/* tubos de neón entre secciones */
@keyframes tube { 0%, 100% { opacity: 1; } 45% { opacity: .95; } 47% { opacity: .55; } 49% { opacity: 1; } 78% { opacity: .85; } 80% { opacity: 1; } }

/* rótulo: más luz */
.ticker { box-shadow: 0 0 80px -6px var(--violet), inset 0 0 50px rgba(106,0,154,.5), 0 0 0 1px rgba(224,69,158,.35); }
.ticker__track { text-shadow: 0 0 6px rgba(244,238,248,.6), 0 0 22px var(--magenta), 0 0 50px var(--magenta); }

/* máquinas: charco de luz de color en el suelo */
.mach::after { content: ""; position: absolute; left: 50%; bottom: 52px; width: 90%; height: 60px; transform: translateX(-50%); border-radius: 50%; z-index: -1; pointer-events: none; filter: blur(18px); opacity: .85; background: radial-gradient(closest-side, var(--mc, #9B3FD4), transparent); animation: sectionglow 5s ease-in-out infinite; }
.mach--cod { --mc: rgba(255,120,40,.65); } .mach--soul { --mc: rgba(70,150,160,.7); } .mach--off { --mc: rgba(224,69,158,.55); }
.mach__name { text-shadow: 0 0 14px rgba(224,69,158,.9); }

/* paneles y tarjetas con borde de neón */
.card, .dossier { box-shadow: 0 0 0 1.5px rgba(155,63,212,.55), 0 0 34px -4px rgba(155,63,212,.7), 0 0 90px -20px rgba(224,69,158,.55); }
.member.is-on { box-shadow: 0 0 0 2px var(--magenta), 0 0 30px 0 rgba(224,69,158,.9), 0 0 80px -6px rgba(224,69,158,.6); }
.rpgwin { box-shadow: 0 0 0 2px #cfd8ff, 0 0 0 5px #070b26, 0 0 0 6px rgba(207,216,255,.45), 0 0 50px -4px rgba(110,140,255,.65), 0 0 120px -20px rgba(155,63,212,.6), 0 24px 60px -10px rgba(0,0,0,.7), inset 0 0 44px rgba(70,100,240,.28); }
.form input { box-shadow: inset 0 0 0 1.5px rgba(155,63,212,.7), 0 0 20px -4px rgba(155,63,212,.6); }

/* Soulless: halo de su color */
.soul__logo { filter: drop-shadow(0 0 4px rgba(190,240,250,.9)) drop-shadow(0 0 26px rgba(70,150,160,.9)) drop-shadow(0 0 70px rgba(190,60,60,.45)); }
.soul__orb { box-shadow: 0 0 110px 20px rgba(70,150,160,.45), 0 0 200px 40px rgba(190,60,60,.2), inset 0 0 60px rgba(0,0,0,.9); }

/* contacto */
.mail { text-shadow: 0 0 6px rgba(244,238,248,.5), 0 0 22px var(--magenta), 0 0 60px var(--magenta); }
.social a:hover { text-shadow: 0 0 10px #fff, 0 0 26px var(--magenta); }
.foot img, .nav__logo img { filter: drop-shadow(0 0 3px rgba(255,255,255,.7)) drop-shadow(0 0 14px rgba(155,63,212,.95)); }
h2 { text-shadow: 0 0 3px rgba(255,255,255,.9), 0 0 12px rgba(224,69,158,.9), 0 0 32px rgba(224,69,158,.65), 0 0 70px rgba(155,63,212,.9), 0 0 140px rgba(106,0,154,.7); }
.lead { text-shadow: 0 0 16px rgba(155,63,212,.55), 0 0 40px rgba(106,0,154,.4); }

/* la trampilla del sótano */
.foot { position: relative; }
.hatch { position: relative; width: 64px; height: 30px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hatch span { position: absolute; inset: 4px 0; border-radius: 3px; background: repeating-linear-gradient(90deg, #1b1226 0 6px, #0e0816 6px 12px); box-shadow: inset 0 0 0 1.5px #3a2552, 0 0 0 1px #05020a; }
.hatch span::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -3px; height: 2px; background: var(--magenta); box-shadow: 0 0 10px 2px var(--magenta), 0 0 30px 6px rgba(224,69,158,.6); opacity: .0; animation: crack 7s ease-in-out infinite; }
@keyframes crack { 0%, 60%, 100% { opacity: 0; } 70%, 78% { opacity: .85; } 74% { opacity: .3; } }
.hatch:hover span::after { opacity: 1; animation: none; }
.hatch.open span { transform: translateY(-6px) rotate(-8deg); transition: transform .4s; }


/* ====================================================================
   v8: rendimiento. Lo que antes se redibujaba cada fotograma ahora es estático
   o solo mueve opacidad/transform (lo hace la GPU). El aspecto se mantiene.
   ==================================================================== */
.logo3d { will-change: transform; }
/* el glow del logo ya no anima filtros: dos capas estáticas que se funden */
.logo3d__img { animation: none !important; filter: brightness(1.35) drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 0 10px rgba(155,63,212,1)) drop-shadow(0 0 30px rgba(120,0,170,1)) drop-shadow(0 0 70px rgba(106,0,154,.95)); }
.logo3d__alt { position: absolute; inset: 0; width: 100%; height: auto; pointer-events: none; opacity: 0; will-change: opacity;
  filter: brightness(1.35) drop-shadow(0 0 2px rgba(255,255,255,.95)) drop-shadow(0 0 12px rgba(224,69,158,1)) drop-shadow(0 0 34px rgba(224,69,158,.8)) drop-shadow(0 0 80px rgba(155,63,212,.9));
  animation: altpulse 5s ease-in-out infinite, flick2 9s linear infinite; }
@keyframes altpulse { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.logo3d::before { filter: none; animation: halo 8s ease-in-out infinite; will-change: transform, opacity; }
.logo3d__shine, .logo3d__glint { mix-blend-mode: normal; overflow: hidden; background: none; animation: none; }
.logo3d__shine { opacity: .42; }
.logo3d__shine::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 320%; background: linear-gradient(100deg, #55d4e6, #f4c971, #f58cc0, #8a93ff, #86e3ae, #55d4e6); animation: shinex 26s linear infinite; will-change: transform; }
@keyframes shinex { to { transform: translateX(-68.75%); } }
.logo3d__glint::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.85) 50%, transparent); transform: translateX(-120%); animation: glintx 9s ease-in-out infinite; will-change: transform; }
@keyframes glintx { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(320%); } }
.logo3d__refl { animation: none; }

/* charcos de luz del fondo en CSS (antes eran dibujos del canvas en cada fotograma) */
.pools { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pools i { position: absolute; bottom: -22vh; width: 52vw; height: 44vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(155,63,212,.5), transparent); opacity: .5; animation: pool 12s ease-in-out infinite; will-change: opacity; }
.pools i:nth-child(1) { left: -8vw; } .pools i:nth-child(2) { left: 28vw; background: radial-gradient(closest-side, rgba(224,69,158,.45), transparent); animation-delay: -4s; } .pools i:nth-child(3) { right: -8vw; animation-delay: -8s; }
@keyframes pool { 50% { opacity: .9; } }

/* nada de desenfoques animados ni mezclas costosas */
.section::after { filter: none; animation: none; opacity: .45; }
.mach::after { filter: none; animation: none; }
.spot { mix-blend-mode: normal; background: radial-gradient(circle, rgba(155,63,212,.2), rgba(224,69,158,.05) 45%, transparent 70%); will-change: transform; }
.noise { inset: -3%; opacity: .07; }
.card, .dossier, .nav.is-solid, .gnav.is-solid { backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.is-solid, .gnav.is-solid { background: rgba(13,7,16,.94); }
.card { background: rgba(23,16,28,.94); }
h2 { text-shadow: 0 0 3px rgba(255,255,255,.9), 0 0 12px rgba(224,69,158,.9), 0 0 32px rgba(224,69,158,.65), 0 0 70px rgba(155,63,212,.85); }
.kb { animation: none; }
.mach .bar { animation-timing-function: steps(10); }
.mach .sb { animation: bulbs 1.3s steps(2) infinite; }
.linklike { background: none; border: 0; cursor: pointer; text-decoration: none; opacity: .75; padding: 4px 8px; }
.linklike:hover { opacity: 1; text-shadow: 0 0 10px var(--magenta); }

/* modo ligero: lo mínimo, para equipos justos */
html.lowfx .noise, html.lowfx .spot, html.lowfx .pools, html.lowfx .logo3d__shine, html.lowfx .logo3d__glint, html.lowfx .logo3d__alt, html.lowfx .section::after, html.lowfx .mach::after { display: none; }
html.lowfx .logo3d::before, html.lowfx .hero__pool, html.lowfx .tube, html.lowfx .ticker__track { animation: none; }
html.lowfx .neon { animation: none; box-shadow: 0 0 10px 2px rgba(224,69,158,.8); }
html.lowfx .mach .sb, html.lowfx .kb, html.lowfx .mach .bar { animation: none; }
html.lowfx .logo3d__img { filter: brightness(1.3) drop-shadow(0 0 12px rgba(155,63,212,1)) drop-shadow(0 0 40px rgba(106,0,154,.9)); }
html.lowfx h2 { text-shadow: 0 0 14px rgba(224,69,158,.8), 0 0 40px rgba(155,63,212,.7); }

/* bienvenida personal */
.hero__stage h1 { max-width: 24ch; min-height: 2.2em; }
h1.typing::after { content: "▍"; margin-left: 4px; animation: blinkt .7s steps(1) infinite; }
.gate__opt { display: grid; grid-template-columns: 22px 1fr; gap: 12px; text-align: left; font-size: .9rem; line-height: 1.45; max-width: 520px; cursor: pointer; }
.gate__opt input { width: 20px; height: 20px; accent-color: var(--magenta); margin-top: 2px; }
.foot { flex-wrap: wrap; row-gap: 12px; }
.foot__priv { flex-basis: 100%; font-size: .78rem; opacity: .75; text-align: center; margin: 0; }
.foot__ctl { display: flex; gap: 8px; flex-wrap: wrap; }
.hatch-hint .hatch span::after { opacity: .95; animation: none; }

/* Soulless: la oscuridad (mini-juego) */
.dark { position: fixed; inset: 0; z-index: 260; background: #020104; touch-action: none; cursor: none; }
.dark[hidden] { display: none; }
.dark canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.dark__hud { position: absolute; left: 18px; top: 16px; display: grid; gap: 4px; pointer-events: none; text-shadow: 0 0 14px rgba(120,200,210,.7); }
.dark__hud #dark-count { font-size: 1.1rem; font-weight: 700; }
.dark__ctl { position: absolute; right: 16px; top: 14px; display: flex; gap: 8px; cursor: auto; }
.dark__end { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 12px; padding: 24px; background: radial-gradient(circle, rgba(2,1,4,.4), rgba(2,1,4,.92)); animation: dosin .8s ease; }
.dark__end p:first-child { font-size: clamp(2rem, 7vw, 5rem); font-weight: 800; font-family: var(--f-title); text-shadow: 0 0 40px rgba(120,200,210,.8), 0 0 90px rgba(190,60,60,.5); }
body.is-dark { overflow: hidden; }
[hidden] { display: none !important; }
.foot__legal{font-size:.8rem;opacity:.75}.foot__legal a{color:inherit;text-decoration:underline;text-underline-offset:3px}.foot__legal a:hover{color:var(--magenta,#E0459E)}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:.78rem;line-height:1.5;margin-top:12px;cursor:pointer;opacity:.9}.consent input{margin-top:3px;accent-color:#E0459E;flex:none}.consent a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.form .consent input{flex:none;width:18px;height:18px;padding:0;box-shadow:none;background:transparent}
.form__msg.is-ok,.form__msg.is-err{margin-top:6px;padding:12px 14px;border-radius:10px;font-size:.92rem;line-height:1.5;color:#fff}
.form__msg.is-ok{background:rgba(224,69,158,.14);box-shadow:inset 0 0 0 1.5px #E0459E,0 0 24px -6px #E0459E;text-shadow:0 0 12px rgba(224,69,158,.7)}
.form__msg.is-err{background:rgba(255,80,80,.12);box-shadow:inset 0 0 0 1.5px #ff5a5a}
/* Soulless: la llamada a entrar en la oscuridad, separada del texto y con su pie */
.soul__cta { margin-top: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.soul__cta .btn { padding: 17px 30px; }
.soul__cta .soul__hint { margin: 0; }
@media (max-width: 760px) { .soul__cta { align-items: stretch; text-align: center; } .soul__cta .btn { width: 100%; } }
/* ranura de la newsletter: placa de recreativa, a todo el ancho del formulario */
.slotwrap { height: 104px; border-radius: 14px; overflow: hidden; align-items: end;
  background:
    radial-gradient(circle at 14px 14px, #5a4070 0 3px, #1a1022 4px 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 14px) 14px, #5a4070 0 3px, #1a1022 4px 5px, transparent 6px),
    radial-gradient(circle at 14px calc(100% - 14px), #5a4070 0 3px, #1a1022 4px 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #5a4070 0 3px, #1a1022 4px 5px, transparent 6px),
    linear-gradient(180deg, #2f1d41, #170f20);
  box-shadow: inset 0 0 0 1.5px rgba(155,63,212,.6), inset 0 2px 0 rgba(255,255,255,.08), 0 0 28px -10px rgba(224,69,158,.75); }
.slotwrap::before { content: "INSERT COIN"; position: absolute; top: 14px; left: 0; right: 0; text-align: center; font: 400 .74rem "Special Gothic Expanded One", sans-serif; letter-spacing: .32em; color: #fff; text-shadow: 0 0 6px #fff, 0 0 16px var(--magenta), 0 0 34px var(--magenta); animation: insblink 1.4s steps(1) infinite; }
.slotwrap::after { content: ""; position: absolute; top: 42px; left: calc(50% - 6px); border: 6px solid transparent; border-top: 8px solid var(--magenta); filter: drop-shadow(0 0 6px var(--magenta)); animation: insblink 1.4s steps(1) infinite .7s; }
@keyframes insblink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
.slotwrap .slot { width: min(240px, 66%); height: 16px; margin: 0 auto 20px; background: #000; border-radius: 10px; box-shadow: inset 0 2px 6px #000, 0 0 0 3px #3a2352, 0 0 0 4.5px rgba(224,69,158,.55), 0 0 26px rgba(224,69,158,.7); }
.slotwrap .coin { top: -44px; }
@keyframes drop { 0% { transform: translateY(0) rotateY(0); opacity: 1; } 85% { transform: translateY(112px) rotateY(720deg); opacity: 1; } 100% { transform: translateY(118px) scaleY(.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .slotwrap::before, .slotwrap::after { animation: none; } }

/* intro "trace": los contornos de piezas con varias partes (L, A, M...) se trazan por separado.
   La pieza original (.cp) solo pone el relleno al final, así los huecos de las letras se respetan. */
.intro__logo svg > .sp { display: none; }
html[data-intro="trace"] .intro__logo svg > .sp { display: inline; animation: draw .9s cubic-bezier(.3,.6,.3,1) forwards, strokeout .5s ease forwards; animation-delay: calc(.5s + var(--i) * .045s), 2.1s; }
html[data-intro="trace"] .intro__logo svg > .cp { stroke: transparent; stroke-dasharray: none; stroke-dashoffset: 0; animation: fillonly .5s ease forwards; animation-delay: 2.1s; }
@keyframes strokeout { to { stroke: rgba(244,238,248,0); } }
@keyframes fillonly { to { fill: #F4EEF8; } }

/* ---- cuatro máquinas en la sala ---- */
.floor { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .floor { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .floor { grid-template-columns: 1fr; } }
.deck__btn--c { --c: #7ee05a; --cd: #1f4d2a; }

/* ---- beats (soulless y monquest) ---- */
.beats { display: grid; gap: 16px; margin: 20px 0 8px; }
.beats h3 { margin: 0 0 4px; font-family: var(--f-kick); font-weight: 400; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(150,215,225,.95); }
.beats p { margin: 0; line-height: 1.5; }

/* ---- monquest ---- */
.mq { position: relative; z-index: 2; padding: clamp(70px, 10vw, 140px) 0 0; overflow: hidden; background: linear-gradient(180deg, #0D0710 0%, #1b2a5a 38%, #2f3f6a 100%); }
.mq::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7; background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 27% 8%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 41% 24%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 58% 12%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 73% 6%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 88% 20%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 94% 9%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 6% 36%, #fff 50%, transparent 52%); }
.mq__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.mq__logo { width: min(100%, 500px); height: auto; margin: 6px 0 18px; filter: drop-shadow(0 0 22px rgba(126,224,90,.35)); }
.mq .beats h3 { color: #b6e98a; }
.mq__text .tag { margin-top: 12px; }
.mq__shot { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 3px #140a24, 0 0 60px rgba(126,224,90,.22), 0 24px 60px rgba(0,0,0,.5); }
.mq__shot img { display: block; width: 100%; height: auto; }
.mq__cap { position: relative; margin: clamp(36px, 5vw, 64px) 0 0; text-align: center; color: #cfe8b8; letter-spacing: .2em; text-transform: uppercase; }
.mq__gang { position: relative; list-style: none; margin: 0; padding: 0 0 26px; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-end; gap: 6px; min-height: 150px; }
@media (max-width: 1100px) { .mq__gang { overflow-x: auto; overflow-y: hidden; justify-content: flex-start; gap: 14px; scrollbar-width: none; } .mq__gang::-webkit-scrollbar { display: none; } .mq__gang::after { display: none; } .mq__gang { border-bottom: 26px solid #6a6a72; padding-bottom: 0; } }
.mq__gang li { flex: none; }
.mq__gang li { position: relative; display: grid; justify-items: center; cursor: default; animation: mqbob 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.35s); }
.mq__gang img { display: block; height: clamp(74px, 6.4vw, 92px); width: auto; transition: transform .2s; transform-origin: bottom center; }
.mq__gang li:hover img { transform: scale(1.12) rotate(-3deg); }
.mq__gang span { position: absolute; z-index: 3; left: 50%; bottom: -22px; transform: translateX(-50%); white-space: nowrap; font-size: .68rem; letter-spacing: .08em; opacity: 0; transition: opacity .15s; color: #fff; text-shadow: 0 1px 4px #000; pointer-events: none; }
.mq__gang li:hover span, .mq__gang li:focus-within span { opacity: 1; }
.mq__gang::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 100vw; height: 26px; transform: translateX(-50%); background: #6a6a72; z-index: -1; box-shadow: 0 -2px 0 #4b4b53; }
@keyframes mqbob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (max-width: 900px) { .mq__grid { grid-template-columns: 1fr; } .mq__shot { order: -1; } }
@media (prefers-reduced-motion: reduce) { .mq__gang li { animation: none; } }
.deck__games { flex-wrap: wrap; justify-content: center; }
@media (max-width: 600px) { .deck__plate { padding: 18px 14px 20px; } .deck__games { gap: 8px; } .deck__btn { width: 94px; } .deck__btn b { font-size: .58rem; } }

/* ---- separadores de neón: un solo color, entre secciones ---- */
.neon { display: block; position: relative; z-index: 3; width: min(520px, 60vw); height: 3px; margin: 0 auto; border: 0; border-radius: 3px; transform: translateY(-1px); pointer-events: none; background: #E0459E; box-shadow: 0 0 10px 2px rgba(224,69,158,.9), 0 0 36px 8px rgba(224,69,158,.5); animation: tube 6s linear infinite; }

/* ---- evitar el desborde horizontal en móvil ---- */
html, body { overflow-x: clip; }
@media (max-width: 600px) { .nav { gap: 8px; } .hud { gap: 6px; } .hud__btn { padding: 6px 10px; font-size: .66rem; } .hud .btn--small { padding: 8px 12px; } .nav__logo img { height: 34px; } }

/* ---- botón preparado, sin enlace todavía ---- */
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; filter: saturate(.6); cursor: default; }
.mq__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---- monquest: cielo y luna del juego ---- */
.mq { background: #1b2a5a url("assets/monquest/fondo.svg") center bottom / cover no-repeat; padding-bottom: 0; }
.mq::before { background-image: linear-gradient(90deg, rgba(13,7,16,.82) 0%, rgba(13,7,16,.5) 45%, rgba(13,7,16,.1) 100%), linear-gradient(180deg, rgba(13,7,16,.85), transparent 22%); opacity: 1; z-index: 0; }
.mq > .wrap, .mq__moon { position: relative; z-index: 1; }
.mq__moon { position: absolute; right: clamp(16px, 9vw, 150px); top: clamp(60px, 9vw, 120px); width: clamp(80px, 11vw, 150px); height: auto; filter: drop-shadow(0 0 40px rgba(255,243,196,.55)); animation: mqmoon 9s ease-in-out infinite; pointer-events: none; }
@keyframes mqmoon { 50% { transform: translateY(8px); filter: drop-shadow(0 0 60px rgba(255,243,196,.8)); } }
.mq__gang { padding-bottom: 34px; }
.mq__gang::after { display: none; }
@media (max-width: 1100px) { .mq__gang { border-bottom: 0; padding-bottom: 34px; } }
@media (prefers-reduced-motion: reduce) { .mq__moon { animation: none; } }

/* ---- soulless: puerta a la página del juego ---- */
.soul__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.dark__end { cursor: auto; justify-items: center; }
.dark__end .btn { margin-top: 10px; }
@media (max-width: 760px) { .soul__btns { flex-direction: column; } }
@media (max-width: 600px) { .dark__hud { top: 64px; } .dark__ctl { left: 12px; right: 12px; justify-content: flex-end; flex-wrap: wrap; } }

/* ODISEA INDIE: aviso de feria */
.evt { position: relative; padding: clamp(56px, 9vw, 110px) 0; overflow: hidden; }
.evt::before { content: ""; position: absolute; inset: 10% -10%; background: radial-gradient(50% 60% at 30% 50%, rgba(106,0,154,.45), transparent 70%), radial-gradient(40% 50% at 75% 45%, rgba(224,69,158,.18), transparent 70%); pointer-events: none; }
.evt__grid { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.evt__pic { position: relative; margin: 0; rotate: -2.5deg; transition: rotate .4s cubic-bezier(.2,.8,.2,1); }
.evt__pic:hover { rotate: 0deg; }
.evt__pic img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 18px; box-shadow: 0 0 0 2px rgba(224,69,158,.85), 0 0 34px -2px rgba(224,69,158,.7), 0 0 90px -10px var(--violet-light), 0 30px 60px -20px #000; }
.evt__pic::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px), linear-gradient(180deg, transparent 55%, rgba(13,7,16,.55)); mix-blend-mode: multiply; }
.evt__tape { position: absolute; z-index: 2; white-space: nowrap; top: -14px; left: 50%; translate: -50% 0; rotate: 3deg; padding: 6px 18px; background: rgba(244,238,248,.92); color: #17101C; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 6px 16px -6px #000; }
.evt__live { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: rgba(224,69,158,.14); box-shadow: inset 0 0 0 1.5px rgba(224,69,158,.7), 0 0 22px -6px var(--magenta); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; }
.evt__live i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b6b; box-shadow: 0 0 10px 2px #ff3b6b; animation: evtpulse 1.4s ease-in-out infinite; }
@keyframes evtpulse { 50% { opacity: .3; box-shadow: 0 0 2px 0 #ff3b6b; } }
.evt__body h2 { margin-top: 20px; max-width: 14ch; }
.evt__body h2 span { background: linear-gradient(100deg, #F4EEF8 0%, #E0459E 55%, #9B3FD4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 18px rgba(224,69,158,.45)); }
.evt__ticket { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.evt__day, .evt__where { position: relative; display: grid; justify-items: center; align-content: center; min-width: 92px; padding: 12px 16px; border-radius: 14px; background: rgba(23,16,28,.85); box-shadow: inset 0 0 0 1.5px rgba(155,63,212,.75), 0 0 26px -10px var(--violet-light); }
.evt__day small { font-family: var(--f-kick); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.evt__day b { font-family: var(--f-kick); font-size: 2.3rem; line-height: 1.05; color: #fff; text-shadow: 0 0 6px rgba(244,238,248,.6), 0 0 22px var(--magenta); }
.evt__where { justify-items: start; padding-inline: 22px; border-left: 0; }
.evt__where::before { content: ""; position: absolute; left: -7px; top: 14px; bottom: 14px; border-left: 2px dashed rgba(244,238,248,.35); }
.evt__where small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.evt__where b { font-family: var(--f-kick); font-size: 1.25rem; letter-spacing: .06em; text-transform: uppercase; }
.evt__txt { margin-top: 26px; max-width: 46ch; font-size: 1.12rem; }
.evt__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
html.lowfx .evt__live i { animation: none; }
@media (max-width: 820px) {
  .evt__grid { grid-template-columns: 1fr; }
  .evt__pic { width: min(380px, 86%); margin-inline: auto; rotate: -1.5deg; }
  .evt__body { text-align: left; }
}
@media (max-width: 420px) {
  .evt__day, .evt__where { min-width: 0; flex: 1; padding: 10px 12px; }
  .evt__day b { font-size: 1.9rem; }
  .evt__where b { font-size: .92rem; white-space: nowrap; }
  .evt__cta .btn { flex: 1 1 100%; text-align: center; }
}

/* Chaos of Destiny: portada en lugar del deslizador */
.cod__cover { position: relative; display: block; grid-column: 2; grid-row: 1 / span 2; align-self: center; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px #cfd8ff, 0 0 0 5px #070b26, 0 0 0 6px rgba(207,216,255,.45), 0 0 60px -4px rgba(255,140,40,.55), 0 0 120px -20px rgba(155,63,212,.55), 0 24px 60px -10px rgba(0,0,0,.7); transition: transform .3s, box-shadow .3s; }
.cod__cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cod__cover:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px #ffd24a, 0 0 0 5px #070b26, 0 0 0 6px rgba(255,210,74,.45), 0 0 80px -2px rgba(255,140,40,.7), 0 24px 60px -10px rgba(0,0,0,.7); }
.cod__cover:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .cod__cover { grid-column: 1; grid-row: auto; order: 2; } }

/* Monquest: el Minicazador persigue al Lobo solitario por toda la sección (huevo de pascua).
   Los fotogramas salen del motor de dibujo del juego; el recorrido lo decide main.js. */
.chase { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; visibility: hidden; }
.chase.on { visibility: visible; }
.chase__actor { position: absolute; left: 0; top: 0; padding: 0; border: 0; background-color: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; pointer-events: auto; transform-origin: 50% 100%; will-change: transform;
  background-repeat: no-repeat; background-size: calc(100% * 12) 100%; background-position: calc(var(--f, 0) * 100% / 11) 0; filter: drop-shadow(0 6px 6px rgba(0,0,0,.45)); }
.chase__wolf { background-image: url("assets/monquest/anim/lobo.webp"); }
.chase__mini { background-image: url("assets/monquest/anim/mini.webp"); }
.chase__arrow { position: absolute; left: 0; top: 0; width: 30px; height: 2px; margin: -1px 0 0 -15px; background: #8a5a2e; opacity: 0; will-change: transform; }
.chase__arrow::after { content: ""; position: absolute; right: -7px; top: -4px; border: 5px solid transparent; border-left: 8px solid #cfe9f5; }
@media (prefers-reduced-motion: reduce) { .chase { display: none; } }

.evt__in { margin-top: 10px; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.evt__where small:last-child { margin-top: 2px; }
