:root{color-scheme:light;--pine:#183f38;--ink:#17372f;--red:#a42e37;--cream:#fff9ec;--gold:#dca956;--line:#d6d4c2}*{box-sizing:border-box}body{margin:0;background:#f5efe1;color:var(--ink);font:1.05rem/1.55 ui-rounded,'Avenir Next',system-ui,sans-serif}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,.button{min-height:48px;padding:.65rem 1.05rem;border:1px solid var(--pine);border-radius:12px;background:var(--pine);color:white;font-weight:650;cursor:pointer}button:hover,.button:hover{filter:brightness(1.13)}button:disabled{opacity:.55;cursor:default}button.secondary{background:transparent;color:var(--pine);border-color:#9eaea1}button.danger{background:var(--red);border-color:var(--red)}button.small{padding:.4rem .7rem;font-size:.95rem}a{color:#8a2631;text-underline-offset:.2em}header{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--pine);color:var(--cream);padding:1.1rem max(1rem,calc((100vw - 1120px)/2));border-bottom:4px solid var(--gold)}#brand{color:var(--cream);text-decoration:none;font:700 1.65rem/1.15 Georgia,serif;white-space:nowrap}#brand span{display:block;font: .85rem/1.6 system-ui;letter-spacing:.05em}#identity{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}#identity button{border-color:#a3b8a8}main{max-width:1120px;margin:auto;padding:1.25rem 1rem 3rem;min-height:75vh}h1,h2,h3{font-family:Georgia,serif;line-height:1.2}h1{font-size:clamp(2rem,5vw,3.3rem);margin:1rem 0}h2{font-size:1.65rem}h3{font-size:1.3rem;margin:.4rem 0 .8rem}p{margin:.65rem 0 1rem}.eyebrow{text-transform:uppercase;font-size:.85rem;letter-spacing:.14em;font-weight:750;color:#8a2631}.muted{color:#53675c}.intro{max-width:640px}.panel,.card{background:var(--cream);padding:1.2rem;border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 0 #dedccf}.panel{margin:1rem 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}.row{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.stack{display:grid;gap:.7rem}.picker{max-width:550px;margin:2rem auto}.picker button{font-size:1.3rem;text-align:left;padding:1rem}.nav{display:flex;gap:.5rem;flex-wrap:wrap;margin:.5rem 0 1.25rem}.nav button{background:var(--cream);color:var(--pine);border-color:var(--line)}.nav button[aria-current]{background:var(--pine);color:white}.names{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.65rem}.names button{text-align:left;background:#e4ece1;color:var(--pine);border:1px dashed #869a86}.scene{position:relative;border:5px solid #ece0c5;outline:1px solid #b7bda9;border-radius:22px;overflow:hidden;background:#173d4c;margin:1rem 0;aspect-ratio:900/560;isolation:isolate}.scene>svg{width:100%;height:100%;display:block}.hotspot{position:absolute;transform:translate(-50%,-50%);width:48px;height:48px;min-height:48px;padding:3px;border:0;background:transparent;color:inherit;border-radius:50%;filter:drop-shadow(0 2px 2px #1c2e2b99)}.hotspot svg{width:100%;height:100%}.hotspot:hover,.hotspot:focus-visible{outline:3px dashed #ffdfa0;background:#fff5}.scene-caption{font-size:.95rem;margin:-.3rem 0 1rem}
/* Draw cards keep the giver, recipient, and action on separate lines. */
.home-actions{align-items:start}
.home-actions>.panel{margin:.5rem 0 1rem}
.panel>h2:first-child{margin-top:0}
.draw-group{margin:1.2rem 0}
.draw-group>h3{font:700 1.05rem/1.4 ui-rounded,system-ui,sans-serif;margin:0 0 .65rem}
.slip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:.8rem;max-width:760px}
.slip{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.35rem;min-width:0;min-height:155px;padding:1.2rem 1.4rem 1.2rem 1.1rem;text-align:left;background:#fff5db;color:#4c3c21;border:1px solid #c3ad80;border-radius:6px;box-shadow:2px 4px 0 #dfd0ae;position:relative;overflow-wrap:anywhere}
.slip::after{content:'';position:absolute;top:0;right:0;width:18px;height:18px;border-radius:0 5px 0 4px;background:linear-gradient(45deg,#e2cda4 0 48%,#f6eedc 50% 100%);pointer-events:none}
.slip:hover{filter:none;box-shadow:2px 6px 0 #d4c29b;background:#fff0ce}
.slip-label{font-size:.95rem;line-height:1.4;font-weight:550;color:#6b573d}
.slip-title{display:block;font:700 1.75rem/1.2 Georgia,serif;margin:.1rem 0}
.slip-action{display:block;font-size:.95rem;line-height:1.4;font-weight:650}
.slip.is-known{background:#f7f5e9;border-color:#a7b3a0;box-shadow:2px 4px 0 #d6dccd}
.slip.is-known .slip-action{text-decoration:underline;text-underline-offset:.2em;color:var(--pine)}
.shopping-section{margin:2rem 0}
.draw-dialog{max-width:520px}
.draw-paper{position:relative;padding:2.2rem 1.25rem;background:#fff4d8;border:1px solid #c5b187;border-radius:4px;box-shadow:0 5px 0 #e3d4b7;text-align:center;margin:1.2rem 0 1.6rem;overflow-wrap:anywhere}
.draw-paper::after{content:'';position:absolute;top:0;right:0;width:26px;height:26px;background:linear-gradient(45deg,#e1cea6 0 48%,#fff9ec 50% 100%);border-radius:0 2px 0 4px;pointer-events:none}
.draw-paper-label{font-size:1.1rem;color:#6b573d;margin:0 0 .5rem}
.draw-paper h2{font-size:clamp(2.4rem,8vw,3.4rem);line-height:1.12;margin:0}
.draw-caption{margin:0 0 1.2rem}
.draw-actions{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center}
.draw-actions>button:first-child:not(:only-child){flex:1 1 auto}
.calendar-tree{display:grid;grid-template-columns:1.3fr 1fr;gap:1rem}.doors{display:grid;grid-template-columns:repeat(5,1fr);gap:.55rem}.door{background:#a5323b;border:2px dashed #f4c78d;position:relative;padding:.5rem .1rem;min-height:92px;font:700 1.3rem Georgia}.door:nth-child(3n){background:#2d6252}.door.opened{background:#e8dcc0;color:var(--pine)}.door svg{width:34px;height:34px;display:block;margin:0 auto}.door:disabled{background:#8a9c92;border-color:#c1c5b4}.door .found{position:absolute;right:4px;top:1px;color:#ffd47c}.tree{position:relative;min-height:540px;max-width:450px;margin:auto;width:100%}.tree>svg{position:absolute;width:100%;height:100%;inset:0}.piece{position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;padding:0;width:40px;height:44px;min-height:44px;filter:drop-shadow(1px 2px 1px #102c2780)}.piece svg{width:32px;height:36px;margin:4px}.piece:hover{transform:translate(-50%,-50%) scale(1.25)}.tree-list{max-height:250px;overflow:auto}.tree-list button{display:block;border:0;background:none;color:var(--pine);text-align:left;font-size:.95rem;text-decoration:underline;min-height:44px}.wish{margin:1rem 0;overflow-wrap:anywhere}.wish-body{font-size:1.18rem;font-weight:650;white-space:pre-wrap}.note{white-space:pre-wrap}.badge{display:inline-block;padding:.2rem .6rem;background:#e3e9de;border-radius:30px;font-size:.9rem}.wish .row{margin-top:.7rem}.menu-day{border-top:3px solid var(--gold);padding-top:1rem}.dish{border-top:1px dashed var(--line);padding:.9rem 0}.dish:last-child{padding-bottom:0}form{display:grid;gap:.85rem}label{display:grid;gap:.3rem;font-weight:600}input,textarea,select{border:1px solid #8c9f91;padding:.75rem;border-radius:9px;min-width:0;max-width:100%;background:white;color:var(--ink);width:100%}textarea{min-height:100px}.checkbox{display:flex;align-items:center;gap:.5rem}.checkbox input{width:24px;height:24px}dialog{max-width:600px;width:calc(100% - 24px);max-height:90dvh;border:2px solid #809280;border-radius:20px;padding:1.5rem;background:var(--cream);color:var(--ink)}dialog::backdrop{background:#092b29b8;backdrop-filter:blur(3px)}dialog h2{margin-top:0}.reward-art{width:210px;height:210px;display:block;margin:1rem auto}.reward-art svg{width:100%;height:100%;filter:drop-shadow(0 5px 3px #57392426)}#notice{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);background:var(--pine);color:white;border-radius:12px;max-width:90vw;padding:.8rem 1.1rem;z-index:30;box-shadow:0 2px 16px #0003}#notice:empty{display:none}footer{padding:1rem;text-align:center;background:#e3e6d9;font-size:.9rem}footer span{display:block}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ca5b21;outline-offset:4px}.unfold{animation:unfold .45s ease-out}@keyframes unfold{from{transform:scaleY(.15) rotate(-4deg);opacity:.4}to{transform:none;opacity:1}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(max-width:650px){header{align-items:flex-start;padding:1rem}#brand{font-size:1.35rem}#identity{max-width:150px;font-size:.95rem}#identity button{font-size:.85rem;padding:.4rem .6rem}.calendar-tree{grid-template-columns:1fr}.doors{gap:.4rem}.door{min-height:82px}.scene{aspect-ratio:900/620;margin-left:-.3rem;margin-right:-.3rem}.scene>svg{height:100%;width:100%}.hotspot{width:44px;height:44px;min-height:44px}main{padding-top:.5rem}.nav{gap:.4rem}.nav button{padding:.5rem .75rem;font-size:.95rem}.grid{grid-template-columns:1fr}.tree-panel{margin-top:1rem}.tree{min-height:540px}.panel{padding:1rem}}

.personal-draw,.household-draw,.advent-home{margin:0 0 1rem}.personal-draw{border-top:4px solid var(--gold)}.personal-recipient{margin:.45rem 0 .85rem}.personal-recipient span,.personal-recipient strong{display:block}.personal-recipient strong{font:700 clamp(1.65rem,6vw,2.25rem)/1.15 Georgia,serif;overflow-wrap:anywhere}.personal-draw .row button{max-width:100%;white-space:normal}

.piece.tree-topper{width:58px;height:54px;z-index:1}

.bonus-doors{margin:0 0 1rem;border-left:4px solid var(--gold)}.bonus-doors .row button{max-width:100%;white-space:normal}

/* Christmas-card welcome. Keep artwork decorative and the join action in normal reading order. */
.welcome-card,.hearth-picker{background:#fff8e8;border:1px solid #c8aa78;border-radius:22px;box-shadow:0 14px 34px #47352521}
.welcome-card{max-width:650px;margin:1.15rem auto 2rem;overflow:hidden}
.welcome-picture{background:#244846;border-bottom:4px double #b68a49;overflow:hidden}
.welcome-picture img{display:block;width:100%;height:auto;aspect-ratio:760/292}
.welcome-paper{padding:clamp(1rem,4vw,2rem) clamp(1rem,6vw,3rem) clamp(1rem,4vw,1.8rem);text-align:center}
.welcome-paper .eyebrow,.hearth-picker .eyebrow{margin:0 0 .3rem}
.welcome-paper h1,.hearth-picker h1{font-family:Georgia,'Times New Roman',serif;color:#25443b;font-weight:700;letter-spacing:-.032em}
.welcome-paper h1{font-size:clamp(1.9rem,6vw,3.2rem);line-height:1.02;margin:0 auto .7rem;text-wrap:balance}
.welcome-intro{max-width:36ch;margin:.6rem auto 1rem;color:#4e4639;line-height:1.45;text-wrap:pretty}
.welcome-paper form{display:grid;gap:.5rem;max-width:360px;margin:0 auto;text-align:left}
.welcome-paper label,.welcome-ready{font-weight:700}
.welcome-ready{margin:0;text-align:center;color:#365549}
.welcome-paper input:not([type=hidden]){background:#fffdfa;border-color:#9e8c6a}
.welcome-paper button{background:#8b3040;border-color:#702534;text-align:center;font-size:1.06rem;padding:.74rem 1rem}
.welcome-foot{max-width:36ch;font-size:.9rem;color:#64584a;line-height:1.4;margin:.76rem auto 0}
.hearth-picker{border-top:4px solid #9c4550;padding:clamp(1rem,4vw,1.8rem);margin:1.15rem auto 2rem}
.hearth-picker h1{margin:.15rem 0 .55rem;line-height:1.1}
.hearth-thread{float:right;color:#996323;padding-inline:.25rem;font-size:1.4rem}
@media(max-width:440px){.welcome-card,.hearth-picker{margin-top:.6rem}.welcome-paper{padding-top:1rem}.hearth-picker button{font-size:1.08rem;padding:.7rem .9rem}}
@media(max-width:360px){.welcome-picture img{height:92px;object-fit:cover}.welcome-paper{padding-top:.8rem}.welcome-intro{margin-bottom:.65rem}.welcome-paper .eyebrow{font-size:.72rem;letter-spacing:.1em}}

/* Invitations remain secondary to the draw on the family home. */
.share-invite-line{margin:.8rem 0 1.15rem}
.household-share label,#santa-invite-result label{display:block;margin-top:.65rem;font-weight:700}
.household-share-actions,#santa-invite-result button{margin-top:1rem}
.household-invite-admin{border-top:1px solid var(--line);margin-top:1.4rem;padding-top:.8rem}
.household-invite-admin button{margin-top:.55rem}
.family-household{margin:.85rem 0 1.25rem}
.family-household p{margin:0 0 .35rem}
#santa-roster summary{font-weight:750;cursor:pointer}
#santa-roster form{max-width:28rem;margin-block:1rem;border:1px solid var(--line);border-radius:12px;padding:1rem;gap:.4rem}
#santa-roster form h3,#santa-roster form p{margin:.15rem 0}

/* The first opening is a short, illustrated interlude before collecting. */
dialog.advent-scroll{background:transparent;border:0;padding:0;width:min(470px,calc(100vw - 1.6rem));box-shadow:none}
.scroll-paper{position:relative;text-align:center;margin:8px 0;padding:1rem clamp(1.05rem,5vw,2.3rem) 1.2rem;color:#4d302c;background:radial-gradient(ellipse at 50% 36%,#fff7e5 35%,#ebcd96 100%);border:1px solid #af7d47;border-radius:20px 12px 19px 12px;box-shadow:inset 0 0 0 5px #b3834a26;animation:scroll-appear 250ms ease-out}
.scroll-paper::before,.scroll-paper::after{content:"";position:absolute;left:4%;right:4%;height:6px;border-radius:60%;background:#a77b4f55;pointer-events:none}
.scroll-paper::before{top:4px}.scroll-paper::after{bottom:4px}
.scroll-garnish{display:flex;justify-content:center;align-items:center;gap:.75rem;color:#9a6324;font-size:1.5rem;height:49px}
.peppermint{width:31px;height:48px;transform:rotate(-17deg)}
.peppermint:last-child{transform:scaleX(-1) rotate(-17deg)}
.scroll-paper .eyebrow,.scroll-source{margin:.2rem 0}
.scroll-paper h2{margin:.1rem 0 .65rem;font:700 clamp(1.3rem,5.5vw,1.8rem)/1.15 Georgia,serif;color:#274a3c}
.scroll-paper blockquote{font:italic 700 clamp(1.25rem,5.7vw,1.7rem)/1.23 Georgia,serif;margin:.65rem 0;text-wrap:balance}
.scroll-source{font-size:.9rem;color:#65432d}
#scroll-continue{background:#8b3040;border-color:#762536;margin-top:.85rem}
.scroll-later{margin-top:.4rem}
.scroll-later button{background:transparent;border-color:transparent;color:#553830}
@keyframes scroll-appear{from{opacity:.1;transform:translateY(7px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.scroll-paper{animation:none}}

.coal-help{margin:1.7rem 0 .5rem;text-align:center}
.coal-help button{color:#69323a;border-color:#c8aa78;background:#fff8e8}
.coal-dialog h2{margin-bottom:.35rem}
#santa-feedback summary{font-weight:750;cursor:pointer}
#santa-feedback-list article{background:#fff8e8;border:1px solid var(--line);border-radius:14px;margin:.75rem 0;padding:.85rem}
#santa-feedback-list h3{margin:.1rem 0}
.coal-report-text{white-space:pre-wrap;overflow-wrap:anywhere}
#santa-feedback-list label{display:block;margin:.55rem 0 .2rem}
#santa-feedback-list details{margin-top:.65rem}

.shopping-for{margin:.1rem 0 .35rem}
.bonus-scene{margin-top:1.5rem}

.santa-letter{position:relative;margin:1rem 0;padding:1rem clamp(1rem,4vw,1.6rem);border:1px solid #c6a264;border-radius:5px 10px 8px 13px;background:repeating-linear-gradient(transparent 0 1.64rem,#a6623a16 1.64rem 1.7rem),#fff4d9;color:#4d3124;box-shadow:1px 3px 0 #87623c29}
.santa-letter summary{cursor:pointer;color:#792e3b;font:italic 700 clamp(1.18rem,5.5vw,1.58rem)/1.25 Georgia,serif}
.santa-letter-stamp{display:inline-block;margin:0 .4rem 0 .15rem;color:#792e3b;rotate:-12deg}
.santa-letter-greeting,.santa-letter-signoff{font-style:italic;font-family:Georgia,serif}
.santa-letter-greeting{margin-bottom:.2rem}
.santa-letter-signoff{margin-bottom:.2rem}
.santa-letter-signoff strong{display:inline-block;rotate:-4deg;font:italic 700 1.45rem "Snell Roundhand","Segoe Script",Georgia,serif;color:#792e3b}
.santa-checklist{list-style:none;padding:0;margin:.6rem 0}
.santa-checklist li{position:relative;padding-left:1.55rem;margin:.4rem 0}
.santa-checklist li::before{content:"";position:absolute;top:.32em;left:.15rem;width:.78em;height:.78em;border:1.5px solid #792e3b;border-radius:2px 4px 3px 2px;rotate:-8deg}

/* A quick flurry over the illustration only. Never overlays the sign-in form. */
.welcome-picture{position:relative}
.welcome-snow{position:absolute;inset:0;overflow:hidden;pointer-events:none;user-select:none}
.welcome-snow span{position:absolute;top:-1.2em;color:#fff9ea;font:1rem/1 Georgia,serif;text-shadow:0 1px 3px #244846;opacity:0;animation:welcome-flurry 4.6s ease-out both}
.welcome-snow span:nth-child(1){left:7%;font-size:.9rem;--drift:22px}
.welcome-snow span:nth-child(2){left:17%;font-size:1.35rem;animation-delay:.16s;--drift:36px}
.welcome-snow span:nth-child(3){left:32%;font-size:.7rem;animation-delay:.08s;--drift:18px}
.welcome-snow span:nth-child(4){left:43%;font-size:1.2rem;animation-delay:.23s;--drift:35px}
.welcome-snow span:nth-child(5){left:55%;font-size:.75rem;animation-delay:.12s;--drift:21px}
.welcome-snow span:nth-child(6){left:66%;font-size:1.4rem;animation-delay:.24s;--drift:36px}
.welcome-snow span:nth-child(7){left:79%;font-size:.85rem;animation-delay:.06s;--drift:19px}
.welcome-snow span:nth-child(8){left:91%;font-size:1.3rem;animation-delay:.18s;--drift:16px}
@keyframes welcome-flurry{0%{opacity:0;transform:translate(0,0) rotate(0)}18%{opacity:.83}67%{opacity:.76}100%{opacity:0;transform:translate(var(--drift),12rem) rotate(38deg)}}
@media(prefers-reduced-motion:reduce){.welcome-snow{display:none}}
.test-ribbon{margin:0;padding:.35rem .75rem;text-align:center;background:#f0ddb2;color:#4d3124;font-size:.82rem;font-weight:750}
