/* The numbered doors form the branches; four small presents sit at the foot. */
.tree-calendar{max-width:940px;margin:0 auto;position:relative;padding:0 18px 20px}.tree-branches{position:relative;padding:12px 16px 30px}.tree-branches:before{content:'';position:absolute;inset:-30px -10px 0;background:#2e6650;clip-path:polygon(50% 0,100% 100%,0 100%);z-index:-1}.tree-row{display:flex;justify-content:center;gap:16px;margin:14px 0}.tree-row .door,.tree-presents .door{width:clamp(55px,11vw,120px);min-height:136px;padding:12px 6px 8px;flex-shrink:0;border:2px solid #e9d9a5;box-shadow:0 3px 0 #163f31}.tree-row .door strong,.tree-presents .door strong{font-size:2rem}.tree-row .door .illustration,.tree-presents .door .illustration{width:40px;height:44px;margin:3px 0}.tree-row .door-caption,.tree-presents .door-caption{font-size:.58rem}.tree-row .date,.tree-presents .date{font-size:.53rem}.top-star{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;margin:0 auto 12px;width:135px;height:135px;color:#654a25;isolation:isolate}.top-star>span{position:absolute;font-size:180px;line-height:1;color:#e6ba59;z-index:-1;text-shadow:0 4px #a97b31}.top-star strong{font:2.8rem Georgia,serif;line-height:1;margin-top:12px}.top-star small{font-size:.8rem;font-weight:bold}.top-star:hover{filter:brightness(1.08)}.tree-trunk{height:45px;width:74px;background:repeating-linear-gradient(90deg,#987045 0 12px,#a97e50 12px 16px);margin:-15px auto 0}.tree-presents{display:flex;justify-content:center;gap:20px;position:relative}.tree-presents .door{box-shadow:0 4px #b39c75;border-color:#d3b475}.tree-presents .door:before{content:'';position:absolute;top:0;left:0;right:0;height:5px;background:repeating-linear-gradient(45deg,#c54e4d 0 8px,#f6d583 8px 16px)}.tree-caption{text-align:center;font:italic 1.1rem Georgia,serif;color:#5e7257;margin:28px 0}.dice-stage{min-height:320px;border:2px solid #bccbab;border-radius:16px;padding:30px 15px;background:#e3ead7}.dice{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:30px 0}.die{width:76px;padding:4px 4px 8px;border:2px solid #bdc2ab;border-radius:12px;background:#fffbee;color:#254537;box-shadow:0 4px #b2bca3}.die.held{border-color:#b53b3c;background:#fce4d5;box-shadow:0 4px #a94a41}.die-face{font:64px/1.15 'Segoe UI Symbol','Arial Unicode MS',sans-serif;display:block}.die small{font-size:.75rem}.die:disabled{opacity:1;cursor:default}.chessboard{display:grid;grid-template-columns:repeat(8,1fr);border:7px solid #315a44;border-radius:8px;overflow:hidden;max-width:480px;margin:auto}.chess-square{aspect-ratio:1;position:relative;border:0;padding:0;display:grid;place-items:center;min-width:0;cursor:pointer}.chess-square.light{background:#f3ecd1}.chess-square.dark{background:#829d73}.chess-square.selected{box-shadow:inset 0 0 0 4px #c13e41;background:#f0d478}.chess-square small{position:absolute;left:3px;bottom:0;font-size:.58rem;color:#273e2b}.piece{font:clamp(25px,4vw,44px)/1 'Segoe UI Symbol','Arial Unicode MS',serif}.white-piece{color:#fffdf0;text-shadow:1px 0 #254332,-1px 0 #254332,0 1px #254332,0 -1px #254332}.black-piece{color:#213a2c}.hint{margin-top:15px}.treat-controls{display:flex;gap:10px;justify-content:center;margin:18px 0}.treat-controls button{padding:12px 15px;font-size:1rem;background:#fff8e6;border:2px solid #b6c3a4;border-radius:10px;color:#294d37}.treat-controls button[aria-pressed=true]{border-color:#b54843;background:#f8e2d2;box-shadow:0 3px #ae4844}.catch-button{display:block;width:100%;padding:20px;margin-top:18px;border:3px solid #a86c2e;border-radius:12px;background:#f0d49a;color:#65451e;font:bold 1.3rem 'Trebuchet MS',sans-serif;touch-action:manipulation}.catch-button.ready{background:#2c7647;color:white;border-color:#17512f}.game-section[data-game=reflex] .game-card progress{display:none}.game-section[data-game=saint] canvas{cursor:crosshair}.game-section[data-game=pong] canvas{cursor:ew-resize}.game-section[data-game=bunny] canvas{cursor:pointer}.game-section[data-game=chess] #play{margin-top:5px}.game-section .controls{margin-bottom:18px}#dice-help,#roll-count{font-size:.95rem;margin-bottom:0}
@media(max-width:680px){.tree-calendar{padding:0 0 15px}.tree-branches{padding:4px 0 15px}.tree-branches:before{inset:-15px -5px 0}.tree-row{gap:6px;margin:9px 0}.tree-row .door{width:calc((100vw - 72px)/6);min-height:89px;padding:8px 2px 5px;border-width:1px;border-radius:7px}.tree-row .date,.tree-row .door-caption{display:none}.tree-row .door strong{font-size:1.55rem}.tree-row .door .illustration{width:28px;height:33px}.tree-presents{gap:12px}.tree-presents .door{width:65px;min-height:105px;padding:9px 4px}.tree-presents .door-caption{display:none}.tree-presents .door strong{font-size:1.6rem}.tree-presents .date{font-size:.45rem}.top-star{width:100px;height:110px;margin-bottom:0}.top-star>span{font-size:145px}.top-star strong{font-size:2.3rem}.top-star small{font-size:.7rem}.tree-trunk{width:50px;height:35px;margin-top:-8px}.die{width:57px}.die-face{font-size:48px}.dice-stage{min-height:260px;padding:25px 7px}.dice{gap:5px;margin:25px 0}.chess-square .piece{font-size:33px}.treat-controls button{padding:12px;font-size:.9rem}.game-card .tiny{font-size:.8rem}.game-section[data-game=reflex] .game-card .score{grid-row:auto}}
@media(prefers-reduced-motion:reduce){.top-star{transition:none}}
.confetti{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;z-index:100}.celebration-icon{font-size:4rem;margin:0}.celebration .primary,.celebration .quiet,.letter .quiet{display:block;margin:18px auto}.celebration{border:3px solid #d4af5c}.yam-help{display:flex;gap:10px;align-items:center;justify-content:center;font-size:.95rem;line-height:1.5;margin-top:18px}.yam-help input{width:22px;height:22px;margin:0;accent-color:#b7474c}.recipe-stage{background:#f2e8d6;border:2px solid #c8b58e;padding:16px;border-radius:16px}.scene-caption{font-size:1.3rem;text-align:center}#recipe-list{padding:0;list-style:none;counter-reset:step;text-align:left}#recipe-list li{counter-increment:step;display:grid;grid-template-columns:1fr auto;gap:8px;background:#fffcf2;padding:14px;margin:12px 0;border:1px solid #d8cbaa;border-radius:12px}#recipe-list li span{grid-column:1/-1;line-height:1.5}#recipe-list li span:before{content:counter(step) '. ';font-weight:bold;color:#ae4446}#recipe-list button{font-size:.85rem;min-height:40px}.party-room{height:480px;position:relative;overflow:hidden;background:linear-gradient(#dbe8df 0 44%,#a47b5a 44% 45%,#e0c79d 45%);border:7px solid #396450;border-radius:16px}.party-room:before{content:'';position:absolute;left:7%;right:7%;top:48%;height:45%;background:#fef9ec;border:5px solid #c45c60;border-radius:45%;box-shadow:0 14px 0 #957553}.party-title{position:absolute;left:6%;right:6%;top:34%;font:bold 1rem Georgia;color:#295741;margin:0}.party-slot{position:absolute;transform:translate(-50%,-50%);width:24%;min-height:58px;padding:6px;border:2px dashed #547a68;border-radius:12px;background:#ffffffdf;color:#345a49;font-size:.8rem;line-height:1.2}.party-slot.placed{background:transparent;border-color:transparent;font-size:2rem;opacity:1}.slot-0{left:30%;top:66%}.slot-1{left:13%;top:66%;width:16%}.slot-2{left:47%;top:53%;width:21%}.slot-3{left:31%;top:85%;width:27%}.slot-4{left:72%;top:67%;width:32%}.slot-5{left:74%;top:50%}.slot-6{left:19%;top:23%;width:30%}.slot-7{left:69%;top:18%;width:36%}.party-items{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;justify-content:center}.party-item{padding:10px;border:2px solid #b5c5a8;border-radius:10px;background:#fff9e8;font-size:.95rem;color:#2c513d}.party-item[aria-pressed=true]{background:#f5d3ba;border-color:#ae4844}.party-item:disabled{opacity:.4}.clicker-stage{min-height:380px;padding:24px 12px;background:radial-gradient(circle,#e7d4ed,#c7dccd);border-radius:16px;border:3px solid #69826d}#clicker-time{font:bold 2rem monospace;color:#394a53}.villain{display:block;margin:20px auto;width:200px;height:200px;border:5px solid #806092;border-radius:40%;background:#faf3ff;box-shadow:0 10px #866c91;touch-action:manipulation;user-select:none}.villain span{font-size:110px;pointer-events:none}.villain.bonk{animation:bonk .12s ease-out}.villain:disabled{opacity:.65}@keyframes bonk{50%{transform:rotate(-7deg) scale(.92);background:#f9d88f}}@media(prefers-reduced-motion:reduce){.villain.bonk{animation:none}}@media(max-width:680px){.party-room{height:420px}.party-slot{font-size:.72rem;padding:4px}.party-title{font-size:.85rem}.recipe-stage{padding:10px}.party-item{font-size:.85rem}}
.confetti{max-width:none;border:0;border-radius:0;box-shadow:none;margin:0}.party-room:after{content:"";position:absolute;left:7%;top:8%;width:25%;height:23%;border:5px solid #fff9e8;background:linear-gradient(90deg,transparent 47%,#fff9e8 47% 53%,transparent 53%),linear-gradient(transparent 47%,#fff9e8 47% 53%,transparent 53%),#9ac9db;pointer-events:none}.party-slot,.party-title{z-index:1}.slot-3.placed{left:30%;top:67%}.slot-5.placed{left:72%;top:60%}.yam-help input{min-height:22px;padding:0;flex-shrink:0}@media(max-width:680px){.game-card>p:not(.tiny){display:block;grid-column:1/-1;grid-row:1;margin-bottom:12px}.game-card .score{grid-row:2/4}.slot-1{left:11%;width:18%;font-size:.72rem}.slot-0{left:33%;width:24%}.slot-3.placed{left:33%}}
/* Birthday room: illustrated objects and separate, unobstructed click targets. */
.game-section[data-game=birthday] .game-layout{grid-template-columns:220px minmax(0,720px);gap:28px}
.party-room{height:auto;min-height:0;aspect-ratio:600/520;background:#dce5d3;border:5px solid #406653;border-radius:22px;box-shadow:0 8px 0 #c8d2bc,0 20px 35px #27443812;isolation:isolate;cursor:default}
.party-room:before,.party-room:after{display:none}
.party-scenery{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.party-title{left:33%;right:20%;top:34%;margin:0;text-align:center;font:clamp(18px,2.4vw,28px)/1.15 Georgia,serif;color:#315443;pointer-events:none}
.party-title small{display:block;font:10px/1.4 'Trebuchet MS',sans-serif;letter-spacing:.12em;text-transform:uppercase;margin-bottom:5px;color:#657a59}
.party-title span{display:block;font:12px/1.4 'Trebuchet MS',sans-serif;margin-top:6px;color:#57705c}
.party-slot{width:22%;min-height:52px;height:12%;padding:5px;border:1.5px dashed #7d977c;border-radius:12px;background:#fffaf0e8;color:#375d49;font-size:.875rem;line-height:1.25;box-shadow:0 3px 0 #375d4910;z-index:2;cursor:pointer;transition:background .15s,border-color .15s}
.party-slot:not(:disabled):hover,.party-slot:focus-visible{background:#fff5cc;border-color:#b77c3c}
.party-slot.placed{padding:0;background:transparent;border:0;box-shadow:none;opacity:1;cursor:default;pointer-events:none;z-index:1}
.party-slot svg,.party-slot .slot-label{pointer-events:none}.party-slot svg{width:100%;height:100%;display:block;overflow:visible}
.slot-0,.slot-0.placed{left:31%;top:74%;width:24%;height:22%}
.slot-1,.slot-1.placed{left:13%;top:74%;width:13%;height:21%}
.slot-2,.slot-2.placed{left:44%;top:59%;width:17%;height:17%}
.slot-3{left:32%;top:91%;width:24%;height:10%;min-height:42px}
.slot-3.placed{left:31%;top:74%;width:16%;height:15%;min-height:0;z-index:3}
.slot-4,.slot-4.placed{left:73%;top:76%;width:27%;height:26%}
.slot-5{left:75%;top:57%;width:21%;height:11%}
.slot-5.placed{left:73%;top:65%;width:17%;height:15%;min-height:0;z-index:3}
.slot-6,.slot-6.placed{left:20%;top:25%;width:24%;height:26%}
.slot-7,.slot-7.placed{left:61%;top:18%;width:35%;height:25%}
.party-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:18px 0 0;margin:0}
.party-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 6px 12px;border:1px solid #d2d5bf;border-radius:14px;background:#fffcf3;color:#3d5948;font-size:.875rem;box-shadow:0 3px 0 #dedfcc;transition:background .15s,border-color .15s}
.party-item svg{display:block;width:58px;height:58px;pointer-events:none}.party-item span{pointer-events:none}
.party-item:hover:not(:disabled){background:#edf2e2;border-color:#7c9776}
.party-item[aria-pressed=true]{background:#f9e6cf;border:2px solid #b76064;box-shadow:0 3px 0 #b76064;padding:7px 5px 11px}
.party-item:disabled{cursor:default;opacity:.55;box-shadow:none;background:#e9eee0}
.party-item:disabled:after{content:'✓';position:absolute;right:7px;top:3px;color:#36674a;font-weight:bold}
@media(max-width:680px){.game-section[data-game=birthday] .game-layout{grid-template-columns:1fr;gap:20px}.party-room{aspect-ratio:600/650;border-width:4px;border-radius:16px}.party-title{top:35%;left:32%;right:18%;font-size:19px}.party-title small{font-size:8px}.party-title span{display:none}.party-slot{font-size:.8rem;min-height:42px}.party-slot.placed{min-height:0}.party-items{gap:7px;padding-top:15px}.party-item{font-size:.75rem;padding-inline:3px}.party-item svg{width:45px;height:45px}.slot-1{width:15%}.slot-3{top:91%;height:11%}.slot-3.placed{top:74%;height:15%}}
/* Sea crossing, musical alarm and Monsieur le Caillou. */
.sea-controls{display:flex;justify-content:center;gap:14px;margin:20px 0}.sea-controls button{min-width:110px;padding:13px 20px;background:#d9eeea;border:2px solid #69978e;border-radius:12px;color:#2f5e58;touch-action:manipulation}.game-section[data-game=sea] canvas{border-color:#437b80;cursor:ew-resize}.game-section[data-game=alarm] canvas{border-color:#697b91;max-height:350px;object-fit:contain;background:#dce1ed;box-shadow:0 5px #4d6173}.alarm-controls{margin:20px 0;background:#e5e9df;border:1px solid #bbc9b7;border-radius:16px;padding:20px}.alarm-controls label{display:inline-block;margin-right:12px}.alarm-controls input{display:inline-block;width:55%;min-height:22px;padding:0;margin:0;accent-color:#557d73;vertical-align:middle}.piano{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:20px 0}.piano-key{height:115px;background:linear-gradient(#fffcf2,#f6eddb);border:2px solid #aeb4a2;border-radius:5px 5px 12px 12px;box-shadow:0 5px #a6ad9a;color:#354e44;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:16px}.piano-key strong{font:1.3rem Georgia}.piano-key small{margin-top:5px;color:#7c8a73}.piano-key.sounding,.piano-key:active:not(:disabled){background:#e8c178;box-shadow:0 2px #ac884a;transform:translateY(3px)}.piano-key:disabled{cursor:default;opacity:.65}.piano-key.sounding{opacity:1}.melody-progress{display:flex;gap:5px;justify-content:center;flex-wrap:wrap}.melody-progress span{width:28px;height:28px;border-radius:50%;font-size:.8rem;background:#f8f5e8;color:#77816c;border:1px solid #c2ccb6}.melody-progress .done{background:#4b7e66;color:#fff}.alarm-controls .tiny{margin:15px 0 0}.rock-stage{position:relative;aspect-ratio:600/500;border:5px solid #6f9992;border-radius:22px;overflow:hidden;box-shadow:0 6px #c6d7c4;background:#c5e4eb;isolation:isolate}.rock-scenery{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.rock-slot{position:absolute;transform:translate(-50%,-50%);width:16%;height:16%;border:2px dashed #8b7d77;border-radius:50%;background:#fff5df9c;color:#7d6561;font:1.1rem Georgia;cursor:pointer;z-index:1;touch-action:manipulation}.rock-slot:not(:disabled):hover{background:#fae4d0;border-color:#b16c87}.rock-slot.filled{border:0;background:transparent;opacity:1;pointer-events:none;cursor:default;width:20%;height:20%}.rock-slot svg{width:100%;height:100%;pointer-events:none}.rock-slot-0{left:31%;top:29%}.rock-slot-1{left:49%;top:25%}.rock-slot-2{left:67%;top:29%}.rock-slot-3{left:24%;top:44%}.rock-slot-4{left:48%;top:42%}.rock-slot-5{left:74%;top:44%}.rock-turtles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}.rock-turtle{border:1px solid #ceb6bd;background:#fff6ed;border-radius:12px;padding:8px;color:#755164;font-size:.85rem;display:flex;flex-direction:column;align-items:center}.rock-turtle svg{width:70px;height:50px;pointer-events:none}.rock-turtle[aria-pressed=true]{background:#f5d5df;border:2px solid #ad6885}.rock-turtle:disabled{opacity:.4;cursor:default}.game-section[data-game=rock] .game-layout{grid-template-columns:230px minmax(0,650px)}
@media(max-width:680px){.game-section[data-game=rock] .game-layout{grid-template-columns:1fr}.rock-stage{border-width:4px}.rock-turtles{gap:7px}.alarm-controls{padding:14px 10px}.piano-key{height:95px;padding:12px}.melody-progress span{width:24px;height:24px;font-size:.75rem}.game-section[data-game=alarm] canvas{max-height:none}.sea-controls button{min-width:100px}}
/* Let the winning Yam remain visible before the shared celebration. */
.dice-stage.yam-won{border-color:#c49a39;background:#f4edcc;box-shadow:0 0 25px #e6c56866}
.yam-won .die,.yam-won .die.held{position:relative;overflow:hidden;background:#fff5c8;border-color:#d0a341;color:#76531e;box-shadow:0 4px #bd923b,0 0 20px #efd16d;animation:yam-glow .8s ease-in-out 3}
.yam-won .die:after{content:'';position:absolute;inset:-40% -80%;background:linear-gradient(110deg,transparent 40%,#fffef1d9 50%,transparent 60%);transform:translateX(-65%);animation:yam-shine 1.1s ease-in-out 2;pointer-events:none}
.yam-won #dice-help{font-weight:bold;color:#805b22}
@keyframes yam-glow{50%{transform:translateY(-5px);box-shadow:0 8px #bd923b,0 0 32px #efd16d}}
@keyframes yam-shine{to{transform:translateX(65%)}}
@media(prefers-reduced-motion:reduce){.yam-won .die,.yam-won .die:after{animation:none}.yam-won .die:after{display:none}}
/* The final eleven little Christmas adventures. */
.winter-stage{position:relative;background:#e2eadb;border:2px solid #becbad;border-radius:18px;padding:18px;overflow:hidden;min-height:280px}.winter-stage>svg,.catch-field>svg{display:block;width:100%;height:auto;border-radius:10px}.winter-stage button{touch-action:manipulation}.winter-stage button:disabled{cursor:default}.memory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.memory-card{aspect-ratio:4/5;border:2px solid #618274;border-radius:12px;background:repeating-linear-gradient(45deg,#366552 0 10px,#3e705a 10px 20px);color:#ecd49b;box-shadow:0 4px #28523f;font-size:2rem;padding:10px}.memory-card svg{width:100%;height:75px;display:block}.memory-card.face-up{background:#fff9e8;border-color:#d2b471}.memory-card.matched{opacity:1;box-shadow:none;background:#d3e1c8;border-color:#8fa886}.simon-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:24px}.simon-light{height:150px;border:3px solid #74927c;border-radius:42% 42% 20% 20%;background:#afc4ac;box-shadow:0 6px #819f88;filter:brightness(.8)}.simon-light svg{width:85px;height:100px}.simon-light.lit{filter:brightness(1.35);background:#ffe8a4;box-shadow:0 0 30px #f2c565;opacity:1}.simon-light:disabled{opacity:1}.light-1{background:#d2a6aa}.light-2{background:#dfc28d}.light-3{background:#a9c2cf}.simon-caption{grid-column:1/-1;margin:0;font:1.2rem Georgia}.lights-house{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;background:repeating-linear-gradient(#98765c 0 30px,#8c6a52 30px 33px);padding:40px 25px;border:8px solid #f2e1bc;border-top:30px solid #45694f}.house-window{aspect-ratio:1;background:#334e5e;border:6px solid #e6cf9d;border-radius:7px;padding:0;position:relative;box-shadow:0 4px #644a36}.house-window:before,.house-window:after{content:'';position:absolute;background:#e6cf9d;pointer-events:none}.house-window:before{left:45%;top:0;width:10%;height:100%}.house-window:after{top:45%;left:0;height:10%;width:100%}.house-window.on{background:#f3cf75;box-shadow:0 0 20px #f9d88877}.slide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:10px;background:#43664e}.slide-tile{position:relative;aspect-ratio:1;padding:0;border:0;overflow:hidden;border-radius:7px}.slide-tile svg{width:100%;height:100%;display:block}.slide-tile span{position:absolute;left:5px;top:5px;background:#fff8e5dd;border-radius:50%;width:24px;height:24px;color:#375742;font-size:.85rem}.slide-tile.blank{background:#284b38;opacity:1}.hanoi-stage{display:flex;gap:10px;align-items:stretch;background:linear-gradient(#d8e5d9 75%,#af8660 75%);min-height:340px}.gift-peg{position:relative;flex:1;background:transparent;border:2px solid transparent;border-radius:10px;padding:0;min-width:0}.gift-peg.selected{border-color:#b45d66;background:#f8e4bc33}.peg-pole{position:absolute;left:47%;top:30%;bottom:42px;width:7%;background:#8e6b4a;border-radius:5px}.peg-gifts{position:absolute;left:0;right:0;bottom:45px;display:flex;flex-direction:column;align-items:center;gap:5px}.hanoi-gift{display:block;height:42px;line-height:38px;border-radius:5px;border:2px solid #e9d29a;background:#678f76;color:white;font-weight:bold;box-shadow:0 3px #507158}.gift-size-1{width:42%;background:#d2a852}.gift-size-2{width:68%;background:#bd6c77}.gift-size-3{width:94%}.gift-peg small{position:absolute;bottom:6px;left:0;right:0;color:#fff8e8}.catch-lanes{display:flex;gap:12px;justify-content:center;margin-top:12px}.catch-lanes button{width:70px;background:#fff9e7}.word-stage{padding:35px 14px}.word-answer,.word-tray{display:flex;gap:6px;justify-content:center;margin-bottom:24px}.letter-tile{width:50px;height:60px;border:2px solid #c3ad77;border-radius:9px;background:#fff5dc;box-shadow:0 4px #bda571;color:#365c46;font:bold 1.5rem Georgia;padding:0}.word-tray .letter-tile{background:#d5e2cd;border-color:#a6bb9e;box-shadow:0 4px #9aad92}.letter-tile:disabled{opacity:.25}.word-turtle svg{width:160px;height:115px;margin:20px auto 0;display:block}.pipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;background:#355744;padding:12px}.pipe-tile{aspect-ratio:1;padding:0;background:#e0d5ba;border:2px solid #b5ab91;border-radius:9px;color:#7d8e7b}.pipe-tile.powered{color:#e2ac44;background:#f9edc8}.pipe-tile svg{display:block;width:100%;height:100%}.pipe-caption{grid-column:1/-1;color:#f9edcc;font-size:.9rem;margin:14px 0 2px}.constellation{padding:0;border:5px solid #aa8a4e;background:#234d44;aspect-ratio:480/440}.constellation>svg{width:100%;height:100%;border-radius:0}.constellation-star{position:absolute;transform:translate(-50%,-50%);border:2px solid #dfbd6b;background:#fff1b8;color:#71542b;width:38px;height:38px;border-radius:50%;font-weight:bold;font-size:1rem;box-shadow:0 0 14px #e5c76c66;padding:0}.constellation-star.joined{background:#dab35e;opacity:1;pointer-events:none}.game-section[data-game=bells] .winter-stage svg{cursor:crosshair}.game-section[data-game=finale] .intro h1{color:#a67829}
@media(max-width:680px){.winter-stage{padding:12px}.memory-grid{gap:8px}.memory-card{padding:5px}.memory-card svg{height:58px}.simon-light{height:120px}.simon-grid{gap:12px}.lights-house{gap:12px;padding:24px 16px}.hanoi-stage{min-height:280px;gap:6px}.hanoi-gift{height:35px;line-height:31px}.word-answer,.word-tray{gap:4px}.letter-tile{width:38px;height:48px;font-size:1.2rem}.constellation{padding:0}.constellation-star{width:30px;height:30px;font-size:.85rem}.pipe-caption{font-size:.8rem}}
/* Shared victory beat: retain the finished board, then gently reveal the celebration. */
.board-card{position:relative}
.is-winning .board-card{border-radius:18px;animation:board-victory 1.8s ease-in-out both;pointer-events:none}
.is-winning .board-card button:disabled{cursor:default}
.victory-badge{position:absolute;right:12px;top:12px;z-index:5;display:flex;align-items:center;gap:9px;padding:10px 17px 10px 10px;background:#fff8e6f2;border:2px solid #d4b56a;border-radius:16px;box-shadow:0 5px 24px #65502b25;pointer-events:none;animation:victory-badge-in .45s ease-out both;color:#385b45;text-align:left}
.victory-badge svg{width:48px;height:48px}.victory-badge span{font:bold 1.25rem Georgia,serif}.victory-badge small{display:block;margin-top:4px;font: .8rem 'Trebuchet MS',sans-serif;color:#7d704c}
.is-winning #game-status{color:#456e42;font-weight:bold}
.is-winning.win-fading{opacity:0;transition:opacity .25s ease}
#celebration:not([hidden]),#letter:not([hidden]){animation:celebration-arrive .4s ease-out both}
@keyframes board-victory{0%{box-shadow:0 0 0 0 #dfbf6780}35%{box-shadow:0 0 0 7px #dfbf6755,0 0 35px #e8c97260}70%{box-shadow:0 0 0 3px #dfbf6733}100%{box-shadow:0 0 0 5px #dfbf6744}}
@keyframes victory-badge-in{from{opacity:0;transform:translateY(10px) scale(.85)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes celebration-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.is-winning .board-card,.victory-badge,#celebration:not([hidden]),#letter:not([hidden]){animation:none}.is-winning .board-card{outline:3px solid #d4b56a}.is-winning.win-fading{transition:none}}
@media(max-width:680px){.victory-badge{right:8px;top:8px;padding:6px 11px 6px 7px;gap:6px}.victory-badge svg{width:34px;height:34px}.victory-badge span{font-size:1rem}}

/* Softer puzzles and stable, touch-friendly bells. */
.rock-slot.filled{padding:0;overflow:visible}.rock-slot.filled svg{overflow:visible}
.rock-turtle svg{width:84px;height:60px}.rock-slot.filled{width:21%;height:19%}
.puzzle-help{grid-column:1/-1;background:#fff7df;color:#345c47;margin-top:10px}
.house-window.suggested,.slide-tile.suggested{outline:5px solid #f4bd42;outline-offset:-5px;box-shadow:0 0 22px #ffe0a0}
.pipe-tile{position:relative}.pipe-number{position:absolute;top:5px;left:7px;color:#345442;font-size:1rem;background:#fff7dd;border-radius:50%;width:24px;height:24px}
.pipe-port{position:absolute;z-index:1;top:37%;font-size:.7rem;letter-spacing:.04em;background:#fff1b3;color:#493e27;padding:3px;border-radius:3px}.pipe-port.inlet{left:0}.pipe-port.outlet{right:0}
.circuit-tree{grid-column:1/-1;width:170px;margin:12px auto 0;filter:brightness(.65);transition:filter .6s}
.circuit-tree svg{width:100%;height:auto;border-radius:14px}.circuit-tree.lit{filter:brightness(1.15) drop-shadow(0 0 15px #ffe8a5)}
.winter-stage.bell-stage{padding:0;aspect-ratio:480/440;min-height:0;background:#dcebe5;border:4px solid #8fae99;isolation:isolate}
.bell-scenery{position:absolute;inset:0;pointer-events:none}.bell-scenery>svg{display:block;width:100%;height:100%}
.bell-counter{position:absolute;bottom:10px;left:5%;width:90%;margin:0;text-align:center;padding:8px;border-radius:14px;background:#fff8e6e8;color:#355b49;font:1.1rem Georgia;z-index:1;pointer-events:none}
.bell-button{position:absolute;transform:translate(-50%,-50%);padding:0;width:100px;height:100px;min-width:64px;min-height:64px;border:2px solid #eacb79;border-radius:50%;background:#fff6d7e8;box-shadow:0 4px 0 #ac844b,0 0 22px #f8d88c80;cursor:pointer;touch-action:manipulation;z-index:2}
.bell-button svg{width:100%;height:100%;pointer-events:none}.bell-button:disabled{opacity:1}.bell-button.ringing{animation:bell-ring .22s ease-in-out}.bell-button:hover{background:#fff4ba}
.grand-carillon{border-color:#d9b66e!important}.magic-bulb.lit{filter:drop-shadow(0 0 6px #fff3a8)}
.christmas-finale .magic-bulb.lit,.circuit-tree.lit .magic-bulb{animation:christmas-glow .7s ease-in-out infinite alternate}
.magic-sparks{animation:christmas-glow .9s ease-in-out infinite alternate}.finale-friends{position:absolute;bottom:12%;left:8%;right:8%;display:flex;justify-content:space-between;pointer-events:none}.finale-friends svg{width:28%;animation:friends-arrive .7s ease-out both}
.christmas-finale .bell-counter{background:#fff0ba;color:#704f28;font-weight:bold}
@keyframes bell-ring{25%{transform:translate(-50%,-50%) rotate(-14deg)}75%{transform:translate(-50%,-50%) rotate(14deg)}}
@keyframes christmas-glow{to{opacity:.55;filter:drop-shadow(0 0 12px #ffe793)}}
@keyframes friends-arrive{from{opacity:0;transform:translateY(35px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:680px){.bell-button{width:76px;height:76px}.bell-counter{font-size:.95rem;bottom:5px}.pipe-port{font-size:.6rem}.circuit-tree{width:130px}}
@media(prefers-reduced-motion:reduce){.bell-button.ringing,.magic-sparks,.magic-bulb.lit,.finale-friends svg{animation:none!important}}

/* Christmas evening in a warm, decorated chalet. */
:root{--pine:#71967a;--ink:#f0dfbf;--red:#e6a083;--gold:#d4ad68;--paper:#352c26;--line:#6d5841}
body{color:var(--ink);background-color:#172b26;background-image:radial-gradient(ellipse at 50% 100%,#7d46243d,transparent 65%),repeating-linear-gradient(90deg,#0000 0 119px,#0b19152b 120px 122px),linear-gradient(125deg,#152c29,#27392e 55%,#332e23);background-size:auto;background-attachment:fixed}
main{background:radial-gradient(ellipse at 50% 0,#65472b44,transparent 55%),repeating-linear-gradient(0deg,#ffffff02 0 2px,transparent 2px 8px),#2c2923f5;border:1px solid #8b704b;border-radius:20px;box-shadow:0 0 0 5px #14251d88,0 0 0 6px #66553d,0 20px 80px #0006;padding-top:8px}
.chalet-trim{height:112px;margin:-8px -22px 8px;overflow:hidden;pointer-events:none}.chalet-trim svg{display:block;width:100%;height:112px;filter:drop-shadow(0 5px 6px #0004)}.trim-ornament{transform-box:fill-box;transform-origin:50% 0;animation:stocking-sway 7s ease-in-out infinite alternate}.trim-ornament:nth-child(odd){animation-delay:-3s}
.winter-horizon{opacity:.16}.snowflake{opacity:.4;color:#dccba4;text-shadow:0 0 8px #ffe7bd33}.garland{border-color:#56734e;margin-bottom:2px}.bulb{box-shadow:0 0 17px #efc36a88}.bulb.b2{background:#a5b16d}
nav{border-color:#705c40;padding-bottom:20px}.brand strong,h1,h2{color:#f1d9aa}.intro>p:last-child,.storybook>p:not(.eyebrow),.paper>p,.login-card>p:not(.eyebrow){color:#d5c5a7}.eyebrow,.tiny,.tree-caption,.back,.date,.door-caption{color:#c9b990}.signature{color:#d8be87!important}em{color:#e6a083}footer{color:#d1bc95;background:radial-gradient(ellipse at 50% 75%,#f6a03a26,transparent 60%)}footer span{color:#df8b70}
.login-card,.paper{background:linear-gradient(135deg,#413329,#302923);border-color:#947349;box-shadow:7px 9px 0 #151e18,0 0 28px #dba14e0d}.paper.christmas-paper{background:#413323;border-color:#bc9659}.game-card{background:linear-gradient(145deg,#30483a,#273a30);border-color:#6f7951;box-shadow:0 5px 14px #0002}.score strong{color:#efb486}.message{color:#f0bc94!important;border-color:#a58550}.steps b{border-color:#927344;color:#efb486}
input{background:#201f1b;border-color:#8e7857;color:#f4e4c6}input::placeholder{color:#b9aa8d}.primary{background:#873e39;color:#fff0d4;border-color:#b9795e;box-shadow:0 4px #4e2724}.primary:hover{background:#a14f44}.quiet{background:#352f26;color:#e4d0ab;border-color:#8b7956}.quiet:hover{background:#4d4431}.error{background:#4d2c27;color:#ffd3ba;border-color:#c7785b}
button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline-color:#e9bf73}
.door{background:linear-gradient(145deg,#79423a,#5b302d);color:#f1ddb6;border-color:#b79158!important;box-shadow:0 4px #171f18!important}.door.theme-1{background:linear-gradient(145deg,#435f43,#304631)}.door.theme-2{background:linear-gradient(145deg,#78603d,#57472f)}.door.theme-3{background:linear-gradient(145deg,#48594e,#34433a)}.door .date,.door .door-caption{color:#dec7a0}.door:hover{filter:brightness(1.12)}.door:after{content:'';position:absolute;inset:5px;border:1px dashed #e9c17c35;border-radius:6px;pointer-events:none}.tree-branches{isolation:isolate}.tree-branches:before{background:linear-gradient(#416849,#263f2b);box-shadow:0 0 50px #c3a46a22}.top-star{filter:drop-shadow(0 0 18px #dfae4e55)}.tree-trunk{filter:brightness(.75)}
.dice-stage,.recipe-stage,.clicker-stage,.alarm-controls{background:#353a2e;border-color:#7a805a;color:#ead9b7}.recipe-step,.recipe-list li,#recipe-list li{background:#3d352a;border-color:#8b7149;color:#efdfbd}.recipe-stage button{background:#304536;color:#ead8b3;border-color:#78805b}.scene-caption{color:#e9d3ab}.dice-stage .tiny{color:#c9ba95}.die{background:#d8bf8e;color:#304231;border-color:#a58956;box-shadow:0 4px #6f5838}.die.held{background:#e6bd86;color:#5b3029}.yam-help{color:#e6d3ac}
.controls button,.treat-controls button,.party-item,.rock-turtle{background:#3d4734;color:#e9dab8;border-color:#7d825b}.controls button:hover{background:#536046}.party-item[aria-pressed=true],.rock-turtle[aria-pressed=true]{background:#704339;color:#ffe2b8;border-color:#cb9971}.rock-turtle:disabled,.party-item:disabled{opacity:.5}.party-room,.rock-stage{box-shadow:0 6px #17291f;border-color:#788263}.game-section[data-game=birthday] .tiny{color:#cab990}
.chess-square.light{background:#c3ae83}.chess-square.dark{background:#627451}.chessboard{border-color:#a88852}.chess-square.selected{background:#d9b268}.board-card canvas{border-color:#75805b;box-shadow:0 5px #17281f}.winter-stage{border-color:#7f8058}.word-stage,.simon-grid,.memory-grid{background:#293f34}.word-stage .letter-tile{background:#c7b181;color:#2c4535}.puzzle-help{background:#403928;color:#f1d8a6;border-color:#a38a58}.bell-stage{filter:brightness(.9)}
#game-status{color:#e6d2b0}.victory-badge{background:#433720f2;color:#ffe0a1;border-color:#dab367}.victory-badge strong,.victory-badge span{color:#ffe0a1}.celebration{box-shadow:0 0 50px #d4a34a22,7px 9px 0 #151e18}
.hearth-scene{width:350px;margin-top:10px;filter:drop-shadow(0 0 32px #e9a33b33)}.hearth-glow{opacity:.6}.hearth-scene:before,.hearth-scene:after{content:'✦';position:absolute;color:#d3b16d;font:36px Georgia;text-shadow:0 0 20px #d3b16d55;bottom:95px;left:calc(50% - 210px)}.hearth-scene:after{left:auto;right:calc(50% - 210px);font-size:24px;bottom:130px}
@media(max-width:680px){main{background:radial-gradient(ellipse at 50% 0,#65472b33,transparent 45%),#2c2923f5;padding-top:0}.chalet-trim{height:76px;margin:0 -10px 12px}.chalet-trim svg{width:780px;max-width:none;height:76px;position:relative;left:50%;transform:translateX(-50%)}.hearth-scene{width:270px}.hearth-scene:before{left:18px;font-size:24px}.hearth-scene:after{right:20px;font-size:18px}.tree-row .door,.tree-presents .door{border-width:1px}.door:after{inset:3px}.login-card{box-shadow:4px 6px 0 #151e18}}
@media(prefers-reduced-motion:reduce){.trim-ornament{animation:none}}
.chalet-trim svg path:not([fill]){fill:none}

.christmas-countdown{max-width:560px;margin:28px auto 32px;padding:20px 24px 16px;text-align:center;background:radial-gradient(ellipse at top,#67503466,transparent),#26392f;border:1px solid #a1824d;border-radius:18px;box-shadow:inset 0 0 0 5px #25352b, inset 0 0 0 6px #77633f,0 8px 25px #0002}
#countdown-title{font:1.35rem Georgia,serif;color:#efd8aa;margin-bottom:16px}.countdown-units{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.countdown-units>div{background:linear-gradient(#614438,#443228);border:1px solid #96714b;border-radius:10px;padding:8px 4px;box-shadow:0 3px #18271f}.countdown-units strong{display:block;font:2.3rem/1.3 Georgia,serif;color:#f5d49a;font-variant-numeric:tabular-nums}.countdown-units span{font-size:.8rem;color:#d8c3a0}.countdown-date{font-size:.75rem;line-height:1.5;color:#c8b68f;margin:15px 0 0}.christmas-arrived{box-shadow:0 0 25px #d9a84833}
@media(max-width:680px){.christmas-countdown{padding:18px 14px 14px}.countdown-units{gap:7px}.countdown-units strong{font-size:1.8rem}.countdown-units span{font-size:.7rem}#countdown-title{font-size:1.2rem}}

/* Keepsake tickets: the reward is injected only after the verified victory. */
.paper.ticket-paper{background:none;border:0;box-shadow:none;padding:0;max-width:620px}.ticket-paper:before{display:none}.gift-ticket{position:relative;text-align:center;border:2px solid #be9557;border-radius:18px;overflow:hidden;background:radial-gradient(ellipse at 50% 15%,#8e654631,transparent 65%),#342c25;color:#f5dfb5;box-shadow:0 12px 35px #0004,inset 0 0 0 7px #80633f33}
.ticket-topline{display:flex;align-items:center;justify-content:space-between;padding:13px 23px;background:#7d3d38;border-bottom:1px solid #ba875a;font:small-caps 1rem Georgia,serif;letter-spacing:.06em;color:#f5d8a6}.ticket-topline>span:last-child{font-size:1.4rem}.ticket-main{padding:22px 30px}.ticket-stamp .illustration{width:62px;height:66px}.ticket-kicker{font-size:.75rem;text-transform:uppercase;letter-spacing:.13em;color:#d5b780;margin:8px 0 14px}.gift-ticket h1{font:2rem/1.13 Georgia,serif;color:#f4dbac;margin:0 0 17px}.gift-ticket .message{border:0;margin:0 auto 20px;padding:15px 0;font:1.8rem/1.3 Georgia,serif;color:#f3bca1!important;max-width:460px}.ticket-recipient{font-size:.9rem;margin:0 0 6px}.ticket-recipient strong{display:block;font:1.2rem Georgia,serif;margin-top:4px}.ticket-love{font:italic 1rem Georgia,serif;color:#d6b581;margin:16px 0 0}.ticket-stub{position:relative;border-top:2px dashed #b6955b;padding:16px 24px;background:#233c30;color:#dcc89f}.ticket-stub:before,.ticket-stub:after{content:'';position:absolute;top:-12px;width:22px;height:22px;border-radius:50%;background:#2c2923;border:1px solid #be9557}.ticket-stub:before{left:-12px}.ticket-stub:after{right:-12px}.ticket-stub>span{font-size:.85rem}.ticket-stub strong{display:block;font-size:.7rem;letter-spacing:.18em;margin-top:8px}.ticket-barcode{height:22px;width:115px;margin:12px auto 0;opacity:.55;background:repeating-linear-gradient(90deg,#dfc493 0 2px,transparent 2px 4px,#dfc493 4px 5px,transparent 5px 9px,#dfc493 9px 13px,transparent 13px 16px)}.ticket-capture-hint{font-size:.85rem;margin:18px 0}.ticket-paper>.button-link,.ticket-paper>#retry-letter{margin:5px}
@media(max-width:680px){.gift-ticket h1{font-size:1.65rem}.ticket-main{padding:17px 17px 20px}.gift-ticket .message{font-size:1.5rem;padding:8px 0;margin-bottom:16px}.ticket-topline{font-size:.8rem;padding:10px 14px}.ticket-stamp .illustration{width:48px;height:52px}.ticket-stub{padding:12px}.ticket-love{font-size:.9rem}.ticket-recipient{font-size:.8rem}}
