/* Christmas popup (home page only). Markup: christmas-popup.mjs. Lights, snow and timing: christmas-popup.js. */
.xl{--pine:#0d3f31;--pine-deep:#062019;--snow:#f4f9ff;--berry:#c4202c;--glow:#ffd27a;position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:72px 24px 26px;border:0;background:none;color:#fff;overflow:hidden}
.xl[open]{display:grid;place-items:center}
.xl::backdrop{background:linear-gradient(180deg,#030b16f2,#07172cd9 55%,#07172ccc);animation:xl-fade .45s ease both}
.xl-snow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.xl-garland{position:absolute;top:0;left:0;width:100%;height:110px;overflow:visible;pointer-events:none;z-index:3}

.xl-card{position:relative;z-index:2;width:min(930px,100%);border-radius:18px;background:
  radial-gradient(420px 190px at 8% -6%,#ff3b3f2b,transparent 70%),radial-gradient(420px 200px at 34% -8%,#ffc23d2e,transparent 70%),radial-gradient(420px 190px at 62% -6%,#3fa9ff29,transparent 70%),radial-gradient(420px 200px at 92% -8%,#3ddc7c24,transparent 70%),
  linear-gradient(155deg,#12513f,var(--pine) 38%,var(--pine-deep));box-shadow:0 40px 90px #000a,0 0 0 1px #ffffff14;outline:0;animation:xl-drop .6s cubic-bezier(.2,.8,.25,1) both}
.xl-scroll{position:relative;display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);max-height:calc(100vh - 98px);max-height:calc(100dvh - 98px);overflow:hidden auto;overscroll-behavior:contain;border-radius:18px;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent}
.xl-cap{position:absolute;left:-5px;top:-12px;width:calc(100% + 10px);height:25px;z-index:1;pointer-events:none;filter:drop-shadow(0 3px 3px #0004)}
.xl-cap path{fill:var(--snow)}
.xl-close{position:absolute;top:24px;right:20px;z-index:4;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 15px 1px 17px;border:1px solid #ffffff4d;border-radius:10px;background:#062019b8;color:#fff;font-size:15px;font-weight:650;transition:background .2s,color .2s}
.xl-close span{font-size:21px;line-height:1}
.xl-close:hover{background:#fff;color:var(--pine-deep)}
.xl :focus-visible{outline:3px solid var(--glow);outline-offset:3px}
.xl .xl-card:focus-visible{outline:0}

/* Scene: the refrigerator is the Christmas tree, the washer and range are the presents under it. */
.xl-scene{position:relative;display:flex;align-items:flex-end;justify-content:center;min-width:0}
.xl-stage{position:relative;width:100%;max-width:480px;aspect-ratio:460/480;margin-top:14px}
.xl-stage>*{position:absolute}
.xl-stage img{height:auto;max-width:none;filter:brightness(.36) saturate(.75);transition:filter 1.5s ease .25s}
.xl[data-lights=on] .xl-stage img{filter:brightness(.97) saturate(1)}
.xl-halo{left:4%;top:2%;width:92%;height:88%;border-radius:50%;background:radial-gradient(closest-side,#ffd98a66,#ffb95424 52%,transparent);opacity:0;transition:opacity 1.6s ease .5s}
.xl[data-lights=on] .xl-halo{opacity:1}
.xl-floor{left:-8%;bottom:0;width:212%;height:17%}
.xl-floor path{fill:#7f9fb5;transition:fill 1.5s ease .25s}
.xl[data-lights=on] .xl-floor path{fill:#e6f0f7}
.xl-fridge{left:30.2%;top:18.3%;width:39.600%}
.xl-magnet{left:58.800%;top:41.500%;width:8.300%;border-radius:50%;box-shadow:0 2px 5px #0006}
.xl-washer{left:6.500%;top:57.900%;width:27.600%}
.xl-range{left:65.200%;top:50.800%;width:29.900%}
.xl-wrap,.xl-gifts{inset:0;width:100%;height:100%;overflow:visible}
.xl-red{color:#cf2632}.xl-gold{color:#e0a52d}
.xl-ribbon{fill:currentColor}
.xl-bow path,.xl-bow rect{fill:currentColor}
.xl-bow .xl-loop{stroke:#ffffff3d;stroke-width:1.500}
.xl-bow .xl-fold{fill:#00000040}
.xl-bow .xl-knot{stroke:#00000038;stroke-width:1.200}
.xl-gifts .xl-ribbon,.xl-gifts .xl-bow{filter:brightness(.5);transition:filter 1.5s ease .25s}
.xl[data-lights=on] .xl-ribbon,.xl[data-lights=on] .xl-bow{filter:none}
.xl-star path{fill:#8a743c;transition:fill .5s ease}
.xl-star .xl-facet{fill:#0000001f}
.xl-star circle{opacity:0;transition:opacity .8s ease}
.xl[data-lights=on] .xl-star path:not(.xl-facet){fill:#ffd75e;transition-delay:1.700s}
.xl[data-lights=on] .xl-star circle{opacity:1;transition-delay:1.700s}

/* Light string pull cord: turns the lights off and on again. */
.xl-cord{position:absolute;left:22px;top:0;z-index:3;width:64px;height:142px;padding:0;border:0;background:none;color:#e8f3ee;font-size:13px;font-weight:600;line-height:1.2;transform-origin:50% 0;transition:transform .16s ease}
.xl-cord i{position:absolute;left:50%;top:0;width:2px;height:88px;margin-left:-1px;background:linear-gradient(#f3e6c6,#cdb98a)}
.xl-cord i:after{content:"";position:absolute;left:-7px;bottom:-21px;width:16px;height:23px;border-radius:7px 7px 9px 9px;background:linear-gradient(90deg,#e0434d,var(--berry) 55%,#8f1620);box-shadow:0 3px 6px #0006}
.xl-cord span{position:absolute;left:0;right:0;bottom:8px;text-align:center}
.xl-cord:hover{transform:translateY(5px)}
.xl-cord:active{transform:translateY(13px)}

.xl-copy{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:74px 38px 36px 16px}
.xl h2{font-size:43px;font-weight:800;line-height:1.06;letter-spacing:-.04em;color:#fff;text-wrap:balance;text-shadow:0 0 34px #ffd27a66}
.xl h2 span{display:block;margin-bottom:7px;font-size:23px;font-weight:650;letter-spacing:-.02em;color:var(--glow);text-shadow:none}
.xl-tagline{position:relative;align-self:flex-start;margin:20px 0 20px}
.xl-string{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible;pointer-events:none;z-index:1}
.xl-string path{fill:none;stroke:#f0d9a6;stroke-width:2}.xl-string circle{fill:#d9a441;stroke:#7a5a1a}
.xl-tag{position:relative;display:block;margin:0;padding:13px 26px 14px 54px;background:#fffdf7;color:#1c2b26;clip-path:polygon(26px 0,100% 0,100% 100%,26px 100%,0 72%,0 28%);transform-origin:20px 50%;transform:rotate(-2.500deg);line-height:1.3}
.xl-tagline{filter:drop-shadow(0 10px 14px #0007)}
.xl-tag:before{content:"";position:absolute;left:17px;top:50%;width:15px;height:15px;margin-top:-7px;border-radius:50%;background:#0b3529;box-shadow:0 0 0 4px #d9a441}
.xl-tag b{display:block;font:800 46px/1 Manrope,Arial,sans-serif;letter-spacing:-.05em;color:var(--berry)}
.xl-tag span{display:block;margin-top:4px;font-size:18px;font-weight:700}
.xl-tag small{display:block;margin-top:1px;font-size:14px;color:#51615b}
.xl-list{margin:0 0 20px;padding:0;list-style:none;font-size:16px;line-height:1.45}
.xl-list li{position:relative;padding-left:27px}
.xl-list li+li{margin-top:7px}
.xl-list li:before{content:"";position:absolute;left:3px;top:5px;width:12px;height:6px;border:solid var(--glow);border-width:0 0 2.500px 2.500px;transform:rotate(-46deg)}
.xl-actions{display:flex;flex-wrap:wrap;gap:10px}
.xl-btn{flex:1 1 auto;display:flex;align-items:center;justify-content:center;min-height:52px;padding:8px 18px;border-radius:9px;border:1.500px solid transparent;font-size:16px;font-weight:700;white-space:nowrap;transition:background .2s,color .2s,border-color .2s}
.xl-primary{background:var(--berry);color:#fff}
.xl-primary:hover{background:#a81822}
.xl-second{border-color:#ffffff80;color:#fff}
.xl-short{display:none}
.xl-second:hover{background:#fff;border-color:#fff;color:var(--pine-deep)}
.xl-fine{margin:15px 0 0;font-size:13px;line-height:1.5;color:#b9d0c6}

/* Bulbs: drawn by christmas-popup.js. --i is the order in which they switch on. */
.xb .xb-on{opacity:0;transition:opacity .12s linear}
.xl[data-lights=on] .xb .xb-on{opacity:1;transition:opacity .28s ease;transition-delay:calc(var(--i)*var(--step,40ms) + var(--wait,0ms))}
.xb-tw{animation:xl-twinkle 4.200s ease-in-out infinite;animation-delay:calc(var(--p)*-1.050s)}
.xl:not([data-lights=on]) .xb-tw{animation-play-state:paused}

.xl[open] .xl-tag{animation:xl-swing 1.800s cubic-bezier(.3,.6,.4,1) .55s both}
.xl.is-closing .xl-card{animation:xl-leave .2s ease both}
.xl.is-closing,.xl.is-closing::backdrop{opacity:0;transition:opacity .2s ease}
@keyframes xl-fade{from{opacity:0}}
@keyframes xl-drop{from{opacity:0;transform:translateY(-34px)}}
@keyframes xl-leave{to{transform:translateY(14px)}}
@keyframes xl-swing{0%{transform:rotate(-7deg)}30%{transform:rotate(1.500deg)}55%{transform:rotate(-4.500deg)}78%{transform:rotate(-1.200deg)}100%{transform:rotate(-2.500deg)}}
@keyframes xl-twinkle{0%,100%{opacity:1}50%{opacity:.38}}

@media(min-width:761px) and (max-height:640px){.xl{padding-top:58px;padding-bottom:14px}.xl-scroll{max-height:calc(100dvh - 72px)}.xl-copy{padding-top:62px;padding-bottom:20px}.xl h2{font-size:36px}.xl-tagline{margin:14px 0}.xl-list{margin-bottom:14px}.xl-stage{max-width:410px}}
@media(min-width:761px) and (max-width:900px){.xl-copy{padding-right:26px}.xl h2{font-size:36px}}
@media(max-width:760px){
  .xl{padding:60px 14px 14px}
  .xl-card{width:min(440px,100%)}
  .xl-scroll{display:block;max-height:calc(100vh - 74px);max-height:calc(100dvh - 74px)}
  .xl-scene{overflow:hidden;border-radius:18px 18px 0 0}
  .xl-stage{width:clamp(150px,calc((100dvh - 506px)*.96),262px);margin-top:8px}
  .xl-floor{left:-112%;width:520%}
  .xl-close{top:20px;right:14px;min-height:44px;padding:0 12px 1px 14px}
  .xl-cord{left:8px;height:118px}.xl-cord i{height:64px}
  .xl-copy{padding:15px 18px 16px}
  .xl h2{font-size:32px}.xl h2 span{font-size:18px;margin-bottom:3px}
  .xl-tagline{margin:13px 0 14px}
  .xl-string{display:none}
  .xl-tag{padding:9px 16px 10px 48px}.xl-tag b{font-size:38px}.xl-tag span{font-size:16px;white-space:nowrap}
  .xl-list{font-size:15px;line-height:1.4;margin-bottom:14px}.xl-list li+li{margin-top:5px}
  .xl-btn{min-height:50px;flex:1 1 0;padding:8px 10px}.xl-long{display:none}.xl-short{display:inline}
  .xl-fine{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.xl *,.xl::backdrop{animation:none!important}.xl-cord{transition:none}.xl[data-lights=on] .xb .xb-on{transition-delay:0ms}}
