@import url('chinese-type.css?v=perf1');
:root{color-scheme:light;--olive:#555c38;--gold:#b99559;--ease:cubic-bezier(.22,.68,.15,1)}
*{box-sizing:border-box}body{margin:0;min-height:100svh;display:grid;place-items:center;background:#eee6dc;color:var(--olive);font-family:'Christmas Iansui',Georgia,'Times New Roman',serif;background:radial-gradient(ellipse at 50% 30%,#fffaf3,#e8ddd1)}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid #875526;outline-offset:5px}.experience{position:relative;width:min(100%,500px);height:100svh;max-height:980px;overflow:hidden;isolation:isolate;background:#f5ebde;box-shadow:0 20px 90px #5e473526}
.perspective{position:absolute;inset:0;perspective:1100px;overflow:hidden}.scene{position:absolute;width:100%;height:100%;transform-origin:50% 48%;transform-style:preserve-3d;will-change:transform}.door{width:100%;height:100%;object-fit:fill;display:block}
header{position:absolute;top:4.4%;width:100%;text-align:center;pointer-events:none;transition:opacity .5s}.eyebrow{font-family:'Christmas Iansui',Arial,sans-serif;font-size:9px;letter-spacing:.23em;font-weight:500;margin:0 0 12px}h1{font-size:clamp(34px,9vw,49px);font-weight:400;font-style:italic;line-height:1.06;margin:0;text-shadow:0 2px 12px #fff8}.flourish{color:var(--gold);margin-top:12px;font-size:18px}
.stocking-target{position:absolute;left:27%;top:44%;width:42%;height:44%;border:0;border-radius:35%;background:transparent}.stocking-target:focus-visible{outline-offset:0}.stocking-target:disabled{cursor:default}footer{position:absolute;bottom:4%;width:100%;text-align:center;pointer-events:none;transition:opacity .5s}footer p{font-size:24px;font-style:italic;margin:0 0 9px}footer span{font-family:'Christmas Iansui',system-ui,sans-serif;font-size:11px;letter-spacing:.15em}
.card-window{position:absolute;inset:0 0 54%;overflow:hidden;pointer-events:none}.little-card{position:absolute;left:36%;bottom:0;width:28%;height:36%;background:linear-gradient(120deg,#fffaf0,#f2e3c9);border:1px solid #c8aa77;border-radius:8px;box-shadow:0 4px 18px #73512226;transform:translateY(105%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#a07b40;outline:1px solid #d5b884;outline-offset:-6px;will-change:transform}.little-card span{font-size:12px}.little-card i{font-size:15px}
.veil{position:absolute;inset:0;background:#eee3d5b8;backdrop-filter:blur(5px);opacity:0;pointer-events:none;transition:opacity 1.4s}.reader{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;perspective:1100px}.reader[hidden]{display:none}.wish-card{position:relative;width:min(100%,350px);min-height:390px;padding:46px 24px 36px;text-align:center;border-radius:16px;background:radial-gradient(ellipse at top left,#fffdf6,#f6ecd9);border:1px solid #c8aa77;outline:1px solid #d8bd89;outline-offset:-9px;box-shadow:0 22px 55px #69523230;transform-origin:50% 50%;will-change:transform}.wish-card:focus{outline:1px solid #d8bd89}.wish-card .eyebrow{font-size:8px;letter-spacing:.18em}.star{font-size:40px;color:var(--gold);margin:20px auto}h2{font-family:'Christmas Iansui','Songti TC','Noto Serif TC',Georgia,serif;font-size:clamp(24px,6.5vw,30px);font-weight:400;line-height:1.8;letter-spacing:.08em;margin:0}.translation{font-size:14px;line-height:1.65;font-style:italic;opacity:.72;margin:20px 0}.rule{height:1px;width:40px;background:#c5a86e;margin:24px auto 17px}.signoff{font-size:12px;font-style:italic}.corner{position:absolute;color:#9da284;font-size:40px;line-height:1}.corner.top{top:12px;left:16px}.corner.bottom{bottom:12px;right:16px;transform:rotate(180deg)}.replay{margin-top:26px;border:0;background:#fff9edc9;padding:12px 20px;border-radius:30px;font-family:'Christmas Iansui',system-ui,sans-serif;font-size:12px;opacity:0;transition:opacity .5s}.experience[data-state='reading'] .replay{opacity:1}.experience:not([data-state='idle']) header,.experience:not([data-state='idle']) footer{opacity:0}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.no-js{position:fixed;bottom:0;background:#fff;padding:12px}
@media(min-width:600px){body{padding:22px}.experience{height:calc(100svh - 44px);border-radius:26px;border:1px solid #fff8;max-width:460px}}
@media(max-height:650px){header{top:3%}h1{font-size:32px}header .eyebrow{font-size:8px;margin-bottom:6px}.flourish{margin-top:5px}footer{bottom:3%}.wish-card{min-height:0;padding:30px 20px 22px}.star{margin:10px auto}.translation{margin:12px 0}.rule{margin:16px auto}.replay{margin-top:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* Watercolor edition: the background is static; only this isolated sprite tilts. */
.scene{transform:none;transform-style:preserve-3d;will-change:auto}
.stocking-assembly{position:absolute;left:22.5%;top:41%;width:55%;height:45%;transform-origin:50% 12%;transform-style:preserve-3d;will-change:transform}
.stocking-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.stocking-assembly .card-window{inset:auto;left:0;top:-60%;width:100%;height:84%;overflow:hidden}
.stocking-assembly .little-card{left:22%;width:56%;height:62%;border-radius:5px;background:linear-gradient(135deg,#fffaf0,#f3e6ce)}
.stocking-target{left:23%;top:43%;width:54%;height:44%}
.veil{background:#f3eadc85;backdrop-filter:blur(2px)}
.wish-card{border-radius:12px 16px 13px 18px;background:radial-gradient(ellipse at 5% 5%,#e4e8d77a,transparent 33%),radial-gradient(ellipse at 100% 100%,#ecd1bf66,transparent 35%),repeating-linear-gradient(8deg,#fff9ee24 0 1px,#eddcbe14 1px 3px),#fbf2e2}
/* Flatten the artwork together before tilting, so the card never passes behind the door. */
.scene{transform-style:flat;perspective:1100px}
.door{position:absolute;inset:0;z-index:0}
.stocking-assembly{z-index:1;transform-style:flat}
#stocking3d{position:absolute;left:0;top:25%;width:100%;height:66%;pointer-events:none}
#stocking3d canvas{display:block;width:100%;height:100%}
.has-3d .stocking-assembly{display:none}
#stocking3d{top:29%;height:61%}

/* Clean white foundations; gold belongs to borders, numbers and tiny details. */
:root{--olive:#343d35;--gold:#a57b26}
body{background:radial-gradient(ellipse at 50% 20%,#fff,#eef0f1);color:var(--olive)}
.experience{background:#fff;box-shadow:0 18px 70px #24313d18}
.experience[hidden],.calendar[hidden]{display:none!important}
.veil{background:#ffffffaa}
.wish-card{background:radial-gradient(ellipse at 0 0,#e8ede84d,transparent 35%),repeating-linear-gradient(8deg,#f4f4f424 0 1px,#fff 1px 3px);border-color:#a47a28;outline-color:#b8954a;box-shadow:0 18px 65px #24313d26}
.wish-card:focus{outline-color:#b8954a}.corner{color:#a57b26}.rule{background:#a57b26}.replay{background:#ffffffea;border:1px solid #c7ae79}.flourish,.star{color:#a57b26}
.back-calendar{position:absolute;z-index:5;top:16px;left:16px;min-height:42px;border:1px solid #b8944e;border-radius:3px;padding:9px 13px;background:linear-gradient(145deg,#fffdf7,#f4ead6);box-shadow:1px 2px 0 #d8c291,3px 5px 10px #26372a1c;font:11px 'Christmas Iansui',system-ui;color:#454a40;letter-spacing:.02em}.back-calendar:before,.back-calendar:after{content:'✦';display:inline-block;color:#b2883d;font-size:9px;vertical-align:1px}.back-calendar:before{margin-right:7px}.back-calendar:after{margin-left:7px}.back-calendar:hover{translate:0 -1px;box-shadow:1px 3px 0 #d8c291,4px 7px 12px #26372a24}.back-calendar:active{translate:1px 1px;box-shadow:1px 1px 0 #d8c291}
.selected-date{position:absolute;z-index:4;top:19px;right:18px;margin:0;color:#89651e;font:10px 'Christmas Iansui',system-ui;letter-spacing:.12em}
.experience header{top:8%}.experience h1{font-size:36px}
.calendar{width:min(100%,980px);padding:28px 20px 18px}.calendar-heading{text-align:center}.calendar-heading h1{font-size:clamp(27px,4vw,43px);font-style:normal;line-height:1.2;margin:0 0 16px;color:#333c36}.calendar-heading .eyebrow{color:#8b691f;font-size:9px;letter-spacing:.19em}.countdown{display:flex;justify-content:center;align-items:center;gap:12px;color:#8c661e}.countdown strong{font-size:38px;line-height:1;font-weight:400}.countdown span{max-width:94px;text-align:left;font:9px/1.6 'Christmas Iansui',system-ui;letter-spacing:.14em}.calendar-intro{font:12px 'Christmas Iansui',system-ui;letter-spacing:.12em;color:#667168;margin:14px 0 22px}
.door-wall{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;padding:22px;border:1px solid #ae8a3c;background:linear-gradient(90deg,#e8d3a0 0,#f7edda 6px,#fff 7px, #fff calc(100% - 7px),#f7edda calc(100% - 6px),#e8d3a0 100%);box-shadow:0 3px 0 #d2ba86,0 14px 36px #36443b12}
.calendar-door{border:0;background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;perspective:600px;min-width:0;position:relative;isolation:isolate}
.door-face{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;aspect-ratio:.92;border:1px solid #ad8b42;background:linear-gradient(120deg,#fff,#fafbfb);box-shadow:inset 3px 0 0 #f0f0ed,inset -3px 0 0 #e2e4e1,0 3px 6px #26342b14;transform-origin:left center;transition:transform .6s cubic-bezier(.2,.65,.25,1),box-shadow .3s}
.door-face:before{content:'';position:absolute;inset:6px;border:1px solid #d9d9cf;pointer-events:none}.door-face:after{content:'';position:absolute;width:4px;height:8px;border-radius:3px;background:linear-gradient(90deg,#8b601a,#e0bf68,#9c762a);right:10px;top:55%}
.door-number{font-size:34px;line-height:1;color:#a27a2b;font-weight:400}.door-month{font:7px 'Christmas Iansui',system-ui;letter-spacing:.22em;margin-top:5px;color:#586253}.door-symbol{height:23px;width:40px;margin-top:9px;opacity:.9}.door-wait{font:9px/1.3 'Christmas Iansui',system-ui;color:#667068;margin-top:7px;white-space:nowrap}.calendar-door:hover .door-face{transform:rotateY(-9deg);box-shadow:6px 3px 8px #25322b18}.calendar-door.opening .door-face{transform:rotateY(-105deg)}.calendar-door.visited .door-wait{color:#92681c}.calendar-door.visited:after{content:'✧';position:absolute;top:8px;right:8px;color:#a57b26;font-size:11px}.calendar-door.today .door-face{border:2px solid #a27a2b;background:#fff}.preview-note{text-align:center;font:10px/1.5 'Christmas Iansui',system-ui;color:#788176;letter-spacing:.04em;margin:18px 0 0}
body.overview-mode{display:block}.overview-mode .calendar{margin:auto}
@media(max-width:599px){body.overview-mode{padding:0}.calendar{padding:23px 14px 16px}.calendar-heading h1{font-size:28px;max-width:310px;margin:0 auto 14px}.calendar-heading .eyebrow{font-size:7px}.calendar-intro{font-size:10px;margin:12px 0 17px}.countdown strong{font-size:32px}.door-wall{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px 8px;padding:12px}.door-number{font-size:27px}.door-face{aspect-ratio:.91}.door-symbol{height:16px;width:31px;margin-top:7px}.door-face:before{inset:4px}.door-face:after{right:8px;width:3px;height:6px}.door-wait{font-size:8px;margin-top:5px}.door-month{font-size:6px}.back-calendar{top:12px}.selected-date{top:22px}}
.calendar{position:relative;isolation:isolate}.calendar-heading,.door-wall,.preview-note{position:relative;z-index:1}.gold-dust{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible}.twinkle{animation:gold-twinkle 4s ease-in-out infinite;transform-box:fill-box;transform-origin:center}@keyframes gold-twinkle{0%,100%{opacity:.18;transform:scale(.7)}50%{opacity:.8;transform:scale(1.35)}}
@media(prefers-reduced-motion:reduce){.twinkle{animation:none}}
@media(max-width:599px){.door-wall{gap:8px}.door-face{aspect-ratio:1.05}.door-symbol{height:14px;margin-top:5px}}
@media(min-width:600px){.calendar{max-width:800px;padding-top:18px}.calendar-heading h1{font-size:36px}.door-wall{gap:12px;padding:18px}}

/* Axonometric cabinet with hinged, two-sided doors. */
.calendar{padding-bottom:40px}
.door-wall{--depth:42px;transform:rotateX(13deg) rotateY(-15deg);transform-style:preserve-3d;transform-origin:50% 50%;margin:36px 12px 44px;background:#fafafa;border:2px solid #b4924d;box-shadow:14px 20px 30px #25352d19}
.door-wall:before{content:'';position:absolute;left:-2px;right:-2px;top:-2px;height:var(--depth);transform-origin:top;transform:rotateX(-90deg);background:linear-gradient(#fff,#e1e3e2);border:1px solid #ae8a3c}
.door-wall:after{content:'';position:absolute;right:-2px;top:-2px;bottom:-2px;width:var(--depth);transform-origin:right;transform:rotateY(-90deg);background:linear-gradient(90deg,#d7dad9,#f7f8f7);border:1px solid #ae8a3c}
.calendar-door{perspective:none;transform-style:preserve-3d;display:block;text-align:center;padding-bottom:20px;isolation:auto;z-index:auto}
.door-cavity{position:absolute;inset:0 0 20px;background:linear-gradient(145deg,#c1c7c0,#f5f5f0);box-shadow:inset 3px 5px 10px #24362d35;border:1px solid #a18d61}
.door-cavity:after{content:'✧';position:absolute;inset:0;display:grid;place-items:center;color:#ae883c;font-size:26px}
.door-leaf{position:relative;display:block;transform-style:preserve-3d;transform-origin:0 50%;transform:translateZ(3px) rotateY(0deg);transition:transform .9s cubic-bezier(.22,.68,.15,1)}
.door-face{transform:translateZ(2px)!important;transform-origin:center;backface-visibility:hidden;box-shadow:inset 2px 0 0 #fff,inset -2px 0 0 #e8e9e6!important;padding-bottom:7px}
.door-face:after{width:5px;height:12px;right:9px;left:auto;top:calc(50% - 6px);bottom:auto;border:1px solid #9f7729;box-shadow:1px 2px 1px #71582426;background:linear-gradient(90deg,#e9d18d,#a57b26)}
.door-back{position:absolute;inset:0;border:1px solid #ad8b42;background:#f7f8f5;transform:rotateY(180deg) translateZ(2px);backface-visibility:hidden;box-shadow:inset 0 0 0 6px #fff,inset 0 0 0 7px #d8d6cb}
.door-edge{position:absolute;right:0;top:0;bottom:0;width:4px;background:#ae8a3c;transform:rotateY(90deg);transform-origin:right}
.door-hinges{position:absolute;left:-2px;top:0;bottom:20px;width:5px;transform:translateZ(5px);z-index:2;pointer-events:none}
.door-hinges:before,.door-hinges:after{content:'';position:absolute;width:4px;height:9px;border-radius:2px;background:linear-gradient(90deg,#8c6926,#e2c477,#9c772e);left:0}.door-hinges:before{top:20%}.door-hinges:after{bottom:20%}
.door-wait{display:block;position:absolute;bottom:0;width:100%;margin:0;transform:translateZ(1px)}
.calendar-door:hover,.calendar-door:focus-visible,.calendar-door.opening{z-index:10}
.calendar-door:hover .door-leaf,.calendar-door:focus-visible .door-leaf{transform:translateZ(3px) rotateY(-8deg)}
.calendar-door.opening .door-leaf{transform:translateZ(3px) rotateY(-100deg)}
.calendar-door.visited:after{transform:translateZ(6px);pointer-events:none}
@media(max-width:599px){.door-wall{--depth:25px;margin:28px 8px 32px;padding:10px;gap:9px 7px;transform:rotateX(10deg) rotateY(-12deg)}.calendar-door{padding-bottom:18px}.door-cavity,.door-hinges{bottom:18px}.door-face{aspect-ratio:1;padding-bottom:9px}.door-number{font-size:25px}.door-face:after{right:7px;width:4px;height:9px;top:calc(50% - 4px)}.door-symbol{height:12px;margin-top:4px}}
@media(prefers-reduced-motion:reduce){.calendar-door:hover .door-leaf,.calendar-door:focus-visible .door-leaf{transform:translateZ(3px)}}

/* Watercolor castle: live shutters are registered to the painted arches. */
.calendar{max-width:900px;padding:22px 12px 18px}.calendar-heading h1{font-style:italic;font-size:clamp(28px,4vw,42px);margin-bottom:10px}.calendar-heading .eyebrow{font-size:8px}.calendar-intro{margin:12px 0 0;font-size:10px}.countdown{gap:8px}.countdown.before-start span{max-width:none;text-align:center;font:12px/1.6 'Christmas Iansui',system-ui;letter-spacing:.06em}.countdown strong[hidden]{display:none}.countdown strong{font-size:29px}
.castle-stage{position:relative;width:100%;max-width:560px;aspect-ratio:2/3;margin:6px auto 0;container-type:inline-size;isolation:isolate}
.castle-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.castle-stage .door-wall{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;display:block;transform:none;background:none;box-shadow:none;perspective:1000px;transform-style:preserve-3d}
.castle-stage .door-wall:before,.castle-stage .door-wall:after{display:none}
.castle-stage .calendar-door{position:absolute;left:var(--window-x);top:var(--window-y);width:max(44px,12cqw);height:var(--window-height);padding:0;transform:translateX(-50%);transform-style:preserve-3d;overflow:visible}
.castle-stage .door-cavity{left:50%;right:auto;top:0;bottom:0;width:var(--opening-width);transform:translateX(-50%);border-radius:50% 50% 0 0 / 28% 28% 0 0;border:0;background:radial-gradient(ellipse at 50% 65%,#fff7da,#dfd6bb 55%,#8d897d);box-shadow:inset 0 4px 10px #5d594345}
.castle-stage .door-cavity:after{font-size:18px;color:#a47a22}
.castle-stage .door-leaf{position:relative;left:calc((100% - var(--opening-width))/2);width:var(--opening-width);height:100%;transform:translateZ(1px);transform-origin:left center}
.castle-stage .door-face{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border-radius:50% 50% 0 0 / 28% 28% 0 0;border:1px solid #d6bc84;background:repeating-linear-gradient(0deg,#f7f6ef 0px,#f7f6ef 3px,#e9e5d92e 3px,#e9e5d92e 4px);padding:0 0 15%;justify-content:center;box-shadow:inset 2px 0 4px #fff,inset -2px 0 2px #c4b69055!important}
.castle-stage .door-face,.castle-stage .door-back{box-sizing:border-box}
.castle-stage .door-face:before{inset:4px;border:1px solid #d8ccb0;border-radius:50% 50% 0 0 / 28% 28% 0 0}
.castle-stage .door-face:after{right:3px;width:3px;height:6px;top:61%;border:0}
.castle-stage .door-number{font-size:clamp(17px,4.1cqw,29px);line-height:1;color:#967020;transform:translateY(4px);font-weight:400}
.castle-stage .door-back{border-radius:50% 50% 0 0 / 28% 28% 0 0;background:#f7f6f0;border-color:#c6ab73;box-shadow:inset 0 0 0 3px #fdfcf8}
.castle-stage .door-edge{width:2px;top:27%}.castle-stage .door-hinges{display:none}
.castle-stage .door-wait{bottom:8%;left:50%;width:max-content;max-width:100%;transform:translateX(-50%) translateZ(4px);font-size:clamp(7px,1.7cqw,10px);color:#756b53;pointer-events:none;padding:1px 2px;background:#fffefaaf;border-radius:2px;transition:opacity .3s}
.castle-stage .calendar-door.opening .door-wait{opacity:0}
.castle-stage .calendar-door:hover .door-leaf,.castle-stage .calendar-door:focus-visible .door-leaf{transform:translateZ(1px) rotateY(-8deg)}
.castle-stage .calendar-door.opening .door-leaf{transform:translateZ(1px) rotateY(-100deg)}
.castle-stage .calendar-door.visited:after{right:19%;top:35%;font-size:8px;transform:translateZ(5px);color:#9d7628}
.castle-stage .calendar-door.today .door-face{border:2px solid #aa7f25}.castle-stage .calendar-door:focus-visible{outline:2px solid #85641e;outline-offset:2px;border-radius:18px}
.preview-note{margin:6px 0 0;font-size:10px}.calendar>.gold-dust{display:none}
.mission{margin:21px 0 0;padding:16px 12px 0;border-top:1px solid #c5a56b55}.mission-label{font:10px 'Christmas Iansui',system-ui;letter-spacing:.14em;color:#957126;margin:0 0 9px}#missionText{font:14px/1.8 'Christmas Iansui',system-ui;margin:0;color:#414c42}.mission-note{font:10px/1.5 'Christmas Iansui',system-ui;color:#7e867d;margin:9px 0 0}.wish-card .rule{margin:18px auto 12px}.wish-card{padding:32px 24px 25px}.reader{overflow-y:auto}.wish-card h2{font-size:clamp(24px,6vw,28px);line-height:1.6}.wish-card .star{margin:12px auto}.wish-card .translation{margin:14px 0}
@media(min-width:600px){.castle-stage{width:min(100%,calc((100svh - 190px)*.6667));min-width:440px;max-width:650px}.calendar{padding-top:10px}.calendar-heading h1{font-size:35px}}
@media(max-width:599px){.calendar{padding:20px 4px 14px}.calendar-heading{padding:0 12px}.calendar-heading h1{max-width:340px;font-size:29px}.castle-stage{margin-top:8px}.calendar-intro{font-size:9px}.preview-note{padding:0 12px}.wish-card{padding:27px 20px 22px}}
@media(max-height:650px){.reader{justify-content:flex-start;padding-top:60px;padding-bottom:20px}.wish-card{flex-shrink:0}.mission{margin-top:14px;padding-top:12px}}
@media(prefers-reduced-motion:reduce){.castle-stage .calendar-door:hover .door-leaf,.castle-stage .calendar-door:focus-visible .door-leaf{transform:translateZ(1px)}}
/* Opaque paper keeps the blessing and mission clear over the illustrated room. */
.wish-card{background:radial-gradient(ellipse at 3% 2%,#edf0e74d,transparent 32%),radial-gradient(ellipse at 100% 100%,#f4e7d333,transparent 30%),#fff}
.wish-card h2{text-wrap:balance}.mission p{text-wrap:pretty}

/* Transparent glass keeps the little room visible before the window opens. */
body.overview-mode{background:#101f36;color:#f5f5ef}
.overview-mode .calendar-heading h1{color:#fafafa;text-shadow:none}
.overview-mode .calendar-heading .eyebrow,.overview-mode .countdown{color:#e2bf77}
.overview-mode .calendar-intro,.overview-mode .preview-note{color:#bac8d9}
.castle-art{border-radius:8px}
.castle-stage .door-cavity{overflow:hidden;background:#fff;box-shadow:0 0 10px #f8cf7366}
.castle-stage .door-cavity:after{content:'';box-shadow:inset 0 0 6px #aa7e3566;pointer-events:none}
.mini-room{position:absolute;inset:0;background:url('assets/white-gold-room.webp') center/100% 100%}
.mini-stocking{position:absolute;left:0;top:29%;width:100%;height:61%}
.castle-stage .door-face,.castle-stage .door-back{background:linear-gradient(115deg,#dcefff55,transparent 45%,#ffffff55 47%,#dcefff22 65%);border:1px solid #c39a4d;box-shadow:inset 0 0 0 1px #ffedbc88!important}
.castle-stage .door-face:before{inset:0;border:0;border-radius:inherit;background:linear-gradient(90deg,transparent 48%,#c5a35c 48%,#c5a35c 52%,transparent 52%),linear-gradient(0deg,transparent 57%,#c5a35c 57%,#c5a35c 59%,transparent 59%)}
.castle-stage .door-number{position:relative;align-self:center;background:#fffef8;border:1px solid #bc9349;border-radius:2px;padding:3px 2px;min-width:72%;font-size:clamp(15px,3.7cqw,25px);box-shadow:0 1px 3px #442c1929;transform:translateY(5px);color:#8c641d}
.castle-stage .door-number:before{content:'';position:absolute;width:1px;height:9px;background:#b28a42;bottom:100%;left:50%}
.castle-stage .door-leaf{transition-duration:2.4s}
.castle-stage .calendar-door.today .door-face{background:linear-gradient(115deg,#fff5d655,transparent)}
.room-journey{position:fixed;inset:0;z-index:100;overflow:hidden;background:#101f36;pointer-events:none}
.entering-room{overflow:hidden}
.entering-room .experience{position:fixed;left:50%;top:50%;translate:-50% -50%}
@media(prefers-reduced-motion:reduce){.castle-stage .door-leaf{transition:none}}

/* The illustration fades into the night instead of sitting in a rounded card. */
.castle-art{border-radius:0;mask-image:linear-gradient(to bottom,transparent,#000 4%,#000 94%,transparent),linear-gradient(to right,transparent,#000 3%,#000 97%,transparent);mask-composite:intersect}
.mini-room{background-image:linear-gradient(#fff9e522,#fff9e522),url('assets/white-gold-room.webp')}
.mini-ornament,.ornament-art{background-image:url('assets/christmas-ornaments.webp');background-repeat:no-repeat;background-size:400% 600%;background-position:var(--sprite-x) var(--sprite-y)}
.mini-ornament{position:absolute;left:-4%;top:26%;width:108%;aspect-ratio:1;transform:scale(var(--item-scale));transform-origin:50% 80%;filter:drop-shadow(0 2px 2px #73512420)}
.mini-ornament.hanging{top:18%}
.mini-ornament.hanging:before{content:'';position:absolute;left:50%;width:1px;height:30%;bottom:93%;background:#b79551}
.castle-stage .door-face{justify-content:flex-start;align-items:flex-end;padding:0}
.castle-stage .door-number{align-self:flex-end;min-width:0;position:absolute;right:-8%;top:5%;font-size:clamp(11px,2.8cqw,18px);padding:2px;transform:none;border-radius:50%;width:1.65em;height:1.65em;display:grid;place-items:center}
.castle-stage .door-number:before{display:none}
.castle-stage .door-wait{bottom:1%;font-size:clamp(7px,1.7cqw,10px)}
.room-ornament{position:absolute;left:6%;top:38%;width:88%;aspect-ratio:1;perspective:1000px}
.room-ornament[hidden]{display:none}
.ornament-art{position:absolute;inset:0;filter:drop-shadow(0 10px 10px #80624314)}
.ornament-mode #stocking3d,.ornament-mode .stocking-assembly{display:none}
.ornament-mode .stocking-target{left:12%;top:39%;width:76%;height:43%}
.ornament-card{position:absolute;left:35%;top:20%;width:30%;height:39%;background:#fffdf8;border:1px solid #b28b43;border-radius:5px;box-shadow:0 3px 10px #382a2222;display:grid;place-content:center;text-align:center;color:#a47a28;font-size:19px;opacity:0}
.ornament-card i{font-size:14px}
.wish-card h2{font-family:'Christmas Iansui',Georgia,serif;letter-spacing:0;line-height:1.4;font-size:27px}
.countdown.before-start span{font-size:11px}
/* Blend the watercolor paper tint with the room's own white paper. */
.ornament-art,.mini-ornament{mix-blend-mode:multiply;mask-image:linear-gradient(to bottom,transparent,#000 3%,#000 97%,transparent),linear-gradient(to right,transparent,#000 3%,#000 97%,transparent);mask-composite:intersect}

/* The preview and full room use exactly the same setting from the atlas. */
.room-setting{position:absolute;inset:0;background-image:url('assets/christmas-settings.webp');background-size:400% 600%;background-position:var(--setting-x) var(--setting-y);background-repeat:no-repeat}
.mini-room{background:none}
.room-ornament{left:calc((100% - var(--room-width))/2);top:auto;bottom:var(--room-bottom);width:var(--room-width);aspect-ratio:1}
.mini-ornament,.mini-ornament.hanging{left:calc((100% - var(--room-width))/2);top:auto;bottom:var(--room-bottom);width:var(--room-width);transform:none}
.room-ornament.is-hanging:before{content:'';position:absolute;left:50%;bottom:94%;width:1px;height:60%;background:linear-gradient(transparent,#b79551);pointer-events:none}
.ornament-mode .stocking-target{left:calc((100% - var(--room-width))/2);top:auto;bottom:var(--room-bottom);width:var(--room-width);height:auto;aspect-ratio:1}
/* Quiet paper behind captions keeps them legible over detailed room scenery. */
.experience footer{padding:12px 4px;background:linear-gradient(transparent,#ffffffd9 45%,#ffffffd9 65%,transparent);bottom:2%}
.experience header h1{text-shadow:0 1px 12px #ffffffe0}

/* Day one: dress a friend in an open watercolor snowfield. */
.snowman-game[hidden]{display:none}
.snowman-mode .room-setting,.mini-room[data-setting='0'] .room-setting{background-image:url('assets/snowman-snowland.webp');background-size:100% 100%;background-position:center}
.snowman-mode #roomOrnament,.snowman-mode #stocking3d,.snowman-mode #openWish,.snowman-mode #invitation,.mini-room[data-setting='0'] .mini-ornament{display:none}
.snowman-mode header{top:9%}.snowman-mode header h1{font-size:32px}.snowman-mode header .flourish{display:none}
.snowman-game{position:absolute;inset:0}
.snowman-drop{position:absolute;left:22%;top:28%;width:56%;height:43%;border-radius:48%;transition:filter .25s}
.snowman-drop.drop-ready{filter:drop-shadow(0 0 8px #d5a544)}
.worn{position:absolute;pointer-events:none}
.worn.coat{left:7%;width:86%;top:42%;height:57%}
.worn.scarf{left:14%;width:74%;top:28%;height:35%;z-index:2}
.worn.hat{left:20%;width:60%;top:-2%;height:38%;z-index:3}
.worn svg{width:100%;height:100%;overflow:visible}
.clothing-choice svg,.clothing-ghost svg{width:100%;height:100%}
.worn svg g,.clothing-choice svg g,.clothing-ghost svg g{fill:var(--cloth);stroke:#755b504d;stroke-width:1.4;stroke-linejoin:round;filter:drop-shadow(0 2px 1px #6e554322)}
svg .trim{fill:var(--trim);stroke:#b2a58c45}svg .button{fill:#cba550;stroke:#8e6e31}svg .stitch{fill:none;stroke:#fff9e760;stroke-width:2;stroke-linecap:round}svg .fringe{fill:none;stroke:var(--cloth);stroke-width:3}
.wardrobe{position:absolute;left:4%;right:4%;bottom:2%;padding:12px 9px 8px;background:#fffffff0;border:1px solid #d9d4c9;border-radius:18px;box-shadow:0 5px 24px #526b8012;text-align:center;color:#354852}
.dress-instruction{font:italic 18px 'Christmas Iansui',Georgia;margin:0 0 4px}.dress-progress{font:11px/1.4 'Christmas Iansui',system-ui;margin:0 0 9px;min-height:31px}
.wardrobe-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
.clothing-choice{touch-action:none;border:1px solid transparent;background:#f4f5f1;border-radius:9px;padding:4px 2px;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;user-select:none}
.clothing-choice svg{height:42px}.clothing-choice span{font:8px/1.3 'Christmas Iansui',system-ui;color:#425450;display:block}.clothing-choice[aria-pressed='true']{border-color:#af8a41;background:#fcf3de}
.wardrobe-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:4px;font:9px 'Christmas Iansui',system-ui;color:#687b85;text-align:left}.dress-reset{border:0;background:none;padding:10px 4px;min-height:44px;white-space:nowrap;font:10px 'Christmas Iansui',system-ui;text-decoration:underline;text-underline-offset:3px}
.clothing-ghost{position:fixed;z-index:300;width:100px;height:100px;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 6px 6px #34445333)}
.santa-envelope{position:absolute;left:62%;top:58%;width:86px;height:57px;background:linear-gradient(145deg,#fffdf5,#f1e5cc);border:1px solid #bf9c55;border-radius:3px;box-shadow:0 4px 14px #5d6e7d33;transform:rotate(-8deg);animation:letter-arrives .7s ease-out}
.santa-envelope:before{content:'';position:absolute;inset:0;background:#fff9ec;clip-path:polygon(0 0,100% 0,50% 60%);border-top:1px solid #ccb77f}.envelope-seal{position:relative;display:inline-grid;place-items:center;background:#a74147;color:#f9dfac;border-radius:50%;width:22px;height:22px;font:italic 15px 'Christmas Iansui',Georgia}.santa-envelope small{position:absolute;left:-14px;right:-14px;top:65px;font:italic 12px 'Christmas Iansui',Georgia;color:#45565c;background:#ffffffbf;border-radius:8px;padding:3px}.santa-envelope[hidden]{display:none}
.snowfall{position:absolute;inset:0;overflow:hidden;pointer-events:none}.snowfall i{position:absolute;left:var(--x);top:-10px;width:var(--size);height:var(--size);background:#fff;border-radius:50%;opacity:.8;box-shadow:0 0 3px #fff;animation:snow-drift var(--duration) var(--delay) linear infinite}
.snowman-game[hidden] .snowfall i{animation-play-state:paused}
@keyframes snow-drift{to{transform:translate(var(--drift),100vh)}}
@keyframes snowy-wiggle{25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}
.snowman-drop.celebrate{animation:snowy-wiggle .65s ease-in-out}
@keyframes letter-arrives{from{opacity:0;transform:translateY(18px) rotate(-16deg)}to{opacity:1;transform:translateY(0) rotate(-8deg)}}
.snowman-mode .translation{font-style:normal;font-size:16px;line-height:1.7;color:#42515a;opacity:1}
@media(max-height:720px){.wardrobe{bottom:1%;padding-top:7px}.dress-instruction{font-size:16px}.dress-progress{margin-bottom:4px;min-height:15px;font-size:10px}.clothing-choice{min-height:62px}.clothing-choice svg{height:32px}.snowman-mode header h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){.snowfall i,.snowman-drop.celebrate,.santa-envelope{animation:none}.snowfall i{top:calc(var(--size)*45)}}
.worn.hat{top:-12%}.worn.scarf{top:43%}
.worn svg g,.clothing-choice svg g,.clothing-ghost svg g{filter:url(#watercolor-cloth)}
.snowman-game{isolation:isolate}
@media(max-width:359px){.wardrobe-choices{gap:2px}.clothing-choice span{font-size:7px}}

/* Soft painted clothes fitted to the snowman's head and round body. */
.watercolor-garment{display:block;width:100%;height:100%;background:url('assets/snowman-clothes-watercolor.webp') var(--garment-x) var(--garment-y)/200% 300% no-repeat}
.clothing-choice .watercolor-garment{height:42px;flex-shrink:0}
.worn.hat{left:19.6%;top:-16.3%;width:60.7%;height:34.9%}
.worn.scarf{left:19.6%;top:44.2%;width:60.7%;height:27.9%}
.worn.coat{left:8.9%;top:44.2%;width:82.2%;height:58.1%}
@media(max-height:720px){.clothing-choice .watercolor-garment{height:32px}}
.worn.hat{top:-11.2%}

/* Interleaved anatomy: scarf back → head/neck → scarf front; arms above sleeves. */
.snowman-head-occlusion{position:absolute;inset:0;pointer-events:none;background:url('assets/snowman-snowland.webp') center/100% 100%;clip-path:ellipse(13.8% 8.45% at 49.6% 41.1%);display:none}
.wearing-scarf .snowman-head-occlusion,.wearing-coat .snowman-head-occlusion{display:block}
.scarf-front-anchor{position:absolute;left:22%;top:28%;width:56%;height:43%;pointer-events:none}
.scarf-front{clip-path:polygon(0 30%,100% 30%,100% 100%,0 100%)}
.snowman-sleeve-arms{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;display:none;filter:url(#watercolor-cloth)}
.wearing-coat .snowman-sleeve-arms{display:block}
.worn.coat{left:6%;top:40%;width:88%;height:63%;filter:drop-shadow(0 2px 2px #6d718226)}
.worn.scarf{left:18%;top:42%;width:64%;height:30%}
.worn.hat{filter:drop-shadow(0 2px 1px #51667830)}
/* Avoid moving clothing independently of the painted body. */
.snowman-drop.celebrate{animation:none}

/* Palm-held opening: a real Z-up model, independently rotatable through 360°. */
body.intro-mode{overflow:hidden}
.castle-intro{position:fixed;inset:0;z-index:30;background:radial-gradient(ellipse at 50% 45%,#243a55,#101f36 70%);color:#f9f8ef;display:flex;flex-direction:column;align-items:center;overflow:auto;padding:35px 18px 24px}
.castle-intro[hidden]{display:none}
.intro-copy{text-align:center;flex-shrink:0}.intro-copy .eyebrow{color:#dfbd7c}.intro-copy h1{font-size:clamp(31px,5vw,44px);text-shadow:none}.intro-copy>p:last-child{font:12px/1.5 'Christmas Iansui',system-ui;color:#c1cbd6;margin:12px 0 0}
.held-castle{position:relative;width:min(100%,540px);flex:1;min-height:310px;max-height:640px}
.castle-hand{position:absolute;left:-12%;width:124%;height:auto;bottom:-3%;pointer-events:none}
.castle-turntable{position:absolute;left:0;top:0;width:100%;height:85%;touch-action:pan-y;cursor:grab;outline-offset:-14px}
.castle-turntable.dragging{cursor:grabbing}.castle-turntable canvas{display:block;width:100%;height:100%}.intro-fallback{height:100%;width:100%;object-fit:contain;mask-image:linear-gradient(transparent,#000 8%,#000 92%,transparent)}.has-model .intro-fallback{display:none}
.intro-actions{text-align:center;position:relative;z-index:1;flex-shrink:0}#turntableHint{font:11px 'Christmas Iansui',system-ui;color:#d1d7de;margin:0 0 2px}.turntable-buttons{display:flex;align-items:center;justify-content:center;gap:14px;font:10px 'Christmas Iansui',system-ui;color:#b8c5d3}.turntable-buttons[hidden]{display:none}.turntable-buttons button{width:44px;height:44px;border:0;background:none;color:#e5c58a;font-size:23px}.explore-castle{border:1px solid #d8b875;background:#f9f5e9;color:#354452;border-radius:30px;padding:14px 26px;font:13px 'Christmas Iansui',system-ui;min-height:48px;margin-top:8px}.explore-castle span{padding-left:14px}.hold-castle{border:0;background:none;font:10px 'Christmas Iansui',system-ui;color:#d7bd89;text-decoration:underline;text-underline-offset:4px;padding:10px 12px;min-height:44px;margin-top:3px}
@media(max-height:720px){.castle-intro{padding-top:20px;padding-bottom:12px}.held-castle{min-height:260px}.intro-copy h1{font-size:29px}.intro-copy>p:last-child{margin-top:8px}.castle-hand{bottom:-9%}.intro-actions .explore-castle{margin-top:0}}
.castle-turntable{top:13%;height:85%}
/* The neck fills the scarf opening; only its front folds cross the neck. */
.snowman-head-occlusion{clip-path:polygon(49.6% 32.5%,56% 33.5%,61% 36%,63.5% 40%,62.5% 44.5%,60.5% 47%,63% 51%,37% 51%,39% 47%,36% 44.5%,35.8% 40%,38% 36%,43% 33.5%)}
.scarf-front{clip-path:polygon(0 39%,100% 39%,100% 100%,0 100%)}
/* A smaller supporting hand, with the painted castle as the focus. */
.castle-hand{left:5%;width:95%;bottom:3%}
.castle-turntable{top:0;height:94%}
.castle-turntable canvas{opacity:0}.castle-turntable.has-model canvas{opacity:1}
@media(max-height:720px){.castle-hand{bottom:0}}
.snowman-drop{isolation:isolate}
.snowman-head-occlusion{clip-path:polygon(38% 44%,61% 44%,61% 47%,63% 51%,37% 51%,39% 47%)}
.held-castle:after{content:'';position:absolute;left:25%;width:52%;height:5%;bottom:24%;border-radius:50%;background:radial-gradient(ellipse,#66594b45,transparent 70%);filter:blur(3px);pointer-events:none}
.castle-turntable{z-index:1}
.snowman-head-occlusion{clip-path:polygon(38% 44%,61% 44%,61% 47%,60.5% 49.3%,39% 49.3%,39% 47%)}
.scarf-front{clip-path:polygon(0 24%,100% 24%,100% 100%,0 100%)}
.snowman-head-occlusion{clip-path:ellipse(13.8% 8.45% at 49.6% 41.1%);mask-image:linear-gradient(transparent 44%,#000 44%)}
/* One persistent dollhouse: the turntable canvas becomes the calendar facade. */
.castle-stage.live-dollhouse>.castle-art{visibility:hidden}
.castle-stage.live-dollhouse .door-wall{z-index:2}
.entering-dollhouse .castle-intro{background:transparent}
.entering-dollhouse .intro-copy,.entering-dollhouse .intro-actions,.entering-dollhouse .calendar-heading,.entering-dollhouse .preview-note,.entering-dollhouse .door-wall{visibility:hidden}
.entering-dollhouse .held-castle:after{display:none}
.snowman-mode .room-setting,.mini-room[data-setting='0'] .room-setting{background-image:url('assets/snowman-snowland-armature.webp')}
.twig-arms{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.twig-arm{transform-box:view-box}.left-arm{transform-origin:31.25% 54.04%}.right-arm{transform-origin:69.14% 53.71%}
.twig-bark,.twig-light{fill:none;stroke-linecap:round;stroke-linejoin:round}.twig-bark{stroke:#927c5b;stroke-width:13}.twig-light{stroke:#b8a17c;stroke-width:5;opacity:.8}
.twig-arms{filter:url(#watercolor-cloth)}
.snowman-game[data-dressing] .coat{transform-origin:26% 23%}
.clothing-choice:disabled{cursor:wait;opacity:.65}

.gingerbread-view{position:relative;width:100%;height:100dvh;min-height:100svh;background:#fffdf9}.gingerbread-view[hidden]{display:none}.gingerbread-view iframe{display:block;width:100%;height:100%;border:0}body.gingerbread-active{display:block;padding:0;overflow:hidden}
.entering-room .gingerbread-view{position:fixed;inset:0}
.calendar-door[data-day="6"] .room-setting{background:radial-gradient(ellipse 75% 28% at 50% 80%,#e5cba6 98%,transparent),linear-gradient(#edf0e5,#f8f3e9)}
.calendar-door[data-day="6"] .mini-ornament{background:url('assets/festive-cookies-watercolor.png') left center/300% 100% no-repeat;mix-blend-mode:normal;mask-image:none;left:12%;bottom:19%;width:76%;aspect-ratio:1}
.cocoa-mode #roomOrnament,.cocoa-mode #openWish,.cocoa-mode #invitation{display:none}.cocoa-game[hidden]{display:none}.cocoa-game{position:absolute;inset:28% 0 2%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.cocoa-cup{position:relative;width:min(88%,340px);flex-shrink:1;min-height:0;aspect-ratio:320/290}.cocoa-cup svg{display:block;width:100%;height:100%;filter:drop-shadow(0 8px 6px #76533318)}.cocoa-stir-pad{position:absolute;left:17%;top:19%;width:63%;height:28%;border-radius:50%;touch-action:none}.cocoa-controls{width:90%;padding:12px 14px;background:#fffaf2eb;border:1px solid #d8c8aa;border-radius:20px;text-align:center;flex-shrink:0}.cocoa-instruction{font:12px/1.5 'Christmas Iansui',system-ui;margin:0 0 10px;color:#495448;min-height:36px}.cocoa-actions{display:flex;gap:8px}.cocoa-controls button{font:12px 'Christmas Iansui',system-ui;min-height:44px;border:1px solid #c6ae7c;border-radius:22px;padding:9px 12px;background:#fff8e9}.cocoa-actions button{flex:1}.cocoa-controls button:disabled{opacity:.45;cursor:default}.cocoa-controls .reset-cocoa{border:0;background:none;font-size:11px;text-decoration:underline;min-height:36px}.cocoa-wish{width:100%;margin-top:8px;background:#e6eddf!important}.cocoa-wish[hidden]{display:none}.stirring .cocoa-spoon,.hand-stirring .cocoa-spoon,.stirring .cocoa-swirl,.hand-stirring .cocoa-swirl{opacity:.8}.stirring .cocoa-spoon{transform-origin:154px 97px;animation:cocoa-stir .85s ease-in-out}.cocoa-mallow{animation:cocoa-drop .45s ease-out}.cocoa-mode .reader{z-index:10}.cocoa-mode .veil{z-index:9}.cocoa-mode #heading h1{font-size:clamp(29px,8vw,40px)}@keyframes cocoa-stir{to{transform:rotate(360deg)}}@keyframes cocoa-drop{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.cocoa-mallow,.stirring .cocoa-spoon{animation:none}}@media(max-height:650px){.cocoa-game{inset:25% 0 1%;gap:0}.cocoa-cup{width:52%}.cocoa-controls{padding:8px}.cocoa-instruction{min-height:0;margin-bottom:5px}.cocoa-mode #heading{top:10%}}
.cocoa-steam{position:absolute;left:28%;top:9%;width:45%;height:25%;pointer-events:none;z-index:3}.cocoa-steam i{position:absolute;bottom:0;width:16%;height:85%;border-radius:50%;background:linear-gradient(90deg,transparent,#fffaf0b3,transparent);filter:blur(4px);opacity:0;animation:cocoa-steam-rise 4.8s ease-out infinite}.cocoa-steam i:nth-child(1){left:5%}.cocoa-steam i:nth-child(2){left:43%;animation-delay:-1.6s;height:100%}.cocoa-steam i:nth-child(3){left:78%;animation-delay:-3.2s}@keyframes cocoa-steam-rise{0%{opacity:0;transform:translate(0,14px) scaleX(.7)}30%{opacity:.5}100%{opacity:0;transform:translate(10px,-35px) scaleX(1.5)}}@media(prefers-reduced-motion:reduce){.cocoa-steam i{animation:none;opacity:.16;transform:translateY(-5px)}}
.cocoa-cup{aspect-ratio:1}.cocoa-painted-cup{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 5px #694f3020)}.cocoa-cup>svg{position:relative;z-index:2;filter:none}.cocoa-stir-pad{left:26%;top:25%;width:52%;height:20%;z-index:4}.cocoa-steam{left:31%;top:12%;width:40%;height:23%}.cocoa-mode #heading h1{font-size:clamp(27px,7.6vw,37px)}

.cocoa-stir-pad{left:28%;top:21%;width:49%;height:16%}.cocoa-steam{left:36%;top:7%;width:34%;height:21%}
/* The cup has its own anchor; changing instructions/buttons cannot reflow it. */
.cocoa-game{display:block}.cocoa-cup{position:absolute;top:0;left:50%;transform:translateX(-50%);width:min(88%,340px,max(140px,calc(100svh - 450px)));height:auto;aspect-ratio:1}.cocoa-controls{position:absolute;bottom:0;left:50%;transform:translateX(-50%)}
/* Stir the submerged end around a small oval without tipping the handle down. */
@keyframes cocoa-stir{0%,100%{transform:translate(12px,0)}25%{transform:translate(0,4px)}50%{transform:translate(-12px,0)}75%{transform:translate(0,-4px)}}
.cocoa-spoon{opacity:1}.stirring .cocoa-spoon,.hand-stirring .cocoa-spoon{opacity:1}@keyframes cocoa-stir{0%,100%{transform:translate(0,0)}25%{transform:translate(4px,2px)}50%{transform:translate(0,4px)}75%{transform:translate(-4px,2px)}}
/* The painted pedestal ends at 81.25% of the square PNG: register it to the
   existing room's tabletop, instead of letting controls determine its height. */
.cocoa-game{inset:0;pointer-events:none;--cup-size:min(88vw,340px,max(140px,calc(100svh - 450px)))}.cocoa-cup{width:var(--cup-size);top:calc(78% - var(--cup-size)*.8125);pointer-events:none}.cocoa-controls{bottom:2%;pointer-events:auto}.cocoa-stir-pad{pointer-events:auto}.cocoa-contact-shadow{position:absolute;left:34%;top:79.8%;width:38%;height:3%;border-radius:50%;background:#806c4f45;filter:blur(2px);z-index:0}.cocoa-painted-cup{z-index:1}.cocoa-game[data-ready='true'] .cocoa-actions{display:none}.cocoa-wish{margin-top:0}.cocoa-instruction{height:36px;min-height:36px}.cocoa-mode .room-setting{transform-origin:50% 78%;transform:perspective(1000px) translate(var(--cocoa-view-x,0px),var(--cocoa-view-y,0px)) rotateY(var(--cocoa-view-tilt,0deg)) scale(1.025);transition:transform .5s ease-out}.cocoa-mode .perspective:after{content:'';position:absolute;inset:0;box-shadow:inset 10px 0 25px #7d68501a,inset -10px 0 25px #7d685017;pointer-events:none}@media(prefers-reduced-motion:reduce){.cocoa-mode .room-setting{transform:none;transition:none}}@media(max-height:650px){.cocoa-cup{top:calc(72% - var(--cup-size)*.8125)}.cocoa-controls{bottom:1%}.cocoa-instruction{height:auto;min-height:36px}}
@media(max-height:650px){.cocoa-cup{top:calc(78% - var(--cup-size)*.8125)}.cocoa-controls{padding:6px 10px}.cocoa-instruction{min-height:30px;height:30px;font-size:11px;line-height:1.35;margin-bottom:5px}.cocoa-controls .reset-cocoa{min-height:28px}}
/* Fixed interior/frame above a separate outdoor plane, visible only through glass. */
.cocoa-outside-view{display:none}.cocoa-mode .cocoa-outside-view{display:block;position:absolute;inset:0;background:#dbe8ec;transform:translate(var(--cocoa-view-x,0px),var(--cocoa-view-y,0px)) scale(1.03);transition:transform .5s ease-out}.cocoa-mode .room-setting{transform:none;transition:none;mask-image:url('assets/cocoa-window-layers.svg');mask-size:100% 100%;mask-mode:luminance;mask-repeat:no-repeat}@media(prefers-reduced-motion:reduce){.cocoa-mode .cocoa-outside-view{transform:none;transition:none}}
/* Reuse the original watercolor outside view; the pane mask hides all interior
   content on this rear plane, preserving the illustration's exact resting look. */
.cocoa-mode .cocoa-outside-view{background-image:url('assets/christmas-settings.webp');background-size:400% 600%;background-position:var(--setting-x) var(--setting-y);background-repeat:no-repeat;transform:translate(var(--cocoa-view-x,0px),var(--cocoa-view-y,0px))}@media(prefers-reduced-motion:reduce){.cocoa-mode .cocoa-outside-view{transform:none}}
.mini-cocoa{position:absolute;left:50%;top:78%;width:85%;aspect-ratio:1;transform:translate(-50%,-81.25%);pointer-events:none}.mini-cocoa>svg{position:relative;z-index:2;width:100%;height:100%;display:block}.mini-cocoa .cocoa-painted-cup{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.mini-cocoa .cocoa-mallow{animation:none}.mini-cocoa .cocoa-spoon{opacity:1}

/* Centre the porcelain body, allowing for the handle on the left. */
.cocoa-cup{transform:translateX(-56.5%)}
.mini-cocoa{transform:translate(-56.5%,-81.25%)}
.cocoa-contact-shadow{left:36.5%;top:80%;width:40%;height:4%;background:radial-gradient(ellipse,#705a3f40 0%,#705a3f20 42%,transparent 72%);filter:blur(2px)}
/* The rear plane contains scenery only: never a second moving window frame. */
.cocoa-mode .cocoa-outside-view,.calendar-door[data-day='2'] .mini-room{background-image:url('assets/cocoa-outdoor-watercolor.webp');background-size:80% 60%;background-position:50% 50%;background-repeat:no-repeat;background-color:#dbe8ec}
.calendar-door[data-day='2'] .room-setting{mask-image:url('assets/cocoa-window-layers.svg');mask-size:100% 100%;mask-mode:luminance;mask-repeat:no-repeat}

/* Button and finger stirring share the same perspective-correct surface ellipse. */
.stirring .cocoa-spoon{animation:none}
.cocoa-swirl{stroke-width:1.2;stroke:#e6bd94;pointer-events:none}
.stirring .cocoa-swirl,.hand-stirring .cocoa-swirl{opacity:.45}
/* Day 3: a painted night inside the snow globe, viewed from the pillows. */
.snowglobe-mode .room-setting,.calendar-door[data-day='3'] .room-setting{background:url('assets/snowglobe-night-watercolor.webp') center/100% 100%}
.snowglobe-mode #heading,.snowglobe-mode #invitation{color:#fff8e9}
.snowglobe-mode #heading h1{text-shadow:0 2px 14px #101c35}
.snowglobe-mode #invitation{background:linear-gradient(transparent,#102039b8)}
.snowglobe-mode .selected-date{color:#f3dca5}
.snowglobe-mode .ornament-art,.calendar-door[data-day='3'] .mini-ornament{mix-blend-mode:normal;clip-path:ellipse(42% 49% at 50% 50%)}
.snowglobe-game{position:absolute;inset:0;z-index:3;overflow:hidden;background:#102039}
.snowglobe-game[hidden]{display:none}
.globe-view{position:absolute;inset:0;background:url('assets/snowglobe-night-watercolor.webp') center/cover}
.globe-view canvas{display:block;width:100%;height:100%}
.globe-fallback{position:absolute;left:-400%;top:0;width:1600%;height:100%;display:flex;will-change:transform}.globe-fallback-tile{width:25%;height:100%;flex:none;background:#102039 url('assets/globe-igloo-panorama.png') center var(--fallback-y,50%)/cover no-repeat}.snowglobe-game[data-render='fallback'][data-zoom='0.60'] .globe-fallback-tile{background-size:contain}
.globe-snow{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;background-image:radial-gradient(circle,#fff9 0 1px,transparent 1.6px),radial-gradient(circle,#fff8 0 1px,transparent 1.5px);background-size:87px 113px,133px 167px;animation:globe-snowfall 22s linear infinite;opacity:.45}@keyframes globe-snowfall{to{background-position:18px 226px,-15px 334px}}@media(prefers-reduced-motion:reduce){.globe-snow{animation:none}}.snowglobe-game[data-render='still'][data-zoom='0.75'] .globe-view{background-size:contain;background-repeat:no-repeat;background-color:#102039}.globe-night-controls .globe-zoom{min-height:36px;padding:6px 14px;margin:0 0 7px;font-size:11px}
.globe-explore-cue{position:absolute;z-index:2;top:47%;left:50%;display:grid;gap:3px;place-items:center;width:min(218px,68%);padding:13px 15px;transform:translate(-50%,-50%);border:1px solid #ecd49a99;background:#10244186;color:#fff8e9;text-align:center;box-shadow:0 8px 30px #06122755;pointer-events:none;transition:opacity .45s ease,transform .45s ease}.globe-explore-cue span{color:#f4d98b;font-size:19px;animation:globe-cue-glow 1.8s ease-in-out infinite}.globe-explore-cue strong{font:600 14px 'Christmas Iansui',system-ui}.globe-explore-cue small{font:11px/1.35 'Christmas Iansui',system-ui;color:#f4e7c9}.snowglobe-game[data-explored='true'] .globe-explore-cue{opacity:0;transform:translate(-50%,-45%)}@keyframes globe-cue-glow{50%{filter:drop-shadow(0 0 8px #f4d98b);transform:scale(1.15)}}
.globe-night-copy{position:absolute;top:11%;width:100%;padding:0 18px;text-align:center;color:#fff9ed;pointer-events:none;text-shadow:0 2px 12px #142342}
.globe-night-copy h1{font-size:clamp(30px,8vw,42px)}
.globe-night-controls{position:absolute;bottom:3%;left:6%;width:88%;text-align:center;color:#fff9ed;background:none;border:0;border-radius:0;padding:14px;font:12px/1.5 'Christmas Iansui',system-ui}
.globe-night-controls p{margin:0 0 12px}.globe-night-controls button{min-height:44px;border:1px solid #bca672;border-radius:24px;padding:10px 16px;background:#fffaf0;color:#30424a;font:inherit;cursor:pointer}
.globe-wish{width:100%}.globe-wish:disabled{opacity:.6;cursor:default}.globe-again{border:0!important;background:none!important;text-decoration:underline;margin-top:4px}
.globe-entered #heading,.globe-entered #invitation,.globe-entered #roomOrnament,.globe-entered #openWish{visibility:hidden}
.snowglobe-mode .reader{z-index:10}.snowglobe-mode .veil{z-index:9}
.snowglobe-game[data-render='still'][data-ready='true'] .globe-view:after{content:'';position:absolute;left:0;right:0;top:34%;height:20%;background:radial-gradient(ellipse at 50% 50%,#61ccb855,transparent 65%);pointer-events:none}

.globe-view{touch-action:pan-y;cursor:grab}.globe-view.dragging{cursor:grabbing}.globe-view:focus-visible{outline:2px solid #e7ca85;outline-offset:-5px}.globe-pan-hint{font-size:11px;color:#55676c}.globe-night-controls{padding:10px 14px}.globe-night-controls p{margin-bottom:7px}
.snowglobe-mode .ornament-art,.calendar-door[data-day='3'] .mini-ornament{background-image:url('assets/snowglobe-watercolor-cutout.webp');background-size:100% 100%;background-position:center;mix-blend-mode:normal;clip-path:none;mask-image:none;filter:drop-shadow(0 8px 14px #0c19364d)}
.globe-entered .snowglobe-game{animation:enter-globe 1.6s ease-out both}@keyframes enter-globe{from{opacity:0;transform:scale(1.08)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.globe-entered .snowglobe-game,.globe-explore-cue span{animation:none}}

/* The globe is a portal behind the castle window, never furniture in the cabin. */
.snowglobe-mode:not(.globe-entered) .room-setting,.calendar-door[data-day='3'] .room-setting{background:linear-gradient(transparent 45%,#f8f5eddd 78%,#f8f5ed),url('assets/cocoa-outdoor-watercolor.webp') center/100% 100%}
/* The castle overlay already handles the arrival fade; avoid a second ghosted room. */
.globe-entered .snowglobe-game{animation:none}

/* Capture both axes inside the panorama; controls remain separate. */
.globe-view{touch-action:none}
/* The crystal ball is the entrance to the small world. */
.santa-offer{position:absolute;inset:0;z-index:4;overflow:hidden;background:linear-gradient(#f2f6f6aa,#f5f1e9bb),url('assets/cocoa-outdoor-watercolor.webp') center/cover}
.santa-offer[hidden]{display:none}.santa-copy{position:absolute;top:10%;width:100%;text-align:center;color:#334b46;padding:0 16px}.santa-copy h1{font-size:clamp(28px,7vw,40px)}
.santa-figure{position:absolute;top:19%;height:69%;aspect-ratio:2/3;left:50%;transform:translateX(-50%)}.santa-figure img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:50% 38%;will-change:transform}
.santa-globe-target{position:absolute;left:30%;top:31%;width:40%;height:28%;border:0;border-radius:50%;background:transparent;cursor:pointer}
.santa-enter{position:absolute;bottom:4%;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;min-height:46px;padding:12px 22px;border:1px solid #b99b63;border-radius:28px;background:#fffaf0;color:#31473f;font:12px 'Christmas Iansui',system-ui;cursor:pointer}
.santa-offer.traveling .santa-copy,.santa-offer.traveling button{opacity:0;pointer-events:none;transition:opacity .35s}
.calendar-door[data-day='3'] .mini-ornament{background-image:url('assets/snowglobe-watercolor-cutout.webp');background-size:contain;background-repeat:no-repeat}
.snowglobe-mode:has(.santa-offer:not([hidden])) .selected-date{color:#89651e}

.santa-globe-target{left:32%;top:29%;width:36%;height:24%}
.santa-offer,.snowglobe-mode:not(.globe-entered) .room-setting,.calendar-door[data-day='3'] .room-setting{background:#152d50 url('assets/santa-christmas-sky.webp') center/100% 100% no-repeat}
.santa-copy{color:#fff8e9}.santa-copy h1{text-shadow:0 2px 12px #10233f80}
.snowglobe-mode:has(.santa-offer:not([hidden])) .selected-date{color:#f3dca5}

/* Santa, sleigh, globe and its hit target float as one group. */
.santa-figure{top:19%;height:72%;transform-origin:50% 38%;transform:translate(-50%,0) rotate(0deg);animation:sleigh-float 6s ease-in-out infinite;will-change:transform}
@keyframes sleigh-float{0%,100%{transform:translate(-50%,0) rotate(0deg)}50%{transform:translate(-50%,-7px) rotate(0deg)}}
.santa-offer.traveling .santa-figure{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.santa-figure{animation:none}}
/* Keep the full-size upright composition from the reference. */
.santa-figure{top:17%;height:72%;transform:translate(-50%,0) rotate(0deg)}
.globe-figure{top:21%;height:59%;aspect-ratio:1}.globe-figure img{filter:drop-shadow(0 16px 18px #07152e75)}.globe-figure .santa-globe-target{left:11%;top:13%;width:78%;height:67%;border-radius:50%}
@keyframes sleigh-float{0%,100%{transform:translate(-50%,0) rotate(0deg)}50%{transform:translate(-50%,-7px) rotate(0deg)}}

/* Quiet instructions directly on the night scenery. */
.globe-night-controls{background:none;border:0;border-radius:0;box-shadow:none;color:#fff9ed;text-shadow:0 2px 8px #07152e;padding:12px 4px;pointer-events:none}
.globe-pan-hint{color:#f4e7c9;font-size:12px}.globe-pan-hint span[aria-hidden]{font-size:20px;letter-spacing:3px;vertical-align:middle;margin-right:5px}.globe-pinch-hint{display:block;margin-top:4px}
.globe-night-controls button{pointer-events:auto;background:#10244155;color:#fff9ed;border-color:#e5cc91;text-shadow:0 1px 5px #07152e}
.globe-night-controls .globe-again{color:#fff9ed}.globe-night-controls button:focus-visible{outline:2px solid #fff9ed;outline-offset:3px}

/* Preserve painted snowball proportions rather than stretching tall. */
.snowman-mode .room-setting{scale:var(--snow-round-x,1) 1;transform-origin:50% 50%}
.snowman-anatomy{position:absolute;inset:0;scale:var(--snow-round-x,1) 1;transform-origin:50% 50%;pointer-events:none}
.snowman-anatomy .snowman-drop{pointer-events:auto}

/* Day 3 is the same full composition at every viewing distance. */
.calendar-door[data-day='3'] .mini-room{inset:auto 0;top:50%;width:100%;height:auto;aspect-ratio:var(--santa-scene-ratio, .462);transform:translateY(-50%)}
.calendar-door[data-day='3'] .mini-ornament{left:50%;top:17%;bottom:auto;width:auto;height:72%;aspect-ratio:2/3;transform:translateX(-50%);background-position:center;background-size:contain;mask-image:none;clip-path:none;filter:none}
.calendar-door[data-day='3'] .mini-ornament:before{display:none}
.calendar-door[data-day='3'] .mini-ornament{top:21%;height:59%;aspect-ratio:1}
.wish-santa{position:absolute;z-index:4;left:50%;top:25%;width:min(52%,230px);height:48%;object-fit:contain;transform:translate(-50%,12px);opacity:0;pointer-events:none;transition:opacity 1.2s ease,transform 1.2s ease;mask-image:linear-gradient(to right,transparent,#000 15%,#000 85%,transparent)}.stars-game[data-phase='complete'] .wish-santa{opacity:1;transform:translate(-50%,0)}@media(prefers-reduced-motion:reduce){.wish-santa{transition:none}}

/* Watercolor layers give the tree depth before interaction. */
.tree-mode .room-setting{transform:scale(1.035) translate(calc(var(--tree-x,0)*-3px),calc(var(--tree-y,0)*-2px));transition:transform .35s ease-out}
.tree-mode .room-ornament{transform:perspective(900px) rotateY(calc(-2deg + var(--tree-x,0)*3deg)) rotateX(calc(var(--tree-y,0)*-1.5deg));transform-origin:50% 92%;transition:transform .35s ease-out}
.tree-mode .ornament-art,.calendar-door[data-day='4'] .mini-ornament{filter:drop-shadow(3px 6px 3px #594d3838)}
.tree-mode .room-ornament:after{content:'';position:absolute;left:25%;right:22%;bottom:4%;height:3%;border-radius:50%;background:#66544338;filter:blur(5px);z-index:-1;pointer-events:none}
.tree-mode[data-state='idle'] .room-ornament{animation:tree-depth-breathe 9s ease-in-out infinite}
@keyframes tree-depth-breathe{0%,100%{translate:-2px 0}50%{translate:2px 0}}
@media(prefers-reduced-motion:reduce){.tree-mode .room-setting,.tree-mode .room-ornament{transform:none;animation:none!important;transition:none}}

#treeLights{display:none;position:absolute;inset:0;pointer-events:none;z-index:2}
.tree-mode #treeLights{display:block}
#treeLights i{position:absolute;width:4px;height:4px;border-radius:50%;background:#fff3ca;box-shadow:0 0 5px 2px #ffd680,0 0 13px 5px #eda84b80,0 0 23px 9px #edab4830;opacity:0}
.tree-lit #treeLights i{animation:tree-light-on 1.35s ease-in-out var(--light-delay) both}
#treeLights i:before{content:'';position:absolute;inset:-9px;border-radius:46% 54% 52% 48%;background:radial-gradient(ellipse,#ffdc9870, #efb96124 45%,transparent 72%);filter:blur(2px)}
#treeLights i:last-child{width:6px;height:6px;translate:-1px -1px}
@keyframes tree-light-on{0%{opacity:0;scale:.7}32%{opacity:.95;scale:1.18}56%{opacity:.55;scale:.92}78%{opacity:1;scale:1.12}100%{opacity:.83;scale:1}}
.tree-mode .wish-card{max-height:85svh;overflow:auto}.tree-mode .mission-label{letter-spacing:.12em}
@media(prefers-reduced-motion:reduce){.tree-lit #treeLights i{animation:none;opacity:1}}

.tree-photo{display:none}.tree-mode .tree-photo{display:block;border-top:1px solid #ddc9a7;margin-top:18px;padding-top:16px;font:12px/1.5 'Christmas Iansui',system-ui;text-align:left}.tree-photo-title{font:italic 21px 'Christmas Iansui',Georgia;margin:0 0 6px}.tree-photo-pick{display:inline-block;border:1px solid #ac8747;border-radius:22px;padding:10px 18px;cursor:pointer;background:#fff8e9}.tree-photo-pick input{position:absolute;width:1px;height:1px;opacity:0}.tree-photo-pick:focus-within{outline:2px solid #80632f;outline-offset:3px}.tree-photo img{width:100%;max-height:230px;object-fit:contain;border-radius:10px;margin-top:12px}.tree-photo-caption{display:block;margin-top:10px}.tree-photo-caption[hidden],.tree-photo img[hidden],.tree-photo button[hidden]{display:none}.tree-photo textarea{display:block;width:100%;min-height:68px;margin-top:6px;padding:10px;border:1px solid #d6c8b1;border-radius:8px;background:#fffdf8;font:inherit}.tree-photo-remove{border:0;background:none;text-decoration:underline;padding:10px 0}.tree-photo-status{font-size:10px;color:#6a7569}

.tree-booth{width:min(94vw,480px);max-height:94svh;overflow:auto;border:1px solid #c5aa76;border-radius:22px;background:#fffaf2;color:#374b41;padding:20px;text-align:center;box-shadow:0 20px 80px #15223766}.tree-booth::backdrop{background:#122037bb}.booth-close{position:absolute;right:12px;top:8px;border:0;background:none;font-size:27px;padding:4px 10px}.tree-booth h2{font-size:28px;line-height:1.2;letter-spacing:0;margin:8px 0 16px}.tree-booth .eyebrow{font-size:9px}.booth-stage{position:relative;border-radius:16px;overflow:hidden}.booth-stage canvas{display:block;width:100%;height:auto}.booth-guide{position:absolute;left:5%;bottom:10%;width:52%;padding:12px;color:#445747;font:italic 20px/1.4 'Christmas Iansui',Georgia;background:#fffaf2b3;border-radius:12px}.booth-guide[hidden]{display:none}.booth-status{font:12px/1.5 'Christmas Iansui',system-ui}.booth-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.booth-actions button,.booth-actions a{border:1px solid #b59960;border-radius:24px;background:#fff5dd;padding:12px 18px;font:13px 'Christmas Iansui',system-ui;color:#374b41;text-decoration:none}.booth-actions [hidden]{display:none}.booth-actions button:disabled{opacity:.4}

/* The tree stays anchored while the camera approaches its room. */
.calendar-door[data-day='4'] .mini-room{inset:auto 0;top:50%;width:100%;height:auto;aspect-ratio:var(--santa-scene-ratio,.462);transform:translateY(-50%)}
.calendar-door[data-day='4'] .room-setting{transform:scale(1.035)}
.tree-mode .room-ornament,.tree-mode[data-state='idle'] .room-ornament{transform:none;translate:none;animation:none;transition:none}

/* Evening option: cool watercolor shadows and amber Christmas light. */
.tree-mode{background:#142b3b}
.tree-mode .room-setting,.calendar-door[data-day='4'] .room-setting{filter:brightness(.34) saturate(.65);transition:filter 2.8s ease}
.tree-mode .room-setting:after,.calendar-door[data-day='4'] .room-setting:after{content:'';position:absolute;inset:0;background:linear-gradient(#122c5940,#142c3f15 55%,#101c32aa);pointer-events:none}
.tree-mode .ornament-art,.calendar-door[data-day='4'] .mini-ornament{filter:brightness(.62) saturate(.8) drop-shadow(3px 8px 8px #08132380);transition:filter 3s ease}
.tree-mode.tree-lit .room-setting{filter:brightness(.48) saturate(.8)}
.tree-mode.tree-lit .ornament-art{filter:brightness(.98) saturate(.95) drop-shadow(0 0 18px #eeb65a44)}
.tree-mode header,.tree-mode header h1,.tree-mode footer{color:#fff0d5;text-shadow:0 2px 9px #102236}
.tree-mode .selected-date{color:#efd49b}.tree-mode footer{background:none}
.tree-mode .room-ornament:after{left:5%;right:5%;bottom:-4%;height:35%;z-index:-1;background:radial-gradient(ellipse,#efb85f55,transparent 70%);filter:blur(15px);opacity:0;transition:opacity 3s ease}
.tree-mode.tree-lit .room-ornament:after{opacity:1}
.tree-fairy-lights{display:none;position:absolute;inset:0;pointer-events:none;width:100%;height:100%;z-index:1}
.tree-mode .tree-fairy-lights{display:block}.tree-fairy-lights path{fill:none;stroke:#b1935c66;stroke-width:1.5}
.tree-fairy-lights circle{fill:#ffc879;opacity:.13;transition:opacity 2.5s ease;filter:drop-shadow(0 0 5px #ffc879)}
.tree-lit .tree-fairy-lights circle{opacity:.9}
@media(prefers-reduced-motion:reduce){.tree-mode .room-setting,.tree-mode .ornament-art,.tree-mode .room-ornament:after,.tree-fairy-lights circle{transition:none}}
/* Let the watercolor paper blend with the room, without an isolated white tile. */
.tree-mode .room-ornament{perspective:none}
.tree-mode .room-ornament:before{content:'';position:absolute;inset:-12%;background:radial-gradient(ellipse at 50% 65%,#ffce8445,transparent 65%);opacity:0;transition:opacity 3s ease;pointer-events:none}
.tree-mode.tree-lit .room-ornament:before{opacity:1}
@media(prefers-reduced-motion:reduce){.tree-mode .room-ornament:before{transition:none}}

.booth-size{display:flex;align-items:center;justify-content:center;gap:12px;font:12px 'Christmas Iansui',system-ui;margin:12px 0}.booth-size input{accent-color:#a88242;max-width:60%;min-height:32px}

.booth-options{display:flex;gap:10px;justify-content:center;margin:16px 0}.booth-options button,.booth-upload,.booth-side{border:1px solid #bea26b;border-radius:16px;background:#fff5e1;padding:12px;font:13px/1.4 'Christmas Iansui',system-ui;color:#3d5147;cursor:pointer;flex:1}.booth-upload{position:relative}.booth-upload input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.booth-upload:focus-within{outline:2px solid #826126;outline-offset:2px}.booth-selfie-options{display:flex;gap:10px;align-items:center;font:12px 'Christmas Iansui',system-ui;margin:10px 0}.booth-selfie-options[hidden]{display:none}.booth-selfie-options label{flex:1}.booth-selfie-options input{display:block;width:100%;accent-color:#a8864a}.booth-privacy{font:10px 'Christmas Iansui',system-ui;color:#6e786d}.booth-guide{left:12%;width:76%;bottom:40%;background:none}

/* Daily reveal: preserve the castle, dim only unopened future interiors. */
.calendar-testing{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 24px;margin:12px auto;color:#d7e0e9;font:12px 'Christmas Iansui',system-ui}.calendar-testing label{display:flex;gap:8px;align-items:center}.calendar-testing input{accent-color:#d6b36d;width:16px;height:16px}.calendar-testing select{font:inherit;border:1px solid #bba16a80;background:#152b43;color:#f3dfb6;border-radius:8px;padding:7px}.calendar-notice{min-height:18px;text-align:center;color:#f3d99c;font:12px/1.5 'Christmas Iansui',system-ui;margin:6px 0}
.calendar-door.future .door-cavity{filter:brightness(.38) saturate(.6)}
.calendar-door.locked{cursor:pointer}.calendar-door.locked:hover .door-leaf{transform:none}
.calendar-door.today .door-cavity{filter:brightness(1.16) saturate(1.08);box-shadow:0 0 13px 5px #ffc75c80,inset 0 0 14px #ffe0a366}
.calendar-door.today .door-number{background:#fff2cc;color:#80520b;box-shadow:0 0 8px #ffd57c}
.calendar-door.today:after{content:'✧';position:absolute;right:-7%;top:-10%;color:#ffe1a0;font-size:18px;pointer-events:none;text-shadow:0 0 8px #ffc656;animation:today-sparkle 4s ease-in-out infinite}
@keyframes today-sparkle{0%,100%{opacity:.55}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.calendar-door.today:after{animation:none}}
.calendar-door.today .mini-room:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 65%,#ffd77e80,#ffc45d26 70%);mix-blend-mode:screen;pointer-events:none}
.calendar-door.today .door-cavity{filter:none;box-shadow:0 0 9px 3px #ffc75c55}.calendar-door.today .mini-room:after{opacity:.15}

/* Window 5: two small observatory studies, sharing the same painted room. */
.stars-mode {background:#101f3a;--star-rise:0}
.stars-mode .room-setting,.calendar-door[data-day="5"] .room-setting {background-image:url('assets/observatory-watercolor.webp');background-size:cover;background-position:50% 50%;filter:none}
.stars-mode .room-setting {transform:scale(calc(1 + var(--star-rise)*.055));transform-origin:50% 22%;transition:transform 2200ms cubic-bezier(.22,.61,.36,1)}
.stars-mode #roomOrnament,.stars-mode #openWish,.stars-mode #invitation,.stars-mode #stocking3d {display:none!important}
.stars-mode #heading {color:#fff6df;pointer-events:none}
.stars-mode #heading h1 {font-size:clamp(36px,7cqw,72px)}
.stars-mode .flourish {color:#e4c27d}
.calendar-door[data-day="5"] .mini-ornament {display:none}
.stars-game {position:absolute;inset:0;z-index:6;color:#fff5dc;pointer-events:none}
.stars-game[hidden]{display:none}
.star-options {position:absolute;top:31%;left:8%;right:8%;display:flex;gap:10px;justify-content:center;pointer-events:auto}
.star-options button,.star-caption button{font:inherit;border:1px solid #d6bd8580;background:#11253dbb;color:#fff5dc;border-radius:28px;padding:12px 16px;min-height:44px;cursor:pointer}
.star-options button[aria-pressed="true"]{background:#fff3d9;color:#37464c}
.star-field {position:absolute;inset:36% 7% 20%;pointer-events:none}
.pick-star {position:absolute;transform:translate(-50%,-50%);width:66px;height:66px;border:0;background:transparent;color:#ffe4a1;font-size:46px;cursor:pointer;pointer-events:auto;filter:drop-shadow(0 0 12px #f4c46b);transition:opacity 1.4s,translate 1.4s,scale 1.4s}
.pick-star span{display:block;animation:star-breathe 3s var(--delay) ease-in-out infinite}
.pick-star.collected {translate:0 -70px;scale:.3;opacity:0;pointer-events:none}
.star-caption {position:absolute;bottom:5%;left:8%;right:8%;text-align:center;text-shadow:0 2px 8px #071528;pointer-events:auto}
.star-prompt {font-size:clamp(15px,2.6cqw,22px);line-height:1.5;margin:0 0 12px}
.star-finish {display:block;margin:0 auto 8px!important;background:#fff3d9!important;color:#36464c!important}
.star-finish[hidden]{display:none}
.star-again {border:0!important;background:transparent!important;text-decoration:underline;font-size:14px!important}
@keyframes star-breathe {50%{opacity:.65;transform:scale(.9)}}
@media(prefers-reduced-motion:reduce){.stars-mode .room-setting{transition:none;transform:none}.pick-star{transition:none}.pick-star span{animation:none}}
.stars-mode .reader{z-index:10}.stars-mode .veil{z-index:9}.stars-mode:not([data-state='idle']) .stars-game{visibility:hidden}
.stars-mode #selectedDate{color:#f5d697}
.stars-mode:after{content:'';position:absolute;inset:75% 0 0;background:linear-gradient(transparent,#07182c99);pointer-events:none;z-index:5}

.star-writing{position:absolute;top:40%;left:10%;right:10%;pointer-events:auto;text-align:center;padding:16px;border-radius:18px;background:#0d203dc9;border:1px solid #ecd6a744}
.star-writing label{display:block;font:italic 22px 'Christmas Iansui',Georgia,serif;margin-bottom:12px}
.star-writing textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;max-height:140px;background:#ffffff0d;border:1px solid #ecd6a780;border-radius:10px;color:#fff8e8;padding:12px;font:16px/1.5 'Christmas Iansui',system-ui}
.star-writing textarea::placeholder{color:#d8dfeb}
.star-writing p{font:12px/1.5 'Christmas Iansui',system-ui;color:#d5dfec;margin:10px 0}
.star-writing button{border:1px solid #ddc38f;border-radius:25px;background:#fff3d9;color:#36464c;min-height:44px;padding:10px 16px;font:14px 'Christmas Iansui',system-ui;cursor:pointer}
.star-writing button:disabled{opacity:.5;cursor:default}
.star-writing[hidden],.star-written[hidden]{display:none}
.stars-game[data-mode='wish'] .star-field{inset:35% 7% 15%;pointer-events:none;z-index:-1}
.stars-game[data-mode='wish']:not(.star-released) .pick-star{visibility:hidden}
.star-written{position:absolute;top:43%;left:12%;right:12%;max-height:28%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;text-align:center;font:italic clamp(20px,3.5cqw,30px)/1.6 Georgia,serif;text-shadow:0 2px 10px #061426;background:#10203b80;border-radius:16px;padding:16px}
@media(max-height:650px){.star-writing{top:37%;padding:10px}.star-writing textarea{max-height:80px}.star-writing label{font-size:18px;margin-bottom:6px}.star-writing p{margin:6px 0}.star-caption{bottom:2%}.star-prompt{font-size:13px}}

/* Written wishes gather into a painted spark, then rise on one continuous breath. */
.wish-spark{position:absolute;left:50%;top:51%;width:48px;height:48px;transform:translate(-50%,-50%);opacity:0;pointer-events:none;filter:drop-shadow(0 0 9px #f5d08c) drop-shadow(0 0 24px #e9b85c80)}
.wish-spark svg{display:block;width:100%;height:100%}
.wish-floating .star-written{top:43%;background:transparent;animation:wish-words-gather 1800ms ease-in-out both;transform-origin:50% 50%;pointer-events:none}
.wish-floating .wish-spark{animation:wish-spark-rise 5600ms cubic-bezier(.25,.45,.35,1) both}
.stars-game[data-mode='wish'].star-released .pick-star{visibility:hidden}
.wish-lifting #heading{opacity:.15;transition:opacity 1500ms}
@keyframes wish-words-gather{0%,20%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}75%{opacity:.6;filter:blur(1px)}100%{opacity:0;transform:translateY(12px) scale(.06);filter:blur(3px)}}
@keyframes wish-spark-rise{0%,18%{opacity:0;transform:translate(-50%,-50%) scale(.15)}33%{opacity:1;transform:translate(-50%,-50%) scale(1)}55%{opacity:1;transform:translate(-40%,-160%) scale(.9)}80%{opacity:1;transform:translate(-65%,-360%) scale(.6)}100%{opacity:.85;transform:translate(-50%,-500%) scale(.3)}}
@media(prefers-reduced-motion:reduce){.wish-floating .star-written{animation:none;opacity:0}.wish-floating .wish-spark{animation:none;opacity:1;transform:translate(-50%,-50%) scale(.7)}.wish-lifting #heading{transition:none}}
.wish-floating .star-options{visibility:hidden}

/* Two companions share a single flight path so their joined hands stay together. */
.star-travelers{position:absolute;left:29%;top:calc(69% - var(--star-rise,0)*9%);width:25%;height:17%;pointer-events:none;opacity:1;transition:top 2600ms cubic-bezier(.22,.61,.36,1);filter:drop-shadow(0 2px 3px #11213b40)}
.star-travelers img{width:100%;height:100%;object-fit:contain;display:block}
.stars-game:not([data-mode='fly']) .star-travelers{display:none}
.star-rising .star-travelers img{animation:travelers-drift 5s ease-in-out infinite}
@keyframes travelers-drift{0%,100%{transform:translate(0,0)}50%{transform:translate(3px,-3px)}}
@media(prefers-reduced-motion:reduce){.star-travelers{transition:none;top:69%}.star-rising .star-travelers img{animation:none}}
/* Telescope journey: grounded companions, then a circular view of the sky. */
.stars-game[data-mode='telescope'] .star-travelers{display:block;left:26%;top:74%;width:26%;height:20%;transition:opacity 1s;filter:drop-shadow(0 2px 1px #10233b55)}
.stars-game[data-mode='telescope'] .star-travelers img{animation:none}
.stars-game[data-mode='telescope'] .star-writing{top:32%;padding:12px 16px}
.stars-game[data-mode='telescope']:not(.looking-through) .star-caption{top:64%;bottom:auto}
.telescope-view{position:absolute;inset:0;background:#071326ed;opacity:0;transition:opacity 1800ms;pointer-events:none}
.telescope-lens{position:absolute;left:8%;top:29%;width:84%;aspect-ratio:1;border-radius:50%;background:url('assets/observatory-watercolor.webp') 50% 10%/180% auto;box-shadow:0 0 0 3px #c4a46980,0 0 0 13px #0a1526,inset 0 0 35px #050e26;transform:scale(.65);transition:transform 1800ms cubic-bezier(.22,.61,.36,1)}
.looking-through .telescope-view{opacity:1}.looking-through .telescope-lens{transform:scale(1)}
.stars-game.looking-through .star-travelers{opacity:0}
.looking-through .star-written{top:38%;font-size:clamp(18px,3cqw,26px);max-height:22%;background:transparent}
.telescope-send{background:#fff3d9!important;color:#36464c!important;display:block;margin:0 auto 12px}
.telescope-send[hidden]{display:none}
.stars-game[data-mode='telescope'] .star-again[hidden]{display:none}
.stars-game[data-mode='telescope'].wish-floating .wish-spark{animation-name:telescope-star-rise}
@keyframes telescope-star-rise{0%,18%{opacity:0;transform:translate(-50%,-50%) scale(.15)}33%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:.85;transform:translate(-65%,-310%) scale(.3)}}
@media(prefers-reduced-motion:reduce){.telescope-view,.telescope-lens{transition:none}.telescope-lens{transform:none}.stars-game[data-mode='telescope'].wish-floating .wish-spark{animation:none}}

.mini-stocking{object-fit:contain}
.stocking-mode .scene{transform:none;perspective:none}
/* Window 8: an optional confidence or childhood memory, followed by a hug. */
.teddy-mode #roomOrnament,.teddy-mode #openWish,.teddy-mode #invitation{display:none!important}
.teddy-mode .reader{z-index:12}.teddy-mode .veil{z-index:11}
.teddy-game{position:absolute;inset:0;z-index:6;pointer-events:none}
.teddy-game[hidden]{display:none}
.teddy-body{position:absolute;left:22%;top:29%;width:56%;height:35%;padding:0;border:0;background:none;pointer-events:auto;transform-origin:50% 70%;transition:transform 1.2s ease;filter:drop-shadow(0 7px 5px #74543625)}
.teddy-body img{width:100%;height:100%;object-fit:contain;display:block}
.teddy-controls{position:absolute;left:6%;right:6%;top:65%;bottom:2%;overflow:auto;text-align:center;pointer-events:auto;background:#fffaf0e8;border:1px solid #dac9a8;border-radius:22px;padding:12px;color:#3d4c44}
.teddy-prompts{display:flex;gap:8px;margin-bottom:8px}
.teddy-controls button{min-height:44px;border:1px solid #c6aa75;border-radius:24px;background:#fffaf1;padding:8px 14px;font:14px 'Christmas Iansui',system-ui;cursor:pointer}
.teddy-prompts button{flex:1;font-size:12px}.teddy-prompts button[aria-pressed='true']{background:#e7eddc}
.teddy-controls label{display:block;font:italic 18px 'Christmas Iansui',Georgia;margin:6px}
.teddy-controls textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #cec4b1;border-radius:10px;background:#fffdf8;padding:8px;font:16px/1.4 'Christmas Iansui',system-ui;resize:none;color:#3d4c44}
#teddyPrivacy{font:11px/1.4 'Christmas Iansui',system-ui;margin:7px 0}
.teddy-hug,.teddy-wish{width:100%;background:#f1e6cf!important}
.teddy-status{font:italic 17px/1.4 'Christmas Iansui',Georgia;margin:10px 0}
.teddy-status:empty{display:none}.teddy-reset{margin-top:8px;border:0!important;text-decoration:underline;background:transparent!important}
.hug-finished .teddy-prompts,.hug-finished label,.hug-finished textarea,.hug-finished #teddyPrivacy,.hug-finished .teddy-hug{display:none}
.teddy-hugging .teddy-body{animation:teddy-embrace 3200ms ease-in-out both;z-index:2}
.teddy-hugging .teddy-controls>*:not(.teddy-status){display:none}
.teddy-cosy .teddy-body{transform:scale(1.04)}
@keyframes teddy-embrace{0%{transform:scale(1)}35%{transform:scale(1.12)}55%,75%{transform:scale(1.14)}100%{transform:scale(1.04)}}
.teddy-mode:not([data-state='idle']) .teddy-game{visibility:hidden}
@media(prefers-reduced-motion:reduce){.teddy-body{transition:none}.teddy-hugging .teddy-body{animation:none}.teddy-cosy .teddy-body{transform:none}}

.mini-teddy{position:absolute;left:22%;top:29%;width:56%;height:35%;object-fit:contain}

.teddy-mode .room-setting,.calendar-door[data-day='8'] .room-setting{background:url('assets/teddy-bedroom.webp') center/cover no-repeat}
.teddy-body img{position:absolute;inset:0}.teddy-closed{opacity:0}
.teddy-hugging .teddy-open{animation:teddy-open-pose 3200ms ease-in-out both}.teddy-hugging .teddy-closed{animation:teddy-close-pose 3200ms ease-in-out both}
@keyframes teddy-close-pose{0%,15%{opacity:0}35%,100%{opacity:1}}
@keyframes teddy-open-pose{0%,15%{opacity:1}35%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.teddy-hugging .teddy-open,.teddy-hugging .teddy-closed{animation:none}}
/* Keep the overview on one centered grid track, including wide displays. */
body{grid-template-columns:minmax(0,1fr)}
.calendar{justify-self:center;margin-inline:auto}
.calendar-heading h1{margin-inline:auto}
.teddy-body:before{content:'';position:absolute;left:17%;right:17%;bottom:0;height:9%;border-radius:50%;background:radial-gradient(ellipse,#68463355,transparent 70%);filter:blur(5px);transform:translateY(25%)}

/* Window 9: one painted pond, shared by the castle preview and skating scene. */
.rink-mode .room-setting,.calendar-door[data-day='9'] .room-setting{background:url('assets/rink-watercolor.webp') center/cover no-repeat;transform:none;filter:none}
.rink-mode .scene{transform:none;perspective:none}
.rink-mode #roomOrnament,.rink-mode #openWish,.rink-mode #invitation{display:none!important}
.rink-game{position:absolute;inset:0;z-index:6;pointer-events:none;color:#334e59}
.rink-game[hidden]{display:none}.rink-mode .reader{z-index:12}.rink-mode .veil{z-index:11}.rink-mode:not([data-state='idle']) .rink-game{visibility:hidden}
.rink-pair,.mini-rink-pair{position:absolute;left:50%;top:70%;width:36%;height:22%;object-fit:contain;transform:translate(-50%,-100%) scale(var(--rink-scale,.97));transform-origin:50% 100%;pointer-events:none}
.rink-pair img{width:100%;height:100%;object-fit:contain;position:relative;display:block}
.rink-pair:before{content:'';position:absolute;left:14%;right:14%;bottom:0;height:6%;background:#435a7040;filter:blur(4px);border-radius:50%}
.rink-trails{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.rink-guide{fill:none;stroke:#fff9e8aa;stroke-width:.3;stroke-dasharray:1 1.7}
.rink-line{fill:none;stroke:#fff9e5;stroke-width:.42;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 2px #e5c57a)}
.rink-touch{position:absolute;inset:44% 5% 19%;touch-action:none;pointer-events:auto;cursor:grab}.rink-touch:active{cursor:grabbing}
.rink-controls{position:absolute;left:7%;right:7%;bottom:4%;text-align:center;pointer-events:auto}
.rink-status{font:italic clamp(17px,3cqw,23px)/1.4 Georgia,serif;text-shadow:0 1px 8px #fff;margin:0 0 12px}
.rink-controls button{min-height:44px;padding:12px 22px;border:1px solid #b9a16e;background:#fff9eae8;border-radius:30px;font:16px 'Christmas Iansui',system-ui;color:#344c54}
.rink-controls button[hidden]{display:none}.rink-controls button:disabled{opacity:.65}.rink-again{display:block;margin:8px auto 0;border:0!important;background:transparent!important;text-decoration:underline;font-size:14px!important}
.rink-mode #heading{color:#334e59}.rink-mode .back-calendar{z-index:8}
.rink-complete .rink-guide{opacity:0}.rink-complete .rink-line{stroke:#ffefd0}
.rink-pair img,.mini-rink-pair{object-position:center bottom}

/* Keep the completed embrace visible, including reduced-motion mode. */
.teddy-cosy .teddy-open{opacity:0}.teddy-cosy .teddy-closed{opacity:1}
.teddy-body{transform-origin:50% 86%}
.teddy-body:before{bottom:13%;height:6%;left:23%;right:23%}
.teddy-hugging .teddy-controls{display:grid;place-items:center;background:transparent;border-color:transparent;overflow:hidden}
.teddy-hugging .teddy-status{padding:12px;text-shadow:0 1px 6px #fffaf0}
.teddy-body:disabled{cursor:default}

/* Painted neighbours sit farther back; the foreground pair stays interactive. */
.rink-pair svg,.mini-rink-pair svg{display:block;width:100%;height:100%;overflow:visible}
.rink-crowd{position:absolute;left:21%;top:43%;width:58%;height:11%;pointer-events:none;opacity:.88;filter:drop-shadow(0 2px 1px #56697922)}
.rink-crowd img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.rink-pair{z-index:2}.rink-touch,.rink-controls{z-index:3}

/* The distant couples glide independently; no shared sliding-card animation. */
.rink-neighbour-pair{position:absolute;bottom:0;width:48%;height:100%;transform-origin:50% 100%}
.rink-neighbour-0{left:0}.rink-neighbour-1{right:0}
.rink-neighbour-pair svg{display:block;width:100%;height:100%;overflow:visible;transform-origin:50% 94%}
.rink-pair>svg{transform-origin:50% 95%}
.rink-controls .rink-pause{display:block;margin:4px auto 0;padding:6px 12px;min-height:44px;border:0;background:transparent;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.rink-controls .rink-pause[hidden]{display:none}
.rink-controls{bottom:2%}.rink-status{margin-bottom:8px}

/* Only the side foliage is displaced; the ice, skaters and UI remain stable. */
.rink-mode .room-setting{filter:url(#rink-foliage-breeze)}
.rink-wind-defs{position:absolute;pointer-events:none}
@media(prefers-reduced-motion:reduce){.rink-mode .room-setting{filter:none}}

/* Window 10: ring the painted door, then join the candlelit table. */
.bell-mode #roomOrnament,.bell-mode #openWish,.bell-mode #invitation{display:none!important}
.bell-game{position:absolute;inset:0;z-index:5;perspective:1000px;color:#46372c;pointer-events:none}
.bell-game[hidden]{display:none}.bell-dinner{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#eee9df}
.bell-leaf{position:absolute;inset:0;transform-origin:left center;backface-visibility:hidden;overflow:hidden}
.bell-leaf[hidden]{display:none}.bell-mode .bell-leaf .room-ornament{display:block!important}
.bell-ring{position:absolute;inset:37% 12% 18%;border:0;background:transparent;pointer-events:auto;border-radius:35%}
.bell-controls{position:absolute;bottom:3%;left:6%;right:6%;text-align:center;pointer-events:auto;text-shadow:0 1px 8px #fff8}
.bell-status{font:italic clamp(17px,4vw,23px)/1.35 Georgia,serif;margin:0 0 10px}
.bell-controls button,.bell-controls select{min-height:44px;border:1px solid #b89b61;border-radius:24px;padding:10px 16px;background:#fff8e9ec;color:#46372c;font:14px 'Christmas Iansui',system-ui}
.bell-controls button[hidden],.bell-after[hidden]{display:none}
.bell-small{font:12px/1.45 'Christmas Iansui',system-ui;margin:7px 0}.bell-music{display:flex;justify-content:center;gap:6px;flex-wrap:wrap}.bell-controls .bell-sound{margin:6px auto 0;background:#fff8e9d9;font-size:12px;padding:7px 14px}
.bell-mode #heading{z-index:7;top:13%;color:#46372c}.bell-mode #heading h1{font-size:clamp(32px,7vw,46px)}.bell-mode.bell-open #heading{top:11%}.bell-open #heading .flourish{display:none}
.bell-mode .back-calendar,.bell-mode .selected-date{z-index:8}.bell-mode .veil{z-index:11}.bell-mode .reader{z-index:12}
.bell-mode:not([data-state='idle']) .bell-game{visibility:hidden}
.bell-open .bell-controls{padding:20px 4px 0;text-shadow:0 1px 5px #fff9}.bell-open .bell-status{font-size:18px}
.bell-controls select{appearance:none;-webkit-appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%2346372c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:14px}.bell-open .bell-controls{bottom:1%;background:linear-gradient(transparent,#f5eee4e8 22%,#f5eee4ed);padding:28px 4px 4px}.bell-actions{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:8px}.bell-actions .bell-sound{margin:0}.bell-actions button{flex:0 1 auto}
@media(max-height:650px){.bell-controls{bottom:1%}.bell-small{margin:3px 0;font-size:10px}.bell-mode #heading h1{font-size:28px}.bell-mode #heading .eyebrow{display:none}.bell-mode.bell-open #heading{top:12%}}

/* A real pull target, with a long visible braided cord and soft gold tassel. */
.bell-ring{inset:auto;left:calc(50% - 26px);top:69%;width:52px;height:14%;border-radius:22px;touch-action:none;cursor:grab}
.bell-ring:active{cursor:grabbing}.bell-ring:focus-visible{outline:2px solid #9e7742;outline-offset:3px}
.bell-cord{position:absolute;top:0;left:24px;width:4px;height:calc(100% - 14px + var(--bell-pull,0px));background:repeating-linear-gradient(135deg,#af8651 0 2px,#eedbb6 2px 4px);box-shadow:1px 1px 2px #59452b33;border-radius:4px;pointer-events:none}
.bell-tassel{position:absolute;bottom:calc(-1 * var(--bell-pull,0px));left:16px;width:20px;height:24px;border-radius:6px 6px 10px 10px;background:repeating-linear-gradient(90deg,#bd945b 0 2px,#e8d2aa 2px 4px);box-shadow:0 2px 4px #62492a33;pointer-events:none}
.bell-tassel:before{content:'';position:absolute;top:-4px;left:2px;right:2px;height:7px;border-radius:50%;background:#bb9155}
.bell-dinner{mask-image:linear-gradient(transparent 0 16%,#000 26% 72%,transparent 84%);-webkit-mask-image:linear-gradient(transparent 0 16%,#000 26% 72%,transparent 84%)}
.bell-game{background:#eee9df}

.bell-art{transform-origin:50% 12%}

/* A single invitation before entering the calendar. */
.welcome-pending #calendar{visibility:hidden}
.welcome-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;padding:24px 16px;overflow:auto;background:transparent;color:#414c44}
.welcome-dialog[open]{display:grid;place-items:center}.welcome-dialog::backdrop{background:#102139a8}
.welcome-card{width:min(100%,420px);padding:28px 30px 24px;border:1px solid #c6ad7c;outline:1px solid #d6c39e;outline-offset:-9px;border-radius:24px;background:radial-gradient(ellipse at 10% 0,#fffdf6,#f4eee1);box-shadow:0 20px 80px #07122255;text-align:center}
.welcome-star{font-size:30px;color:#af884c}.welcome-kicker{font:9px 'Christmas Iansui',system-ui;letter-spacing:.2em;margin:8px 0 18px}.welcome-card h1{font-size:39px;line-height:1.13;text-shadow:none}.welcome-intro{font:14px/1.5 'Christmas Iansui',Georgia,serif;margin:14px 0 28px;color:#667067}
.welcome-card fieldset{border:0;padding:0;margin:0 0 22px;text-align:left}.welcome-card legend,.welcome-zone-label{display:block;text-align:left;font:13px 'Christmas Iansui',system-ui;margin-bottom:10px}.welcome-languages{display:grid;grid-template-columns:1fr 1fr;gap:8px}.welcome-languages label{position:relative;cursor:pointer}.welcome-languages input{position:absolute;opacity:0}.welcome-languages span{display:grid;place-items:center;min-height:46px;border:1px solid #c9c5b6;border-radius:12px;font:14px 'Christmas Iansui',system-ui;background:#fffaf1}.welcome-languages input:checked+span{border-color:#94733f;background:#e8e5d8;color:#394d40;box-shadow:inset 0 0 0 1px #94733f}.welcome-languages input:focus-visible+span{outline:2px solid #94733f;outline-offset:3px}
.welcome-card select{width:100%;min-height:48px;padding:10px 12px;border:1px solid #c6bca7;border-radius:12px;background:#fffaf2;color:#414c44;font:14px 'Christmas Iansui',system-ui}.welcome-detected{font:11px/1.5 'Christmas Iansui',system-ui;text-align:left;color:#74776c;margin:8px 0 22px}.welcome-note{font:13px/1.6 'Christmas Iansui',system-ui;margin:0 0 20px}.welcome-enter{width:100%;min-height:49px;border-radius:28px;border:1px solid #a58953;background:#405448;color:#fff9eb;font:15px 'Christmas Iansui',system-ui;padding:13px 10px}.welcome-private{font:10px/1.5 'Christmas Iansui',system-ui;color:#797c71;margin:13px 0 0}.welcome-cancel{border:0;background:none;text-decoration:underline;min-height:44px;font:13px 'Christmas Iansui',system-ui;margin-top:5px}.welcome-cancel[hidden]{display:none}
.calendar-preferences{display:block;margin:0 0 16px auto;border:1px solid #bda66c70;border-radius:20px;background:#152c41;color:#ead7ad;padding:10px 16px;min-height:44px;font:12px 'Christmas Iansui',system-ui}
@media(max-width:420px){.welcome-card{padding:23px 24px 20px}.welcome-card h1{font-size:34px}.welcome-intro{margin-bottom:22px}}
@media(max-height:650px){.welcome-dialog{padding:12px}.welcome-card{padding:18px 24px}.welcome-star{font-size:22px}.welcome-kicker{margin:5px 0 10px}.welcome-card h1{font-size:30px}.welcome-intro{margin:10px 0 14px}.welcome-card fieldset{margin-bottom:14px}.welcome-detected{margin-bottom:12px}.welcome-note{margin-bottom:12px}}

/* A small, uniform camera move into the painted table: no tilt or skew. */
.bell-dinner{transform-origin:50% 58%;will-change:transform}
/* Quiet follow-up after the wish; watercolor paper and sage/gold accents. */
.progress-summary{font:12px/1.6 'Christmas Iansui',system-ui;color:#d8dfdf;text-align:center;margin:10px 16px 0}.reminder-launch{display:block;margin:8px auto 22px;background:none;color:#e6c785;border:0;text-decoration:underline;min-height:44px;font:12px 'Christmas Iansui',system-ui}.wish-followup{width:min(100%,350px);text-align:center;flex-shrink:0;margin-top:16px;font:12px/1.6 'Christmas Iansui',system-ui;color:#36463d}.wish-followup[hidden]{display:none}.wish-followup p{margin:0 0 8px}.wish-followup button{min-height:44px;padding:8px 16px;border:1px solid #b99a60;border-radius:24px;background:#f8f1df;color:#36463d;font:13px 'Christmas Iansui',system-ui}.wish-followup .reminder-later{background:none;border:0;text-decoration:underline}.reader:has(.wish-followup:not([hidden])){justify-content:flex-start;padding-top:55px;padding-bottom:25px}.reader .wish-card{flex-shrink:0}.reminder-dialog{box-sizing:border-box;width:min(430px,calc(100% - 28px));max-height:90svh;overflow:auto;border:1px solid #b99a60;border-radius:20px 16px 22px 17px;padding:28px;color:#36463d;background:radial-gradient(ellipse at top left,#dbe6d7aa,transparent 45%),radial-gradient(ellipse at bottom right,#efd4bd88,transparent 45%),#fbf5e9;box-shadow:0 20px 70px #12283a44;font:14px/1.65 'Christmas Iansui',system-ui}.reminder-dialog::backdrop{background:#182b3d88;backdrop-filter:blur(4px)}.reminder-close{float:right;border:0;background:none;font-size:24px;color:#36463d;width:44px;height:44px}.reminder-flower{font:40px 'Christmas Iansui',Georgia;color:#8e9c7b}.reminder-kicker{font-size:9px;letter-spacing:.17em;color:#8e6e31}.reminder-dialog h2{font:italic 30px/1.25 'Christmas Iansui',Georgia,'Songti TC',serif;letter-spacing:0}.reminder-form{display:grid;gap:8px;margin:20px 0}.reminder-form input{box-sizing:border-box;min-width:0;max-width:100%;font:18px 'Christmas Iansui',system-ui;padding:10px;border:1px solid #b8bca6;border-radius:8px;background:#fffaf1;color:#36463d}.reminder-form button{min-height:44px;border:1px solid #a5af94;background:#dfe7d7;color:#36463d;border-radius:24px;font:14px 'Christmas Iansui',system-ui}.reminder-zone,.reminder-feedback,.reminder-privacy,.reminder-disclaimer{font-size:12px;margin:4px 0 14px}.notification-preview{border-left:2px solid #b59b62;padding:10px 14px;margin:18px 0;background:#f5eddc88}.notification-preview>*{display:block}.notification-preview small{font-size:9px;letter-spacing:.12em;color:#7c663a}.notification-preview strong{font-size:13px}.reminder-dialog summary{cursor:pointer;min-height:44px;line-height:44px;text-decoration:underline}.reminder-dialog :focus-visible,.wish-followup :focus-visible{outline:2px solid #8f702e;outline-offset:3px}
.push-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.push-actions button{min-height:44px;padding:8px 14px;background:#f5eddd;border:1px solid #b99a60;border-radius:22px;color:#36463d;font:12px 'Christmas Iansui',system-ui}.push-actions [hidden]{display:none}.reminder-dialog button:disabled{opacity:.5;cursor:wait}

#candyFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#f8f3eb}.candy-mode #heading,.candy-mode #roomOrnament,.candy-mode #openWish,.candy-mode #invitation{display:none!important}.candy-mode .back-calendar,.candy-mode .selected-date{z-index:8}.candy-mode .veil{z-index:11}.candy-mode .reader{z-index:12}.candy-mode:not([data-state=idle]) #candyFrame{visibility:hidden}
.candy-mode .room-setting,.mini-room[data-setting='10'] .room-setting{background:url('assets/candy-shop-sticks-hd.webp') center/100% 100% no-repeat;transform:none;transition:none}
.candy-mode:not([data-state='idle']) #candyFrame{visibility:visible;pointer-events:none}.candy-mode .veil{display:none}

#wineFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#f8f3eb}.wine-mode #heading,.wine-mode #roomOrnament,.wine-mode #openWish,.wine-mode #invitation{display:none!important}.wine-mode .back-calendar,.wine-mode .selected-date{z-index:8}.wine-mode .reader{z-index:12}.wine-mode .veil{display:none}.wine-mode:not([data-state=idle]) #wineFrame{pointer-events:none}.wine-mode .room-setting,.mini-room[data-setting='13'] .room-setting{background:url('assets/mulled-wine-kitchen-clear.webp') center/100% 100% no-repeat;transform:none}.mini-room[data-setting='13'] .mini-ornament{display:none}
/* Keep the empty ceramic mug present in the castle window and zoom replica. */
.mini-room[data-setting='13'] .room-setting:after{content:'';position:absolute;left:69%;bottom:22.5%;width:29%;aspect-ratio:1;background:url('assets/wine-ceramic-empty.webp') center/contain no-repeat;filter:drop-shadow(0 2px 1px #51372360);pointer-events:none}
.mini-room[data-setting='13'] .room-setting:after{filter:none}
.mini-room[data-setting='13'] .room-setting:before{content:'';position:absolute;left:74.22%;bottom:22.5%;width:14.21%;aspect-ratio:16/1;background:radial-gradient(ellipse,#493522a8,transparent 76%);transform:translateY(-70%);pointer-events:none}
.mini-room[data-setting='13'] .room-setting:after{left:65%;bottom:18.5%;width:32%;background-image:url('assets/wine-ceramic-saucer.webp');filter:none}
.mini-room[data-setting='13'] .room-setting:before{display:none}
#moonFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#c8d4e0}.moon-mode #heading,.moon-mode #roomOrnament,.moon-mode #openWish,.moon-mode #invitation{display:none!important}.moon-mode .back-calendar,.moon-mode .selected-date{z-index:8}.moon-mode .reader{z-index:12}.moon-mode .veil{display:none}.moon-mode:not([data-state=idle]) #moonFrame{pointer-events:none}
.moon-mode .room-setting,.mini-room[data-setting='14'] .room-setting{background:url('assets/moon-alcove-clear.webp') center/100% 100% no-repeat}
/* Day 15 uses the same opaque cutout in the castle and interactive scene. */
.mini-room[data-setting='14'] .mini-ornament{left:20%;top:40%;bottom:auto;width:60%;aspect-ratio:.927;background:url('assets/moon-musicbox.webp') center/contain no-repeat;mix-blend-mode:normal;mask-image:none;opacity:1;transform:none;filter:none;z-index:3}
.mini-room[data-setting='14'] .mini-ornament:before{left:47%;bottom:94%;height:200%;width:2px;background:linear-gradient(90deg,#9b762e,#eed398,#ae873d)}
.mini-room[data-setting='14'] .mini-ornament:after{content:'★';position:absolute;left:67%;top:24%;width:22%;height:36%;padding-top:16%;box-sizing:border-box;text-align:center;color:#c79f48;font-size:clamp(10px,4vw,56px);line-height:1;background:linear-gradient(#c0a05b,#c0a05b) 50% 0/1px 55% no-repeat;text-shadow:1px 1px #fff1be}
/* Scale detail with the miniature room, not fixed pixels enlarged by the camera. */
.mini-room[data-setting='14']{container-type:inline-size}
.mini-room[data-setting='14'] .mini-ornament:before{width:.513cqw;transform:translateX(-50%)}
.mini-room[data-setting='14'] .mini-ornament:after{width:13.333cqw;height:23.077cqw;padding-top:8.974cqw;font-size:14.359cqw;background-size:.513cqw 11.538cqw;text-shadow:.256cqw .256cqw #fff1be}
.mini-room[data-setting='14'] .mini-ornament:before{background:#b99a59 url('assets/moon-cord-texture.svg') center/100% 24.615cqw repeat-y;box-shadow:none}
.mini-room[data-setting='14'] .mini-ornament:after{background-image:url('assets/moon-cord-texture.svg');background-position:50% 0;background-size:.513cqw 11.538cqw;background-repeat:no-repeat}
#trainFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#dce3ef}.train-mode #heading,.train-mode #roomOrnament,.train-mode #openWish,.train-mode #invitation{display:none!important}.train-mode .back-calendar,.train-mode .selected-date{z-index:8}.train-mode .reader{z-index:12}.train-mode .veil{display:none}.train-mode:not([data-state=idle]) #trainFrame{pointer-events:none}.train-mode .room-setting,.mini-room[data-setting='15'] .room-setting{background:url('assets/santa-express-landscape.webp') center/100% 100% no-repeat}.mini-room[data-setting='15'] .mini-ornament{display:none}

.train-mode .selected-date{color:#f3ddb0}
.mini-room[data-setting='15'] .room-setting:after,.train-mode .room-setting:after{content:'';position:absolute;inset:0;background:url('assets/santa-express-train.webp') center/100% 100% no-repeat;transform:translateY(-12.3%) scale(.83);transform-origin:100% 67.3%;pointer-events:none}

#angelFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#f5f0e6}.angel-mode #heading,.angel-mode #roomOrnament,.angel-mode #openWish,.angel-mode #invitation{display:none!important}.angel-mode .back-calendar,.angel-mode .selected-date{z-index:8}.angel-mode .reader{z-index:12}.angel-mode .veil{display:none}.angel-mode:not([data-state=idle]) #angelFrame{pointer-events:none}.angel-mode .room-setting,.mini-room[data-setting='16'] .room-setting{background:url('assets/guardian-angel-storybook.webp') center/cover no-repeat}.mini-room[data-setting='16'] .mini-ornament{display:none}

#gingerFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#f4ead6}.ginger-mode #heading,.ginger-mode #roomOrnament,.ginger-mode #openWish,.ginger-mode #invitation{display:none!important}.ginger-mode .back-calendar,.ginger-mode .selected-date{z-index:8}.ginger-mode .reader{z-index:12}.ginger-mode .veil{display:none}.ginger-mode:not([data-state=idle]) #gingerFrame{pointer-events:none}.ginger-mode .room-setting,.mini-room[data-setting='17'] .room-setting{background:url('assets/ginger-friend-table.webp') center/cover no-repeat}.mini-room[data-setting='17'] .mini-ornament{background:url('assets/ginger-friend-plain.webp') center/contain no-repeat;mix-blend-mode:normal;mask:none}

#lanternFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#cbd6dd}.lantern-mode #heading,.lantern-mode #roomOrnament,.lantern-mode #openWish,.lantern-mode #invitation{display:none!important}.lantern-mode .back-calendar,.lantern-mode .selected-date{z-index:8}.lantern-mode .reader{z-index:12}.lantern-mode .veil{display:none}.lantern-mode:not([data-state=idle]) #lanternFrame{pointer-events:none}.lantern-mode .room-setting,.mini-room[data-setting='18'] .room-setting{background:url('assets/lantern-winter.webp') center/cover no-repeat}.mini-room[data-setting='18'] .mini-ornament{display:none}

.mini-room[data-setting='18'] .mini-stocking,.lantern-mode #stocking3d,.lantern-mode .stocking-assembly{display:none!important}

#ledFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#304c65}.led-mode #heading,.led-mode #roomOrnament,.led-mode #openWish,.led-mode #invitation{display:none!important}.led-mode .back-calendar,.led-mode .selected-date{z-index:8}.led-mode .selected-date{color:#eddbb4}.led-mode .reader{z-index:12}.led-mode .veil{display:none}.led-mode:not([data-state=idle]) #ledFrame{pointer-events:none}.led-mode .room-setting,.mini-room[data-setting='19'] .room-setting{background:url('assets/led-window-night.webp') center/cover no-repeat}.mini-room[data-setting='19'] .mini-ornament{display:none}

.mode-switch{display:inline-block;color:#71603e;font-size:13px;margin:8px 0;text-underline-offset:4px}.mode-switch:focus-visible{outline:2px solid #af893f;outline-offset:5px}
.wish-followup .reminder-invite{margin-top:12px}

#foxFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#304c65}.fox-mode #heading,.fox-mode #roomOrnament,.fox-mode #openWish,.fox-mode #invitation{display:none!important}.fox-mode .back-calendar,.fox-mode .selected-date{z-index:8}.fox-mode .selected-date{color:#eddbb4}.fox-mode .reader{z-index:12}.fox-mode .veil{display:none}.fox-mode:not([data-state=idle]) #foxFrame{pointer-events:none}.fox-mode .room-setting,.mini-room[data-setting='20'] .room-setting{background:url('assets/fox-window.webp') center/cover no-repeat}.mini-room[data-setting='20'] .mini-ornament{display:none}

#busFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#304c65}.bus-mode #heading,.bus-mode #roomOrnament,.bus-mode #openWish,.bus-mode #invitation{display:none!important}.bus-mode .back-calendar,.bus-mode .selected-date{z-index:8}.bus-mode .selected-date{color:#eddbb4}.bus-mode .reader{z-index:12}.bus-mode .veil{display:none}.bus-mode:not([data-state=idle]) #busFrame{pointer-events:none}.bus-mode .room-setting,.mini-room[data-setting='21'] .room-setting{background:url('assets/bus-arrival.webp') center/cover no-repeat}.mini-room[data-setting='21'] .mini-ornament{display:none}

#starwishFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#304c65}.starwish-mode #heading,.starwish-mode #roomOrnament,.starwish-mode #openWish,.starwish-mode #invitation{display:none!important}.starwish-mode .back-calendar,.starwish-mode .selected-date{z-index:8}.starwish-mode .selected-date{color:#eddbb4}.starwish-mode .reader{z-index:12}.starwish-mode .veil{display:none}.starwish-mode:not([data-state=idle]) #starwishFrame{pointer-events:none}.starwish-mode .room-setting,.mini-room[data-setting='22'] .room-setting{background:url('assets/moon-alcove-clear.webp') center/cover no-repeat}.mini-room[data-setting='22'] .mini-ornament{display:none}

.starwish-mode .room-setting,.mini-room[data-setting='22'] .room-setting{background:url('assets/radio-perspective-watercolor.webp') center/cover no-repeat}.starwish-mode .selected-date{color:#6c5031}

#postcardFrame{position:absolute;inset:0;width:100%;height:100%;border:0;z-index:6;background:#304c65}.postcard-mode #heading,.postcard-mode #roomOrnament,.postcard-mode #openWish,.postcard-mode #invitation{display:none!important}.postcard-mode .back-calendar,.postcard-mode .selected-date{z-index:8}.postcard-mode .selected-date{color:#eddbb4}.postcard-mode .reader{z-index:12}.postcard-mode .veil{display:none}.postcard-mode:not([data-state=idle]) #postcardFrame{pointer-events:none}.postcard-mode .room-setting,.mini-room[data-setting='23'] .room-setting{background:url('assets/christmas-castle-night.webp') center/cover no-repeat}.mini-room[data-setting='23'] .mini-ornament{display:none}
.postcard-mode .selected-date{color:#775f38}

/* Give the timezone chevron breathing room without reducing the tap target. */
.welcome-card select{
 appearance:none;-webkit-appearance:none;padding-right:46px;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23414c44' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 18px center;background-size:14px 14px;
}

/* Quiet gilt star links for the calendar's utility controls. */
.calendar-preferences,.reminder-launch{
 display:flex;align-items:center;justify-content:center;gap:11px;
 min-height:44px;max-width:100%;padding:9px 12px;
 border:0;border-radius:0;background:transparent;box-shadow:none;
 color:#ead5a4;text-decoration:none;font:13px/1.5 'Christmas Iansui',Georgia,'Songti TC',serif;
 letter-spacing:.025em;cursor:pointer;transition:color .18s,text-shadow .18s;
}
.calendar-preferences:before,.calendar-preferences:after,
.reminder-launch:before,.reminder-launch:after{
 content:'';display:block;flex:0 0 13px;width:13px;height:17px;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%239e783b'/%3E%3Cstop offset='.45' stop-color='%23f6e1a5'/%3E%3Cstop offset='1' stop-color='%23bc9652'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 1 10 7 15 10 10 12 8 19 6 12 1 10 6 7Z' fill='url(%23g)'/%3E%3C/svg%3E") center/contain no-repeat;
}
.calendar-preferences:hover,.reminder-launch:hover{color:#fff0cb;text-shadow:0 0 9px #e8c67c44}
.calendar-heading .reminder-launch{margin:4px auto 0}
.calendar-preferences:active,.reminder-launch:active{color:#c6a56a}
.calendar-preferences:focus-visible,.reminder-launch:focus-visible{outline:1px solid #ddc188;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.calendar-preferences,.reminder-launch{transition:none}}

/* A faint watercolor tree is printed beneath the welcome-card content. */
.welcome-card{position:relative;isolation:isolate}
.welcome-card:before{content:'';position:absolute;inset:8% 5% 6%;z-index:-1;background:url('assets/candy-tree-hd.webp') center/contain no-repeat;opacity:.075;filter:saturate(.65);mix-blend-mode:multiply;pointer-events:none;border-radius:inherit}

/* Chinese welcome headings use natural upright handwritten strokes. */
.welcome-dialog:lang(zh) .welcome-card h1{font-style:normal;line-height:1.35}

/* Full-bleed watercolor sky; castle and door coordinates retain their original scale. */
body.overview-mode{background:#101f36;isolation:isolate}
body.overview-mode:before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(#08182bd9,#101f36b8),url('assets/santa-christmas-sky.webp') center/cover no-repeat}

/* Feather the original illustration's night into the full-width sky. */
.castle-art{mask-image:linear-gradient(to bottom,transparent,#000 7%,#000 92%,transparent),linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);mask-composite:intersect}
.home-guide-launch{display:block;width:100%;min-height:44px;margin:16px 0 10px;padding:10px 12px;border:1px solid #b99a60;background:#fffaf0;color:#36463d;font:13px 'Christmas Iansui',system-ui;cursor:pointer}
.home-guide{width:min(92vw,560px);max-height:85vh;overflow:auto;border:1px solid #b99b63;border-radius:5px;padding:26px;background:#fcf6e9;color:#35473f;text-align:center;box-shadow:0 15px 45px #09182d80}.home-guide::backdrop{background:#101f36b8}.home-guide>p:first-of-type{font-size:10px;letter-spacing:.15em;color:#a37a38}.home-guide h2{font:italic 30px Georgia,serif}.home-guide p,.home-guide small{line-height:1.5}.home-guide-close{float:right;border:0;background:none;font-size:24px;color:inherit}.home-guide-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left;margin:20px 0}.home-guide-cards h3{font-size:13px}.home-guide-screen{display:grid;gap:7px;padding:12px;background:#fffdf8;border:1px solid #d7c5a0;box-shadow:2px 3px 0 #e8dbc1;font:12px/1.3 system-ui}.home-guide-screen span{color:#777;border-bottom:1px solid #e5ded1;padding-bottom:6px}.home-guide-screen strong{padding:6px;background:#f4efe5;border-radius:4px}.home-guide-done{margin-top:20px;padding:10px 28px;border:1px solid #b99b63;background:#3d5247;color:white;border-radius:3px}
.home-guide{width:min(92vw,430px);max-height:90dvh;padding:20px 24px}.home-guide h2{margin:8px 0;font-size:27px}.home-guide>p:not(.guide-kicker){font-size:13px;margin:8px 0}.guide-phone{width:min(190px,55vw);height:190px;margin:14px auto 10px;border:3px solid #bca77f;border-radius:20px;background:#f9f7f1;overflow:hidden;box-shadow:0 5px 15px #7a5d3224;text-align:left;font:12px system-ui;color:#364640}.guide-phone-bar{height:24px;padding:5px 10px;background:#eceae5;font-size:9px}.guide-phone-bar span{float:right}.guide-screen{height:calc(100% - 24px);position:relative;padding:10px;background:#faf8f2}.guide-url{border-radius:18px;background:#e9e8e3;padding:8px;color:#64675f}.guide-url b{float:right;color:#9b7135;font-size:22px;line-height:14px}.guide-site{text-align:center;padding:15px 0 0}.guide-site img,.guide-homescreen img{width:50px;border-radius:10px}.guide-site span{display:block;font:italic 12px Georgia;margin:5px}.guide-pointer{color:#a47a37;text-align:right;font-weight:600}.guide-menu-title{font-weight:bold;padding:5px}.guide-row{background:#efeee9;padding:10px 8px;border-bottom:1px solid white}.guide-highlight{outline:2px solid #b99453;background:#fff8e6}.guide-homescreen{padding:25px 12px;text-align:center;background:linear-gradient(#91acc4,#dae3df);height:100%;color:#fff;text-shadow:0 1px 3px #405366}.guide-homescreen span{display:block;margin-top:5px;font-size:10px}.guide-count{font:10px system-ui;letter-spacing:.12em;color:#9c783e;margin:7px 0}.home-guide .guide-title{font:italic 21px Georgia;margin:6px 0}.home-guide .guide-detail{min-height:42px;font-size:13px;margin:6px 0}.guide-navigation{display:flex;gap:10px;justify-content:center;margin:12px 0}.guide-navigation button{min-height:44px;padding:9px 18px;border:1px solid #b99b63;background:#fff9ed;color:#405448;font:13px 'Christmas Iansui',system-ui}.guide-navigation .guide-next{background:#405448;color:#fff9ed}.guide-navigation button:disabled{opacity:.45}.home-guide small{display:block;font-size:10px;color:#777b70}
