/* AWF_FX:start (built from tools/src, do not edit here) */
/* Atmosphere layer (spec 氛围与音效 v1.1): snowy-night scene, door light, moments, mute button.
   Ships as the tool stylesheet of the home and calendar tools, so it never touches style.css.
   Colours are the 12 palette colours only (hex literals below are the same palette values with opacity). */
.home-hero,.house-stage,.cal-scene,.cta.sc-cta{--gh:40px;position:relative;isolation:isolate;overflow:hidden;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 64' preserveAspectRatio='none'%3E%3Cpath d='M0 22 Q90 6 200 16 T420 14 T640 20 T860 10 T1080 18 T1200 14 V64 H0Z' fill='%23F3F6F4'/%3E%3C/svg%3E") left bottom/100% var(--gh) no-repeat,linear-gradient(var(--night-deep),var(--night) 70%)}
.home-hero{padding-bottom:calc(32px + var(--gh))}
.house-stage{padding-bottom:var(--gh)}
.house-stage .hint{background:none;position:relative;z-index:1}
@media (min-width:640px){.home-hero,.house-stage,.cal-scene,.cta.sc-cta{--gh:64px}.home-hero{padding-bottom:calc(48px + var(--gh))}}
.home-hero .snowfall{display:none}
.sc-host .house .ground{visibility:hidden}
.sc-host .smoke{display:none}
.hero-grid{z-index:1}
.sc-host .house{z-index:1}
.sc,.sc-fall{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.sc{z-index:0}
.sc-fall{z-index:2;bottom:calc(var(--gh) - 8px)}
.sc i{position:absolute;display:block}
.sc-st{width:2px;height:2px;border-radius:50%;background:var(--snow);opacity:var(--a,.7)}
.sc-st.tw{animation:sc-tw var(--p,4s) ease-in-out var(--o,0s) infinite alternate}
@keyframes sc-tw{from{opacity:.3}to{opacity:.9}}
.sc-moon{display:none!important}
@media (min-width:640px){.sc-moon{display:block!important;width:88px;height:88px;border-radius:50%;background:var(--lamp-soft);right:3%;top:16px}
.sc-moon::before{content:"";position:absolute;left:50%;top:50%;width:260px;height:260px;margin:-130px 0 0 -130px;border-radius:50%;background:radial-gradient(closest-side,rgba(253,231,176,.25),rgba(253,231,176,0))}}
.sc-far{position:absolute;left:0;right:0;top:0;height:calc(var(--foot,70%) + 6px)}
.sc-far svg{position:absolute;bottom:0;display:block;max-width:none}
.sc-hill{left:-5%;width:110%;height:34%}
.sc-pn{width:auto;left:var(--lm);transform:translateX(-50%);height:calc(var(--tree,150px) * var(--hm))}
.sc-pn.w{display:none}
@media (min-width:640px){.sc-pn.w{display:block}.sc-pn{left:var(--lw);height:calc(var(--tree,150px) * var(--hw))}}
.sc-field{left:0;right:0;top:calc(var(--foot,70%) - 8px);bottom:0}
.sc-field svg{display:block;width:100%;height:100%}
.w.sc-st,.w.sc-f{display:none}
@media (min-width:640px){.w.sc-st,.w.sc-f{display:block}}
.sc-f{top:-8px;left:var(--x);border-radius:50%;background:var(--snow);animation:sc-fall var(--d) linear var(--o) infinite}
.sc-f.l1{width:2px;height:2px;opacity:.5;--d:14s}
.sc-f.l2{width:3px;height:3px;opacity:.7;--d:10s}
.sc-f.l3{width:5px;height:5px;opacity:.9;--d:7s}
@keyframes sc-fall{0%{transform:translate3d(0,0,0)}25%{transform:translate3d(12px,calc(var(--fall,600px) * .25),0)}50%{transform:translate3d(0,calc(var(--fall,600px) * .5),0)}75%{transform:translate3d(-12px,calc(var(--fall,600px) * .75),0)}100%{transform:translate3d(0,var(--fall,600px),0)}}
.sc-puff{left:30%;bottom:100%;width:12px;height:12px;border-radius:50%;background:rgba(243,246,244,.35);opacity:0;animation:sc-puff 6s ease-out var(--o,0s) infinite}
@keyframes sc-puff{0%{transform:translate(0,0) scale(.6);opacity:0}15%{opacity:1}100%{transform:translate(4px,-24px) scale(1.4);opacity:0}}
.sc-swag{position:absolute;z-index:2;left:2px;right:2px;top:calc(var(--roof) - 3px);height:10px;border-radius:0 0 8px 8px;pointer-events:none;background:radial-gradient(circle at 24px 5px,var(--berry) 2px,transparent 2.5px) 0 0/48px 10px repeat-x,radial-gradient(ellipse 8px 5px at 6px 5px,var(--pine) 98%,transparent) 0 0/12px 10px repeat-x}
/* paused: off screen, tab hidden, not the biggest scene on a phone, or while a moment plays */
.sc-off .sc *,.sc-off .sc-fall *,.sc-off .sc-puff,.sc-off .door.fx-fl::before,.sc-off .door.is-today::before,
.sc-hold .sc *,.sc-hold .sc-fall *,.sc-hold .sc-puff,.sc-hold .house:not(.fx-all) .door.fx-fl::before,.sc-hold .door.is-today::before{animation-play-state:paused!important}

/* ===== calendar page (spec 五): the scene is the top block; house, main button and one text link inside ===== */
.cal-page{padding-top:0}
.cal-scene{color:var(--snow);padding:16px 0 calc(var(--gh) + 8px)}
.cal-scene-in{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center}
.cal-eyebrow{margin:0 0 8px;font-size:12px;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;color:var(--lamp-soft)}
.cal-scene .cal-head{margin:0 0 16px;width:100%}
.cal-scene .cal-head h1{font-size:28px;line-height:1.2;color:var(--snow);margin:0 0 4px}
@media (min-width:640px){.cal-scene .cal-head h1{font-size:36px}}
.cal-scene .cal-status,.cal-scene .cal-status.is-error,.cal-scene .cal-status.is-ok{font-size:14px;color:var(--lamp-soft)}
.cal-scene .cal-head{position:relative;padding-bottom:14px}
.cal-scene .bar{position:absolute;left:0;right:0;bottom:0;height:6px;background:rgba(243,246,244,.15);margin:0 auto}
.cal-scene .fx-lit{position:absolute;left:0;right:0;top:100%;margin:2px 0 0}
.cal-slot{padding-top:24px}
.cal-slot{width:100%;min-height:362px}
@media (min-width:360px){.cal-slot{min-height:390px}}
@media (min-width:390px){.cal-slot{min-height:430px}}
@media (min-width:640px){.cal-slot{min-height:580px}}
@media (min-width:1024px){.cal-slot{min-height:608px}}
@media (min-width:1200px){.cal-slot{min-height:690px}}
.fx-nostage .cal-slot{min-height:0;padding-top:0}
.fx-nostage .cal-cta,.fx-nocta .cal-cta{display:none}
.cal-scene .house-stage{background:none;padding:0;margin:0;border-radius:0;overflow:visible;isolation:auto}
.cal-scene .house-stage .hint{padding:8px 0 0;color:var(--lamp-soft)}
.cal-cta{width:100%;max-width:360px;min-height:100px;display:grid;justify-items:center;align-content:start;gap:4px;margin-top:24px}
.fx-docked .cal-cta{min-height:44px}
.cal-cta .btn-primary{width:100%;min-height:52px}
.fx-link{border:0;background:none;padding:8px 0;min-height:44px;font:600 16px/1.2 var(--body);color:var(--lamp-soft);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.fx-link:hover{color:var(--card)}
.fx-how details.how-fold>summary{display:none}
.fx-amber{width:100%;margin:0 0 16px;border-radius:var(--r);background:var(--lamp);color:var(--ink);padding:12px 16px;text-align:left;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.fx-amber p{margin:0;flex:1 1 200px;font-size:16px}
.cal-body{padding-top:24px}
.cal-body [data-awf="calendar"]>.house-stage{display:none}

/* ===== home (spec 八): closing block in the scene with all 24 doors lit; prompt cards tilt with a sticker ===== */
.cta.sc-cta{padding-bottom:calc(48px + var(--gh))}
.sc-cta .cta-grid{position:relative;z-index:1;grid-template-columns:1fr;justify-items:center;text-align:center;gap:24px}
.sc-cta .cta-house{width:100%}
.sc-cta .house{--dw:38px;--dh:46px;--gap:4px;--pad:8px;--roof:34px;--h:260px}
@media (min-width:640px){.sc-cta .house{--dw:56px;--dh:70px;--gap:8px;--pad:16px;--roof:48px;--h:400px}}
@media (min-width:1024px){.cta.sc-cta{padding-bottom:calc(64px + var(--gh))}}
.sc-cta .door{cursor:default}
.sc-cta .door .num{font-size:14px}
@media (min-width:640px){.sc-cta .door .num{font-size:18px}}
.sc-cta .cta-copy{max-width:52ch}
.pc-1{transform:rotate(var(--tilt,-1.5deg));transition:transform .3s}
.pc-2{transform:rotate(1deg) translate(-4px,4px)}
.pc-3{transform:rotate(-.5deg) translate(6px,8px)}
.pc-stk{position:absolute;top:-12px;right:-8px;font-size:28px;line-height:1;transform:rotate(8deg);pointer-events:none}

/* ===== door light (spec 四) ===== */
.door{perspective:600px}
.door::before{inset:-20%;background:radial-gradient(closest-side,rgba(247,184,74,.35),rgba(247,184,74,0))}
.door.is-open::before{inset:-30%}
.door.is-filled:not(.is-open) .lf{background-image:repeating-linear-gradient(to bottom,rgba(247,184,74,.75) 0 1px,transparent 1px 5px)}
.door.is-filled .num{color:var(--lamp-soft)}
.door.is-open .in{background:radial-gradient(circle at 50% 50%,var(--lamp-soft),var(--lamp))}
.door .lf{transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .45s}
.door.is-open .lf.l{transform:rotateY(-110deg)}
.door.is-open .lf.r{transform:rotateY(110deg)}
.door.fx-fl::before,.sc-host .house .door.fx-fl::before{animation:fx-fl var(--fp,3s) ease-in-out infinite alternate}
.sc-host .house[data-sample] .door.fx-fl::before{animation:glow-on 80ms calc(var(--i,0) * 40ms) both,fx-fl var(--fp,3s) ease-in-out calc(var(--i,0) * 40ms + 80ms) infinite alternate}
@keyframes fx-fl{from{opacity:.8}to{opacity:1}}
.door{transition:transform .12s}
.door:not(.is-filled):active{transform:scale(.97)}
.door:not(.is-filled):active .lf.l{transform:rotateY(-6deg)}
.door:not(.is-filled):active .lf.r{transform:rotateY(6deg)}
@media (hover:hover){.door:not(.is-filled):hover .lf.l{transform:rotateY(-6deg)}.door:not(.is-filled):hover .lf.r{transform:rotateY(6deg)}}

/* ===== moments (spec 六) ===== */
.door.fx-open .behind{animation:fx-pop .35s cubic-bezier(.2,.8,.2,1) .2s both}
@keyframes fx-pop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.1);opacity:1}100%{transform:scale(1);opacity:1}}
.house.fx-all .door.is-filled::before{animation:fx-all 1.2s ease-in-out both}
@keyframes fx-all{0%,100%{transform:scale(1)}40%{transform:scale(1.4)}}
.fx-lit{margin:4px 0 0;font-size:14px;color:var(--lamp)}
.fx-mini{position:relative;width:72px;height:90px;margin:0 auto 16px;--dw:72px;--dh:90px}
.fx-mini .door{position:absolute;inset:0;width:72px;height:90px;cursor:default}
.fx-mini .door .num{font-size:22px}
.fx-mini .fx-slat{position:absolute;left:3px;right:3px;height:20%;background:var(--night-deep);opacity:.9;z-index:3;pointer-events:none}
.fx-mini.go .fx-slat{animation:fx-unveil .5s linear both}
.fx-mini.go .fx-slat:nth-of-type(1){bottom:3px;animation-delay:0s}
.fx-mini.go .fx-slat:nth-of-type(2){bottom:calc(3px + 20%);animation-delay:.1s}
.fx-mini.go .fx-slat:nth-of-type(3){bottom:calc(3px + 40%);animation-delay:.2s}
.fx-mini.go .fx-slat:nth-of-type(4){bottom:calc(3px + 60%);animation-delay:.3s}
.fx-mini.go .fx-slat:nth-of-type(5){bottom:calc(3px + 80% - 6px);animation-delay:.4s}
@keyframes fx-unveil{from{opacity:.9}to{opacity:0}}
.fx-mini.go .door::before{animation:fx-swell .8s ease-in-out .3s both}
@keyframes fx-swell{0%,100%{transform:scale(1)}50%{transform:scale(1.6)}}
.fx-spark{position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-2px;border-radius:50%;background:var(--lamp);opacity:0;pointer-events:none;z-index:4}
.fx-mini.go .fx-spark{animation:fx-spark .5s ease-out .4s both}
@keyframes fx-spark{0%{opacity:1;transform:rotate(var(--r)) translateY(0)}100%{opacity:0;transform:rotate(var(--r)) translateY(-24px)}}
.fx-flakes{position:absolute;left:0;right:0;top:0;height:96px;overflow:hidden;pointer-events:none}
.fx-flakes i{position:absolute;top:-6px;left:var(--x);width:4px;height:4px;border-radius:50%;background:var(--lamp-soft);animation:fx-drop .9s linear var(--o) both}
@keyframes fx-drop{from{transform:translateY(0);opacity:.9}to{transform:translateY(80px);opacity:0}}
.sheet .note{border-left:0;padding:8px 0 0;text-align:left}
.sheet .note .stk{font-size:48px;text-align:center}
.sheet .note .msg{font-family:var(--head);font-size:22px;line-height:1.4;color:var(--ink)}
.sheet .note .msg.fx-long{font-size:18px}
.sheet .note .by{font-size:16px;font-weight:400;color:var(--muted)}
.sheet .note .q{font-size:14px;color:var(--muted)}

/* ===== mute button (spec 七) ===== */
.masthead-row{position:relative}
.masthead-row .topnav{margin-right:44px}
.fx-mute{position:absolute;right:12px;top:50%;margin-top:-20px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;background:none;color:var(--lamp-soft);cursor:pointer;padding:0}
.fx-mute:hover{background:rgba(243,246,244,.1)}
.fx-mute svg{width:22px;height:22px}
.masthead-row .topnav{margin-left:auto}
@media (min-width:640px){.fx-mute{right:20px}}
/* 320-359px: the bell needs room, so the site name is kept for screen readers and the icon stays */
@media (max-width:359px){.masthead-row:has(.fx-mute) .brand span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}

@media (prefers-reduced-motion:reduce){
.pc-1{transition:none}
.sc-f,.sc-st.tw,.sc-puff,.door.fx-fl::before,.sc-host .house .door.fx-fl::before,.door.is-today::before{animation:none!important}
.sc-puff{opacity:1;transform:translate(2px,-10px)}
.door .lf{transition:opacity .15s}
.door.is-open .lf{opacity:0}
.door.fx-open .behind,.fx-mini.go .door::before,.house.fx-all .door.is-filled::before,.fx-mini.go .fx-spark,.fx-flakes i{animation:none!important}
.fx-mini.go .fx-slat{animation:fx-unveil .15s linear both!important}
.fx-flakes{display:none}
}
/* AWF_FX:end */