/* GENERADO POR app/js/build-css.mjs DESDE css/store.css. NO EDITAR A MANO.
   Respaldos rgb() de cada oklch() y top/right/bottom/left de cada inset
   para navegadores de TV con motores viejos. */
/* Tienda feudroom.com: sala de cine clásica (telón, oro, marquesina).
   Dirección aprobada por Kevin el 4 nov 2026 sobre las maquetas de
   .ui-direcciones/ia/ronda2/. Colores en hex a propósito: así no hace falta
   el paso de build-css.mjs para navegadores de TV viejos.

   Fuentes self-hosted (SIL OFL, licencias en assets/fonts/):
   Albert Sans en toda la página, palo seco a pedido de Kevin (4 nov 2026). */

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/albert-sans-latin-600-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/albert-sans-latin-ext-600-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Terciopelo */
  --velvet-950: #1c070a;
  --velvet-900: #2a0b10;
  --velvet-800: #3d0f16;
  --velvet-700: #5e1219;
  --velvet-500: #8f1c24;
  --velvet-300: #b8323a;

  /* Oro */
  --gold-900: #5a3d10;
  --gold-700: #a5782a;
  --gold-500: #d4a64a;
  --gold-300: #f0d28a;
  --gold-100: #fbeec8;

  /* Panel retroiluminado y tinta */
  --cream: #f8eed8;
  --cream-dim: #ecdcb8;
  --cream-deep: #dcc597;
  --ink: #2a1610;
  --ink-soft: #5c4232;

  /* Rojo de botón y azul del tablero */
  --red: #b3202a;
  --red-hi: #cc2c35;
  --red-lo: #7d141b;
  --navy: #13254a;
  --navy-hi: #1d3466;
  --ok: #2f7a4a;

  --font-display: "Albert Sans", "Trebuchet MS", sans-serif;
  --font-text: "Albert Sans", "Trebuchet MS", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Ritmo de espaciado, de 4 a 96 px (1:24) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 14px;
  --sp-4: 24px;
  --sp-5: 40px;
  --sp-6: 64px;
  --sp-7: 96px;

  --radio: 4px;
  --page: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 0px;
}

* { box-sizing: border-box; }

/* El menú fijo (60px, 52px en el celular) no tapa los títulos al saltar a una sección. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 76px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--cream);
  background-color: var(--velvet-900);
  background-image:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(184, 50, 58, 0.32), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(28, 7, 10, 0.9), transparent 70%),
    repeating-linear-gradient(90deg, rgba(20, 3, 6, 0.28) 0 3px, transparent 3px 38px, rgba(255, 210, 200, 0.03) 38px 52px, transparent 52px 84px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grano de película para que el terciopelo no quede plano. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold-300); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

a { color: inherit; text-underline-offset: 3px; }

.num { font-variant-numeric: tabular-nums lining-nums; }

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radio);
  font-weight: 700;
}
.skip:focus { top: 12px; }

main, .stage, .foot { position: relative; z-index: 1; }

/* ------------------------------------------------------------- entrada */

.rise { animation: rise 260ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 60ms); }
.card.rise { animation-delay: calc(360ms + var(--i, 0) * 30ms); }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radio);
  font: 700 16px/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { cursor: default; opacity: 0.6; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 18px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }

.btn-red {
  color: var(--gold-100);
  background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, var(--red-lo));
  box-shadow: inset 0 1px 0 rgba(255, 200, 180, 0.35), inset 0 0 0 1px rgba(90, 10, 15, 0.6), 0 6px 14px -6px rgba(60, 5, 10, 0.7);
}
.btn-red:hover { background: linear-gradient(180deg, #d93a42, var(--red-hi) 55%, var(--red)); }

.btn-gold {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500) 60%, var(--gold-700));
  box-shadow: inset 0 1px 0 rgba(255, 250, 225, 0.7), inset 0 0 0 1px rgba(90, 61, 16, 0.5), 0 6px 14px -6px rgba(40, 20, 0, 0.6);
}
.btn-gold:hover { background: linear-gradient(180deg, var(--gold-100), var(--gold-300) 60%, var(--gold-500)); }

.btn-ink {
  color: var(--gold-100);
  background: var(--ink);
}
.btn-ink:hover { background: var(--velvet-700); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 15px/1 var(--font-text);
  text-decoration: underline;
  text-decoration-color: rgba(42, 22, 16, 0.3);
  text-underline-offset: 4px;
  cursor: pointer;
}
.btn-text:hover { text-decoration-color: currentColor; color: var(--red); }
.btn-text .ico { width: 18px; height: 18px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(240, 210, 138, 0.35);
  border-radius: var(--radio);
  background: rgba(28, 7, 10, 0.4);
  color: var(--gold-100);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.icon-btn:hover { background: rgba(240, 210, 138, 0.16); }
.icon-btn:active { transform: scale(0.94); }

/* ------------------------------------------------------- barra del premio */

.prize-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;
  padding: 6px var(--gutter);
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500) 70%, var(--gold-700));
  box-shadow: 0 1px 0 rgba(255, 250, 225, 0.6) inset, 0 8px 18px -10px rgba(10, 0, 0, 0.8);
  animation: bar-in 260ms var(--ease-out) both;
}
.prize-bar[hidden] { display: none; }
.prize-bar-text { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; font-weight: 600; }
.prize-bar-text .ico { width: 22px; height: 22px; }
.prize-bar b { font-weight: 800; }
.prize-bar .timer {
  display: inline-block;
  min-width: 4.2ch;
  padding: 2px 8px;
  border-radius: var(--radio);
  background: var(--velvet-700);
  color: var(--gold-100);
  font-weight: 800;
  text-align: center;
}
@keyframes bar-in { from { transform: translateY(-100%); } to { transform: none; } }

/* ------------------------------------------------------------- escenario */

.stage {
  padding: 34px var(--gutter) 0;
  overflow: hidden;
}

/* Bambalina festoneada arriba */
.valance {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  inset: 0 0 auto;
  height: 30px;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 0, var(--velvet-500) 0 21px, var(--gold-500) 21.5px 24px, transparent 24.5px) 0 0 / 52px 26px repeat-x,
    linear-gradient(180deg, var(--velvet-700), var(--velvet-500));
  background-size: 52px 26px, 100% 6px;
  background-repeat: repeat-x, no-repeat;
  filter: drop-shadow(0 4px 4px rgba(10, 0, 0, 0.45));
}

.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(48px, 8vw, 132px);
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 190, 170, 0.08), transparent 30%, rgba(10, 0, 0, 0.4)),
    repeating-linear-gradient(90deg, #4a0d13 0, #7a161e 9px, #a8262e 16px, #7a161e 23px, #3d0a10 32px);
  box-shadow: 0 0 30px rgba(10, 0, 0, 0.6);
}
.curtain-l { left: 0; border-bottom-right-radius: 100% 22%; }
.curtain-r { right: 0; border-bottom-left-radius: 100% 22%; }

/* Cordón dorado que recoge el telón */
.curtain::after {
  content: "";
  position: absolute;
  top: 64%;
  width: 70%;
  height: 7px;
  border-radius: 4px;
  background: repeating-linear-gradient(60deg, var(--gold-700) 0 4px, var(--gold-300) 4px 7px);
  box-shadow: 0 2px 4px rgba(10, 0, 0, 0.5);
}
.curtain-l::after { right: 0; }
.curtain-r::after { left: 0; }

/* ------------------------------------------------------------- cabecera */

.head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-4);
  /* El contenido no se mete bajo el telón */
  max-width: min(1180px, calc(100vw - 2 * clamp(48px, 8vw, 132px) - 24px));
  margin: 0 auto;
}

.brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-decoration: none;
}
.brand-logo {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(10, 0, 0, 0.55));
  transition: transform 220ms var(--ease-out);
}
.brand:hover .brand-logo { transform: rotate(-2deg) scale(1.03); }
.brand-tag {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--gold-100);
  white-space: nowrap;
}

.head-center {
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 0;
}

.topnav {
  display: flex;
  align-items: stretch;
  gap: 10px;
  position: relative;
  z-index: 2;
  margin-bottom: -2px;
}
.topnav-plate {
  display: flex;
  margin: 0;
  padding: 0 6px;
  list-style: none;
  border-radius: var(--radio) var(--radio) 0 0;
  background: linear-gradient(180deg, var(--cream), var(--cream-dim));
  box-shadow: inset 0 0 0 2px var(--gold-500), inset 0 0 0 4px var(--gold-900), 0 -4px 12px rgba(10, 0, 0, 0.35);
}
.topnav-plate li + li { border-left: 1px solid rgba(92, 66, 50, 0.3); }
.topnav-plate a {
  display: block;
  padding: 11px 18px;
  color: var(--velvet-700);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}
.topnav-plate a:hover { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radio) var(--radio) 0 0;
  background: linear-gradient(180deg, var(--cream), var(--cream-dim));
  box-shadow: inset 0 0 0 2px var(--gold-500), inset 0 0 0 4px var(--gold-900);
  color: var(--velvet-700);
  font: 800 17px/1 var(--font-text);
  cursor: pointer;
}
.cart-btn .ico { width: 24px; height: 24px; }
.cart-btn:hover { color: var(--red); }
.cart-count {
  min-width: 1.4em;
  padding: 3px 5px;
  border-radius: 3px;
  background: var(--velvet-700);
  color: var(--gold-100);
  font-size: 14px;
  text-align: center;
}
.cart-btn.bump .cart-count, .dock-cart.bump .dock-n, .buybar-cart.bump { animation: bump 320ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.22); } }

/* Marquesina */
.sign {
  position: relative;
  display: block;
  width: min(100%, 660px);
  min-width: 0;
  padding: 22px;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(180deg, #a3242c, var(--velvet-500) 40%, var(--velvet-700));
  box-shadow:
    inset 0 0 0 2px var(--gold-300),
    inset 0 0 0 5px var(--gold-900),
    inset 0 0 0 7px var(--gold-500),
    0 18px 36px -12px rgba(10, 0, 0, 0.75),
    0 0 60px rgba(240, 180, 90, 0.18);
}
.sign-bulbs { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; pointer-events: none; }
.sign-panel {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 132px;
  padding: 16px 22px 18px;
  border-radius: 3px;
  overflow: hidden;
  text-align: center;
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(92, 66, 50, 0.13) 31px 32px),
    radial-gradient(ellipse 80% 90% at 50% 45%, #fffaf0, var(--cream) 55%, var(--cream-dim));
  box-shadow: inset 0 0 0 2px rgba(90, 61, 16, 0.55), inset 0 6px 14px rgba(90, 50, 20, 0.25);
}
/* Luz que respira detrás del panel */
.sign-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(255, 236, 190, 0.55), transparent 70%);
  animation: breathe 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe { 50% { opacity: 0.35; } }

.sign-kicker {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  color: var(--red);
}
.sign-title {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 800;
  font-size: 46px;
  line-height: 1.08;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 3px 6px rgba(120, 60, 20, 0.25);
  white-space: nowrap;
  perspective: 600px;
}
.sign:hover .sign-title { color: var(--velvet-700); }

/* Letras que se voltean al cambiar de juego */
.flip { display: inline-block; white-space: pre; transform-origin: 50% 60%; backface-visibility: hidden; }
.flip.out { animation: flip-out 180ms var(--ease-move) both; animation-delay: calc(var(--k) * 14ms); }
.flip.in { animation: flip-in 240ms var(--ease-out) both; animation-delay: calc(var(--k) * 22ms); }
@keyframes flip-out { to { transform: rotateX(90deg); opacity: 0; } }
@keyframes flip-in { from { transform: rotateX(-90deg); opacity: 0; } }

/* Bombillas: las coloca store.js sobre el aro de la marquesina */
.bulb {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d8, #e8b860 55%, #9a6a20);
  box-shadow: 0 0 0 1.5px rgba(60, 20, 5, 0.55);
}
.bulb::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -7px;
  bottom: -7px;
  left: -7px;
  inset: -7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 190, 0.95) 0 22%, rgba(255, 200, 100, 0.45) 40%, transparent 70%);
  animation: chase 1.8s steps(1, end) infinite;
  animation-delay: calc(var(--k) * -0.6s);
}
@keyframes chase {
  0% { opacity: 1; }
  33.3% { opacity: 0.12; }
}

/* Botón boleto */
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 12px;
  padding: 20px 28px 20px 24px;
  border: 0;
  color: var(--gold-100);
  cursor: pointer;
  background: linear-gradient(170deg, var(--red-hi), var(--red) 50%, var(--red-lo));
  filter: drop-shadow(0 12px 16px rgba(10, 0, 0, 0.55));
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  transition: transform 200ms var(--ease-out);
  overflow: hidden;
}
.ticket::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 16px;
  bottom: 7px;
  left: 16px;
  inset: 7px 16px;
  border: 1.5px dashed rgba(240, 210, 138, 0.75);
  border-radius: 3px;
  pointer-events: none;
}
/* Destello que barre el boleto cada pocos segundos */
.ticket::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 240, 200, 0.28) 50%, transparent 65%);
  transform: translateX(-110%);
  animation: sweep 6.5s var(--ease-move) infinite 2s;
  pointer-events: none;
}
@keyframes sweep { 0%, 70% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
.ticket:hover { transform: translateY(-2px) rotate(-1.5deg); }
.ticket:active { transform: scale(0.97); }
.ticket-wheel svg {
  display: block;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 1.4;
  animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.ticket-text {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 800;
  font-size: 25px;
  line-height: 1.05;
  text-align: left;
  text-shadow: 0 2px 0 rgba(60, 5, 10, 0.6);
}
.ticket-text span { display: block; }
.ticket-text { white-space: nowrap; }

/* Franja dorada de la escalera */

/* ------------------------------------------------------------- catálogo */

.games { max-width: var(--page); margin: 0 auto; padding: var(--sp-5) var(--gutter) 0; }


.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(240, 210, 138, 0.4);
  border-radius: var(--radio);
  background: rgba(28, 7, 10, 0.45);
  color: var(--cream);
  font: 700 15px/1 var(--font-text);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.chip .ico { width: 18px; height: 18px; }
.chip .num { color: var(--gold-300); font-weight: 600; }
.chip:hover { background: rgba(240, 210, 138, 0.14); }
.chip[aria-pressed="true"] { background: var(--gold-300); color: var(--ink); border-color: var(--gold-300); }
.chip[aria-pressed="true"] .num { color: var(--velvet-700); }

.group { margin-top: var(--sp-5); }
.group[hidden] { display: none; }
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: var(--gold-100);
}
.group-title .ico { width: 28px; height: 28px; color: var(--gold-300); }
.group-count { font-family: var(--font-text); font-size: 15px; font-weight: 600; color: var(--gold-300); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 30px;
}

/* Tarjeta: marco dorado, televisor con el canal al aire y ficha crema.
   Cada juego trae su acento de canal en --ch (fondo del rótulo), --ch-ink
   (tinta sobre el rótulo) y --ch-hi (acento sobre la franja oscura). */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 9px;
  border-radius: var(--radio);
  background: linear-gradient(145deg, #f6dc98, var(--gold-700) 28%, var(--gold-300) 50%, #8a6420 76%, #e6c070);
  box-shadow: 0 22px 34px -16px rgba(10, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 245, 210, 0.6);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
  scroll-margin-top: calc(var(--bar-h) + 24px);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 28px 40px -16px rgba(10, 0, 0, 0.85), 0 0 34px rgba(240, 190, 100, 0.18), inset 0 0 0 1px rgba(255, 245, 210, 0.6); }
.card.picked { animation: picked 1.6s var(--ease-out) 2; }
@keyframes picked { 50% { box-shadow: 0 0 0 4px var(--gold-300), 0 0 50px rgba(240, 200, 120, 0.6); } }

/* Bisel oscuro del televisor alrededor de la pantalla */
.chan {
  padding: 7px;
  background: linear-gradient(180deg, #2e1c15, #170d0a);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 170, 0.16);
}
.chan-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px / 16px;
  background: linear-gradient(140deg, var(--occ), var(--occ2));
  container-type: inline-size;
  isolation: isolate;
}
.cover-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  transition: transform 600ms var(--ease-out);
}
.card:hover .cover-img { transform: scale(1.06); }
.cover-fallback {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 0 10% 22%;
  text-align: center;
  font-weight: 800;
  font-size: 30px;
  font-size: 7cqw;
  line-height: 1.05;
  color: var(--gold-100);
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 230, 170, 0.22), transparent 70%),
    repeating-conic-gradient(from 0deg at 50% 120%, rgba(255, 240, 200, 0.06) 0 6deg, transparent 6deg 12deg);
}
.cover-fallback .ico { width: 30px; height: 30px; color: var(--gold-300); }

/* Viñeta del tubo y sombra baja para que el rótulo se lea sobre cualquier foto */
.chan-screen::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 120% 95% at 50% 42%, transparent 58%, rgba(12, 5, 3, 0.5) 100%),
    linear-gradient(0deg, rgba(14, 6, 4, 0.66), rgba(14, 6, 4, 0.2) 36%, transparent 58%);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 210, 0.14);
}

/* Al pasar el mouse: líneas de barrido, una banda que baja y el parpadeo del cambio de canal */
.chan-fx {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 248, 235, 0.08) 0 1px, transparent 1px 3px);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.chan-fx::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -34%;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(255, 250, 235, 0.16) 60%, transparent);
  opacity: 0;
}
.chan-fx::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -20%;
  bottom: -20%;
  left: -20%;
  inset: -20%;
  opacity: 0;
  background-color: rgba(220, 230, 255, 0.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.card:hover .chan-fx, .card:focus-within .chan-fx { opacity: 1; }
.card:hover .chan-fx::before { animation: roll 1100ms var(--ease-move) 140ms both; }
.card:hover .chan-fx::after { animation: zap 240ms steps(3, end) both; }
@keyframes roll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(400%); } }
@keyframes zap {
  0% { opacity: 0.7; transform: translate(0, 0); }
  35% { opacity: 0.25; transform: translate(-4%, 3%); }
  70% { opacity: 0.5; transform: translate(3%, -2%); }
  100% { opacity: 0; transform: translate(0, 0); }
}

/* Píldora "On air" con su punto rojo que late */
.chan-air {
  position: absolute;
  z-index: 4;
  top: 4.4cqw;
  left: 4.4cqw;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 8px;
  border-radius: 3px;
  background: rgba(22, 9, 6, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 245, 230, 0.2);
  color: #fff3ea;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chan-air i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2463b;
  box-shadow: 0 0 6px rgba(242, 70, 59, 0.9);
  animation: onair 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.37s);
}
@keyframes onair { 50% { opacity: 0.3; transform: scale(0.8); } }

/* Bug del canal: el logo chico y el número, semitransparentes, arriba a la derecha */
.chan-bug {
  position: absolute;
  z-index: 4;
  top: 3.4cqw;
  right: 3.6cqw;
  display: grid;
  justify-items: center;
  gap: 1px;
  opacity: 0.8;
}
.chan-bug img { display: block; width: 40px; width: clamp(30px, 10.5cqw, 46px); height: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)); }
.chan-bug b { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; color: #fff6ea; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }

/* Rótulo inferior de noticiero: nombre del juego y ticker con la pregunta vitrina */
.lower {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 5cqw;
  display: grid;
  justify-items: start;
  width: 94%;
}
.lower .card-title {
  margin: 0;
  padding: 1.7cqw 7cqw 1.5cqw 4.4cqw;
  font-size: 21px;
  font-size: clamp(17px, 6.3cqw, 27px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ch-ink);
  background: var(--ch);
  clip-path: polygon(0 0, 100% 0, calc(100% - 3cqw) 100%, 0 100%);
  text-wrap: balance;
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.card:hover .lower .card-title { transform: translateX(1.2cqw); }
/* La pregunta va completa, en dos líneas como máximo: es lo que vende el juego. */
.ticker {
  width: 100%;
  margin: 0;
  padding: 1.3cqw 4.4cqw 1.4cqw;
  font-size: 13px;
  font-size: clamp(12px, 3.5cqw, 14px);
  font-weight: 600;
  line-height: 1.3;
  color: #f7ecdc;
  background: rgba(17, 9, 7, 0.86);
  box-shadow: inset 3px 0 0 var(--ch);
  text-wrap: pretty;
}
.ticker b { font-weight: 800; color: var(--ch-hi); white-space: nowrap; }

/* Toda la pantalla abre la demo; el sello "Watch it play" aparece al pasar el mouse */
.chan-hit {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding-bottom: 18%;
  text-decoration: none;
  cursor: pointer;
}
.chan-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radio);
  background: rgba(248, 238, 216, 0.95);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--gold-500), 0 12px 24px -8px rgba(10, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out);
}
.chan-play .ico { width: 22px; height: 22px; color: var(--red); }
.chan-play small { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.card:hover .chan-play { opacity: 1; transform: none; }
.chan-hit:active .chan-play { transform: scale(0.97); }

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 10px;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, #fffaf0, transparent 70%),
    linear-gradient(180deg, var(--cream), var(--cream-dim));
}
.card-blurb { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-soft); text-wrap: pretty; }
.card-meta { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 14px; font-weight: 700; color: var(--velvet-700); }
.card-meta .ico { width: 18px; height: 18px; }

.card-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}
.price { display: grid; margin: 0; line-height: 1; }
.price-now { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.price-was { font-size: 15px; font-weight: 600; color: var(--ink-soft); text-decoration-thickness: 1.5px; }
.price.has-prize .price-now { color: var(--red); }
.price-tag { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--red-lo); }
.card-buy .btn { min-height: 44px; padding: 0 16px; }
.btn-add.is-in {
  color: var(--ok);
  background: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--ok);
}
.btn-add.is-in:hover { background: #fffaf0; }

.card-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(92, 66, 50, 0.16);
}
.card-links .btn-text { font-size: 14px; min-height: 36px; }
.card-links .btn-remove { margin-left: auto; color: var(--ink-soft); }
.btn-remove[hidden] { display: none; }

/* ------------------------------------------------------------- cómo se juega */

.how, .bought {
  max-width: var(--page);
  margin: var(--sp-7) auto 0;
  padding: 0 var(--gutter);
}
.sec-title {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 800;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.1;
  color: var(--gold-300);
}
.how-steps {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radio);
  background: linear-gradient(180deg, var(--cream), var(--cream-dim));
  color: var(--ink);
  box-shadow: 0 0 0 2px var(--gold-500), 0 0 0 5px var(--gold-900), 0 20px 30px -16px rgba(10, 0, 0, 0.8);
}
.how-steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 6px 14px;
  padding: var(--sp-4) var(--sp-4) var(--sp-4);
}
.how-steps li + li { border-left: 1px solid rgba(92, 66, 50, 0.2); }
.how-ico {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--red-hi), var(--red-lo));
  color: var(--gold-100);
  box-shadow: 0 0 0 3px var(--gold-500);
}
.how-ico .ico { width: 28px; height: 28px; }
.how-n {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: rgba(143, 28, 36, 0.16);
}
.how-steps b { font-size: 19px; line-height: 1.25; padding-right: 30px; }
.how-steps li > span:last-child { color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.addr { font-weight: 800; color: var(--velvet-700); white-space: nowrap; }

.bought {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: var(--sp-5);
  align-items: start;
}
.bought-text p { margin: 0; color: var(--cream-dim); max-width: 46ch; }
.bought-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bought-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(240, 210, 138, 0.25);
  border-radius: var(--radio);
  background: rgba(28, 7, 10, 0.45);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.bought-list a .ico { width: 18px; height: 18px; color: var(--gold-300); }
.bought-list a:hover { background: rgba(240, 210, 138, 0.14); border-color: var(--gold-500); }

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  max-width: var(--page);
  margin: var(--sp-7) auto 0;
  padding: var(--sp-5) var(--gutter) var(--sp-6);
  border-top: 1px solid rgba(240, 210, 138, 0.18);
  color: var(--cream-dim);
  font-size: 14px;
  text-align: center;
}
.foot img { width: 56px; height: auto; opacity: 0.9; }
.foot p { margin: 0; }

/* ------------------------------------------------- pestaña de la ruleta */

.spin-tab {
  position: fixed;
  right: 0;
  top: 46%;
  z-index: 30;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 9px 16px 10px;
  border: 0;
  border-radius: var(--radio) 0 0 var(--radio);
  color: var(--gold-100);
  cursor: pointer;
  background: linear-gradient(90deg, var(--red-hi), var(--red) 60%, var(--red-lo));
  box-shadow: inset 0 0 0 1.5px var(--gold-500), -6px 8px 18px -6px rgba(10, 0, 0, 0.7);
  animation: tab-in 280ms var(--ease-out) both;
  transition: transform 180ms var(--ease-out);
}
.spin-tab[hidden] { display: none; }
.spin-tab:hover { transform: translateX(-3px); }
.spin-tab-wheel { width: 34px; height: 34px; animation: spin-slow 9s linear infinite; }
.spin-tab-text { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 800; font-size: 18px; line-height: 1; }
.spin-tab-timer { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; font-size: 16px; }
.spin-tab.has-prize { background: linear-gradient(90deg, var(--gold-300), var(--gold-500) 60%, var(--gold-700)); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold-900), -6px 8px 18px -6px rgba(10, 0, 0, 0.7); }
@keyframes tab-in { from { transform: translateX(100%); } }


.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 70;
  max-width: min(92vw, 460px);
  padding: 12px 16px;
  border-radius: var(--radio);
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--gold-500), 0 16px 26px -10px rgba(10, 0, 0, 0.8);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------- diálogos */

dialog { padding: 0; border: 0; color: inherit; background: none; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 4, 7, 0.72); opacity: 0; transition: opacity 220ms var(--ease-out); }
dialog.is-open::backdrop { opacity: 1; }
body.has-dialog { overflow: hidden; }

/* Carrito: panel lateral */
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-head h2 { margin: 0; font-family: var(--font-display);
  letter-spacing: -0.015em; font-weight: 800; font-size: 32px; line-height: 1; color: var(--velvet-700); }
.cart-tools { display: flex; gap: 8px; }

.ladder { padding-bottom: 14px; border-bottom: 1px solid rgba(92, 66, 50, 0.2); }
.ladder-steps { display: grid; grid-template-columns: repeat(5, 1fr) 1.3fr; gap: 3px; margin: 0 0 26px; padding: 0; list-style: none; }
.ladder-steps li { position: relative; }
/* La flecha va en un hijo: el clip-path no debe recortar la leyenda de abajo */
.ladder-steps .bar {
  position: relative;
  display: grid;
  place-items: center;
  height: 30px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  background: rgba(92, 66, 50, 0.12);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
}
.ladder-steps li:first-child .bar { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); border-radius: 15px 0 0 15px; }
.ladder-steps li:last-child .bar { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%); border-radius: 0 15px 15px 0; }
.ladder-steps .bar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500) 60%, var(--gold-700));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
  transition-delay: calc(var(--s) * 70ms);
}
.ladder-steps li.on .bar::before { transform: none; }
.ladder-steps .bar span { position: relative; z-index: 1; }
.ladder-steps li.on .bar { color: var(--ink); }
/* Brillo que barre la barra de progreso */
.ladder-steps li.on .bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 250, 230, 0.6) 50%, transparent 70%);
  animation: glint 3.2s ease-in-out infinite;
  animation-delay: calc(var(--s) * 120ms);
}
.ladder-steps small {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding-top: 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: var(--ink-soft);
  white-space: nowrap;
}
.ladder-steps li.on small { color: var(--velvet-700); }
.wheel-side.is-result .wheel-title { display: none; }
@keyframes glint { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.ladder-msg { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 16px; font-weight: 700; text-align: center; color: var(--velvet-700); }
.ladder-msg .ico { width: 18px; height: 18px; }

.cart-lines { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cart-lines li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(92, 66, 50, 0.16);
  animation: rise 220ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.line-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(140deg, var(--occ), var(--occ2));
  box-shadow: 0 0 0 2px var(--gold-500);
}
.line-thumb img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.line-name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.line-price { font-weight: 700; font-size: 16px; }
.line-x { width: 32px; height: 32px; border: 0; background: none; color: var(--ink-soft); border-radius: var(--radio); cursor: pointer; display: grid; place-items: center; }
.line-x:hover { background: rgba(92, 66, 50, 0.12); color: var(--red); }
.line-x .ico { width: 18px; height: 18px; }

.cart-empty { display: grid; justify-items: center; gap: 8px; padding: 18px 8px; text-align: center; color: var(--ink-soft); }
.cart-empty[hidden] { display: none; }
.cart-empty .ico { width: 36px; height: 36px; color: var(--gold-700); }
.cart-empty p { margin: 0; max-width: 32ch; }

.sums { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 16px; }
.sums dt { color: var(--ink-soft); font-weight: 600; }
.sums dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.sums .prize-line, .sums .prize-line + dd { color: var(--red); }

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(92, 66, 50, 0.3);
}
.total span { font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 800; font-size: 30px; color: var(--velvet-700); }
.total b { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; color: var(--red); line-height: 1; }

.cart-note {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radio);
  background: rgba(212, 166, 74, 0.25);
  box-shadow: inset 0 0 0 1px rgba(165, 120, 42, 0.5);
  font-size: 15px;
  font-weight: 600;
}
.cart-note[hidden] { display: none; }
.cart-note .ico { width: 20px; height: 20px; color: var(--velvet-700); margin-top: 1px; }
.cart-note a { font-weight: 800; color: var(--velvet-700); }

.cart-wheel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px dashed rgba(143, 28, 36, 0.5);
  border-radius: var(--radio);
  background: none;
  color: var(--velvet-700);
  font: 700 15px/1.2 var(--font-text);
  cursor: pointer;
}
.cart-wheel[hidden] { display: none; }
.cart-wheel:hover { background: rgba(143, 28, 36, 0.06); }
.fine { margin: 0; font-size: 13px; text-align: center; color: var(--ink-soft); }

/* Ruleta: modal centrado */
.wheel-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.wheel-modal.is-open { opacity: 1; transform: none; }
.wheel-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 34px 30px 18px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse 50% 70% at 30% 50%, rgba(240, 160, 80, 0.22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(20, 3, 6, 0.3) 0 3px, transparent 3px 34px, rgba(255, 210, 200, 0.04) 34px 46px, transparent 46px 72px),
    linear-gradient(180deg, var(--velvet-700), var(--velvet-900));
  box-shadow: inset 0 0 0 2px var(--gold-300), inset 0 0 0 5px var(--gold-900), inset 0 0 0 7px var(--gold-500), 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}
.wheel-tools { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; gap: 8px; }
.wheel-stage { position: relative; display: grid; place-items: center; }
.wheel-spot {
  position: absolute;
  top: 4%;
  right: 4%;
  bottom: 4%;
  left: 4%;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 110, 0.35), transparent 65%);
  animation: breathe 4.2s ease-in-out infinite;
}
.wheel-svg { position: relative; display: block; width: 100%; max-width: 470px; height: auto; overflow: visible; }
.confetti { position: absolute; top: -14%; left: -20%; width: 140%; height: 114%; pointer-events: none; }

.wheel-side { display: grid; gap: 14px; padding: 10px 0; }
.wheel-title {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.06;
  color: var(--gold-100);
  text-shadow: 0 3px 0 rgba(20, 3, 6, 0.6);
  text-wrap: balance;
}
.wheel-title span { display: block; }
.wheel-title em { font-style: normal; color: var(--gold-300); }
.wheel-lede { margin: 0; color: var(--cream-dim); font-size: 16px; text-wrap: pretty; }
.spin-form { display: grid; gap: 10px; }
.spin-form[hidden] { display: none; }
.field {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radio);
  background: rgba(20, 4, 7, 0.55);
  color: var(--cream);
  font: 600 17px/1 var(--font-text);
  box-shadow: inset 0 0 0 2px var(--gold-500), inset 0 2px 8px rgba(0, 0, 0, 0.4);
  caret-color: var(--gold-300);
}
.field::placeholder { color: rgba(236, 220, 184, 0.7); }
.field:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 2px; }
.field.shake { animation: shake 320ms var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.wheel-result:empty { display: none; }
.wheel-result { display: grid; gap: 6px; }
.wheel-result .big {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  color: var(--gold-300);
  text-shadow: 0 0 24px rgba(255, 210, 120, 0.45);
  animation: pop 300ms var(--ease-out) both;
}
.wheel-result p { margin: 0; color: var(--cream); }
.wheel-result .warn { display: flex; gap: 8px; color: var(--gold-100); font-weight: 600; }
.wheel-result .warn .ico { color: var(--gold-300); margin-top: 2px; }
.wheel-result .clock { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--gold-100); }
@keyframes pop { from { opacity: 0; transform: scale(0.92); } }
.wheel-after { display: grid; gap: 10px; }
.wheel-after[hidden] { display: none; }
.wheel-side .fine { text-align: left; color: rgba(236, 220, 184, 0.75); }

/* Piezas del SVG de la ruleta */
.w-bulb-glow { animation: chase 1.5s steps(1, end) infinite; animation-delay: calc(var(--k) * -0.5s); }
.spinning .w-bulb-glow { animation-duration: 0.45s; animation-delay: calc(var(--k) * -0.15s); }
.w-label { font-family: var(--font-text); font-weight: 800; letter-spacing: 0.01em; }

/* ------------------------------------------------- titular: CTA y objeciones */

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.hero-cta .btn .ico { width: 24px; height: 24px; }
.hero-cta-note { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cream-dim); }
.hero-cta-note .ico { width: 18px; height: 18px; color: var(--gold-300); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 var(--sp-2);
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(240, 210, 138, 0.2);
  border-bottom: 1px solid rgba(240, 210, 138, 0.2);
}
.facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 14px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--cream-dim);
}
.facts li + li { padding-left: 16px; border-left: 1px solid rgba(240, 210, 138, 0.14); }
.facts b { display: block; margin-bottom: 1px; font-size: 15px; font-weight: 800; color: var(--gold-100); }
.facts .ico { width: 26px; height: 26px; margin-top: 1px; color: var(--gold-300); }

.sign-date {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--velvet-700);
}
.sign-date[hidden] { display: none; }

/* ------------------------------------------------------- demo en el televisor */

.demo {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.demo.is-open { opacity: 1; transform: none; }
.demo-room {
  position: relative;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 24px 20px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse 55% 60% at 42% 52%, rgba(255, 190, 120, 0.2), transparent 70%),
    repeating-linear-gradient(90deg, rgba(20, 3, 6, 0.3) 0 3px, transparent 3px 34px, rgba(255, 210, 200, 0.04) 34px 46px, transparent 46px 72px),
    linear-gradient(180deg, var(--velvet-700), var(--velvet-950));
  box-shadow: inset 0 0 0 2px var(--gold-300), inset 0 0 0 5px var(--gold-900), inset 0 0 0 7px var(--gold-500), 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 0 4px; }
.demo-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -0.015em; color: var(--gold-100); }
.demo-kicker { padding: 4px 8px; border-radius: 3px; background: var(--gold-300); color: var(--velvet-900); font-size: 13px; line-height: 1; letter-spacing: 0.01em; }
.demo-tools { display: flex; gap: 8px; }
.demo-tools .icon-btn[disabled] { opacity: 0.4; cursor: default; }

.demo-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  grid-template-areas: "tv phone" "cap phone";
  align-items: end;
  justify-content: center;
  row-gap: 14px;
  padding-top: 64px;
}

/* Televisor: gabinete rojo, bisel azul y pantalla curva, como el logo */
.tv { grid-area: tv; position: relative; justify-self: end; width: 100%; width: min(100%, calc((100vh - 330px) * 1.5)); min-width: 0; }
.tv-ant { position: absolute; left: 50%; bottom: 100%; width: 140px; height: 70px; margin-left: -70px; }
.tv-ant::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 58px;
  height: 28px;
  margin-left: -29px;
  border-radius: 29px 29px 4px 4px;
  background: radial-gradient(circle at 40% 30%, #dc4a52, var(--red) 55%, var(--red-lo));
  box-shadow: inset 0 0 0 1.5px rgba(60, 5, 10, 0.5);
}
.tv-ant i {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 66px;
  margin-left: -2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6a1016, #c42a33);
  transform-origin: 50% 100%;
  transform: rotate(-30deg);
  animation: antenna 7s ease-in-out infinite;
}
.tv-ant i + i { transform: rotate(28deg); animation-name: antenna-r; animation-duration: 8.5s; }
.tv-ant i::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8f86, var(--red) 60%, var(--red-lo));
}
@keyframes antenna { 50% { transform: rotate(-26deg); } }
@keyframes antenna-r { 50% { transform: rotate(32deg); } }

.tv-box {
  position: relative;
  padding: 22px 22px 0;
  border-radius: 34px;
  background: linear-gradient(180deg, #c92d36, var(--red) 40%, #861720);
  box-shadow:
    inset 0 2px 0 rgba(255, 205, 185, 0.35),
    inset 0 -5px 0 rgba(60, 5, 10, 0.4),
    inset 0 0 0 2px rgba(60, 5, 10, 0.5),
    0 34px 50px -20px rgba(0, 0, 0, 0.85);
}
.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5% / 8.5%;
  background: #0a0f1c;
  container-type: inline-size;
  isolation: isolate;
  box-shadow: 0 0 0 10px var(--navy), 0 0 0 12px #0b1633;
}
.tv-panel { display: flex; align-items: center; gap: 14px; padding: 22px 8px 14px; }
.tv-grille { flex: 1; height: 18px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(60, 5, 10, 0.6) 0 3px, transparent 3px 7px); }
.tv-brand { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; color: var(--gold-300); }
.tv-knob {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-100), var(--gold-500) 50%, var(--gold-900));
  box-shadow: 0 2px 3px rgba(40, 0, 0, 0.5);
}
.tv-knob::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 8px; margin-left: -1px; border-radius: 1px; background: var(--gold-900); }
.tv-knob + .tv-knob::after { transform: rotate(60deg); transform-origin: 50% 10px; }
.tv-feet { display: flex; justify-content: space-between; padding: 0 16%; }
.tv-feet i { width: 46px; height: 14px; background: linear-gradient(180deg, #5e1219, #2a0b10); clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); }

/* Capas de la pantalla */
.scr { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; }
.scr-off { z-index: 8; background: radial-gradient(ellipse 70% 60% at 32% 22%, rgba(255, 255, 255, 0.09), transparent 60%), #0a0f1c; }
.tv-screen:not([data-scene="off"]) .scr-off { opacity: 0; }
.scr-line { z-index: 9; opacity: 0; background: #f2f6ff; transform: scale(0, 0.006); }
[data-scene="power"] .scr-line { animation: crt-on 900ms var(--ease-out) both; }
@keyframes crt-on {
  0% { opacity: 1; transform: scale(0, 0.006); }
  30% { opacity: 1; transform: scale(1, 0.006); }
  60% { opacity: 0.85; transform: scale(1, 1); }
  100% { opacity: 0; transform: scale(1, 1); }
}
.scr-static { z-index: 7; overflow: hidden; opacity: 0; }
.scr-static::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  inset: -50%;
  background-color: #6d7486;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.8 -.4'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-scene="power"] .scr-static { animation: static-on 1300ms linear both; }
[data-scene="power"] .scr-static::before { animation: jitter 160ms steps(4, end) infinite; }
@keyframes static-on { 0%, 22% { opacity: 0; } 32% { opacity: 0.95; } 78% { opacity: 0.7; } 100% { opacity: 0; } }
@keyframes jitter { 25% { transform: translate(-7%, 4%); } 50% { transform: translate(5%, -6%); } 75% { transform: translate(-3%, 7%); } }

.scr-title, .scr-board, .scr-win { visibility: hidden; opacity: 0; }
[data-scene="title"] .scr-title,
[data-scene="board"] .scr-board,
[data-scene="win"] .scr-board,
[data-scene="win"] .scr-win { visibility: visible; animation: scene-in 340ms var(--ease-out) both; }
[data-scene="win"] .scr-board { animation: none; opacity: 1; }
@keyframes scene-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

.scr-title {
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 9cqw 11cqw;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, #6a141c, #1c070a);
}
.scr-title-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1cqw;
  width: 100%;
  padding: 4.4cqw 4cqw;
  border-radius: 3px;
  text-align: center;
  background: radial-gradient(ellipse 80% 90% at 50% 45%, #fffaf0, var(--cream) 55%, var(--cream-dim));
  box-shadow: 0 0 0 1.4cqw var(--velvet-500), 0 0 0 1.9cqw var(--gold-500), 0 0 6cqw rgba(255, 200, 120, 0.4);
}
.scr-title-panel::before {
  content: "";
  position: absolute;
  top: -1.25cqw;
  right: -1.25cqw;
  bottom: -1.25cqw;
  left: -1.25cqw;
  inset: -1.25cqw;
  border: 0.9cqw dotted #ffe6a0;
  border-radius: 4px;
  filter: drop-shadow(0 0 0.8cqw rgba(255, 220, 140, 0.9));
  animation: breathe 1.6s ease-in-out infinite;
}
.scr-bulbs { display: none; }
.scr-title-k { font-size: 4.2cqw; font-weight: 800; line-height: 1; color: var(--red); }
.scr-title-t { font-size: 7.6cqw; font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }

.scr-board {
  z-index: 4;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 2.2cqw;
  padding: 3.4cqw 4.4cqw 4.4cqw;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(80, 120, 220, 0.35), transparent 70%),
    linear-gradient(180deg, #1a2f5c, var(--navy) 60%, #0c1833);
}
.b-top { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; font-size: 2.8cqw; font-weight: 800; color: var(--gold-300); }
.b-strikes { display: flex; gap: 1cqw; min-height: 4cqw; }
.b-x { font-size: 4cqw; font-weight: 800; line-height: 1; color: #ff4b3e; text-shadow: 0 0 1.2cqw rgba(255, 70, 50, 0.7); animation: pop 260ms var(--ease-out) both; }
.b-pts { display: inline-flex; align-items: baseline; gap: 0.8cqw; padding: 0.7cqw 1.8cqw; border-radius: 3px; background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--ink); }
.b-pts b { min-width: 2.2ch; font-size: 4.6cqw; line-height: 1; text-align: right; }
.b-q { margin: 0; font-size: 3.9cqw; font-weight: 800; line-height: 1.2; text-align: center; color: var(--gold-100); text-wrap: balance; }
.b-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 1.3cqw;
  margin: 0;
  padding: 1.3cqw;
  list-style: none;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-700));
  box-shadow: inset 0 0 0 1px rgba(255, 245, 210, 0.6);
}
.tile { min-height: 0; perspective: 60cqw; }
.tile-in { position: relative; display: block; height: 100%; transform-style: preserve-3d; }
.tile.is-open .tile-in { animation: tile-flip 560ms var(--ease-move) both; }
@keyframes tile-flip { from { transform: rotateX(0); } to { transform: rotateX(180deg); } }
.tile-face { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; align-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tile-front { justify-content: center; background: linear-gradient(180deg, #23418a, #132a58); box-shadow: inset 0 0 0 1px rgba(160, 190, 255, 0.35); }
.tile-front b {
  display: grid;
  place-items: center;
  width: 5.6cqw;
  height: 5.6cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2d509a, #0d1f45);
  box-shadow: 0 0 0 0.35cqw var(--gold-300);
  font-size: 3.2cqw;
  color: var(--gold-100);
}
.tile-back { justify-content: space-between; transform: rotateX(180deg); background: var(--cream); color: var(--ink); font-size: 3cqw; font-weight: 800; text-transform: uppercase; }
.t-a { padding: 0 2cqw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.t-p { align-self: stretch; display: grid; place-items: center; min-width: 7.4cqw; background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); color: var(--gold-100); }
.tile.is-empty { border-radius: 1px; background: linear-gradient(180deg, #132a58, #0c1833); box-shadow: inset 0 0 0 1px rgba(160, 190, 255, 0.2); }

.scr-x { z-index: 6; display: grid; place-items: center; opacity: 0; background: rgba(12, 4, 4, 0.5); pointer-events: none; }
.scr-x svg { width: 34%; height: auto; fill: none; stroke: #ff3d30; stroke-width: 13; stroke-linecap: round; filter: drop-shadow(0 0 2cqw rgba(255, 60, 40, 0.75)); }
.scr-x.is-on { animation: strike-x 1300ms var(--ease-out) both; }
@keyframes strike-x {
  0% { opacity: 0; transform: scale(1.35); }
  14% { opacity: 1; transform: scale(1); }
  76% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.97); }
}

.scr-win { z-index: 5; display: grid; place-content: center; justify-items: center; gap: 0.6cqw; text-align: center; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(26, 47, 92, 0.97), rgba(10, 18, 40, 0.97)); }
.win-k { font-size: 4.4cqw; font-weight: 800; color: var(--gold-300); }
.scr-win b { font-size: 17cqw; font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; color: var(--gold-100); text-shadow: 0 0 4cqw rgba(255, 210, 120, 0.5); }
.win-u { font-size: 3.4cqw; font-weight: 700; color: var(--cream); }

/* Vidrio: brillo de la curva, líneas de barrido y viñeta, siempre encima */
.scr-glass {
  z-index: 10;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 60% at 28% 8%, rgba(255, 255, 255, 0.13), transparent 50%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 110% 100% at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.55) 100%);
}
.scr-glass::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; background: rgba(255, 255, 255, 0.025); animation: hum 3.7s steps(2, end) infinite; }
@keyframes hum { 50% { opacity: 0; } }

/* Celular del host */
.phone {
  grid-area: phone;
  position: relative;
  z-index: 3;
  align-self: end;
  width: 232px;
  margin: 0 0 -8px -14px;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(160deg, #3d2c27, #130b09);
  box-shadow: inset 0 0 0 1.5px rgba(255, 235, 210, 0.25), 0 26px 44px -14px rgba(0, 0, 0, 0.85);
  transform: rotate(-4deg);
  transform-origin: 50% 100%;
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  aspect-ratio: 9 / 18.5;
  overflow: hidden;
  padding: 28px 12px 12px;
  border-radius: 23px;
  color: var(--ink);
  background: linear-gradient(180deg, #faf2de, #ecdcb8);
}
.ph-view { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; display: flex; flex-direction: column; gap: inherit; padding: inherit; }
[data-view="pick"] .ph-host, [data-view="host"] .ph-pick { visibility: hidden; opacity: 0; }
[data-view="host"] .ph-host { animation: rise 260ms var(--ease-out) both; }
.ph-games { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ph-game {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 4px;
  background: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(92, 66, 50, 0.18);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}
.ph-game .a { overflow: hidden; text-overflow: ellipsis; }
.ph-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: linear-gradient(140deg, var(--occ), var(--occ2)); }
.ph-thumb img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-game.is-picked { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 0 0 2px var(--red); }
.ph-game.is-hit { animation: hit 380ms var(--ease-out); }
.ph-notch { position: absolute; top: 9px; left: 50%; z-index: 6; width: 64px; height: 14px; margin-left: -32px; border-radius: 8px; background: #130b09; }
.ph-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; color: var(--ink-soft); }
.ph-live { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); }
.ph-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: onair 1.6s ease-in-out infinite; }
.ph-q { margin: 0; font-size: 13px; font-weight: 800; line-height: 1.25; text-wrap: balance; }
.ph-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.ph-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 4px;
  background: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(92, 66, 50, 0.18);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}
.ph-row .n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-hi); color: var(--gold-100); font-size: 11px; }
.ph-row .a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ph-row .p { font-weight: 800; color: var(--velvet-700); }
.ph-row.is-done { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: none; }
.ph-row.is-done .n { background: var(--ok); }
.ph-row.is-hit, .ph-strike.is-hit { animation: hit 380ms var(--ease-out); }
@keyframes hit { 30% { transform: scale(0.95); } }
.ph-strike {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin-top: auto;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--red-hi), var(--red-lo));
  color: var(--gold-100);
  font-size: 14px;
  font-weight: 800;
}
.ph-strike .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.ph-ring {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 2px rgba(42, 22, 16, 0.55), 0 6px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
}
.ph-ring::before { content: ""; position: absolute; top: 7px; right: 7px; bottom: 7px; left: 7px; inset: 7px; border-radius: 50%; background: rgba(42, 22, 16, 0.4); transform: scale(0); }
.ph-ring::after { content: ""; position: absolute; top: -2px; right: -2px; bottom: -2px; left: -2px; inset: -2px; border-radius: 50%; border: 2px solid rgba(179, 32, 42, 0.85); opacity: 0; }
.ph-ring.is-tap::before { animation: press 380ms var(--ease-out) both; }
.ph-ring.is-tap::after { animation: ripple 520ms var(--ease-out) both; }
@keyframes press { 40% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes ripple { from { opacity: 0.9; transform: scale(0.6); } to { opacity: 0; transform: scale(2.1); } }

.demo-cap {
  grid-area: cap;
  min-height: 1.4em;
  margin: 0;
  padding-right: 40px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: var(--cream);
  text-wrap: balance;
}
.demo-cap.is-new { animation: rise 260ms var(--ease-out) both; }
.demo-bar { height: 3px; overflow: hidden; border-radius: 2px; background: rgba(240, 210, 138, 0.18); }
.demo-bar i { display: block; height: 100%; background: var(--gold-300); transform: scaleX(0); transform-origin: left; }

/* Los pasos en texto: ocultos a la vista mientras corre el video, visibles con reduced motion */
.demo-room:not(.is-static) .demo-steps { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.demo-steps { grid-area: steps; display: grid; gap: 6px; margin: 0; padding: 18px 0 0 24px; color: var(--cream); font-size: 16px; line-height: 1.4; }

/* Tarjeta de cierre */
.demo-end {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 8;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 32px;
  border-radius: 6px;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #5e1219, var(--velvet-950));
  box-shadow: inset 0 0 0 1px rgba(240, 210, 138, 0.25);
}
.demo-end[hidden] { display: none; }
.is-ended .demo-end { animation: scene-in 340ms var(--ease-out) both; }
.is-ended .tv, .is-ended .phone, .is-ended .demo-cap,
.is-failed .tv, .is-failed .phone { visibility: hidden; }
.end-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; font-weight: 800; color: var(--gold-300); }
.end-title { max-width: 18ch; margin: 0; font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; color: var(--gold-100); text-wrap: balance; }
.end-copy { max-width: 50ch; margin: 0; font-size: 17px; color: var(--cream-dim); text-wrap: pretty; }
.end-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; margin-top: 8px; }
.end-price { display: inline-flex; align-items: baseline; gap: 6px; margin-left: 4px; padding-left: 12px; border-left: 1px solid rgba(240, 210, 138, 0.45); }
.end-price s { font-size: 15px; font-weight: 600; opacity: 0.75; }
.end-price:empty { display: none; }
.end-again { justify-content: center; color: var(--gold-100); }
.end-again:hover { color: var(--gold-300); }
.end-fine { margin: 0; font-size: 14px; color: rgba(236, 220, 184, 0.8); }

.is-paused .demo-stage::after {
  content: "Paused";
  position: absolute;
  top: 74px;
  left: 50%;
  z-index: 9;
  padding: 6px 12px;
  border-radius: var(--radio);
  background: rgba(248, 238, 216, 0.95);
  color: var(--ink);
  font-weight: 800;
  transform: translateX(-50%);
}

/* Reduced motion: todo quieto y en orden */
.is-static .demo-stage { grid-template-areas: "tv phone" "steps steps" "end end"; }
.is-static .demo-end { position: relative; top: auto; right: auto; bottom: auto; left: auto; inset: auto; grid-area: end; padding: 18px 0 0; background: none; }
.is-static .demo-cap, .is-static .demo-bar, .is-static #demoPause, .is-static #demoReplay { display: none; }
.is-static .phone { transform: none; }
.is-loading .tv-screen::after { content: "Tuning in..."; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 11; display: grid; place-items: center; color: rgba(236, 220, 184, 0.7); font-weight: 700; }


/* ------------------------------------------- compatibilidad con la TV y confianza */

.tvs {
  margin: var(--sp-4) 0 var(--sp-2);
  padding: 18px 20px 16px;
  border-radius: var(--radio);
  background: rgba(28, 7, 10, 0.5);
  box-shadow: inset 0 0 0 1px rgba(240, 210, 138, 0.22);
}
.tvs-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; color: var(--gold-100); }
.tvs-title .ico { width: 26px; height: 26px; color: var(--gold-300); }
.tvs-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 0; margin: 0; padding: 0; list-style: none; }
.tvs-list li { display: grid; grid-template-rows: 30px auto; align-content: start; gap: 10px; padding: 0 16px; }
.tvs-list li:first-child { padding-left: 0; }
.tvs-list li + li { border-left: 1px solid rgba(240, 210, 138, 0.14); }
.tvs-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--cream); }
.tvlogo { display: block; flex: none; fill: currentColor; }
.tvs-laptop { width: 30px; height: 30px; color: var(--cream); }
.tvs-how { font-size: 14px; line-height: 1.4; color: var(--cream-dim); }
.tvs-how b { color: var(--gold-100); font-weight: 800; }
.tvs-cta { margin: 16px 0 0; }
.tvs-demo { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--gold-300); text-decoration: underline; text-decoration-color: rgba(240, 210, 138, 0.45); text-underline-offset: 4px; }
.tvs-demo:hover { color: var(--gold-100); text-decoration-color: currentColor; }
.tvs-demo .ico { width: 22px; height: 22px; }
.tvs-legal { margin: 8px 0 0; font-size: 14px; color: var(--cream-dim); opacity: 0.85; }

/* Versión compacta: final de la demo */
.tvs-mini { display: grid; justify-items: center; gap: 6px; margin: 0; font-size: 14px; }
.tvs-mini-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; color: var(--cream); opacity: 0.9; }
.tvs-mini-logos .ico { width: 22px; height: 22px; }
.tvs-mini-text { color: var(--cream-dim); }
.tvs-mini-text a { font-weight: 800; color: var(--gold-300); }

/* Candado de confianza junto a cada botón de compra */
.trust { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink-soft); }
.trust .ico { width: 16px; height: 16px; flex: none; color: var(--ok); }
.demo-end .trust { justify-content: center; margin: 0; color: var(--cream); }
.demo-end .trust .ico { color: var(--gold-300); }
.card-body .trust { margin-top: 10px; font-size: 13px; white-space: nowrap; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1099px) {
  .head { gap: var(--sp-3); }
  .brand-logo { width: 116px; }
  .brand-tag { font-size: 12px; }
  .ticket { padding: 16px 20px; }
  .ticket-text { font-size: 19px; }
  .ticket-wheel svg { width: 30px; height: 30px; }
  .topnav-plate a { padding: 10px 12px; font-size: 15px; }
  .sign-kicker { font-size: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li + li { border-left: 0; border-top: 1px solid rgba(92, 66, 50, 0.2); }
  .bought { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* Tableta: la cabecera pasa a dos filas (logo y boleto arriba, marquesina abajo) */
@media (max-width: 1023px) {
  .head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand ticket" "center center";
    gap: 16px 16px;
  }
  .brand { grid-area: brand; grid-template-columns: auto auto; align-items: center; justify-items: start; justify-self: start; gap: 14px; }
  .brand-tag { white-space: normal; max-width: 12ch; line-height: 1.25; font-size: 14px; }
  .ticket { grid-area: ticket; justify-self: end; }
  .head-center { grid-area: center; }
  .topnav-plate a { white-space: nowrap; }
}

@media (max-width: 767px) {
  .stage { padding-top: 26px; }
  .valance { height: 20px; background-size: 36px 18px, 100% 4px; background-image: radial-gradient(circle at 50% 0, var(--velvet-500) 0 14px, var(--gold-500) 14.5px 16.5px, transparent 17px), linear-gradient(180deg, var(--velvet-700), var(--velvet-500)); }
  .curtain { display: none; }
  .head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand ticket" "center center";
    gap: 14px 10px;
    max-width: none;
    padding: 0;
  }
  .brand { grid-area: brand; grid-template-columns: auto auto; align-items: center; justify-items: start; gap: 10px; }
  .brand-logo { width: 68px; }
  .brand-tag { white-space: normal; max-width: 9ch; font-size: 12px; line-height: 1.25; }
  .ticket { grid-area: ticket; justify-self: end; gap: 8px; padding: 12px 16px; }
  .ticket::before { top: 5px; right: 12px; bottom: 5px; left: 12px; inset: 5px 12px; }
  .ticket-text { font-size: 16px; }
  .ticket-wheel svg { width: 26px; height: 26px; }
  .head-center { grid-area: center; }
  .topnav { order: 2; width: 100%; margin: 0; justify-content: center; }
  .topnav-plate, .cart-btn { border-radius: 0 0 var(--radio) var(--radio); }
  .topnav-plate { flex: 1; justify-content: space-around; padding: 0 2px; }
  .topnav-plate a { padding: 10px 8px; font-size: 14px; white-space: nowrap; }
  .cart-btn { padding: 0 10px; }
  .sign { width: 100%; padding: 16px; border-radius: 8px; }
  .sign-panel { min-height: 86px; padding: 10px 10px 12px; background-size: auto, auto; }
  .sign-kicker { font-size: 16px; }
  .sign-title { font-size: 28px; }
  .bulb { width: 8px; height: 8px; margin: -4px 0 0 -4px; }
  .bulb::after { top: -5px; right: -5px; bottom: -5px; left: -5px; inset: -5px; }
  .games { padding-top: var(--sp-4); }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .chip { flex: none; }
  .group { margin-top: var(--sp-4); }
  .group-title { font-size: 25px; }
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .price-now { font-size: 28px; }
  .how, .bought { margin-top: var(--sp-6); }
  .how-steps li { padding: 18px 16px; }
  .bought-list { grid-template-columns: 1fr 1fr; }
  .bought-list a { font-size: 14px; padding: 0 10px; }
  .prize-bar { gap: 10px; padding: 6px 12px; }
  .prize-bar-text { font-size: 15px; gap: 6px; }
  .prize-bar-exp { display: none; }
  .prize-bar-text .ico { width: 18px; height: 18px; }
  .spin-tab { top: auto; bottom: 96px; padding: 9px 4px 10px 5px; gap: 7px; }
  .spin-tab-wheel { width: 22px; height: 22px; }
  .spin-tab-text { font-size: 14px; }
  .spin-tab-timer { font-size: 14px; }
  .wheel-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .wheel-frame { grid-template-columns: 1fr; gap: 6px; max-height: calc(100vh - 20px); padding: 50px 18px 20px; }
  .wheel-svg { max-width: 300px; margin: 0 auto; }
  .wheel-side { padding: 0; gap: 10px; text-align: center; }
  .wheel-side .fine { text-align: center; }
  .wheel-title { font-size: 27px; }
  .wheel-lede { font-size: 15px; }
  .wheel-result .big { font-size: 32px; }
  .total b { font-size: 38px; }
  .cart-lines li { grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 10px; }
}

@media (max-width: 380px) {
  .topnav-plate a { padding: 10px 6px; font-size: 13px; }
  .ticket-text { font-size: 15px; }
}

/* Tarjetas, titular, carrito y demo en pantallas medianas y chicas */
@media (max-width: 1099px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tvs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 0; }
  .tvs-list li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid rgba(240, 210, 138, 0.14); }
  .demo-stage { grid-template-columns: minmax(0, 1fr) 200px; }
  .phone { width: 200px; margin-left: -12px; }
  .ph-q { font-size: 12px; }
  .ph-row { font-size: 11px; padding: 6px 7px; }
}

@media (max-width: 767px) {
  .hero-cta { margin-top: 14px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta-note { width: 100%; justify-content: center; }
  .facts { margin-top: 14px; }
  .facts li { padding: 12px 10px 12px 0; font-size: 14px; gap: 8px; color: var(--cream); }
  .facts li + li { padding-left: 10px; }
  .facts li:nth-child(3) { padding-left: 0; }
  .facts b { font-size: 15px; }
  .tvs { padding: 16px 14px 14px; }
  .tvs-title { font-size: 19px; }
  .tvs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .tvs-list li { padding: 0 10px; }
  .tvs-list li:nth-child(3n + 1) { padding-left: 10px; border-left: 1px solid rgba(240, 210, 138, 0.14); }
  .tvs-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .tvs-how { color: var(--cream); }
  .tvs-demo { font-size: 16px; align-items: flex-start; }
  .fine, .hero-cta-note, .tvs-legal { font-size: 14px; }
  .ticker { font-size: 13px; }
  .card-body .trust { font-size: 14px; }
  .facts .ico { width: 22px; height: 22px; }
  .sign-date { font-size: 14px; }
  .sign-panel { min-height: 96px; }

  .chan { padding: 6px; }
  .chan-air { font-size: 11px; padding: 4px 7px; }
  .card-buy .btn { min-height: 46px; }
  .card-links { gap: 16px; }


  .demo { width: calc(100vw - 12px); max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); }
  .demo-room { gap: 8px; max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); padding: 12px 12px 14px; }
  .demo-head { padding: 2px 0 0 2px; }
  .demo-title { font-size: 17px; gap: 4px 8px; }
  .demo-kicker { font-size: 12px; padding: 3px 6px; }
  .demo-tools { gap: 4px; }
  .demo-tools .icon-btn { width: 36px; height: 36px; }
  .demo-stage {
    grid-template-columns: 136px minmax(0, 1fr);
    grid-template-areas: "tv tv" "phone cap";
    align-items: start;
    column-gap: 12px;
    row-gap: 0;
    padding-top: 46px;
  }
  .tv { width: 100%; justify-self: stretch; }
  .tv-ant { width: 90px; height: 46px; margin-left: -45px; }
  .tv-ant::before { width: 40px; height: 20px; margin-left: -20px; bottom: -7px; }
  .tv-ant i { height: 44px; width: 3px; }
  .tv-ant i::after { width: 10px; height: 10px; margin-left: -5px; top: -6px; }
  .tv-box { padding: 12px 12px 0; border-radius: 20px; }
  .tv-screen { box-shadow: 0 0 0 6px var(--navy), 0 0 0 7px #0b1633; }
  .tv-panel { gap: 8px; padding: 12px 4px 9px; }
  .tv-grille { height: 10px; }
  .tv-brand { font-size: 10px; }
  .tv-knob { width: 16px; height: 16px; }
  .tv-knob::after { top: 2px; height: 5px; }
  .tv-feet i { width: 28px; height: 9px; }
  .phone { width: 136px; margin: -30px 0 0 4px; padding: 6px; border-radius: 20px; transform: rotate(-3deg); }
  .phone-screen { gap: 4px; padding: 17px 6px 7px; border-radius: 15px; }
  .ph-notch { top: 5px; width: 38px; height: 9px; margin-left: -19px; }
  .ph-top { font-size: 8px; }
  .ph-live i { width: 5px; height: 5px; }
  .ph-q { font-size: 9px; }
  .ph-list { gap: 3px; }
  .ph-row { grid-template-columns: 13px minmax(0, 1fr) auto; gap: 3px; padding: 4px 4px; font-size: 8.5px; border-radius: 3px; }
  .ph-row .n { width: 13px; height: 13px; font-size: 7.5px; }
  .ph-games { gap: 3px; }
  .ph-game { grid-template-columns: 24px minmax(0, 1fr); gap: 4px; padding: 3px; font-size: 8.5px; border-radius: 3px; }
  .ph-game .a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .ph-strike { min-height: 24px; font-size: 10px; gap: 3px; }
  .ph-strike .ico { width: 12px; height: 12px; }
  .ph-ring { width: 24px; height: 24px; }
  .ph-ring::before { top: 5px; right: 5px; bottom: 5px; left: 5px; inset: 5px; }
  .demo-cap { align-self: center; padding: 18px 0 0; font-size: 16px; text-align: left; }
  .demo-end { gap: 10px; padding: 18px 16px; }
  .end-kicker { font-size: 14px; }
  .end-title { font-size: 30px; }
  .end-copy { font-size: 15px; }
  .end-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; gap: 10px; }
  .end-actions .btn { width: 100%; }
  .end-add { font-size: 16px; }
  .end-fine { font-size: 14px; }
  .is-paused .demo-stage::after { top: 50px; }
  .is-static .demo-stage { grid-template-areas: "tv tv" "phone phone" "steps steps" "end end"; }
  .is-static .phone { margin: 14px auto 0; }
}

@media (max-width: 380px) {
  .demo-stage { grid-template-columns: 124px minmax(0, 1fr); }
  .phone { width: 124px; }
  .demo-cap { font-size: 15px; }
}

/* ============================================================ ronda 2 (nov 2026)
   Arriba más corto, escalera en boletos, buscador, menú fijo, barra de compra,
   carrito único, logos de pago, Etsy y contador de la demo. */

/* ------------------------------------------------------------- titular */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 48px;
}
.hero h1 {
  margin: 0;
  max-width: 17ch;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 800;
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1.04;
  color: var(--gold-300);
  text-wrap: balance;
}
.hero .hero-cta { margin-top: 18px; }

/* Escalera de paquetes: boletos que suben como escalones. */
.bundle { display: grid; gap: 12px; justify-items: start; }
.bundle-title { display: grid; gap: 2px; margin: 0; }
.bundle-title b { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; color: var(--gold-100); }
.bundle-title span { font-size: 14px; font-weight: 600; color: var(--cream-dim); }
.bundle-steps { display: flex; align-items: flex-end; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bundle-steps li { display: grid; justify-items: center; gap: 6px; animation: ticket-in 260ms var(--ease-out) both; animation-delay: calc(260ms + var(--s, 0) * 60ms); }
.bs-ticket {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 96px;
  height: calc(66px + var(--s, 0) * 14px);
  color: var(--ink);
  background: linear-gradient(170deg, #f8e3a6, var(--gold-300) 30%, var(--gold-500) 72%, var(--gold-700));
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  filter: drop-shadow(0 8px 10px rgba(10, 0, 0, 0.45));
}
.bs-ticket::before { content: ""; position: absolute; top: 5px; right: 11px; bottom: 5px; left: 11px; inset: 5px 11px; border: 1px dashed rgba(92, 58, 20, 0.45); border-radius: 2px; }
.bs-ticket b { position: relative; font-family: var(--font-display); font-size: calc(28px + var(--s, 0) * 4px); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; }
.bs-ticket small { position: relative; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.bundle-steps li:last-child .bs-ticket { color: var(--gold-100); background: linear-gradient(170deg, var(--red-hi), var(--red) 55%, var(--red-lo)); }
.bundle-steps li:last-child .bs-ticket::before { border-color: rgba(240, 210, 138, 0.55); }
.bs-n { font-size: 14px; font-weight: 800; color: var(--cream); white-space: nowrap; }
@keyframes ticket-in { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------- filtros y buscador */

.shelf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(240, 210, 138, 0.16);
}
.search { position: relative; flex: 0 1 300px; }
.search .ico { position: absolute; top: 50%; left: 12px; width: 18px; height: 18px; margin-top: -9px; color: var(--gold-300); pointer-events: none; }
.search-input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px 0 38px;
  border: 1px solid rgba(240, 210, 138, 0.4);
  border-radius: var(--radio);
  background: rgba(28, 7, 10, 0.55);
  color: var(--cream);
  font: 600 16px/1 var(--font-text);
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.search-input::placeholder { color: rgba(236, 220, 184, 0.72); }
.search-input:hover { border-color: rgba(240, 210, 138, 0.7); }
.search-input:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 2px; border-color: var(--gold-300); }
.search-input::-webkit-search-cancel-button { filter: invert(0.85) sepia(0.4); cursor: pointer; }
.search-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(240, 210, 138, 0.25);
  border-radius: var(--radio);
  background: rgba(28, 7, 10, 0.45);
}
.search-empty[hidden] { display: none; }
.search-empty p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 700; color: var(--cream); }
.search-empty .ico { width: 22px; height: 22px; color: var(--gold-300); }
.games .group:first-of-type { margin-top: 30px; }
.card[hidden] { display: none; }

/* ------------------------------------------------------------- cómo se juega */

.how-lede { max-width: 62ch; margin: calc(var(--sp-3) * -1) 0 var(--sp-4); font-size: 17px; color: var(--cream-dim); text-wrap: pretty; }
.how .facts { margin: var(--sp-5) 0 0; }
.how .tvs { margin: var(--sp-4) 0 0; }

/* ------------------------------------------------------------- menú fijo */

.dock {
  position: fixed;
  top: var(--bar-h);
  right: 0;
  left: 0;
  z-index: 35;
  background: rgba(36, 9, 14, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 -1px 0 rgba(240, 210, 138, 0.3), 0 10px 22px -12px rgba(10, 0, 0, 0.9);
  animation: dock-in 220ms var(--ease-out) both;
}
.dock[hidden] { display: none; }
@keyframes dock-in { from { transform: translateY(-100%); } }
.dock-in { display: flex; align-items: center; gap: 22px; max-width: var(--page); min-height: 60px; margin: 0 auto; padding: 0 var(--gutter); }
.dock-brand { display: block; flex: none; }
.dock-brand img { display: block; width: 46px; height: auto; }
.dock-nav { display: flex; gap: 4px; }
.dock-nav a { padding: 8px 10px; border-radius: var(--radio); font-size: 15px; font-weight: 700; color: var(--cream); text-decoration: none; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.dock-nav a:hover { color: var(--gold-100); background: rgba(240, 210, 138, 0.1); }
.dock-demo { margin-left: auto; }
.dock-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gold-500);
  border-radius: var(--radio);
  background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, var(--red-lo));
  color: var(--gold-100);
  font: 800 16px/1 var(--font-text);
  cursor: pointer;
  transition: transform 140ms var(--ease-out), filter 160ms var(--ease-out);
}
.dock-cart:hover { filter: brightness(1.08); }
.dock-cart:active { transform: scale(0.97); }
.dock-cart .ico { width: 22px; height: 22px; }
.dock-n { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--gold-300); color: var(--ink); font-size: 13px; }
.dock-total[hidden] { display: none; }

/* ------------------------------------------------------------- barra de compra (celular) */

.buybar { display: none; }
@keyframes buybar-in { from { transform: translateY(100%); } }
@keyframes sheet-up { from { transform: translateY(100%); } }

/* ------------------------------------------------------------- carrito único */

.cart-scrim { display: none; }
.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  width: min(420px, 100vw);
}
.cart[hidden] { display: none; }
.cart.is-in { animation: drawer-in 280ms var(--ease-drawer) both; }
@keyframes drawer-in { from { transform: translateX(100%); } }
.cart-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf0, var(--cream) 30%, var(--cream-dim));
  box-shadow: inset 0 0 0 3px var(--gold-500), inset 0 0 0 6px var(--gold-900), inset 0 0 0 8px var(--gold-300), -20px 0 40px rgba(10, 0, 0, 0.5);
}
.cart-frame.is-bump { animation: cart-bump 300ms var(--ease-out); }
@keyframes cart-bump { 40% { transform: translateX(-6px); } }
.cart .cart-head { padding: 20px 22px 12px; }
.cart-head h2 { outline: none; }
.cart-head-n { font-family: var(--font-text); font-size: 18px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0; }
.cart .icon-btn { color: var(--ink); background: rgba(92, 66, 50, 0.08); border-color: rgba(92, 66, 50, 0.25); }
.cart .icon-btn:hover { background: rgba(92, 66, 50, 0.16); }
.cart-scroll {
  display: grid;
  align-content: start;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 22px 18px;
}
.cart-added { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 800; color: var(--ok); }
.cart-added[hidden] { display: none; }
.cart-added .ico { width: 20px; height: 20px; stroke-width: 2; }
.cart-lines li { grid-template-columns: 84px minmax(0, 1fr) auto auto; }
.cart-lines li.is-new { animation: line-new 900ms var(--ease-out) both; }
@keyframes line-new { 0% { opacity: 0; transform: translateY(6px); background: rgba(212, 166, 74, 0.35); } 30% { opacity: 1; transform: none; } 100% { background: transparent; } }
.ladder { padding: 4px 0 14px; border-bottom: 1px solid rgba(92, 66, 50, 0.2); }
.ladder-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ladder-steps small { font-size: 12px; }
.sums[hidden] { display: none; }
.sums .save-line { color: var(--velvet-700); }
.cart-sugg[hidden] { display: none; }
.cart-sugg-title { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--velvet-700); }
.cart-sugg-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cart-sugg-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: var(--radio);
  background: rgba(92, 66, 50, 0.07);
  animation: rise 240ms var(--ease-out) both;
  animation-delay: calc(80ms + var(--i, 0) * 40ms);
}
.cart-sugg-list .line-thumb { box-shadow: 0 0 0 1.5px var(--gold-500); }
.sugg-info { display: grid; gap: 2px; min-width: 0; }
.cart-sugg-list .line-name { font-size: 15px; }
.cart-sugg-list .line-price { font-size: 14px; color: var(--ink-soft); }
.sugg-add { min-height: 38px; padding: 0 12px; }
.sugg-add .ico { width: 18px; height: 18px; }
.cart .fine { font-size: 14px; line-height: 1.4; }
.cart-foot {
  display: grid;
  gap: 10px;
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(92, 66, 50, 0.25);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.6), var(--cream-dim));
  box-shadow: 0 -12px 18px -14px rgba(60, 30, 20, 0.45);
}
.cart .total { padding-top: 0; border-top: 0; }
.total-n { display: grid; justify-items: end; line-height: 1; }
.total-n s { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.total-n s[hidden] { display: none; }
.cart-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.cart-actions .btn-text { color: var(--velvet-700); }
.cart-safe, .end-safe, .foot-pay { display: grid; justify-items: center; gap: 8px; }
.cart-safe .trust, .end-safe .trust, .foot-pay .trust { justify-content: center; margin: 0; }

/* ------------------------------------------------------------- logos de pago */

.pay-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pay { display: grid; place-items: center; width: 44px; height: 28px; border-radius: 4px; background: #fffdf6; box-shadow: inset 0 0 0 1px rgba(92, 66, 50, 0.24), 0 1px 2px rgba(40, 10, 10, 0.25); }
.pay svg { display: block; fill: currentColor; }
.pay-visa { color: #1a1f71; }
.pay-mastercard { color: #eb001b; }
.pay-americanexpress { color: #2e77bc; }
.pay-applepay { color: #1d1a1a; }
.pay-googlepay { color: #4285f4; }
.end-safe .trust { color: var(--cream); }
.foot-pay .trust { color: var(--cream); }
.foot-pay .trust .ico, .end-safe .trust .ico { color: var(--gold-300); }

/* ------------------------------------------------------------- Etsy y pie */

.etsy-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: var(--page);
  margin: var(--sp-6) auto 0;
  padding: 0 var(--gutter);
  font-size: 17px;
  color: var(--cream);
  text-align: center;
}
.etsy-line .ico { flex: none; width: 24px; height: 24px; color: var(--gold-300); }
.etsy-line a, .foot-nav a, .bought-text p a { font-weight: 800; color: var(--gold-300); text-decoration: underline; text-decoration-color: rgba(240, 210, 138, 0.45); text-underline-offset: 4px; }
.etsy-line a:hover, .foot-nav a:hover, .bought-text p a:hover { color: var(--gold-100); text-decoration-color: currentColor; }
.foot { flex-direction: column; gap: 20px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 15px; }
.foot-nav a { text-decoration: none; }
.foot-note { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); }

/* ------------------------------------------------------------- demo: contador */

.demo-foot { display: flex; align-items: center; gap: 12px; }
.demo-foot .demo-bar { flex: 1; }
.demo-time { min-width: 9ch; font-size: 14px; font-weight: 700; color: var(--cream-dim); text-align: right; }
.is-static .demo-foot { display: none; }

/* ------------------------------------------------------------- ronda 2: tamaños */

@media (max-width: 1099px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .dock-nav a { padding: 8px 6px; font-size: 14px; }
}

@media (max-width: 767px) {
  .games { padding-top: 20px; }
  .hero { gap: 16px; }
  .hero h1 { font-size: 26px; max-width: none; }
  .hero .hero-cta { margin-top: 12px; gap: 8px; }
  .hero .hero-cta-note { display: none; }
  .bundle { width: 100%; gap: 8px; }
  .bundle-title { grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; }
  .bundle-title b { font-size: 18px; }
  .bundle-title span { display: none; }
  .bundle-steps { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 8px; width: 100%; }
  .bs-ticket { width: 100%; height: calc(48px + var(--s, 0) * 6px); }
  .bs-ticket b { font-size: calc(21px + var(--s, 0) * 2px); }
  .bs-ticket small { font-size: 11px; }
  .bs-ticket::before { top: 4px; right: 9px; bottom: 4px; left: 9px; inset: 4px 9px; }
  .bs-n { font-size: 13px; }
  .shelf { margin-top: 14px; padding-top: 0; border-top: 0; gap: 10px; }
  .search { flex: 1 1 100%; order: -1; }
  .games .group:first-of-type { margin-top: 14px; }
  .how-lede { font-size: 16px; }
  .etsy-line { align-items: flex-start; font-size: 16px; text-align: left; justify-content: flex-start; }

  .dock-in { gap: 8px; min-height: 52px; }
  .dock-brand, .dock-demo, .dock-total { display: none; }
  .dock-nav { flex: 1; gap: 0; }
  .dock-nav a { padding: 8px 7px; font-size: 14px; white-space: nowrap; }
  .dock-cart { min-height: 38px; padding: 0 10px; }

  .buybar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 34;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(36, 9, 14, 0.96);
    box-shadow: inset 0 1px 0 rgba(240, 210, 138, 0.35), 0 -10px 22px -12px rgba(10, 0, 0, 0.9);
    animation: buybar-in 220ms var(--ease-out) both;
  }
  .buybar[hidden] { display: none; }
  .buybar .btn { min-height: 48px; padding: 0 10px; font-size: 15px; white-space: nowrap; }
  .buybar .ico { width: 20px; height: 20px; }
  .buybar-label { overflow: hidden; text-overflow: ellipsis; }
  body.has-buybar { padding-bottom: 72px; }
  body.has-buybar .spin-tab { bottom: 104px; }
  body.has-buybar .toast { bottom: 84px; }

  .cart-scrim:not([hidden]) { position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 44; display: block; background: rgba(20, 4, 7, 0.55); }
  .cart { top: auto; left: 0; width: auto; }
  .cart.is-in { animation-name: sheet-up; }
  .cart-frame {
    height: auto;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 0 var(--gold-500), 0 -4px 0 var(--gold-900), 0 -24px 44px rgba(10, 0, 0, 0.6);
  }
  .cart .cart-head { padding: 14px 16px 8px; }
  .cart-head h2 { font-size: 26px; }
  .cart-scroll { gap: 14px; padding: 4px 16px 14px; }
  .cart-lines li { grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 10px; padding: 8px 0; }
  .cart-lines .line-name { font-size: 15px; }
  .cart-foot { gap: 8px; padding: 10px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cart .total span:first-child { font-size: 24px; }
  .cart .total b { font-size: 32px; }
  .cart-actions .btn { min-height: 50px; }
  .cart-sugg-list li { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .demo-time { font-size: 13px; }
  .foot-note { flex-direction: column; gap: 10px; }
}

/* ============================================================ ronda 3 (nov 2026)
   Volver a la página del juego, ruleta dentro de la barra del celular,
   aviso de privacidad bajo el correo y primer pantallazo más corto. */

.ico-back { transform: scaleX(-1); }
.end-back { justify-content: center; color: var(--gold-100); }
.end-back[hidden] { display: none; }
.end-back:hover { color: var(--gold-300); }

.back-pill {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 33;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radio);
  background: rgba(36, 9, 14, 0.94);
  box-shadow: inset 0 0 0 1px rgba(240, 210, 138, 0.4), 0 12px 24px -10px rgba(10, 0, 0, 0.9);
  animation: rise 240ms var(--ease-out) both;
}
.back-pill[hidden] { display: none; }
.back-pill .icon-btn { width: 36px; height: 36px; }

.spin-privacy { margin: 0; font-size: 14px; line-height: 1.35; color: var(--cream-dim); }
.spin-privacy a { font-weight: 700; color: var(--gold-300); text-underline-offset: 3px; }
.foot-nav a[href="/privacy"] { font-weight: 700; }

.buybar-wheel { display: none; }

@media (max-width: 767px) {
  /* La pestaña lateral tapaba chips, buscador y el pie: en el celular la
     ruleta queda en el boleto de la cabecera y en un botón de la barra. */
  .spin-tab { display: none !important; }
  .buybar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .buybar-demo .ico { display: none; }
  .buybar-wheel {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid var(--gold-500);
    border-radius: var(--radio);
    background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, var(--red-lo));
    color: var(--gold-100);
    cursor: pointer;
  }
  .buybar-wheel[hidden] { display: none; }
  .buybar-wheel .ico { width: 24px; height: 24px; }
  .buybar-prize { position: absolute; top: -8px; right: -6px; padding: 2px 5px; border-radius: 9px; background: var(--gold-300); color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.1; }
  .buybar-prize[hidden] { display: none; }
  .back-pill { left: 12px; right: 12px; bottom: 16px; }
  .back-pill .btn { flex: 1; justify-content: flex-start; min-width: 0; }
  .back-pill .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.has-buybar .back-pill { bottom: 84px; }

  /* Primer pantallazo: que entren el título y la imagen de la primera tarjeta. */
  .stage { padding-top: 20px; }
  .head { gap: 10px; }
  .brand-logo { width: 58px; }
  .ticket { padding: 10px 14px; }
  .sign { padding: 12px; }
  .sign-panel { min-height: 0; padding: 8px 10px 10px; gap: 2px; }
  .sign-title { font-size: 26px; }
  .games { padding-top: 14px; }
  .hero { gap: 12px; }
  .hero h1 { font-size: 24px; }
  .hero .hero-cta { margin-top: 10px; }
  .hero .hero-cta .btn { min-height: 48px; }
  .bundle { gap: 6px; }
  .bundle-title b { font-size: 17px; }
  .bs-ticket { height: calc(44px + var(--s, 0) * 5px); }
  .bundle-steps li { gap: 4px; }
  .shelf { margin-top: 12px; gap: 8px; }
  .filters { padding-bottom: 2px; }
  .games .group:first-of-type { margin-top: 10px; }
  .group-title { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .bulb::after, .w-bulb-glow { opacity: 1; }
}
