/* =============================================================
   Sorteo Regalón — estética "casino tecnológico" 3D, responsiva.
   SoC: este archivo solo define presentación.

   Layout:
   - Vertical (portrait): una sola pantalla, 20% reloj / 40% ruleta /
     40% catálogo (la barra de progreso va compacta dentro del catálogo).
   - Horizontal (landscape): reloj arriba a lo ancho, y debajo dos
     columnas (ruleta | catálogo).
   ============================================================= */

:root {
  --bg-0: #020215;
  --bg-1: #0a0a2e;
  --neon-blue: #2d9bff;
  --neon-blue-soft: #6cc0ff;
  --neon-yellow: #ffe600;
  --neon-green: #00ff66;
  --fuchsia: #ec4899;
  --violet: #7c3aed;
  --gold-1: #ffe79a;
  --gold-2: #d4a017;
  --gold-3: #a9790c;
  --panel: rgba(13, 22, 52, 0.72);
  --text: #e8edf7;
  --muted: #93a3b8;
  --card: rgba(13, 30, 66, 0.72);

  /* Tokens de tema. Valores de `neon-blue` (predeterminado); cada tema
     `:root[data-theme="<id>"]` solo redefine tokens (registro: shared/promo-service.js). */
  --bg-glow: rgba(124, 58, 237, 0.22);
  --bokeh-1: rgba(45, 155, 255, 0.20);
  --bokeh-2: rgba(236, 72, 153, 0.18);
  --bokeh-3: rgba(255, 230, 0, 0.10);
  --bokeh-4: rgba(16, 185, 129, 0.14);
  --bokeh-5: rgba(124, 58, 237, 0.16);

  --clock-bg:
    radial-gradient(circle at 50% -30%, rgba(151, 205, 255, 0.28), transparent 52%),
    linear-gradient(165deg, rgba(10, 45, 104, 0.94), rgba(5, 15, 50, 0.96) 72%);
  --clock-border: var(--neon-blue);
  --clock-shadow:
    0 0 0 3px rgba(24, 109, 210, 0.28),
    0 0 24px rgba(45, 155, 255, 0.6),
    inset 0 0 0 2px rgba(169, 224, 255, 0.35),
    inset 0 -10px 20px rgba(0, 0, 0, 0.34);
  --digit-bg: linear-gradient(180deg, rgba(15, 67, 152, 0.95), rgba(10, 40, 106, 0.95));
  --digit-border: rgba(148, 212, 255, 0.55);

  --heading-gradient: linear-gradient(90deg, var(--neon-blue-soft), #fff, var(--neon-blue-soft));
  --heading-glow: 0 0 18px rgba(45, 155, 255, 0.35);
  --rail-border: rgba(118, 136, 255, 0.82);
  --rail-dot: rgba(255, 230, 0, 0.95);
  --rail-tint: linear-gradient(180deg, rgba(40, 240, 255, 0.42), rgba(84, 88, 255, 0.28) 50%, rgba(146, 69, 255, 0.3));
  --rail-base: linear-gradient(180deg, rgba(4, 17, 50, 0.95), rgba(8, 24, 62, 0.9));
  --rail-glow-rgb: 120, 142, 255;
  --rail-glow2-rgb: 255, 86, 223;
  --wheel-glow: rgba(92, 165, 255, 0.4);
  --pointer-color: #00f4ff;
  --pointer-glow: rgba(0, 255, 245, 0.95);
  --pointer-knob: radial-gradient(circle at 35% 35%, #ecfeff, #7bfbff 72%, #06879b);
  --pointer-knob-glow: rgba(123, 251, 255, 0.95);

  /* Canvas de la ruleta (los lee roulette.js) */
  --wheel-arena-in: rgba(25, 95, 255, 0.32);
  --wheel-arena-mid: rgba(95, 70, 255, 0.2);
  --wheel-arena-out: rgba(7, 16, 50, 0);
  --wheel-sector-stroke: rgba(255, 255, 255, 0.3);
  --wheel-ring-a: #3556ff;
  --wheel-ring-b: #7a4dff;
  --wheel-ring-c: #2e62ff;
  --wheel-ring-glow: rgba(93, 121, 255, 0.92);
  --wheel-trim-a: #ffe37a;
  --wheel-trim-b: #ffc400;
  --wheel-trim-c: #fff0a8;
  --wheel-halo-a: rgba(93, 218, 255, 0.95);
  --wheel-halo-b: rgba(149, 96, 255, 0.95);
  --wheel-halo-c: rgba(90, 220, 255, 0.95);
  --wheel-halo-glow: rgba(102, 214, 255, 0.75);
  --wheel-bulb-a: #ffe500;
  --wheel-bulb-b: #ffe500;
  --wheel-hub-in: rgba(20, 30, 60, 0.95);
  --wheel-hub-out: rgba(8, 14, 34, 0.95);
  --wheel-hub-stroke: rgba(212, 160, 23, 0.6);

  --spin-bg: radial-gradient(circle at 35% 28%, var(--gold-1), var(--gold-2) 68%, var(--gold-3));
  --spin-ink: #3a2a00;
  --spin-ink-shadow: none;
  --spin-ring-rgb: 212, 160, 23;
  --spin-glow-rgb: 255, 230, 0;

  --strip-border: rgba(255, 255, 255, 0.08);
  --progress-track: linear-gradient(180deg, rgba(3, 34, 14, 0.85), rgba(2, 18, 10, 0.95));
  --progress-border: rgba(157, 255, 188, 0.45);
  --progress-glow: rgba(0, 255, 102, 0.24);
  --progress-fill:
    linear-gradient(180deg, rgba(194, 255, 207, 0.65), rgba(194, 255, 207, 0) 35%),
    linear-gradient(90deg, #00ff66, #53ff93 45%, #00ff7f);
  --progress-fill-glow: rgba(0, 255, 102, 0.8);
  --progress-ink: var(--neon-green);
  --odometer-bg: #000;
  --odometer-ink: var(--neon-green);

  --chip-bg: rgba(255, 255, 255, 0.06);
  --chip-active-bg: var(--violet);
  --btn-ink-shadow: none;
  --register-bg: linear-gradient(90deg, rgba(124, 58, 237, 0.75), rgba(37, 99, 235, 0.75));
  --register-shadow: 0 4px 10px rgba(74, 118, 255, 0.3);
  --scroll-thumb: rgba(45, 155, 255, 0.5);
  --card-border: rgba(45, 155, 255, 0.28);
  --card-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  --badge-bg: var(--neon-yellow);
  --badge-ink: #2a2200;
  --badge-radius: 20px;
  --badge-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --pc-cat-ink: var(--neon-blue-soft);
  --price-ink: var(--neon-yellow);
  --price-glow: none;
  --add-bg: var(--neon-blue);
  --add-ink: #021026;
  --add-radius: 9px;
  --add-shadow: none;
  --cta-bg: linear-gradient(90deg, #1d4ed8, var(--neon-blue));
  --cta-ink: #fff;
  --cta-radius: 13px;
  --cta-shadow: 0 6px 20px rgba(45, 155, 255, 0.45);
  --checkout-bg: var(--neon-green);
  --checkout-ink: #04210f;
  --checkout-shadow: none;

  --modal-bg: linear-gradient(160deg, #142a5c, #0a1430);
  --modal-border: rgba(45, 155, 255, 0.5);
  --modal-shadow: 0 0 32px rgba(45, 155, 255, 0.55);
  --choice-accent: #4de3ff;
  --choice-active-border: rgba(77, 227, 255, 0.9);
  --choice-active-bg: linear-gradient(90deg, rgba(35, 138, 255, 0.3), rgba(77, 227, 255, 0.2));
  --choice-active-glow: 0 0 0 1px rgba(77, 227, 255, 0.25), 0 0 12px rgba(77, 227, 255, 0.35);

  /* Personalidad (tipografía, volumen, interacción). Los valores por defecto reproducen
     el aspecto original; un tema los redefine para cambiar de "juego", no solo de paleta. */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --font-control: initial;
  --font-digits: "Courier New", monospace;
  --display-weight: 800;
  --title-weight: bold;
  --bg-pattern: none;
  --overlay-bg: rgba(2, 4, 20, 0.94);
  --modal-backdrop: rgba(2, 4, 20, 0.86);
  --clock-title-glow: 0 0 10px rgba(255, 230, 0, 0.5);
  --digit-ink: var(--neon-yellow);
  --digit-ink-shadow: 0 0 14px rgba(255, 230, 0, 0.72), 0 2px 0 rgba(0, 0, 0, 0.4);
  --digit-radius: 8px;
  --digit-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.26), inset 0 -2px 3px rgba(0, 0, 0, 0.35);
  --heading-filter: none;
  --pointer-scale: none;
  --spin-depth: 0 0 0 transparent;
  --spin-text-scale: 1;
  --strip-radius: 12px;
  --strip-shadow: none;
  --stars-ink: rgba(255, 230, 0, 0.85);
  --stars-size: 0.55rem;
  --stars-glow: none;
  --solid-ink-shadow: none;
  --btn-transition: none;
  --btn-press: none;
  --register-shadow-active: var(--register-shadow);
  --add-press: scale(0.96);
  --add-shadow-active: var(--add-shadow);
  --cta-press: translateY(1px);
  --cta-shadow-active: var(--cta-shadow);
  --checkout-radius: 10px;
  --checkout-shadow-active: var(--checkout-shadow);
  --close-bg: rgba(255, 255, 255, 0.15);
  --close-shadow: none;
  --card-radius: 14px;
  --card-hover-lift: none;
  --card-shadow-hover: var(--card-shadow);
  --pc-img-bg: rgba(255, 255, 255, 0.05);
  --price-scale: 1;

  /* Rótulos y placas; por defecto, el aspecto original. */
  --display-transform: none;
  --font-product: var(--font-display);
  --product-weight: var(--title-weight);
  --clock-title-ink: var(--neon-yellow);
  --clock-title-bg: none;
  --clock-title-pad: 0;
  --clock-title-radius: 0;
  --clock-title-width: auto;
  --clock-title-shadow: none;
  --pc-img-divider: none;
  --checkout-disabled-opacity: 0.4;
  --display-style: normal;
  --wheel-tone: none;
  --spin-scale: none;
}

/* ============================== Tema: promo-pop ============================
   Comercial y de juego: base ciruela oscura con acentos fucsia, naranja,
   dorado, morado, turquesa y lima; botones gorditos con volumen. */
:root[data-theme="promo-pop"] {
  --bg-0: #12021f;
  --bg-1: #2c0848;
  --neon-yellow: #ffd60a;
  --panel: rgba(46, 10, 70, 0.8);
  --text: #fff6fb;
  --muted: #d4bfe6;
  --card: linear-gradient(170deg, rgba(78, 20, 112, 0.95), rgba(36, 8, 58, 0.96));

  --bg-glow: rgba(255, 61, 165, 0.3);
  --bokeh-1: rgba(255, 46, 151, 0.26);
  --bokeh-2: rgba(255, 140, 0, 0.22);
  --bokeh-3: rgba(255, 214, 10, 0.16);
  --bokeh-4: rgba(0, 229, 212, 0.18);
  --bokeh-5: rgba(163, 255, 18, 0.14);

  --clock-bg:
    radial-gradient(circle at 50% -30%, rgba(255, 196, 0, 0.35), transparent 55%),
    linear-gradient(165deg, rgba(128, 20, 124, 0.95), rgba(48, 6, 74, 0.97) 72%);
  --clock-border: #ff3ea5;
  --clock-shadow:
    0 0 0 3px rgba(255, 140, 0, 0.38),
    0 0 26px rgba(255, 62, 165, 0.7),
    inset 0 0 0 2px rgba(255, 214, 10, 0.4),
    inset 0 -10px 20px rgba(0, 0, 0, 0.34);
  --digit-bg: linear-gradient(180deg, #ff5f6d, #c2185b 55%, #7b0f4f);
  --digit-border: rgba(255, 226, 120, 0.75);

  --heading-gradient: linear-gradient(90deg, #ffd60a, #ff8a00 30%, #ff3ea5 62%, #00e5d4);
  --heading-glow: 0 0 18px rgba(255, 62, 165, 0.45);
  --rail-border: rgba(255, 214, 10, 0.85);
  --rail-dot: rgba(255, 255, 255, 0.95);
  --rail-tint: linear-gradient(180deg, rgba(255, 62, 165, 0.55), rgba(255, 138, 0, 0.42) 50%, rgba(0, 229, 212, 0.42));
  --rail-base: linear-gradient(180deg, rgba(64, 8, 84, 0.95), rgba(40, 6, 60, 0.9));
  --rail-glow-rgb: 255, 62, 165;
  --rail-glow2-rgb: 255, 196, 0;
  --wheel-glow: rgba(255, 62, 165, 0.5);
  --pointer-color: #ffd60a;
  --pointer-glow: rgba(255, 196, 0, 0.95);
  --pointer-knob: radial-gradient(circle at 35% 35%, #ffffff, #ff8ac6 70%, #c2185b);
  --pointer-knob-glow: rgba(255, 62, 165, 0.95);

  --wheel-arena-in: rgba(255, 62, 165, 0.34);
  --wheel-arena-mid: rgba(255, 138, 0, 0.18);
  --wheel-arena-out: rgba(42, 8, 69, 0);
  --wheel-sector-stroke: rgba(255, 244, 214, 0.75);
  --wheel-ring-a: #ff3ea5;
  --wheel-ring-b: #ff8a00;
  --wheel-ring-c: #9b5cff;
  --wheel-ring-glow: rgba(255, 62, 165, 0.95);
  --wheel-halo-a: rgba(0, 229, 212, 0.95);
  --wheel-halo-b: rgba(255, 214, 10, 0.95);
  --wheel-halo-c: rgba(163, 255, 18, 0.95);
  --wheel-halo-glow: rgba(0, 229, 212, 0.8);
  --wheel-bulb-a: #ffe600;
  --wheel-bulb-b: #00f5d4;
  --wheel-hub-in: rgba(128, 20, 124, 0.98);
  --wheel-hub-out: rgba(48, 6, 74, 0.98);
  --wheel-hub-stroke: rgba(255, 214, 10, 0.85);

  --spin-bg: radial-gradient(circle at 34% 26%, #ffe08a, #ff9f1c 38%, #ff3d6e 72%, #c1124f);
  --spin-ink: #ffffff;
  --spin-ink-shadow: 0 1px 0 rgba(120, 0, 40, 0.85), 0 0 6px rgba(0, 0, 0, 0.35);
  --spin-ring-rgb: 255, 214, 10;
  --spin-glow-rgb: 255, 62, 165;

  --strip-border: rgba(255, 214, 10, 0.28);
  --progress-track: linear-gradient(180deg, rgba(64, 6, 54, 0.9), rgba(30, 4, 30, 0.95));
  --progress-border: rgba(255, 196, 0, 0.6);
  --progress-glow: rgba(255, 62, 165, 0.35);
  --progress-fill:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 40%),
    linear-gradient(90deg, #ff3ea5, #ff8a00 50%, #ffd60a);
  --progress-fill-glow: rgba(255, 138, 0, 0.85);
  --progress-ink: #ffd60a;
  --odometer-bg: linear-gradient(180deg, #2b0a3d, #14031f);
  --odometer-ink: #a3ff12;

  --chip-bg: linear-gradient(90deg, rgba(255, 62, 165, 0.3), rgba(255, 138, 0, 0.3));
  --chip-active-bg: #9b5cff;
  --btn-ink-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  --register-bg: linear-gradient(180deg, #b779ff, #7b2ff7);
  --register-shadow: 0 3px 0 #4b1199, 0 6px 14px rgba(155, 92, 255, 0.5);
  --scroll-thumb: rgba(255, 62, 165, 0.6);
  --card-border: rgba(255, 214, 10, 0.45);
  --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 14px rgba(255, 62, 165, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --badge-bg: linear-gradient(90deg, #ff3ea5, #ff8a00);
  --badge-ink: #ffffff;
  --badge-radius: 4px 12px 12px 4px;
  --badge-shadow: 0 2px 8px rgba(255, 62, 165, 0.55);
  --pc-cat-ink: #00e5d4;
  --price-ink: #ffd60a;
  --price-glow: 0 0 10px rgba(255, 214, 10, 0.55);
  --add-bg: linear-gradient(180deg, #c2ff4d, #5ed400);
  --add-ink: #133300;
  --add-radius: 999px;
  --add-shadow: 0 3px 0 #2f7a00, 0 4px 10px rgba(163, 255, 18, 0.4);
  --cta-bg: linear-gradient(180deg, #ffb13b, #ff6b00 55%, #ff3d6e);
  --cta-ink: #ffffff;
  --cta-radius: 999px;
  --cta-shadow: 0 4px 0 #a3123f, 0 8px 22px rgba(255, 107, 0, 0.5);
  --checkout-bg: linear-gradient(180deg, #c2ff4d, #5ed400);
  --checkout-ink: #133300;
  --checkout-shadow: 0 4px 0 #2f7a00, 0 6px 16px rgba(163, 255, 18, 0.35);

  --modal-bg: linear-gradient(160deg, #5a1475, #24063a);
  --modal-border: rgba(255, 214, 10, 0.6);
  --modal-shadow: 0 0 34px rgba(255, 62, 165, 0.55);
  --choice-accent: #ff3ea5;
  --choice-active-border: rgba(255, 214, 10, 0.9);
  --choice-active-bg: linear-gradient(90deg, rgba(255, 62, 165, 0.35), rgba(255, 138, 0, 0.25));
  --choice-active-glow: 0 0 0 1px rgba(255, 214, 10, 0.3), 0 0 12px rgba(255, 62, 165, 0.45);
}

/* ============================== Tema: candy-prize ==========================
   Juego móvil premium: escenario violeta profundo con rayos de sol, piezas
   "de caramelo" con volumen (reflejo superior, borde interior luminoso,
   canto inferior y presión real), tipografía redondeada y gruesa. */
:root[data-theme="candy-prize"] {
  --bg-0: #14052e;
  --bg-1: #3a0f7a;
  --neon-yellow: #ffd400;
  --gold-1: #fff6c2;
  --gold-2: #ffc400;
  --gold-3: #e08600;
  --panel: linear-gradient(180deg, rgba(110, 40, 210, 0.92), rgba(62, 16, 140, 0.95));
  --text: #ffffff;
  --muted: #e6d8ff;
  --card: linear-gradient(180deg, #8a3cff 0%, #5a19d6 100%);

  --font-display: "Arial Rounded MT Bold", "Nunito", "Varela Round", "Fredoka", "Baloo 2", "Segoe UI Black", "Trebuchet MS", system-ui, sans-serif;
  --font-control: var(--font-display);
  --font-digits: var(--font-display);
  --display-weight: 900;
  --title-weight: 900;
  --bg-pattern: repeating-conic-gradient(from 0deg at 50% 46%, rgba(255, 255, 255, 0.055) 0 9deg, transparent 9deg 18deg);
  --overlay-bg: rgba(26, 6, 58, 0.96);
  --modal-backdrop: rgba(26, 6, 58, 0.88);

  --bg-glow: rgba(255, 46, 136, 0.35);
  --bokeh-1: rgba(25, 227, 255, 0.24);
  --bokeh-2: rgba(255, 46, 136, 0.28);
  --bokeh-3: rgba(255, 212, 0, 0.2);
  --bokeh-4: rgba(124, 255, 58, 0.16);
  --bokeh-5: rgba(180, 77, 255, 0.3);

  --clock-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #8b3dff, #4b12b8 75%);
  --clock-border: #ffd400;
  --clock-shadow:
    0 0 0 3px #ff2e88,
    0 6px 0 3px #9a0a52,
    0 10px 22px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(255, 46, 136, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  --clock-title-glow: 0 2px 0 #9a0a52, 0 0 12px rgba(255, 212, 0, 0.8);
  --digit-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #ff8a3d, #ff2e88 55%, #d1105a);
  --digit-border: #ffd400;
  --digit-ink: #ffffff;
  --digit-ink-shadow: 0 2px 0 #9a0a52, 0 0 8px rgba(255, 255, 255, 0.55);
  --digit-radius: 12px;
  --digit-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(140, 0, 60, 0.45), 0 3px 0 #9a0a52, 0 0 12px rgba(255, 46, 136, 0.6);

  --heading-gradient: linear-gradient(180deg, #ffffff 0%, #fff3a0 45%, #ffc400 100%);
  --heading-glow: none;
  --heading-filter: drop-shadow(0 2px 0 #b0105e) drop-shadow(0 0 10px rgba(255, 46, 136, 0.7));
  --rail-border: rgba(255, 255, 255, 0.9);
  --rail-dot: #ffffff;
  --rail-tint: linear-gradient(180deg, rgba(255, 46, 136, 0.75), rgba(255, 212, 0, 0.6) 50%, rgba(25, 227, 255, 0.7));
  --rail-base: linear-gradient(180deg, #6a1fd8, #3a0f7a);
  --rail-glow-rgb: 255, 46, 136;
  --rail-glow2-rgb: 25, 227, 255;
  --wheel-glow: rgba(255, 212, 0, 0.55);
  --pointer-color: #ffd400;
  --pointer-glow: rgba(255, 46, 136, 0.95);
  --pointer-knob: radial-gradient(circle at 35% 30%, #ffffff, #ff6fae 55%, #d1105a);
  --pointer-knob-glow: rgba(255, 255, 255, 0.95);
  --pointer-scale: 1.35;

  --wheel-arena-in: rgba(255, 212, 0, 0.3);
  --wheel-arena-mid: rgba(255, 46, 136, 0.22);
  --wheel-arena-out: rgba(58, 15, 122, 0);
  --wheel-sector-stroke: rgba(255, 255, 255, 0.9);
  --wheel-ring-a: #ff2e88;
  --wheel-ring-b: #ffd400;
  --wheel-ring-c: #19e3ff;
  --wheel-ring-glow: rgba(255, 46, 136, 0.95);
  --wheel-trim-a: #ffffff;
  --wheel-trim-b: #ffe066;
  --wheel-trim-c: #ffffff;
  --wheel-halo-a: rgba(124, 255, 58, 0.98);
  --wheel-halo-b: rgba(255, 122, 0, 0.98);
  --wheel-halo-c: rgba(180, 77, 255, 0.98);
  --wheel-halo-glow: rgba(255, 212, 0, 0.85);
  --wheel-bulb-a: #ffffff;
  --wheel-bulb-b: #ffd400;
  --wheel-hub-in: #ff4f8b;
  --wheel-hub-out: #a00a4a;
  --wheel-hub-stroke: #ffd400;

  --spin-bg:
    radial-gradient(ellipse 62% 34% at 50% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 50% 58%, #fff1a6 0 14%, #ffc400 34%, #ff5a3c 62%, #e0115f 82%, #9a0a52 100%);
  --spin-ink: #ffffff;
  --spin-ink-shadow: 0 2px 0 #9a0a52, 0 0 6px rgba(154, 10, 82, 0.8);
  --spin-ring-rgb: 255, 212, 0;
  --spin-glow-rgb: 255, 46, 136;
  --spin-depth: inset 0 -6px 10px rgba(120, 0, 50, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  --spin-text-scale: 1.2;

  --strip-radius: 18px;
  --strip-border: rgba(255, 255, 255, 0.55);
  --strip-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(30, 0, 80, 0.45), 0 4px 0 #2a0866, 0 8px 18px rgba(0, 0, 0, 0.45);
  --progress-track: linear-gradient(180deg, #24065a, #3d0f8a);
  --progress-border: #ffd400;
  --progress-glow: rgba(255, 212, 0, 0.45);
  --progress-fill:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 48%),
    linear-gradient(90deg, #7cff3a, #19e3ff 55%, #2e8bff);
  --progress-fill-glow: rgba(25, 227, 255, 0.85);
  --progress-ink: #ffd400;
  --stars-ink: #ffffff;
  --stars-size: 0.72rem;
  --stars-glow: 0 1px 0 #6a1fd8, 0 0 6px rgba(255, 212, 0, 0.95);
  --odometer-bg: linear-gradient(180deg, #ffe066, #ffb300);
  --odometer-ink: #5a1300;

  --chip-bg: linear-gradient(180deg, #ff4f8b, #d1105a);
  --chip-active-bg: #19c7e6;
  --btn-ink-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  --solid-ink-shadow: 0 1px 0 rgba(20, 70, 0, 0.55);
  --btn-transition: transform 0.08s ease, box-shadow 0.08s ease;
  --btn-press: translateY(3px);
  --register-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #2ff0ff, #0fa8d6);
  --register-shadow: 0 0 0 2px #ffffff, inset 0 -2px 0 rgba(0, 60, 100, 0.35), 0 4px 0 2px #076a8f, 0 8px 14px rgba(0, 0, 0, 0.4);
  --register-shadow-active: 0 0 0 2px #ffffff, inset 0 -2px 0 rgba(0, 60, 100, 0.35), 0 1px 0 2px #076a8f, 0 3px 8px rgba(0, 0, 0, 0.35);
  --scroll-thumb: #ffd400;

  --card-radius: 20px;
  --card-border: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 0 0 2px #ffd400, inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 5px 0 2px #3a0b8c, 0 10px 20px rgba(0, 0, 0, 0.45);
  --card-hover-lift: translateY(-4px);
  --card-shadow-hover: 0 0 0 2px #ffd400, inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 9px 0 2px #3a0b8c, 0 16px 26px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 212, 0, 0.55);
  --pc-img-bg: radial-gradient(circle at 50% 45%, #ffffff 0, #ffe1f0 45%, #ffb6d9 100%);
  --badge-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #ff4f8b, #e0115f);
  --badge-ink: #ffffff;
  --badge-radius: 999px;
  --badge-shadow: 0 0 0 2px #ffffff, 0 3px 0 2px #9a0a52, 0 4px 10px rgba(0, 0, 0, 0.4);
  --pc-cat-ink: #7cff3a;
  --price-ink: #ffd400;
  --price-glow: 0 2px 0 #3a0b8c, 0 0 10px rgba(255, 212, 0, 0.6);
  --price-scale: 1.18;
  --add-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #9dff4a, #3fc21a);
  --add-ink: #ffffff;
  --add-radius: 14px;
  --add-shadow: 0 0 0 2px #ffffff, inset 0 -2px 0 rgba(20, 90, 0, 0.35), 0 3px 0 2px #1f7a08;
  --add-press: translateY(2px);
  --add-shadow-active: 0 0 0 2px #ffffff, inset 0 -2px 0 rgba(20, 90, 0, 0.35), 0 1px 0 2px #1f7a08;
  --cta-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #ff6b8b, #ff2e63 50%, #d1104a);
  --cta-ink: #ffffff;
  --cta-radius: 18px;
  --cta-shadow: 0 0 0 2px #ffffff, inset 0 -3px 0 rgba(120, 0, 40, 0.35), 0 5px 0 2px #8f0a35, 0 10px 18px rgba(255, 46, 99, 0.45);
  --cta-press: translateY(4px);
  --cta-shadow-active: 0 0 0 2px #ffffff, inset 0 -3px 0 rgba(120, 0, 40, 0.35), 0 1px 0 2px #8f0a35, 0 4px 10px rgba(255, 46, 99, 0.35);
  --checkout-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #9dff4a, #3fc21a);
  --checkout-ink: #ffffff;
  --checkout-radius: 18px;
  --checkout-shadow: 0 0 0 2px #ffffff, inset 0 -3px 0 rgba(20, 90, 0, 0.35), 0 5px 0 2px #1f7a08, 0 10px 18px rgba(0, 0, 0, 0.35);
  --checkout-shadow-active: 0 0 0 2px #ffffff, inset 0 -3px 0 rgba(20, 90, 0, 0.35), 0 1px 0 2px #1f7a08, 0 4px 10px rgba(0, 0, 0, 0.3);
  --close-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #b44dff, #6a1fd8);
  --close-shadow: 0 0 0 2px #ffffff, 0 4px 0 2px #3a0b8c;

  --modal-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #7a2cf0, #3d0f9a);
  --modal-border: #ffd400;
  --modal-shadow: 0 0 0 3px #ff2e88, 0 8px 0 3px #6a0a3c, 0 0 36px rgba(255, 46, 136, 0.6);
  --choice-accent: #7cff3a;
  --choice-active-border: #ffd400;
  --choice-active-bg: linear-gradient(180deg, rgba(255, 212, 0, 0.35), rgba(255, 46, 136, 0.3));
  --choice-active-glow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 14px rgba(255, 212, 0, 0.55);
}

/* ============================== Tema: casino-pop ============================
   Casino promocional / tragamonedas: escenario azul eléctrico, placas royal con
   marco de oro, rojo para llamadas, lima para acciones positivas y oro para
   premios; botones grandes 3D con reflejo superior, canto inferior y presión física. */
:root[data-theme="casino-pop"] {
  --bg-0: #020a4a;
  --bg-1: #0b2fd6;
  --neon-yellow: #ffd400;
  --panel: linear-gradient(180deg, #1d4dff, #0a24a8);
  --text: #ffffff;
  --muted: #c9d8ff;
  --card: linear-gradient(180deg, #1a4bff 0%, #0b28b8 55%, #061a7a 100%);

  --font-display: "Arial Black", "Segoe UI Black", "Arial Bold", Arial, sans-serif;
  --font-product: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-control: var(--font-product);
  --font-digits: var(--font-display);
  --display-weight: 900;
  --title-weight: 900;
  --product-weight: 700;
  --display-transform: uppercase;
  --bg-pattern:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 26px);
  --overlay-bg: rgba(2, 10, 74, 0.96);
  --modal-backdrop: rgba(2, 10, 74, 0.88);

  --bg-glow: rgba(0, 200, 255, 0.35);
  --bokeh-1: rgba(0, 220, 255, 0.22);
  --bokeh-2: rgba(255, 40, 40, 0.2);
  --bokeh-3: rgba(255, 212, 0, 0.2);
  --bokeh-4: rgba(125, 255, 42, 0.14);
  --bokeh-5: rgba(80, 120, 255, 0.3);

  --clock-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 38%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 200, 255, 0.45), transparent 60%),
    linear-gradient(180deg, #2a62ff, #0c2fc4 55%, #061a86);
  --clock-border: #ffe066;
  --clock-shadow:
    inset 0 0 0 2px #b97800,
    inset 0 0 0 4px rgba(255, 255, 255, 0.35),
    inset 0 0 22px rgba(0, 180, 255, 0.55),
    0 0 0 2px #ffc800,
    0 0 0 3px #8a5200,
    0 3px 0 3px #02104f,
    0 8px 18px rgba(0, 0, 0, 0.5);
  --clock-title-ink: #ffffff;
  --clock-title-glow: 0 2px 0 #7a0000;
  --clock-title-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #ff3b3b, #d10000 60%, #8f0000);
  --clock-title-pad: 0 14px;
  --clock-title-radius: 999px;
  --clock-title-width: fit-content;
  --clock-title-shadow: 0 0 0 2px #ffd400, 0 3px 0 2px #8a5200;
  --digit-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #071463, #020833);
  --digit-border: #ffd400;
  --digit-ink: #ffe14d;
  --digit-ink-shadow: 0 2px 0 #9a5c00, 0 0 12px rgba(255, 212, 0, 0.65);
  --digit-shadow: inset 0 0 0 1px #8a5200, inset 0 -4px 6px rgba(0, 0, 0, 0.5), 0 3px 0 #02104f;

  --heading-gradient: linear-gradient(180deg, #ffffff 0%, #fff3a0 40%, #ffc800 70%, #ff9500 100%);
  --heading-glow: none;
  --heading-filter: drop-shadow(0 2px 0 #c40000) drop-shadow(0 2px 0 #02104f) drop-shadow(0 0 8px rgba(0, 200, 255, 0.6));
  --rail-border: #ffd400;
  --rail-dot: #ffffff;
  --rail-tint: linear-gradient(180deg, rgba(0, 220, 255, 0.55), rgba(40, 90, 255, 0.5) 50%, rgba(255, 40, 40, 0.45));
  --rail-base: linear-gradient(180deg, #0c2fc4, #061a86);
  --rail-glow-rgb: 0, 200, 255;
  --rail-glow2-rgb: 255, 212, 0;
  --wheel-glow: rgba(0, 200, 255, 0.55);
  --pointer-color: #ffd400;
  --pointer-glow: rgba(255, 200, 0, 0.9);
  --pointer-knob: radial-gradient(circle at 35% 30%, #ffffff, #ff4d4d 45%, #b00000);
  --pointer-knob-glow: rgba(255, 60, 60, 0.95);
  --pointer-scale: 1.25;

  --wheel-arena-in: rgba(0, 200, 255, 0.3);
  --wheel-arena-mid: rgba(40, 90, 255, 0.25);
  --wheel-arena-out: rgba(2, 10, 74, 0);
  --wheel-sector-stroke: rgba(255, 230, 120, 0.95);
  --wheel-ring-a: #2a62ff;
  --wheel-ring-b: #0a2fd0;
  --wheel-ring-c: #4d8bff;
  --wheel-ring-glow: rgba(0, 200, 255, 0.9);
  --wheel-trim-a: #fff6b8;
  --wheel-trim-b: #ffc800;
  --wheel-trim-c: #c27a00;
  --wheel-halo-a: #ffd400;
  --wheel-halo-b: #fff3a0;
  --wheel-halo-c: #ff9500;
  --wheel-halo-glow: rgba(255, 200, 0, 0.8);
  --wheel-bulb-a: #ffffff;
  --wheel-bulb-b: #ff3b3b;
  --wheel-hub-in: #2a62ff;
  --wheel-hub-out: #061a86;
  --wheel-hub-stroke: #ffd400;

  --spin-bg:
    radial-gradient(ellipse 60% 32% at 50% 18%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 50% 60%, #9dff5a 0, #2fd12f 40%, #0a9a2a 72%, #04621a 100%);
  --spin-ink: #ffffff;
  --spin-ink-shadow: 0 2px 0 #034a14, 0 0 4px #034a14;
  --spin-ring-rgb: 255, 212, 0;
  --spin-glow-rgb: 0, 220, 255;
  --spin-depth: inset 0 0 0 3px #ffd400, inset 0 0 0 5px #8a5200, inset 0 -6px 10px rgba(0, 60, 10, 0.6);
  --spin-text-scale: 1.2;

  --strip-radius: 14px;
  --strip-border: #ffd400;
  --strip-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 0 14px rgba(0, 200, 255, 0.35), 0 4px 0 #02104f;
  --progress-track: linear-gradient(180deg, #020833, #071463);
  --progress-border: #ffd400;
  --progress-glow: rgba(255, 212, 0, 0.4);
  --progress-fill:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 45%),
    linear-gradient(90deg, #ff2d2d, #ffd400 50%, #7dff2a);
  --progress-fill-glow: rgba(255, 212, 0, 0.8);
  --progress-ink: #ffd400;
  --stars-ink: #ffffff;
  --stars-size: 0.7rem;
  --stars-glow: -1px -1px 0 #02104f, 1px -1px 0 #02104f, -1px 1px 0 #02104f, 1px 1px 0 #02104f, 0 0 6px rgba(255, 212, 0, 0.9);
  --odometer-bg: linear-gradient(180deg, #ff4d4d, #c40000);
  --odometer-ink: #ffffff;

  --chip-bg: linear-gradient(180deg, #0a2fd0, #061a86);
  --chip-active-bg: #e00000;
  --btn-ink-shadow: 0 2px 0 rgba(0, 0, 40, 0.55);
  --btn-transition: transform 0.07s ease-out, box-shadow 0.07s ease-out;
  --btn-press: translateY(3px);
  --register-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #4d95ff, #1450ff 55%, #0a2fb8);
  --register-shadow: 0 0 0 2px #ffd400, 0 3px 0 2px #02104f, 0 6px 12px rgba(0, 0, 0, 0.4);
  --register-shadow-active: 0 0 0 2px #ffd400, 0 0 0 2px #02104f, 0 2px 6px rgba(0, 0, 0, 0.35);
  --scroll-thumb: #ffd400;

  --card-radius: 12px;
  --card-border: #ffd400;
  --card-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #02104f, 0 6px 14px rgba(0, 0, 0, 0.45);
  --card-hover-lift: translateY(-3px);
  --card-shadow-hover: inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 7px 0 #02104f, 0 12px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 212, 0, 0.6);
  --pc-img-bg: radial-gradient(circle at 50% 42%, #5aa0ff 0, #1d4dff 45%, #0a24a8 100%);
  --pc-img-divider: 3px solid #ffd400;
  --badge-bg: linear-gradient(180deg, #ff4d4d, #d10000);
  --badge-ink: #ffffff;
  --badge-radius: 6px;
  --badge-shadow: 0 0 0 2px #ffd400, 0 2px 6px rgba(0, 0, 0, 0.45);
  --pc-cat-ink: #7ff3ff;
  --price-ink: #ffd400;
  --price-glow: 0 2px 0 #7a4a00, 0 0 8px rgba(255, 212, 0, 0.5);
  --price-scale: 0.95;
  --add-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #d4ff4a, #8fe600 55%, #5cb800);
  --add-ink: #021060;
  --add-radius: 10px;
  --add-shadow: 0 0 0 2px #021060, 0 3px 0 2px #021060;
  --add-press: translateY(2px);
  --add-shadow-active: 0 0 0 2px #021060, 0 1px 0 2px #021060;
  --cta-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #ff4d4d, #e00000 55%, #9a0000);
  --cta-ink: #ffffff;
  --cta-radius: 14px;
  --cta-shadow: inset 0 0 0 2px #ffd400, inset 0 0 0 4px #8a0000, inset 0 -4px 0 4px rgba(90, 0, 0, 0.35), 0 3px 0 #5a0000;
  --cta-press: translateY(3px);
  --cta-shadow-active: inset 0 0 0 2px #ffd400, inset 0 0 0 4px #8a0000, inset 0 -4px 0 4px rgba(90, 0, 0, 0.35), 0 0 0 #5a0000;
  --checkout-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #d4ff4a, #8fe600 55%, #5cb800);
  --checkout-ink: #021060;
  --checkout-radius: 14px;
  --checkout-shadow: 0 0 0 2px #021060, 0 0 0 4px #ffd400, 0 5px 0 4px #8a5200, 0 10px 18px rgba(0, 0, 0, 0.35);
  --checkout-shadow-active: 0 0 0 2px #021060, 0 0 0 4px #ffd400, 0 1px 0 4px #8a5200, 0 4px 10px rgba(0, 0, 0, 0.3);
  --checkout-disabled-opacity: 0.65;
  --close-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #ff4d4d, #d10000);
  --close-shadow: 0 0 0 2px #ffd400, 0 3px 0 2px #7a0000;

  --modal-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #1d4dff, #0a24a8 60%, #061a86);
  --modal-border: #ffd400;
  --modal-shadow: 0 0 0 3px #8a5200, 0 8px 0 3px #02104f, 0 0 36px rgba(0, 200, 255, 0.5);
  --choice-accent: #ffd400;
  --choice-active-border: #ffd400;
  --choice-active-bg: linear-gradient(180deg, rgba(255, 212, 0, 0.3), rgba(0, 200, 255, 0.2));
  --choice-active-glow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 12px rgba(255, 212, 0, 0.5);
}

/* ============================== Tema: casino-vivid ==========================
   Casino promocional intenso: fondo azul noche profundo; paneles azul royal
   brillante con marco oro; oro para premios, rojo para llamadas, lima para
   acciones, cian como acento y ruleta saturada con metal dorado y JUGAR ampliado. */
:root[data-theme="casino-vivid"] {
  --bg-0: #03041a;
  --bg-1: #0c1660;
  --neon-yellow: #ffd000;
  --panel:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, #2142d6, #12229a 60%, #0b1670);
  --text: #ffffff;
  --muted: #dfe6ff;
  --card: linear-gradient(180deg, #1a34c8 0%, #10208f 55%, #081257 100%);

  --font-display: "Segoe UI Black", "Segoe UI", "Arial Black", system-ui, sans-serif;
  --font-control: var(--font-display);
  --font-digits: "Arial Black", "Segoe UI Black", Arial, sans-serif;
  --font-product: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display-weight: 900;
  --title-weight: 900;
  --product-weight: 700;
  --display-transform: uppercase;
  --display-style: italic;
  --bg-pattern:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0 1px, transparent 2px) 0 0 / 34px 34px,
    radial-gradient(circle at 70% 70%, rgba(255, 214, 0, 0.12) 0 1px, transparent 2px) 0 0 / 52px 52px,
    radial-gradient(ellipse at 15% 20%, rgba(60, 50, 220, 0.3), transparent 45%),
    radial-gradient(ellipse at 85% 35%, rgba(0, 200, 255, 0.12), transparent 40%);
  --overlay-bg: rgba(3, 4, 26, 0.96);
  --modal-backdrop: rgba(3, 4, 26, 0.88);

  --bg-glow: rgba(0, 110, 255, 0.32);
  --bokeh-1: rgba(255, 200, 0, 0.16);
  --bokeh-2: rgba(0, 220, 255, 0.16);
  --bokeh-3: rgba(255, 214, 0, 0.14);
  --bokeh-4: rgba(70, 60, 255, 0.26);
  --bokeh-5: rgba(255, 50, 40, 0.16);

  --clock-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 34%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 200, 255, 0.3), transparent 60%),
    linear-gradient(180deg, #3566ff, #1d44e6 50%, #1230b8);
  --clock-border: #ffe680;
  --clock-shadow:
    inset 0 0 0 2px #a36a00,
    inset 0 0 0 4px rgba(255, 255, 255, 0.35),
    inset 0 0 18px rgba(255, 200, 0, 0.3),
    0 0 0 2px #ff1f4b,
    0 0 0 3px #ffe066,
    0 3px 0 3px #02031a,
    0 8px 20px rgba(0, 0, 0, 0.6),
    0 0 22px rgba(255, 200, 0, 0.35);
  --clock-title-ink: #7a0010;
  --clock-title-glow: 0 1px 0 rgba(255, 255, 255, 0.6);
  --clock-title-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #fff3a0, #ffc400 55%, #e08a00);
  --clock-title-pad: 0 16px;
  --clock-title-radius: 999px;
  --clock-title-width: fit-content;
  --clock-title-shadow: 0 0 0 2px #ff1f4b, 0 3px 0 2px #7a0010, 0 0 12px rgba(255, 200, 0, 0.6);
  --digit-bg:
    radial-gradient(circle at 5px 5px, #ff3b6b 0 1.5px, transparent 2.2px),
    radial-gradient(circle at calc(100% - 5px) 5px, #3df5ff 0 1.5px, transparent 2.2px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #0b0d33, #02020f);
  --digit-border: #ffe066;
  --digit-ink: #fff27a;
  --digit-ink-shadow: 0 2px 0 #b35c00, 0 0 12px rgba(255, 210, 0, 0.8);
  --digit-shadow: inset 0 0 0 1px #ff1f4b, inset 0 -5px 8px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 200, 0, 0.35), 0 3px 0 #02031a;

  --heading-gradient: linear-gradient(180deg, #ffffff 0%, #fff27a 35%, #ffc400 65%, #ff7a00 100%);
  --heading-glow: none;
  --heading-filter: drop-shadow(0 2px 0 #c4001f) drop-shadow(0 2px 0 #02031a) drop-shadow(0 0 10px rgba(255, 170, 0, 0.6));
  --rail-border: #ffd84a;
  --rail-dot: #ffffff;
  --rail-tint: linear-gradient(180deg, rgba(255, 40, 50, 0.65), rgba(255, 200, 0, 0.6) 50%, rgba(0, 230, 255, 0.65));
  --rail-base: linear-gradient(180deg, #1a2a9a, #060a3a);
  --rail-glow-rgb: 255, 200, 0;
  --rail-glow2-rgb: 0, 230, 255;
  --wheel-glow: rgba(255, 190, 0, 0.45);
  --wheel-tone: saturate(1.3) contrast(1.08);
  --pointer-color: #ffd000;
  --pointer-glow: rgba(255, 70, 40, 0.9);
  --pointer-knob: radial-gradient(circle at 35% 30%, #ffffff, #ff4b4b 45%, #a3001a);
  --pointer-knob-glow: rgba(255, 60, 60, 0.9);
  --pointer-scale: 1.2;

  --wheel-arena-in: rgba(255, 200, 0, 0.22);
  --wheel-arena-mid: rgba(40, 90, 255, 0.35);
  --wheel-arena-out: rgba(3, 4, 26, 0);
  --wheel-sector-stroke: #ffe066;
  --wheel-ring-a: #fff1a0;
  --wheel-ring-b: #d99a00;
  --wheel-ring-c: #ffe066;
  --wheel-ring-glow: rgba(255, 200, 0, 0.95);
  --wheel-trim-a: #ff1f2b;
  --wheel-trim-b: #ff7a1f;
  --wheel-trim-c: #ff1f2b;
  --wheel-halo-a: #00e5ff;
  --wheel-halo-b: #ffd000;
  --wheel-halo-c: #7dff2a;
  --wheel-halo-glow: rgba(0, 229, 255, 0.85);
  --wheel-bulb-a: #ffffff;
  --wheel-bulb-b: #3df5ff;
  --wheel-hub-in: #1a34c8;
  --wheel-hub-out: #060a3a;
  --wheel-hub-stroke: #ffd000;

  --spin-scale: 1.15;
  --spin-bg:
    radial-gradient(ellipse 58% 30% at 50% 17%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 50% 55%, #eaff7a 0, #6dff3a 22%, #13d13f 50%, #068a2e 78%, #034d1c 100%);
  --spin-ink: #ffffff;
  --spin-ink-shadow: 0 2px 0 #023d14, 0 0 5px #023d14;
  --spin-ring-rgb: 255, 200, 0;
  --spin-glow-rgb: 125, 255, 42;
  --spin-depth: inset 0 0 0 3px #ffd84a, inset 0 0 0 5px #a36a00, inset 0 0 0 7px rgba(255, 255, 255, 0.5), inset 0 -7px 10px rgba(0, 60, 10, 0.6);
  --spin-text-scale: 1.25;

  --strip-radius: 16px;
  --strip-border: #ffd84a;
  --strip-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px #ff1f2b, inset 0 0 14px rgba(255, 200, 0, 0.22), 0 4px 0 #02031a;
  --progress-track: linear-gradient(180deg, #02031a, #0c1660);
  --progress-border: #ffd84a;
  --progress-glow: rgba(255, 200, 0, 0.4);
  --progress-fill:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 45%),
    linear-gradient(90deg, #ff3b1f, #ffc400 30%, #7dff2a 70%, #00e5ff);
  --progress-fill-glow: rgba(255, 200, 0, 0.7);
  --progress-ink: #9dff3a;
  --stars-ink: #ffffff;
  --stars-size: 0.74rem;
  --stars-glow: -1px -1px 0 #02031a, 1px -1px 0 #02031a, -1px 1px 0 #02031a, 1px 1px 0 #02031a, 0 0 7px rgba(255, 214, 0, 0.95);
  --odometer-bg: linear-gradient(180deg, #ffe066, #ffb000);
  --odometer-ink: #5a0010;

  --chip-bg: linear-gradient(180deg, #2f5bff, #1630b8);
  --chip-active-bg: #ff1f2b;
  --btn-ink-shadow: 0 2px 0 rgba(0, 0, 40, 0.55);
  --btn-transition: transform 0.08s ease-out, box-shadow 0.08s ease-out;
  --btn-press: translateY(3px);
  --register-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #1fb8ff, #0a6fe0 55%, #0840b0);
  --register-shadow: 0 0 0 2px #ffd84a, 0 3px 0 2px #02031a, 0 6px 14px rgba(0, 170, 255, 0.45);
  --register-shadow-active: 0 0 0 2px #ffd84a, 0 0 0 2px #02031a, 0 2px 6px rgba(0, 170, 255, 0.35);
  --scroll-thumb: #ffd000;

  --card-radius: 16px;
  --card-border: #ffd84a;
  --card-shadow: 0 0 0 1px #2f5bff, inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 #ffc400, 0 5px 0 #02031a, 0 8px 16px rgba(0, 0, 0, 0.6);
  --card-hover-lift: translateY(-4px);
  --card-shadow-hover: 0 0 0 1px #2f5bff, inset 0 0 0 1px rgba(255, 255, 255, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 0 #ffc400, 0 9px 0 #02031a, 0 14px 22px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 214, 0, 0.65);
  --pc-img-bg:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 50% 50%, #3d74ff 0, #1d44e6 45%, #0d1f8a 100%);
  --pc-img-divider: 3px solid #ffd84a;
  --badge-bg: linear-gradient(180deg, #ff8a1f, #ff1f4b);
  --badge-ink: #ffffff;
  --badge-radius: 999px;
  --badge-shadow: 0 0 0 2px #ffd84a, 0 2px 6px rgba(0, 0, 0, 0.45);
  --pc-cat-ink: #4df0ff;
  --price-ink: #ffe23d;
  --price-glow: 0 2px 0 #a34a00, 0 0 10px rgba(255, 200, 0, 0.7);
  --price-scale: 0.95;
  --add-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #e2ff5c, #9dff1a 50%, #4fc400);
  --add-ink: #062100;
  --add-radius: 10px;
  --add-shadow: 0 0 0 2px #0b3d00, inset 0 -2px 0 rgba(0, 60, 0, 0.35), 0 3px 0 2px #0b3d00, 0 5px 8px rgba(0, 0, 0, 0.4);
  --add-press: translateY(2px);
  --add-shadow-active: 0 0 0 2px #0b3d00, inset 0 -2px 0 rgba(0, 60, 0, 0.35), 0 1px 0 2px #0b3d00, 0 2px 4px rgba(0, 0, 0, 0.35);
  --cta-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #ff8a1f, #ff2d2d 45%, #c4001f 80%, #8a0018);
  --cta-ink: #ffffff;
  --cta-radius: 16px;
  --cta-shadow: inset 0 0 0 2px #ffd84a, inset 0 0 0 4px #9a0018, inset 0 -6px 0 4px rgba(90, 0, 0, 0.35), 0 3px 0 #4a000c, 0 0 16px rgba(255, 60, 30, 0.55);
  --cta-press: translateY(3px);
  --cta-shadow-active: inset 0 0 0 2px #ffd84a, inset 0 0 0 4px #9a0018, inset 0 -6px 0 4px rgba(90, 0, 0, 0.35), 0 0 0 #4a000c, 0 0 10px rgba(255, 60, 30, 0.45);
  --checkout-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #e2ff5c, #9dff1a 50%, #4fc400);
  --checkout-ink: #062100;
  --checkout-radius: 16px;
  --checkout-shadow: 0 0 0 2px #0b3d00, 0 0 0 4px #ffd84a, 0 6px 0 4px #a35a00, 0 12px 20px rgba(0, 0, 0, 0.4);
  --checkout-shadow-active: 0 0 0 2px #0b3d00, 0 0 0 4px #ffd84a, 0 2px 0 4px #a35a00, 0 4px 10px rgba(0, 0, 0, 0.3);
  --checkout-disabled-opacity: 0.65;
  --close-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #ff4b3b, #c4001f);
  --close-shadow: 0 0 0 2px #ffd84a, 0 3px 0 2px #5a0010;

  --modal-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 30%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 200, 255, 0.3), transparent 60%),
    linear-gradient(180deg, #2a52f0, #1428a8 60%, #0b1670);
  --modal-border: #ffd84a;
  --modal-shadow: 0 0 0 3px #ff1f2b, 0 8px 0 3px #02031a, 0 0 40px rgba(255, 200, 0, 0.4);
  --choice-accent: #7dff2a;
  --choice-active-border: #ffd84a;
  --choice-active-bg: linear-gradient(180deg, rgba(255, 214, 0, 0.3), rgba(0, 229, 255, 0.2));
  --choice-active-glow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 14px rgba(255, 214, 0, 0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    var(--bg-pattern),
    radial-gradient(circle at 50% 115%, var(--bg-glow), transparent 45%),
    linear-gradient(165deg, var(--bg-1), var(--bg-0) 70%);
  overflow: hidden;
}
.clock-title, .wheel-heading, .delivery-head h2, .catalog-sheet-head h2, .pc-price, .modal-card h2, .modal-card h3 {
  font-family: var(--font-display);
}
.wheel-heading, .delivery-head h2, .catalog-sheet-head h2, .modal-card h2 { text-transform: var(--display-transform); font-style: var(--display-style); }
.pc-name { font-family: var(--font-product); }
/* Sin --font-control los botones conservan la fuente nativa del navegador. */
button { font-family: var(--font-control, revert); }

.bokeh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, var(--bokeh-1), transparent 12%),
    radial-gradient(circle at 82% 18%, var(--bokeh-2), transparent 14%),
    radial-gradient(circle at 30% 42%, var(--bokeh-3), transparent 10%),
    radial-gradient(circle at 70% 60%, var(--bokeh-4), transparent 12%),
    radial-gradient(circle at 50% 88%, var(--bokeh-5), transparent 16%);
  filter: blur(2px);
}

/* ============================== Layout base (portrait) ==================== */
.stage {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; margin: 0 auto;
  height: 100svh; height: 100dvh;
  display: grid;
  grid-template-rows: 14fr 38fr 48fr;
  grid-template-areas: "clock" "wheel" "delivery";
  gap: 5px;
  padding: 6px 10px calc(3px + env(safe-area-inset-bottom));
  overflow: hidden;
}
.zone { min-width: 0; min-height: 0; }
.zone-clock { grid-area: clock; display: flex; align-items: flex-start; justify-content: center; padding-top: 2px; }
.zone-wheel { grid-area: wheel; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; padding-top: 0; }
.zone-delivery {
  grid-area: delivery;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 2px;
  overflow: hidden;
  padding-bottom: 2px;
}

/* ============================== ZONA 1: reloj ============================= */
.clock-frame {
  position: relative; width: 100%; text-align: center;
  padding: clamp(5px, 1.2vh, 10px) clamp(30px, 7vw, 48px);
  border-radius: 20px;
  background: var(--clock-bg);
  border: 2px solid var(--clock-border);
  box-shadow: var(--clock-shadow);
  overflow: hidden;
}
.clock-title {
  color: var(--clock-title-ink); font-weight: var(--display-weight); letter-spacing: 2.4px;
  font-size: clamp(0.72rem, 3vw, 0.9rem); text-shadow: var(--clock-title-glow);
  width: var(--clock-title-width); margin-inline: auto; padding: var(--clock-title-pad);
  background: var(--clock-title-bg); border-radius: var(--clock-title-radius); box-shadow: var(--clock-title-shadow);
}
.clock-digits { display: flex; align-items: flex-start; justify-content: center; gap: clamp(1px, 1.1vw, 6px); margin: 2px 0 1px; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.cd-unit b {
  font-family: var(--font-digits); font-weight: 800; line-height: 1;
  font-size: clamp(1.28rem, 7.6vw, 2.5rem);
  color: var(--digit-ink);
  text-shadow: var(--digit-ink-shadow);
  padding: 3px 6px;
  border-radius: var(--digit-radius);
  background: var(--digit-bg);
  border: 1px solid var(--digit-border);
  box-shadow: var(--digit-shadow);
}
.cd-unit span { font-size: clamp(0.4rem, 1.55vw, 0.56rem); letter-spacing: 1.2px; color: var(--muted); margin-top: 1px; }
.cd-sep { font-style: normal; font-weight: 800; color: var(--neon-yellow); font-size: clamp(0.82rem, 4.5vw, 1.7rem); line-height: 1; }
.clock-subtitle { color: var(--text); font-size: clamp(0.55rem, 2.05vw, 0.72rem); opacity: 0.85; }
.clock-side {
  position: absolute; top: 7px; bottom: 7px; width: clamp(20px, 5.2vw, 30px);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 224, 115, 0.16), rgba(255, 193, 7, 0.06));
  border: 1px solid rgba(255, 216, 112, 0.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  box-shadow: inset 0 0 0 2px rgba(255, 225, 130, 0.14), 0 0 14px rgba(255, 209, 91, 0.46);
}
.clock-side::before,
.clock-side::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 54%;
  transform: translateY(-50%); border-top: 2px solid rgba(255, 220, 125, 0.85); border-bottom: 2px solid rgba(255, 220, 125, 0.85);
}
.clock-side--left { left: 10px; }
.clock-side--left::before { left: -6px; border-left: 2px solid rgba(255, 220, 125, 0.85); border-radius: 10px 0 0 10px; }
.clock-side--left::after { left: 1px; border-left: 2px solid rgba(255, 220, 125, 0.4); border-radius: 8px 0 0 8px; }
.clock-side--right { right: 10px; }
.clock-side--right::before { right: -6px; border-right: 2px solid rgba(255, 220, 125, 0.85); border-radius: 0 10px 10px 0; }
.clock-side--right::after { right: 1px; border-right: 2px solid rgba(255, 220, 125, 0.4); border-radius: 0 8px 8px 0; }
.clock-side i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #ffe26a;
  box-shadow: 0 0 8px rgba(255, 222, 106, 0.95);
  animation: dotBlink 1.1s ease-in-out infinite;
}
.clock-side i:nth-child(2) { animation-delay: 0.18s; }
.clock-side i:nth-child(3) { animation-delay: 0.36s; }

/* ============================== ZONA 2: ruleta ============================ */
.wheel-heading {
  flex: 0 0 auto; text-align: center; font-weight: var(--display-weight);
  font-size: clamp(0.78rem, 3.6vw, 1.18rem);
  background: var(--heading-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: var(--heading-glow);
  filter: var(--heading-filter);
  margin-bottom: 2px;
}
.wheel-wrap {
  position: relative; flex: 1 1 auto; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
  isolation: isolate;
  filter: var(--wheel-tone);
}
.wheel-wrap::before,
.wheel-wrap::after {
  content: "";
  position: absolute;
  top: 14%;
  bottom: 14%;
  width: clamp(10px, 2.2vw, 14px);
  border-radius: 12px;
  border: 1px solid var(--rail-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.02) 36%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(72, 160, 255, 0.3), rgba(120, 76, 255, 0.4) 50%, rgba(255, 60, 220, 0.24)),
    linear-gradient(180deg, rgba(9, 21, 62, 0.95), rgba(7, 28, 78, 0.9));
  box-shadow:
    0 0 14px rgba(var(--rail-glow-rgb), 0.56),
    0 0 24px rgba(var(--rail-glow2-rgb), 0.28),
    inset 0 0 12px rgba(151, 188, 255, 0.22),
    inset 0 -8px 12px rgba(0, 0, 0, 0.35);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  animation: sideNeon3d 2.5s ease-in-out infinite, sideFlow 1.2s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.wheel-wrap::before {
  background-image:
    radial-gradient(circle at 50% 11%, var(--rail-dot) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 28%, var(--rail-dot) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 45%, var(--rail-dot) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 62%, var(--rail-dot) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 79%, var(--rail-dot) 0 2px, transparent 3px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.02) 36%, rgba(255, 255, 255, 0) 60%),
    var(--rail-tint),
    var(--rail-base);
}
.wheel-wrap::after {
  background-image:
    radial-gradient(circle at 50% 16%, var(--rail-dot) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 33%, var(--rail-dot) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, var(--rail-dot) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 67%, var(--rail-dot) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 84%, var(--rail-dot) 0 2px, transparent 3px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.02) 36%, rgba(255, 255, 255, 0) 60%),
    var(--rail-tint),
    var(--rail-base);
}
.wheel-wrap::before { left: clamp(1px, 1vw, 8px); }
.wheel-wrap::after { right: clamp(1px, 1vw, 8px); animation-delay: 0.55s; }
#wheel {
  height: 100%; width: auto; max-width: 100%; aspect-ratio: 1; display: block;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px var(--wheel-glow));
  position: relative; z-index: 2;
}
.wheel-pointer {
  position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%); transform-origin: 50% 8%;
  scale: var(--pointer-scale);
  z-index: 4; width: 42px; height: 42px;
  filter: drop-shadow(0 0 12px var(--pointer-glow));
}
.wheel-pointer::before {
  content: "";
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 30px solid var(--pointer-color);
  filter: drop-shadow(0 0 12px var(--pointer-glow));
}
.wheel-pointer::after {
  content: "";
  position: absolute; left: 50%; top: 4px;
  transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pointer-knob);
  box-shadow: 0 0 11px var(--pointer-knob-glow);
}
.wheel-pointer.tick { animation: pointerTick 120ms cubic-bezier(.17,.84,.44,1.06); }
.spin-btn {
  cursor: pointer; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--spin-bg);
  box-shadow: var(--spin-depth), 0 0 0 4px rgba(255, 255, 255, 0.28), 0 0 0 8px rgba(var(--spin-ring-rgb), 0.4), 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 24px rgba(var(--spin-glow-rgb), 0.5);
  color: var(--spin-ink); text-shadow: var(--spin-ink-shadow); font-weight: 900; animation: pulse 2s infinite;
}
.spin-btn--hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  scale: var(--spin-scale);
  width: clamp(56px, 16.5%, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 5;
}
.spin-btn:disabled { animation: none; opacity: 0.9; cursor: default; }
.spin-tri { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid var(--spin-ink); margin-left: 2px; }
.spin-txt { font-size: calc(clamp(0.5rem, 1.9vw, 0.68rem) * var(--spin-text-scale)); line-height: 1; letter-spacing: 0.45px; }
@keyframes pointerTick {
  0% { transform: translateX(-50%) rotate(0deg); }
  45% { transform: translateX(-50%) rotate(-11deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}
@keyframes dotBlink {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.45; }
}
@keyframes sideNeon3d {
  0%, 100% {
    opacity: 0.88;
    box-shadow:
      0 0 12px rgba(var(--rail-glow-rgb), 0.52),
      0 0 20px rgba(var(--rail-glow2-rgb), 0.22),
      inset 0 0 10px rgba(165, 214, 255, 0.16),
      inset 0 -8px 10px rgba(0, 0, 0, 0.3);
  }
  50% {
    opacity: 1;
    box-shadow:
      0 0 18px rgba(var(--rail-glow-rgb), 0.86),
      0 0 30px rgba(var(--rail-glow2-rgb), 0.4),
      inset 0 0 14px rgba(218, 242, 255, 0.3),
      inset 0 -10px 14px rgba(0, 0, 0, 0.36);
  }
}

@keyframes sideFlow {
  0% {
    filter: brightness(0.95) saturate(1);
    background-position: 50% 0%, 50% 17%, 50% 34%, 50% 51%, 50% 68%, 0 0, 0 0, 0 0;
  }
  50% {
    filter: brightness(1.18) saturate(1.2);
    background-position: 50% 10%, 50% 27%, 50% 44%, 50% 61%, 50% 78%, 0 0, 0 0, 0 0;
  }
  100% {
    filter: brightness(0.95) saturate(1);
    background-position: 50% 0%, 50% 17%, 50% 34%, 50% 51%, 50% 68%, 0 0, 0 0, 0 0;
  }
}
@keyframes pulse {
  0%, 100% { box-shadow: var(--spin-depth), 0 0 0 4px rgba(255, 255, 255, 0.28), 0 0 0 8px rgba(var(--spin-ring-rgb), 0.4), 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 16px rgba(var(--spin-glow-rgb), 0.45); }
  50% { box-shadow: var(--spin-depth), 0 0 0 4px rgba(255, 255, 255, 0.4), 0 0 0 10px rgba(var(--spin-ring-rgb), 0.5), 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 30px rgba(var(--spin-glow-rgb), 0.9); }
}

/* ============================== ZONA 3: catálogo ========================== */
/* Barra de progreso compacta */
.strip { flex: 0 0 auto; background: var(--panel); border-radius: var(--strip-radius); padding: 6px 9px; border: 1px solid var(--strip-border); box-shadow: var(--strip-shadow); }
.progress { display: flex; align-items: center; gap: 8px; }
.progress-bar {
  position: relative; flex: 1; height: 17px;
  background: var(--progress-track);
  border-radius: 12px; overflow: hidden; border: 1px solid var(--progress-border);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.4), 0 0 10px var(--progress-glow);
}
.progress-fill {
  height: 100%; width: 0; border-radius: 12px;
  background: var(--progress-fill);
  box-shadow: 0 0 14px var(--progress-fill-glow), inset 0 -2px 3px rgba(0, 0, 0, 0.35);
  transition: width 0.6s ease;
}
.progress-stars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-around; font-size: var(--stars-size); color: var(--stars-ink); text-shadow: var(--stars-glow); letter-spacing: 6px; pointer-events: none; }
.progress-pct { font-size: 0.78rem; color: var(--progress-ink); font-weight: 800; min-width: 36px; text-align: right; }
.progress-target { font-size: 1.05rem; }
.strip-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.odometer { background: var(--odometer-bg); color: var(--odometer-ink); font-family: var(--font-digits); padding: 4px 8px; border-radius: 7px; font-size: 0.72rem; white-space: nowrap; }
.winner-feed { flex: 1; min-width: 0; overflow: hidden; }
.winner-pop { background: rgba(255, 255, 255, 0.9); color: #11131a; padding: 4px 9px; border-radius: 7px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.winner-pop.muted { background: rgba(255, 255, 255, 0.1); color: var(--muted); font-weight: 500; }

.delivery-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -1px; }
.delivery-head h2 { font-size: clamp(0.9rem, 3.6vw, 1.1rem); font-weight: var(--title-weight); }
.cart-summary { font-size: 0.84rem; background: var(--chip-bg); padding: 5px 11px; border-radius: 20px; white-space: nowrap; }
.register-btn {
  flex: 0 0 auto;
  width: fit-content;
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 6px 11px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.3px;
  color: #ffffff;
  text-shadow: var(--btn-ink-shadow);
  background: var(--register-bg);
  box-shadow: var(--register-shadow);
  transition: var(--btn-transition);
  cursor: pointer;
  margin-top: -1px;
}
.register-btn:active { transform: var(--btn-press); box-shadow: var(--register-shadow-active); }

/* Carrusel horizontal de destacados (ocupa el alto disponible de la zona) */
.featured-rail { flex: 1 1 auto; min-height: 40px; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; scroll-snap-type: x mandatory; align-items: flex-start; }
.featured-rail::-webkit-scrollbar { height: 6px; }
.featured-rail::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 6px; }
.featured-rail .product-card { flex: 0 0 31%; max-width: 126px; height: auto; scroll-snap-align: start; }
.featured-rail .pc-img { flex: 1 1 auto; min-height: 20px; aspect-ratio: auto; }
.featured-rail .pc-img--ph { font-size: 1.45rem; }
.featured-rail .pc-features { display: none; }
.featured-rail .pc-body { padding: 4px 6px 5px; gap: 1px; }
.featured-rail .pc-cat { font-size: 0.52rem; }
.featured-rail .pc-name { font-size: 0.68rem; line-height: 1; }
.featured-rail .pc-price { font-size: calc(0.76rem * var(--price-scale)); }
.featured-rail .pc-add { padding: 3px 5px; font-size: 0.58rem; }
.featured-rail .pc-bonus { font-size: 0.52rem; padding: 2px 6px; }

.catalog-empty { color: var(--muted); font-style: italic; padding: 12px 2px; }

/* Tarjeta de producto */
.product-card { position: relative; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--card-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--card-shadow); transition: var(--btn-transition); }
.product-card:hover { transform: var(--card-hover-lift); box-shadow: var(--card-shadow-hover); }
.pc-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--pc-img-bg); border-bottom: var(--pc-img-divider); display: block; }
.pc-img--ph { display: flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.pc-bonus { position: absolute; top: 8px; left: 8px; background: var(--badge-bg); color: var(--badge-ink); font-size: 0.6rem; font-weight: 800; padding: 3px 8px; border-radius: var(--badge-radius); box-shadow: var(--badge-shadow); }
.pc-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; flex: 0 0 auto; }
.pc-cat { font-size: 0.6rem; color: var(--pc-cat-ink); text-transform: uppercase; letter-spacing: 0.5px; }
.pc-name { font-size: 0.86rem; line-height: 1.12; font-weight: var(--product-weight); }
.pc-features { font-size: 0.72rem; color: var(--muted); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 3px; }
.pc-price { font-weight: var(--display-weight); color: var(--price-ink); text-shadow: var(--price-glow); font-size: calc(0.92rem * var(--price-scale)); }
.pc-add { background: var(--add-bg); color: var(--add-ink); text-shadow: var(--solid-ink-shadow); border: none; border-radius: var(--add-radius); box-shadow: var(--add-shadow); transition: var(--btn-transition); padding: 6px 9px; font-size: 0.7rem; font-weight: var(--display-weight); cursor: pointer; }
.pc-add:active { transform: var(--add-press); box-shadow: var(--add-shadow-active); }

.delivery-toggle {
  flex: 0 0 auto; width: 100%; padding: 6px 9px; border: none; border-radius: var(--cta-radius); cursor: pointer;
  background: var(--cta-bg); color: var(--cta-ink); text-shadow: var(--btn-ink-shadow); font-weight: var(--display-weight);
  letter-spacing: 0.25px; font-size: clamp(0.62rem, 2.5vw, 0.8rem); line-height: 1.1;
  box-shadow: var(--cta-shadow);
  transition: var(--btn-transition);
  margin-bottom: 1px;
}
.delivery-toggle:active { transform: var(--cta-press); box-shadow: var(--cta-shadow-active); }
/* ====================== Catálogo completo (overlay) ====================== */
.catalog-overlay { position: fixed; inset: 0; z-index: 60; background: var(--overlay-bg); display: none; }
.catalog-overlay.open { display: block; overflow-y: auto; }
.catalog-sheet { max-width: 760px; margin: 0 auto; padding: 18px 16px 48px; }
.catalog-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.catalog-sheet-head h2 { font-size: 1.2rem; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-chip { background: rgba(255, 255, 255, 0.07); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.12); padding: 6px 13px; border-radius: 20px; font-size: 0.78rem; cursor: pointer; }
.filter-chip.active { background: var(--chip-active-bg); border-color: var(--chip-active-bg); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cart-box { margin-top: 18px; background: var(--panel); border-radius: 14px; padding: 14px; }
.cart-box h3 { font-size: 1rem; margin-bottom: 10px; }
.cart-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cart-empty { color: var(--muted); font-size: 0.85rem; font-style: italic; }
.cart-line { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.05); padding: 7px 10px; border-radius: 8px; font-size: 0.85rem; }
.cl-name { flex: 1; }
.cl-qty { display: flex; align-items: center; gap: 8px; }
.cl-qty button { width: 26px; height: 26px; border-radius: 7px; border: none; background: var(--chip-active-bg); color: #fff; font-size: 1.05rem; cursor: pointer; }
.cl-sub { min-width: 66px; text-align: right; font-weight: 700; }
.checkout-btn { width: 100%; background: var(--checkout-bg); color: var(--checkout-ink); text-shadow: var(--solid-ink-shadow); box-shadow: var(--checkout-shadow); transition: var(--btn-transition); border: none; font-weight: var(--display-weight); padding: 12px; border-radius: var(--checkout-radius); cursor: pointer; font-size: 0.92rem; }
.checkout-btn:not(:disabled):active { transform: var(--btn-press); box-shadow: var(--checkout-shadow-active); }
.checkout-btn:disabled { opacity: var(--checkout-disabled-opacity); cursor: not-allowed; }

/* ============================== Modales =================================== */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px; background: var(--modal-backdrop); z-index: 70; padding: 20px; }
.modal.open { display: flex; }
.modal-card { background: var(--modal-bg); border: 2px solid var(--modal-border); border-radius: 18px; padding: 26px; text-align: center; max-width: 360px; width: 100%; box-shadow: var(--modal-shadow); }
.result-icon { font-size: 3.4rem; }
.result-prize { color: var(--neon-yellow); font-weight: 800; font-size: 1.25rem; margin-top: 6px; }
.modal-close { background: var(--close-bg); box-shadow: var(--close-shadow); transition: var(--btn-transition); color: #fff; border: none; padding: 9px 18px; border-radius: 10px; cursor: pointer; }
.modal-close:active { transform: var(--btn-press); }
.catalog-sheet-head .modal-close { padding: 6px 12px; font-size: 1rem; }
.draw-card h2 { color: var(--neon-yellow); margin-bottom: 14px; }
.draw-reel { font-family: var(--font-digits); font-size: 2.2rem; font-weight: 800; color: var(--odometer-ink); background: var(--odometer-bg); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.draw-result h3 { color: var(--neon-yellow); margin-bottom: 6px; }
.draw-result p { font-size: 0.9rem; margin: 2px 0; }
.register-card { max-width: 420px; }
.register-card h2 { margin-bottom: 8px; color: #f8fbff; font-size: 1.15rem; }
.register-hint { font-size: 0.82rem; color: #9edcff; margin-bottom: 10px; }
.register-form { display: grid; gap: 8px; text-align: left; }
.register-form label { font-size: 0.8rem; color: #bfe2ff; font-weight: 600; margin-top: 2px; }
.register-form input {
  width: 100%;
  border: 1px solid rgba(180, 209, 255, 0.35);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f8ff;
  padding: 9px 10px;
  font-size: 0.86rem;
}
.register-form input::placeholder { color: #a8b6d2; }
.register-note { font-size: 0.76rem; color: #ffde84; margin-top: -2px; }
.reg-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.register-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.84rem;
}
.register-entry label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(170, 206, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: 140ms ease;
}
.register-entry input[type="radio"] {
  accent-color: var(--choice-accent);
  transform: scale(1.15);
}
.register-entry label.active {
  border-color: var(--choice-active-border);
  background: var(--choice-active-bg);
  box-shadow: var(--choice-active-glow);
}
.register-status {
  min-height: 1.1em;
  font-size: 0.8rem;
  color: #ffdf71;
}
.register-status.error { color: #ff8f8f; }
.register-status.ok { color: #7fffd4; }

/* Celebración de premio mayor */
.win-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
  opacity: 0;
}
.win-burst.active { opacity: 1; }
.burst-piece {
  position: absolute;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  animation: burstFall 1.7s ease-out forwards;
}
@keyframes burstFall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg) scale(1.1); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate3d(var(--x, 0px), 110vh, 0) rotate(var(--r, 360deg)) scale(0.92); opacity: 0; }
}

/* ============================== Horizontal (landscape) ==================== */
@media (orientation: landscape) {
  .stage {
    max-width: none;
    width: 100%;
    grid-template-columns: 52% 48%;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "clock clock"
      "wheel delivery";
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .zone-clock { align-items: center; padding-top: 0; }
  .zone-delivery {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 5px;
  }
  .clock-digits { margin: 2px 0; }
  .cd-unit b { font-size: clamp(1.4rem, 5.2vh, 2.6rem); }
  .wheel-heading { font-size: clamp(0.8rem, 2.4vh, 1.15rem); }
  .featured-rail {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 184px;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: start;
    padding-right: 3px;
  }
  .featured-rail .product-card {
    max-width: none;
    height: 184px;
  }
  .featured-rail .pc-img { min-height: 94px; }
  .featured-rail .pc-body { padding: 6px 8px 8px; gap: 2px; }
  .featured-rail .pc-name { font-size: 0.82rem; line-height: 1.05; }
  .featured-rail .pc-price { font-size: calc(0.88rem * var(--price-scale)); }
  .featured-rail .pc-add { padding: 4px 7px; font-size: 0.62rem; }
  .delivery-toggle { font-size: clamp(0.66rem, 1.75vw, 0.84rem); padding: 8px 10px; }
}

/* Pantallas anchas: la grilla del catálogo usa 3 columnas */
@media (min-width: 620px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 430px) {
  .clock-side { width: 18px; top: 6px; bottom: 6px; }
  .featured-rail .product-card { flex-basis: 31%; max-width: 118px; }
  .featured-rail { min-height: 36px; }
  .featured-rail .pc-img { min-height: 16px; }
  .featured-rail .pc-body { padding: 3px 5px 4px; }
  .featured-rail .pc-name { font-size: 0.63rem; }
  .featured-rail .pc-price { font-size: calc(0.72rem * var(--price-scale)); }
  .featured-rail .pc-add { padding: 2px 5px; font-size: 0.56rem; }
  .delivery-toggle { font-size: 0.58rem; padding: 5px 7px; }
}

/* Vertical: forzar reducción real de tarjetas y liberar el botón inferior */
@media (orientation: portrait) {
  .zone-delivery {
    grid-template-rows: auto auto auto minmax(0, 0.8fr) auto;
  }
  .featured-rail {
    min-height: 0;
    max-height: none;
    height: 100%;
    align-items: stretch;
  }
  .featured-rail .product-card {
    height: 100%;
  }
  .featured-rail .pc-img {
    min-height: 0;
    height: auto;
  }
  .featured-rail .pc-body {
    padding: 4px 6px;
  }
}
