/* Christmas card list animation on /christmas-address-labels: on a snowy deep-green stage, each name on
   the card list lights up in turn and its household drops onto the next sticker of a festive 5160-style
   sheet (tree and star on every sticker). Then the Grandma Rose sticker lifts off and lands on a red card
   envelope tied with a gold ribbon. Sizes are in cqw of .xa-scene. Reduced motion: list, five filled
   stickers, the Grandma Rose sticker already on the envelope. */
.hub-anim.ha-christmas-address-labels .ha-stage { border: 1px solid #0b2a1d; padding-bottom: 0; background: radial-gradient(120% 90% at 50% 0%, #1d5a3e 0%, #134430 55%, #0e3524 100%); }
.hub-anim.ha-christmas-address-labels .xa-scene { position: relative; container-type: inline-size; aspect-ratio: 2.55; max-width: 940px; margin: 0 auto; overflow: hidden;
    --xa-dx: 39.4cqw; --xa-dy: 13.4cqw; --xa-rot: -3deg; --xa-s: 1.2; --xa-s1: 1.3; }
.hub-anim.ha-christmas-address-labels .xa-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hub-anim.ha-christmas-address-labels .xa-scene::before { content: ""; position: absolute; inset: -20cqw 0 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0.22cqw, transparent 0.32cqw), radial-gradient(circle, rgba(255, 255, 255, 0.5) 0.15cqw, transparent 0.24cqw), radial-gradient(circle, rgba(255, 255, 255, 0.7) 0.3cqw, transparent 0.4cqw);
    background-size: 11cqw 10cqw, 7cqw 6.6667cqw, 17cqw 20cqw; background-position: 1cqw 2cqw, 4.3cqw 5.1cqw, 8.6cqw 13cqw; }
.hub-anim.ha-christmas-address-labels .ha-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; z-index: 0; pointer-events: none;
    background: radial-gradient(48px 22px at 50% 100%, #f4f8f5 99%, transparent 100%) 0 0 / 84px 100% repeat-x, linear-gradient(#f4f8f5, #f4f8f5) 0 100% / 100% 8px no-repeat; }
.hub-anim.ha-christmas-address-labels .xa-scene { z-index: 1; }

/* card list */
.hub-anim.ha-christmas-address-labels .xa-list { position: absolute; z-index: 2; left: 2.5cqw; top: 6cqw; width: 20.5cqw; box-sizing: border-box; padding: 0 1.3cqw 1.3cqw; background: #fffaf0;
    border: 2px solid #0f0f12; border-radius: 1.1cqw; box-shadow: 0.5cqw 0.6cqw 0 #0a2418; transform: rotate(-2deg); overflow: hidden; }
.hub-anim.ha-christmas-address-labels .xa-list p { margin: 0; }
.hub-anim.ha-christmas-address-labels .xa-lhead { margin: 0 -1.3cqw 0.8cqw !important; padding: 1cqw 1.3cqw 0.9cqw; background: #b3222c; color: #fff; border-bottom: 0.35cqw solid #e3b04b;
    font: 800 1.35cqw/1.1 Manrope, Inter, sans-serif; letter-spacing: -0.005em; white-space: nowrap; }
.hub-anim.ha-christmas-address-labels .xa-row { position: relative; padding: 0.55cqw 0.6cqw 0.55cqw 2cqw; border-radius: 0.6cqw; color: #14301f; white-space: nowrap; overflow: hidden;
    font: 600 1.28cqw/1.2 Inter, system-ui, sans-serif; }
.hub-anim.ha-christmas-address-labels .xa-row::before { content: ""; position: absolute; left: 0.6cqw; top: 50%; width: 0.75cqw; height: 0.75cqw; margin-top: -0.375cqw; background: #e3b04b;
    clip-path: polygon(50% 0, 63% 37%, 100% 38%, 70% 61%, 81% 100%, 50% 77%, 19% 100%, 30% 61%, 0 38%, 37% 37%); }
.hub-anim.ha-christmas-address-labels .xa-row + .xa-row { border-top: 1px dashed rgba(20, 48, 31, 0.15); border-radius: 0; }

/* festive sheet */
.hub-anim.ha-christmas-address-labels .xa-sheet { position: absolute; z-index: 2; left: 25.5cqw; top: 4.5cqw; width: 46cqw; box-sizing: border-box; padding: 2.4cqw 2.2cqw 2.6cqw;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2cqw 1.1cqw; background: #fff; border: 2px solid #0f0f12; border-radius: 1cqw;
    box-shadow: 0.5cqw 0.6cqw 0 #0a2418; }
.hub-anim.ha-christmas-address-labels .xa-cell { position: relative; aspect-ratio: 2.63; border-radius: 0.6cqw; background: #fff; box-shadow: inset 0 0 0 1px #e4dcc6; }
.hub-anim.ha-christmas-address-labels .xa-c2 { background: #f3efe3; }
.hub-anim.ha-christmas-address-labels .xa-stk { position: absolute; inset: 0; z-index: 1; box-sizing: border-box; display: flex; align-items: center; gap: 0.5cqw; padding: 0 0.4cqw 0 0.6cqw;
    background: #fff; border: 1px solid #d9c592; border-radius: 0.6cqw; overflow: hidden; transform-origin: 50% 50%; }
.hub-anim.ha-christmas-address-labels .xa-stk > div { min-width: 0; display: flex; flex-direction: column; gap: 0.05cqw; }
.hub-anim.ha-christmas-address-labels .xa-stk span, .hub-anim.ha-christmas-address-labels .xa-stk b { display: block; white-space: nowrap; overflow: hidden; }
.hub-anim.ha-christmas-address-labels .xa-stk span { color: #374151; font: 500 0.8cqw/1.25 Inter, system-ui, sans-serif; }
.hub-anim.ha-christmas-address-labels .xa-stk b { color: #14301f; font: 800 0.9cqw/1.25 Manrope, Inter, sans-serif; }
.hub-anim.ha-christmas-address-labels .xa-tree { position: relative; flex: none; width: 1.5cqw; height: 2.2cqw; }
.hub-anim.ha-christmas-address-labels .xa-tree::before { content: ""; position: absolute; left: 0; right: 0; top: 0.5cqw; bottom: 0; background: #1f7a4a;
    clip-path: polygon(50% 0, 72% 32%, 62% 32%, 86% 64%, 74% 64%, 100% 92%, 58% 92%, 58% 100%, 42% 100%, 42% 92%, 0 92%, 26% 64%, 14% 64%, 38% 32%, 28% 32%); }
.hub-anim.ha-christmas-address-labels .xa-tree::after { content: ""; position: absolute; left: 50%; top: 0; width: 0.85cqw; height: 0.85cqw; margin-left: -0.425cqw; background: #e3a81f;
    clip-path: polygon(50% 0, 63% 37%, 100% 38%, 70% 61%, 81% 100%, 50% 77%, 19% 100%, 30% 61%, 0 38%, 37% 37%); }
.hub-anim.ha-christmas-address-labels .xa-peel { z-index: 5; transform: translate(var(--xa-dx), var(--xa-dy)) rotate(var(--xa-rot)) scale(var(--xa-s)); box-shadow: 0 0.3cqw 0.5cqw rgba(15, 15, 18, 0.25); }

/* card envelope */
.hub-anim.ha-christmas-address-labels .xa-env { position: absolute; z-index: 1; left: 73.5cqw; top: 11cqw; width: 24cqw; height: 17cqw; box-sizing: border-box; background: #b3222c;
    border: 2px solid #0f0f12; border-radius: 0.9cqw; transform: rotate(-3deg); box-shadow: 0.5cqw 0.6cqw 0 #0a2418;
    background-image: linear-gradient(90deg, transparent 13%, #e3b04b 13%, #e3b04b 19%, transparent 19%); }
.hub-anim.ha-christmas-address-labels .xa-env::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0, 0, 0, 0.16); clip-path: polygon(0 0, 100% 0, 50% 46%); }
.hub-anim.ha-christmas-address-labels .xa-bow { position: absolute; left: 16%; top: -1.6cqw; width: 6.4cqw; height: 3.2cqw; margin-left: -3.2cqw; }
.hub-anim.ha-christmas-address-labels .xa-bow::before, .hub-anim.ha-christmas-address-labels .xa-bow::after { content: ""; position: absolute; top: 0; width: 3.1cqw; height: 2.6cqw; background: #e3b04b; border: 2px solid #0f0f12; box-sizing: border-box; }
.hub-anim.ha-christmas-address-labels .xa-bow::before { left: 0; border-radius: 60% 20% 20% 60%; transform: rotate(-12deg); }
.hub-anim.ha-christmas-address-labels .xa-bow::after { right: 0; border-radius: 20% 60% 60% 20%; transform: rotate(12deg); }
.hub-anim.ha-christmas-address-labels .xa-seal { position: absolute; left: 16%; top: 0.3cqw; z-index: 1; width: 1.8cqw; height: 1.8cqw; margin-left: -0.9cqw; border-radius: 50%; background: #c9902a; border: 2px solid #0f0f12; box-sizing: border-box; }

/* note */
.hub-anim.ha-christmas-address-labels .xa-note { position: absolute; z-index: 6; left: 36cqw; top: 31.6cqw; margin: 0; padding: 0.42rem 0.8rem; border-radius: 999px; background: #e3b04b; color: #0f0f12; white-space: nowrap;
    border: 2px solid #0f0f12; font: 800 clamp(0.74rem, 1.55cqw, 0.92rem)/1 Manrope, Inter, sans-serif; letter-spacing: -0.005em; box-shadow: 3px 4px 0 #0a2418; transform: rotate(-2deg); }

@media (max-width: 880px) {
    .hub-anim.ha-christmas-address-labels .ha-stage { padding-bottom: 3.2rem; }
    .hub-anim.ha-christmas-address-labels .xa-scene { max-width: 460px; aspect-ratio: 0.78; --xa-dx: 4.7cqw; --xa-dy: -32.5cqw; --xa-rot: 3deg; --xa-s: 0.8; --xa-s1: 0.88; }
    .hub-anim.ha-christmas-address-labels .xa-scene::before { background-size: 19cqw 20cqw, 13cqw 10cqw, 29cqw 20cqw; }
    .hub-anim.ha-christmas-address-labels .ha-stage::after { height: 22px; background-size: 64px 100%, 100% 8px; }
    .hub-anim.ha-christmas-address-labels .xa-list { left: 3cqw; top: 5cqw; width: 47cqw; padding: 0 2.6cqw 2.4cqw; border-radius: 2.2cqw; box-shadow: 1cqw 1.2cqw 0 #0a2418; }
    .hub-anim.ha-christmas-address-labels .xa-lhead { margin: 0 -2.6cqw 1.4cqw !important; padding: 2.2cqw 2.6cqw 2cqw; font-size: 3.3cqw; border-bottom-width: 0.8cqw; }
    .hub-anim.ha-christmas-address-labels .xa-row { padding: 1.1cqw 1cqw 1.1cqw 4.4cqw; font-size: 3.15cqw; border-radius: 1.2cqw; }
    .hub-anim.ha-christmas-address-labels .xa-row::before { left: 1.2cqw; width: 1.9cqw; height: 1.9cqw; margin-top: -0.95cqw; }
    .hub-anim.ha-christmas-address-labels .xa-sheet { left: 4cqw; top: 52cqw; width: 92cqw; padding: 3.6cqw 3.4cqw; gap: 2.6cqw 2.4cqw; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 2cqw; box-shadow: 1cqw 1.2cqw 0 #0a2418; }
    .hub-anim.ha-christmas-address-labels .xa-cell:nth-child(n+7) { display: none; }
    .hub-anim.ha-christmas-address-labels .xa-cell, .hub-anim.ha-christmas-address-labels .xa-stk { border-radius: 1.3cqw; }
    .hub-anim.ha-christmas-address-labels .xa-stk { gap: 1.4cqw; padding: 0 1.4cqw 0 1.6cqw; }
    .hub-anim.ha-christmas-address-labels .xa-stk span { font-size: 2.55cqw; }
    .hub-anim.ha-christmas-address-labels .xa-stk b { font-size: 2.95cqw; }
    .hub-anim.ha-christmas-address-labels .xa-tree { width: 4cqw; height: 5.6cqw; }
    .hub-anim.ha-christmas-address-labels .xa-tree::before { top: 1.2cqw; }
    .hub-anim.ha-christmas-address-labels .xa-tree::after { width: 2cqw; height: 2cqw; margin-left: -1cqw; }
    .hub-anim.ha-christmas-address-labels .xa-env { left: 53cqw; top: 10cqw; width: 43cqw; height: 30cqw; border-radius: 1.8cqw; transform: rotate(3deg); box-shadow: 1cqw 1.2cqw 0 #0a2418; }
    .hub-anim.ha-christmas-address-labels .xa-bow { top: -2.6cqw; width: 11cqw; height: 5.4cqw; margin-left: -5.5cqw; }
    .hub-anim.ha-christmas-address-labels .xa-bow::before, .hub-anim.ha-christmas-address-labels .xa-bow::after { width: 5.3cqw; height: 4.4cqw; }
    .hub-anim.ha-christmas-address-labels .xa-seal { top: 0.6cqw; width: 3.2cqw; height: 3.2cqw; margin-left: -1.6cqw; }
    .hub-anim.ha-christmas-address-labels .xa-note { left: 4cqw; top: 112.5cqw; font-size: clamp(0.72rem, 3.4cqw, 0.9rem); }
}
@media (prefers-reduced-motion: reduce) { .hub-anim.ha-christmas-address-labels .ba-toggle { display: none !important; } }
@media (prefers-reduced-motion: no-preference) {
    .hub-anim.ha-christmas-address-labels .xa-stk, .hub-anim.ha-christmas-address-labels .xa-row, .hub-anim.ha-christmas-address-labels .xa-note, .hub-anim.ha-christmas-address-labels .xa-env, .hub-anim.ha-christmas-address-labels .xa-c2, .hub-anim.ha-christmas-address-labels .xa-scene::before { animation-duration: 11s; animation-iteration-count: infinite; animation-timing-function: ease; animation-fill-mode: both; }
    .hub-anim.ha-christmas-address-labels .xa-scene::before { animation-name: haxa-snow; animation-timing-function: linear; }
    @keyframes haxa-snow { from { transform: translateY(0); } to { transform: translateY(20cqw); } }
    .hub-anim.ha-christmas-address-labels .xa-r1 { animation-name: haxa-r1; }
    @keyframes haxa-r1 { 0%, 7% { background-color: rgba(227, 176, 75, 0); } 8%, 13% { background-color: rgba(227, 176, 75, 0.38); } 16%, 100% { background-color: rgba(227, 176, 75, 0); } }
    .hub-anim.ha-christmas-address-labels .xa-c1 .xa-stk { animation-name: haxa-c1; }
    @keyframes haxa-c1 { 0%, 10% { opacity: 0; transform: translateY(-1.2cqw) scale(1.15); } 13%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
    .hub-anim.ha-christmas-address-labels .xa-r2 { animation-name: haxa-r2; }
    @keyframes haxa-r2 { 0%, 14% { background-color: rgba(227, 176, 75, 0); } 15%, 20% { background-color: rgba(227, 176, 75, 0.38); } 23%, 100% { background-color: rgba(227, 176, 75, 0); } }
    .hub-anim.ha-christmas-address-labels .xa-r3 { animation-name: haxa-r3; }
    @keyframes haxa-r3 { 0%, 21% { background-color: rgba(227, 176, 75, 0); } 22%, 27% { background-color: rgba(227, 176, 75, 0.38); } 30%, 100% { background-color: rgba(227, 176, 75, 0); } }
    .hub-anim.ha-christmas-address-labels .xa-c3 .xa-stk { animation-name: haxa-c3; }
    @keyframes haxa-c3 { 0%, 24% { opacity: 0; transform: translateY(-1.2cqw) scale(1.15); } 27%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
    .hub-anim.ha-christmas-address-labels .xa-r4 { animation-name: haxa-r4; }
    @keyframes haxa-r4 { 0%, 28% { background-color: rgba(227, 176, 75, 0); } 29%, 34% { background-color: rgba(227, 176, 75, 0.38); } 37%, 100% { background-color: rgba(227, 176, 75, 0); } }
    .hub-anim.ha-christmas-address-labels .xa-c4 .xa-stk { animation-name: haxa-c4; }
    @keyframes haxa-c4 { 0%, 31% { opacity: 0; transform: translateY(-1.2cqw) scale(1.15); } 34%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
    .hub-anim.ha-christmas-address-labels .xa-r5 { animation-name: haxa-r5; }
    @keyframes haxa-r5 { 0%, 35% { background-color: rgba(227, 176, 75, 0); } 36%, 41% { background-color: rgba(227, 176, 75, 0.38); } 44%, 100% { background-color: rgba(227, 176, 75, 0); } }
    .hub-anim.ha-christmas-address-labels .xa-c5 .xa-stk { animation-name: haxa-c5; }
    @keyframes haxa-c5 { 0%, 38% { opacity: 0; transform: translateY(-1.2cqw) scale(1.15); } 41%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
    .hub-anim.ha-christmas-address-labels .xa-peel { animation-name: haxa-peel; }
    @keyframes haxa-peel {
        0%, 17% { opacity: 0; transform: translateY(-1.2cqw) scale(1.15); box-shadow: none; }
        20%, 49% { opacity: 1; transform: none; box-shadow: none; }
        53% { opacity: 1; transform: translate(0, -0.8cqw) rotate(-6deg) scale(1.06); box-shadow: 0 1.6cqw 2.4cqw -1cqw rgba(0, 0, 0, 0.5); animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
        64% { opacity: 1; transform: translate(var(--xa-dx), calc(var(--xa-dy) - 1.5cqw)) rotate(var(--xa-rot)) scale(var(--xa-s1)); box-shadow: 0 1.6cqw 2.4cqw -1cqw rgba(0, 0, 0, 0.5); }
        67%, 93% { opacity: 1; transform: translate(var(--xa-dx), var(--xa-dy)) rotate(var(--xa-rot)) scale(var(--xa-s)); box-shadow: 0 0.3cqw 0.5cqw rgba(15, 15, 18, 0.25); }
        97%, 100% { opacity: 0; transform: translate(var(--xa-dx), var(--xa-dy)) rotate(var(--xa-rot)) scale(var(--xa-s)); } }
    .hub-anim.ha-christmas-address-labels .xa-c2 { animation-name: haxa-slot; }
    @keyframes haxa-slot { 0%, 50% { background-color: #fff; } 53%, 93% { background-color: #f3efe3; } 97%, 100% { background-color: #fff; } }
    .hub-anim.ha-christmas-address-labels .xa-note { animation-name: haxa-note; }
    @keyframes haxa-note { 0%, 40% { opacity: 0; transform: rotate(-2deg) translateY(6px); } 44%, 93% { opacity: 1; transform: rotate(-2deg); } 97%, 100% { opacity: 0; transform: rotate(-2deg); } }
    .hub-anim.ha-christmas-address-labels .xa-env { animation-name: haxa-env; }
    @keyframes haxa-env { 0%, 66% { translate: 0 0; } 68% { translate: 0 0.6cqw; } 71%, 100% { translate: 0 0; } }
}
