/* Landing en el mismo mundo que el juego: cartoon 2D, contorno negro grueso, colores planos,
   sombra de dibujo (desplazada, sin difuminar) y rebote con squash & stretch. Nada de 3D ni brillos.
   Regla para formas con muescas (estrellas, banderines, rombos): la sombra se dibuja dentro del SVG o con
   filter: drop-shadow, nunca con box-shadow (que sería un rectángulo detrás de la forma). */

@font-face {
  font-family: 'Luckiest Guy';
  src: url('fonts/luckiest-guy-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #1d1433;
  --ink-2: #4b4166;
  --white: #ffffff;
  --lilac: #efe9ff;
  --lilac-2: #ddd2ff;
  --violet: #6b3df0;
  --violet-dark: #4a21c4;
  --violet-deep: #3b1aa3;
  --pink: #ff5fa2;
  --yellow: #ffd43b;
  --cyan: #2dd4f0;
  --green: #31d27f;
  --orange: #ff8b3d;
  --red: #ff4d5e;
  --o: 3px;
  --o-lg: 4px;
  --pop: 0 6px 0 var(--ink);
  --pop-sm: 0 3px 0 var(--ink);
  --pop-lg: 0 10px 0 var(--ink);
  --r: 18px;
  --r-lg: 26px;
  --display: 'Luckiest Guy', 'Nunito', system-ui, sans-serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gap: clamp(18px, 3vw, 28px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--violet);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg,
video {
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
b,
strong {
  font-weight: 900;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--cyan);
  border-radius: 8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border: var(--o) solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  font-weight: 900;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: calc(20px + var(--safe-l));
  padding-right: calc(20px + var(--safe-r));
}
.wrap--narrow {
  max-width: 780px;
}

/* ── logotipo y títulos ────────────────────────────────── */
.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--pink);
  -webkit-text-stroke: 0.07em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--ink);
}
.wordmark .wm-b {
  color: var(--cyan);
}
.wordmark--sm {
  font-size: 22px;
  -webkit-text-stroke-width: 0.1em;
}
.wordmark--md {
  font-size: 30px;
}
.wordmark--xl {
  /* tamaños pensados para «Music Tycoon» (12 caracteres con el espacio): que quepa en un móvil de 360 px */
  font-size: clamp(46px, 11.5vw, 106px);
  display: inline-block;
  transform: rotate(-4deg);
  transform-origin: left bottom;
  margin: 6px 0 0;
}
.h1,
.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(44px, 9vw, 80px);
}
.h2 {
  font-size: clamp(34px, 6.4vw, 58px);
}
.h2--light,
.h1--light {
  color: var(--white);
  -webkit-text-stroke: 0.065em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--ink);
}
.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 14px 3px;
  border: var(--o) solid var(--ink);
  border-radius: 99px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--pop-sm);
  transform: rotate(-2deg);
}
.lede {
  max-width: 62ch;
  margin: 16px 0 0;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
}
.sec-head {
  margin-bottom: clamp(28px, 5vw, 48px);
}
.on-dark,
.on-dark p,
.on-dark .lede {
  color: var(--white);
}
.on-dark .kicker {
  color: var(--ink);
}
.hint {
  margin: 10px 0 0;
  font-size: 14px;
  opacity: 0.85;
}
.soon,
.new {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 9px 0;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: 2px;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.new {
  background: var(--pink);
  color: var(--white);
}

/* ── botones ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: var(--o) solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  box-shadow: var(--pop-sm);
  cursor: pointer;
  transition:
    transform 0.14s var(--bounce),
    box-shadow 0.14s var(--bounce);
}
.btn svg {
  flex: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ink);
}
.btn:active {
  transform: translateY(3px) scale(1.03, 0.94);
  box-shadow: 0 0 0 var(--ink);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn--primary {
  background: var(--yellow);
}
.btn--ghost {
  background: var(--lilac);
}
.btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 15px;
  border-radius: 12px;
}
.btn--lg {
  min-height: 54px;
  padding: 0 24px;
  font-size: 18px;
}
.btn--xl {
  min-height: 66px;
  padding: 0 30px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: 0.03em;
  border-width: var(--o-lg);
  border-radius: 18px;
  box-shadow: var(--pop);
}
.btn--xl:hover {
  box-shadow: 0 9px 0 var(--ink);
}
.btn--block {
  width: 100%;
}
.row-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

/* ── barra superior ────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px calc(14px + var(--safe-r)) 8px calc(14px + var(--safe-l));
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  background: var(--white);
  border-bottom: var(--o-lg) solid var(--ink);
}
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  text-decoration: none;
}
.topbar-disc {
  width: 32px;
  height: 32px;
  animation: spin 6s linear infinite;
}
.topbar-brand .wordmark {
  display: none;
}
.topbar-nav {
  display: none;
  gap: 2px;
}
.topbar-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}
.topbar-nav a:hover,
.topbar-nav a[aria-current='page'] {
  background: var(--lilac);
}
/* idiomas: pestañas de un mismo control, con la activa hundida */
.langs {
  display: inline-flex;
  padding: 3px;
  border: var(--o) solid var(--ink);
  border-radius: 12px;
  background: var(--lilac);
}
.langs a {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-2);
}
.langs a:hover {
  color: var(--ink);
}
.langs a[aria-current='true'] {
  background: var(--ink);
  color: var(--white);
}

/* ── portada ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, 0.13) 1.6px, transparent 2px) 0 0 / 22px 22px,
    var(--violet);
  color: var(--white);
  padding: clamp(28px, 5vw, 64px) 0 0;
}
.hero-lights span {
  position: absolute;
  top: -10%;
  width: 38vw;
  height: 120%;
  background: linear-gradient(180deg, rgba(255, 233, 120, 0.32), rgba(255, 233, 120, 0));
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  animation: sway 7s ease-in-out infinite;
  pointer-events: none;
}
.hero-lights span:first-child {
  left: 0;
  --r0: -14deg;
  --r1: 8deg;
}
.hero-lights span:last-child {
  right: 4%;
  background: linear-gradient(180deg, rgba(255, 140, 210, 0.3), rgba(255, 140, 210, 0));
  --r0: 12deg;
  --r1: -8deg;
  animation-delay: -3s;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(36px, 6vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 calc(20px + var(--safe-r)) 0 calc(20px + var(--safe-l));
}
.hero-tag {
  display: inline-block;
  margin: 24px 0 0;
  padding: 7px 16px 6px;
  border: var(--o) solid var(--ink);
  border-radius: 99px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(-2deg);
  box-shadow: var(--pop-sm);
}
.hero-lede {
  max-width: 36ch;
  margin: 20px 0 0;
  font-size: clamp(18px, 2.3vw, 21px);
  font-weight: 700;
  line-height: 1.45;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}
.hero-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.hero-dl-note {
  width: 100%;
  margin: 2px 0 0;
  font-size: 13px;
  opacity: 0.75;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: 4px 12px 3px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  background: var(--violet-deep);
  font-size: 14px;
  font-weight: 800;
}

/* televisor de dibujo con la partida dentro */
.tv {
  position: relative;
  margin: 26px 0 0;
  width: 100%;
  max-width: 640px;
  justify-self: center;
  transform: rotate(1.5deg);
}
.tv-antenna {
  position: absolute;
  left: 50%;
  top: -46px;
  width: 0;
  height: 50px;
}
.tv-antenna i {
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 56px;
  border-radius: 4px;
  background: var(--ink);
  transform-origin: 50% 100%;
}
.tv-antenna i:first-child {
  transform: rotate(-32deg);
}
.tv-antenna i:last-child {
  transform: rotate(28deg);
}
.tv-antenna i::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -5px;
  width: 17px;
  height: 17px;
  border: var(--o) solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}
.tv-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  border: 5px solid var(--ink);
  border-radius: 30px;
  background: var(--pink);
  box-shadow: var(--pop-lg);
}
.tv-screen {
  position: relative;
  overflow: hidden;
  border: var(--o-lg) solid var(--ink);
  border-radius: 20px;
  background: var(--ink);
  aspect-ratio: 16 / 9;
}
.tv-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tv-onair {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 2px 10px 1px 22px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tv-onair::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--red);
  animation: blink-dot 1.2s steps(2) infinite;
}
.tv-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 52px;
  padding-top: 6px;
}
.knob {
  width: 40px;
  height: 40px;
  border: var(--o) solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  position: relative;
}
.knob::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  width: 4px;
  height: 13px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: 50% 13px;
  transform: rotate(35deg);
}
.knob--b {
  background: var(--cyan);
}
.knob--b::after {
  transform: rotate(-60deg);
}
.grille {
  flex: 1;
  width: 36px;
  min-height: 60px;
  border: var(--o) solid var(--ink);
  border-radius: 10px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 3px, var(--white) 3px 9px);
}
.tv-feet {
  display: flex;
  justify-content: space-between;
  padding: 0 18%;
}
.tv-feet i {
  width: 34px;
  height: 18px;
  border: var(--o) solid var(--ink);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: var(--violet-deep);
}
/* estrella «¡Gratis!»: sombra dentro del SVG (forma con muescas) */
.burst {
  position: absolute;
  right: -18px;
  top: -52px;
  width: 128px;
  height: 128px;
  overflow: visible;
  animation: wobble 3s var(--bounce) infinite;
}
.burst-shadow {
  fill: var(--ink);
  transform: translate(0, 6px);
}
.burst-fill {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
}
.burst-text {
  position: absolute;
  right: -18px;
  top: -52px;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  transform: rotate(-12deg);
  animation: wobble 3s var(--bounce) infinite;
  pointer-events: none;
}
.stage-floor {
  height: 56px;
  margin-top: clamp(40px, 6vw, 72px);
  border-top: var(--o-lg) solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--violet-dark) 0 60px, #5a2fe0 60px 120px);
}

/* banderines entre secciones (la sombra va dentro del dibujo) */
.bunting {
  position: relative;
  z-index: 2;
  height: 44px;
  margin: -2px 0 -42px; /* no ocupa sitio: se apoya sobre el borde de la sección siguiente */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='216' height='44' viewBox='0 0 216 44'%3E%3Cpath d='M0 5 Q54 13 108 5 T216 5' fill='none' stroke='%231d1433' stroke-width='3'/%3E%3Cg stroke='%231d1433' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M8 7 L44 9 L26 38Z' fill='%231d1433' transform='translate(0 4)'/%3E%3Cpath d='M8 7 L44 9 L26 38Z' fill='%23ffd43b'/%3E%3Cpath d='M62 10 L98 10 L80 39Z' fill='%231d1433' transform='translate(0 4)'/%3E%3Cpath d='M62 10 L98 10 L80 39Z' fill='%23ff5fa2'/%3E%3Cpath d='M118 10 L154 9 L136 38Z' fill='%231d1433' transform='translate(0 4)'/%3E%3Cpath d='M118 10 L154 9 L136 38Z' fill='%232dd4f0'/%3E%3Cpath d='M172 7 L208 5 L190 34Z' fill='%231d1433' transform='translate(0 4)'/%3E%3Cpath d='M172 7 L208 5 L190 34Z' fill='%2331d27f'/%3E%3C/g%3E%3C/svg%3E")
    0 0 / 216px 44px repeat-x;
  pointer-events: none;
}

/* ── secciones ─────────────────────────────────────────── */
.section {
  position: relative;
  padding: clamp(64px, 9vw, 104px) 0;
  border-top: var(--o-lg) solid var(--ink);
}
.section--paper {
  background: var(--white);
}
.section--lilac {
  background: var(--lilac);
}
.section--yellow {
  background:
    radial-gradient(rgba(29, 20, 51, 0.07) 1.6px, transparent 2px) 0 0 / 20px 20px,
    var(--yellow);
}
.section--pink {
  background: var(--pink);
}
.section--cyan {
  background:
    radial-gradient(rgba(29, 20, 51, 0.07) 1.6px, transparent 2px) 0 0 / 20px 20px,
    var(--cyan);
}
.section--violet {
  background:
    radial-gradient(rgba(255, 255, 255, 0.12) 1.6px, transparent 2px) 0 0 / 22px 22px,
    var(--violet);
}
.split {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.split-copy > p {
  max-width: 56ch;
}

/* lista con marcas */
.ticks {
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 36px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231d1433' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 78% no-repeat;
}
.section--yellow .ticks li::before,
.section--cyan .ticks li::before {
  background-color: var(--white);
}

/* ── galería de vídeos ─────────────────────────────────── */
.clips {
  columns: 1;
  column-gap: var(--gap);
}
.clip-card {
  break-inside: avoid;
  margin: 0 0 calc(var(--gap) + 10px);
  display: inline-block;
  width: 100%;
}
.clip-card .screen {
  position: relative;
  overflow: hidden;
  border: var(--o-lg) solid var(--ink);
  border-radius: var(--r);
  background: var(--c);
  box-shadow: var(--pop);
  transition: transform 0.25s var(--bounce);
}
.clip-card:nth-child(odd) .screen {
  transform: rotate(-1deg);
}
.clip-card:nth-child(even) .screen {
  transform: rotate(1deg);
}
.clip-card:hover .screen {
  transform: rotate(0) translateY(-3px);
}
.screen video,
.screen img {
  display: block;
  width: 100%;
  height: auto;
}
.screen--phone {
  max-width: 300px;
  margin: 0 auto;
  border-width: 8px;
  border-radius: 34px;
}
.clip-card figcaption {
  margin-top: 16px;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1.45;
}
.clip-title {
  display: inline-block;
  margin: 0 8px 4px 0;
  padding: 3px 12px 1px;
  border: var(--o) solid var(--ink);
  border-radius: 10px;
  background: var(--c);
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  box-shadow: var(--pop-sm);
  transform: rotate(-2deg);
}

/* ── reglas en un minuto ───────────────────────────────── */
.quick {
  display: grid;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: q;
}
.quick-card {
  position: relative;
  padding: 24px 22px 22px 22px;
  border: var(--o) solid var(--ink);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--pop);
  counter-increment: q;
}
.quick-card::after {
  content: counter(q);
  position: absolute;
  right: 16px;
  top: 14px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  color: var(--lilac-2);
}
.quick-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}
.quick-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.1;
  padding-right: 34px;
}
.quick-card p {
  margin: 0;
}

/* ── tocadiscos con la partida ─────────────────────────── */
.deck {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1 / 0.86;
  justify-self: center;
  border: 5px solid var(--ink);
  border-radius: 30px;
  background: var(--yellow);
  box-shadow: var(--pop-lg);
}
.deck-platter {
  position: absolute;
  left: 7%;
  top: 9%;
  width: 72%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
}
.deck-platter video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deck-arm {
  position: absolute;
  right: 4%;
  top: 6%;
  width: 22%;
  height: auto;
  overflow: visible;
}
.deck-knob {
  position: absolute;
  right: 8%;
  bottom: 9%;
  width: 44px;
  height: 44px;
  border: var(--o) solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
}
.deck-knob--b {
  right: calc(8% + 56px);
  background: var(--cyan);
}
.note {
  position: absolute;
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 50px);
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--ink);
  animation: float 3.2s ease-in-out infinite;
}
.note--1 {
  left: -6%;
  top: -8%;
  color: var(--pink);
}
.note--2 {
  right: -4%;
  bottom: 24%;
  color: var(--cyan);
  animation-delay: -1.4s;
}
.deck.is-hop .deck-platter {
  animation: squash 0.22s var(--bounce);
}

/* ── móvil (captura) ───────────────────────────────────── */
.phone {
  justify-self: center;
  width: min(290px, 74vw);
  margin: 0;
  overflow: hidden;
  border: 9px solid var(--ink);
  border-radius: 38px;
  background: var(--ink);
  box-shadow: var(--pop-lg);
  transform: rotate(2deg);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── ediciones ─────────────────────────────────────────── */
.editions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: calc(var(--gap) + 6px) var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.edition {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 12px 16px;
  border: var(--o) solid var(--ink);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--pop);
}
.edition-art {
  position: relative;
  width: 100%;
  margin-bottom: 26px;
}
.edition-art img:first-child {
  display: block;
  width: 100%;
  height: auto;
  border: var(--o) solid var(--ink);
  border-radius: 12px;
  background: var(--tf);
}
.edition-note {
  position: absolute;
  right: -6px;
  bottom: -22px;
  width: 58%;
  height: auto;
  border: 2px solid var(--ink);
  transform: rotate(-5deg);
  box-shadow: 0 3px 0 var(--ink);
}
.edition .theme-code {
  margin-bottom: 2px;
  padding: 0 9px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--tf);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.edition strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.05;
}
.edition > span:not(.theme-code) {
  font-size: 15px;
  line-height: 1.35;
}
.edition .money {
  margin-top: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--lilac);
  font-size: 13px !important;
  font-weight: 900;
}
.note-box {
  max-width: 80ch;
  margin: 36px 0 0;
  padding: 14px 18px;
  border: var(--o) dashed var(--ink);
  border-radius: 14px;
  background: var(--white);
  font-size: 15px;
}

/* ── imprimible ────────────────────────────────────────── */
.print-options {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}
.print-opt {
  padding: 14px 18px;
  border: var(--o) solid var(--ink);
  border-radius: 0; /* la edición imprimible no lleva esquinas redondeadas */
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}
.print-opt h3 {
  margin: 0 0 2px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
}
.print-opt p {
  margin: 0;
  font-size: 16px;
}
.paper-stack {
  position: relative;
  margin: 0;
  border: var(--o-lg) solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.paper-stack::before {
  content: '';
  position: absolute;
  inset: -4px;
  z-index: -1;
  border: var(--o-lg) solid var(--ink);
  background: var(--lilac);
  transform: rotate(4deg) translate(10px, 6px);
}
.paper-stack img,
.paper-stack video {
  display: block;
  width: 100%;
  height: auto;
}
/* reel de ediciones (vídeo en bucle bajo el título) */
.ed-reel {
  margin: 28px 0 34px;
  max-width: 880px;
  overflow: hidden;
  border: var(--o-lg) solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--lilac);
  box-shadow: var(--pop);
  transform: rotate(-0.6deg);
}
.ed-reel video {
  display: block;
  width: 100%;
  height: auto;
}
/* botón de sonido del televisor */
.tv-sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 3px 9px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--pop-sm);
  cursor: pointer;
}
@media (max-width: 599px) {
  /* en móvil solo el icono: el texto queda para lectores de pantalla */
  .tv-sound {
    padding: 6px;
  }
  .tv-sound span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.tv-sound:hover {
  background: var(--yellow);
}
.tv-sound .tv-sound-waves,
.tv-sound[aria-pressed='true'] .tv-sound-x {
  display: none;
}
.tv-sound[aria-pressed='true'] .tv-sound-waves {
  display: inline;
}

/* ── precios ───────────────────────────────────────────── */
.section--flush {
  border-top: 0;
}
.plans {
  display: grid;
  gap: calc(var(--gap) + 8px);
  align-items: start;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 24px;
  border: var(--o-lg) solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 8px 0 var(--ink);
}
.plan--hot {
  background: var(--yellow);
}
.plan h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.05;
}
.plan-flag {
  position: absolute;
  top: -17px;
  right: 18px;
  padding: 3px 12px 2px;
  border: var(--o) solid var(--ink);
  border-radius: 99px;
  background: var(--pink);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(3deg);
  box-shadow: var(--pop-sm);
}
.plan-flag--cyan {
  background: var(--cyan);
  color: var(--ink);
}
.price {
  margin: 12px 0 18px;
  font-weight: 800;
  color: var(--ink-2);
}
.price span {
  margin-right: 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 40px;
  color: var(--ink);
  vertical-align: -4px;
}
.price-alt {
  margin: -10px 0 18px;
  font-weight: 800;
  color: var(--ink-2);
}
.price-save {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 9px 0;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--pink);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-2deg);
}
.plan--hot .soon {
  background: var(--white);
}
.plan-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-2);
}
.plan-text {
  flex: 1;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.45;
}
.plan ul {
  display: grid;
  gap: 9px;
  flex: 1;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.plan li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.4;
}
.plan li::before {
  content: '♪';
  position: absolute;
  left: 2px;
  top: -1px;
  font-weight: 900;
  color: var(--violet);
}
.fine {
  margin: 30px 0 0;
  color: var(--white);
  font-size: 14px;
}

/* ── preguntas ─────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
.faq details {
  border: var(--o) solid var(--ink);
  border-radius: 16px;
  background: var(--lilac);
  box-shadow: var(--pop-sm);
}
.faq details[open] {
  background: var(--white);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  border-radius: 13px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.25s var(--bounce);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0;
  padding: 0 18px 18px;
}

/* ── novedades ─────────────────────────────────────────── */
.news > p {
  margin: 14px 0 0;
  font-size: 18px;
}
.news-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.news-form input[type='email'] {
  min-height: 54px;
  padding: 0 16px;
  border: var(--o) solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  box-shadow: inset 0 3px 0 var(--lilac-2);
}
.news-form input[type='email']::placeholder {
  color: #6d6488;
}
.news-form .btn {
  min-height: 54px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 700;
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--violet);
}
.news-ok {
  margin: 4px 0 0;
  padding: 10px 14px;
  border: var(--o) solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  font-weight: 900;
}

/* ── pie ───────────────────────────────────────────────── */
.footer {
  border-top: var(--o-lg) solid var(--ink);
  background: var(--ink);
  color: var(--lilac);
  padding: 64px 0 calc(32px + var(--safe-b));
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer .wordmark {
  -webkit-text-stroke-color: #000;
  text-shadow: 0 0.08em 0 #000;
}
.footer-small {
  margin: 10px 0 0;
  font-size: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer-nav a {
  padding: 6px 0;
  font-weight: 800;
}
.disclaimer {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.55;
  color: #c9c0e6;
}
.footer + .bunting,
.bunting + .footer {
  margin-bottom: 0;
}

/* ── página de reglas ──────────────────────────────────── */
.rules-hero {
  background:
    radial-gradient(rgba(29, 20, 51, 0.07) 1.6px, transparent 2px) 0 0 / 20px 20px,
    var(--yellow);
  padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 8vw, 88px);
}
.rules-hero-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}
.goal-card {
  position: relative;
  padding: 26px 24px 22px;
  border: var(--o-lg) solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--pop-lg);
  transform: rotate(1.5deg);
}
.goal-icon {
  position: absolute;
  right: 18px;
  top: -30px;
  width: 64px;
  height: 64px;
}
.goal-card h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
}
.goal-card p {
  margin: 0;
}
.page-rules main {
  background: var(--white);
}
.rules-layout {
  display: grid;
  gap: 28px;
  padding-top: 64px;
  padding-bottom: 88px;
}
/* índice: fila de fichas desplazable en móvil, columna fija en escritorio */
.toc {
  min-width: 0;
}
.toc-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.toc ol {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 2px 8px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.toc a {
  display: block;
  padding: 7px 13px 6px;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: var(--lilac);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.toc a:hover,
.toc a.is-active {
  background: var(--yellow);
}
.rules {
  min-width: 0;
}
.ref-card {
  position: relative;
  padding: 24px 22px 20px;
  border: var(--o-lg) solid var(--ink);
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 10px, rgba(29, 20, 51, 0.04) 10px 11px),
    #fffaf0;
  outline: 2px dashed var(--ink-2); /* línea de corte, como la tarjeta impresa */
  outline-offset: 7px;
  margin: 8px;
}
.ref-card h2 {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 14px 2px;
  border: var(--o) solid var(--ink);
  background: var(--pink);
  color: var(--white);
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
  transform: rotate(-1.5deg);
}
.ref-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}
.ref-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 2px dotted rgba(29, 20, 51, 0.3);
}
.ref-card dl > div:last-child {
  border-bottom: 0;
}
.ref-card dt {
  font-weight: 800;
  color: var(--ink-2);
  font-size: 15px;
}
.ref-card dd {
  margin: 0;
  font-weight: 900;
  font-size: 15px;
}
.rule {
  padding-top: 56px;
}
.rule h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
}
.rule-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding-top: 4px;
  border: var(--o) solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 26px;
  box-shadow: var(--pop-sm);
  transform: rotate(-8deg);
}
.rule > p {
  max-width: 68ch;
}
.rule .ticks {
  margin-top: 0;
}
.inline-icon {
  width: 26px;
  height: 26px;
  margin-right: 6px;
  vertical-align: -7px;
}
.diagram {
  margin: 26px 0 0;
  padding: 20px;
  border: var(--o) solid var(--ink);
  border-radius: var(--r);
  background: var(--lilac);
}
.diagram figcaption {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.1;
}
.diagram-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}
.bills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bills li {
  position: relative;
  display: grid;
  place-items: center;
  height: 52px;
  border: 2.5px solid var(--b);
  background: var(--bg);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  color: var(--b);
}
.bills b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
.bills span {
  position: absolute;
  right: -10px;
  top: -12px;
  padding: 0 7px;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}
.flow {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: f;
}
.flow li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: var(--o) solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--pop-sm);
}
.flow svg {
  flex: none;
  width: 44px;
  height: 44px;
}
.two {
  display: grid;
  gap: 16px;
}
.mini-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: var(--o) solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--pop-sm);
}
.mini-card + .mini-card,
.mini-card + .chips-row {
  margin-top: 14px;
}
.two > .mini-card {
  margin-top: 0;
}
.rule > p + .mini-card {
  margin-top: 16px;
}
.mini-card > svg {
  flex: none;
  width: 48px;
  height: 48px;
}
.mini-card p {
  margin: 0;
}
.mini-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
}
.mini-card ul {
  margin: 0;
  padding-left: 18px;
}
.mini-card li + li {
  margin-top: 4px;
}
.mini-card--pink {
  background: #ffe3ef;
}
.mini-card--orange {
  background: #ffe6d5;
}
.mini-card--green {
  background: #dcf6e8;
}
.rule-clip {
  max-width: 520px;
  margin: 22px 0 0;
  overflow: hidden;
  border: var(--o-lg) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--pop);
}
.rule-clip video {
  display: block;
  width: 100%;
  height: auto;
}
.groups {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: var(--o) solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  font-size: 15px;
}
.groups th,
.groups td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 2px solid var(--lilac-2);
}
.groups tbody tr:last-child th,
.groups tbody tr:last-child td {
  border-bottom: 0;
}
.groups thead th {
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.groups td {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}
.swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--g);
  vertical-align: -2px;
}
.ladder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}
.ladder li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  padding: 14px;
  border: var(--o) solid var(--ink);
  border-radius: 14px 14px 4px 4px;
  background: var(--white);
  box-shadow: var(--pop-sm);
}
.ladder svg {
  width: 44px;
  height: 44px;
}
.ladder li > b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.1;
}
.ladder span {
  font-size: 14px;
  line-height: 1.35;
}
.ladder li:nth-child(2) {
  background: #e0f8fd;
}
.ladder li:nth-child(3) {
  background: #dcf6e8;
}
.ladder li:nth-child(4) {
  background: #fff4c7;
}
.supply {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border: var(--o) dashed var(--ink);
  border-radius: 16px;
}
.supply p {
  flex: 1 1 100%;
  margin: 4px 0 0;
}
.supply-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 14px 4px;
  border: var(--o) solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  font-weight: 900;
  box-shadow: var(--pop-sm);
}
.supply-chip b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
}
.supply-chip--top {
  background: var(--pink);
}
.chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.chip {
  padding: 4px 12px 2px;
  border: var(--o) solid var(--ink);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 20px;
  box-shadow: var(--pop-sm);
}
.chip--gain {
  background: var(--green);
}
.chip--loss {
  background: var(--red);
  color: var(--white);
  -webkit-text-stroke: 1px var(--ink);
  paint-order: stroke fill;
}
.chip-arrow {
  font-weight: 900;
  font-size: 22px;
}
.challenges {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.ch-card {
  position: relative;
  overflow: hidden;
  padding: 32px 18px 18px;
  border: var(--o) solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--pop-sm);
}
/* franja de color como pieza aparte: así las esquinas redondeadas no se rompen */
.ch-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  border-bottom: var(--o) solid var(--ink);
  background: var(--c);
}
.ch-card svg {
  width: 48px;
  height: 48px;
}
.ch-card h3 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
}
.ch-card p {
  margin: 0;
  font-size: 16px;
}
.formula {
  display: inline-block;
  margin: 6px 0 0;
  padding: 12px 16px;
  border: var(--o) solid var(--ink);
  background: var(--yellow);
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--ink);
}
.rules-end {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 3px dashed var(--lilac-2);
}

/* ── legal ─────────────────────────────────────────────── */
.legal {
  background: var(--white);
  padding: 56px 0 72px;
}
.legal h2 {
  margin: 44px 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
}
.todo {
  padding: 12px 16px;
  border: var(--o) dashed var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  font-weight: 800;
}

/* ── animación ─────────────────────────────────────────── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes blink-dot {
  50% {
    opacity: 0.2;
  }
}
@keyframes wobble {
  0%,
  100% {
    rotate: 0deg;
    scale: 1;
  }
  20% {
    rotate: -6deg;
    scale: 1.08 0.94;
  }
  40% {
    rotate: 4deg;
    scale: 0.96 1.04;
  }
}
@keyframes squash {
  0%,
  100% {
    transform: scale(1, 1);
  }
  40% {
    transform: translateY(2%) scale(1.06, 0.92);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-14px) rotate(6deg);
  }
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(var(--r0));
  }
  50% {
    transform: rotate(var(--r1));
  }
}
.pop-in {
  opacity: 0;
  translate: 0 24px;
  scale: 0.96 1.04;
}
.pop-in.is-in {
  opacity: 1;
  translate: 0 0;
  scale: 1 1;
  transition:
    opacity 0.35s ease-out,
    translate 0.55s var(--bounce),
    scale 0.55s var(--bounce);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .pop-in {
    opacity: 1;
    translate: none;
    scale: none;
  }
}

/* ── pantallas más anchas ──────────────────────────────── */
@media (min-width: 480px) {
  .topbar-brand .wordmark {
    display: inline;
  }
}
@media (min-width: 600px) {
  .news-form {
    grid-template-columns: 1fr auto;
  }
  .consent {
    grid-column: 1 / -1;
  }
  .quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two,
  .challenges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ladder {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end; /* escalera: cada nivel un poco más alto */
  }
  .ladder li {
    min-height: calc(130px + var(--h) * 14px);
  }
}
@media (min-width: 720px) {
  .clips {
    columns: 2;
  }
  .ref-card dl {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
  .ref-card dl > div:nth-last-child(2) {
    border-bottom: 0;
  }
}
@media (min-width: 960px) {
  .topbar-nav {
    display: flex;
  }
  .topbar {
    gap: 14px;
    padding-left: calc(24px + var(--safe-l));
    padding-right: calc(24px + var(--safe-r));
  }
  .hero-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
  }
  .hero .wordmark--xl {
    font-size: clamp(54px, 5.6vw, 76px);
  }
  .tv {
    margin-top: 56px;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--flip .split-copy {
    order: 2;
  }
  .clips {
    columns: 3;
  }
  .quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plan--hot {
    transform: translateY(-14px) rotate(-1deg);
  }
  .print-options {
    grid-template-columns: 1fr;
  }
  .rules-hero-inner {
    grid-template-columns: 1.3fr 1fr;
  }
  .rules-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 48px;
  }
  .toc {
    position: sticky;
    top: 92px;
    align-self: start;
    padding-top: 6px;
  }
  .toc ol {
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    padding: 0;
  }
  .toc a {
    white-space: normal;
  }
  .challenges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .topbar-nav a {
    padding: 8px 14px;
  }
}

/* ── novedades del juego (La Banca, subastas, deudas, tratos, mesa) ─────── */
.section--dots {
  background:
    radial-gradient(rgba(107, 61, 240, 0.13) 1.6px, transparent 2px) 0 0 / 20px 20px,
    var(--lilac);
}
.kicker--new {
  background: var(--pink);
  color: var(--white);
}
.ticks--tight {
  margin: 16px 0 0;
  gap: 9px;
  font-size: 16px;
}
.feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 3px 14px 2px 6px;
  border: var(--o) solid var(--ink);
  border-radius: 99px;
  background: var(--c);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--pop-sm);
}
.feat-tag svg {
  width: 26px;
  height: 26px;
}
.bank-feature h3,
.table-feature h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.05;
  text-wrap: balance;
}
.bank-feature p,
.table-feature p {
  margin: 0;
  max-width: 54ch;
}
.bank-feature,
.table-feature {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
  padding: clamp(20px, 3.4vw, 36px);
  border: var(--o-lg) solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--pop-lg);
}
.bank-feature {
  background:
    repeating-linear-gradient(135deg, rgba(49, 210, 127, 0.1) 0 14px, transparent 14px 28px),
    var(--white);
}
.feat-shot {
  margin: 0;
  overflow: hidden;
  border: var(--o-lg) solid var(--ink);
  border-radius: var(--r);
  background: var(--violet-deep);
  box-shadow: var(--pop);
}
.feat-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.feat-shot--tilt {
  transform: rotate(1.2deg);
}
.feats {
  display: grid;
  gap: calc(var(--gap) + 8px) var(--gap);
  margin: clamp(36px, 5vw, 56px) 0;
  padding: 0;
  list-style: none;
}
.feat h3 {
  margin: 18px 0 6px;
  font-size: 1em;
  font-weight: 400;
}
.feat .clip-title {
  background: var(--c);
}
.feat p {
  margin: 0;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1.5;
}
.feat .feat-shot {
  aspect-ratio: 5 / 3;
  transition: transform 0.25s var(--bounce);
}
.feat .feat-shot img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.feat:nth-child(odd) .feat-shot {
  transform: rotate(-0.8deg);
}
.feat:nth-child(even) .feat-shot {
  transform: rotate(0.8deg);
}
.feat:hover .feat-shot {
  transform: rotate(0) translateY(-3px);
}
/* lo último: bucles de vídeo (16:9) y la caja de reglas nuevas */
.feats--lead {
  margin-top: 0;
}
.feat .feat-shot--video {
  aspect-ratio: 16 / 9;
}
.feat-shot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rules-new {
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: clamp(20px, 3.2vw, 32px);
  border: var(--o-lg) solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--pop-lg);
}
.rules-new h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.05;
}
.rules-new .ticks {
  margin-bottom: 0;
}
@media (min-width: 860px) {
  .rules-new .ticks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 36px;
  }
}
.streaks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.streak {
  padding: 3px 12px 2px;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  box-shadow: var(--pop-sm);
}
.streak--rich {
  background: linear-gradient(180deg, #ffe680, #f5b700);
}
.streak--hot {
  background: #ffb27a;
}
.streak--cold {
  background: #c9d3e6;
}
.streak--danger {
  background: repeating-linear-gradient(135deg, #ffd43b 0 8px, #ffb4bc 8px 16px);
}
.streak--comeback {
  background: #9ff0c4;
}
.jail-note {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 760px;
  margin: clamp(30px, 4vw, 44px) auto 0;
  padding: 14px 20px;
  border: var(--o) dashed var(--ink);
  border-radius: 16px;
  background: var(--white);
  font-size: 16px;
}
.jail-note svg {
  flex: none;
  width: 44px;
  height: 44px;
}
.rule-sub {
  margin: 26px 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
}
.rule .two + .mini-card,
.rule .two + .hint {
  margin-top: 14px;
}
.rule .mini-card + .two,
.rule > p + .two {
  margin-top: 16px;
}
.rule .two + p {
  margin-top: 16px;
}
@media (min-width: 720px) {
  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .bank-feature {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
  .table-feature {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .feat .feat-shot,
  .feat-shot--tilt {
    transform: none;
  }
}
/* seis enlaces en la barra: entre 960 y 1199 px se aprietan un poco y el botón no parte la línea */
.topbar-cta {
  white-space: nowrap;
}
@media (min-width: 960px) and (max-width: 1199px) {
  .topbar-nav a {
    padding: 8px 7px;
    font-size: 15px;
  }
}

/* ── Cartas Secretas (reglas v2.0): novedad de la portada y sección del reglamento ─────── */
.secret-feature {
  --secret: #8f5bff;
  --secret-tint: #ece2ff;
  display: grid;
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: clamp(20px, 3.4vw, 36px);
  border: var(--o-lg) solid var(--ink);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(143, 91, 255, 0.11) 0 14px, transparent 14px 28px),
    var(--white);
  box-shadow: var(--pop-lg);
  scroll-margin-top: 90px;
}
.secret-feature h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.05;
  text-wrap: balance;
}
.secret-feature-copy > p {
  margin: 0;
  max-width: 54ch;
}
.secret-feature .feat-tag {
  margin-bottom: 16px;
}
.secret-feature-copy > .secret-cta {
  margin-top: 20px;
}
.secret-side {
  min-width: 0;
}
/* abanico de tres naipes: dos dorsos y una carta boca arriba */
.secret-art {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 0 44px;
}
.s-card {
  position: relative;
  flex: none;
  width: clamp(98px, 27vw, 186px);
  aspect-ratio: 57 / 89;
  border: var(--o-lg) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--pop);
}
.s-card + .s-card {
  margin-left: clamp(-44px, -7vw, -26px);
}
.s-card:nth-child(1) {
  transform: rotate(-11deg) translateY(12px);
}
.s-card:nth-child(2) {
  transform: rotate(-2deg);
}
.s-card:nth-child(3) {
  transform: rotate(9deg) translateY(6px);
}
.s-card--back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.4vw, 16px);
  background: var(--secret);
}
.s-card--back::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}
.s-disc {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(62px, 17vw, 118px);
  height: clamp(62px, 17vw, 118px);
  border: var(--o) solid var(--ink);
  border-radius: 50%;
  background: var(--secret-tint);
}
.s-disc svg {
  width: 74%;
  height: 74%;
}
.s-word {
  padding: 3px 10px 0;
  border: var(--o) solid var(--ink);
  border-radius: 99px;
  background: var(--yellow);
  font-family: var(--display);
  font-size: clamp(11px, 2.6vw, 15px);
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.s-card--front {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}
.s-head {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px 4px;
  border-bottom: var(--o) solid var(--ink);
  background: var(--secret);
  color: var(--white);
  font-size: clamp(9px, 2.2vw, 12px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.s-head svg {
  flex: none;
  width: clamp(16px, 4vw, 22px);
  height: clamp(16px, 4vw, 22px);
}
.s-title {
  padding: 9px 9px 0;
  font-family: var(--display);
  font-size: clamp(15px, 3.6vw, 22px);
  line-height: 1;
}
.s-text {
  padding: 5px 9px 0;
  font-size: clamp(9.5px, 2.3vw, 12.5px);
  font-weight: 700;
  line-height: 1.25;
}
.s-foot {
  display: grid;
  place-items: center;
  margin-top: auto;
  padding-bottom: 9%;
}
.s-foot svg {
  width: 38%;
  aspect-ratio: 1;
  height: auto;
}
.secret-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.secret-facts li {
  padding: 5px 14px 3px;
  border: var(--o) solid var(--ink);
  border-radius: 99px;
  background: var(--white);
  font-size: 14px;
  font-weight: 900;
  box-shadow: var(--pop-sm);
}
.secret-facts li:nth-child(1) {
  background: #c9b3ff;
}
.secret-facts li:nth-child(2) {
  background: var(--yellow);
}
@media (min-width: 960px) {
  .secret-feature {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .s-card {
    transition: transform 0.25s var(--bounce);
  }
  .secret-art:hover .s-card:nth-child(3) {
    transform: rotate(5deg) translateY(-6px);
  }
}

/* reglamento: pasos numerados y mazo de Secretas */
.rule {
  scroll-margin-top: 80px;
}
.mini-card--violet {
  background: #ece2ff;
}
.nsteps {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: nstep;
}
.nsteps li {
  position: relative;
  min-height: 30px;
  padding-left: 42px;
  counter-increment: nstep;
}
.nsteps li::before {
  content: counter(nstep);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding-top: 2px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: #c9b3ff;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1;
}
.secret-deck {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.sd {
  --c: var(--pink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--o) solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--pop-sm);
}
.sd--self {
  --c: var(--green);
}
.sd--reply {
  --c: var(--yellow);
}
.sd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px 5px;
  border-bottom: var(--o) solid var(--ink);
  background: var(--c);
}
.sd-head h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.1;
}
.sd-n {
  flex: none;
  padding: 2px 8px 0;
  border: 2.5px solid var(--ink);
  border-radius: 99px;
  background: var(--white);
  font-size: 13px;
  font-weight: 900;
}
.sd > p {
  margin: 0;
  padding: 10px 12px 0;
  font-size: 15px;
  line-height: 1.45;
}
.sd > .sd-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: auto;
  padding: 10px 12px 12px;
  font-size: 13px;
}
.sd-tag {
  padding: 1px 9px 0;
  border: 2px solid var(--ink);
  border-radius: 99px;
  background: var(--c);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11.5px;
}
.sd-pick {
  font-weight: 800;
  opacity: 0.85;
}
@media (min-width: 640px) {
  .secret-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
