.christmas-game{position:fixed;inset:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;padding:0;border:0;overflow:hidden;background:#376236;color:#fff9df;box-sizing:border-box}.christmas-game::backdrop{background:#31542d}.christmas-game button{cursor:pointer;touch-action:manipulation}.xm-scene{position:relative;height:100%;width:100%;overflow:hidden;isolation:isolate}.xm-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;pointer-events:none;user-select:none}
.xm-header{position:absolute;z-index:5;top:calc(env(safe-area-inset-top) + 9px);left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;gap:8px;background:none!important;border:0;box-shadow:none;padding:0}.xm-title{display:flex;align-items:center;gap:9px;min-width:0}.xm-title>img{height:50px;width:46px;object-fit:contain;flex:none}.xm-title h1{margin:0;font-size:clamp(18px,3.3vw,30px);line-height:1.1;color:#fffbea;text-shadow:0 2px 3px #392710,0 0 7px #392710}.xm-header-actions{display:flex;gap:7px;flex:none}.xm-header-actions button{width:46px;height:46px;min-height:46px;padding:0;border:2px solid #fff7dc;border-radius:50%;background:#35663c;color:#fffbea;font:800 26px/1 system-ui;box-shadow:0 3px 0 #264c2d}
.xm-instruction{position:absolute;z-index:2;top:14.5%;left:7%;width:65%;margin:0;text-align:center;font-size:clamp(17px,2.6vw,26px);font-weight:850;line-height:1.15;color:#fffbea;background:none!important;border:0;padding:0;text-shadow:0 2px 3px #412b15,0 0 7px #412b15}.xm-progress{position:absolute;left:8%;top:27%;display:flex;align-items:center;gap:5px;flex-wrap:wrap;max-width:170px;color:#fffbea;text-shadow:0 2px 3px #362b17;font-weight:800;font-size:14px}.xm-progress i{width:10px;height:10px;border:2px solid #fff6d7;border-radius:50%;background:#6c603a77;box-sizing:border-box}.xm-progress i.done{background:#ffd14a;box-shadow:0 0 7px #ffe793}.xm-progress span{display:block;flex-basis:100%;text-align:center;margin-top:2px}
.xm-play-area{position:absolute;inset:0;pointer-events:none}.xm-play-area button,.xm-ribbon{pointer-events:auto}.xm-prop{display:block;background:url('assets/generated/christmas106/christmas-props.png') no-repeat;background-size:400% 400%;width:100%;height:100%;pointer-events:none}.xm-food{display:block;object-fit:contain;width:100%;height:100%;pointer-events:none}.xm-button{min-height:46px;padding:9px 16px;border:2px solid #b49350;border-radius:16px;background:#fff8e3;color:#365c37;box-shadow:0 3px 0 #916b35;font:800 clamp(13px,2vw,18px)/1.15 system-ui}.xm-button.xm-primary{background:#3c794c;border-color:#fff2ce;color:#fff9e1;box-shadow:0 4px 0 #254f31}.xm-button:disabled{opacity:.5}.xm-tray{position:absolute;z-index:3;right:3%;top:29%;width:21%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:center;max-height:66%;padding:0;background:none;border:0}.xm-tray:empty{display:none}.xm-choice{position:relative;min-width:44px;min-height:70px;padding:4px 3px;border:2px solid #c3a568;border-radius:19px;background:#fff8e3;box-shadow:0 4px 0 #8b6938,0 4px 9px #4b391b33;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#385b39;touch-action:none!important;user-select:none}.xm-choice>.xm-prop,.xm-choice>.xm-food{width:clamp(40px,8.8vh,70px);height:clamp(40px,8.8vh,70px)}.xm-choice>span:last-child:not(.xm-prop){font:750 clamp(11px,1.7vh,15px)/1.05 system-ui;text-wrap:balance}.xm-choice.xm-selected{outline:4px solid #ffe476;outline-offset:2px;transform:translateY(-3px)}.xm-choice.xm-hinted{animation:xm-hint-glow 1s ease-in-out infinite;outline:4px solid #ffec65;outline-offset:2px}.xm-drag-ghost{position:fixed;left:0;top:0;width:88px;height:88px;z-index:50;pointer-events:none;filter:drop-shadow(0 8px 5px #51371a80)}
.xm-footer{position:absolute;z-index:4;bottom:calc(env(safe-area-inset-bottom) + 3%);left:5%;width:64%;display:flex;align-items:center;justify-content:center;gap:8px;min-height:26px}.xm-footer p{margin:0;text-align:center;font-size:clamp(12px,1.7vw,16px);line-height:1.15;font-weight:750;color:#fffbea;background:none!important;text-shadow:0 2px 3px #38260f,0 0 6px #38260f}.xm-footer .xm-button{font-size:13px;min-height:44px;flex:none}.xm-hint-button{animation:xm-hint-glow 1.4s ease-in-out infinite}.xm-hint-button[hidden]{display:none}
.xm-intro{position:absolute;inset:20% 8% 7%;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr);grid-template-rows:auto auto auto auto auto;column-gap:6vw;row-gap:9px;align-content:center;align-items:center;text-align:center}.xm-intro-picture{grid-row:1/6;max-width:100%;width:min(32vw,59vh);max-height:65vh;object-fit:cover;border-radius:23%;box-shadow:0 6px 0 #61452388,0 5px 15px #49301755;border:4px solid #fff4d5;box-sizing:border-box}.xm-intro h2{margin:0;font-size:clamp(20px,3vw,32px);line-height:1.13;color:#fffbea;text-shadow:0 2px 3px #3a2815,0 0 7px #3a2815;background:none!important}.xm-intro>p{margin:0;font-size:clamp(13px,1.9vw,18px);font-weight:750;color:#fffbea;text-shadow:0 2px 3px #3a2815,0 0 7px #3a2815}.xm-intro>.xm-button{justify-self:center;min-width:180px;font-size:20px;min-height:52px}.xm-intro .xm-december{font-size:12px}.xm-levels{display:flex;gap:6px;justify-content:center}.xm-levels button{padding:7px 8px;min-width:0;min-height:44px;border:2px solid #d6b86e;border-radius:14px;background:#fff7df;color:#365d3a;font:750 clamp(11px,1.6vw,16px)/1.1 system-ui}.xm-levels button[aria-pressed=true]{background:#387346;color:white;border-color:#fff2c5}
.xm-gift-station{position:absolute;left:43%;top:59%;width:min(56vh,65vw);height:min(43vh,50vw);transform:translate(-50%,-50%);perspective:600px}.xm-order-picture{position:absolute;z-index:4;left:50%;top:-26%;transform:translateX(-50%) rotate(-5deg);width:clamp(58px,16vh,110px);height:clamp(58px,16vh,110px);background:#fff9e9;border:4px solid #fffdf5;border-radius:20%;box-shadow:0 5px 5px #61431e55}.xm-open-box{position:absolute;inset:15% 2% 2%;padding:0;border:0;background:none;overflow:visible;isolation:isolate;min-height:80px;min-width:100px;touch-action:none}.xm-box-back{position:absolute;inset:5% 3% 35%;background:#bf8545;border:3px solid #875021;border-radius:12px;transform:skewY(-3deg);box-shadow:inset 0 15px 18px #6d3f2660}.xm-box-inside{position:absolute;inset:-15% 12% 13%;z-index:1}.xm-box-front{position:absolute;inset:39% 0 0;background:linear-gradient(110deg,#d3a566,#bc843f);border:3px solid #98602c;border-radius:5px 5px 14px 14px;z-index:2;box-shadow:0 8px 5px #51351d44}.xm-box-front:after{content:'';position:absolute;inset:20% 45% 0;background:#e7c38b}.xm-box-flap{position:absolute;top:31%;width:55%;height:35%;z-index:3;background:#e7bd7d;border:3px solid #b47c38;transform-origin:top}.xm-box-flap.left{left:-14%;transform:rotate(-23deg) skewX(-20deg)}.xm-box-flap.right{right:-14%;transform:rotate(23deg) skewX(20deg)}.xm-wrapping .xm-box-flap{animation:xm-fold .6s ease-out forwards}.xm-ribbon{position:absolute;inset:16% -8% -5%;z-index:8;touch-action:none;cursor:crosshair}.xm-ribbon svg{width:100%;height:100%;overflow:visible}.xm-ribbon path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.xm-ribbon-gold{stroke:#b97920;stroke-width:32;filter:drop-shadow(0 3px 0 #80511d77)}.xm-ribbon-dots{stroke:#ffe29a;stroke-width:17;stroke-dasharray:1 9}.xm-ribbon-painted{stroke:#fff5ac;stroke-width:20}.xm-ribbon-start{position:absolute;transform:translate(-50%,-50%);font-size:24px;color:#fff8ca;pointer-events:none;animation:xm-start-bob 1.6s ease-in-out infinite}.xm-wrapped-present{position:absolute;inset:0;z-index:10}.xm-delivering .xm-open-box,.xm-delivering .xm-order-picture{opacity:0}.xm-delivering{animation:xm-gift-delivery .85s ease-in forwards}
.xm-tree-frame{position:absolute;left:44%;bottom:12vh;height:64vh;aspect-ratio:2/3;transform:translateX(-50%)}.xm-tree-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.xm-tree-decoration{position:absolute;transform:translate(-50%,-25%) rotate(-6deg);width:clamp(25px,8.5vh,65px);height:clamp(25px,8.5vh,65px);filter:drop-shadow(0 3px 2px #1b3f2f55);animation:xm-ornament-arrive .4s ease-out}.xm-branch{position:absolute;z-index:4;transform:translate(-50%,-50%);width:56px;height:56px;min-width:56px;min-height:56px;border:3px dashed #fff4b7;border-radius:50%;background:#fff6bb33;color:#fff8da;font-size:30px;line-height:1;touch-action:none}.xm-top-star{left:50%;top:5%;color:#ffe06b}.xm-tree-twinkles{position:absolute;inset:8% 4% 14%;pointer-events:none}.xm-tree-twinkles:before,.xm-tree-twinkles:after{content:'✦';position:absolute;left:28%;top:50%;font-size:18px;color:#fff2b6;animation:xm-tree-sparkle 2.7s ease-in-out infinite}.xm-tree-twinkles:after{left:65%;top:30%;animation-delay:1.2s}
.xm-reindeer{position:absolute;left:49%;top:49%;transform:translate(-50%,-50%);height:62vh;aspect-ratio:1;pointer-events:none;filter:drop-shadow(0 7px 4px #53351f44)}.xm-reindeer>.xm-prop{position:absolute;inset:0}.xm-deer-happy{opacity:0}.xm-munching .xm-deer-idle{animation:xm-deer-chew 1s steps(1,end) infinite}.xm-munching .xm-deer-happy{animation:xm-deer-smile 1s steps(1,end) infinite}.xm-food-request{position:absolute;left:33%;top:30%;width:clamp(58px,16vh,105px);height:clamp(58px,16vh,105px);padding:5px;background:#fff9e9;border:4px solid #fffdf4;border-radius:35% 35% 5% 35%;box-shadow:0 5px 7px #68441e50;transform:translate(-50%,-50%) rotate(-5deg);box-sizing:border-box}.xm-food-drop{position:absolute;z-index:3;border:3px dashed #fff2ad;border-radius:26%;background:#fff4a422;min-height:52px;padding:2px;color:#fff7ce;text-shadow:0 2px 3px #664122;font-size:30px;touch-action:none}.xm-food-drop>.xm-food{position:absolute;left:calc(50% - 27px);top:0;width:54px;height:54px}.xm-eaten-food{animation:xm-food-munch .95s ease-in forwards}.xm-glow{animation:xm-target-glow 1.6s ease-in-out infinite}
.christmas-game .xm-result{position:absolute;inset:20% 8% 6%;max-width:none;width:auto;height:auto;padding:0;margin:0;display:grid;grid-template-columns:.9fr 1.1fr;grid-template-rows:auto auto auto auto auto;gap:6px 5vw;align-items:center;align-content:center;text-align:center;background:none!important;color:#fff9df;border:0;overflow:visible}.xm-win-art{grid-row:1/6;width:min(31vw,58vh);height:min(31vw,58vh);justify-self:center;filter:drop-shadow(0 8px 5px #50331e55)}.xm-win-art>img{width:100%;height:100%;object-fit:cover;border:5px solid #fff4d9;border-radius:25%;box-sizing:border-box}.christmas-game .xm-result h2{font-size:clamp(22px,3.5vw,40px);line-height:1.1;margin:0;color:#fffbea;text-shadow:0 2px 3px #3a2815,0 0 7px #3a2815}.christmas-game .xm-result>p{font-size:clamp(14px,2vw,20px);margin:3px;font-weight:750;color:#fffbea;text-shadow:0 2px 3px #3a2815,0 0 7px #3a2815}.christmas-game .writing-stars{font-size:clamp(28px,6vh,58px);color:#ffda55;filter:drop-shadow(0 3px 0 #8a571d)}.xm-result-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.christmas-game .sb-earned-notice{color:#fff9dd;text-shadow:0 2px 3px #3b2b16}.xm-result .sb-earned-notice button{font-size:12px}.xm-pause{position:absolute;z-index:40;inset:0;background:url('assets/generated/christmas106/sticker-album.webp') center/100% 100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;color:#375735}.xm-pause h2{font-size:36px;margin:0}
@keyframes xm-target-glow{50%{box-shadow:0 0 0 6px #ffed8c55,0 0 24px #ffdc62;filter:brightness(1.07)}}@keyframes xm-hint-glow{50%{box-shadow:0 0 0 4px #ffed8c99,0 0 22px #ffd853}}@keyframes xm-ornament-arrive{from{transform:translate(-50%,-90%) rotate(-15deg);opacity:0}to{transform:translate(-50%,-25%) rotate(-6deg);opacity:1}}@keyframes xm-start-bob{50%{filter:drop-shadow(0 0 8px #fff7ad);scale:1.2}}@keyframes xm-fold{to{transform:rotate(0) skewX(0) rotateX(70deg)}}@keyframes xm-gift-delivery{0%{transform:translate(-50%,-50%) scale(1)}30%{transform:translate(-50%,-62%) rotate(-5deg) scale(1.05)}100%{transform:translate(34vw,-25vh) rotate(8deg) scale(.15);opacity:0}}@keyframes xm-deer-chew{0%,49%{opacity:1;transform:translateY(2px)}50%,100%{opacity:0}}@keyframes xm-deer-smile{0%,49%{opacity:0}50%,100%{opacity:1;transform:translateY(-2px)}}@keyframes xm-food-munch{0%{transform:translateY(0) scale(1)}70%{transform:translateY(-16vh) scale(.3);opacity:1}100%{transform:translateY(-18vh) scale(0);opacity:0}}@keyframes xm-tree-sparkle{0%,100%{opacity:.3;scale:.8}50%{opacity:1;scale:1.3}}
@media(orientation:portrait){.xm-header{top:calc(env(safe-area-inset-top) + 12px);gap:5px}.xm-title{gap:5px}.xm-title h1{font-size:clamp(17px,4.5vw,24px)}.xm-title>img{width:34px;height:45px}.xm-header-actions{gap:4px}.xm-header-actions button{width:44px;height:44px;min-height:44px;font-size:24px}.xm-instruction{top:13%;left:7%;width:86%;font-size:clamp(18px,5vw,24px)}.xm-progress{left:50%;top:22%;transform:translateX(-50%);max-width:220px;justify-content:center;font-size:14px}.xm-tray{left:5%;right:5%;top:auto;bottom:12%;width:90%;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;max-height:110px}.xm-choice{min-width:44px;min-height:70px;padding:3px 1px;border-radius:15px}.xm-choice>.xm-prop,.xm-choice>.xm-food{width:clamp(39px,11vw,70px);height:clamp(39px,11vw,70px)}.xm-choice>span:last-child:not(.xm-prop){font-size:11px}.xm-tray:has(.xm-choice:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr));left:12%;width:76%}.xm-tray:has(.xm-choice:first-child:last-child){display:flex;justify-content:center}.xm-tray:has(.xm-choice:first-child:last-child) .xm-choice{min-width:82px}.xm-footer{bottom:calc(env(safe-area-inset-bottom) + 2%);left:5%;width:90%;flex-wrap:wrap;gap:6px}.xm-footer p{font-size:12px;width:100%;line-height:1.15}.xm-footer .xm-button{min-height:44px;font-size:13px}.xm-gift-station{left:50%;top:51%;width:65vw;height:50vw}.xm-order-picture{width:66px;height:66px;top:-27%}.xm-tree-frame{left:50%;bottom:18%;height:min(55vh,128vw);max-width:86vw}.xm-tree-decoration{width:clamp(30px,9vw,60px);height:clamp(30px,9vw,60px)}.xm-branch{width:56px;height:56px}.xm-reindeer{left:50%;top:52%;height:auto;width:78vw}.xm-food-request{left:21%;top:33%;width:68px;height:68px}.xm-treats .xm-tray{bottom:3.5%;grid-template-columns:repeat(5,minmax(0,1fr))}.xm-treats .xm-footer{bottom:16%}.xm-treats .xm-footer p{display:none}.xm-treats .xm-hint-button{margin-left:auto}.xm-intro{inset:12% 7% 6%;display:flex;flex-direction:column;justify-content:center;gap:12px;overflow:auto}.xm-intro-picture{width:clamp(140px,32vh,66vw);max-height:32vh;flex-shrink:1;aspect-ratio:1}.xm-intro h2{font-size:clamp(21px,5.7vw,30px)}.xm-intro>p{font-size:15px}.xm-levels{width:100%}.xm-levels button{flex:1;font-size:12px;min-height:47px;padding:8px 4px}.christmas-game .xm-result{inset:13% 7% 7%;display:flex;flex-direction:column;gap:10px;overflow:auto}.xm-win-art{width:55vw;height:55vw;max-height:28vh;flex-shrink:0}.christmas-game .xm-result h2{font-size:27px}.christmas-game .xm-result>p{font-size:15px}.xm-result-actions .xm-button{font-size:15px}.christmas-game .writing-stars{font-size:35px}}
@media(max-height:420px) and (orientation:landscape){.xm-header{top:7px}.xm-title>img{height:41px;width:34px}.xm-title h1{font-size:20px}.xm-header-actions button{height:44px;width:44px;min-height:44px}.xm-instruction{top:17%;font-size:18px}.xm-tray{top:30%;gap:7px}.xm-choice{min-height:67px}.xm-choice>.xm-prop,.xm-choice>.xm-food{width:40px;height:40px}.xm-choice>span:last-child:not(.xm-prop){font-size:11px}.xm-intro{inset:20% 8% 6%;gap:6px 5vw}.xm-intro h2{font-size:23px}.xm-intro>p{font-size:13px}.xm-intro-picture{max-height:63vh}.xm-intro>.xm-button{font-size:18px;min-height:47px}.xm-levels button{font-size:11px;padding:6px}.christmas-game .xm-result{inset:17% 8% 5%;gap:3px 5vw}.christmas-game .xm-result h2{font-size:25px}.christmas-game .xm-result>p{font-size:13px}.xm-result-actions .xm-button{font-size:13px;min-height:44px;padding:6px 9px}.christmas-game .sb-earned-notice{margin:2px auto;gap:5px}.xm-result .sb-earned-notice>img{width:32px;height:32px}.xm-result .sb-earned-notice span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.christmas-game *{animation:none!important;transition:none!important}.xm-munching .xm-deer-idle{opacity:0}.xm-munching .xm-deer-happy{opacity:1}}

[data-category="christmas"][hidden]{display:none!important}

.xm-finished-tree{position:relative;width:66.666%;height:100%;margin:auto}.xm-final-star{position:absolute;left:50%;top:3%;transform:translate(-50%,-25%);width:clamp(28px,8vh,55px);height:clamp(28px,8vh,55px);filter:drop-shadow(0 0 9px #ffe088)}

.xm-scene{background:var(--xm-fallback) center/cover no-repeat}.xm-header-actions svg{display:block;width:27px;height:27px;margin:auto}.xm-button:disabled{cursor:wait}
