.ce-holiday-art--overlay {
    --holiday-gap: 18px;
    --holiday-bottom: 12px;
    --holiday-width: 160px;
    --holiday-ink: #f7fbff;
    --holiday-card: #13283a;
    --holiday-border: #617185;
    --holiday-accent: #ffe0a0;
    --holiday-snow: #fff5dc;
    --holiday-star: polygon(50% 0, 59% 34%, 90% 21%, 72% 44%, 100% 50%, 72% 57%, 90% 80%, 59% 67%, 50% 100%, 40% 67%, 10% 80%, 28% 57%, 0 50%, 28% 44%, 10% 21%, 40% 34%);
    position: fixed;
    inset: auto 0 0;
    z-index: 12;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 0 max(var(--holiday-gap), env(safe-area-inset-right)) max(var(--holiday-bottom), env(safe-area-inset-bottom)) max(var(--holiday-gap), env(safe-area-inset-left));
    box-sizing: border-box;
    pointer-events: none;
    isolation: isolate;
}

.ce-holiday-stack {
    --holiday-stack-bottom: 12px;
    position: fixed;
    inset: auto 0 0;
    z-index: 12;
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    padding-block-end: max(var(--holiday-stack-bottom), env(safe-area-inset-bottom));
    pointer-events: none;
    isolation: isolate;
}

.ce-holiday-stack:has(> [data-holiday-preview][data-preview-device="mobile"]) {
    --holiday-stack-bottom: 8px;
}

.ce-holiday-stack > .ce-holiday-art--overlay {
    position: static;
    z-index: auto;
    padding-block-end: 0;
}

.ce-holiday-stack > .ce-holiday-art--overlay[data-holiday-theme="snowfall"] {
    position: absolute;
    inset: auto 0 100%;
}

.ce-holiday-stack[data-holiday-viewport="mobile"],
.ce-holiday-art--overlay[data-holiday-device="mobile"]:not([data-holiday-preview]),
.ce-holiday-art--overlay[data-holiday-preview][data-preview-device="desktop"][data-holiday-device="mobile"],
.ce-holiday-art--overlay[data-holiday-preview][data-preview-device="mobile"][data-holiday-device="desktop"] {
    display: none;
}

body:has(.ce-analytics-consent:not([hidden])) .ce-holiday-art--overlay:not([data-holiday-preview]) {
    visibility: hidden;
}

body.light-mode .ce-holiday-art--overlay,
.ce-holiday-preview-stage[data-color="light"] .ce-holiday-art--overlay {
    --holiday-ink: #152e43;
    --holiday-card: #f9fcff;
    --holiday-border: #91a7b7;
    --holiday-accent: #775219;
    --holiday-snow: #647d91;
}

.ce-holiday-art--overlay .ce-holiday-copy {
    min-width: 0;
    max-width: min(20rem, 54%);
    padding: .6em .85em .66em;
    border: 1px solid var(--holiday-border);
    border-inline-start: 3px solid var(--holiday-accent);
    border-radius: 7px 12px 12px 7px;
    background: var(--holiday-card);
    color: var(--holiday-ink);
    box-shadow: 0 3px 12px #08141f26;
    font: 650 .92rem/1.34 "Segoe UI", system-ui, sans-serif;
    text-align: start;
    overflow-wrap: anywhere;
}

.ce-holiday-art--overlay .ce-holiday-label,
.ce-holiday-art--overlay .ce-holiday-countdown {
    margin: 0;
    color: inherit;
}

.ce-holiday-art--overlay .ce-holiday-countdown { font-variant-numeric: tabular-nums; }

.ce-holiday-art--overlay .ce-holiday-scene {
    position: relative;
    flex: 0 1 var(--holiday-width);
    width: var(--holiday-width);
    min-width: 0;
    margin-inline-start: auto;
    aspect-ratio: 160 / 105;
    isolation: isolate;
    overflow: hidden;
}

.ce-holiday-scene::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 19%;
    background: radial-gradient(ellipse, #6d97a650 0, #6d97a629 38%, transparent 70%);
}

.ce-holiday-tree {
    position: absolute;
    inset: 0 12% 7% 38%;
    background: linear-gradient(90deg, #815330, #ac7652) center bottom / 13% 19% no-repeat;
    filter: drop-shadow(0 2px 1px #06131c52);
}

.ce-holiday-tree::before,
.ce-holiday-tree::after {
    content: "";
    position: absolute;
}

.ce-holiday-tree::before {
    z-index: 1;
    inset: 2% 36% auto;
    aspect-ratio: 1;
    background: linear-gradient(145deg, #fffac8, #eab052);
    clip-path: var(--holiday-star);
}

.ce-holiday-tree::after {
    inset: 15% 0 12%;
    background:
        radial-gradient(circle at 52% 23%, #ffd78b 0 2.4%, transparent 3.5%),
        radial-gradient(circle at 42% 37%, #fb8479 0 2.6%, transparent 4%),
        radial-gradient(circle at 61% 44%, #f9e8a4 0 2.8%, transparent 4%),
        radial-gradient(circle at 35% 61%, #f6e4a3 0 2.6%, transparent 4%),
        radial-gradient(circle at 52% 58%, #ec7267 0 2.5%, transparent 4%),
        radial-gradient(circle at 67% 70%, #ffda94 0 3%, transparent 4%),
        radial-gradient(circle at 26% 79%, #f8a994 0 2.7%, transparent 4%),
        radial-gradient(circle at 46% 80%, #fff2af 0 2.8%, transparent 4%),
        radial-gradient(circle at 77% 86%, #f4b58f 0 2.6%, transparent 4%),
        linear-gradient(117deg, #419e7e, #17664f 59%, #0c473b);
    clip-path: polygon(50% 0, 72% 33%, 64% 35%, 84% 63%, 73% 66%, 100% 97%, 77% 100%, 50% 94%, 21% 100%, 0 97%, 26% 66%, 16% 63%, 36% 35%, 28% 33%);
}

.ce-holiday-sleigh {
    position: absolute;
    inset: 33% auto auto 8%;
    width: 30%;
    height: 27%;
    filter: drop-shadow(0 1px 1px #152a3c62);
}

.ce-holiday-santa {
    position: absolute;
    z-index: 1;
    inset: -19% auto auto 20%;
    width: 33%;
    aspect-ratio: 1;
    border-radius: 48% 48% 54% 53%;
    background: radial-gradient(circle at 35% 43%, #553238 0 5%, transparent 6%),
                radial-gradient(circle at 65% 43%, #553238 0 5%, transparent 6%),
                linear-gradient(#f6be95 0 57%, #fffcf2 60%);
}

.ce-holiday-santa::before {
    content: "";
    position: absolute;
    inset: -46% -25% auto -8%;
    height: 68%;
    background: radial-gradient(circle at 92% 63%, #fff8e9 0 13%, transparent 15%),
                linear-gradient(#cc4b50 0 71%, #fff8e9 73%);
    clip-path: polygon(0 78%, 26% 16%, 54% 0, 92% 34%, 100% 54%, 100% 89%, 82% 97%, 72% 73%, 68% 100%, 0 100%);
}

.ce-holiday-sleigh::before,
.ce-holiday-sleigh::after {
    content: "";
    position: absolute;
}

.ce-holiday-sleigh::before {
    inset: 12% 0 22% 0;
    background: linear-gradient(153deg, #ee795f 0 23%, #d54c53 24% 63%, #a9283d 64%);
    clip-path: polygon(0 4%, 27% 4%, 36% 35%, 62% 50%, 83% 40%, 97% 19%, 100% 39%, 87% 75%, 67% 99%, 17% 95%, 7% 67%);
}

.ce-holiday-sleigh::after {
    inset: auto 1% 2% 0;
    height: 36%;
    border: 1px solid #e5a94d;
    border-width: 0 0 2px;
    border-radius: 0 0 75% 55%;
    background: linear-gradient(#e5a94d, #e5a94d) 26% 0 / 6% 78% no-repeat,
                linear-gradient(#e5a94d, #e5a94d) 70% 0 / 6% 71% no-repeat;
}

.ce-holiday-gifts {
    position: absolute;
    inset: auto 0 4% 45%;
    height: 24%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6%;
}

.ce-holiday-gift {
    --gift-box: #c34850;
    --gift-top: #ee837c;
    --gift-ribbon: #ffdc92;
    --gift-delay: .35s;
    position: relative;
    flex: 0 1 26%;
    height: 78%;
    border-radius: 1px 1px 3px 3px;
    background: linear-gradient(90deg, var(--gift-box) 39%, var(--gift-ribbon) 40% 58%, var(--gift-box) 59%);
    box-shadow: inset 0 -3px #1824372e;
}

.ce-holiday-gift:nth-child(2) {
    --gift-box: #3f7b95;
    --gift-top: #83bad0;
    --gift-ribbon: #f5e5bd;
    --gift-delay: .72s;
    flex-basis: 32%;
    height: 96%;
}

.ce-holiday-gift:nth-child(3) {
    --gift-box: #b8894c;
    --gift-top: #e6b978;
    --gift-ribbon: #f7e6bf;
    --gift-delay: 1.08s;
    height: 66%;
}

.ce-holiday-gift-lid {
    position: absolute;
    z-index: 1;
    inset: -9% -9% auto;
    height: 31%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gift-top) 39%, var(--gift-ribbon) 40% 58%, var(--gift-top) 59%);
    transform-origin: 20% 80%;
}

.ce-holiday-gift-lid::before {
    content: "";
    position: absolute;
    inset: auto 23% 83%;
    height: 93%;
    background: var(--gift-ribbon);
    clip-path: polygon(50% 63%, 0 17%, 18% 0, 50% 47%, 77% 0, 100% 17%, 50% 63%, 73% 100%, 27% 100%);
}

.ce-holiday-gift::after {
    content: "";
    position: absolute;
    inset: auto 12% 115%;
    height: 68%;
    opacity: 0;
    background: #fff2b6;
    clip-path: var(--holiday-star);
}

.ce-holiday-art--christmas-day .ce-holiday-gift-lid {
    transform: translate(-12%, -175%) rotate(-25deg);
}

.ce-holiday-art--christmas-day .ce-holiday-gift::after { opacity: .92; }

[data-holiday-theme="snowfall"] .ce-holiday-particle {
    position: absolute;
    inset: 58% auto auto 5%;
    width: 5%;
    aspect-ratio: 1;
    background: var(--holiday-snow);
    clip-path: var(--holiday-star);
    opacity: .85;
}

[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(2) { inset: 19% auto auto 22%; width: 6%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(3) { inset: 78% auto auto 36%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(4) { inset: 36% auto auto 49%; width: 8%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(5) { inset: 73% auto auto 65%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(6) { inset: 14% 8% auto auto; width: 6%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(7) { inset: 60% 1% auto auto; width: 6%; }
/* Extra static flakes only above100%; the existing0–100% composition stays intact. */
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(8) { inset: 9% auto auto 7%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(9) { inset: 82% auto auto 18%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(10) { inset: 45% auto auto 28%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(11) { inset: 12% auto auto 42%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(12) { inset: 82% auto auto 53%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(13) { inset: 40% auto auto 76%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(14) { inset: 8% auto auto 88%; width: 4%; }
/* Capacity201–500%: additional static positions; existing0–200% stays intact. */
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(15) { inset: 20% auto auto 14%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(16) { inset: 5% auto auto 33%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(17) { inset: 8% auto auto 58%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(18) { inset: 3% auto auto 79%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(19) { inset: 34% auto auto 94%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(20) { inset: 32% auto auto 3%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(21) { inset: 47% auto auto 20%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(22) { inset: 60% auto auto 40%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(23) { inset: 44% auto auto 62%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(24) { inset: 57% auto auto 87%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(25) { inset: 76% auto auto 11%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(26) { inset: 85% auto auto 27%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(27) { inset: 81% auto auto 47%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(28) { inset: 85% auto auto 72%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(29) { inset: 83% auto auto 94%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(30) { inset: 4% auto auto 5%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(31) { inset: 34% auto auto 32%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(32) { inset: 64% auto auto 55%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(33) { inset: 51% auto auto 75%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(34) { inset: 27% auto auto 81%; width: 5%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(35) { inset: 28% auto auto 52%; width: 4%; }
[data-holiday-theme="snowfall"] .ce-holiday-particle:not(.ce-holiday-particle--static) { display: none; }

.ce-holiday-art--overlay:not([data-holiday-theme="christmas"]) {
    --holiday-width: 112px;
}

.ce-holiday-art--overlay:not([data-holiday-theme="christmas"]) .ce-holiday-scene {
    aspect-ratio: 112 / 74;
}

.ce-holiday-art--overlay[data-holiday-theme="snowfall"] .ce-holiday-scene {
    aspect-ratio: 112 / 40;
}

[data-holiday-theme="snowfall"] .ce-holiday-scene::before { content: none; }

.ce-holiday-art--overlay[data-holiday-theme="snowfall"] .ce-holiday-snow-control {
    display: none;
}

.ce-holiday-symbol {
    position: absolute;
    inset: 5% 7% 9%;
    filter: drop-shadow(0 2px 2px #111f2b66);
}

.ce-holiday-symbol::before,
.ce-holiday-symbol::after {
    content: "";
    position: absolute;
}

:is([data-holiday-theme="new-year"], [data-holiday-theme="custom"]) .ce-holiday-symbol::before {
    inset: 5% 16% 10% 24%;
    background: linear-gradient(145deg, #fff3b5, #f6ba59 56%, #d98354);
    clip-path: var(--holiday-star);
}

:is([data-holiday-theme="new-year"], [data-holiday-theme="custom"]) .ce-holiday-symbol::after {
    inset: 8% 4% 59% 62%;
    background: #afe4e8;
    clip-path: var(--holiday-star);
}

[data-holiday-theme="martenitsa"] .ce-holiday-symbol {
    background: linear-gradient(12deg, #b22642 38%, #fff3ed 40% 62%, #b22642 64%) center 12% / 55% 8% no-repeat;
}

[data-holiday-theme="martenitsa"] .ce-holiday-symbol::before,
[data-holiday-theme="martenitsa"] .ce-holiday-symbol::after {
    inset: 16% 53% 0 17%;
    border-radius: 50% 49% 14% 14%;
    background: repeating-linear-gradient(89deg, #fff5ed 0 10%, #e3cec7 11% 14%);
    clip-path: polygon(44% 0, 59% 0, 62% 24%, 93% 91%, 72% 100%, 25% 100%, 0 91%, 36% 24%);
    transform: rotate(12deg);
}

[data-holiday-theme="martenitsa"] .ce-holiday-symbol::after {
    inset-inline: 53% 17%;
    background: repeating-linear-gradient(92deg, #dc5368 0 10%, #aa304b 11% 14%);
    transform: rotate(-12deg);
}

[data-holiday-theme="easter"] .ce-holiday-symbol::before,
[data-holiday-theme="easter"] .ce-holiday-symbol::after {
    inset: 10% 50% 0 12%;
    border-radius: 52% 52% 47% 47% / 61% 61% 41% 41%;
    background: linear-gradient(174deg, #c2a5ed 28%, #f8dab1 31% 37%, #876ec4 39% 57%, #f5dfae 59% 65%, #ad91de 68%);
    transform: rotate(-17deg);
}

[data-holiday-theme="easter"] .ce-holiday-symbol::after {
    inset: 5% 12% 7% 53%;
    background: linear-gradient(172deg, #f5b77f 20%, #f7e8ae 24% 31%, #d87773 35% 56%, #fbe3a6 60% 66%, #f0a484 70%);
    transform: rotate(19deg);
}

.ce-holiday-bunny {
    position: absolute;
    z-index: 1;
    inset: 49% 34% 1% 33%;
    border-radius: 53% 52% 43% 45%;
    background: radial-gradient(circle at 35% 48%, #644d59 0 5%, transparent 6%),
                radial-gradient(circle at 65% 48%, #644d59 0 5%, transparent 6%),
                radial-gradient(circle at 50% 69%, #e48f9d 0 7%, transparent 8%),
                linear-gradient(145deg, #fff9eb, #dfcdbf);
}

.ce-holiday-bunny::before,
.ce-holiday-bunny::after {
    content: "";
    position: absolute;
    inset: -75% auto auto 11%;
    width: 30%;
    height: 93%;
    border-radius: 55% 55% 44% 44%;
    background: radial-gradient(ellipse at 50% 46%, #e8a5ac 0 40%, transparent 43%), #f8eadf;
    transform: rotate(-15deg);
}

.ce-holiday-bunny::after {
    inset-inline: auto 11%;
    transform: rotate(13deg);
}

[data-holiday-theme="national"] .ce-holiday-symbol::before {
    inset: 9% 78% 0 16%;
    border-radius: 4px;
    background: #c59967;
    transform: rotate(-9deg);
}

[data-holiday-theme="national"] .ce-holiday-symbol::after {
    inset: 9% 9% 24% 19%;
    border-radius: 4px 12px 5px 3px;
    background: linear-gradient(#faf8ef 0 33%, #3e986d 33% 66%, #dd565c 66%);
    clip-path: polygon(0 5%, 20% 0, 58% 6%, 100% 0, 100% 91%, 73% 100%, 26% 92%, 0 97%);
    transform: rotate(-9deg);
}

[data-holiday-theme="labour"] .ce-holiday-symbol::before {
    inset: 0 13%;
    background: radial-gradient(circle, #183f55 0 24%, #e8b064 25% 34%, #e9c28b 35% 52%, #be773b 53%);
    clip-path: polygon(38% 0, 58% 0, 62% 15%, 73% 20%, 87% 14%, 99% 30%, 88% 41%, 89% 54%, 100% 62%, 92% 78%, 76% 76%, 66% 86%, 64% 100%, 44% 100%, 37% 87%, 25% 83%, 12% 89%, 1% 73%, 12% 62%, 10% 49%, 0 40%, 8% 23%, 24% 25%, 34% 16%);
}

[data-holiday-theme="st-george"] .ce-holiday-symbol::before {
    inset: 5% 17% 0;
    background: linear-gradient(139deg, #7eb879, #256e63);
    clip-path: polygon(50% 0, 95% 16%, 88% 60%, 75% 80%, 50% 100%, 25% 80%, 12% 60%, 5% 16%);
}

[data-holiday-theme="st-george"] .ce-holiday-symbol::after {
    inset: 18% 32% 23%;
    background: #f3d191;
    clip-path: polygon(45% 0, 55% 0, 55% 40%, 100% 40%, 100% 53%, 55% 53%, 55% 100%, 45% 100%, 45% 53%, 0 53%, 0 40%, 45% 40%);
}

:is([data-holiday-theme="alphabet"], [data-holiday-theme="enlighteners"]) .ce-holiday-symbol::before {
    inset: 16% 8% 6%;
    background: linear-gradient(93deg, #d7b27f 0 4%, #f8e7bc 5% 48%, #c49668 49% 51%, #f9e9c1 52% 96%, #c0986d 97%);
    clip-path: polygon(0 4%, 18% 0, 46% 8%, 50% 15%, 54% 8%, 82% 0, 100% 4%, 100% 87%, 80% 86%, 55% 93%, 50% 100%, 45% 93%, 20% 86%, 0 87%);
}

[data-holiday-theme="alphabet"] .ce-holiday-symbol::after {
    content: "А Б";
    inset: 25% 7% auto;
    color: #724d34;
    text-align: center;
    font: 700 1.2rem/1.2 Georgia, serif;
    letter-spacing: .12em;
}

[data-holiday-theme="enlighteners"] .ce-holiday-symbol::after {
    inset: 5% 34% 30% 37%;
    background: linear-gradient(150deg, #fff3b0 8%, #f4aa63 43%, #d57657);
    clip-path: polygon(50% 0, 65% 34%, 87% 56%, 87% 78%, 72% 95%, 48% 100%, 24% 95%, 13% 78%, 13% 55%, 30% 30%, 36% 63%);
}

.ce-holiday-art--overlay[data-holiday-preview][data-preview-device="mobile"] {
    --holiday-gap: 8px;
    --holiday-bottom: 8px;
    --holiday-width: 104px;
}

.ce-holiday-art--overlay[data-holiday-preview][data-preview-device="mobile"]:not([data-holiday-theme="christmas"]) {
    --holiday-width: 76px;
}

.ce-holiday-art--overlay[data-holiday-preview][data-preview-device="mobile"] .ce-holiday-copy {
    font-size: .75rem;
}

@media (max-width: 760px) {
    .ce-holiday-stack { --holiday-stack-bottom: 8px; }

    .ce-holiday-stack[data-holiday-viewport="mobile"],
    .ce-holiday-art--overlay[data-holiday-device="mobile"]:not([data-holiday-preview]) {
        display: flex;
    }

    .ce-holiday-stack[data-holiday-viewport="desktop"],
    .ce-holiday-art--overlay[data-holiday-device="desktop"]:not([data-holiday-preview]) {
        display: none;
    }

    .ce-holiday-art--overlay[data-holiday-mobile="static"] {
        --holiday-gap: 8px;
        --holiday-bottom: 8px;
        --holiday-width: 104px;
    }

    .ce-holiday-art--overlay[data-holiday-mobile="static"]:not([data-holiday-theme="christmas"]) {
        --holiday-width: 76px;
    }

    .ce-holiday-art--overlay[data-holiday-mobile="static"] .ce-holiday-copy {
        font-size: .75rem;
    }
}

@media (min-width: 761px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .ce-holiday-preview-stage { container-type: inline-size; }

    .ce-holiday-art--animated[data-holiday-theme="christmas"]:not([data-preview-device="mobile"]) .ce-holiday-scene {
        overflow: visible;
    }

    .ce-holiday-art--animated:not([data-preview-device="mobile"]) .ce-holiday-sleigh {
        z-index: 1;
        animation: ce-holiday-sleigh-flight 180s linear .25s infinite both;
    }

    .ce-holiday-preview-stage .ce-holiday-sleigh { --holiday-flight-distance: 100cqw; }

    body:has(.ce-analytics-consent:not([hidden])) .ce-holiday-art--overlay:not([data-holiday-preview]) .ce-holiday-sleigh {
        animation-name: none;
    }

    .ce-holiday-art--overlay.ce-holiday-art--animated[data-holiday-theme="snowfall"]:not([data-preview-device="mobile"]):has(.ce-holiday-particle):has(.ce-holiday-snow-control input[type="checkbox"]) {
        position: fixed;
        inset: 0;
        z-index: -1;
        padding: 0;
    }

    .ce-holiday-art--overlay.ce-holiday-art--animated[data-holiday-theme="snowfall"]:not([data-preview-device="mobile"]):has(.ce-holiday-particle):has(.ce-holiday-snow-control input[type="checkbox"]) .ce-holiday-scene {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        container-type: size;
    }

    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle {
        --holiday-flake-x: 7%;
        --holiday-flake-size: 5px;
        --holiday-flake-duration: 15s;
        --holiday-flake-start: -1.8s;
        --holiday-flake-drift: 11px;
        --holiday-flake-offset: 0%;
        --holiday-flake-stagger: 0s;
    }

    .ce-holiday-art--animated[data-holiday-theme="snowfall"]:not([data-preview-device="mobile"]):has(.ce-holiday-snow-control input[type="checkbox"]) .ce-holiday-particle {
        display: block;
        inset: -14px auto auto calc(var(--holiday-flake-x) + var(--holiday-flake-offset));
        width: var(--holiday-flake-size);
        opacity: 0;
        animation: ce-holiday-snow-fall var(--holiday-flake-duration) linear calc(var(--holiday-flake-start) + var(--holiday-flake-stagger)) infinite;
    }

    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(8n+2) {
        --holiday-flake-x: 18%; --holiday-flake-size: 7px; --holiday-flake-duration: 18s; --holiday-flake-start: -8.6s; --holiday-flake-drift: -16px;
    }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(8n+3) {
        --holiday-flake-x: 30%; --holiday-flake-size: 4px; --holiday-flake-duration: 14s; --holiday-flake-start: -3.2s; --holiday-flake-drift: 14px;
    }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(8n+4) {
        --holiday-flake-x: 42%; --holiday-flake-size: 6px; --holiday-flake-duration: 17s; --holiday-flake-start: -12.1s; --holiday-flake-drift: 22px;
    }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(8n+5) {
        --holiday-flake-x: 56%; --holiday-flake-size: 4px; --holiday-flake-duration: 16s; --holiday-flake-start: -5.4s; --holiday-flake-drift: -17px;
    }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(8n+6) {
        --holiday-flake-x: 68%; --holiday-flake-size: 6px; --holiday-flake-duration: 18.5s; --holiday-flake-start: -3.7s; --holiday-flake-drift: 18px;
    }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(8n+7) {
        --holiday-flake-x: 82%; --holiday-flake-size: 5px; --holiday-flake-duration: 16.5s; --holiday-flake-start: -10.4s; --holiday-flake-drift: 12px;
    }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(8n+8) {
        --holiday-flake-x: 94%; --holiday-flake-size: 7px; --holiday-flake-duration: 15.5s; --holiday-flake-start: -5.6s; --holiday-flake-drift: -24px;
    }

    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+9) { --holiday-flake-offset: 2.6%; --holiday-flake-stagger: -3.4s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+17) { --holiday-flake-offset: -2.4%; --holiday-flake-stagger: -6.9s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+25) { --holiday-flake-offset: 4.5%; --holiday-flake-stagger: -10.3s; }
    /* Distribute the second half across new columns/times instead of overlapping
       particles33–64 on top of particles25–32. */
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+33) { --holiday-flake-offset: -5.2%; --holiday-flake-stagger: -12.8s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+41) { --holiday-flake-offset: 1.3%; --holiday-flake-stagger: -15.1s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+49) { --holiday-flake-offset: -1%; --holiday-flake-stagger: -18.5s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+57) { --holiday-flake-offset: 3.2%; --holiday-flake-stagger: -21.7s; }
    /* Capacity201–500%: independent columns and phases for particles65–160. */
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+65) { --holiday-flake-offset: -3.3%; --holiday-flake-stagger: -24.0s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+73) { --holiday-flake-offset: -0.4%; --holiday-flake-stagger: -26.7s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+81) { --holiday-flake-offset: 2.1%; --holiday-flake-stagger: -29.4s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+89) { --holiday-flake-offset: -4.2%; --holiday-flake-stagger: -32.1s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+97) { --holiday-flake-offset: 0.8%; --holiday-flake-stagger: -34.8s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+105) { --holiday-flake-offset: 4.1%; --holiday-flake-stagger: -37.5s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+113) { --holiday-flake-offset: -1.8%; --holiday-flake-stagger: -40.2s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+121) { --holiday-flake-offset: 1.9%; --holiday-flake-stagger: -42.9s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+129) { --holiday-flake-offset: -5.8%; --holiday-flake-stagger: -45.6s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+137) { --holiday-flake-offset: 3.6%; --holiday-flake-stagger: -48.3s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+145) { --holiday-flake-offset: -0.9%; --holiday-flake-stagger: -51.0s; }
    .ce-holiday-art--animated[data-holiday-theme="snowfall"] .ce-holiday-particle:nth-child(n+153) { --holiday-flake-offset: 2.9%; --holiday-flake-stagger: -53.7s; }

    .ce-holiday-art--overlay.ce-holiday-art--animated[data-holiday-theme="snowfall"]:not([data-preview-device="mobile"]):has(.ce-holiday-particle) .ce-holiday-snow-control {
        position: absolute;
        inset-inline-end: max(14px, env(safe-area-inset-right));
        inset-block-end: max(var(--holiday-snow-control-bottom, 12px), calc(env(safe-area-inset-bottom) + var(--holiday-snow-control-lift, 0px)));
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        box-sizing: border-box;
        padding: 4px 10px;
        border: 1px solid var(--holiday-border);
        border-radius: 7px;
        background: var(--holiday-card);
        color: var(--holiday-ink);
        font: 600 .76rem/1.3 "Segoe UI", system-ui, sans-serif;
        pointer-events: auto;
        cursor: pointer;
    }

    .ce-holiday-stack:has(> .ce-holiday-art--overlay:not([data-holiday-theme="snowfall"])) > [data-holiday-theme="snowfall"] .ce-holiday-snow-control {
        --holiday-snow-control-bottom: 124px;
        --holiday-snow-control-lift: 112px;
    }

    .ce-holiday-snow-control > input {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .ce-holiday-snow-control:focus-within {
        outline: 2px solid var(--holiday-accent);
        outline-offset: 2px;
    }

    .ce-holiday-snow-resume,
    .ce-holiday-snow-control:has(input:checked) .ce-holiday-snow-pause { display: none; }
    .ce-holiday-snow-control:has(input:checked) .ce-holiday-snow-resume { display: inline; }

    .ce-holiday-art--animated[data-holiday-theme="snowfall"]:not([data-preview-device="mobile"]):has(.ce-holiday-snow-control input:checked) .ce-holiday-particle {
        visibility: hidden;
        animation-play-state: paused;
    }

    .ce-holiday-art--animated:not([data-preview-device="mobile"]) .ce-holiday-symbol {
        animation: ce-holiday-symbol-arrive 1.3s ease-out both;
    }

    .ce-holiday-art--christmas-day.ce-holiday-art--animated:not([data-preview-device="mobile"]) .ce-holiday-gift-lid {
        animation: ce-holiday-lid-open .72s var(--gift-delay) ease-out both;
    }

    .ce-holiday-art--christmas-day.ce-holiday-art--animated:not([data-preview-device="mobile"]) .ce-holiday-gift::after {
        animation: ce-holiday-present-spark .8s var(--gift-delay) ease-out both;
    }
}

@keyframes ce-holiday-sleigh-flight {
    /* The first 4.5 seconds of each three-minute cycle are the flight. */
    0% { transform: translate(calc(-1 * var(--holiday-flight-distance, 100vw)), -22px) rotate(-7deg) scale(1.45); }
    .6% { transform: translate(calc(-.75 * var(--holiday-flight-distance, 100vw)), -62px) rotate(-4deg) scale(1.45); }
    1.225% { transform: translate(calc(-.48 * var(--holiday-flight-distance, 100vw)), -46px) rotate(4deg) scale(1.45); }
    1.85% { transform: translate(calc(-.21 * var(--holiday-flight-distance, 100vw)), -69px) rotate(-3deg) scale(1.3); }
    2.3% { transform: translate(calc(-.025 * var(--holiday-flight-distance, 100vw)), -23px) rotate(7deg) scale(1.08); animation-timing-function: ease-out; }
    2.5%, 100% { transform: none; }
}

@keyframes ce-holiday-snow-fall {
    0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; }
    10% { opacity: .62; }
    48% { transform: translate3d(var(--holiday-flake-drift), 49cqh, 0) rotate(91deg); }
    90% { opacity: .62; }
    100% { transform: translate3d(0, calc(100cqh + 24px), 0) rotate(176deg); opacity: 0; }
}

@keyframes ce-holiday-symbol-arrive {
    from { transform: translateY(5px) scale(.85); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes ce-holiday-lid-open {
    0% { transform: none; }
    29% { transform: translate(0, -22%) rotate(3deg); }
    72% { transform: translate(-10%, -196%) rotate(-31deg); }
    100% { transform: translate(-12%, -175%) rotate(-25deg); }
}

@keyframes ce-holiday-present-spark {
    0%, 33% { opacity: 0; transform: scale(.55); }
    77% { opacity: 1; transform: scale(1.18); }
    100% { opacity: .92; transform: scale(1); }
}
