/* v0.13 — Christmas storybook visual pass. All artwork is local. */
:root{--cream:#fff2d9;--muted:#c4d1c5;--gold:#edce8c;--stroke:#e7c68a32}
.app{background:radial-gradient(ellipse at 72% 43%,#52785639,transparent 48%),radial-gradient(ellipse at 88% 5%,#32586a3d,transparent 40%),radial-gradient(ellipse at 30% 100%,#76513a22,transparent 60%),linear-gradient(130deg,#0b1c1c,#17352b 57%,#0a211f)}
.header{padding-bottom:18px;border-bottom:1px solid #ddc38a1f}.brand-symbol{box-shadow:0 0 20px #d6ae5b17,inset 0 1px 0 #ffffff20}.brand-name{letter-spacing:-.025em}.chapter{letter-spacing:.2em}.hero-title{font-size:clamp(52px,6.2vw,90px);line-height:1.02}.hero-description{color:#d0dbd0;line-height:1.8}.hero-cta{min-height:48px;border-radius:12px;background:linear-gradient(120deg,#fff0bd,#e6ba70);box-shadow:0 8px 26px #d3aa5830,inset 0 1px 0 #fff9}.hero-cta:hover{box-shadow:0 10px 34px #d3aa5850}.status-card{width:100%;min-width:0;margin-top:30px;border-color:#e8c98642;background:linear-gradient(135deg,#ecf5db0d,#122e238c)}.progress-track{height:7px}.status-foot{color:#c0cfc2}.scene-backlight{background:radial-gradient(ellipse at 52% 46%,#ddbd6b24, #59846815 38%,transparent 68%)}.winter-window{opacity:.5;border-color:#766346;box-shadow:0 0 0 3px #253933,0 0 70px #9bcfe12b,inset 0 0 25px #061c21}.scene-hint{bottom:3%;color:#f3e2c3;background:#122820d9}.page-footer{border-top:1px solid #ddc38a1c;padding-top:9px;color:#b6c8ba}
/* SVG scene: matched aspect ratio for artwork and interactive overlay. */
.fallback-tree{inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);height:91%;width:auto;max-width:100%;aspect-ratio:400/560;container-type:inline-size}.fallback-tree svg{display:block}.fallback-bauble{width:clamp(26px,8.4cqw,48px);font-size:clamp(13px,4.1cqw,22px);border-color:#f8e3aa9c;box-shadow:inset -6px -8px 13px #0005,0 2px 5px #0006}.fallback-bauble::before{content:'';position:absolute;left:38%;width:24%;height:13%;top:-9%;border-radius:2px;background:linear-gradient(90deg,#9d7639,#f0d492,#ad8245)}.fallback-bauble.locked{filter:saturate(.54) brightness(.8);color:#fff6e3}.fallback-bauble.available{outline:1px solid #ffe4a3;outline-offset:2px}.fallback-bauble.opened{border-color:#ffe4a3;box-shadow:0 0 15px #ffdb9270,inset -6px -8px 13px #0005}.fallback-bauble:focus-visible{outline:3px solid #fff1be;outline-offset:3px;z-index:5}.tree-lamp{opacity:.12;transition:opacity .45s}.tree-lamp.lit{opacity:1;filter:drop-shadow(0 0 3px #ffe0a1)}.fallback-presents{bottom:1%;gap:8px;align-items:end}.fallback-present{position:relative;min-height:38px;min-width:48px;padding:10px 5px 6px;border-radius:4px;background:linear-gradient(90deg,transparent 43%,var(--ribbon) 43% 57%,transparent 57%),repeating-linear-gradient(135deg,#ffffff00 0 6px,#ffffff13 6px 8px),var(--paper);color:#fff5df;text-shadow:0 1px 3px #000;box-shadow:inset 0 -7px 11px #0003,0 4px 11px #0006}.fallback-present::before{content:'';position:absolute;left:25%;top:-7px;width:50%;height:9px;border:3px solid var(--ribbon);border-radius:80% 80% 15% 15%}.fallback-present[hidden]{display:none}
/* Cards and games share a winter-blue/gold visual vocabulary. */
.modal{border-color:#e9ce9455;background:radial-gradient(ellipse at 50% 0,#5d775b25,transparent 58%),linear-gradient(150deg,#233c35,#122720 80%);box-shadow:0 30px 90px #020e0bd0,inset 0 1px 0 #fff1;scrollbar-color:#b89a65 #1b332a}.modal-title{color:#ffefd0}.modal-close{background:#253f36;color:#fff2d8}.activity-heading{font:500 23px/1.25 Georgia,serif;letter-spacing:-.015em}.activity-tab{min-height:36px;color:#e6dfcc}.activity-tab[aria-current=step]{box-shadow:0 2px 8px #0003}.activity-text{font-size:15px;line-height:1.75}.activity-nav{border-top:1px solid #e8c98624;padding-top:17px}.activity-nav button,.ghost-btn,.option-btn{min-height:44px}.option-btn:hover,.ghost-btn:hover{border-color:#f0d39a;background:#ffffff10}.letter-body{background:#f9efd9;color:#233b31;padding:17px 20px;border:1px solid #ffedc6;box-shadow:0 7px 18px #0003}.letter-body .activity-text{color:#263d34}.letter-envelope{position:relative;border-radius:7px;background:linear-gradient(32deg,transparent 49%,#a77f4455 50%,transparent 51%),linear-gradient(-32deg,transparent 49%,#a77f4455 50%,transparent 51%),linear-gradient(145deg,#f4e0b2,#d4ac70);color:#8a3f42}.letter-envelope::after{content:'✦';position:absolute;left:calc(50% - 13px);top:48%;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-size:16px;background:#9e384b;color:#f7dfaa;box-shadow:0 2px 5px #0004}.memory-board{gap:9px}.memory-tile{background:repeating-linear-gradient(45deg,#d5b8750a 0 1px,transparent 1px 10px),linear-gradient(145deg,#356052,#203c36);border:1px solid #e7c98880;box-shadow:0 3px 7px #0003}.memory-tile.flipped,.memory-tile.matched{background:#f4e1ba;color:#253c33}.memory-tile.matched{outline:2px solid #97d8ae;outline-offset:-2px}.catch-field,.rescue-map{background:radial-gradient(ellipse at top,#4c7597,#19364e 65%,#102638);border-color:#b6d6eb66}.catch-target{box-shadow:0 0 14px #f1d18b4a}.rescue-tile{min-height:86px;background:#b0d9f11a}.rescue-tile.searched{background:#d4be8240}.rescue-dog{background:#42647e30}.activity-figure img{max-height:330px;border:1px solid #e8ce9360;box-shadow:0 7px 20px #0004}.playlist-track{background:linear-gradient(135deg,#304d5b,#203b46);border-color:#c8deef30}
/* Shared ticket component used by the day and the wallet, without changing content. */
.voucher-ticket{--ticket-edge:#d9bd83;--ticket-top:#496454;--ticket-bottom:#183b31;position:relative;padding:23px 18px!important;border:1px solid var(--ticket-edge);border-radius:15px;background:radial-gradient(ellipse at top,var(--ticket-top),var(--ticket-bottom) 76%);box-shadow:inset 0 0 0 4px #081d2638,inset 0 0 0 5px #f3d48b33,0 8px 23px #0003;overflow-wrap:anywhere}.voucher-ticket[data-theme=frost]{--ticket-top:#486d8d;--ticket-bottom:#1b344e}.voucher-ticket[data-theme=cranberry]{--ticket-top:#814656;--ticket-bottom:#442533}.voucher-ticket[data-theme=pine]{--ticket-top:#53705b;--ticket-bottom:#243d34}.voucher-ticket .gift-result-mark{display:block;font-size:25px;color:#ffe3a3;margin-bottom:9px}.voucher-ticket strong{display:block;font:500 clamp(22px,5vw,30px)/1.2 Georgia,serif;color:#fff1d2}.voucher-ticket .activity-text{color:#f4ebda;text-align:center;font-size:14px}.voucher-ticket:not(.efendi-ticket)::after{content:'✦  BOO · CHRISTMAS 2026  ✦';display:block;border-top:1px dashed #f4d99b77;padding-top:12px;margin-top:16px;color:#e9cc94;font-size:10px;letter-spacing:.13em}.wallet-stack{gap:16px}.wallet-ticket{padding:12px;background:#10251f80}.wallet-ticket::before,.wallet-ticket::after{display:none}.wallet-ticket .voucher-ticket{margin-top:0}.companion-card{border-color:#a9cbe347;background:linear-gradient(135deg,#2b4856c9,#183334dc)}.companion-label{color:#f1d498}.companion-message{color:#eff6f7;font-size:13px}.companion-hint{font-size:12px;min-height:34px}.companion-collapse{height:32px;width:32px;flex-basis:32px}.finale-card{box-shadow:inset 0 0 0 4px #162b3870,inset 0 0 0 5px #e4c68c44}.finale-letter .activity-text{color:#293b41}
@media(max-width:760px){.header{padding-bottom:12px}.hero-title{font-size:clamp(38px,10vw,58px)}.hero-description{line-height:1.55}.scene-stage{height:clamp(360px,55svh,520px);min-height:360px;flex:none}.fallback-tree{height:96%;max-height:100%;width:min(94%, calc(clamp(360px,55svh,520px)*.68));max-width:100%;aspect-ratio:400/560;height:auto}.winter-window{opacity:.22}.companion-message{font-size:12px}.companion-card{padding:7px 10px}.mobile-cta{padding-bottom:8px}.mobile-meta button{min-height:34px}.modal{padding:22px 18px}.modal-title{font-size:28px}.activity-text{font-size:14px}.activity-heading{font-size:21px}.activity-tab{min-height:38px}.hero-cta{min-height:48px}.rescue-tile{min-height:76px}}
@media(max-width:430px){.page-shell{padding-inline:14px}.header-actions{gap:5px}.header-actions .icon-btn{width:36px;height:40px}.hero-content{padding-top:16px}.scene-stage{margin-inline:-14px}.fallback-tree{width:min(94%,calc(clamp(360px,55svh,520px)*.68))}.memory-board{gap:6px}.activity-nav{gap:7px}.companion-message{font-size:12px}.voucher-ticket{padding:18px 12px!important}}
@media(prefers-reduced-motion:reduce){.tree-lamp,.fallback-bauble,.letter-envelope,.companion-card *{animation:none!important;transition:none!important}}
/* Keep the date labels on presents unobstructed, including on narrow displays. */
.scene-stage:has(.fallback-tree:not([hidden])) .scene-hint{bottom:0;transform:translate(-50%,50%)}
.fallback-tree .fallback-presents{bottom:2.5%}
.fallback-present{min-height:44px;font-size:11px;font-weight:800;isolation:isolate}
.fallback-present:focus-visible{outline:2px solid #ffecb8;outline-offset:3px}
.fallback-star{opacity:.68}.fallback-tree.final .fallback-star,.fallback-tree.finale-luminous .fallback-star{opacity:1;filter:drop-shadow(0 0 11px #ffe0a4)}
.activity-tab[aria-current=step]{color:#233a2d}
@media(max-width:760px){.scene-stage:has(.fallback-tree:not([hidden])) .scene-hint{display:none}.fallback-present{min-height:34px}}
/* The mobile dev indicator must never cover navigation; it is not shown in live. */
@media(max-width:760px){.preview-label.visible{position:static;transform:none;align-self:center;margin:8px 0 0;text-align:center;font-size:9px;box-shadow:none;max-width:100%}}
@media(min-width:761px){.fallback-tree{width:min(100%,calc(max(635px,min(80vh,840px)) * .65));height:auto;max-height:100%}}
@media(min-width:761px) and (max-width:1050px){.fallback-tree{width:min(100%,calc(max(600px,75vh) * .65))}}
