/* Gomis · web del juego dentro de JL apps. Sin dependencias ni peticiones a terceros.
   Idea: la página es un tablero. Cada sección es una zona de color pastel (los mismos tonos de casilla
   del juego) y las separa una tira de regaliz, como las líneas gruesas entre zonas.
   Titulares en Fredoka (redonda, de gominola); texto en Manrope. Contorno común #2B1B4A, como en la app. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope-Latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* Arial ajustada a las métricas de cada fuente: el cambio al cargar apenas mueve nada. */
@font-face {
  font-family: "Fredoka fallback";
  src: local("Arial Rounded MT Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  size-adjust: 98%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Manrope fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 101.4%;
  ascent-override: 105%;
  descent-override: 29.6%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  /* Contorno y texto: el morado casi negro de la app. */
  --ink: #2b1b4a;
  --ink-2: #4a3a72;
  --white: #ffffff;

  /* Cielo de la app. */
  --sky-1: #86d3ff;
  --sky-2: #b9b4ff;
  --sky-3: #f6bce6;

  /* Casillas (claras) y gominolas (intensas) por sabor: A fresa, B limón, C menta, D arándano, E uva, F chicle. */
  --tile-a: #ffb8c9; --deep-a: #f27a98; --gomi-a: #ff4f7b;
  --tile-b: #ffea8a; --deep-b: #f2c443; --gomi-b: #ffc825;
  --tile-c: #a8f0cc; --deep-c: #5fcc98; --gomi-c: #2fd08a;
  --tile-d: #bcd0ff; --deep-d: #7e9cf0; --gomi-d: #4d7cfe;
  --tile-e: #dcc6ff; --deep-e: #af8ceb; --gomi-e: #9b5de5;
  --tile-f: #ffc6e8; --deep-f: #f08cc6; --gomi-f: #ff6fcb;

  /* Botón de caramelo dorado (texto oscuro: pasa AA). */
  --gold-1: #ffe58a;
  --gold-2: #f5b52e;
  --gold-3: #b9771f;

  --display: "Fredoka", "Fredoka fallback", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Manrope", "Manrope fallback", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

  /* Radios: piezas de gominola muy redondas; tarjetas 28px; pastillas, del todo. */
  --r-pill: 999px;
  --r-box: 28px;
  --r-tile: 18px;

  --line: 3px;          /* contorno de pieza */
  --licorice: 8px;      /* tira entre secciones */
  --drop: 0 6px 0 var(--ink);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(16px, 4.5vw, 40px);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

picture {
  display: block;
}

main {
  overflow-x: clip;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--gomi-e);
}

a:hover {
  text-decoration-color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  left: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ───────── Cabecera ───────── */

.g-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.g-body-doc .g-header {
  position: relative;
}

.g-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.g-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 12px;
}

.g-header-logo {
  width: 112px;
  height: auto;
}

.g-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--ink), 0 4px 0 var(--ink);
}

.g-nav {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
}

.g-nav a:hover {
  background: rgba(255, 255, 255, 0.5);
}

.g-nav .g-lang {
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* ───────── Titulares de pegatina ───────── */

/* El titular lleva canto, como los letreros de la app: sombra dura blanca y otra de tinta. */
.sticker {
  font-size: clamp(2.125rem, 5.6vw, 3.75rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.85);
}

.sticker-dark {
  color: var(--white);
  text-shadow: 0 4px 0 #120a24;
}

.section-lead {
  max-width: 38em;
  margin: 18px 0 0;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ink);
}


/* Gominolas que flotan alrededor del logo. Decorativas. */
.hero-mark {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fl {
  position: absolute;
  width: clamp(48px, 9vw, 84px);
  filter: drop-shadow(0 10px 10px rgba(43, 27, 74, 0.18));
}

.fl img {
  width: 100%;
  height: auto;
}

.fl-b,
.fl-c,
.fl-f {
  display: none;
}

/* El de fresa guiña: dos imágenes apiladas, la del guiño aparece un instante. */
.wink {
  position: relative;
  display: block;
}

.wink .wink-on {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* Zetas del morado dormido. */
.zz {
  position: absolute;
  left: 62%;
  top: -10px;
  font-family: var(--display);
  font-weight: 700;
  color: #7a3fd0;
  pointer-events: none;
}

.zz i {
  position: absolute;
  font-style: normal;
  opacity: 0;
  text-shadow: 0 2px 0 var(--white);
}

.zz i:nth-child(1) { font-size: 18px; }
.zz i:nth-child(2) { font-size: 24px; }
.zz i:nth-child(3) { font-size: 30px; }

/* Dos Gomis de compañía sentados en el marco del tablero, como las mascotas del juego. */
.board-pals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pal {
  position: absolute;
  display: block;
  filter: drop-shadow(0 6px 6px rgba(43, 27, 74, 0.25));
}

.pal img {
  width: 100%;
  height: auto;
}

.pal-e {
  right: 4%;
  top: calc(-24px - 72px + 12px);
  width: 72px;
}

.pal-a {
  display: none;
}

/* ───────── Tablero jugable ───────── */

.demo {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.demo-title {
  margin: 0 0 44px;
  font-size: 1.375rem;
}

.demo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 12px;
}

.lives {
  display: flex;
  gap: 4px;
}

.life img {
  width: auto;
  height: 28px;
  transition: transform 300ms var(--spring), filter 300ms ease, opacity 300ms ease;
}

.life.lost img {
  filter: grayscale(1);
  opacity: 0.35;
  transform: scale(0.8);
}

.auto-pill {
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Marco de galleta y glaseado: la misma imagen de la app, en 9 trozos. */
.board-frame {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  border: 24px solid transparent;
  border-image: url(/img/gomis/marco.e15026b3-300.webp) 63 fill / 26px round;
  filter: drop-shadow(0 18px 24px rgba(43, 27, 74, 0.35));
}

.board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  aspect-ratio: 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.cell {
  --zw: 2.5px; /* media tira de regaliz: cada casilla pinta su mitad */
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background-color: var(--tile);
  background-image: linear-gradient(var(--veil), var(--veil)), url(/img/gomis/tex-A.6d201055-128.webp);
  background-size: cover;
  box-shadow: inset 0 0 0 0.5px rgba(43, 27, 74, 0.16);
  -webkit-tap-highlight-color: transparent;
}

.cell.dark {
  background-image: linear-gradient(var(--veil-dark), var(--veil-dark)), url(/img/gomis/tex-A.6d201055-128.webp);
}

.z-A {
  --tile: #ffb8c9;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(/img/gomis/tex-A.6d201055-128.webp);
}

.z-A.dark {
  background-image: linear-gradient(rgba(242, 122, 152, 0.14), rgba(242, 122, 152, 0.14)), linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), url(/img/gomis/tex-A.6d201055-128.webp);
}

.z-B {
  --tile: #ffea8a;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(/img/gomis/tex-B.79c87391-128.webp);
}

.z-B.dark {
  background-image: linear-gradient(rgba(242, 196, 67, 0.14), rgba(242, 196, 67, 0.14)), linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), url(/img/gomis/tex-B.79c87391-128.webp);
}

.z-C {
  --tile: #a8f0cc;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(/img/gomis/tex-C.092e4138-128.webp);
}

.z-C.dark {
  background-image: linear-gradient(rgba(95, 204, 152, 0.14), rgba(95, 204, 152, 0.14)), linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), url(/img/gomis/tex-C.092e4138-128.webp);
}

.z-D {
  --tile: #bcd0ff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(/img/gomis/tex-D.54641332-128.webp);
}

.z-D.dark {
  background-image: linear-gradient(rgba(126, 156, 240, 0.14), rgba(126, 156, 240, 0.14)), linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), url(/img/gomis/tex-D.54641332-128.webp);
}

.z-E {
  --tile: #dcc6ff;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(/img/gomis/tex-E.8b060f01-128.webp);
}

.z-E.dark {
  background-image: linear-gradient(rgba(175, 140, 235, 0.14), rgba(175, 140, 235, 0.14)), linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), url(/img/gomis/tex-E.8b060f01-128.webp);
}

.z-F {
  --tile: #ffc6e8;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(/img/gomis/tex-F.03cacfbd-128.webp);
}

.z-F.dark {
  background-image: linear-gradient(rgba(240, 140, 198, 0.14), rgba(240, 140, 198, 0.14)), linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), url(/img/gomis/tex-F.03cacfbd-128.webp);
}

/* Tiras de regaliz entre zonas. */
.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 0 solid var(--ink);
}

.cell.bt::before { border-top-width: var(--zw); }
.cell.bb::before { border-bottom-width: var(--zw); }
.cell.bl::before { border-left-width: var(--zw); }
.cell.br::before { border-right-width: var(--zw); }

.cell-x,
.cell-g {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Aspa de regaliz: escondida, completa (la pones tú) o tenue (la deduce el juego por un Gomi cercano). */
.cell-x {
  inset: 25%;
  z-index: 2;
  background-image: url(/img/gomis/aspa.8ea0ed22-96.webp);
  background-image: image-set(url(/img/gomis/aspa.8ea0ed22-96.avif) type("image/avif"), url(/img/gomis/aspa.8ea0ed22-96.webp) type("image/webp"));
  transform: scale(0);
  transition: transform 220ms var(--spring), opacity 200ms ease;
}

.cell[data-state="x"] .cell-x {
  transform: scale(1);
}

.cell[data-state="auto"] .cell-x {
  transform: scale(0.62);
  opacity: 0.5;
}

.cell-g {
  inset: 4% 3% 0;
  z-index: 3;
  background-position: center bottom;
  transform: scale(0);
  transform-origin: 50% 100%;
}

.cell[data-state="gomi"] .cell-g,
.cell[data-state="wrong"] .cell-g {
  transform: none;
}

.z-A .cell-g {
  background-image: url(/img/gomis/gomi-A.6bfabc0f-160.webp);
  background-image: image-set(url(/img/gomis/gomi-A.6bfabc0f-160.avif) type("image/avif"), url(/img/gomis/gomi-A.6bfabc0f-160.webp) type("image/webp"));
}

.z-A[data-state="wrong"] .cell-g {
  background-image: url(/img/gomis/gomi-A-worried.c33b538e-160.webp);
  background-image: image-set(url(/img/gomis/gomi-A-worried.c33b538e-160.avif) type("image/avif"), url(/img/gomis/gomi-A-worried.c33b538e-160.webp) type("image/webp"));
}

.is-solved .z-A[data-state="gomi"] .cell-g {
  background-image: url(/img/gomis/gomi-A-joy.563394b3-160.webp);
  background-image: image-set(url(/img/gomis/gomi-A-joy.563394b3-160.avif) type("image/avif"), url(/img/gomis/gomi-A-joy.563394b3-160.webp) type("image/webp"));
}

.z-B .cell-g {
  background-image: url(/img/gomis/gomi-B.ef1332bc-160.webp);
  background-image: image-set(url(/img/gomis/gomi-B.ef1332bc-160.avif) type("image/avif"), url(/img/gomis/gomi-B.ef1332bc-160.webp) type("image/webp"));
}

.z-B[data-state="wrong"] .cell-g {
  background-image: url(/img/gomis/gomi-B-worried.0fda0df3-160.webp);
  background-image: image-set(url(/img/gomis/gomi-B-worried.0fda0df3-160.avif) type("image/avif"), url(/img/gomis/gomi-B-worried.0fda0df3-160.webp) type("image/webp"));
}

.is-solved .z-B[data-state="gomi"] .cell-g {
  background-image: url(/img/gomis/gomi-B-joy.6ba12d43-160.webp);
  background-image: image-set(url(/img/gomis/gomi-B-joy.6ba12d43-160.avif) type("image/avif"), url(/img/gomis/gomi-B-joy.6ba12d43-160.webp) type("image/webp"));
}

.z-C .cell-g {
  background-image: url(/img/gomis/gomi-C.73b719b9-160.webp);
  background-image: image-set(url(/img/gomis/gomi-C.73b719b9-160.avif) type("image/avif"), url(/img/gomis/gomi-C.73b719b9-160.webp) type("image/webp"));
}

.z-C[data-state="wrong"] .cell-g {
  background-image: url(/img/gomis/gomi-C-worried.1876a4e5-160.webp);
  background-image: image-set(url(/img/gomis/gomi-C-worried.1876a4e5-160.avif) type("image/avif"), url(/img/gomis/gomi-C-worried.1876a4e5-160.webp) type("image/webp"));
}

.is-solved .z-C[data-state="gomi"] .cell-g {
  background-image: url(/img/gomis/gomi-C-joy.7143ce26-160.webp);
  background-image: image-set(url(/img/gomis/gomi-C-joy.7143ce26-160.avif) type("image/avif"), url(/img/gomis/gomi-C-joy.7143ce26-160.webp) type("image/webp"));
}

.z-D .cell-g {
  background-image: url(/img/gomis/gomi-D.b2ebd4b6-160.webp);
  background-image: image-set(url(/img/gomis/gomi-D.b2ebd4b6-160.avif) type("image/avif"), url(/img/gomis/gomi-D.b2ebd4b6-160.webp) type("image/webp"));
}

.z-D[data-state="wrong"] .cell-g {
  background-image: url(/img/gomis/gomi-D-worried.4958b441-160.webp);
  background-image: image-set(url(/img/gomis/gomi-D-worried.4958b441-160.avif) type("image/avif"), url(/img/gomis/gomi-D-worried.4958b441-160.webp) type("image/webp"));
}

.is-solved .z-D[data-state="gomi"] .cell-g {
  background-image: url(/img/gomis/gomi-D-joy.a991b5c1-160.webp);
  background-image: image-set(url(/img/gomis/gomi-D-joy.a991b5c1-160.avif) type("image/avif"), url(/img/gomis/gomi-D-joy.a991b5c1-160.webp) type("image/webp"));
}

.z-E .cell-g {
  background-image: url(/img/gomis/gomi-E.16dbe57a-160.webp);
  background-image: image-set(url(/img/gomis/gomi-E.16dbe57a-160.avif) type("image/avif"), url(/img/gomis/gomi-E.16dbe57a-160.webp) type("image/webp"));
}

.z-E[data-state="wrong"] .cell-g {
  background-image: url(/img/gomis/gomi-E-worried.c8dba3d0-160.webp);
  background-image: image-set(url(/img/gomis/gomi-E-worried.c8dba3d0-160.avif) type("image/avif"), url(/img/gomis/gomi-E-worried.c8dba3d0-160.webp) type("image/webp"));
}

.is-solved .z-E[data-state="gomi"] .cell-g {
  background-image: url(/img/gomis/gomi-E-joy.492fc58a-160.webp);
  background-image: image-set(url(/img/gomis/gomi-E-joy.492fc58a-160.avif) type("image/avif"), url(/img/gomis/gomi-E-joy.492fc58a-160.webp) type("image/webp"));
}

.z-F .cell-g {
  background-image: url(/img/gomis/gomi-F.27b88c88-160.webp);
  background-image: image-set(url(/img/gomis/gomi-F.27b88c88-160.avif) type("image/avif"), url(/img/gomis/gomi-F.27b88c88-160.webp) type("image/webp"));
}

.z-F[data-state="wrong"] .cell-g {
  background-image: url(/img/gomis/gomi-F-worried.e861eb03-160.webp);
  background-image: image-set(url(/img/gomis/gomi-F-worried.e861eb03-160.avif) type("image/avif"), url(/img/gomis/gomi-F-worried.e861eb03-160.webp) type("image/webp"));
}

.is-solved .z-F[data-state="gomi"] .cell-g {
  background-image: url(/img/gomis/gomi-F-joy.1ee0232e-160.webp);
  background-image: image-set(url(/img/gomis/gomi-F-joy.1ee0232e-160.avif) type("image/avif"), url(/img/gomis/gomi-F-joy.1ee0232e-160.webp) type("image/webp"));
}

/* Pista: la zona en la que fijarse se ilumina y las casillas objetivo llevan aro dorado. */
.cell::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 4;
  border-radius: 22%;
  pointer-events: none;
  opacity: 0;
}

.cell.focus {
  box-shadow: inset 0 0 0 0.5px rgba(43, 27, 74, 0.16), inset 0 0 0 100px rgba(255, 255, 255, 0.36);
}

.cell.target::after {
  opacity: 1;
  border: 3px solid var(--gold-1);
  box-shadow: 0 0 10px 2px var(--gold-2), inset 0 0 8px var(--gold-2);
}

.cell[data-state="wrong"]::after,
.cell.clash::after {
  inset: 0;
  border-radius: 0;
  background: rgba(232, 24, 63, 0.24);
  box-shadow: inset 0 0 0 3px #e8183f;
  opacity: 1;
}

.cell.clash::after {
  opacity: 0;
}

.board:not(.is-live) .cell {
  cursor: default;
}

.cell:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -5px;
  border-radius: 6px;
  z-index: 5;
  box-shadow: inset 0 0 0 7px var(--ink);
}

.hint {
  position: relative;
  margin: 16px 0 0;
  padding: 14px 18px 16px;
  border-radius: 22px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: var(--drop);
  text-align: left;
}

.hint::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 32px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-left: var(--line) solid var(--ink);
  border-top: var(--line) solid var(--ink);
  border-top-left-radius: 4px;
  transform: rotate(45deg);
}

.hint p {
  margin: 0;
}

/* El bocadillo de la pista reserva siempre su sitio: así la sección no crece y
   encoge cada vez que aparece o desaparece una pista (sobre todo en el autojuego). */
.hint {
  min-height: 10.5rem;
  box-sizing: border-box;
}
.hint[hidden] {
  display: block !important;
  visibility: hidden;
}
@media (min-width: 700px) {
  .hint { min-height: 10.5rem; }
}

.hint-title {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  color: #6a3fc9;
}

.hint-title:empty {
  display: none;
}

.hint-text {
  font-weight: 600;
  line-height: 1.45;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: var(--line) solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: inset 0 -4px 0 #e6dcff, 0 4px 0 var(--ink);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.pill:active {
  transform: translateY(3px);
  box-shadow: inset 0 -2px 0 #e6dcff, 0 1px 0 var(--ink);
}

.pill-gold {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  box-shadow: inset 0 -4px 0 var(--gold-3), 0 4px 0 var(--ink);
}

.pill-gold:active {
  box-shadow: inset 0 -2px 0 var(--gold-3), 0 1px 0 var(--ink);
}

.demo-help,
.demo-real {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
}

.demo-real {
  margin-top: 6px;
}

/* Confeti al resolver. */
.confetti {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 8;
  width: 0;
  height: 0;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  width: 10px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  animation: burst var(--t) var(--ease-out) forwards;
}

.confetti .c0 { background: var(--gomi-a); }
.confetti .c1 { background: var(--gomi-b); }
.confetti .c2 { background: var(--gomi-c); }
.confetti .c3 { background: var(--gomi-d); border-radius: 50%; }
.confetti .c4 { background: var(--gomi-e); }
.confetti .c5 { background: var(--gomi-f); border-radius: 50%; }

@keyframes burst {
  0% { transform: translate(0, 0) rotate(0) scale(0.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 120px)) rotate(var(--r)) scale(1); opacity: 0; }
}


/* ───────── Cómo se juega ───────── */

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.rules li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-tile);
  background: var(--tile-e);
  box-shadow: inset 0 0 0 var(--line) var(--ink);
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.15;
}

.rules li:nth-child(2) { background: var(--tile-c); }
.rules li:nth-child(3) { background: var(--tile-b); }
.rules li:nth-child(4) { background: var(--tile-a); }

.rule-ico {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.rule-ico svg {
  width: 100%;
  height: 100%;
}

.ri-band {
  fill: rgba(43, 27, 74, 0.12);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.ri-dot {
  fill: var(--gomi-e);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.ri-x {
  fill: none;
  stroke: #7b2433;
  stroke-width: 5;
  stroke-linecap: round;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--r-box);
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: var(--drop);
  counter-increment: step;
}

.step h3 {
  margin: 20px 0 8px;
  font-size: 1.5rem;
}

.step h3::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1.0625rem;
  vertical-align: 2px;
}

.step p {
  margin: 0;
}

/* Mini tablero de tres casillas que repite el gesto. */
.step-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 270px;
  aspect-ratio: 3 / 1;
  margin-bottom: 34px;
  border-radius: 14px;
  border: var(--line) solid var(--ink);
}

.sa-1 { border-radius: 11px 0 0 11px; }
.sa-3 { border-radius: 0 11px 11px 0; }

.sa-cell {
  position: relative;
  background-color: var(--tile-b);
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(/img/gomis/tex-B.79c87391-128.webp);
  background-size: cover;
  box-shadow: inset 0 0 0 0.5px rgba(43, 27, 74, 0.2);
}

.sa-2 {
  background-image: linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), url(/img/gomis/tex-B.79c87391-128.webp);
}

.step-2 .sa-cell { background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(/img/gomis/tex-E.8b060f01-128.webp); }
.step-2 .sa-2 { background-image: linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), url(/img/gomis/tex-E.8b060f01-128.webp); }
.step-3 .sa-cell { background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url(/img/gomis/tex-C.092e4138-128.webp); }
.step-3 .sa-2 { background-image: linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)), url(/img/gomis/tex-C.092e4138-128.webp); }

.step-art .cell-g {
  background-image: url(/img/gomis/gomi-E.16dbe57a-160.webp);
  background-image: image-set(url(/img/gomis/gomi-E.16dbe57a-160.avif) type("image/avif"), url(/img/gomis/gomi-E.16dbe57a-160.webp) type("image/webp"));
}

/* Estado final de cada gesto (es lo que se ve sin animación). */
.step-1 .sa-2 .cell-x,
.step-3 .cell-x {
  transform: scale(1);
}

.step-2 .sa-2 .cell-g {
  transform: none;
}

.sa-hand {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 38%;
  width: 22%;
  height: 84%;
  background: url(/img/gomis/mano.92f25afc-96.webp) no-repeat center top / contain;
  background-image: image-set(url(/img/gomis/mano.92f25afc-96.avif) type("image/avif"), url(/img/gomis/mano.92f25afc-96.webp) type("image/webp"));
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(43, 27, 74, 0.35));
}

.step-3 .sa-hand {
  left: 82%;
}


/* ───────── Reto diario ───────── */

.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: clamp(4px, 1.4vw, 14px);
  max-width: 760px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.day {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-weight: 700;
}

.day-name {
  font-family: var(--display);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
}

.day-size {
  font-size: clamp(0.75rem, 1.8vw, 0.9375rem);
}

/* Cada día, un tablero a escala: crece con la semana. */
.day-grid {
  --n: 6;
  width: calc(var(--n) / 9 * 100%);
  max-width: calc(var(--n) * 13px);
  aspect-ratio: 1;
  border-radius: 10px;
  border: var(--line) solid var(--ink);
  background-color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(43, 27, 74, 0.22) 1.5px, transparent 1.5px),
    linear-gradient(rgba(43, 27, 74, 0.22) 1.5px, transparent 1.5px);
  background-size: calc(100% / var(--n)) calc(100% / var(--n));
  box-shadow: 0 4px 0 var(--ink);
}

.g7 { --n: 7; background-color: var(--tile-c); }
.g8 { --n: 8; background-color: var(--tile-d); }
.g9 { --n: 9; background-color: var(--tile-a); }
.g6 { background-color: var(--tile-e); }

/* ───────── Minijuego ───────── */

.duo {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(86vw, 400px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 26px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: var(--drop);
  transform: rotate(-2deg);
}

.d-cell {
  position: relative;
  box-shadow: inset 0 0 0 0.5px rgba(43, 27, 74, 0.18);
  background: no-repeat center 80% / 82%;
}

.d-cell:nth-child(12n + 2),
.d-cell:nth-child(12n + 4),
.d-cell:nth-child(12n + 6),
.d-cell:nth-child(12n + 7),
.d-cell:nth-child(12n + 9),
.d-cell:nth-child(12n + 11) {
  background-color: rgba(43, 27, 74, 0.05);
}

.d-a {
  background-image: url(/img/gomis/gomi-A.6bfabc0f-160.webp);
  background-image: image-set(url(/img/gomis/gomi-A.6bfabc0f-160.avif) type("image/avif"), url(/img/gomis/gomi-A.6bfabc0f-160.webp) type("image/webp"));
}

.d-c {
  background-image: url(/img/gomis/gomi-C.73b719b9-160.webp);
  background-image: image-set(url(/img/gomis/gomi-C.73b719b9-160.avif) type("image/avif"), url(/img/gomis/gomi-C.73b719b9-160.webp) type("image/webp"));
}


/* ───────── Preguntas ───────── */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 50rem;
  margin-top: 36px;
}

.faq-list details {
  border-radius: 22px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}

.faq-list summary {
  position: relative;
  display: block;
  padding: 16px 56px 16px 20px;
  border-radius: 19px;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 12px no-repeat,
    var(--tile-b);
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: transform 200ms var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list summary:hover {
  background: #faf7ff;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 18px;
  max-width: 40em;
}

.faq-more {
  margin: 24px 0 0;
  font-weight: 600;
}


/* ───────── Páginas de texto ───────── */

.g-body-doc {
  background: linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 340px, var(--sky-3) 720px, var(--sky-3) 100%);
}

.g-doc {
  padding: clamp(16px, 4vw, 40px) 0 clamp(56px, 8vw, 96px);
}

.g-doc .wrap {
  --pad: clamp(20px, 5vw, 48px);
  position: relative;
  max-width: calc(46rem + 2 * var(--gutter) + 2 * var(--pad));
  padding: 0 calc(var(--gutter) + var(--pad));
}

.g-doc .wrap > * {
  position: relative;
}

/* La hoja: papel blanco con contorno de tinta. */
.g-doc .wrap::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) - 4px);
  border-radius: var(--r-box);
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: var(--drop);
}

.g-doc h1 {
  padding-top: 40px;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
}

.g-doc .updated {
  margin: 10px 0 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
}

.g-doc h2 {
  margin: 40px 0 10px;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}

.g-doc p,
.g-doc ul,
.g-doc ol {
  margin: 0 0 16px;
}

.g-doc p,
.g-doc li {
  line-height: 1.7;
}

.g-doc ul,
.g-doc ol {
  padding-left: 1.3em;
}

.g-doc li {
  margin-bottom: 8px;
}

.g-doc li::marker {
  color: var(--gomi-e);
}

.g-doc h1 + .intro {
  margin-top: 18px;
}

.g-doc .intro {
  font-size: 1.1875rem;
  font-weight: 600;
}

.g-doc .wrap > :last-child {
  padding-bottom: 36px;
  margin-bottom: 0;
}

.doc-deco {
  position: absolute !important;
  right: calc(var(--gutter) + 16px);
  top: -26px;
  width: 88px;
}

.doc-deco img {
  width: 100%;
  height: auto;
}

.g-footer-brand {
  display: inline-flex;
  width: max-content;
  border-radius: 12px;
}


/* ═════════ Gomis World Tour · portada (oct 2026) ═════════
   Dirección: la web es la portada del juego. Cielo de caramelo, paisaje en capas (montañas de nata,
   colinas de piruleta, prado con camino) y los personajes de gominola de verdad. Cada sección es una
   «escena» pastel con borde de nata (festón) y contorno de tinta #2B1B4A, como las piezas de la app. */

:root {
  --paper: #f7f3ff;
  --lav: #ece4ff;
  --mint: #d3f6e6;
  --rose: #ffe4f0;
  --lemon: #fff1bf;
  --skyp: #dcefff;
  --grass-1: #b7f0cf;
  --grass-2: #7fdba8;
  --green-1: #9bf0a6;
  --green-2: #3fc46a;
  --green-3: #23894a;
}

body.g-landing {
  background: var(--paper);
}

/* Titulares: pegatina de tinta con canto blanco, como los letreros del juego. */
.title,
.hero-tagline {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  /* Canto blanco hecho con sombras (sin text-stroke: así el contraste se mide sobre la tinta). */
  text-shadow:
    0.05em 0 0 var(--white), -0.05em 0 0 var(--white), 0 0.05em 0 var(--white), 0 -0.05em 0 var(--white),
    0.036em 0.036em 0 var(--white), -0.036em 0.036em 0 var(--white), 0.036em -0.036em 0 var(--white), -0.036em -0.036em 0 var(--white),
    0 0.11em 0 rgba(43, 27, 74, 0.2);
}

.title {
  font-size: clamp(2.125rem, 6.4vw, 4.25rem);
  line-height: 1.02;
  max-width: 14em;
}

.subtitle {
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.lead {
  max-width: 36em;
  margin: 20px 0 0;
  font-size: clamp(1.0625rem, 1.9vw, 1.25rem);
  font-weight: 600;
  line-height: 1.55;
}

/* ───────── Cabecera de la portada: sobre el cielo ───────── */
.g-landing .g-header .wrap {
  min-height: 76px;
}

/* ───────── Botones de caramelo ───────── */
.btn-jelly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  border: var(--line) solid var(--ink);
  background: linear-gradient(180deg, var(--green-1) 0%, var(--green-2) 100%);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.55), inset 0 -5px 0 var(--green-3), 0 5px 0 var(--ink);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

.btn-jelly:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.55), inset 0 -5px 0 var(--green-3), 0 7px 0 var(--ink);
}

.btn-jelly:active {
  transform: translateY(4px);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 var(--green-3), 0 1px 0 var(--ink);
}

/* Insignia «Muy pronto en el App Store». No enlaza: el juego aún no está publicado. */
.store {
  margin: 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 7px 20px 7px 8px;
  border-radius: 16px;
  background: #1c1230;
  color: var(--white);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 5px 0 var(--ink);
  text-align: left;
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.store-text {
  display: grid;
  line-height: 1.05;
}

.store-text small {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.store-text strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
}

.store-center {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ───────── Héroe ───────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 86px;
  background: linear-gradient(180deg, #7cc8ff 0%, #a2c8ff 34%, #c9bcff 64%, #f6c6ec 100%);
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.sun {
  position: absolute;
  top: 74px;
  right: -14px;
  width: clamp(92px, 13vw, 190px);
}

.sun img,
.cloud img,
.cast img,
.ly img {
  width: 100%;
  height: auto;
}

.cloud {
  position: absolute;
  width: clamp(130px, 19vw, 300px);
}

.cloud-1 { left: -70px; top: 49%; }
.cloud-2 { right: -54px; top: 58%; width: clamp(110px, 14vw, 230px); opacity: 0.92; }
.cloud-3 { left: -34px; top: 13%; width: clamp(90px, 10vw, 170px); opacity: 0.8; }

@media (min-width: 1000px) {
  .cloud-1 { left: -46px; top: 30%; }
  .cloud-2 { right: 8%; top: 40%; }
  .cloud-3 { left: 24%; top: 3%; }
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero h1 {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0;
}

.hero-lockup {
  width: min(78vw, 520px);
  height: auto;
  filter: drop-shadow(0 16px 18px rgba(43, 27, 74, 0.28));
}

.hero-tagline {
  font-size: clamp(1.5rem, 4.6vw, 2.375rem);
  line-height: 1.08;
}

.hero-lead {
  max-width: 34em;
  margin: 12px 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 16px;
  margin-top: 24px;
}

.play-link {
  margin: 0;
}

.hero-facts {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 4px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 2px var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

/* El paisaje: tres capas del juego con las mismas proporciones que PortadaFrames
   (fuga del camino al 18 % del prado, colinas 14 % por debajo, montañas al 62 % de las colinas).
   Todo se mide en cqw del ancho del paisaje: nada se descoloca al cambiar de pantalla. */
.land {
  position: relative;
  left: 50%;
  width: max(100%, 860px);
  aspect-ratio: 100 / 40;
  transform: translateX(-50%);
  container-type: inline-size;
  pointer-events: none;
}

.land-in {
  position: absolute;
  inset: 0;
}

.ly {
  position: absolute;
  left: 0;
  width: 100%;
  will-change: transform;
}

.ly-montanas { top: -14.4cqw; transform: translate3d(0, calc(var(--p, 0) * 9cqw), 0); }
.ly-colinas { top: -5.03cqw; transform: translate3d(0, calc(var(--p, 0) * 5cqw), 0); }
.ly-prado { top: 20.3cqw; }

.land-cast {
  position: absolute;
  inset: 0;
  transform: translate3d(0, calc(var(--p, 0) * -2cqw), 0);
}

.cast {
  position: absolute;
  display: block;
  transform: translateX(-50%);
  filter: drop-shadow(0 0.5cqw 0.5cqw rgba(43, 27, 74, 0.28));
}

.cast-in {
  display: block;
  transform-origin: 50% 100%;
}

.c-e { left: 50%; bottom: 1.6cqw; width: 11.5cqw; z-index: 3; }
.c-a { left: 40.5%; bottom: 3.6cqw; width: 7.4cqw; z-index: 2; }
.c-c { left: 59.6%; bottom: 3.8cqw; width: 7.2cqw; z-index: 2; }
.c-max { left: 67.5%; bottom: 5.2cqw; width: 7cqw; }
.c-osito { left: 31.5%; bottom: 6.2cqw; width: 7.4cqw; }
.c-bananin { left: 18%; bottom: 10.2cqw; width: 5cqw; }
.c-sandi { left: 80%; bottom: 10.4cqw; width: 6cqw; }
.c-leia { left: 89%; bottom: 3.5cqw; width: 7.2cqw; }
.c-nubi { left: 73.5%; bottom: 17cqw; width: 6.2cqw; }

.land-hero {
  z-index: 1;
  margin-top: clamp(-150px, -9vw, -86px);
}

@media (min-width: 700px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: clamp(760px, 100svh, 1040px);
    padding-bottom: calc(max(100vw, 860px) * 0.13);
  }

  .hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 46%;
    width: min(100vw, 1100px);
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(196, 204, 255, 0.92) 0%, rgba(196, 204, 255, 0.78) 55%, rgba(196, 204, 255, 0) 100%);
    pointer-events: none;
  }

  .land-hero {
    position: absolute;
    left: 50%;
    bottom: 0;
    margin: 0;
  }
}

/* ───────── Secciones con festón de nata ───────── */
.sec {
  --bg: var(--paper);
  --edge: 22px;
  position: relative;
  padding: clamp(76px, 10vw, 132px) 0 clamp(72px, 9vw, 120px);
  background: var(--bg);
}

/* Festón de nata: medias lunas solapadas del color de la sección, con contorno de tinta. */
.sec::before,
.meadow::before,
.g-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--edge) * -1 + 1px);
  height: var(--edge);
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, var(--bg) 0 calc(var(--edge) - 4px), transparent calc(var(--edge) - 3.4px)) 0 0 / calc(var(--edge) * 1.45) var(--edge) repeat-x,
    radial-gradient(circle at 50% 100%, var(--ink) 0 calc(var(--edge) - 1px), transparent calc(var(--edge) - 0.4px)) 0 0 / calc(var(--edge) * 1.45) var(--edge) repeat-x;
}

.sec > .wrap,
.sec > div {
  position: relative;
  z-index: 2;
}

.sec-play { --bg: var(--paper); }

/* Lo que queda lejos no se pinta hasta acercarse: la portada carga antes en móvil. */
.sec-worlds > .wrap,
.worlds-rail,
.sec-friends > .wrap,
.meadow > .wrap,
.sec-closet > .wrap,
.sec-seasons > .wrap,
.sec-daily > .wrap,
.sec-feats > .wrap,
.sec-price > .wrap,
.sec-faq > .wrap {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.sec-worlds { --bg: var(--mint); }
.sec-friends { --bg: var(--rose); padding-bottom: 0; }
.sec-closet { --bg: #f9d3e4; }
.sec-seasons { --bg: var(--skyp); }
.sec-daily { --bg: var(--lemon); }
.sec-feats { --bg: var(--lav); }
.sec-price { --bg: #ffe9d6; }
.sec-faq { --bg: var(--paper); }

.sec-play { border-top: 3px solid var(--ink); }
.sec-play::before { display: none; }

/* ───────── Cómo se juega ───────── */
.play-grid {
  display: grid;
  gap: clamp(44px, 6vw, 72px);
}

.play-text .rules {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  margin-top: 30px;
}

.play-text .rules li {
  font-size: 1.0625rem;
}

.play-text .steps {
  gap: 12px;
  margin-top: 22px;
}

.play-text .step {
  display: grid;
  grid-template-columns: minmax(0, 104px) 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--ink);
}

.play-text .step-art {
  margin: 0;
  max-width: 132px;
}

@media (min-width: 480px) {
  .play-text .step { grid-template-columns: minmax(0, 132px) 1fr; }
}

.play-text .step h3 {
  margin: 0 0 4px;
  font-size: 1.1875rem;
  line-height: 1.15;
}

.play-text .step h3::before {
  width: 26px;
  height: 26px;
  margin-right: 8px;
  font-size: 0.875rem;
  vertical-align: 1px;
}

.play-text .step p {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.demo-title {
  margin: 0 0 70px;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  text-align: center;
}

.demo-stage {
  position: relative;
}

.demo-stage::before {
  content: "";
  position: absolute;
  inset: 8% -6% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 240, 0.95), rgba(255, 214, 240, 0));
}

.sec-play .demo {
  isolation: isolate;
}

.pal-max {
  left: 2%;
  top: calc(-24px - 74px + 10px);
  width: 86px;
}

.pal-e {
  right: 4%;
  top: calc(-24px - 66px + 10px);
  width: 66px;
}

.pal-e .zz {
  top: -14px;
}

.pal-a {
  display: block;
  right: -30px;
  top: 58%;
  width: 58px;
  transform: rotate(10deg);
}

.hint-slot {
  position: relative;
  margin-top: 16px;
}

.hint-slot .hint {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hint-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 18px 24px;
  border-radius: 22px;
  border: 2.5px dashed rgba(43, 27, 74, 0.38);
  color: var(--ink-2);
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.hint:not([hidden]) ~ .hint-ph {
  visibility: hidden;
}

/* ───────── Precio ───────── */
.plans {
  display: grid;
  gap: 54px 24px;
  margin-top: 70px;
}

.plan {
  position: relative;
  padding: 64px 26px 28px;
  border-radius: 30px;
  border: var(--line) solid var(--ink);
  box-shadow: var(--drop);
}

.plan-free {
  background: linear-gradient(170deg, #e6fbf0, #b9efd2);
}

.plan-full {
  background: linear-gradient(170deg, #fff4c4, #ffd36b);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.55), var(--drop);
}

.plan-art {
  position: absolute;
  top: -54px;
  left: 22px;
  width: 104px;
}

.plan-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 6px rgba(43, 27, 74, 0.25));
}

.plan h3 {
  font-size: clamp(1.75rem, 3.6vw, 2.25rem);
}

.plan ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
  line-height: 1.4;
}

/* Marca de visto de caramelo. */
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.plan li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.1em + 4px);
  width: 7px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.price-note {
  max-width: 40em;
  margin: 32px auto 0;
  font-weight: 600;
  text-align: center;
}

.sec-price .title,
.sec-price > .wrap > .lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ───────── Pie ───────── */
.g-landing .g-footer,
.g-body-doc .g-footer {
  --bg: var(--ink);
  --edge: 22px;
  position: relative;
  padding: 56px 0 56px;
  border-top: 0;
  background: var(--ink);
  color: #f1ebff;
}


.g-footer a {
  color: var(--white);
  text-decoration-color: #c9b6ff;
}

.g-footer :focus-visible {
  outline-color: var(--white);
}

.g-footer .wrap {
  display: grid;
  gap: 18px;
}

.foot-top {
  display: grid;
  gap: 28px;
  padding-bottom: 26px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.16);
}

.g-footer .g-footer-brand img {
  width: 170px;
  height: auto;
}

.studio-title {
  font-size: 1.25rem;
  color: var(--white);
}

.g-footer .app-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.app-mini a {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 8px 14px 8px 8px;
  margin: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.app-mini a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.app-mini-icon,
.jl-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.jl-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #ffe58a, #f5b52e);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
}

.app-mini a > span:last-child {
  display: grid;
  line-height: 1.3;
}

.app-mini strong {
  font-family: var(--display);
  font-size: 1.1875rem;
}

.app-mini a > span:last-child span {
  font-size: 0.875rem;
  color: #ddd2ff;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-footer .foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  margin-left: -10px;
  margin-right: 4px;
  border-radius: var(--r-pill);
  font-weight: 700;
  text-decoration: none;
}

.g-footer .foot-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.g-footer .marks {
  color: #cfc3f0;
}

/* Las páginas de texto usan la marca nueva en la cabecera. */
.g-header-logo {
  width: 150px;
}

/* ───────── Pantallas medianas y grandes ───────── */
@media (min-width: 600px) {
  .hero-facts { display: flex; }
  .friends { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pet { width: calc((100% - 6 * 18px) / 7); }
  .events { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .closet-opts { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .comic { gap: 22px 18px; }
}

@media (min-width: 760px) {
  .foot-top { grid-template-columns: auto 1fr; align-items: center; column-gap: 56px; }
  .friends-head { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: end; column-gap: 48px; }
}

@media (min-width: 1000px) {
  .hero {
    padding-top: 96px;
  }

  .hero-lockup {
    width: 100%;
  }

  .play-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    align-items: start;
    column-gap: 72px;
  }

  .sec-play .demo {
    position: sticky;
    top: 24px;
  }

  .worlds-rail {
    overflow: visible;
    padding: 70px 0 0;
    margin: 30px auto 0;
    width: 100%;
    max-width: calc(var(--max) + 2 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .worlds {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 76px 26px;
    width: auto;
  }

  .world {
    width: auto;
  }

  .world:first-child {
    grid-row: span 2;
  }

  .world:first-child .world-sign {
    width: 44%;
  }

  .world-sign {
    width: 66%;
  }

  .story {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: center;
    column-gap: 56px;
  }

  .friends {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .closet-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    column-gap: 56px;
  }

  .closet-stage {
    height: 400px;
  }

  .closet-pedestal {
    width: 300px;
  }

  .look {
    width: 250px;
    bottom: 141px;
  }

  .season-window {
    height: auto;
    aspect-ratio: 1180 / 560;
  }

  .daily-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: 56px;
  }

  .widgets {
    flex-direction: column;
    align-items: flex-start;
  }

  .wgt-s {
    width: 196px;
    height: 196px;
  }

  .wgt-s strong {
    font-size: 3.5rem;
  }

  .wgt-m {
    width: 400px;
    height: 196px;
    margin-left: 70px;
  }

  .wgt-board {
    width: 140px;
  }

  .feats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 58px 24px;
  }

  .plans {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ───────── Movimiento ───────── */
@media (prefers-reduced-motion: no-preference) {
  /* Un solo momento de entrada: el logo cae como una gominola y los personajes asoman del prado. */
  .hero-lockup { animation: logo-in 900ms var(--ease-out) both; transform-origin: 50% 90%; }
  .land-hero .cast-in { animation: pop-up 760ms var(--spring) both; animation-delay: calc(380ms + var(--i, 0) * 90ms); }
  .c-a { --i: 1; } .c-c { --i: 2; } .c-osito { --i: 3; } .c-max { --i: 4; } .c-nubi { --i: 5; } .c-bananin { --i: 6; } .c-sandi { --i: 7; } .c-leia { --i: 8; }

  .land-hero .c-e .cast-in picture,
  .c-season picture { display: block; animation: breathe 3.2s ease-in-out 1.4s infinite; transform-origin: 50% 100%; }
  .land-hero .c-nubi picture { display: block; animation: hover 4.4s ease-in-out 1.6s infinite; }

  .cloud-1 { animation: drift 46s ease-in-out infinite alternate; }
  .cloud-2 { animation: drift 38s ease-in-out -12s infinite alternate-reverse; }
  .cloud-3 { animation: drift 52s ease-in-out -20s infinite alternate; }
  .sun picture { display: block; animation: spin 90s linear infinite; }

  .boing:hover picture,
  .boing.is-boing picture { animation: boing 620ms var(--ease-out); }

  .walker-max { animation: walk-x 26s linear infinite, walk-f 0.75s steps(6) infinite; }
  .walker-leia { animation: walk-x 15s linear -7s infinite, run-f 0.5s steps(6) infinite; }
  .walkers.is-paused .walker { animation-play-state: paused; }

  .look { animation: look-in 520ms var(--ease-out); }
  .scene .c-season .cast-in { animation: pop-up 640ms var(--spring) both; }
}

@keyframes logo-in {
  0% { transform: translateY(-26px) scale(0.86, 1.12); }
  45% { transform: translateY(0) scale(1.08, 0.92); }
  70% { transform: scale(0.97, 1.03); }
  100% { transform: none; }
}

@keyframes pop-up {
  0% { transform: translateY(70%) scale(0.6, 1.2); }
  60% { transform: translateY(-6%) scale(1.08, 0.92); }
  100% { transform: none; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.03, 0.97); }
}

@keyframes hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10%); }
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(60px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes boing {
  0% { transform: none; }
  25% { transform: translateY(-16%) scale(0.92, 1.1); }
  55% { transform: translateY(0) scale(1.12, 0.88); }
  75% { transform: scale(0.97, 1.03); }
  100% { transform: none; }
}

@keyframes walk-x {
  from { transform: translateX(-130px); }
  to { transform: translateX(calc(100vw + 20px)); }
}

@keyframes walk-f {
  to { background-position: -672px 0; }
}

@keyframes run-f {
  to { background-position: -624px 0; }
}

@keyframes look-in {
  0% { transform: translateX(-50%) translateY(-30%) scale(0.8, 1.2); }
  55% { transform: translateX(-50%) translateY(0) scale(1.1, 0.9); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .walkers { display: none; }
  .ly, .land-cast { transform: none !important; }
}


/* ───────── Movimiento (solo si se quiere) ───────── */

@media (prefers-reduced-motion: no-preference) {
  .fl { animation: float 5.2s ease-in-out infinite; }
  .fl-b { animation-delay: -2.4s; }
  .fl-c { animation-delay: -0.6s; animation-duration: 4.6s; }
  .fl-f { animation-delay: -1.8s; }

  /* El morado respira dormido. */
  .pal-e > picture,
  .cast-e > picture {
    animation: snore 3.4s ease-in-out infinite;
    transform-origin: 50% 100%;
  }

  .zz i { animation: zed 3.4s ease-out infinite; }
  .zz i:nth-child(2) { animation-delay: 1.13s; }
  .zz i:nth-child(3) { animation-delay: 2.26s; }

  .wink .wink-on { animation: wink 6s steps(1) infinite; }
  .cast-a .wink-on { animation-delay: -2s; }

  .cast-h picture { animation: look 4s ease-in-out infinite; }

  .cell.drop .cell-g { animation: drop 520ms var(--ease-out); }
  .cell.mark .cell-x { animation: mark 280ms var(--spring); }
  .cell.shake { animation: shake 420ms ease; }
  .cell.clash::after { animation: clash 700ms ease; }
  .is-solved .cell[data-state="gomi"] .cell-g { animation: jump 640ms var(--ease-out) var(--d, 0ms) 2; }

  .cell.target::after { animation: pulse 900ms ease-in-out infinite alternate; }

  .step-1 .sa-hand { animation: tap1 2.8s ease-in-out infinite; }
  .step-1 .sa-2 .cell-x { animation: x1 2.8s var(--spring) infinite; }
  .step-2 .sa-hand { animation: tap2 2.8s ease-in-out infinite; }
  .step-2 .sa-2 .cell-g { animation: g2 2.8s var(--ease-out) infinite; }
  .step-3 .sa-hand { animation: drag3 3.2s ease-in-out infinite; }
  .step-3 .sa-1 .cell-x { animation: x3a 3.2s var(--spring) infinite; }
  .step-3 .sa-2 .cell-x { animation: x3b 3.2s var(--spring) infinite; }
  .step-3 .sa-3 .cell-x { animation: x3c 3.2s var(--spring) infinite; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes snore {
  0%, 100% { transform: scale(1.04, 0.96); }
  50% { transform: scale(0.97, 1.03); }
}

@keyframes zed {
  0% { opacity: 0; transform: translate(0, 0); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(26px, -40px); }
}

@keyframes wink {
  0%, 91% { opacity: 0; }
  92%, 97% { opacity: 1; }
  98% { opacity: 0; }
}

@keyframes look {
  0%, 30%, 100% { transform: translateX(0) rotate(0); }
  40%, 55% { transform: translateX(-4px) rotate(-4deg); }
  65%, 85% { transform: translateX(4px) rotate(4deg); }
}

/* Caída con aplastamiento y estirón, como en la app. */
@keyframes drop {
  0% { transform: translateY(-70%) scale(0.75, 1.25); opacity: 0; }
  45% { transform: translateY(0) scale(1.22, 0.78); opacity: 1; }
  68% { transform: scale(0.92, 1.08); }
  84% { transform: scale(1.04, 0.96); }
  100% { transform: none; }
}

@keyframes mark {
  0% { transform: scale(0) rotate(-20deg); }
  70% { transform: scale(1.2) rotate(4deg); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

@keyframes clash {
  0%, 60% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes jump {
  0%, 100% { transform: none; }
  30% { transform: translateY(-34%) scale(0.92, 1.1); }
  60% { transform: translateY(0) scale(1.14, 0.86); }
  80% { transform: scale(0.97, 1.03); }
}

@keyframes pulse {
  from { transform: scale(0.92); }
  to { transform: scale(1.04); }
}

@keyframes tap1 {
  0%, 20% { transform: translate(-50%, 40%); }
  32% { transform: translate(-50%, 20%) scale(0.92); }
  40%, 100% { transform: translate(-50%, 34%); }
}

@keyframes x1 {
  0%, 31% { transform: scale(0); }
  40%, 92% { transform: scale(1); }
  100% { transform: scale(0); }
}

@keyframes tap2 {
  0%, 18% { transform: translate(-50%, 40%); }
  24% { transform: translate(-50%, 20%) scale(0.92); }
  30% { transform: translate(-50%, 34%); }
  36% { transform: translate(-50%, 20%) scale(0.92); }
  44%, 100% { transform: translate(-50%, 40%); }
}

@keyframes g2 {
  0%, 36% { transform: translateY(-70%) scale(0); }
  44% { transform: translateY(-40%) scale(0.75, 1.25); }
  52% { transform: translateY(0) scale(1.2, 0.8); }
  60%, 92% { transform: none; }
  100% { transform: scale(0); }
}

@keyframes drag3 {
  0%, 10% { left: 16%; transform: translate(-50%, 40%); }
  18% { left: 16%; transform: translate(-50%, 22%) scale(0.94); }
  60% { left: 84%; transform: translate(-50%, 22%) scale(0.94); }
  70%, 100% { left: 84%; transform: translate(-50%, 40%); }
}

@keyframes x3a {
  0%, 18% { transform: scale(0); }
  26%, 92% { transform: scale(1); }
  100% { transform: scale(0); }
}

@keyframes x3b {
  0%, 38% { transform: scale(0); }
  46%, 92% { transform: scale(1); }
  100% { transform: scale(0); }
}

@keyframes x3c {
  0%, 58% { transform: scale(0); }
  66%, 92% { transform: scale(1); }
  100% { transform: scale(0); }
}

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

  .sa-hand {
    transform: translate(-50%, 34%);
  }
}

/* Sin reducción de movimiento la mano arranca en su sitio. */
.sa-hand {
  transform: translate(-50%, 34%);
}


/* ═════════ Gomis World Tour · viaje (22 oct 2026) ═════════
   Idea: la web es el viaje. El planeta World Tour gira con el scroll y lleva de un juego a otro;
   después, los cien mundos, el pueblo en perspectiva, los doce personajes con sus caprichos, el widget
   que cambia de ánimo y lo de cada día. Todo con el arte real del juego. Movimiento: transform y
   opacity, y nada se mueve con «Reducir movimiento». */

::selection { background: #ffd23f; color: var(--ink); }
html { scrollbar-color: #9b5de5 #f1eaff; accent-color: #9b5de5; caret-color: #9b5de5; }

/* ── Cabecera: enlaces a los capítulos (solo en pantallas anchas) ── */
.g-nav-sec { display: none; }
@media (min-width: 1000px) {
  .g-nav-sec { display: block; }
  .g-nav-sec a { font-size: 0.9375rem; }
}

/* ── Héroe: fecha de salida y paralaje al puntero o al giroscopio ── */
.launch {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px;
  margin: 22px 0 0; padding: 6px 6px 6px 18px; border-radius: var(--r-pill); font-weight: 700;
  background: rgba(255, 255, 255, 0.86); box-shadow: inset 0 0 0 2px var(--ink);
}
.launch strong {
  font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.625rem); font-weight: 700;
}
.launch [data-countdown] {
  padding: 4px 14px; border-radius: var(--r-pill); background: var(--ink); color: #fff;
  font-size: 0.9375rem; font-variant-numeric: tabular-nums;
}
.gyro-chip {
  margin-top: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82); box-shadow: inset 0 0 0 2px var(--ink);
  color: var(--ink); font: 700 0.9375rem var(--body); cursor: pointer;
}
.c-dino { left: 9%; bottom: 5.2cqw; width: 6.6cqw; }
.c-tibu { left: 25%; bottom: 13.8cqw; width: 4.4cqw; }
.hero { --mx: 0; --my: 0; }
.land-cast { translate: calc(var(--mx) * -16px) calc(var(--my) * -6px); transition: translate 600ms var(--ease-out); }
.ly-colinas { translate: calc(var(--mx) * -7px) 0; transition: translate 600ms var(--ease-out); }
.ly-montanas { translate: calc(var(--mx) * -3px) 0; transition: translate 600ms var(--ease-out); }
.hero-sky .cloud, .hero-sky .sun { translate: calc(var(--mx) * 14px) calc(var(--my) * 8px); transition: translate 700ms var(--ease-out); }

/* Títulos de los capítulos nuevos: la misma pegatina, un punto más grande. */
.big-title { font-size: clamp(2.375rem, 6.6vw, 4.75rem); max-width: 13em; }
.big-lead {
  max-width: 34em; margin: 22px 0 0; font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  font-weight: 600; line-height: 1.55;
}

/* Festón de nata también en los capítulos nuevos. */
.wl, .tw, .cs, .wg, .dy, .ft {
  --edge: 22px; position: relative; background: var(--bg);
  padding: clamp(84px, 11vw, 150px) 0 clamp(84px, 10vw, 140px);
}
.wl::before, .tw::before, .cs::before, .wg::before, .dy::before, .ft::before, .wt::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--edge) * -1 + 1px); height: var(--edge);
  pointer-events: none; z-index: 3;
  background:
    radial-gradient(circle at 50% 100%, var(--bg) 0 calc(var(--edge) - 4px), transparent calc(var(--edge) - 3.4px)) 0 0 / calc(var(--edge) * 1.45) var(--edge) repeat-x,
    radial-gradient(circle at 50% 100%, var(--ink) 0 calc(var(--edge) - 1px), transparent calc(var(--edge) - 0.4px)) 0 0 / calc(var(--edge) * 1.45) var(--edge) repeat-x;
}
.wl { --bg: #fff1bf; }
.tw { --bg: #d3f6e6; overflow: clip; }
.cs { --bg: #ffe4f0; }
.wg { --bg: #dcefff; }
.dy { --bg: #ece4ff; }
.ft { --bg: var(--paper); }
.sec-price::before, .sec-faq::before { z-index: 3; }

/* ═════ World Tour: el planeta y sus cuatro paradas ═════ */
.wt { --edge: 22px; --bg: #2b1b4a; position: relative; color: var(--white); background: #2b1b4a; }
.wt-pin {
  position: relative; overflow: hidden; background: var(--field, #2b1b4a);
  transition: background-color 700ms var(--ease-out);
  padding: clamp(84px, 11vw, 130px) 0 clamp(72px, 9vw, 110px);
}
.wt[data-active="1"] { --field: #1e3fa8; }
.wt[data-active="2"] { --field: #0b6e5a; }
.wt[data-active="3"] { --field: #a3184f; }
.wt-stars { position: absolute; inset: 0; pointer-events: none; }
.wt-stars i {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * 3px); height: calc(var(--s) * 3px);
  border-radius: 50%; background: #fff; opacity: 0.35;
}
.wt-grid { position: relative; display: grid; gap: 36px; }
.wt-title {
  font-size: clamp(2.375rem, 6.6vw, 4.75rem); line-height: 1.02; color: var(--white);
  text-shadow: 0 0.07em 0 #120a24; max-width: 11em;
}
.wt-lead { max-width: 30em; margin: 18px 0 0; font-size: clamp(1.0625rem, 1.9vw, 1.25rem); font-weight: 600; }
.wt-dots { display: none; }
.wt-planet { justify-self: center; width: min(62vw, 420px); }
.wt-planet-in { display: block; rotate: var(--rot, 0deg); transition: rotate 120ms linear; }
.wt-planet-img { width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.35)); }
.wt-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px; }
.stop { display: grid; gap: 22px; align-items: center; }
.stop-name { font-size: clamp(1.75rem, 3.6vw, 2.5rem); color: #ffe58a; text-shadow: 0 3px 0 #120a24; }
.stop-big { margin: 6px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.75rem, 7vw, 5.25rem); line-height: 0.95; letter-spacing: -0.02em; }
.stop-text { max-width: 30em; margin: 14px 0 0; font-size: 1.0625rem; font-weight: 600; }
.stop-art { margin: 0; justify-self: center; }

/* Arte de cada parada */
.art-board { width: min(64vw, 270px); }
.art-board img { width: 100%; height: auto; border-radius: 28px; border: 4px solid var(--ink); box-shadow: 0 8px 0 #120a24; rotate: -4deg; }
.art-sg { width: min(80vw, 330px); }
.sgrid {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; padding: 8px; border-radius: 22px;
  background: var(--ink); box-shadow: 0 8px 0 #120a24;
}
.sc { --cell: #fff7fb; aspect-ratio: 1; display: grid; place-items: center; border-radius: 5px; background: var(--cell); }
.sc.b1 { --cell: #ffe1ee; }
.sc .late { opacity: 0; }
.sc img { width: 86%; height: auto; }
.art-jars { width: min(84vw, 360px); }
.jars { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 70px; }
.jar {
  position: relative; display: block; height: 170px; border-radius: 18px 18px 30px 30px;
  border: 4px solid rgba(255, 255, 255, 0.92); background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.12);
}
.jar::before { content: ""; position: absolute; left: -8px; right: -8px; top: -14px; height: 14px; border-radius: 8px; background: #ffe58a; border: 3px solid var(--ink); }
.jar-in { position: absolute; inset: auto 6px 6px; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.jg { width: 88%; height: auto; }
.jar-hop { position: absolute; width: 19%; left: 78%; top: 0; height: auto; }
.art-town { width: min(84vw, 360px); }
.town-mini { position: relative; display: block; aspect-ratio: 1.25; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; background: #7fdba8; border: 4px solid var(--ink); box-shadow: 0 8px 0 #120a24; }
.tm { position: absolute; height: auto; }
.tm-castle { width: 48%; left: 26%; top: -10%; }
.tm-h1 { width: 27%; left: 4%; top: 30%; }
.tm-h2 { width: 21%; right: 6%; top: 28%; }
.tm-tree { width: 18%; right: 26%; top: 54%; }
.tm-osito { width: 20%; left: 26%; top: 56%; }
.tm-gomi { width: 20%; left: 50%; top: 60%; }

@media (min-width: 900px) {
  .wt-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 28px; }
  .wt-head { grid-column: 1; }
  .wt-planet { grid-column: 1; grid-row: 2; align-self: center; width: min(34vw, 440px); }
  .wt-stops { grid-column: 2; grid-row: 1 / span 2; }
  .stop { gap: 26px; }
}

/* Escena fijada: solo con pantalla grande, JS y movimiento permitido. */
.wt.is-scrub { height: 380vh; }
.wt.is-scrub .wt-pin { position: sticky; top: 0; height: 100vh; min-height: 620px; display: grid; align-items: center; padding: 0; }
.wt.is-scrub .wt-grid { width: 100%; }
.wt.is-scrub .wt-dots { display: flex; gap: 10px; margin-top: 28px; }
.wt-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: background-color 300ms, transform 300ms var(--spring); }
.wt[data-active="0"] .wt-dot[data-dot="0"], .wt[data-active="1"] .wt-dot[data-dot="1"],
.wt[data-active="2"] .wt-dot[data-dot="2"], .wt[data-active="3"] .wt-dot[data-dot="3"] { background: #ffe58a; transform: scale(1.3); }
.wt.is-scrub .wt-stops { position: relative; display: block; min-height: 560px; }
.wt.is-scrub .stop {
  position: absolute; inset: 0; align-content: center; opacity: 0; visibility: hidden;
  transform: translate3d(0, 48px, 0) scale(0.97);
  transition: opacity 520ms var(--ease-out), transform 720ms var(--ease-out), visibility 0s 720ms;
}
.wt.is-scrub .stop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 520ms var(--ease-out), transform 720ms var(--spring); }
.wt.is-scrub .stop.is-past { transform: translate3d(0, -48px, 0) scale(0.97); }
.wt.is-scrub .stop .stop-art { transform: scale(0.86) rotate(-6deg); transition: transform 900ms var(--spring); }
.wt.is-scrub .stop.is-on .stop-art { transform: none; }
.wt.is-scrub .wt-planet-in { scale: var(--zoom, 1); transition: rotate 120ms linear, scale 900ms var(--spring); }

@media (prefers-reduced-motion: no-preference) {
  .wt:not(.is-scrub) .wt-planet-in { animation: spin 80s linear infinite; }
  .stop.is-on .sc-empty { animation: fill-in 900ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 380ms + 500ms); }
  .stop.is-on .sc-empty .late { animation: pop-late 520ms var(--spring) both; animation-delay: calc(var(--d, 0) * 380ms + 700ms); }
  .stop.is-on .jar-hop, .wt:not(.is-scrub) .jar-hop { animation: hop 2.6s var(--ease-out) infinite; }
  .wt-stars i { animation: twinkle 3.2s ease-in-out infinite; animation-delay: calc(var(--s) * -0.9s); }
}
@keyframes spin { to { rotate: 360deg; } }
@keyframes twinkle { 50% { opacity: 0.15; } }
@keyframes fill-in { 0% { background: var(--cell); } 40% { background: #ffe58a; } 100% { background: var(--cell); } }
@keyframes pop-late { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: none; } }
@keyframes hop {
  0%, 12% { transform: translate(0, 0); }
  35% { transform: translate(-120%, -80%) rotate(-12deg); }
  60%, 100% { transform: translate(-240%, 40%) rotate(0deg); }
}

/* ═════ Mundos: los veinte paisajes corriendo ═════ */
.wl-head { position: relative; z-index: 2; }
.mqs { display: grid; gap: 16px; margin: clamp(40px, 6vw, 64px) 0; overflow: hidden; }
.mq { display: flex; width: max-content; }
.mq-track { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0 11px; list-style: none; }
.mq-name {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.25rem, 6vw, 4.75rem); line-height: 1.1;
  white-space: nowrap; letter-spacing: -0.015em;
}
.mq-b .mq-name { color: #9b2c6f; }
.mq-map { width: clamp(84px, 9vw, 120px); flex: none; }
.mq-map img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); rotate: 5deg; }
.mq-b .mq-map img { rotate: -6deg; }
@media (prefers-reduced-motion: no-preference) {
  .mq-a { animation: marquee 70s linear infinite; }
  .mq-b { animation: marquee 80s linear infinite reverse; }
  .mqs:hover .mq { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .mq { width: auto; }
  .mq-track { flex-wrap: wrap; padding: 0 var(--gutter); }
  .mq-track[aria-hidden="true"] { display: none; }
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.wl-list { display: grid; gap: 30px 44px; margin: 0; }
.wl-list dt, .dy-list dt, .ft-list dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.3125rem, 2.2vw, 1.625rem); line-height: 1.15; }
.wl-list dd, .dy-list dd, .ft-list dd { margin: 8px 0 0; max-width: 30em; }
@media (min-width: 700px) { .wl-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wl-list { grid-template-columns: repeat(3, 1fr); } .wl-item:first-child { grid-row: span 1; } }

/* ═════ Pueblo: el mapa en perspectiva ═════ */
.tw-grid { display: grid; gap: 44px; align-items: center; }
.tw-list { margin: 26px 0 0; padding: 0 0 0 1.1em; display: grid; gap: 10px; font-weight: 600; }
.tw-list li::marker { color: #2fa36b; }
.tw-stage {
  --tx: 0; --ty: 0; container-type: inline-size; perspective: 1100px; perspective-origin: 50% 20%;
  width: 100%; max-width: 640px; justify-self: center; padding: 6% 4% 0;
}
.tw-ground {
  position: relative; aspect-ratio: 1 / 1.05; border-radius: 9cqw; border: 4px solid var(--ink);
  background-size: cover; background-position: 50% 40%; transform-style: preserve-3d;
  transform: rotateX(calc(54deg + var(--ty) * 5deg)) rotateZ(calc(-10deg + var(--tx) * 8deg));
  transition: transform 700ms var(--ease-out);
  box-shadow: 0 2cqw 0 var(--ink), 0 4cqw 6cqw rgba(43, 27, 74, 0.25);
}
.tw-obj, .tw-walk {
  position: absolute; left: var(--x); top: var(--y); transform-style: preserve-3d;
}
.tw-obj picture, .tw-walk picture {
  display: block; width: calc(var(--w, 84px) / 640 * 100cqw);
  transform: translate(-50%, -100%) rotateX(calc(-54deg - var(--ty) * 5deg)); transform-origin: 50% 100%;
}
.tw-obj img, .tw-walk img { width: 100%; height: auto; }
.tw-obj.d-flat picture { transform: translate(-50%, -50%); }
.tw-walk { --w: 70px; }
.w1 { --x: 40%; --y: 64%; } .w2 { --x: 30%; --y: 50%; } .w3 { --x: 66%; --y: 60%; }
.w4 { --x: 74%; --y: 82%; } .w5 { --x: 52%; --y: 76%; }
@media (prefers-reduced-motion: no-preference) {
  .tw.is-near .tw-walk { animation: stroll 14s ease-in-out infinite; }
  .tw.is-near .w2 { animation-duration: 17s; animation-delay: -5s; }
  .tw.is-near .w3 { animation-duration: 12s; animation-delay: -2s; animation-direction: reverse; }
  .tw.is-near .w4 { animation-duration: 19s; animation-delay: -9s; }
  .tw.is-near .w5 { animation-duration: 15s; animation-delay: -7s; animation-direction: reverse; }
  .tw.is-near .tw-walk picture { animation: waddle 0.7s ease-in-out infinite alternate; }
  .tw.is-near .d-wheel picture img { animation: none; }
  .tw.is-near .d-balloon picture { animation: float-up 6s ease-in-out infinite; }
  .tw.is-paused .tw-walk, .tw.is-paused .tw-walk picture, .tw.is-paused .d-balloon picture { animation-play-state: paused; }
}
@keyframes stroll {
  0% { translate: 0 0; } 25% { translate: 10cqw -4cqw; } 50% { translate: 4cqw 7cqw; } 75% { translate: -8cqw 3cqw; } 100% { translate: 0 0; }
}
@keyframes waddle { from { rotate: -4deg; } to { rotate: 4deg; } }
@keyframes float-up { 50% { translate: 0 -3cqw; } }
@media (max-width: 899px) {
  .tw-stage { padding: 12% 9% 4%; }
  .tw-ground { transform: rotateX(calc(50deg + var(--ty) * 5deg)) rotateZ(-8deg) scale(0.9); }
}
@media (min-width: 900px) { .tw-grid { grid-template-columns: 5fr 7fr; gap: 56px; } }

/* ═════ Personajes: el probador ═════ */
.cs-grid { display: grid; gap: 40px; align-items: center; }
.cs-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; max-width: 520px; }
.cs-thumb {
  width: 100%; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; border: 0; border-radius: 20px;
  background: rgba(255, 255, 255, 0.7); color: var(--ink); font: 700 0.8125rem var(--body); cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(43, 27, 74, 0.18);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms;
}
.cs-thumb img { width: 52px; height: 52px; object-fit: contain; }
.cs-thumb:hover { transform: translateY(-2px); background: #fff; }
.cs-thumb:active { transform: translateY(2px); }
.cs-thumb[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 var(--ink); }
@media (min-width: 600px) { .cs-thumbs { grid-template-columns: repeat(6, 1fr); } }
.cs-stage { position: relative; margin: 0; display: grid; justify-items: center; text-align: center; }
.cs-spot {
  position: relative; width: min(78vw, 440px); aspect-ratio: 1; display: grid; place-items: end center;
  border-radius: 50%; background: #ffc6e0; box-shadow: inset 0 0 0 4px var(--ink);
}
.cs-spot::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 9%; height: 13%; border-radius: 50%; background: #f27aa9; box-shadow: inset 0 -6px 0 #d4508a, 0 0 0 4px var(--ink); z-index: 0; }
.cs-spot picture { position: relative; z-index: 1; width: 92%; margin-bottom: 4%; }
.cs-img { width: 100%; height: auto; }
.cs-cap { margin-top: 18px; font-size: 1.0625rem; min-height: 3.2em; max-width: 26em; }
.cs-cap strong { display: block; font-family: var(--display); font-size: 1.75rem; line-height: 1.1; }
.cs-next { margin-top: 10px; }
.cs-spot.is-swap picture { animation: swap-pop 560ms var(--spring) both; }
@keyframes swap-pop { from { transform: translateY(14px) scale(0.86); opacity: 0.2; } to { transform: none; opacity: 1; } }
.cs-pets { margin-top: clamp(56px, 8vw, 96px); }
.cs-pets-title { font-size: clamp(1.625rem, 3.4vw, 2.25rem); }
.cs-pets p { max-width: 36em; margin: 10px 0 0; }
.pets-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.pets-row li { display: grid; justify-items: center; font-weight: 700; font-size: 0.9375rem; }
.pets-row img { width: 72px; height: 72px; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .pets-row li:nth-child(odd) img { animation: hover 3.6s ease-in-out infinite; }
  .pets-row li:nth-child(even) img { animation: hover 4.2s ease-in-out -1.4s infinite; }
}
@media (min-width: 900px) { .cs-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ═════ Widgets ═════ */
.wg-grid { display: grid; gap: 44px; align-items: center; }
.wg-controls { display: grid; gap: 16px; margin: 28px 0 0; max-width: 460px; padding: 18px 20px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 3px var(--ink), 0 5px 0 var(--ink); }
.wg-hour { display: grid; gap: 8px; font-weight: 700; }
.wg-hour output { font-variant-numeric: tabular-nums; }
.wg-hour input { width: 100%; height: 44px; }
.wg-done { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; }
.wg-done input { width: 24px; height: 24px; }
.wg-sub { margin-top: 40px; font-size: clamp(1.625rem, 3.4vw, 2.25rem); }
.wg-copy > p:last-child { max-width: 34em; margin: 10px 0 0; }
.wg-screen {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; align-items: flex-start;
  padding: clamp(24px, 4vw, 44px); border-radius: 44px; background: #1d4f6e;
  box-shadow: inset 0 0 0 4px var(--ink), 0 8px 0 var(--ink);
}
.wm, .wx { position: relative; border-radius: 34px; overflow: hidden; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28); }
.wm {
  --top: #5ed8f2; --bot: #2e8bef; --tx: #fff;
  width: 190px; height: 190px; padding: 14px; display: grid; grid-template-rows: auto 1fr auto;
  background: linear-gradient(180deg, var(--top), var(--bot)); color: var(--tx);
  transition: --top 600ms, --bot 600ms;
}
.wm-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 800; }
.wm-flame { display: inline-flex; align-items: center; gap: 2px; font-family: var(--display); font-size: 1.125rem; }
.wm-flame img { width: 20px; height: auto; }
.wm-faces { display: grid; place-items: center; }
.wm-face { width: 92px; height: auto; grid-area: 1 / 1; }
.wm-line { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.12; text-align: center; min-height: 2.25em; display: grid; place-items: center; }
.wm[data-mood="celebrating"] { --top: #3ee08f; --bot: #12b3a8; }
.wm[data-mood="happy"] { --top: #7ce8b0; --bot: #2fc48d; }
.wm[data-mood="calm"] { --top: #5ed8f2; --bot: #2e8bef; }
.wm[data-mood="waiting"] { --top: #ffe36b; --bot: #ffb627; --tx: var(--ink); }
.wm[data-mood="worried"] { --top: #ffb04a; --bot: #ff7a1f; --tx: var(--ink); }
.wm[data-mood="stressed"] { --top: #ff7a45; --bot: #e8364a; }
.wm[data-mood="panicking"] { --top: #ff3d57; --bot: #b3122e; }
.wm[data-mood="sleeping"] { --top: #4b3a9c; --bot: #1e1650; }
@property --top { syntax: "<color>"; inherits: true; initial-value: #5ed8f2; }
@property --bot { syntax: "<color>"; inherits: true; initial-value: #2e8bef; }
.wm[data-mood="panicking"] .wm-faces { animation: shake 0.35s linear infinite; }
@media (prefers-reduced-motion: reduce) { .wm[data-mood="panicking"] .wm-faces { animation: none; } }
@keyframes shake { 25% { translate: -2px 0; } 75% { translate: 2px 0; } }
.wx {
  width: 190px; height: 190px; padding: 14px 16px; background: linear-gradient(180deg, #8fd2ff, #4d7cfe); color: #fff;
  display: grid; grid-template-rows: auto 1fr auto;
}
.wx-city { margin: 0; font-size: 0.8125rem; font-weight: 800; }
.wx-state { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.wx-gomi { width: 96px; height: auto; grid-row: span 2; margin-left: -10px; }
.wx-temp { margin: 0; font-family: var(--display); font-size: 2.25rem; font-weight: 700; line-height: 1; text-align: right; }
.wx-label { margin: 0; font-size: 0.8125rem; font-weight: 800; text-align: right; }
.wx-credit { margin: 0; font-size: 0.6875rem; font-weight: 700; opacity: 0.9; }
.wx-state.is-in { animation: swap-pop 520ms var(--spring) both; }
@media (min-width: 900px) { .wg-grid { grid-template-columns: 1fr 1fr; gap: 56px; } .wg-screen { flex-wrap: nowrap; padding: 36px 28px; } .wm, .wx { width: 218px; height: 218px; } .wm-face { width: 104px; } .wx-gomi { width: 108px; } .wm-line { font-size: 1.0625rem; } }

/* ═════ Cada día ═════ */
.dy-grid { display: grid; gap: 48px; align-items: center; }
.dy-list { display: grid; gap: 22px; margin: 28px 0 0; }
.week { display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 1.4vw, 14px); margin: 0; padding: 0; list-style: none; }
.wk { display: grid; justify-items: center; gap: 6px; font-weight: 800; font-size: 0.8125rem; }
.wk-board {
  --c: calc(var(--n) * 1px);
  width: calc(var(--n) * clamp(5px, 1.05vw, 11px)); aspect-ratio: 1; border-radius: 10px; border: 3px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - 1px), rgba(43, 27, 74, 0.25) 0 calc(100% / var(--n))),
    repeating-linear-gradient(0deg, transparent 0 calc(100% / var(--n) - 1px), rgba(43, 27, 74, 0.25) 0 calc(100% / var(--n))),
    var(--tile, #ffb8c9);
  box-shadow: 0 4px 0 var(--ink);
}
.wk-1 { --tile: #ffea8a; } .wk-2 { --tile: #a8f0cc; } .wk-3 { --tile: #bcd0ff; } .wk-4 { --tile: #dcc6ff; } .wk-5 { --tile: #ffc6e8; } .wk-6 { --tile: #ffd9a8; }
.wk-size { font-weight: 600; font-variant-numeric: tabular-nums; }
.seasons { display: flex; justify-content: center; gap: 18px; margin-top: 34px; }
.season-img { width: clamp(72px, 10vw, 104px); height: auto; }
@media (min-width: 900px) { .dy-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ═════ Detalles ═════ */
.ft-list { display: grid; gap: 30px 40px; margin: clamp(32px, 5vw, 56px) 0 0; }
@media (min-width: 640px) { .ft-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ft-list { grid-template-columns: repeat(4, 1fr); } }

/* ═════ Pie: cierre del viaje ═════ */
.foot-hero { display: grid; justify-items: center; gap: 18px; padding: 40px 0 34px; text-align: center; }
.end-line { text-wrap: balance; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 4.4vw, 3rem); line-height: 1.08; color: #fff; max-width: 16em; }
.foot-planet { width: clamp(140px, 18vw, 220px); height: auto; }
@media (prefers-reduced-motion: no-preference) { .foot-planet { animation: spin 60s linear infinite; } }

/* ═════ Entradas escalonadas (solo lo que aún no se ha visto) ═════ */
.rv { opacity: 0; transform: translate3d(0, 26px, 0); }
.rv.is-in { opacity: 1; transform: none; transition: opacity 640ms var(--ease-out), transform 820ms var(--ease-out); transition-delay: calc(var(--rv, 0) * 75ms); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

.sc-empty.d0{--d:0}.sc-empty.d1{--d:1}.sc-empty.d2{--d:2}.sc-empty.d3{--d:3}.sc-empty.d4{--d:4}.sc-empty.d5{--d:5}.sc-empty.d6{--d:6}

.sec-price > .wrap, .sec-faq > .wrap { content-visibility: visible; }

/* Generado por tools/build.py (posiciones del pueblo, estrellas y semana) */
.wt-stars i:nth-child(1){--x:0%;--y:0%;--s:1}.wt-stars i:nth-child(2){--x:37%;--y:61%;--s:2}.wt-stars i:nth-child(3){--x:74%;--y:22%;--s:3}.wt-stars i:nth-child(4){--x:11%;--y:83%;--s:1}.wt-stars i:nth-child(5){--x:48%;--y:44%;--s:2}.wt-stars i:nth-child(6){--x:85%;--y:5%;--s:3}.wt-stars i:nth-child(7){--x:22%;--y:66%;--s:1}.wt-stars i:nth-child(8){--x:59%;--y:27%;--s:2}.wt-stars i:nth-child(9){--x:96%;--y:88%;--s:3}.wt-stars i:nth-child(10){--x:33%;--y:49%;--s:1}.wt-stars i:nth-child(11){--x:70%;--y:10%;--s:2}.wt-stars i:nth-child(12){--x:7%;--y:71%;--s:3}.wt-stars i:nth-child(13){--x:44%;--y:32%;--s:1}.wt-stars i:nth-child(14){--x:81%;--y:93%;--s:2}.wt-stars i:nth-child(15){--x:18%;--y:54%;--s:3}.wt-stars i:nth-child(16){--x:55%;--y:15%;--s:1}.wt-stars i:nth-child(17){--x:92%;--y:76%;--s:2}.wt-stars i:nth-child(18){--x:29%;--y:37%;--s:3}.wt-stars i:nth-child(19){--x:66%;--y:98%;--s:1}.wt-stars i:nth-child(20){--x:3%;--y:59%;--s:2}.wt-stars i:nth-child(21){--x:40%;--y:20%;--s:3}.wt-stars i:nth-child(22){--x:77%;--y:81%;--s:1}.wt-stars i:nth-child(23){--x:14%;--y:42%;--s:2}.wt-stars i:nth-child(24){--x:51%;--y:3%;--s:3}.wt-stars i:nth-child(25){--x:88%;--y:64%;--s:1}.wt-stars i:nth-child(26){--x:25%;--y:25%;--s:2}
.tw-obj.o0{--x:50%;--y:22%;--w:230px}.tw-obj.o1{--x:22%;--y:40%;--w:130px}.tw-obj.o2{--x:76%;--y:44%;--w:104px}.tw-obj.o3{--x:17%;--y:66%;--w:112px}.tw-obj.o4{--x:86%;--y:72%;--w:132px}.tw-obj.o5{--x:50%;--y:58%;--w:110px}.tw-obj.o6{--x:34%;--y:22%;--w:96px}.tw-obj.o7{--x:68%;--y:26%;--w:86px}.tw-obj.o8{--x:38%;--y:56%;--w:40px}.tw-obj.o9{--x:62%;--y:56%;--w:40px}.tw-obj.o10{--x:82%;--y:16%;--w:96px}.tw-obj.o11{--x:26%;--y:86%;--w:190px}.tw-obj.o12{--x:92%;--y:40%;--w:80px}.tw-obj.o13{--x:60%;--y:84%;--w:116px}
.tw-ground{background-image:url(/img/gomis/pueblo-suelo.6f2bc395-900.webp)}
.wk-0{--n:6}.wk-1{--n:7}.wk-2{--n:7}.wk-3{--n:8}.wk-4{--n:8}.wk-5{--n:9}.wk-6{--n:9}
