/* ==========================================================================
   Monstrarium — página del juego. Hoja propia, sin la de la web: la paleta, las letras y los
   botones son los del juego (data/palette.gd y ui/ui_tokens.gd en su repositorio): relleno
   plano, contorno de tinta violeta y sombra dura debajo, sobre un zoo de noche.
   ========================================================================== */

@font-face {
  font-family: "Monstrarium Gotica";
  src: url("grenze-gotisch.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Monstrarium Redonda";
  src: url("fredoka.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Monstrarium Periodico";
  src: url("playfair-display.woff") format("woff");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* La paleta del juego */
  --night: #16101e;
  --ink: #1c1834;
  --plum: #2d2447;
  --plum-shade: #221a38;
  --plum-light: #43366a;
  --bone: #f4ecdf;
  --bone-shade: #b9aecb;
  --lime: #9cdc54;
  --lime-shade: #7cb43c;
  --lime-light: #bcec7c;
  --magenta: #e01c8c;
  --magenta-shade: #a3125f;
  --magenta-light: #ff7ab8;
  --orange: #f09c50;
  --orange-light: #f6c453;
  --violet: #a47cac;
  --violet-light: #c9a3d6;
  --mint: #a4dcd4;
  --lamp: #ffd08c;
  --mushroom: #78e6ff;
  --flower: #be96ff;
  --firefly: #c8ffaa;
  --sky-top: #091b4c;
  --sky: #0e2258;
  /* Derivados */
  --text: var(--bone);
  --text-2: #d9cfe6;
  --text-dim: var(--bone-shade);
  --line: rgba(201, 163, 214, .18);
  --line-strong: rgba(201, 163, 214, .36);
  --radius: 22px;
  --wrap: 1180px;
  --gothic: "Monstrarium Gotica", "Georgia", serif;
  --font: "Monstrarium Redonda", ui-rounded, "SF Pro Rounded", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --news: "Monstrarium Periodico", "Georgia", "Times New Roman", serif;
  --prose: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
/* Los width y height de las etiquetas solo reservan sitio: el alto lo pone el ancho. */
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Barra de arriba
   -------------------------------------------------------------------------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled {
  background: rgba(22, 16, 30, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.top .wrap { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 2.5px var(--ink), 0 3px 0 2.5px var(--ink); }
.wordmark {
  font-family: var(--gothic); font-weight: 800; font-size: 25px; letter-spacing: .01em; color: var(--bone);
  text-shadow: 0 2px 0 var(--ink), 0 0 2px var(--ink);
}
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15.5px; font-weight: 600; }
.top nav a { color: var(--text-dim); transition: color .2s; }
.top nav a:hover { color: var(--lime-light); }
.lang {
  margin-left: 4px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  border: 2px solid var(--line-strong); color: var(--text); transition: border-color .2s, background-color .2s;
}
.lang:hover { border-color: var(--lime); background: rgba(156, 220, 84, .1); }
.brand + .lang { margin-left: auto; }
@media (max-width: 980px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
}

/* --------------------------------------------------------------------------
   Portada: la ilustración del título del juego, con el nombre escrito en su cielo
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding-top: 64px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky) 40%, #111738 78%, var(--night) 100%);
}
.hero-stage { position: relative; max-width: 1920px; margin: 0 auto; }
.hero-art { display: block; pointer-events: none; }
.hero-art img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 82%, transparent 100%);
}
.hero-copy {
  position: absolute; z-index: 3; left: 0; right: 0; top: 4.5%;
  display: flex; flex-direction: column; align-items: center; padding: 0 16px;
}
.title {
  position: relative; margin: 0;
  font-family: var(--gothic); font-weight: 900; letter-spacing: .005em;
  font-size: clamp(56px, 9.4vw, 172px); line-height: .9; color: var(--bone);
}
/* El contorno y la sombra de tinta del título del juego, en una capa por debajo. */
.title::before {
  content: attr(data-text); position: absolute; inset: 0; z-index: 0;
  color: var(--ink); -webkit-text-stroke: .11em var(--ink);
  text-shadow: 0 .06em 0 var(--ink), 0 0 .45em rgba(9, 27, 76, .9);
}
.title span { position: relative; z-index: 1; }
.subtitle {
  margin-top: .2em; font-size: clamp(19px, 2.2vw, 36px); font-weight: 600; color: var(--bone);
  text-shadow: 0 3px 0 var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink), 0 0 16px rgba(9, 27, 76, .9);
}
.sky-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.firefly {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, var(--c, var(--firefly)) 0, var(--c, var(--firefly)) 22%, transparent 70%);
  opacity: 0;
  animation: drift var(--d, 9s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  20% { opacity: .95; }
  50% { transform: translate3d(var(--dx, 20px), var(--dy, -30px), 0) scale(1); opacity: .7; }
  80% { opacity: .9; }
  100% { transform: translate3d(calc(var(--dx, 20px) * -.4), calc(var(--dy, -30px) * 1.6), 0) scale(.7); opacity: 0; }
}
.hero-foot {
  position: relative; z-index: 3; margin-top: clamp(-120px, -7vw, -40px);
  display: flex; flex-direction: column; align-items: center; padding: 0 20px clamp(48px, 7vw, 84px);
}
.motto {
  text-wrap: balance;
  font-family: var(--gothic); font-weight: 700; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.05; color: var(--bone);
  text-shadow: 0 3px 0 var(--ink), 0 0 18px rgba(0, 0, 0, .7);
}
.motto em { font-style: normal; color: var(--lime); }
.tags { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text-2); }
.tags span { padding: 5px 13px; border-radius: 999px; background: rgba(28, 24, 52, .78); border: 2px solid var(--line-strong); }
.cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@media (max-aspect-ratio: 4/5) {
  .hero-art img { aspect-ratio: 4 / 5; }
  .hero-copy { top: 3.2%; }
  .hero-foot { margin-top: -64px; }
}

/* --------------------------------------------------------------------------
   Botones: como los del juego, con contorno de tinta y su sombra dura debajo
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 26px; border-radius: 16px; border: 3px solid var(--ink);
  font-size: 18px; font-weight: 600; letter-spacing: .01em; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s;
}
.btn-primary {
  background: var(--lime); color: var(--ink);
  box-shadow: inset 0 -5px 0 var(--lime-shade), inset 0 3px 0 rgba(255, 255, 255, .35), 0 6px 0 var(--ink);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 -5px 0 var(--lime-shade), inset 0 3px 0 rgba(255, 255, 255, .35), 0 8px 0 var(--ink); }
.btn-primary:active { transform: translateY(5px); box-shadow: inset 0 -3px 0 var(--lime-shade), 0 1px 0 var(--ink); }
.btn-store {
  min-height: 58px; padding: 0 20px 0 16px; gap: 12px; text-align: left; cursor: default;
  background: var(--plum-light); color: var(--text);
  box-shadow: inset 0 -5px 0 var(--plum), inset 0 3px 0 rgba(255, 255, 255, .12), 0 6px 0 var(--ink);
}
.btn-store small { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-light); line-height: 1.2; }
.btn-store b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }
a.btn-store { cursor: pointer; }
a.btn-store:hover { background: #4d3f78; }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; }
.section-alt { background: linear-gradient(180deg, var(--night) 0%, var(--plum-shade) 18%, var(--plum-shade) 82%, var(--night) 100%); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-light);
}
.eyebrow .icon { width: 18px; height: 18px; }
h2 {
  text-wrap: balance;
  margin-top: 12px; font-family: var(--gothic); font-weight: 800; font-size: clamp(38px, 5.2vw, 64px); line-height: 1;
  letter-spacing: .005em; color: var(--bone);
  text-shadow: 0 4px 0 var(--ink);
}
.hl-lime { color: var(--lime); }
.hl-pink { color: var(--magenta-light); }
.hl-gold { color: var(--orange-light); }
.hl-mint { color: var(--mint); }
.lead { text-wrap: pretty; margin-top: 18px; font-size: clamp(17.5px, 1.6vw, 20px); color: var(--text-2); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Panel pintado: relleno plano, contorno de tinta y sombra dura */
.panel {
  background: var(--plum); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .06), 0 8px 0 var(--ink);
}

/* --- El negocio --- */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.loop li { position: relative; padding: 26px 22px 24px; }
.loop li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 17px;
  background: var(--orange-light); color: var(--ink); border: 3px solid var(--ink);
}
.loop img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(28, 24, 52, .9)); }
.loop h3 { margin-top: 14px; font-size: 21px; font-weight: 600; }
.loop p { margin-top: 6px; color: var(--text-dim); font-size: 15.5px; }

.business { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 48px); align-items: center; margin-top: clamp(48px, 6vw, 72px); }
.screen {
  position: relative; border-radius: 20px; overflow: hidden; border: 3px solid var(--ink);
  box-shadow: 0 0 0 6px rgba(67, 54, 106, .6), 0 10px 0 6px var(--ink), 0 40px 80px -30px rgba(0, 0, 0, .9);
  background: #000;
}
.screen img { width: 100%; aspect-ratio: 1600 / 713; object-fit: cover; }
.security h3 { font-family: var(--gothic); font-weight: 800; font-size: 32px; text-shadow: 0 3px 0 var(--ink); }
.security > p { margin-top: 8px; color: var(--text-2); }
.levels { margin-top: 20px; display: grid; gap: 12px; }
.levels li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; }
.levels img { width: 92px; height: 62px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(28, 24, 52, .9)); }
.levels b { display: block; font-weight: 600; font-size: 17.5px; }
.levels span { display: block; color: var(--text-dim); font-size: 15px; line-height: 1.4; }
.goal { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15.5px; }
.goal .icon { color: var(--orange-light); margin-top: 2px; }

/* --- Monstruos --- */
.monsters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mcard {
  --c: var(--lime); --glow: rgba(156, 220, 84, .28);
  position: relative; display: flex; flex-direction: column; padding: 0 22px 26px; overflow: hidden;
  background: radial-gradient(110% 60% at 50% 28%, var(--glow), transparent 64%), var(--plum);
  transition: transform .3s ease, box-shadow .3s;
}
.mcard.m-sombra { --c: var(--flower); --glow: rgba(190, 150, 255, .3); }
.mcard.m-gemelos { --c: var(--magenta-light); --glow: rgba(255, 122, 184, .26); }
.mcard.m-devorador { --c: #ff6b6b; --glow: rgba(224, 52, 74, .32); }
.mcard:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .06), 0 14px 0 var(--ink); }
.mcard figure { margin: 16px 0 6px; height: 210px; display: grid; place-items: end center; }
.mcard img { max-height: 210px; width: auto; filter: drop-shadow(0 10px 0 rgba(28, 24, 52, .55)); transition: transform .35s ease; transform-origin: 50% 100%; }
.mcard:hover img { transform: scale(1.06) rotate(1.5deg); }
.mname { font-family: var(--gothic); font-weight: 800; font-size: 36px; color: var(--c); text-shadow: 0 3px 0 var(--ink); }
/* En inglés: el nombre del juego, en español, y su traducción debajo. */
.mname small { display: block; margin-top: 2px; font-family: var(--font); font-weight: 500; font-size: 14px; color: var(--text-dim); text-shadow: none; }
.levels i { font-style: normal; font-weight: 500; color: var(--text-dim); }
.quirk {
  margin: 10px 0 12px; align-self: flex-start; padding: 4px 11px; border-radius: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.3;
  color: var(--ink); background: var(--c); border: 2px solid var(--ink);
}
.mtext { color: var(--text-dim); font-size: 15.5px; }
@media (max-width: 1080px) { .monsters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .monsters {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 16px 24px; margin: -18px -16px 0;
    scrollbar-width: none;
  }
  .monsters::-webkit-scrollbar { display: none; }
  .mcard { scroll-snap-align: center; }
  .mcard:hover { transform: none; }
}

/* --- La fuga --- */
.escape { background: radial-gradient(60% 50% at 70% 30%, rgba(224, 28, 140, .16), transparent 70%); }
.escape-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.steps { margin-top: 30px; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; color: var(--text-2); }
.steps b { color: var(--text); font-weight: 600; }
.step-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--plum-light); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.step-icon img { width: 34px; height: 34px; object-fit: contain; }
.step-icon.alarm { background: var(--magenta-shade); color: var(--bone); font-family: var(--gothic); font-weight: 900; font-size: 26px; }
.alert-shot { position: relative; }
.alert-shot .screen { box-shadow: 0 0 0 6px rgba(163, 18, 95, .55), 0 10px 0 6px var(--ink), 0 0 120px -20px rgba(224, 28, 140, .55); }
.nam {
  position: absolute; z-index: 2; right: -10px; top: -26px; padding: 6px 16px; border-radius: 14px;
  font-family: var(--gothic); font-weight: 900; font-size: clamp(26px, 3vw, 38px); color: var(--magenta-light);
  background: var(--ink); border: 3px solid var(--magenta-shade); transform: rotate(6deg);
  animation: wobble 2.6s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: rotate(-3deg) scale(1.06); } }

.paper-row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 48px); align-items: center; margin-top: clamp(56px, 7vw, 88px); }
.newspaper {
  position: relative; padding: 22px clamp(18px, 3vw, 34px) 26px; border-radius: 10px; color: var(--ink);
  background: var(--bone) url("paper.webp") repeat; background-size: 256px;
  border: 3px solid var(--ink); box-shadow: 0 10px 0 var(--ink), 0 40px 80px -30px rgba(0, 0, 0, .9);
  transform: rotate(-1.2deg);
}
.masthead {
  position: relative; display: grid; place-items: center; aspect-ratio: 1280 / 200;
  background: url("newspaper-header.webp") center / contain no-repeat;
}
.masthead span { font-family: var(--gothic); font-weight: 800; font-size: clamp(18px, 3vw, 34px); color: var(--ink); padding: 0 18%; text-align: center; line-height: 1; }
.np-date { margin-top: 8px; padding: 6px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-align: center; font-family: var(--news); font-size: 14.5px; font-weight: 500; }
.np-headline {
  margin-top: 16px; font-family: var(--news); font-weight: 900; font-size: clamp(24px, 3vw, 38px); line-height: 1.08;
  letter-spacing: -.005em; text-wrap: balance; min-height: 3.24em;
}
.np-foot { margin-top: 12px; font-family: var(--news); font-size: 15.5px; color: #3d3756; }
.np-edition {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border-radius: 12px; border: 3px solid var(--ink); background: var(--lime); color: var(--ink);
  font-family: var(--font); font-weight: 600; font-size: 15.5px; box-shadow: inset 0 -3px 0 var(--lime-shade), 0 4px 0 var(--ink);
}
.np-edition:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.np-edition .icon { width: 18px; height: 18px; }
.np-headline.flip { animation: press .5s ease; }
@keyframes press { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
.ledger { padding: 24px 26px; }
.ledger h3 { font-family: var(--gothic); font-weight: 800; font-size: 30px; text-shadow: 0 3px 0 var(--ink); }
.ledger > p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.ledger ul { margin-top: 16px; display: grid; gap: 2px; }
.ledger li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); font-weight: 600; }
.ledger li:last-child { border-bottom: 0; }
.ledger .minus { color: var(--magenta-light); }
.ledger .plus { color: var(--lime); }

/* --- Puestos y cuidadores --- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scard { padding: 22px 20px 24px; display: flex; flex-direction: column; }
.scard figure { margin: 0 0 14px; height: 130px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.scard figure img { max-height: 130px; width: auto; filter: drop-shadow(0 6px 0 rgba(28, 24, 52, .6)); }
.scard figure img.small { max-height: 96px; }
.scard h3 { font-size: 21px; font-weight: 600; }
.scard p { margin-top: 6px; color: var(--text-dim); font-size: 15.5px; }
.chores { margin-top: 26px; display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); max-width: 76ch; }
.chores .icon { color: var(--orange-light); margin-top: 3px; }
.keeper {
  margin-top: 40px; display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; padding: 26px 30px;
  background: radial-gradient(70% 120% at 0% 50%, rgba(246, 196, 83, .14), transparent 60%), var(--plum);
}
.keeper img { width: 150px; height: auto; margin: 0 auto; filter: drop-shadow(0 8px 0 rgba(28, 24, 52, .6)); }
.keeper h3 { font-family: var(--gothic); font-weight: 800; font-size: 36px; color: var(--orange-light); text-shadow: 0 3px 0 var(--ink); }
.keeper p { margin-top: 8px; color: var(--text-2); }
.keeper blockquote {
  margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; color: var(--ink);
  background: var(--bone) url("paper.webp") repeat; background-size: 256px; border: 3px solid var(--ink);
  font-family: var(--news); font-weight: 700; font-size: 18px; line-height: 1.3;
}
.keeper blockquote cite { display: block; margin-top: 4px; font-style: normal; font-weight: 500; font-size: 13.5px; color: #4b4566; }

/* --- Lo que dice el público --- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.voice { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; }
.voice:nth-child(even) { grid-template-columns: auto 1fr; }
.voice:nth-child(even) img { order: -1; }
.bubble {
  position: relative; margin-bottom: 40px; padding: 14px 16px; border-radius: 16px; color: var(--ink); background: var(--bone);
  border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); font-weight: 600; font-size: 16px; line-height: 1.35;
}
/* El pico mira a quien habla, que está al lado. */
.bubble::after {
  content: ""; position: absolute; bottom: 14px; right: -12px; width: 18px; height: 18px; background: var(--bone);
  border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); transform: rotate(45deg);
}
.voice:nth-child(even) .bubble::after { right: auto; left: -12px; transform: rotate(-135deg); }
/* Todas a la misma escala, como en el juego: el alto de cada figura sale de su recorte. */
.voice img { width: auto; height: 136px; filter: drop-shadow(0 5px 0 rgba(28, 24, 52, .6)); }
.voice img.v-b { height: 113px; }
.voice img.v-c { height: 121px; }
.voice img.v-d { height: 134px; }
.voice small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: #5a5374; }

/* --- Galería --- */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.arrows { display: flex; gap: 12px; flex: none; }
.arrow {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--plum-light); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.arrow:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 24px; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots a {
  flex: 0 0 min(800px, 86vw); scroll-snap-align: center; border-radius: 18px; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink);
}
.shots img { width: 100%; aspect-ratio: 1600 / 713; object-fit: cover; transition: transform .4s ease; }
.shots a:hover img { transform: scale(1.025); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1500px, 96vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 7, 16, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 16px; border: 3px solid var(--ink); }
.lb-close {
  position: fixed; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--plum-light); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}

/* --- Gratis --- */
.free-panel {
  position: relative; padding: clamp(32px, 5vw, 56px); overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(156, 220, 84, .16), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(190, 150, 255, .16), transparent 60%),
    var(--plum);
}
.free-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.free-grid li { padding: 24px; border-radius: 20px; background: var(--plum-shade); border: 3px solid var(--ink); }
.free-grid .badge {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  color: var(--ink); background: var(--lime); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
}
.free-grid li:nth-child(2) .badge { background: var(--orange-light); }
.free-grid li:nth-child(3) .badge { background: var(--mint); }
.free-grid h3 { font-size: 21px; font-weight: 600; }
.free-grid p { margin-top: 6px; color: var(--text-dim); font-size: 15.5px; }

/* --- Llamada final: la luna del título y el Devorador dormido --- */
.final { text-align: center; overflow: hidden; background: radial-gradient(50% 70% at 50% 100%, rgba(112, 128, 205, .28), rgba(45, 36, 71, .22) 45%, transparent 75%); }
.moon-scene { position: relative; width: min(560px, 92vw); height: 230px; margin: 0 auto 30px; }
.moon {
  position: absolute; left: 50%; top: 0; width: 150px; height: 150px; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 40% 38%, #ffffff 0, #e4ecff 30%, #b9c6f2 68%, #8f9fdd 100%);
  box-shadow: 0 0 60px 18px rgba(168, 178, 226, .45), 0 0 180px 60px rgba(112, 128, 205, .3);
  animation: breathe 6s ease-in-out infinite;
}
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(143, 159, 221, .45); }
.moon::before { width: 30px; height: 26px; left: 30%; top: 46%; }
.moon::after { width: 18px; height: 16px; left: 60%; top: 28%; }
@keyframes breathe { 50% { box-shadow: 0 0 80px 24px rgba(168, 178, 226, .55), 0 0 220px 70px rgba(112, 128, 205, .34); } }
.moon-scene img { position: absolute; left: 50%; bottom: 0; width: 250px; transform: translateX(-50%); filter: drop-shadow(0 8px 0 rgba(28, 24, 52, .7)); }
.zzz {
  position: absolute; left: calc(50% - 178px); bottom: 128px; font-family: var(--font); font-weight: 700; font-size: 38px; line-height: 1;
  color: var(--bone); text-shadow: 0 3px 0 var(--ink);
}
.zzz span { display: inline-block; animation: zz 3s ease-in-out infinite; }
.zzz span:nth-child(2) { animation-delay: .5s; font-size: .8em; }
.zzz span:nth-child(3) { animation-delay: 1s; font-size: .65em; }
@keyframes zz { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-6px); } }
.final h2 { margin-top: 0; }
.final .lead, .final .cta-row { margin-left: auto; margin-right: auto; }

/* --- Soporte --- */
.support-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
.faq { margin-top: 22px; }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 3px solid var(--lime); border-bottom: 3px solid var(--lime); transform: rotate(45deg);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 18px; color: var(--text-2); font-family: var(--prose); font-weight: 400; font-size: 16.5px; }
.faq a { color: var(--lime-light); text-decoration: underline; text-underline-offset: 3px; }
.support-card { padding: 30px; }
.support-card h3 { font-family: var(--gothic); font-weight: 800; font-size: 34px; text-shadow: 0 3px 0 var(--ink); }
.support-card p { margin-top: 10px; color: var(--text-2); }
.support-card .btn { margin-top: 22px; width: 100%; }
.mail {
  margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--plum-shade); border: 3px solid var(--ink); color: var(--lime-light); font-weight: 600; word-break: break-all;
}

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */
.footer { border-top: 2px solid var(--line); padding: 48px 0 36px; background: #110c18; color: var(--text-dim); font-size: 15px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer .dl { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; }
.footer .dl svg { width: 30px; height: 30px; color: var(--lime); }
.footer .dl b { color: var(--lime); font-weight: 600; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer nav a:hover { color: var(--lime-light); }
.footer-legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .06); font-family: var(--prose); font-weight: 400; font-size: 13px; color: #8e85a6; }

/* --------------------------------------------------------------------------
   Política de privacidad
   -------------------------------------------------------------------------- */
.doc-hero {
  padding: 130px 0 40px; text-align: center;
  background: radial-gradient(60% 100% at 50% 0%, rgba(112, 128, 205, .35), transparent 70%), linear-gradient(180deg, var(--sky-top), var(--night));
}
.doc-hero h1 { margin-top: 14px; font-family: var(--gothic); font-size: clamp(36px, 5.4vw, 58px); font-weight: 800; line-height: 1.02; text-shadow: 0 4px 0 var(--ink); text-wrap: balance; }
.doc-hero p { margin-top: 12px; color: var(--text-dim); }
.prose { max-width: 760px; margin: 0 auto; padding: 0 24px 100px; font-family: var(--prose); font-weight: 400; font-size: 17px; line-height: 1.7; color: #e3dbee; }
.prose h2 {
  margin: 44px 0 12px; font-family: var(--font); font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--text);
  text-shadow: none; letter-spacing: 0;
}
.prose h3 { margin: 26px 0 8px; font-family: var(--font); font-size: 18.5px; font-weight: 600; color: var(--lime-light); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--lime); }
.prose a { color: var(--lime-light); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .summary {
  margin: 0 0 30px; padding: 22px 24px; border-radius: 18px; color: var(--text);
  background: var(--plum); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
}
.prose .table-wrap { overflow-x: auto; margin: 0 0 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); vertical-align: top; }
.prose th { color: var(--text); font-family: var(--font); font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-light); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Aparición al bajar, y móvil
   -------------------------------------------------------------------------- */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-1 { transition-delay: .08s; }
  .reveal-2 { transition-delay: .16s; }
  .reveal-3 { transition-delay: .24s; }
  .newspaper.reveal.in { transform: rotate(-1.2deg); }
}

@media (max-width: 1080px) {
  .loop, .services { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .voices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .business, .escape-grid, .paper-row, .support-grid { grid-template-columns: 1fr; }
  .free-grid { grid-template-columns: 1fr; }
  .alert-shot { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .loop, .services, .voices { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta-row { width: 100%; max-width: 400px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .cta-row .btn-primary { grid-column: 1 / -1; }
  .cta-row .btn-store { padding: 0 12px; gap: 9px; }
  .cta-row .btn-store b { font-size: 15.5px; }
  .cta-row .btn-store small { font-size: 10.5px; }
  .gallery-head .arrows { display: none; }
  .shots { padding-left: 16px; padding-right: 16px; }
  .shots a { flex-basis: 90vw; }
  .keeper { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; }
  .keeper img { width: 120px; }
  .nam { right: 6px; }
  .newspaper { transform: none; }
  .newspaper.reveal.in { transform: none; }
  .np-headline { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .newspaper.reveal { transform: rotate(-1.2deg) !important; }
  .firefly { display: none; }
}
