/* THE MAZON · modos de temporada (settings.season_mode → body.season-<modo>).
   Sobrio: cambia los tokens de color (acentos, degradado, líneas) y suma decoración que nunca captura clics
   (.season-deco, creada por store.js) ni se pone sobre el contenido importante. Funciona en tema claro y oscuro,
   y se queda quieto con prefers-reduced-motion. "poker" no pinta nada aquí: es el casino (landing.css .casino). */

/* ───────────── capa de decoración ───────────── */
.season-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.season-deco::before, .season-deco::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; will-change: transform; }
.season-deco::before { top: -300px; bottom: 0; background-size: 300px 300px; animation: seasonFall 46s linear infinite; }
.season-deco::after { top: -400px; bottom: 0; background-size: 400px 400px; animation: seasonFall2 64s linear infinite; }
@keyframes seasonFall { to { transform: translateY(300px); } }
@keyframes seasonFall2 { to { transform: translateY(400px); } }
@keyframes seasonRise { from { transform: translateY(300px); } to { transform: translateY(0); } }
@keyframes seasonRise2 { from { transform: translateY(400px); } to { transform: translateY(0); } }
@keyframes seasonFly { to { transform: translateX(-520px); } }
@keyframes seasonTwinkle { 50% { opacity: .45; } }
/* Pestaña oculta o ventana sin foco de decoración: en pausa (la marca store.js) */
html.tmz-idle .season-deco::before, html.tmz-idle .season-deco::after, html.tmz-idle .topbar::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .season-deco::before, .season-deco::after, .topbar::after { animation: none !important; }
}
body[class*="season-"]:not(.season-poker) .hero-grid { position: relative; z-index: 1; }

/* ───────────── Navidad: rojo + verde, nieve suave y guirnalda ───────────── */
:root:not([data-theme="light"]) body.season-navidad {
  --neon: #FF5A5F; --neon-2: #FF5A5F; --amber: #6FD39B; --grad: linear-gradient(135deg, #C62828 0%, #1B7F4A 100%);
  --line: rgba(255, 90, 95, .26); --line-strong: rgba(255, 90, 95, .58); --glow: 0 0 6px rgba(255, 90, 95, .5), 0 0 18px rgba(27, 127, 74, .35);
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(198, 40, 40, .16), transparent 70%), radial-gradient(900px 400px at 100% 0, rgba(27, 127, 74, .1), transparent 70%); }
:root[data-theme="light"] body.season-navidad {
  --neon: #B71C1C; --neon-2: #B71C1C; --amber: #1B7F4A; --grad: linear-gradient(135deg, #C62828 0%, #1B7F4A 100%);
  --line: rgba(183, 28, 28, .2); --line-strong: rgba(183, 28, 28, .45); --glow: none; }
body.season-navidad .hero-bg { filter: hue-rotate(-28deg) saturate(1.05); }
body.season-navidad .btn-primary, body.season-navidad .cart-btn { box-shadow: 0 6px 18px rgba(198, 40, 40, .35); }
body.season-navidad .season-deco::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='%23ffffff' fill-opacity='.85'%3E%3Ccircle cx='22' cy='40' r='2'/%3E%3Ccircle cx='96' cy='120' r='1.4'/%3E%3Ccircle cx='170' cy='20' r='2.4'/%3E%3Ccircle cx='240' cy='90' r='1.6'/%3E%3Ccircle cx='60' cy='210' r='2.2'/%3E%3Ccircle cx='150' cy='250' r='1.5'/%3E%3Ccircle cx='270' cy='200' r='2'/%3E%3Ccircle cx='205' cy='160' r='1.2'/%3E%3C/g%3E%3C/svg%3E"); }
body.season-navidad .season-deco::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cg fill='%23ffffff' fill-opacity='.6'%3E%3Ccircle cx='50' cy='80' r='3'/%3E%3Ccircle cx='190' cy='30' r='1.8'/%3E%3Ccircle cx='330' cy='140' r='2.6'/%3E%3Ccircle cx='120' cy='260' r='2'/%3E%3Ccircle cx='290' cy='330' r='3'/%3E%3Ccircle cx='20' cy='370' r='1.6'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="light"] body.season-navidad .season-deco::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='%237fa6cf' fill-opacity='.55'%3E%3Ccircle cx='22' cy='40' r='2'/%3E%3Ccircle cx='96' cy='120' r='1.4'/%3E%3Ccircle cx='170' cy='20' r='2.4'/%3E%3Ccircle cx='240' cy='90' r='1.6'/%3E%3Ccircle cx='60' cy='210' r='2.2'/%3E%3Ccircle cx='150' cy='250' r='1.5'/%3E%3Ccircle cx='270' cy='200' r='2'/%3E%3Ccircle cx='205' cy='160' r='1.2'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="light"] body.season-navidad .season-deco::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cg fill='%237fa6cf' fill-opacity='.4'%3E%3Ccircle cx='50' cy='80' r='3'/%3E%3Ccircle cx='190' cy='30' r='1.8'/%3E%3Ccircle cx='330' cy='140' r='2.6'/%3E%3Ccircle cx='120' cy='260' r='2'/%3E%3Ccircle cx='290' cy='330' r='3'/%3E%3Ccircle cx='20' cy='370' r='1.6'/%3E%3C/g%3E%3C/svg%3E"); }
/* Guirnalda de luces bajo la barra superior */
body.season-navidad .topbar { position: sticky; }
body.season-navidad .topbar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; pointer-events: none; opacity: .9;
  background:
    radial-gradient(circle at 12px 8px, #ff5a5f 3.2px, transparent 4.2px) 0 0 / 72px 16px,
    radial-gradient(circle at 36px 10px, #ffd166 3.2px, transparent 4.2px) 0 0 / 72px 16px,
    radial-gradient(circle at 60px 8px, #5fd38d 3.2px, transparent 4.2px) 0 0 / 72px 16px,
    linear-gradient(to bottom, transparent 4px, rgba(120, 120, 120, .45) 4px 5px, transparent 5px);
  animation: seasonTwinkle 3.2s ease-in-out infinite; }

/* ───────────── Halloween: naranja + morado, cobweb, murciélagos y brasas ───────────── */
:root:not([data-theme="light"]) body.season-halloween {
  --neon: #FF7A1A; --neon-2: #FF7A1A; --amber: #B88CFF; --grad: linear-gradient(135deg, #C2410C 0%, #6D28D9 100%);
  --line: rgba(184, 140, 255, .26); --line-strong: rgba(255, 122, 26, .56); --glow: 0 0 6px rgba(255, 122, 26, .5), 0 0 18px rgba(109, 40, 217, .4);
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(109, 40, 217, .2), transparent 70%), radial-gradient(900px 400px at 0 100%, rgba(255, 122, 26, .08), transparent 70%); }
:root[data-theme="light"] body.season-halloween {
  --neon: #C2410C; --neon-2: #C2410C; --amber: #6D28D9; --grad: linear-gradient(135deg, #C2410C 0%, #6D28D9 100%);
  --line: rgba(109, 40, 217, .2); --line-strong: rgba(194, 65, 12, .45); --glow: none; }
body.season-halloween .hero-bg { filter: hue-rotate(8deg) saturate(1.1) brightness(.95); }
body.season-halloween .btn-primary, body.season-halloween .cart-btn { box-shadow: 0 6px 18px rgba(109, 40, 217, .4); }
/* Telaraña en la esquina superior derecha, tenue */
body.season-halloween .season-deco { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23b88cff' stroke-opacity='.5' stroke-width='1'%3E%3Cpath d='M120 0L0 0M120 0L120 120M120 0L30 100M120 0L70 110M120 0L8 60M120 0L110 120'/%3E%3Cpath d='M92 0Q96 22 120 28M62 0Q72 44 120 52M32 0Q48 66 120 78M10 0Q30 88 120 106'/%3E%3C/svg%3E") no-repeat right 0 top 66px / 110px 110px; }
/* Brasas que suben */
body.season-halloween .season-deco::before { top: 0; bottom: -300px; animation-name: seasonRise; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg%3E%3Ccircle cx='30' cy='60' r='2' fill='%23ff7a1a' fill-opacity='.7'/%3E%3Ccircle cx='120' cy='200' r='1.6' fill='%23b88cff' fill-opacity='.7'/%3E%3Ccircle cx='200' cy='90' r='2.2' fill='%23ff7a1a' fill-opacity='.6'/%3E%3Ccircle cx='260' cy='250' r='1.5' fill='%23ff7a1a' fill-opacity='.7'/%3E%3Ccircle cx='90' cy='20' r='1.4' fill='%23b88cff' fill-opacity='.6'/%3E%3C/g%3E%3C/svg%3E"); }
/* Murciélagos cruzando muy arriba */
body.season-halloween .season-deco::after { top: 78px; bottom: auto; height: 120px; right: -520px; left: 0; background-size: 520px 120px; background-repeat: repeat-x; animation: seasonFly 70s linear infinite; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='120'%3E%3Cg fill='%23140a24'%3E%3Cpath transform='translate(80 30)' d='M0 8Q6 0 12 7Q15 3 18 7Q21 3 24 7Q30 0 36 8Q28 7 24 13Q18 8 12 13Q8 7 0 8Z'/%3E%3Cpath transform='translate(330 70) scale(.7)' d='M0 8Q6 0 12 7Q15 3 18 7Q21 3 24 7Q30 0 36 8Q28 7 24 13Q18 8 12 13Q8 7 0 8Z'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="light"] body.season-halloween .season-deco::after { opacity: .4; }

/* ───────────── Amor y amistad: rosa + rojo, corazones flotando ───────────── */
:root:not([data-theme="light"]) body.season-amor {
  --neon: #FF5C93; --neon-2: #FF5C93; --amber: #FFA3C0; --grad: linear-gradient(135deg, #D81B60 0%, #E53950 100%);
  --line: rgba(255, 92, 147, .26); --line-strong: rgba(255, 92, 147, .58); --glow: 0 0 6px rgba(255, 92, 147, .5), 0 0 18px rgba(216, 27, 96, .35);
  background-image: radial-gradient(1200px 500px at 50% -200px, rgba(216, 27, 96, .17), transparent 70%), radial-gradient(900px 400px at 100% 100%, rgba(255, 92, 147, .08), transparent 70%); }
:root[data-theme="light"] body.season-amor {
  --neon: #C2185B; --neon-2: #C2185B; --amber: #AD1457; --grad: linear-gradient(135deg, #D81B60 0%, #E53950 100%);
  --line: rgba(194, 24, 91, .2); --line-strong: rgba(194, 24, 91, .45); --glow: none; }
body.season-amor .hero-bg { filter: hue-rotate(-52deg) saturate(1.05); }
body.season-amor .btn-primary, body.season-amor .cart-btn { box-shadow: 0 6px 18px rgba(216, 27, 96, .35); }
body.season-amor .season-deco::before { top: 0; bottom: -300px; animation-name: seasonRise; animation-duration: 58s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='%23ff5c93'%3E%3Cpath fill-opacity='.4' transform='translate(30 220) scale(.9)' d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3Cpath fill-opacity='.28' transform='translate(200 90) scale(.6)' d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3Cpath fill-opacity='.35' transform='translate(120 20) scale(.75)' d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/g%3E%3C/svg%3E"); }
body.season-amor .season-deco::after { top: 0; bottom: -400px; animation-name: seasonRise2; animation-duration: 80s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cg fill='%23e53950'%3E%3Cpath fill-opacity='.3' transform='translate(300 300) scale(1.1)' d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3Cpath fill-opacity='.25' transform='translate(70 120) scale(.7)' d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-theme="light"] body.season-amor .season-deco::before, :root[data-theme="light"] body.season-amor .season-deco::after { opacity: .75; }

/* Hero y filo neón siguen el color de la temporada */
body[class*="season-"]:not(.season-poker) .hero::after { background: linear-gradient(90deg, transparent, var(--neon) 30%, var(--amber) 50%, var(--neon) 70%, transparent); }
body[class*="season-"]:not(.season-poker) .hero h1 .hl { text-shadow: var(--glow); }
