html[data-season="christmas"] {
    --xp-pine: #123c31;
    --xp-pine-deep: #0b2a21;
    --xp-wine: #7b2738;
    --xp-gold: #d8b97a;
    --xp-gold-soft: #f1dfb4;
    --xp-ivory: #f8f1e1;
    --xp-ease: cubic-bezier(.2, .8, .2, 1);
}

.xa-ico { display: block; width: 46%; aspect-ratio: 1; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.xa-ico--star { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.7 7-6.3-3.8-6.3 3.8 1.7-7L2 9.5l7.1-.6z'/%3E%3C/svg%3E"); }
.xa-ico--tree { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l5 7h-3l4 6h-3l3 4H6l3-4H6l4-6H7zM11 19h2v3h-2z'/%3E%3C/svg%3E"); }
.xa-ico--bell { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a1.5 1.5 0 0 1 1.5 1.5v.6A6 6 0 0 1 18 11v4l2 2v1H4v-1l2-2v-4a6 6 0 0 1 4.5-5.9v-.6A1.5 1.5 0 0 1 12 3zm-2 16h4a2 2 0 0 1-4 0z'/%3E%3C/svg%3E"); }
.xa-ico--gift { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h18v4H3zM4 13.5h16V21H4zM12 8.5C10 4.5 5.5 4.5 6.6 7.6c.8 2 5.4.9 5.4.9zm0 0c2-4 6.4-4 5.4-.9-.8 2-5.4.9-5.4.9z'/%3E%3C/svg%3E"); }
.xa-ico--heart { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.3-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.7-8 11-8 11z'/%3E%3C/svg%3E"); }
.xa-ico--snow { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11.2 2h1.6v20h-1.6zM2 11.2h20v1.6H2zM4.4 5.5l1.1-1.1 14.1 14.1-1.1 1.1zM18.5 4.4l1.1 1.1L5.5 19.6l-1.1-1.1z'/%3E%3C/svg%3E"); }
.xa-ico--candle { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 10h6v12H9zM12 2c2 3 2 5 0 6.5-2-1.5-2-3.5 0-6.5z'/%3E%3C/svg%3E"); }
.xa-ico--ball { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2.5h4v3h-4zM12 6a8 8 0 1 1 0 16 8 8 0 0 1 0-16z'/%3E%3C/svg%3E"); }
.xa-ico--cocoa { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9h13v6a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5zM17 10h1.5a2.5 2.5 0 0 1 0 5H17v-1.6h1.5a.9.9 0 0 0 0-1.8H17zM8 3h1.4v4H8zM11.6 3H13v4h-1.4z'/%3E%3C/svg%3E"); }

.xa-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: clamp(24px, 4vw, 48px) clamp(8px, 2vw, 24px);
    padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 64px);
    border-radius: clamp(28px, 4vw, 44px);
    color: var(--xp-ivory);
    background:
        radial-gradient(ellipse 60% 40% at 15% 0%, rgba(216, 185, 122, .16), transparent 70%),
        radial-gradient(ellipse 50% 50% at 100% 100%, rgba(123, 39, 56, .38), transparent 70%),
        linear-gradient(170deg, #154536 0%, #0e3127 48%, #0a241c 100%);
    box-shadow: 0 40px 90px rgba(8, 35, 26, .28);
}
.xa-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 246, 220, .8), transparent),
        radial-gradient(1px 1px at 28% 72%, rgba(255, 246, 220, .6), transparent),
        radial-gradient(1.5px 1.5px at 47% 12%, rgba(255, 246, 220, .7), transparent),
        radial-gradient(1px 1px at 66% 44%, rgba(255, 246, 220, .5), transparent),
        radial-gradient(2px 2px at 84% 22%, rgba(255, 236, 190, .8), transparent),
        radial-gradient(1px 1px at 92% 78%, rgba(255, 246, 220, .6), transparent),
        radial-gradient(1.5px 1.5px at 6% 88%, rgba(255, 246, 220, .6), transparent);
    animation: xa-twinkle 6s ease-in-out infinite alternate;
}
@keyframes xa-twinkle { from { opacity: .55; } to { opacity: 1; } }
.xa-wrap { max-width: 1120px; margin: 0 auto; }
.xa-head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.xa-kicker {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 .7rem;
    color: var(--xp-gold);
    font: 700 .68rem/1 var(--fuente-textos, Montserrat, sans-serif);
    letter-spacing: .26em;
    text-transform: uppercase;
}
.xa-kicker::before, .xa-head .xa-kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.xa-head h2 { margin: 0 0 .8rem; font: 500 clamp(2rem, 4.4vw, 3.4rem)/1.05 var(--fuente-titulos, 'Playfair Display', serif); color: var(--xp-ivory); letter-spacing: -.01em; }
.xa-head p:not(.xa-kicker) { margin: 0; color: rgba(248, 241, 225, .74); line-height: 1.7; }

.xa-tree-wrap { max-width: 960px; margin: 0 auto; }
#xaTreeStage { max-width: max(460px, min(960px, calc((100vh - 40px) * .95))); }
.xa-tree-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 1200;
    margin: 0 auto;
    transform-origin: 50% 92%;
}
.xa-tree-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#xaTrainBack, #xaTrainFront { pointer-events: none; }
#xaTrainFront { z-index: 2; }
.xa-scene {
    position: relative;
    isolation: isolate;
    margin: calc(-1 * clamp(56px, 8vw, 104px)) calc(-1 * clamp(16px, 5vw, 64px)) 0;
    padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 64px) clamp(6px, 1vw, 12px);
}
.xa-room { position: absolute; z-index: -1; inset: 0; -webkit-mask-image: linear-gradient(180deg, #000 94%, transparent); mask-image: linear-gradient(180deg, #000 94%, transparent); }
.xa-room canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.xa-scene .xa-head { position: relative; margin-bottom: .8rem; }
.xa-scene .xa-head h2, .xa-scene .xa-head p:not(.xa-kicker), .xa-count { text-shadow: 0 2px 12px rgba(25, 8, 0, .85); }
.xa-count { position: relative; margin: 0 0 .5rem; text-align: center; color: #fff1d6; font-size: .92rem; }
.xa-count strong { font: 600 1.14rem/1 var(--fuente-titulos, 'Playfair Display', serif); color: #ffe19a; }
.xa-tree-after { max-width: 960px; margin: 0 auto; }
#xaTreeBase { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#xaTreeLights { z-index: 1; pointer-events: none; }
.xa-tree-stage.is-rustle { animation: xa-rustle .7s ease; }
@keyframes xa-rustle { 15% { transform: rotate(-.9deg); } 35% { transform: rotate(.8deg); } 55% { transform: rotate(-.5deg); } 75% { transform: rotate(.3deg); } }
.xa-song { max-width: 460px; margin: 1rem auto 0; text-align: center; visibility: hidden; }
.xa-song.is-playing { visibility: visible; }
.xa-song p { min-height: 1.35em; margin: 0 0 .45rem; color: var(--xp-gold-soft); font: 400 clamp(1rem, 2.4vw, 1.2rem)/1.35 var(--fuente-titulos, 'Playfair Display', serif); }
.xa-song em { font-style: italic; color: #fff5dc; }
.xa-song-bar { display: block; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 248, 230, .16); }
.xa-song-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c49a52, #fff0bb); box-shadow: 0 0 10px rgba(255, 224, 150, .8); transition: width .45s ease; }
.xa-note { position: fixed; z-index: 9800; pointer-events: none; color: #fff0bb; font: 400 24px/1 serif; text-shadow: 0 0 10px rgba(255, 215, 130, .95); }
.xa-door.is-note .xa-orn { animation: xa-orn-note .85s ease; }
.xa-door.is-note .xa-ball { filter: brightness(1.28) saturate(1.1); box-shadow: 0 7px 13px rgba(0, 12, 8, .6), inset 0 -4px 9px rgba(0, 0, 0, .3), 0 0 26px 8px rgba(255, 224, 150, .85); }
@keyframes xa-orn-note { 18% { transform: rotate(-14deg) scale(1.1); } 42% { transform: rotate(11deg) scale(1.03); } 66% { transform: rotate(-6deg); } 84% { transform: rotate(3deg); } }
.xa-tree-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem; margin-top: 1rem; }
.xa-tree-tools > span { width: 100%; text-align: center; color: rgba(248, 241, 225, .72); font-size: .8rem; }
.xa-tree-tools button {
    min-height: 36px;
    padding: 0 .95rem;
    border-radius: 999px;
    border: 1px solid rgba(216, 185, 122, .5);
    background: rgba(255, 248, 230, .07);
    color: #fff5dc;
    font: 600 .72rem/1 var(--fuente-textos, Montserrat, sans-serif);
    cursor: pointer;
    transition: background .25s ease, color .25s ease, transform .2s ease;
}
.xa-tree-tools button:hover { background: rgba(216, 185, 122, .2); transform: translateY(-1px); }
.xa-tree-tools button.is-active { background: linear-gradient(145deg, #f6e2a8, #cda250); color: #4a2308; border-color: transparent; }
.xa-progress { margin: 1rem 0 0; min-height: 1.4em; text-align: center; color: rgba(248, 241, 225, .78); font-size: .88rem; }

.xa-door {
    --c1: #ef6072;
    --c2: #a81e33;
    --c3: #520a18;
    --ink: #fff5dc;
    position: absolute;
    z-index: 3;
    width: 8.4%;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transform: translate(-50%, -50%);
    -webkit-tap-highlight-color: transparent;
}
.xa-door[data-day="24"] { width: 10.6%; }
.xa-door--gold { --c1: #fff0b6; --c2: #d6a64a; --c3: #765013; --ink: #4a2308; }
.xa-door--ivory { --c1: #ffffff; --c2: #e7dcc5; --c3: #a18f6c; --ink: #7b2738; }
.xa-door--night { --c1: #79aef0; --c2: #24569c; --c3: #0b2149; }
.xa-door--pine { --c1: #6fd2a2; --c2: #1a7451; --c3: #073224; }
.xa-orn {
    position: absolute;
    inset: 0;
    transform-origin: 50% -28%;
    animation: xa-orn-idle var(--sway, 5s) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
}
@keyframes xa-orn-idle { from { transform: rotate(-3.2deg); } to { transform: rotate(3.2deg); } }
.xa-orn::before { content: ""; position: absolute; left: 50%; top: -28%; width: 1.5px; height: 24%; margin-left: -.75px; background: linear-gradient(#f3dfae, #a67a2a); }
.xa-orn::after { content: ""; position: absolute; z-index: 2; left: 38%; top: -8%; width: 24%; height: 14%; border-radius: 2px 2px 1px 1px; background: repeating-linear-gradient(90deg, #f6e4ae 0 2px, #9b7330 2px 4px); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.xa-ball {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 22% 15% at 31% 23%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%),
        radial-gradient(ellipse 58% 46% at 72% 84%, rgba(255, 255, 255, .24), transparent 70%),
        radial-gradient(circle at 36% 30%, var(--c1), var(--c2) 52%, var(--c3));
    box-shadow: 0 7px 13px rgba(0, 12, 8, .6), inset 0 -4px 9px rgba(0, 0, 0, .34);
    transition: transform .35s cubic-bezier(.3, 1.7, .5, 1), box-shadow .35s ease, filter .4s ease;
}
.xa-ball::before {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    top: 24%;
    height: 52%;
    border-top: 1.5px solid rgba(255, 238, 180, .75);
    border-bottom: 1.5px solid rgba(255, 238, 180, .75);
    background: repeating-linear-gradient(115deg, rgba(255, 238, 180, .16) 0 3px, transparent 3px 8px);
}
.xa-num { position: relative; z-index: 1; color: var(--ink); font: 600 clamp(.72rem, 2.35vw, 1.42rem)/1 var(--fuente-titulos, 'Playfair Display', serif); text-shadow: 0 1px 2px rgba(0, 0, 0, .42); }
.xa-door--gold .xa-num, .xa-door--ivory .xa-num { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.xa-glow-ico { position: absolute; z-index: 2; inset: 0; display: none; place-items: center; color: #fff; }
.xa-glow-ico .xa-ico { width: 52%; filter: drop-shadow(0 0 5px #ffe9ad) drop-shadow(0 0 12px #ffc65c); }
.xa-today {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 103%;
    transform: translateX(-50%);
    padding: .16rem .46rem;
    border-radius: 999px;
    background: #fff6dc;
    color: #7b2738;
    font: 700 .52rem/1.2 var(--fuente-textos, Montserrat, sans-serif);
    letter-spacing: .14em;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .45);
}
.xa-door.is-today .xa-ball { animation: xa-today-ball 1.8s ease-in-out infinite; }
@keyframes xa-today-ball { 0%, 100% { box-shadow: 0 7px 13px rgba(0, 12, 8, .6), inset 0 -4px 9px rgba(0, 0, 0, .34), 0 0 8px 2px rgba(255, 220, 140, .55); transform: scale(1); } 50% { box-shadow: 0 7px 13px rgba(0, 12, 8, .6), inset 0 -4px 9px rgba(0, 0, 0, .34), 0 0 30px 11px rgba(255, 220, 140, .95); transform: scale(1.11); } }
@media (hover: hover) {
    .xa-door:hover { z-index: 6; }
    .xa-door:hover .xa-orn { animation: xa-orn-hover .95s ease-in-out infinite alternate; }
    .xa-door:hover .xa-ball { transform: scale(1.16); box-shadow: 0 10px 18px rgba(0, 12, 8, .6), inset 0 -4px 9px rgba(0, 0, 0, .3), 0 0 20px 5px rgba(255, 224, 150, .7); }
}
@keyframes xa-orn-hover { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.xa-door:focus-visible { outline: 2px solid #fff3cc; outline-offset: 3px; }
.xa-door.is-locked { cursor: not-allowed; }
.xa-door.is-locked .xa-ball { filter: saturate(.84) brightness(.88); }
.xa-door.is-shake .xa-orn { animation: xa-orn-shake .8s ease; }
@keyframes xa-orn-shake { 15% { transform: rotate(-18deg); } 35% { transform: rotate(15deg); } 55% { transform: rotate(-10deg); } 75% { transform: rotate(6deg); } }
.xa-door.is-busy .xa-ball { animation: xa-today-ball .7s ease-in-out infinite; }

.xa-door.is-open:not(.is-opening) .xa-num { display: none; }
.xa-door.is-open:not(.is-opening) .xa-glow-ico { display: grid; }
.xa-door.is-open:not(.is-opening) .xa-ball {
    background:
        radial-gradient(ellipse 22% 15% at 31% 23%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 100%),
        radial-gradient(circle at 50% 50%, #fff6ce, #ffc75f 42%, #c2761c 78%, #6d3808);
    box-shadow: 0 0 16px 5px rgba(255, 205, 110, .8), 0 0 34px 12px rgba(255, 180, 80, .32), inset 0 -3px 7px rgba(90, 40, 0, .4);
    filter: none;
}
.xa-door.is-open .xa-ball::before { display: none; }
.xa-door.is-open:not(.is-opening) .xa-orn { animation-duration: 3.2s; }
.xa-door.is-opening { z-index: 8; }
.xa-door.is-opening .xa-today { opacity: 0; }
.xa-door.is-opening .xa-orn { animation: xa-orn-open 1.05s ease; }
.xa-door.is-opening .xa-ball { animation: xa-ball-burst 1.05s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes xa-orn-open { 12% { transform: rotate(-22deg); } 30% { transform: rotate(19deg); } 48% { transform: rotate(-13deg); } 64% { transform: rotate(7deg); } }
@keyframes xa-ball-burst {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); filter: brightness(1.1); }
    70% { transform: scale(1.6); filter: brightness(2.5); }
    100% { transform: scale(1); filter: brightness(1.12); }
}
.xa-flash { position: absolute; z-index: 4; left: 50%; top: 50%; width: 460%; aspect-ratio: 1; margin: -230% 0 0 -230%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255, 250, 222, 1), rgba(255, 216, 130, .55) 22%, rgba(255, 190, 90, 0) 66%); mix-blend-mode: screen; opacity: 0; }
.xa-door.is-opening .xa-flash { animation: xa-flash 1.2s .45s ease-out both; }
@keyframes xa-flash { 0% { opacity: 0; transform: scale(.14); } 26% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }
.xa-spark { position: fixed; z-index: 9800; width: 11px; height: 11px; pointer-events: none; background: linear-gradient(145deg, #fff6c9, #e8bd5f); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px rgba(255, 220, 140, .95)); }
@media (max-width: 720px) {
    #xaTreeStage { width: calc(100% + 2 * clamp(16px, 5vw, 64px) - 8px); max-width: none; margin-inline: calc(4px - clamp(16px, 5vw, 64px)); }
    .xa-door { width: 9.4%; }
    .xa-door[data-day="24"] { width: 11.4%; }
    .xa-today { font-size: .44rem; padding: .12rem .32rem; }
    .xa-tree-tools button { min-height: 32px; padding: 0 .72rem; font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
    .xa-orn, .xa-door.is-today .xa-ball { animation: none; }
}

.xa-dialog {
    width: min(460px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: transparent;
    color: #22332b;
    overflow: visible;
}
.xa-dialog::backdrop { background: rgba(6, 20, 15, .66); backdrop-filter: blur(6px); }
.xa-dialog[open] { animation: xa-pop .55s var(--xp-ease) both; }
@keyframes xa-pop { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
.xa-dialog-card {
    position: relative;
    padding: 2.2rem 1.8rem 1.6rem;
    border-radius: 26px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(216, 185, 122, .3), transparent 55%),
        linear-gradient(180deg, #fffaf0, #f5ecd8);
    border: 1px solid rgba(182, 138, 66, .45);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .45), inset 0 0 0 6px rgba(255, 255, 255, .6), inset 0 0 0 7px rgba(182, 138, 66, .25);
}
.xa-dialog-ico {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: -64px auto .9rem;
    border-radius: 50%;
    color: #f6e2a8;
    background: radial-gradient(circle at 35% 30%, #a3445a, #7b2738 60%, #5a1a29);
    box-shadow: 0 10px 24px rgba(123, 39, 56, .45), 0 0 0 5px #fffaf0, 0 0 0 6px rgba(182, 138, 66, .5);
}
.xa-dialog-ico .xa-ico { width: 30px; }
.xa-dialog .xa-kicker { color: #8e6428; }
.xa-dialog .xa-kicker::before { display: none; }
.xa-dialog h3 { margin: 0 0 .6rem; font: 500 1.7rem/1.15 var(--fuente-titulos, 'Playfair Display', serif); color: #163f31; }
.xa-dialog p:not(.xa-kicker) { margin: 0; line-height: 1.7; color: #4a5a52; }
.xa-dialog-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.xa-dialog-cta, .xa-dialog-ok, .xw-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 1.2rem;
    border-radius: 999px;
    font: 600 .74rem/1 var(--fuente-textos, Montserrat, sans-serif);
    letter-spacing: .06em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.xa-dialog-cta, .xw-submit { border: 1px solid rgba(216, 185, 122, .55); background: linear-gradient(115deg, #782638, #92394c 52%, #712436); color: #fff9eb; box-shadow: 0 8px 20px rgba(123, 39, 56, .3); }
.xa-dialog-ok { border: 1px solid rgba(23, 77, 62, .35); background: transparent; color: #174d3e; }
:is(.xa-dialog-cta, .xa-dialog-ok, .xw-submit):hover { transform: translateY(-1px); }
.xa-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(23, 77, 62, .2);
    background: rgba(255, 255, 255, .7);
    color: #174d3e;
    cursor: pointer;
}
.xa-dialog-close svg { width: 15px; height: 15px; }
.xa-dialog [hidden] { display: none !important; }

.xw {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    align-items: center;
    gap: clamp(1.6rem, 5vw, 4rem);
    margin-top: clamp(3rem, 7vw, 5.5rem);
    padding-top: clamp(2.4rem, 5vw, 3.6rem);
    border-top: 1px solid rgba(216, 185, 122, .2);
    scroll-margin-top: 120px;
}
.xw-copy h3 { margin: 0 0 .7rem; font: 500 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--fuente-titulos, 'Playfair Display', serif); color: var(--xp-ivory); }
.xw-copy > p:not(.xa-kicker) { margin: 0 0 1.4rem; color: rgba(248, 241, 225, .74); line-height: 1.7; max-width: 50ch; }
.xw-form { display: grid; gap: .8rem; max-width: 520px; }
.xw-field { display: grid; gap: .35rem; position: relative; }
.xw-field span { font: 600 .66rem/1 var(--fuente-textos, Montserrat, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--xp-gold); }
.xw-field textarea, .xw-field input {
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(216, 185, 122, .35);
    background: rgba(255, 250, 240, .07);
    color: var(--xp-ivory);
    font: 400 .95rem/1.5 var(--fuente-textos, Montserrat, sans-serif);
    resize: vertical;
    transition: border-color .25s ease, background .25s ease;
}
.xw-field textarea { min-height: 96px; font-family: var(--fuente-titulos, 'Playfair Display', serif); font-style: italic; font-size: 1.05rem; }
.xw-field textarea::placeholder, .xw-field input::placeholder { color: rgba(248, 241, 225, .4); }
.xw-field textarea:focus, .xw-field input:focus { outline: none; border-color: var(--xp-gold); background: rgba(255, 250, 240, .11); }
.xw-field small { position: absolute; right: 12px; bottom: 8px; font-size: .68rem; color: rgba(248, 241, 225, .45); }
.xw-field--short { max-width: 320px; }
.xw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xw-submit { justify-self: start; min-height: 44px; padding: 0 1.5rem; }
.xw-submit:disabled { opacity: .6; cursor: progress; }
.xw-status { margin: 0; min-height: 1.3em; font-size: .86rem; color: var(--xp-gold-soft); }
.xw-status.is-error { color: #f3b5b5; }

.xw-stage { position: relative; display: grid; justify-items: center; gap: .8rem; }
.xw-jar { position: relative; width: min(280px, 72vw); padding-top: 34px; }
.xw-lid {
    position: absolute;
    top: 0;
    left: 50%;
    width: 62%;
    height: 44px;
    transform: translateX(-50%);
    border-radius: 12px 12px 6px 6px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, .5) 1px, transparent 1.5px) 0 0 / 8px 8px,
        linear-gradient(180deg, #a3445a, #7b2738 60%, #5a1a29);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
    z-index: 3;
}
.xw-lid::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -8px; height: 14px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #7b2738, #5a1a29); }
.xw-ribbon { position: absolute; left: -4%; right: -4%; bottom: 2px; height: 9px; background: linear-gradient(180deg, #f3dfae, #c49a52); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); z-index: 1; }
.xw-tag {
    position: absolute;
    z-index: 2;
    right: -46px;
    top: 26px;
    padding: .35rem .6rem .35rem .8rem;
    transform: rotate(12deg);
    border-radius: 3px 6px 6px 3px;
    background: #fffaf0;
    color: #7b2738;
    font: italic 600 .78rem/1 var(--fuente-titulos, 'Playfair Display', serif);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 12% 100%, 0 50%);
}
.xw-glass {
    position: relative;
    height: clamp(280px, 34vw, 330px);
    margin-top: 6px;
    border-radius: 44px 44px 58px 58px / 36px 36px 70px 70px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .02) 70%, rgba(255, 255, 255, .12)),
        rgba(220, 240, 232, .06);
    border: 1.5px solid rgba(240, 250, 246, .42);
    box-shadow: inset 0 -16px 30px rgba(255, 255, 255, .08), inset 0 0 0 6px rgba(255, 255, 255, .04), 0 30px 60px rgba(0, 0, 0, .4);
    backdrop-filter: blur(2px);
}
.xw-shine { position: absolute; top: 10%; left: 12%; width: 10%; height: 62%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; }
.xw-lights { position: absolute; inset: 0; pointer-events: none; }
.xw-lights::before, .xw-lights::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(4px 4px at 18% 30%, #ffe6a3, transparent),
        radial-gradient(4px 4px at 42% 22%, #ffd6a0, transparent),
        radial-gradient(4px 4px at 70% 34%, #ffe6a3, transparent),
        radial-gradient(4px 4px at 84% 52%, #ffd6a0, transparent),
        radial-gradient(4px 4px at 28% 56%, #ffe6a3, transparent),
        radial-gradient(4px 4px at 58% 48%, #ffd6a0, transparent);
    filter: drop-shadow(0 0 6px #ffd27a);
    animation: xw-twinkle 2.4s ease-in-out infinite alternate;
}
.xw-lights::after { transform: translate(6%, 8%); animation-delay: -1.2s; }
@keyframes xw-twinkle { from { opacity: .35; } to { opacity: 1; } }
.xw-papers { position: absolute; inset: 0; }
.xw-paper {
    position: absolute;
    width: 38px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    background: linear-gradient(180deg, var(--c1, #fff7e6), var(--c2, #efe1c4));
    box-shadow: 0 2px 4px rgba(0, 0, 0, .3), inset 0 -2px 0 rgba(0, 0, 0, .06);
    transform: rotate(var(--r, 0deg));
    transition: transform .35s var(--xp-ease), box-shadow .35s ease;
}
.xw-paper::after { content: ""; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 4px; margin-left: -2px; background: var(--band, #c43a46); opacity: .85; }
.xw-paper:hover, .xw-paper:focus-visible { transform: rotate(var(--r, 0deg)) translateY(-4px) scale(1.15); box-shadow: 0 6px 12px rgba(0, 0, 0, .35), 0 0 12px rgba(255, 230, 163, .6); outline: none; z-index: 2; }
.xw-paper.is-mine { --band: #d8b97a; }
.xw-paper.is-new { animation: xw-drop .9s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes xw-drop { from { transform: translateY(-260px) rotate(0deg); opacity: 0; } 30% { opacity: 1; } to { transform: rotate(var(--r, 0deg)); } }
.xw-bubble {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 26%;
    width: min(270px, 80vw);
    margin-left: calc(min(270px, 80vw) / -2);
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: #fffaf0;
    color: #2b3d34;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
    animation: xa-pop .45s var(--xp-ease) both;
}
.xw-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; margin-left: -8px; background: #fffaf0; transform: rotate(45deg); }
.xw-bubble p { margin: 0; font: italic 400 1.02rem/1.5 var(--fuente-titulos, 'Playfair Display', serif); }
.xw-bubble small { display: block; margin-top: .45rem; color: #8e6428; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.xw-hint { margin: 0; color: rgba(248, 241, 225, .55); font-size: .78rem; }
.xw-flyer {
    position: fixed;
    z-index: 9600;
    width: 160px;
    padding: .7rem .8rem;
    border-radius: 6px;
    background: linear-gradient(180deg, #fffaf0, #f2e6cc);
    color: #2b3d34;
    font: italic .78rem/1.35 var(--fuente-titulos, 'Playfair Display', serif);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    pointer-events: none;
    transform-origin: 50% 50%;
}
@media (max-width: 860px) {
    .xw { grid-template-columns: 1fr; }
    .xw-stage { order: -1; }
    .xw-tag { right: -30px; }
}

.xg-cookie {
    position: absolute !important;
    z-index: 30;
    margin: 0 !important;
    width: 54px;
    height: 64px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3));
    animation: xg-peek 7s ease-in-out infinite;
    transform-origin: 50% 100%;
}
.xg-cookie svg { width: 100%; height: 100%; display: block; }
.xg-cookie:hover { animation-play-state: paused; transform: scale(1.12) rotate(-6deg); }
.xg-cookie:focus-visible { outline: 2px solid #b68a42; outline-offset: 4px; border-radius: 12px; }
@keyframes xg-peek {
    0%, 70%, 100% { transform: rotate(0deg); }
    76% { transform: rotate(-10deg); }
    82% { transform: rotate(8deg); }
    88% { transform: rotate(-4deg); }
}
.xg-cookie.is-found { animation: xg-jump .8s cubic-bezier(.3, 1.6, .5, 1) both; pointer-events: none; }
@keyframes xg-jump { 40% { transform: translateY(-30px) rotate(-12deg) scale(1.2); } 100% { transform: translateY(-10px) scale(0); opacity: 0; } }
.xg-spark { position: fixed; z-index: 9700; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff6d6, #d8b97a 60%, transparent 70%); }
.xg-preview { display: block; width: 120px; margin: .4rem auto 0; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }

html[data-season="christmas"] .cute-pendant .cute-bauble { pointer-events: auto; cursor: pointer; }
html[data-season="christmas"] .xs-ring .cute-pendant-swing { animation: xs-ring 1.4s cubic-bezier(.3, 1.6, .5, 1) !important; }
@keyframes xs-ring { 0%, 100% { transform: rotate(0); } 18% { transform: rotate(14deg); } 40% { transform: rotate(-10deg); } 62% { transform: rotate(6deg); } 82% { transform: rotate(-3deg); } }
html[data-season="christmas"] .xs-toggle {
    position: fixed;
    z-index: 9997;
    left: 16px;
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 46px);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(216, 185, 122, .65);
    border-top-color: #fff8e8;
    background: rgba(250, 245, 233, .94);
    box-shadow: 0 4px 18px rgba(8, 35, 26, .15);
    color: #284c3a;
    cursor: pointer;
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
html[data-season="christmas"] .xs-toggle svg { width: 17px; height: 17px; }
html[data-season="christmas"] .xs-toggle .xs-on { display: none; }
html[data-season="christmas"] .xs-toggle[aria-pressed="true"] { background: linear-gradient(145deg, #f6e2a8, #d8b97a); color: #4a2410; }
html[data-season="christmas"] .xs-toggle[aria-pressed="true"] .xs-on { display: block; }
html[data-season="christmas"] .xs-toggle[aria-pressed="true"] .xs-off { display: none; }
html[data-season="christmas"] .xs-toggle.is-nudge { animation: xs-nudge 1.2s ease 2; }
@keyframes xs-nudge { 0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(8, 35, 26, .15); } 50% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(216, 185, 122, .3); } }
html[data-season="christmas"] .xs-tip {
    position: fixed;
    z-index: 9997;
    left: 62px;
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 50px);
    padding: .45rem .7rem;
    border-radius: 10px;
    background: rgba(18, 60, 49, .94);
    color: #fff8ea;
    font: 500 .7rem/1.3 'Montserrat', sans-serif;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    pointer-events: none;
    animation: xa-pop .4s ease both;
}
html[data-season="christmas"] .cute-gift-open .xs-toggle { visibility: hidden; }

.xs-snow { position: fixed; inset: 0; z-index: 8999; width: 100%; height: 100%; pointer-events: none; }
html[data-season="christmas"] body.xs-has-snow .christmas-snow { display: none; }

@media (prefers-reduced-motion: reduce) {
    .xa-sky, .xw-lights::before, .xw-lights::after, .xg-cookie { animation: none; }
}
@media print { .xs-snow, .xs-toggle, .xs-tip, .xg-cookie { display: none !important; } }

.xa-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin: 1.1rem auto 0;
    padding: .7rem .8rem .7rem 1rem;
    max-width: 330px;
    border-radius: 14px;
    border: 1.5px dashed #b68a42;
    background: linear-gradient(180deg, #fff6dc, #f7e8c2);
    text-align: left;
}
.xa-coupon-label { font: 700 .56rem/1 var(--fuente-textos, Montserrat, sans-serif); letter-spacing: .18em; text-transform: uppercase; color: #8e6428; }
.xa-coupon strong { flex: 1; font: 700 1.02rem/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; color: #7b2738; }
.xa-coupon-copy {
    min-height: 32px;
    padding: 0 .8rem;
    border-radius: 999px;
    border: 1px solid rgba(123, 39, 56, .35);
    background: #fffaf0;
    color: #7b2738;
    font: 600 .66rem/1 var(--fuente-textos, Montserrat, sans-serif);
    cursor: pointer;
}
.xa-dialog p.xa-terms { margin: .6rem 0 0; font-size: .7rem; line-height: 1.5; color: #8a948e; }
.xa-dialog.is-gift .xa-dialog-ico { background: radial-gradient(circle at 35% 30%, #f6e2a8, #d8b97a 55%, #b28a43); color: #7b2738; }
.xa-dialog.is-gift .xa-dialog-card { background: radial-gradient(circle at 50% 0%, rgba(196, 58, 70, .18), transparent 55%), linear-gradient(180deg, #fffaf0, #f5ecd8); }
.xa-confetti { position: fixed; z-index: 9800; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; }

.xa-dialog[open] { animation: xa-open-letter .75s cubic-bezier(.2, 1.2, .3, 1) both; }
@keyframes xa-open-letter { from { opacity: 0; transform: translateY(46px) scale(.72) rotateX(26deg); } to { opacity: 1; transform: none; } }
.xa-dialog::backdrop { background: radial-gradient(ellipse at 50% 42%, rgba(70, 42, 12, .55), rgba(3, 13, 10, .88) 70%); backdrop-filter: blur(7px); }
.xa-dialog-card {
    padding: 2.5rem 1.9rem 1.7rem;
    background:
        radial-gradient(circle at 50% 0%, rgba(233, 196, 118, .42), transparent 58%),
        linear-gradient(180deg, #fffcf3, #f6edd8);
    border: 0;
    box-shadow: 0 44px 100px rgba(0, 0, 0, .6), 0 0 90px rgba(255, 200, 110, .28), inset 0 0 0 1.5px #d2aa5e, inset 0 0 0 7px #fffaf0, inset 0 0 0 8px rgba(182, 138, 66, .5);
}
.xa-dialog-ico {
    width: 74px;
    height: 74px;
    margin: -76px auto 1rem;
    background: radial-gradient(circle at 34% 28%, #fff4c9, #e5bd6a 40%, #a97a29 80%);
    color: #6b1a2c;
    box-shadow: 0 12px 28px rgba(120, 80, 20, .5), 0 0 0 5px #fffaf0, 0 0 0 6.5px #c9a15a, 0 0 36px rgba(255, 215, 130, .9);
    animation: xa-ico-pop .8s .15s cubic-bezier(.3, 1.8, .5, 1) both;
}
.xa-dialog-ico .xa-ico { width: 36px; }
@keyframes xa-ico-pop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.xa-dialog h3 { font-size: clamp(1.5rem, 4vw, 1.95rem); }
.xa-dialog-card > * { animation: xa-rise .6s .2s ease-out both; }
.xa-dialog-card > .xa-dialog-ico { animation: xa-ico-pop .8s .15s cubic-bezier(.3, 1.8, .5, 1) both; }
.xa-dialog-card > .xa-dialog-close { animation: none; }
@keyframes xa-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.xa-dialog.is-gift .xa-dialog-ico { background: radial-gradient(circle at 34% 28%, #d05a70, #7b2738 60%, #4a1221); color: #f9e3ac; }
.xa-dialog.is-gift .xa-dialog-card { background: radial-gradient(circle at 50% 0%, rgba(233, 196, 118, .55), transparent 62%), linear-gradient(180deg, #fffcf3, #f7ead0); }
.xa-coupon {
    position: relative;
    overflow: hidden;
    max-width: 350px;
    padding: .85rem 1rem .85rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(110deg, #c9963f, #f7e3a6 28%, #d9ad58 52%, #fff0bb 74%, #b98a37);
    box-shadow: 0 10px 22px rgba(120, 80, 20, .35), inset 0 0 0 1px rgba(255, 248, 214, .85), inset 0 0 0 4px rgba(122, 83, 25, .22);
    -webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.xa-coupon::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -40%; width: 26%; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); transform: skewX(-20deg); animation: xa-shine 3.4s 1s ease-in-out infinite; }
@keyframes xa-shine { 0% { left: -40%; } 45%, 100% { left: 130%; } }
.xa-coupon-label { color: #5c3a0d; }
.xa-coupon strong { color: #4a1221; text-shadow: 0 1px 0 rgba(255, 246, 214, .7); }
.xa-coupon-copy { position: relative; z-index: 1; background: rgba(255, 250, 235, .94); border-color: rgba(92, 58, 13, .4); }
@media (prefers-reduced-motion: reduce) {
    .xa-coupon::after { animation: none; }
    .xa-dialog[open], .xa-dialog-ico, .xa-dialog-card > * { animation: none; }
}
