/* Calendario de Adviento (/adviento): una casa nevada de noche con 24 ventanas.
   Un solo aspecto, oscuro, a propósito: no hay versión clara de una noche de diciembre.
   La luz viene de dos sitios y todo lo respeta: la luna, arriba a la derecha (fría), y las
   ventanas encendidas (cálida). Texturas con ruido SVG (feTurbulence) como el cementerio
   de Halloween y el bosque de otoño. Ver docs/ADVIENTO.md. */
.adv-page {
  --adv-sky-top: #070d24;
  --adv-sky-low: #1d2a56;
  --adv-snow: #eef4ff;
  --adv-snow-shadow: #9fb2dc;
  --adv-wall: #7a3b2e;
  --adv-wall-dark: #4f2219;
  --adv-wood: #5b3a24;
  --adv-wood-dark: #2e1c10;
  --adv-glow: #ffcf7a;
  --adv-gold: #fde68a;
  --adv-muted: #b8c4e6;
  --adv-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  --adv-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='60'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02 .55' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='60' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* La nieve y el suelo desbordan a propósito: se recorta en el documento (el overflow del
   body no basta, scrollea el <html>). Con :has deja de aplicar al salir por soft-nav. */
html:has(body.adv-page) { overflow-x: clip; background: #070d24; }
.adv-page { overflow-x: hidden; min-height: 100dvh;
  background: linear-gradient(180deg, var(--adv-sky-top) 0, #0e1838 380px, var(--adv-sky-low) 760px, #2c3c70 1180px, #141c3e 1500px, #0b1230 100%); }
.adv-main { position: relative; max-width: 560px; margin: 0 auto; padding: 16px 16px 120px; color: var(--adv-snow); }

/* Cabecera */
.adv-hero { position: relative; z-index: 5; text-align: center; padding: 18px 0 6px; }
.adv-title { margin: 0; font-weight: 800; font-size: clamp(1.6rem, 6.5vw, 2.2rem); letter-spacing: .01em; color: var(--adv-snow);
  text-wrap: balance; text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 0 22px rgba(255, 207, 122, .4); }
.adv-sub { margin: 6px auto 0; max-width: 36ch; color: var(--adv-muted); font-weight: 700; font-size: .92rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.adv-stats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.adv-pill { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; color: var(--adv-snow);
  background: linear-gradient(180deg, rgba(147, 197, 253, .18), rgba(30, 45, 95, .35)); border: 1px solid rgba(186, 214, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 10px -4px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.adv-pill[hidden] { display: none; }
/* Los copos llevan a la tienda: giran y destellan cada pocos segundos para invitar a
   tocarlos (y el contador de la cabecera, igual, solo en el calendario). */
button.adv-pill-flakes { font: inherit; font-weight: 800; position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, rgba(186, 214, 255, .3), rgba(59, 90, 160, .4)); border-color: rgba(186, 214, 255, .6); -webkit-tap-highlight-color: transparent; }
button.adv-pill-flakes:active { transform: scale(.95); }
button.adv-pill-flakes:focus-visible { outline: 3px solid var(--adv-gold); outline-offset: 2px; }
.adv-flakes-ic, .adv-page .hsb-candy > span:first-child { display: inline-block; animation: adv-flake-spin 5s ease-in-out infinite; }
.adv-page .hsb-candy > span:first-child { animation-delay: 2.5s; }
@keyframes adv-flake-spin { 0%, 78%, 100% { transform: none; } 84% { transform: rotate(-30deg) scale(1.2); } 94% { transform: rotate(360deg) scale(1.15); } }
button.adv-pill-flakes::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none; transform: skewX(-20deg);
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); animation: adv-shine 5s ease-in-out infinite; }
@keyframes adv-shine { 0%, 84% { left: -60%; } 96%, 100% { left: 130%; } }
.adv-share { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 18px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: .88rem; color: #3a2208; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #fff1c7, var(--adv-glow)); border: 1px solid rgba(255, 244, 214, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 18px -4px rgba(255, 190, 100, .7); transition: transform .12s, filter .12s; }
.adv-share[hidden] { display: none; }
.adv-share:hover { filter: brightness(1.05); }
.adv-share:active { transform: scale(.96); }
.adv-share:focus-visible { outline: 3px solid var(--adv-gold); outline-offset: 2px; }
.adv-share.is-busy { cursor: progress; filter: saturate(.6); }
.adv-flakes-toast { position: relative; z-index: 5; margin: 8px auto 0; width: fit-content; max-width: 100%; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(90deg, #93c5fd, #eef4ff); color: #0b1330; font-weight: 800; text-align: center;
  box-shadow: 0 0 22px rgba(147, 197, 253, .5); animation: adv-toast-in .5s ease; }
.adv-flakes-toast[hidden] { display: none; }
@keyframes adv-toast-in { from { opacity: 0; transform: translateY(-8px) scale(.95); } }

/* ── Escena ──────────────────────────────────────────────────────────────────── */
.adv-scene { position: relative; margin-top: 8px; padding-top: 74px; }
/* Cielo estrellado (dos capas: una fija y otra que titila), de borde a borde y fundido
   hacia el horizonte. Sube por detrás de la cabecera. */
.adv-sky { position: absolute; top: -300px; left: -16px; right: -16px; height: 560px; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 62%, transparent 100%); }
.adv-starfield { position: absolute; inset: 0; }
.adv-starfield.is-a { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27300%27%20height%3D%27260%27%3E%3Ccircle%20cx%3D%2770.55%27%20cy%3D%2797.23%27%20r%3D%271.07%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.72%27%2F%3E%3Ccircle%20cx%3D%270.89%27%20cy%3D%27237.38%27%20r%3D%270.88%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.95%27%2F%3E%3Ccircle%20cx%3D%2756.44%27%20cy%3D%27251.87%27%20r%3D%270.82%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.57%27%2F%3E%3Ccircle%20cx%3D%2762.68%27%20cy%3D%27146.75%27%20r%3D%270.44%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.84%27%2F%3E%3Ccircle%20cx%3D%27149.46%27%20cy%3D%278.51%27%20r%3D%270.48%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.83%27%2F%3E%3Ccircle%20cx%3D%27267.91%27%20cy%3D%279.64%27%20r%3D%271.06%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.97%27%2F%3E%3Ccircle%20cx%3D%27229.47%27%20cy%3D%27109.1%27%20r%3D%270.59%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.67%27%2F%3E%3Ccircle%20cx%3D%2770.42%27%20cy%3D%27105.27%27%20r%3D%271.07%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.79%27%2F%3E%3Ccircle%20cx%3D%27220.47%27%20cy%3D%2787.11%27%20r%3D%270.94%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.62%27%2F%3E%3Ccircle%20cx%3D%27295.64%27%20cy%3D%27258.48%27%20r%3D%270.87%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.56%27%2F%3E%3Ccircle%20cx%3D%27193.56%27%20cy%3D%2735.2%27%20r%3D%270.77%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.97%27%2F%3E%3Ccircle%20cx%3D%27144.62%27%20cy%3D%2748.66%27%20r%3D%270.74%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.81%27%2F%3E%3Ccircle%20cx%3D%27156.52%27%20cy%3D%27146%27%20r%3D%270.78%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.86%27%2F%3E%3Ccircle%20cx%3D%277.81%27%20cy%3D%2777.7%27%20r%3D%270.81%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.85%27%2F%3E%3Ccircle%20cx%3D%2787.27%27%20cy%3D%2761.29%27%20r%3D%270.89%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.88%27%2F%3E%3Ccircle%20cx%3D%27246.86%27%20cy%3D%27238.02%27%20r%3D%271.08%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.46%27%2F%3E%3Ccircle%20cx%3D%27228.59%27%20cy%3D%27156.27%27%20r%3D%270.94%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.52%27%2F%3E%3Ccircle%20cx%3D%2724.08%27%20cy%3D%2728.14%27%20r%3D%270.46%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.78%27%2F%3E%3Ccircle%20cx%3D%27283.72%27%20cy%3D%2749.92%27%20r%3D%270.5%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.82%27%2F%3E%3Ccircle%20cx%3D%2772.98%27%20cy%3D%27118.65%27%20r%3D%271.15%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.88%27%2F%3E%3Ccircle%20cx%3D%27119.06%27%20cy%3D%27108.27%27%20r%3D%270.45%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.89%27%2F%3E%3Ccircle%20cx%3D%27292.31%27%20cy%3D%2739.63%27%20r%3D%271.09%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.57%27%2F%3E%3Ccircle%20cx%3D%27180.78%27%20cy%3D%2744.34%27%20r%3D%270.46%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.76%27%2F%3E%3Ccircle%20cx%3D%27144.19%27%20cy%3D%27258.39%27%20r%3D%270.46%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.45%27%2F%3E%3Ccircle%20cx%3D%271.85%27%20cy%3D%27107.5%27%20r%3D%270.47%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.96%27%2F%3E%3Ccircle%20cx%3D%27233.24%27%20cy%3D%27198.62%27%20r%3D%270.73%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.89%27%2F%3E%3Ccircle%20cx%3D%27198.55%27%20cy%3D%27148.76%27%20r%3D%270.66%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.72%27%2F%3E%3Ccircle%20cx%3D%27170.23%27%20cy%3D%27187.66%27%20r%3D%270.9%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.94%27%2F%3E%3Ccircle%20cx%3D%27253.55%27%20cy%3D%27256.94%27%20r%3D%270.73%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.99%27%2F%3E%3Ccircle%20cx%3D%27107.33%27%20cy%3D%2720.6%27%20r%3D%270.66%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.86%27%2F%3E%3Ccircle%20cx%3D%27286.56%27%20cy%3D%27204.62%27%20r%3D%270.56%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.89%27%2F%3E%3Ccircle%20cx%3D%2731.24%27%20cy%3D%27238.05%27%20r%3D%271%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.74%27%2F%3E%3Ccircle%20cx%3D%27132.91%27%20cy%3D%27226.73%27%20r%3D%270.82%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.83%27%2F%3E%3Ccircle%20cx%3D%27130.2%27%20cy%3D%27102.72%27%20r%3D%270.54%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.94%27%2F%3E%3Ccircle%20cx%3D%27246.62%27%20cy%3D%2787.88%27%20r%3D%270.91%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.62%27%2F%3E%3Ccircle%20cx%3D%27276.28%27%20cy%3D%270.34%27%20r%3D%270.5%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.83%27%2F%3E%3Ccircle%20cx%3D%27269.36%27%20cy%3D%2744.97%27%20r%3D%270.56%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.55%27%2F%3E%3Ccircle%20cx%3D%2735.05%27%20cy%3D%27162.91%27%20r%3D%270.41%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.86%27%2F%3E%3Ccircle%20cx%3D%2738.42%27%20cy%3D%2786.13%27%20r%3D%270.94%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.77%27%2F%3E%3Ccircle%20cx%3D%27233.24%27%20cy%3D%27182.65%27%20r%3D%270.95%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.47%27%2F%3E%3Ccircle%20cx%3D%27183.98%27%20cy%3D%2758.47%27%20r%3D%270.84%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.79%27%2F%3E%3Ccircle%20cx%3D%27188.85%27%20cy%3D%27211.34%27%20r%3D%270.58%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.83%27%2F%3E%3Ccircle%20cx%3D%27122.02%27%20cy%3D%27205.91%27%20r%3D%270.89%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.96%27%2F%3E%3Ccircle%20cx%3D%27150.26%27%20cy%3D%27213.97%27%20r%3D%270.72%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.85%27%2F%3E%3Ccircle%20cx%3D%27272.35%27%20cy%3D%27223.12%27%20r%3D%270.54%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.52%27%2F%3E%3Ccircle%20cx%3D%27284.59%27%20cy%3D%27248.24%27%20r%3D%270.44%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.59%27%2F%3E%3Ccircle%20cx%3D%27273.4%27%20cy%3D%27218.74%27%20r%3D%271.5%27%20fill%3D%27%23fff%27%2F%3E%3Cpath%20d%3D%27M268.48999999999995%20218.74H278.31M273.4%20213.83V223.65%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.7%27%20stroke-width%3D%27.6%27%2F%3E%3Ccircle%20cx%3D%2787.57%27%20cy%3D%2757.58%27%20r%3D%271.5%27%20fill%3D%27%23fff%27%2F%3E%3Cpath%20d%3D%27M84.50999999999999%2057.58H90.63M87.57%2054.519999999999996V60.64%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.7%27%20stroke-width%3D%27.6%27%2F%3E%3C%2Fsvg%3E"); background-size: 300px 260px; opacity: .85; }
.adv-starfield.is-b { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27230%27%20height%3D%27210%27%3E%3Ccircle%20cx%3D%27108.06%27%20cy%3D%27117.48%27%20r%3D%270.51%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.57%27%2F%3E%3Ccircle%20cx%3D%2712.65%27%20cy%3D%279.32%27%20r%3D%270.47%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.89%27%2F%3E%3Ccircle%20cx%3D%27167.47%27%20cy%3D%27107.26%27%20r%3D%270.93%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.98%27%2F%3E%3Ccircle%20cx%3D%27177.24%27%20cy%3D%27202.02%27%20r%3D%270.93%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.54%27%2F%3E%3Ccircle%20cx%3D%2715.05%27%20cy%3D%27152.58%27%20r%3D%270.89%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.66%27%2F%3E%3Ccircle%20cx%3D%27113.72%27%20cy%3D%2725.6%27%20r%3D%270.45%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.64%27%2F%3E%3Ccircle%20cx%3D%2779.26%27%20cy%3D%2742.03%27%20r%3D%270.88%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.48%27%2F%3E%3Ccircle%20cx%3D%270.37%27%20cy%3D%27175.51%27%20r%3D%271.05%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.87%27%2F%3E%3Ccircle%20cx%3D%2773.19%27%20cy%3D%2784.49%27%20r%3D%271.08%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%271%27%2F%3E%3Ccircle%20cx%3D%2747.26%27%20cy%3D%27135%27%20r%3D%270.72%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.54%27%2F%3E%3Ccircle%20cx%3D%27173.72%27%20cy%3D%27158.31%27%20r%3D%270.59%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.62%27%2F%3E%3Ccircle%20cx%3D%27105.62%27%20cy%3D%2762.76%27%20r%3D%270.59%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.82%27%2F%3E%3Ccircle%20cx%3D%27114.65%27%20cy%3D%27182.01%27%20r%3D%271.01%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.98%27%2F%3E%3Ccircle%20cx%3D%27159.01%27%20cy%3D%2759.93%27%20r%3D%270.93%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.54%27%2F%3E%3Ccircle%20cx%3D%27194.43%27%20cy%3D%27138.29%27%20r%3D%271.01%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.91%27%2F%3E%3Ccircle%20cx%3D%279.79%27%20cy%3D%2748.68%27%20r%3D%270.55%27%20fill%3D%27%23ffe9b8%27%20fill-opacity%3D%270.77%27%2F%3E%3Ccircle%20cx%3D%27186.74%27%20cy%3D%27131.71%27%20r%3D%271.04%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.56%27%2F%3E%3Ccircle%20cx%3D%27129.37%27%20cy%3D%2796.54%27%20r%3D%270.69%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.73%27%2F%3E%3Ccircle%20cx%3D%2788.27%27%20cy%3D%27104.93%27%20r%3D%270.58%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.61%27%2F%3E%3Ccircle%20cx%3D%2758.55%27%20cy%3D%27128.94%27%20r%3D%270.81%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.62%27%2F%3E%3Ccircle%20cx%3D%27138.06%27%20cy%3D%27120.46%27%20r%3D%270.88%27%20fill%3D%27%23cfe0ff%27%20fill-opacity%3D%270.56%27%2F%3E%3Ccircle%20cx%3D%2727.21%27%20cy%3D%2770.03%27%20r%3D%270.88%27%20fill%3D%27%23ffffff%27%20fill-opacity%3D%270.66%27%2F%3E%3Ccircle%20cx%3D%2782.94%27%20cy%3D%2785.65%27%20r%3D%271.5%27%20fill%3D%27%23fff%27%2F%3E%3Cpath%20d%3D%27M79.69%2085.65H86.19M82.94%2082.4V88.9%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.7%27%20stroke-width%3D%27.6%27%2F%3E%3C%2Fsvg%3E"); background-size: 230px 210px; background-position: 70px 40px; animation: adv-twinkle 3.8s ease-in-out infinite alternate; }
@keyframes adv-twinkle { 0% { opacity: .15; } 45% { opacity: 1; } 60% { opacity: .55; } 100% { opacity: .95; } }
/* Luna: cráteres suaves, luz desde dentro y un halo en dos anillos. */
.adv-moon { position: absolute; z-index: 0; top: 0; right: 7%; width: 66px; height: 66px; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 30% 62%, rgba(176, 160, 110, .45) 0 5px, transparent 6px),
    radial-gradient(circle at 62% 34%, rgba(176, 160, 110, .35) 0 7px, transparent 8px),
    radial-gradient(circle at 70% 70%, rgba(176, 160, 110, .3) 0 3.5px, transparent 4.5px),
    radial-gradient(circle at 42% 28%, rgba(176, 160, 110, .25) 0 3px, transparent 4px),
    radial-gradient(circle at 36% 34%, #fffdf0, #f6ebbf 55%, #d9c88f 100%);
  /* El halo, con sombras (no cuentan para el desbordamiento de la página). */
  box-shadow: inset -8px -6px 14px rgba(150, 130, 80, .35), 0 0 22px 6px rgba(255, 246, 210, .35), 0 0 70px 26px rgba(190, 210, 255, .16), 0 0 140px 60px rgba(150, 175, 240, .08); }
/* Tres planos de colinas y pinos, de borde a borde, detrás de la casa. */
.adv-hills { position: absolute; z-index: 1; top: 32px; left: -16px; right: -16px; height: 210px; pointer-events: none; }
.adv-hills svg { display: block; width: 100%; height: 100%; }
.adv-snow { position: absolute; inset: -40px -16px 0; width: calc(100% + 32px); height: calc(100% + 40px); pointer-events: none; }
.adv-snow.is-back { z-index: 1; }
.adv-snow.is-front { z-index: 6; }

/* ── Casa ────────────────────────────────────────────────────────────────────── */
.adv-house { position: relative; z-index: 2; margin: 0 auto; width: 100%; }
/* El tejado es un SVG (tejas, manto de nieve, carámbanos, corona y guirnalda) que escala
   con el ancho; baja un poco sobre la fachada para que la guirnalda cuelgue delante. */
.adv-roof { position: relative; z-index: 3; margin: 0 -10px calc(-6% - 1px); aspect-ratio: 400 / 124; pointer-events: none; }
.adv-roof svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35)); }
.adv-bulb { fill: currentColor; color: #fde68a; filter: drop-shadow(0 0 2px currentColor) drop-shadow(0 0 5px currentColor); animation: adv-bulb 1.6s steps(1, end) infinite; }
.adv-bulb:nth-child(4n+1) { color: #ff6b6b; }
.adv-bulb:nth-child(4n+2) { color: #ffe066; animation-delay: .4s; }
.adv-bulb:nth-child(4n+3) { color: #69f0a0; animation-delay: .8s; }
.adv-bulb:nth-child(4n) { color: #74b9ff; animation-delay: 1.2s; }
@keyframes adv-bulb { 0% { opacity: 1; } 25% { opacity: .35; } 50% { opacity: 1; } 75% { opacity: .8; } }
.adv-smoke { position: absolute; left: 73.25%; top: 13%; width: 18px; height: 18px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(230, 236, 250, .55), rgba(190, 200, 225, .25) 60%, transparent 72%);
  filter: blur(2px); opacity: 0; animation: adv-smoke 6s ease-out infinite; }
.adv-smoke:nth-of-type(2) { animation-delay: 1.5s; }
.adv-smoke:nth-of-type(3) { animation-delay: 3s; }
.adv-smoke:nth-of-type(4) { animation-delay: 4.5s; }
@keyframes adv-smoke {
  0% { transform: translate(-50%, 0) scale(.5); opacity: 0; }
  12% { transform: translate(-50%, -8px) scale(.8); opacity: .9; }
  60% { transform: translate(-10%, -48px) scale(1.9); opacity: .45; }
  100% { transform: translate(30%, -86px) scale(3); opacity: 0; } }
/* Fachada: ladrillo con veta, la luz de la luna por arriba a la derecha y sombra abajo a la
   izquierda; esquinas de sillería y un zócalo de piedra. */
.adv-facade { position: relative; z-index: 1; padding: 30px 14px 34px; border-radius: 0 0 6px 6px;
  background:
    radial-gradient(120% 70% at 100% 0, rgba(190, 210, 255, .16), transparent 60%),
    linear-gradient(90deg, rgba(0, 0, 0, .32), transparent 22%, transparent 80%, rgba(0, 0, 0, .12)),
    linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 12%, transparent 70%, rgba(0, 0, 0, .35)),
    var(--adv-noise),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27120%27%20height%3D%2760%27%3E%3Crect%20width%3D%27120%27%20height%3D%2760%27%20fill%3D%27%233b2019%27%2F%3E%3Crect%20x%3D%270.8%27%20y%3D%270.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%238a4433%27%2F%3E%3Crect%20x%3D%271.8%27%20y%3D%270.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%270.8%27%20y%3D%2712.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2730.8%27%20y%3D%270.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%236f3428%27%2F%3E%3Crect%20x%3D%2731.8%27%20y%3D%270.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2730.8%27%20y%3D%2712.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2745.96%27%20y%3D%277.2%27%20width%3D%274.32%27%20height%3D%272.63%27%20rx%3D%271%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.12%27%2F%3E%3Crect%20x%3D%2760.8%27%20y%3D%270.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%237f3d2c%27%2F%3E%3Crect%20x%3D%2761.8%27%20y%3D%270.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2760.8%27%20y%3D%2712.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2790.8%27%20y%3D%270.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%2374392b%27%2F%3E%3Crect%20x%3D%2791.8%27%20y%3D%270.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2790.8%27%20y%3D%2712.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%27-14.2%27%20y%3D%2715.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%237f3d2c%27%2F%3E%3Crect%20x%3D%27-13.2%27%20y%3D%2715.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%27-14.2%27%20y%3D%2727.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%27-4.86%27%20y%3D%2723.25%27%20width%3D%275.79%27%20height%3D%271.58%27%20rx%3D%271%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.12%27%2F%3E%3Crect%20x%3D%27105.8%27%20y%3D%2715.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%237f3d2c%27%2F%3E%3Crect%20x%3D%27106.8%27%20y%3D%2715.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%27105.8%27%20y%3D%2727.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2715.8%27%20y%3D%2715.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%2384402f%27%2F%3E%3Crect%20x%3D%2716.8%27%20y%3D%2715.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2715.8%27%20y%3D%2727.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2745.8%27%20y%3D%2715.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%237f3d2c%27%2F%3E%3Crect%20x%3D%2746.8%27%20y%3D%2715.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2745.8%27%20y%3D%2727.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2757.41%27%20y%3D%2724.54%27%20width%3D%275.75%27%20height%3D%272.47%27%20rx%3D%271%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.12%27%2F%3E%3Crect%20x%3D%2775.8%27%20y%3D%2715.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%2393503b%27%2F%3E%3Crect%20x%3D%2776.8%27%20y%3D%2715.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2775.8%27%20y%3D%2727.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%27105.8%27%20y%3D%2715.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%236a3024%27%2F%3E%3Crect%20x%3D%27106.8%27%20y%3D%2715.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%27105.8%27%20y%3D%2727.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%270.8%27%20y%3D%2730.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%236f3428%27%2F%3E%3Crect%20x%3D%271.8%27%20y%3D%2730.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%270.8%27%20y%3D%2742.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2730.8%27%20y%3D%2730.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%236f3428%27%2F%3E%3Crect%20x%3D%2731.8%27%20y%3D%2730.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2730.8%27%20y%3D%2742.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2738.88%27%20y%3D%2736.57%27%20width%3D%274.18%27%20height%3D%272.91%27%20rx%3D%271%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.12%27%2F%3E%3Crect%20x%3D%2760.8%27%20y%3D%2730.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%2393503b%27%2F%3E%3Crect%20x%3D%2761.8%27%20y%3D%2730.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2760.8%27%20y%3D%2742.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2790.8%27%20y%3D%2730.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%236a3024%27%2F%3E%3Crect%20x%3D%2791.8%27%20y%3D%2730.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2790.8%27%20y%3D%2742.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2798.49%27%20y%3D%2737.36%27%20width%3D%275.04%27%20height%3D%272.13%27%20rx%3D%271%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.12%27%2F%3E%3Crect%20x%3D%27-14.2%27%20y%3D%2745.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%237a3b2e%27%2F%3E%3Crect%20x%3D%27-13.2%27%20y%3D%2745.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%27-14.2%27%20y%3D%2757.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%27105.8%27%20y%3D%2745.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%237a3b2e%27%2F%3E%3Crect%20x%3D%27106.8%27%20y%3D%2745.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%27105.8%27%20y%3D%2757.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%27114.99%27%20y%3D%2751.06%27%20width%3D%275.66%27%20height%3D%272.89%27%20rx%3D%271%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.12%27%2F%3E%3Crect%20x%3D%2715.8%27%20y%3D%2745.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%2393503b%27%2F%3E%3Crect%20x%3D%2716.8%27%20y%3D%2745.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2715.8%27%20y%3D%2757.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2725.65%27%20y%3D%2750.7%27%20width%3D%274.46%27%20height%3D%272.14%27%20rx%3D%271%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.12%27%2F%3E%3Crect%20x%3D%2745.8%27%20y%3D%2745.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%236f3428%27%2F%3E%3Crect%20x%3D%2746.8%27%20y%3D%2745.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2745.8%27%20y%3D%2757.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2775.8%27%20y%3D%2745.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%2393503b%27%2F%3E%3Crect%20x%3D%2776.8%27%20y%3D%2745.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%2775.8%27%20y%3D%2757.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3Crect%20x%3D%2793.87%27%20y%3D%2751.75%27%20width%3D%276.45%27%20height%3D%272.45%27%20rx%3D%271%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.12%27%2F%3E%3Crect%20x%3D%27105.8%27%20y%3D%2745.8%27%20width%3D%2728.4%27%20height%3D%2713.4%27%20rx%3D%271.2%27%20fill%3D%27%2374392b%27%2F%3E%3Crect%20x%3D%27106.8%27%20y%3D%2745.8%27%20width%3D%2726.4%27%20height%3D%271.2%27%20fill%3D%27%23fff%27%20fill-opacity%3D%27.13%27%2F%3E%3Crect%20x%3D%27105.8%27%20y%3D%2757.6%27%20width%3D%2728.4%27%20height%3D%271.6%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.22%27%2F%3E%3C%2Fsvg%3E");
  background-size: 100% 100%, 100% 100%, 100% 100%, 140px 140px, 120px 60px;
  background-blend-mode: screen, normal, normal, overlay, normal;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 30px 40px -20px rgba(0, 0, 0, .8); }
.adv-facade::before { /* sillería en las esquinas */ content: ''; position: absolute; top: 0; bottom: 18px; left: -4px; right: -4px; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, #a69a8a 0 13px, #4b4238 13px 14px, #b8ad9c 14px 22px, #4b4238 22px 23px) left / 10px 100% no-repeat,
    repeating-linear-gradient(180deg, #b8ad9c 0 13px, #4b4238 13px 14px, #a69a8a 14px 22px, #4b4238 22px 23px) right / 10px 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 10px, transparent 10px, transparent calc(100% - 10px), #000 calc(100% - 10px));
  mask-image: linear-gradient(90deg, #000 10px, transparent 10px, transparent calc(100% - 10px), #000 calc(100% - 10px));
  filter: brightness(.7); opacity: .9; }
.adv-facade::after { /* zócalo */ content: ''; position: absolute; left: -4px; right: -4px; bottom: 0; height: 20px; border-radius: 0 0 6px 6px; pointer-events: none;
  background: var(--adv-noise), repeating-linear-gradient(90deg, #6f6a73 0 34px, #3e3a44 34px 35px), linear-gradient(180deg, #8a8592, #4a4652);
  background-size: 140px 140px, auto, auto; background-blend-mode: overlay, multiply, normal;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 -6px 8px rgba(0, 0, 0, .4); }
.adv-windows { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 12px; perspective: 700px; }

/* ── Ventana ─────────────────────────────────────────────────────────────────── */
/* Jambas de piedra (fijas en el muro), marco de madera con bisel, cristal hundido con la
   habitación detrás, contraventanas, y nieve en el arco y en el alféizar. Toda la ventana
   se inclina hacia el dedo (--rx/--ry, desde adviento-scene.js). */
.adv-window { --rx: 0deg; --ry: 0deg; --gx: 0; position: relative; display: block; aspect-ratio: 3 / 4; max-width: 100%;
  color: inherit; text-decoration: none; transform-style: preserve-3d; -webkit-tap-highlight-color: transparent;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s cubic-bezier(.2, .8, .3, 1); }
a.adv-window { cursor: pointer; }
a.adv-window:focus-visible { outline: 3px solid var(--adv-gold); outline-offset: 4px; border-radius: 8px; }
.adv-surround { position: absolute; inset: -4px -4px -2px; border-radius: 44% 44% 6px 6px / 24% 24% 6px 6px; pointer-events: none;
  background: var(--adv-noise), linear-gradient(200deg, #cbbfae, #8f8476 55%, #5f574e);
  background-size: 140px 140px, auto; background-blend-mode: overlay, normal;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), inset -1px -2px 2px rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .55); }
.adv-frame { position: absolute; inset: 0; border-radius: 40% 40% 6px 6px / 22% 22% 6px 6px; padding: 5px; transform-style: preserve-3d;
  background: var(--adv-grain), linear-gradient(200deg, #8a6240, var(--adv-wood) 55%, #3b2415);
  background-size: 160px 60px, auto; background-blend-mode: overlay, normal;
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 220, 180, .28), inset -1.5px -2px 0 rgba(0, 0, 0, .45), 0 2px 0 var(--adv-wood-dark); }
/* Cristal hundido: sombra interior arriba (el marco hace de alero) y noche reflejada. */
.adv-glass { position: absolute; inset: 5px; border-radius: inherit; overflow: hidden;
  background: radial-gradient(130% 100% at 78% 8%, #34467c, #141d44 50%, #080d26);
  box-shadow: inset 0 5px 7px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(0, 0, 0, .6); }
.adv-glass::before, .adv-glass::after { /* cruceta, con su bisel */ content: ''; position: absolute; z-index: 3;
  background: linear-gradient(90deg, #6a4528, #4a2f1c 60%, #2f1d10); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.adv-glass::before { left: calc(50% - 2px); top: 0; bottom: 0; width: 4px; }
.adv-glass::after { top: 46%; left: 0; right: 0; height: 4px; background: linear-gradient(180deg, #6a4528, #4a2f1c 60%, #2f1d10); }
.adv-room { position: absolute; inset: 0; z-index: 0; }
/* Reflejo del cristal: una franja de luna que se desliza al inclinar la ventana. */
.adv-pane { position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(118deg, transparent 34%, rgba(255, 255, 255, .17) 42%, transparent 50%, transparent 58%, rgba(255, 255, 255, .08) 62%, transparent 66%),
    radial-gradient(60% 40% at 88% 4%, rgba(210, 225, 255, .22), transparent 70%);
  background-size: 220% 100%, 100% 100%; background-position: calc(50% + var(--gx) * 30%) 0, 0 0;
  transition: background-position .25s ease-out; }
.adv-num { position: absolute; z-index: 5; left: 50%; bottom: -3px; transform: translate(-50%, 50%) translateZ(12px); min-width: 26px; padding: 1px 7px; border-radius: 999px;
  white-space: nowrap; text-align: center; font-weight: 800; font-size: .78rem; line-height: 1.35; color: #2b170b;
  background: linear-gradient(180deg, #f6e6c6, #dcc196); border: 1px solid #8a6a45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 0 #6e5233, 0 3px 6px rgba(0, 0, 0, .45); }
.adv-stars { margin-left: 3px; color: #b45309; letter-spacing: 0; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.adv-stars:empty { display: none; }
/* Alféizar de piedra con su montón de nieve (sombra azul y destellos). */
.adv-sill { position: absolute; z-index: 3; left: -9%; right: -9%; bottom: -6px; height: 7px; border-radius: 2px;
  background: linear-gradient(180deg, #b3a796, #6d645a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 5px rgba(0, 0, 0, .55); }
.adv-sill::before { content: ''; position: absolute; left: 2%; right: 4%; bottom: 4px; height: 8px; border-radius: 60% 50% 30% 40% / 100% 100% 20% 20%;
  background: radial-gradient(120% 140% at 70% 0, #ffffff, #e9f0ff 50%, var(--adv-snow-shadow) 100%);
  box-shadow: inset 0 -2px 2px rgba(110, 135, 195, .45); }
.adv-sill::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27110%27%20height%3D%2760%27%3E%3Cpath%20d%3D%27M60.81%2037.34H64.81M62.81%2035.34V39.34%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%2726.62%27%20cy%3D%2726.8%27%20r%3D%270.42%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Cpath%20d%3D%27M83.89%2050.42H87.89M85.89%2048.42V52.42%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%2733.66%27%20cy%3D%2736.88%27%20r%3D%270.56%27%20fill%3D%27%23ffffff%27%2F%3E%3Ccircle%20cx%3D%278.05%27%20cy%3D%2722.17%27%20r%3D%270.72%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Ccircle%20cx%3D%2759.8%27%20cy%3D%2725.92%27%20r%3D%270.85%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Ccircle%20cx%3D%2750.87%27%20cy%3D%2749.95%27%20r%3D%270.72%27%20fill%3D%27%23ffffff%27%2F%3E%3Cpath%20d%3D%27M67.11%203.16H71.11M69.11%201.1600000000000001V5.16%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Cpath%20d%3D%27M1.1099999999999999%2050.44H5.109999999999999M3.11%2048.44V52.44%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Cpath%20d%3D%27M24.37%2039.98H28.37M26.37%2037.98V41.98%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%2729.94%27%20cy%3D%278.47%27%20r%3D%270.55%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Ccircle%20cx%3D%2783.13%27%20cy%3D%270.86%27%20r%3D%270.86%27%20fill%3D%27%23bfe0ff%27%2F%3E%3C%2Fsvg%3E"); background-size: 55px 30px; opacity: .9; animation: adv-glint 3.2s ease-in-out infinite alternate; }
.adv-cap { position: absolute; z-index: 3; left: 16%; right: 16%; top: -6px; height: 9px; border-radius: 50% 50% 35% 35% / 100% 100% 30% 30%; pointer-events: none;
  background: radial-gradient(110% 140% at 68% 0, #ffffff, #e6eeff 55%, var(--adv-snow-shadow));
  box-shadow: inset 0 -1.5px 1.5px rgba(110, 135, 195, .5), 0 1px 1px rgba(0, 0, 0, .2); }
/* Luz de la ventana sobre el muro y la nieve de abajo. */
.adv-spill { position: absolute; z-index: 0; left: -30%; right: -30%; top: 86%; height: 46px; pointer-events: none; opacity: 0;
  background: radial-gradient(50% 60% at 50% 0, rgba(255, 196, 110, .55), rgba(255, 160, 70, .18) 55%, transparent 75%); }
/* Contraventanas: tablas con veta, bisel y una estrella calada que deja ver la luz. */
.adv-shutter { position: absolute; top: 5px; bottom: 5px; width: calc(50% - 5px); z-index: 3; backface-visibility: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .25), transparent 18%, transparent 82%, rgba(0, 0, 0, .3)),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(0, 0, 0, .45) 8px 9px, rgba(255, 220, 180, .12) 9px 10px),
    var(--adv-grain), linear-gradient(180deg, #7a5131, #5a3920);
  background-size: auto, auto, 160px 60px, auto; background-blend-mode: normal, normal, overlay, normal;
  border: 1px solid var(--adv-wood-dark); box-shadow: inset 1px 1px 0 rgba(255, 220, 180, .22);
  transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); }
.adv-shutter.is-l { left: 5px; border-radius: 40% 0 0 4px / 22% 0 0 4px; transform-origin: left center; }
.adv-shutter.is-r { right: 5px; border-radius: 0 40% 4px 0 / 0 22% 4px 0; transform-origin: right center; }
.adv-cut { display: none; position: absolute; left: 50%; top: 30%; width: 13px; height: 13px; transform: translateX(-50%);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: radial-gradient(circle at 50% 60%, #ffffff, #ffe08a 40%, #ff9d2e 85%); }
.adv-silhouette { position: absolute; z-index: 1; left: 50%; bottom: 4%; transform: translateX(-50%); font-size: 1.55rem; line-height: 1;
  filter: brightness(0) opacity(.62) drop-shadow(0 0 3px rgba(255, 170, 80, .55)); transition: opacity .3s; }
.adv-glass:has(.adv-cat) .adv-silhouette { opacity: 0; }
/* Cortinas recogidas, con pliegues y luz cálida a contraluz. */
.adv-curtain { position: absolute; z-index: 2; top: 0; bottom: 0; width: 30%; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 5px, rgba(255, 210, 160, .18) 5px 6px, transparent 6px 8px), linear-gradient(90deg, #7f1d1d, #b91c1c 70%, #ef4444);
  box-shadow: inset -2px 0 4px rgba(255, 200, 140, .4); }
.adv-curtain.is-l { left: 0; clip-path: polygon(0 0, 100% 0, 72% 38%, 34% 58%, 52% 100%, 0 100%); }
.adv-curtain.is-r { right: 0; transform: scaleX(-1); clip-path: polygon(0 0, 100% 0, 72% 38%, 34% 58%, 52% 100%, 0 100%); }
.adv-window:nth-child(3n+2) .adv-curtain { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 5px, rgba(255, 230, 160, .16) 5px 6px, transparent 6px 8px), linear-gradient(90deg, #14532d, #15803d 70%, #22c55e); }
.adv-window:nth-child(3n) .adv-curtain { background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 5px, rgba(255, 255, 255, .2) 5px 6px, transparent 6px 8px), linear-gradient(90deg, #a16207, #eab308 70%, #fde68a); opacity: .9; }
/* Escarcha de las ventanas por venir: helechos de hielo que crecen desde las esquinas. */
.adv-frost { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2790%27%20height%3D%2790%27%3E%3Cpath%20d%3D%27M45.45%2062.01L64.32%2054.41M49.22%2060.49L50.26%2053.03M49.22%2060.49L55.13%2065.15M53%2058.97L53.89%2052.52M53%2058.97L58.11%2063M56.77%2057.45L57.53%2052.01M56.77%2057.45L61.09%2060.85M60.55%2055.93L61.16%2051.5M60.55%2055.93L64.06%2058.7M63.74%2022.6L46.96%2012.45M60.38%2020.57L54.04%2024.09M60.38%2020.57L60.55%2013.32M57.03%2018.54L51.54%2021.58M57.03%2018.54L57.17%2012.27M53.67%2016.51L49.04%2019.08M53.67%2016.51L53.8%2011.22M50.32%2014.48L46.54%2016.57M50.32%2014.48L50.42%2010.17M29.75%2035.23L37.46%208.27M31.3%2029.84L24.06%2022.4M31.3%2029.84L41.37%2027.35M32.84%2024.44L26.58%2018.01M32.84%2024.44L41.55%2022.29M34.38%2019.05L29.1%2013.63M34.38%2019.05L41.73%2017.24M35.92%2013.66L31.62%209.24M35.92%2013.66L41.91%2012.18M10%2073.73L28.11%2083.35M13.62%2075.65L20.04%2071.61M13.62%2075.65L13.87%2083.23M17.24%2077.57L22.8%2074.08M17.24%2077.57L17.46%2084.13M20.86%2079.5L25.55%2076.55M20.86%2079.5L21.05%2085.03M24.49%2081.42L28.31%2079.02M24.49%2081.42L24.63%2085.93M13.82%207.01L31.34%206.54M17.32%206.91L20.4%201.21M17.32%206.91L20.7%2012.45M20.83%206.82L23.48%201.88M20.83%206.82L23.75%2011.61M24.33%206.73L26.57%202.56M24.33%206.73L26.79%2010.76M27.83%206.63L29.66%203.24M27.83%206.63L29.84%209.92M56.91%2012.98L34.28%2019.27M52.39%2014.24L50.24%2022.66M52.39%2014.24L46.2%208.13M47.86%2015.5L46%2022.78M47.86%2015.5L42.51%2010.22M43.33%2016.75L41.77%2022.9M43.33%2016.75L38.82%2012.3M38.81%2018.01L37.53%2023.02M38.81%2018.01L35.13%2014.38M12.4%2082.97L33.49%2064.17M16.62%2079.21L14.47%2068.98M16.62%2079.21L26.53%2082.52M20.84%2075.45L18.98%2066.6M20.84%2075.45L29.41%2078.31M25.05%2071.69L23.48%2064.23M25.05%2071.69L32.29%2074.1M29.27%2067.93L27.99%2061.85M29.27%2067.93L35.17%2069.9%27%20stroke%3D%27%23eaf3ff%27%20stroke-opacity%3D%27.75%27%20stroke-width%3D%27.7%27%20stroke-linecap%3D%27round%27%20fill%3D%27none%27%2F%3E%3Cpath%20d%3D%27M71.2%2075.62L78.89%2077.99M74.15%2072.88L75.94%2080.73M78%2074.07L72.1%2079.54M24.62%205.93L30.35%207.7M26.82%203.9L28.15%209.74M29.68%204.78L25.29%208.86M8.36%205.02L15.5%207.23M11.1%202.48L12.76%209.76M14.67%203.59L9.19%208.66M20.72%2062.78L27.37%2064.84M23.28%2060.42L24.82%2067.2M26.6%2061.44L21.5%2066.17M55.55%2023.31L63.7%2025.83M58.68%2020.41L60.57%2028.73M62.75%2021.67L56.5%2027.47%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.9%27%20stroke-width%3D%27.8%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E"), radial-gradient(120% 90% at 50% 100%, rgba(225, 238, 255, .5), rgba(220, 235, 255, .12) 70%);
  background-size: 45px 45px, 100% 100%;
  -webkit-mask-image: radial-gradient(70% 55% at 0 100%, #000 30%, transparent 75%), radial-gradient(70% 55% at 100% 100%, #000 30%, transparent 75%), radial-gradient(60% 40% at 50% 0, #000 20%, transparent 70%), radial-gradient(40% 30% at 0 0, #000, transparent);
  mask-image: radial-gradient(70% 55% at 0 100%, #000 30%, transparent 75%), radial-gradient(70% 55% at 100% 100%, #000 30%, transparent 75%), radial-gradient(60% 40% at 50% 0, #000 20%, transparent 70%), radial-gradient(40% 30% at 0 0, #000, transparent); }
.adv-bow { position: absolute; z-index: 6; left: 50%; top: 38%; width: 42px; transform: translate(-50%, -50%) translateZ(30px); pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); transition: transform .3s cubic-bezier(.4, 0, .6, 1), opacity .25s; }
.adv-bow svg { display: block; width: 100%; height: auto; }
.adv-ribbon { position: absolute; z-index: 4; inset: 5px auto 5px calc(50% - 3px); width: 6px; transform: translateZ(2px);
  background: linear-gradient(90deg, #7f1d1d, #dc2626 40%, #f87171 55%, #b91c1c); box-shadow: 0 0 3px rgba(0, 0, 0, .5); transition: opacity .2s; }
.adv-tag { position: absolute; z-index: 6; left: 50%; top: 50%; font-weight: 800; font-size: .62rem; line-height: 1.4;
  color: #3a2200; background: linear-gradient(180deg, #fff3c4, var(--adv-gold)); padding: 2px 6px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  transform: translate(-50%, -50%) translateZ(40px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 0 #a16207, 0 3px 8px rgba(0, 0, 0, .5); }

/* ── Estados ─────────────────────────────────────────────────────────────────── */
/* Abiertas (hechas, por cobrar, perdidas y futuras): contraventanas plegadas contra el muro. */
.adv-window:is(.is-completed, .is-claimable, .is-missed, .is-locked) .adv-shutter.is-l { transform: rotateY(-110deg); }
.adv-window:is(.is-completed, .is-claimable, .is-missed, .is-locked) .adv-shutter.is-r { transform: rotateY(110deg); }
/* Hechas y por cobrar: la habitación encendida, papel pintado y suelo en penumbra. */
.adv-window:is(.is-completed, .is-claimable) .adv-glass { background: #ffb85c; box-shadow: inset 0 5px 7px rgba(80, 30, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .5); }
.adv-window:is(.is-completed, .is-claimable) .adv-room, .adv-window.is-opening .adv-room {
  background:
    linear-gradient(180deg, transparent 72%, rgba(90, 40, 10, .55) 72%, rgba(60, 25, 5, .7)),
    repeating-linear-gradient(90deg, rgba(150, 70, 20, .1) 0 3px, transparent 3px 9px),
    radial-gradient(110% 90% at 50% 62%, #fff4d1, var(--adv-glow) 40%, #e08a2c 80%, #9a4a16); }
.adv-window:is(.is-completed, .is-claimable) .adv-spill { opacity: .85; }
.adv-window:is(.is-completed, .is-claimable) .adv-surround { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), inset -1px -2px 2px rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .55), 0 0 22px 3px rgba(255, 190, 100, .38); }
.adv-window:is(.is-completed, .is-claimable) .adv-sill::before { background: radial-gradient(120% 140% at 50% 0, #fffaf0, #ffe2b0 45%, #c9b8c8 100%); }
/* Por cobrar: un brillo dorado que late. */
.adv-window.is-claimable .adv-surround { animation: adv-claim 1.8s ease-in-out infinite; }
@keyframes adv-claim { 50% { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), inset -1px -2px 2px rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .55), 0 0 34px 12px rgba(253, 230, 138, .8); } }
/* Hoy: contraventanas cerradas con lazo como un regalo, estrellas caladas que tiemblan con
   la vela de dentro, otra vela en el alféizar y su luz latiendo en la nieve. */
.adv-window.is-today:not(.is-claimable) .adv-glass { background: radial-gradient(90% 70% at 50% 70%, #ffd08a, #c2621f 55%, #3b1a07); }
.adv-window.is-today:not(.is-claimable) .adv-shutter { background:
    radial-gradient(circle at 50% 36%, rgba(255, 196, 100, .55), rgba(255, 160, 60, .15) 22%, transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, .2), transparent 18%, transparent 82%, rgba(0, 0, 0, .25)),
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(0, 0, 0, .4) 8px 9px, rgba(255, 220, 180, .16) 9px 10px),
    var(--adv-grain), linear-gradient(180deg, #96643a, #6c4424);
  background-size: auto, auto, auto, 160px 60px, auto; background-blend-mode: screen, normal, normal, overlay, normal; }
.adv-window.is-today:not(.is-claimable) .adv-cut { display: block; animation: adv-cut 2.2s ease-in-out infinite; }
@keyframes adv-cut { 0%, 100% { filter: brightness(1); } 30% { filter: brightness(1.35); } 55% { filter: brightness(.85); } 70% { filter: brightness(1.2); } }
.adv-window.is-today .adv-surround { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), inset -1px -2px 2px rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .55), 0 0 26px 7px rgba(255, 170, 80, .55); }
.adv-window.is-today:not(.is-claimable) .adv-spill { opacity: 1; animation: adv-pulse 2.6s ease-in-out infinite; }
@keyframes adv-pulse { 0%, 100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.08); } }
.adv-window.is-today:not(.is-claimable) .adv-tag { top: auto; bottom: 7%; transform: translate(-50%, 0) translateZ(40px); background: linear-gradient(180deg, #fffdf2, #fff0c2); }
.adv-window.is-today .adv-sill::before { background: radial-gradient(120% 140% at 30% 0, #fffaf0, #ffd9a0 45%, #c9b0b8 100%); }
.adv-candle { position: absolute; z-index: 6; left: 3%; bottom: 3px; width: 7px; height: 15px; transform: translateZ(18px); pointer-events: none; border-radius: 1.5px 1.5px 1px 1px;
  background: linear-gradient(90deg, #b91c1c, #ef4444 45%, #fca5a5 60%, #b91c1c); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.adv-candle::before { /* halo */ content: ''; position: absolute; left: 50%; top: -14px; width: 46px; height: 46px; transform: translate(-50%, -30%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 110, .5), rgba(255, 170, 70, .15) 55%, transparent); animation: adv-halo 2.3s ease-in-out infinite; }
.adv-flame { position: absolute; left: 50%; bottom: 100%; width: 7px; height: 11px; margin-left: -3.5px; transform-origin: 50% 100%;
  border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%;
  background: radial-gradient(circle at 50% 72%, #ffffff 0 18%, #fff3b0 30%, #ffb347 60%, rgba(255, 90, 0, 0) 78%);
  filter: drop-shadow(0 0 4px #ffb347) drop-shadow(0 0 8px rgba(255, 140, 40, .8)); animation: adv-flame 1.3s ease-in-out infinite; }
@keyframes adv-flame {
  0%, 100% { transform: scale(1, 1) rotate(-2deg); }
  18% { transform: scale(.92, 1.12) rotate(3deg); }
  35% { transform: scale(1.05, .9) rotate(-4deg); }
  52% { transform: scale(.95, 1.15) rotate(1deg); }
  70% { transform: scale(1.02, .96) rotate(4deg); }
  85% { transform: scale(.9, 1.08) rotate(-1deg); } }
@keyframes adv-halo { 0%, 100% { opacity: .8; transform: translate(-50%, -30%) scale(1); } 40% { opacity: 1; transform: translate(-50%, -30%) scale(1.12); } 70% { opacity: .7; transform: translate(-50%, -30%) scale(.95); } }
/* Pasada sin hacer pero aún recuperable: contraventanas entornadas y un resplandor frío. */
.adv-window.is-open:not(.is-claimable) .adv-shutter.is-l { transform: rotateY(-40deg); }
.adv-window.is-open:not(.is-claimable) .adv-shutter.is-r { transform: rotateY(40deg); }
.adv-window.is-open:not(.is-claimable) .adv-glass { background: radial-gradient(90% 70% at 50% 75%, #5b6fa8, #1f2a58 60%, #0b1030); }
.adv-window.is-open:not(.is-claimable) .adv-surround { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), inset -1px -2px 2px rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .55), 0 0 16px 3px rgba(147, 197, 253, .4); }
.adv-window.is-open:not(.is-claimable) .adv-tag { background: linear-gradient(180deg, #f0f6ff, #cfe0ff); color: #0b1330; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #5b7bbf, 0 3px 8px rgba(0, 0, 0, .5); }
/* Perdida: abierta, a oscuras. */
.adv-window.is-missed .adv-room { background: linear-gradient(180deg, transparent 72%, rgba(0, 0, 0, .4) 72%), radial-gradient(110% 90% at 50% 70%, #2a3355, #121937); }
.adv-window.is-missed .adv-curtain { filter: grayscale(.8) brightness(.45); }
.adv-window.is-missed .adv-silhouette { filter: grayscale(1) opacity(.3); }
/* Futura: cristal oscuro con escarcha; nadie en casa todavía. */
.adv-window.is-locked .adv-frame { filter: none; background: var(--adv-grain), linear-gradient(200deg, #6b4c33, #47301e 55%, #2a1a0e);
  background-size: 160px 60px, auto; background-blend-mode: overlay, normal; }

/* Al entrar, las ventanas hechas se encienden una tras otra con un fogonazo de luz. El
   cristal es lo último en terminar: su animationend quita is-lighting (adviento.js). */
.adv-window.is-lighting .adv-glass { animation: adv-light-on 1s ease-out both; animation-delay: calc(150ms + var(--k, 0) * 110ms); }
.adv-window.is-lighting .adv-spill { animation: adv-spill-on .98s ease-out both; animation-delay: calc(150ms + var(--k, 0) * 110ms); }
.adv-window.is-lighting .adv-surround { animation: adv-bloom .98s ease-out both; animation-delay: calc(150ms + var(--k, 0) * 110ms); }
@keyframes adv-light-on { 0% { filter: brightness(.12) saturate(.4); } 30% { filter: brightness(.12) saturate(.4); } 45% { filter: brightness(1.7) saturate(1.1); } 100% { filter: brightness(1) saturate(1); } }
@keyframes adv-spill-on { 0%, 30% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: .85; } }
@keyframes adv-bloom {
  0%, 30% { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), inset -1px -2px 2px rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .55), 0 0 0 0 rgba(255, 200, 110, 0); }
  45% { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), inset -1px -2px 2px rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .55), 0 0 40px 16px rgba(255, 210, 130, .75); }
  100% { box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), inset -1px -2px 2px rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .55), 0 0 22px 3px rgba(255, 190, 100, .38); } }

/* ── Al pinchar ──────────────────────────────────────────────────────────────── */
/* Doble clase: tiene que ganar a las animaciones de estado (el latido de hoy, el brillo de
   por cobrar, el encendido de la entrada). */
.adv-window.is-opening.is-opening { z-index: 8; animation: adv-lunge .72s cubic-bezier(.3, 1.2, .5, 1) both; }
@keyframes adv-lunge {
  0% { transform: translateZ(0); }
  18% { transform: translateZ(-10px) scale(.98); }
  55% { transform: translateZ(70px); }
  100% { transform: translateZ(86px); } }
/* Las contraventanas se abaten contra el muro: se les ve el revés mientras giran. */
.adv-window.is-opening.is-opening .adv-shutter { backface-visibility: visible; filter: brightness(.8); }
.adv-window.is-opening.is-opening .adv-shutter.is-l { transform: rotateY(-160deg); transition: transform .5s cubic-bezier(.2, 1.5, .4, 1) .1s; }
.adv-window.is-opening.is-opening .adv-shutter.is-r { transform: rotateY(160deg); transition: transform .5s cubic-bezier(.2, 1.5, .4, 1) .1s; }
.adv-window.is-opening.is-opening .adv-glass { animation: adv-flash .72s ease-out both; }
@keyframes adv-flash { 0% { filter: brightness(1); } 25% { filter: brightness(1); } 45% { filter: brightness(2.3) saturate(1.2); } 100% { filter: brightness(1.5) saturate(1.1); } }
.adv-window.is-opening.is-opening .adv-spill { animation: adv-spill-flood .72s ease-out both; }
@keyframes adv-spill-flood { 0% { opacity: .8; transform: scale(1); } 45% { opacity: 1; transform: scale(1.6, 2); } 100% { opacity: 1; transform: scale(1.4, 1.7); } }
.adv-window.is-opening .adv-bow { opacity: 0; transform: translate(-50%, -150%) translateZ(50px) rotate(-14deg) scale(1.2); }
.adv-window.is-opening .adv-ribbon, .adv-window.is-opening .adv-tag, .adv-window.is-opening .adv-cut { opacity: 0; transition: opacity .15s; }
/* La luz inunda la fachada: un resplandor con rayos que crece detrás de la ventana. */
.adv-flood { position: absolute; z-index: -1; left: 50%; top: 45%; width: 300%; aspect-ratio: 1; margin-left: -150%; margin-top: -150%; border-radius: 50%; pointer-events: none;
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 230, 170, .35) 0deg 6deg, transparent 6deg 18deg),
    radial-gradient(closest-side, rgba(255, 236, 190, .95), rgba(255, 196, 110, .55) 35%, rgba(255, 170, 80, 0) 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
  animation: adv-flood .72s ease-out both; }
@keyframes adv-flood {
  0% { opacity: 0; transform: scale(.2) rotate(0deg); }
  25% { opacity: 0; transform: scale(.25) rotate(0deg); }
  50% { opacity: 1; transform: scale(.9) rotate(12deg); }
  100% { opacity: .85; transform: scale(1.15) rotate(24deg); } }
.adv-puff { position: absolute; z-index: 7; bottom: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, #fff, #dfe8ff 70%); box-shadow: 0 0 3px rgba(255, 255, 255, .8);
  opacity: 0; animation: adv-puff .65s cubic-bezier(.25, .6, .4, 1) forwards; }
.adv-puff.is-top { bottom: auto; top: -4px; }
@keyframes adv-puff {
  0% { opacity: 1; transform: translate(0, 0) scale(var(--s)); }
  45% { opacity: 1; transform: translate(calc(var(--dx) * .7), var(--dy)) scale(var(--s)); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + var(--fall))) scale(calc(var(--s) * .5)); } }
.adv-spark { position: absolute; z-index: 7; left: 50%; top: 45%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; pointer-events: none;
  background: #fff8dc; box-shadow: 0 0 6px 2px rgba(255, 210, 120, .9); opacity: 0; animation: adv-spark .5s ease-out forwards; }
@keyframes adv-spark { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 20% { opacity: 1; transform: translate(calc(var(--dx) * .25), calc(var(--dy) * .25)) scale(1.2); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }

/* ── Jardín ──────────────────────────────────────────────────────────────────── */
/* Nieve con sombra azul al pie de la casa, la luz cálida de las ventanas derramada encima
   y destellos que titilan. */
.adv-ground { position: relative; z-index: 3; height: 104px; margin: -16px -16px 0; border-radius: 50% 50% 0 0 / 28px 28px 0 0;
  background:
    radial-gradient(46% 50px at 50% 0, rgba(255, 196, 120, .55), transparent 80%),
    linear-gradient(180deg, rgba(70, 92, 160, .45), transparent 20px),
    radial-gradient(34% 22px at 30% 74%, rgba(110, 135, 200, .35), transparent 75%),
    radial-gradient(30% 18px at 74% 58%, rgba(110, 135, 200, .28), transparent 75%),
    radial-gradient(30% 14px at 34% 64%, rgba(255, 255, 255, .8), transparent 75%),
    radial-gradient(80% 60px at 70% 30%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(180deg, #f4f8ff 0, #dde7fb 38%, #b4c4ea 78%, #8fa3d6 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .8); }
.adv-glints { position: absolute; inset: 8px 0 0; pointer-events: none; border-radius: inherit; }
.adv-glints.is-a { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27140%27%20height%3D%2770%27%3E%3Ccircle%20cx%3D%2721.67%27%20cy%3D%273.72%27%20r%3D%270.59%27%20fill%3D%27%23ffffff%27%2F%3E%3Ccircle%20cx%3D%2788.79%27%20cy%3D%2728.25%27%20r%3D%270.45%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Cpath%20d%3D%27M36.39%2021.24H40.39M38.39%2019.24V23.24%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Cpath%20d%3D%27M26.41%2030.62H30.41M28.41%2028.62V32.620000000000005%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%2785.07%27%20cy%3D%2740.47%27%20r%3D%270.79%27%20fill%3D%27%23ffffff%27%2F%3E%3Cpath%20d%3D%27M119.37%2047.91H123.37M121.37%2045.91V49.91%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%2787.35%27%20cy%3D%2751.54%27%20r%3D%270.69%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Cpath%20d%3D%27M38.68%2069.64H42.68M40.68%2067.64V71.64%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%2714.45%27%20cy%3D%2721.54%27%20r%3D%270.85%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Ccircle%20cx%3D%2776.54%27%20cy%3D%2716.75%27%20r%3D%270.79%27%20fill%3D%27%23ffffff%27%2F%3E%3Ccircle%20cx%3D%27113.66%27%20cy%3D%2747.82%27%20r%3D%270.88%27%20fill%3D%27%23ffffff%27%2F%3E%3Ccircle%20cx%3D%273.97%27%20cy%3D%2751.43%27%20r%3D%270.71%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Ccircle%20cx%3D%2795.44%27%20cy%3D%273.18%27%20r%3D%270.89%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Cpath%20d%3D%27M93.17%2039.69H97.17M95.17%2037.69V41.69%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%2788.21%27%20cy%3D%2739.72%27%20r%3D%270.41%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Ccircle%20cx%3D%2791.4%27%20cy%3D%2768.34%27%20r%3D%270.77%27%20fill%3D%27%23bfe0ff%27%2F%3E%3C%2Fsvg%3E"); background-size: 140px 70px; animation: adv-glint 2.8s ease-in-out infinite alternate; }
.adv-glints.is-b { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27110%27%20height%3D%2760%27%3E%3Cpath%20d%3D%27M60.81%2037.34H64.81M62.81%2035.34V39.34%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%2726.62%27%20cy%3D%2726.8%27%20r%3D%270.42%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Cpath%20d%3D%27M83.89%2050.42H87.89M85.89%2048.42V52.42%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%2733.66%27%20cy%3D%2736.88%27%20r%3D%270.56%27%20fill%3D%27%23ffffff%27%2F%3E%3Ccircle%20cx%3D%278.05%27%20cy%3D%2722.17%27%20r%3D%270.72%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Ccircle%20cx%3D%2759.8%27%20cy%3D%2725.92%27%20r%3D%270.85%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Ccircle%20cx%3D%2750.87%27%20cy%3D%2749.95%27%20r%3D%270.72%27%20fill%3D%27%23ffffff%27%2F%3E%3Cpath%20d%3D%27M67.11%203.16H71.11M69.11%201.1600000000000001V5.16%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Cpath%20d%3D%27M1.1099999999999999%2050.44H5.109999999999999M3.11%2048.44V52.44%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Cpath%20d%3D%27M24.37%2039.98H28.37M26.37%2037.98V41.98%27%20stroke%3D%27%23fff%27%20stroke-width%3D%27.7%27%2F%3E%3Ccircle%20cx%3D%2729.94%27%20cy%3D%278.47%27%20r%3D%270.55%27%20fill%3D%27%23bfe0ff%27%2F%3E%3Ccircle%20cx%3D%2783.13%27%20cy%3D%270.86%27%20r%3D%270.86%27%20fill%3D%27%23bfe0ff%27%2F%3E%3C%2Fsvg%3E"); background-size: 110px 60px; background-position: 40px 20px; animation: adv-glint 2.8s ease-in-out -1.4s infinite alternate; }
@keyframes adv-glint { 0% { opacity: .1; } 50% { opacity: .9; } 100% { opacity: .35; } }
.adv-ground-pines { position: absolute; right: -4px; bottom: 10px; width: 72px; height: 86px; pointer-events: none; }
.adv-snowman { position: absolute; left: 8%; bottom: 8px; width: 56px; height: 86px; z-index: 4; }
.adv-snowman svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(-2px 3px 2px rgba(40, 60, 120, .35)); }
.adv-snowman .adv-sm-eyes { transform-box: fill-box; transform-origin: 50% 50%; }
.adv-snowman .adv-sm-arm.is-r { transform-box: fill-box; transform-origin: 0 100%; }
.adv-snowman .adv-sm-scarf { transform-box: fill-box; transform-origin: 30% 0; animation: adv-scarf 3.4s ease-in-out infinite; }
.adv-snowman .adv-sm-hat { transform-box: fill-box; transform-origin: 20% 100%; }
@keyframes adv-scarf { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(9deg) skewY(-3deg); } }
.adv-snowman.is-blinking .adv-sm-eyes { animation: adv-blink .35s ease-in-out 2; }
.adv-snowman.is-blinking .adv-sm-arm.is-r { animation: adv-wave .8s ease-in-out; }
.adv-snowman.is-blinking .adv-sm-hat { animation: adv-hat .8s ease-in-out; }
@keyframes adv-blink { 50% { transform: scaleY(.1); } }
@keyframes adv-wave { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-22deg); } 50% { transform: rotate(-4deg); } 75% { transform: rotate(-20deg); } }
@keyframes adv-hat { 0%, 100% { transform: none; } 40% { transform: rotate(-10deg) translateY(-2px); } }

/* ── Visitantes (adviento-visitors.js) ───────────────────────────────────────── */
/* De uno en uno, sin tapar los toques. La trayectoria la lleva la Web Animations API;
   aquí solo el aspecto y las partes que se mueven. */
.adv-visitor { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; will-change: transform; }
.adv-visitor svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Trineo: silueta que cruza por delante de la luna, con un filo de luz de luna. */
.adv-sleigh { width: 124px; height: 38px; z-index: 0; color: #060b1e; filter: drop-shadow(0 0 1px rgba(210, 225, 255, .75)) drop-shadow(0 0 5px rgba(180, 200, 255, .25)); }
.adv-sleigh .adv-rd-legs { transform-box: fill-box; transform-origin: 50% 0; animation: adv-gallop .34s ease-in-out infinite alternate; }
.adv-sleigh .adv-rd-legs.is-back { animation-delay: -.17s; }
@keyframes adv-gallop { from { transform: rotate(-16deg); } to { transform: rotate(18deg); } }
.adv-sleigh .adv-rd-nose { fill: #ff4d4d; filter: drop-shadow(0 0 2px #ff4d4d) drop-shadow(0 0 4px #ff8080); animation: adv-nose 1s ease-in-out infinite alternate; }
@keyframes adv-nose { from { opacity: .7; } to { opacity: 1; } }
/* Petirrojo: vuela batiendo las alas, se posa, da saltitos y ladea la cabeza. */
.adv-robin { width: 28px; height: 24.5px; filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, .45)); }
.adv-robin .adv-rb-wing { transform-box: fill-box; transform-origin: 70% 30%; }
.adv-robin.is-flying .adv-rb-wing { animation: adv-flap .13s ease-in-out infinite alternate; }
.adv-robin.is-flying .adv-rb-legs { opacity: 0; }
@keyframes adv-flap { from { transform: rotate(10deg) scaleY(1); } to { transform: rotate(-40deg) scaleY(.5); } }
.adv-robin .adv-rb-head { transform-box: fill-box; transform-origin: 30% 90%; }
.adv-robin.is-perched .adv-rb-head { animation: adv-head 1.4s ease-in-out infinite; }
@keyframes adv-head { 0%, 100% { transform: rotate(0deg); } 20% { transform: rotate(-16deg); } 45% { transform: rotate(-16deg); } 60% { transform: rotate(10deg); } 80% { transform: rotate(10deg); } }
/* Gato tras el cristal: asoma, mira a un lado y a otro, parpadea y mueve la cola. */
.adv-cat { top: auto; left: 8%; bottom: 0; width: 84%; height: 70%; z-index: 1; }
.adv-cat .adv-cat-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: adv-cat-blink 2.6s ease-in-out infinite; }
.adv-cat .adv-cat-pupils { animation: adv-cat-look 4.2s ease-in-out infinite; }
.adv-cat .adv-cat-tail { transform-box: fill-box; transform-origin: 10% 100%; animation: adv-cat-tail 1.4s ease-in-out infinite alternate; }
@keyframes adv-cat-blink { 0%, 40%, 48%, 100% { transform: scaleY(1); } 44% { transform: scaleY(.1); } }
@keyframes adv-cat-look { 0%, 25% { transform: translateX(0); } 35%, 55% { transform: translateX(-1.4px); } 65%, 85% { transform: translateX(1.4px); } 100% { transform: translateX(0); } }
@keyframes adv-cat-tail { from { transform: rotate(-10deg); } to { transform: rotate(16deg); } }
/* Estrella fugaz: cabeza brillante y estela. */
.adv-shooting { z-index: 0; width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(200, 220, 255, .5) 60%, #fff); }
.adv-shooting::after { content: ''; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 2px #fff, 0 0 14px 4px rgba(190, 210, 255, .7); }

/* ── Cómo se ganan, premio, tienda y conversión ──────────────────────────────── */
.adv-how, .adv-prize, .adv-shop { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 24px -12px rgba(0, 0, 0, .7); }
.adv-how { position: relative; margin: 26px auto 0; max-width: 520px; padding: 12px 16px; border-radius: 14px;
  background: rgba(9, 14, 36, .66); border: 1px solid rgba(186, 214, 255, .25); }
.adv-how summary { cursor: pointer; font-weight: 800; color: var(--adv-gold); }
.adv-how ul { margin: 10px 0 0; padding-left: 1.1rem; display: grid; gap: 6px; }
.adv-how p { margin: 10px 0 0; color: var(--adv-muted); }
.adv-prize { position: relative; display: flex; align-items: center; gap: 14px; margin: 22px auto 0; max-width: 520px; padding: 14px 16px;
  border-radius: 16px; background: linear-gradient(135deg, rgba(36, 50, 95, .88), rgba(9, 14, 36, .88)); border: 1px solid rgba(255, 207, 122, .45); }
.adv-prize-emoji { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .45)); }
.adv-prize-txt { display: flex; flex-direction: column; gap: 2px; }
.adv-prize-txt strong { color: var(--adv-gold); }
.adv-prize-txt span { font-size: .88rem; color: var(--adv-muted); }
.adv-prize.is-owned { border-color: #86efac; }
.adv-shop { position: relative; margin: 26px auto 0; max-width: 520px; padding: 18px; border-radius: 18px; scroll-margin-top: 84px; outline: none;
  background: rgba(9, 14, 36, .66); border: 1px solid rgba(186, 214, 255, .22); }
/* Llegada a la tienda: un resplandor helado que se apaga. */
.adv-shop.is-spotlight { animation: adv-spotlight 1.8s ease-out; }
@keyframes adv-spotlight { 25% { box-shadow: 0 0 0 6px rgba(147, 197, 253, .35), 0 0 40px 10px rgba(147, 197, 253, .35); } }
.adv-shop-title { margin: 0; font-size: 1.25rem; color: var(--adv-snow); text-align: center; }
.adv-shop-sub { margin: 6px auto 14px; max-width: 36ch; text-align: center; font-size: .9rem; font-weight: 700; color: var(--adv-muted); }
.adv-shop-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.adv-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.adv-item.is-owned { border-color: #86efac; }
.adv-item-emoji { font-size: 2.2rem; line-height: 1.1; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .4)); }
.adv-item-swatch { width: 44px; height: 44px; border-radius: 12px; border: 3px solid #93c5fd; background: linear-gradient(180deg, #24325f, #0b1330); }
.adv-item-name { font-weight: 800; font-size: .9rem; }
.adv-item-btn { min-width: 100%; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(186, 214, 255, .5); font-weight: 800; cursor: pointer;
  background: linear-gradient(180deg, rgba(147, 197, 253, .3), rgba(59, 90, 160, .3)); color: var(--adv-snow); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.adv-item-btn:disabled { opacity: .5; cursor: default; }
.adv-item-btn.is-use { background: rgba(134, 239, 172, .18); color: #bbf7d0; border-color: #86efac; }
.adv-item-inuse { font-size: .85rem; font-weight: 800; color: #86efac; }
.adv-conversion { position: relative; z-index: 5; margin: 10px auto 0; max-width: 520px; padding: 12px 16px; border-radius: 14px; text-align: center;
  background: rgba(34, 197, 94, .15); border: 1px solid rgba(134, 239, 172, .5); font-weight: 700; }
.adv-ended { text-align: center; margin-top: 18px; }

/* Gatos que caminan (tejado y calle): silueta con borde de luz de luna para que se lea
   sobre la nieve y el cielo; las patas se alternan al andar y, sentado, mueve la cola. */
.adv-walker { width: 40px; height: 25px; transform-origin: 50% 100%; z-index: 4;
  filter: drop-shadow(0 0 1.5px rgba(205, 220, 255, .75)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.adv-walker.is-street { z-index: 6; width: 44px; height: 27.5px; }
.adv-walker .adv-wk-legs-a, .adv-walker .adv-wk-legs-b { transform-box: fill-box; transform-origin: 50% 0; }
.adv-walker.is-walking .adv-wk-legs-a { animation: adv-wk-step .42s ease-in-out infinite alternate; }
.adv-walker.is-walking .adv-wk-legs-b { animation: adv-wk-step .42s ease-in-out infinite alternate-reverse; }
.adv-walker.is-walking .adv-wk-head { transform-box: fill-box; transform-origin: 30% 80%; animation: adv-wk-bob .42s ease-in-out infinite alternate; }
@keyframes adv-wk-step { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes adv-wk-bob { from { transform: translateY(0); } to { transform: translateY(.8px); } }
.adv-walker .adv-wk-tail { transform-box: fill-box; transform-origin: 90% 95%; animation: adv-wk-tail 1.6s ease-in-out infinite alternate; }
.adv-walker.is-sitting .adv-wk-tail { animation-duration: .8s; }
@keyframes adv-wk-tail { from { transform: rotate(-8deg); } to { transform: rotate(12deg); } }
/* Sentado: la cabeza mira arriba (a la luna) y parpadea. */
.adv-walker.is-sitting .adv-wk-head { transform-box: fill-box; transform-origin: 30% 80%; transform: rotate(-14deg); transition: transform .4s ease; }
.adv-walker.is-sitting .adv-wk-eye { transform-box: fill-box; transform-origin: 50% 50%; animation: adv-cat-blink 2.2s ease-in-out infinite; }
.adv-paw { width: 4px; height: 3.4px; z-index: 5; border-radius: 50%; background: rgba(70, 90, 140, .55);
  box-shadow: inset 0 1px 1px rgba(20, 30, 60, .5), 0 1px 0 rgba(255, 255, 255, .6); animation: adv-paw 6s ease-out forwards; }
@keyframes adv-paw { 0% { opacity: 0; } 6% { opacity: 1; } 60% { opacity: .8; } 100% { opacity: 0; } }

/* Modo ligero (fxLite.js): en móviles modestos, sin desenfoques de fondo ni del humo y
   sin sombras con filtro en los visitantes; la casa es la misma, solo pesa menos. */
.fx-lite .adv-how, .fx-lite .adv-prize, .fx-lite .adv-shop, .fx-lite .adv-pill { -webkit-backdrop-filter: none; backdrop-filter: none; }
.fx-lite .adv-smoke { filter: none; }
.fx-lite .adv-visitor, .fx-lite .adv-walker, .fx-lite .adv-robin { filter: none; }
.fx-lite .adv-roof svg { filter: none; }

@media (prefers-reduced-motion: reduce) {
  .adv-page *, .adv-page *::before, .adv-page *::after { animation: none !important; transition: none !important; }
  .adv-snow, .adv-visitor, .adv-smoke { display: none; }
}

/* `hidden` frente a los display de arriba (flex/grid). */
.adv-main [hidden] { display: none !important; }

/* Aviso «¡Ya te llega para…!»: baja a la tienda (eventShopNudge.js). */
.adv-shop-nudge { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: 10px auto 0; max-width: 100%; padding: 10px 18px; border: 0; border-radius: 16px; cursor: pointer; font: inherit;
  background: linear-gradient(90deg, #93c5fd, #eef4ff); color: #0b1330; font-weight: 700; text-align: center;
  box-shadow: 0 0 22px rgba(147, 197, 253, .45); animation: adv-toast-in .5s ease; }
.adv-shop-nudge[hidden] { display: none; }
.adv-shop-nudge strong { font-weight: 900; white-space: nowrap; }
.adv-shop-nudge .shop-nudge-ic { font-size: 1.3rem; line-height: 1; }
.adv-shop-nudge:active { transform: scale(.97); }
.adv-shop-nudge:focus-visible { outline: 3px solid var(--adv-gold); outline-offset: 2px; }
