.christmas-more .xm-scene{background:#275346}.christmas-more .xm-background{object-fit:cover}.christmas-more button{touch-action:none;-webkit-tap-highlight-color:transparent}.mc-stage{position:absolute;inset:0;pointer-events:none}.mc-stage button,.mc-stage [data-mc-touch]{pointer-events:auto}.mc-instruction{left:12%;width:76%;top:17%;font-size:clamp(18px,2.5vw,28px)}.mc-progress{position:absolute;z-index:5;left:5%;top:30%;display:flex;gap:4px;flex-direction:column;pointer-events:none}.mc-progress i{font-style:normal;font-size:22px;color:#fff7d5;filter:drop-shadow(0 2px 2px #69431d);opacity:.65}.mc-progress i.done{color:#ffd348;opacity:1;animation:mc-star-pop .5s ease-out}.mc-prop{display:block;width:100%;height:100%;background-repeat:no-repeat;pointer-events:none}.mc-cookie-prop{background-image:url('assets/generated/christmas107/cookie-props.png');background-size:400% 400%}.mc-train-prop{background-image:url('assets/generated/christmas107/train-props.png');background-size:400% 200%}.mc-hint{position:absolute;bottom:3%;left:4%;z-index:15}.mc-hint[hidden]{display:none}.mc-highlight{animation:mc-help 1.3s ease-in-out infinite!important;outline:4px solid #fff1a6;outline-offset:3px}.mc-bowl{position:absolute;width:min(50vh,55vw);aspect-ratio:1;left:50%;top:65%;transform:translate(-50%,-50%);touch-action:none}.mc-bowl>.mc-prop{filter:drop-shadow(0 9px 5px #643c2544)}.mc-spoon{position:absolute;left:23%;top:-3%;width:60%;height:85%;pointer-events:none;transform-origin:50% 70%;will-change:transform}.mc-batter{position:absolute;left:34%;top:36%;width:26%;height:8%;border-top:3px dashed #a0633677;border-radius:50%;pointer-events:none}.mc-stir-dots{position:absolute;left:38%;top:37%;font-size:50px;color:#fff0ad;opacity:.7;pointer-events:none}.mc-meter{position:absolute;left:35%;bottom:7%;width:30%;height:12px;border:3px solid #f7dfac;background:#9b633c;border-radius:20px;overflow:hidden}.mc-meter i{display:block;height:100%;width:0;background:#ffd75e;border-radius:20px}.mc-roll-dough{position:absolute;left:50%;top:73%;width:min(59vw,73vh);height:min(28vh,28vw);transform:translate(-50%,-50%);touch-action:none}.mc-roll-dough>.mc-prop{transform:scaleX(var(--flat,1))}.mc-roll-dough svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.mc-roll-guide{fill:none;stroke:#fff3bf;stroke-width:3;stroke-dasharray:1 5;stroke-linecap:round;filter:drop-shadow(0 2px 1px #7c4e27)}.mc-roll-guide.done{stroke:#71b970;stroke-dasharray:none}.mc-rolling-pin{position:absolute;left:24%;top:-15%;width:50%;height:125%;pointer-events:none}.mc-shape-order{position:absolute;left:18%;top:33%;width:clamp(60px,16vh,130px);aspect-ratio:1;transform:rotate(-7deg);background:#fff9e8;border:4px solid #fff1cc;border-radius:25%;filter:drop-shadow(0 5px 3px #633b2344)}.mc-cut-dough{position:absolute;left:43%;top:73%;width:min(48vw,66vh);height:min(25vh,26vw);transform:translate(-50%,-50%);background:none;border:0;padding:0}.mc-cut-dough>.mc-prop:nth-child(2){position:absolute;width:55%;height:170%;left:23%;top:-45%;animation:mc-stamp .6s ease-out}.mc-cutters{position:absolute;right:5%;top:32%;bottom:9%;display:grid;grid-template-columns:repeat(2,minmax(50px,1fr));gap:7px;width:25%;max-width:240px;align-content:center}.mc-cutters button{background:#fff7db;border:3px solid #cfac65;border-radius:20%;padding:2px;min-width:48px;min-height:58px;box-shadow:0 4px 0 #80603a}.mc-cutters .mc-prop{height:clamp(35px,9vh,90px);width:100%}.mc-cutters small{display:block;font:750 12px/1.1 system-ui;color:#41613c;text-transform:capitalize}.mc-cutters button[aria-pressed=true],.mc-parcels button[aria-pressed=true]{border-color:#fff7a4;outline:3px solid #58875c;transform:translateY(-4px)}.mc-oven{position:absolute;left:68%;top:66%;width:min(47vh,38vw);aspect-ratio:1;transform:translate(-50%,-50%);border:0;background:none;padding:0}.mc-cookie-tray{position:absolute;left:23%;top:74%;transform:translate(-50%,-50%) rotate(-5deg);width:min(31vw,42vh);height:min(22vh,25vw);display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:0;border:5px solid #b7bbb1;border-radius:15%;background:linear-gradient(130deg,#e7e5da,#858e85);box-shadow:0 6px 3px #68462966;padding:3px}.mc-cookie-tray .mc-prop{min-height:0}.mc-tray-baking{animation:mc-into-oven .7s ease-in forwards}.mc-warm{filter:drop-shadow(0 0 24px #ffd260);animation:mc-oven-warm 1.8s ease-in-out}.mc-icing-cookie{position:absolute;left:45%;top:66%;width:min(52vh,56vw);aspect-ratio:1;transform:translate(-50%,-50%);touch-action:none;filter:drop-shadow(0 6px 4px #603a2344)}.mc-icing{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.mc-icing .mc-icing-line{fill:none;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.mc-icing-palette{position:absolute;right:7%;top:32%;display:flex;flex-direction:column;gap:8px}.mc-icing-palette button{width:48px;height:48px;border:4px solid #fff8dc;border-radius:50%;background:var(--icing);box-shadow:0 4px 0 #79583d}.mc-icing-palette button[aria-pressed=true]{outline:3px solid #ffe282;outline-offset:3px;scale:1.08}.mc-cookie-ready{position:absolute;right:15%;bottom:6%;min-width:100px}.mc-cookie-ready:disabled{opacity:.55;animation:none}.mc-drag{position:absolute;z-index:32;width:70px;height:70px;pointer-events:none;filter:drop-shadow(0 5px 4px #58402966)}.mc-drag small{display:none}.mc-finished-tray{display:grid;grid-template-columns:repeat(2,1fr);padding:5%;gap:3%;height:100%;box-sizing:border-box;border:8px solid #d0c9ae;border-radius:15%;background:#9eaa98;box-shadow:0 7px 0 #65745e;transform:rotate(-4deg)}.mc-finished-cookie{position:relative;aspect-ratio:1}.mc-win-art>img{border:0!important;border-radius:0!important;object-fit:contain!important;box-shadow:none!important}.mc-win-art{filter:drop-shadow(0 8px 5px #50331e55)}
.mc-rail-layout{position:absolute;left:7%;right:6%;top:36%;height:42%;--tile:min(15vw,21vh);pointer-events:none}.mc-track-grid{display:grid;grid-template-columns:repeat(var(--cols),var(--tile));grid-template-rows:repeat(var(--rows),var(--tile));position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);gap:0}.mc-track{position:relative;width:var(--tile);height:var(--tile);min-width:50px;min-height:50px;background:#d9b879;border:2px solid #b18c4f;border-radius:13%;padding:0;box-shadow:0 5px 0 #826d3b;transition:filter .2s}.mc-track svg{width:100%;height:100%;overflow:visible}.mc-track-bed{stroke:#7e6748;stroke-width:36;fill:none}.mc-track-sleepers{stroke:#ae794c;stroke-width:31;stroke-dasharray:6 10;fill:none}.mc-track-rails{fill:none;stroke:#f4e0ac;stroke-width:13;filter:drop-shadow(0 1px 1px #5d4c30)}.mc-track:after{content:'';position:absolute;inset:0;border-radius:12%;pointer-events:none}.mc-track span{position:absolute;bottom:0;right:3px;font-size:18px;color:#fff8df;text-shadow:0 1px 2px #534a31}.mc-connected .mc-track-rails{stroke:#c7ef8f;filter:drop-shadow(0 0 4px #fff59d)}.mc-engine{position:absolute;left:calc(50% - (var(--cols)/2 + .72)*var(--tile));top:calc(50% + (var(--entry) - (var(--rows) - 1)/2)*var(--tile));width:calc(var(--tile)*1.4);height:calc(var(--tile)*1.4);transform:translate(-50%,-50%);padding:0;border:0;background:none;pointer-events:auto}.mc-engine>span:last-child{position:absolute;right:28%;top:40%;font-size:20px;color:#fff8d2;filter:drop-shadow(0 1px 2px #305d30)}.mc-station{position:absolute;left:calc(50% + (var(--cols)/2 + .62)*var(--tile));top:calc(50% + (var(--exit) - (var(--rows) - 1)/2)*var(--tile));width:calc(var(--tile)*1.5);height:calc(var(--tile)*1.5);transform:translate(-50%,-50%);pointer-events:none}.mc-arrive{animation:mc-station-party .75s ease-out}.mc-travelling{position:absolute;left:0;top:0;width:calc(var(--tile)*1.4);height:calc(var(--tile)*1.4);margin-left:calc(var(--tile)*-.7);margin-top:calc(var(--tile)*-.7);pointer-events:none;z-index:8;transform-origin:50% 50%}.mc-travelling[hidden]{display:none}.mc-travelling>span:last-child{position:absolute;left:-65%;top:5%;width:100%;height:100%}.mc-travelling>span:last-child>.mc-prop:last-child{position:absolute;width:58%;height:58%;left:22%;top:5%}.mc-rail-layout:has(.mc-travelling:not([hidden])) .mc-engine{visibility:hidden}.mc-load-request{position:absolute;left:12%;bottom:8%;width:70px;height:70px;background:#fff8df;border:4px solid #f3d491;border-radius:22%;transform:rotate(-5deg)}.mc-load-wagon{position:absolute;left:35%;bottom:3%;width:min(27vw,30vh);height:20vh;border:0;background:none;padding:0}.mc-parcels{position:absolute;right:8%;bottom:6%;display:flex;gap:10px}.mc-parcels button{width:clamp(54px,9vw,100px);height:clamp(54px,9vw,100px);background:#fff7df;border:3px solid #d7b776;border-radius:22%;padding:0;box-shadow:0 4px 0 #697846}.mc-game-train .mc-stage:has(.mc-load-wagon) .mc-rail-layout{top:30%;height:31%;--tile:min(11vw,16vh)}
.mc-bells{position:absolute;left:12%;right:12%;top:19%;bottom:29%;display:flex;gap:2%;justify-content:center;align-items:flex-start}.mc-bell{position:relative;flex:1;max-width:180px;height:100%;min-width:52px;background:none;border:0;padding:0}.mc-bell-rope{position:absolute;top:0;left:48%;height:27%;width:6px;background:repeating-linear-gradient(45deg,#e8d6a0 0 4px,#9f8a58 4px 7px);box-shadow:2px 0 2px #54482f55}.mc-bell-body{position:absolute;left:0;top:16%;width:100%;aspect-ratio:1;transform-origin:50% 0%;animation:mc-idle-bell 4s ease-in-out infinite;animation-delay:calc(var(--hue)/100deg * -1s)}.mc-bell-prop{background-image:url('assets/generated/christmas106/christmas-props.png');background-size:400% 400%;background-position:66.6667% 0%;filter:hue-rotate(var(--hue)) drop-shadow(0 5px 3px #314d3c55)}.mc-bell-mark{position:absolute;left:31%;top:41%;font-size:clamp(20px,4vw,43px);width:38%;height:38%;text-align:center;color:#fff7d2;text-shadow:0 2px 2px #6b5633;line-height:1}.mc-ringing .mc-bell-body{animation:mc-ring .8s ease-out;filter:drop-shadow(0 0 17px #fff1a1)}.mc-ringing .mc-bell-prop{filter:hue-rotate(var(--hue)) brightness(1.25)}.mc-bell:disabled{opacity:1}.mc-tune-dots{position:absolute;left:20%;right:20%;bottom:26%;display:flex;justify-content:center;gap:10px}.mc-tune-dots i{width:17px;height:17px;border-radius:50%;border:3px solid #fff1b9;background:#bf9d64;box-shadow:0 2px 3px #56704855}.mc-tune-dots i.done{background:#ffd75c;box-shadow:0 0 9px #fff6ae}.mc-listen{position:absolute;left:50%;bottom:10%;transform:translateX(-50%)}.mc-note-sparkles{position:absolute;left:12%;right:12%;top:25%;bottom:30%;pointer-events:none}.mc-note-sparkles span{position:absolute;top:30%;font-size:40px;color:#fff1a8;filter:drop-shadow(0 2px 1px #477743);animation:mc-note 1.2s ease-out forwards}.mc-paused *{animation-play-state:paused!important}.mc-paused .xm-pause *{animation-play-state:running!important}
@keyframes mc-help{50%{box-shadow:0 0 0 5px #fff1a666,0 0 25px #ffe279;filter:brightness(1.15)}}@keyframes mc-star-pop{50%{scale:1.4}}@keyframes mc-stamp{from{opacity:0;scale:1.4}to{opacity:1;scale:1}}@keyframes mc-into-oven{to{left:68%;top:68%;scale:.3;opacity:0}}@keyframes mc-oven-warm{50%{filter:drop-shadow(0 0 38px #ffd260) brightness(1.15)}}@keyframes mc-station-party{50%{scale:1.15;filter:drop-shadow(0 0 22px #ffe18d)}}@keyframes mc-idle-bell{50%{rotate:3deg}}@keyframes mc-ring{0%,100%{rotate:0}20%{rotate:18deg}45%{rotate:-14deg}70%{rotate:8deg}}@keyframes mc-note{to{transform:translateY(-80px) rotate(15deg);opacity:0}}
@media(orientation:portrait){.mc-instruction{top:14%;left:7%;width:86%;font-size:clamp(19px,5vw,26px)}.mc-progress{flex-direction:row;left:50%;top:24%;transform:translateX(-50%)}.mc-progress i{font-size:20px}.mc-bowl{width:min(80vw,42vh);top:65%}.mc-meter{left:25%;width:50%;bottom:14%}.mc-roll-dough{top:74%;width:85%;height:23vh}.mc-shape-order{top:31%;left:10%;width:75px}.mc-cut-dough{left:50%;width:90%;height:23vh;top:66%}.mc-cutters{left:7%;right:7%;top:auto;bottom:12%;width:auto;max-width:none;grid-template-columns:repeat(5,1fr);gap:7px}.mc-cutters:has(button:nth-child(3):last-child){left:16%;right:16%;grid-template-columns:repeat(3,1fr)}.mc-cutters .mc-prop{height:48px}.mc-cutters button{min-height:70px}.mc-cutters small{font-size:11px}.mc-oven{left:68%;top:66%;width:60vw}.mc-cookie-tray{left:26%;top:77%;width:43vw;height:15vh}.mc-icing-cookie{left:50%;top:62%;width:85vw;max-width:42vh}.mc-icing-palette{top:auto;right:8%;left:8%;bottom:18%;flex-direction:row;justify-content:center;gap:12px}.mc-cookie-ready{right:50%;transform:translateX(50%);bottom:7%}.mc-cookie-ready span{display:inline}.mc-hint{bottom:3%;left:4%;font-size:13px}.mc-rail-layout{left:3%;right:3%;top:39%;height:36%;--tile:min(20vw,12vh)}.mc-engine{width:calc(var(--tile)*1.3);height:calc(var(--tile)*1.3)}.mc-station{width:calc(var(--tile)*1.3);height:calc(var(--tile)*1.3)}.mc-game-train .mc-stage:has(.mc-load-wagon) .mc-rail-layout{top:33%;height:33%;--tile:min(19vw,11vh)}.mc-load-request{left:8%;bottom:24%;width:63px;height:63px}.mc-load-wagon{left:37%;bottom:21%;width:45vw;height:18vh}.mc-parcels{right:10%;left:10%;justify-content:center;bottom:10%;gap:16px}.mc-parcels button{width:70px;height:70px}.mc-bells{left:7%;right:7%;top:31%;bottom:32%;gap:1%}.mc-bell-body{top:25%}.mc-bell-rope{height:32%}.mc-bell-mark{font-size:clamp(18px,6vw,30px)}.mc-tune-dots{bottom:28%;gap:8px}.mc-listen{bottom:16%;white-space:nowrap}.mc-note-sparkles{top:34%}}
@media(max-height:420px) and (orientation:landscape){.mc-instruction{top:17%;font-size:18px}.mc-cutters{right:5%;width:22%;gap:5px;top:30%;bottom:4%}.mc-cutters .mc-prop{height:35px}.mc-cutters button{min-height:55px}.mc-icing-palette{top:30%;flex-direction:row;flex-wrap:wrap;width:110px;gap:7px}.mc-icing-palette button{width:44px;height:44px}.mc-cookie-ready{bottom:4%;right:7%;font-size:13px;min-height:44px}.mc-bells{top:20%;bottom:29%;left:14%;right:14%}.mc-bell-body{top:13%;max-height:46vh}.mc-bell-mark{font-size:28px}.mc-tune-dots{bottom:24%}.mc-listen{bottom:5%;min-height:44px;font-size:14px}.mc-progress{top:31%}.mc-progress i{font-size:18px}.mc-hint{min-height:44px;font-size:13px}.mc-parcels button{width:55px;height:55px}}
@media(prefers-reduced-motion:reduce){.christmas-more *{animation:none!important;transition:none!important}}
.mc-icing clipPath path{fill:white;stroke:none}.mc-icing clipPath circle{fill:white}.mc-bell-body{animation-delay:0s}

@media(orientation:portrait){.mc-bells{top:19%;bottom:32%}.mc-bell-rope{height:43%}.mc-bell-body{top:36%}}

@media(orientation:portrait){.mc-rail-layout{--tile:min(calc(90vw / (var(--cols) + 2.7)),12vh)}.mc-game-train .mc-stage:has(.mc-load-wagon) .mc-rail-layout{--tile:min(calc(90vw / (var(--cols) + 2.7)),11vh)}.mc-track{min-width:44px;min-height:44px}}

@media(orientation:portrait){.mc-rail-layout{--tile:max(44px,min(calc(90vw / (var(--cols) + 2.7)),12vh))}.mc-game-train .mc-stage:has(.mc-load-wagon) .mc-rail-layout{--tile:max(44px,min(calc(90vw / (var(--cols) + 2.7)),11vh))}}

/* Keep nested controls in Android WebView’s accessibility and touch trees. */
.mc-stage,.mc-cutters,.mc-parcels,.mc-icing-palette,.mc-track-grid,.mc-bells{pointer-events:auto}

/* Cookie artwork and icing share the exact same square, including at the finale. */
.christmas-more .mc-icing-cookie{left:34%;top:64%;width:min(58vh,44vw);user-select:none;-webkit-user-select:none}
.christmas-more .mc-icing-cookie,.christmas-more .mc-cookie-tray,.christmas-more .mc-cutters button,.christmas-more .mc-icing-panel button{touch-action:none!important}
.christmas-more .mc-cutters .mc-prop{width:48px;height:48px;margin-inline:auto;max-width:100%}
.christmas-more .mc-icing-line{fill:none;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}
.christmas-more .mc-icing-panel{position:absolute;right:5%;top:31%;width:272px;max-width:40%;display:grid;gap:12px;pointer-events:auto}
.christmas-more .mc-icing-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.christmas-more .mc-icing-tools button,.christmas-more .mc-topping-palette button{min-height:46px;background:#fff5d9;border:3px solid #d1b375;border-radius:15px;box-shadow:0 4px 0 #846441;color:#355738;padding:2px}
.christmas-more .mc-icing-tools button{display:flex;align-items:center;justify-content:center;gap:6px;font:750 13px/1.1 system-ui}
.christmas-more .mc-icing-tools b{font-size:25px;line-height:1}
.christmas-more .mc-icing-palette{position:static;display:grid;grid-template-columns:repeat(5,1fr);gap:8px;width:auto;max-width:none;transform:none}
.christmas-more .mc-icing-palette button{width:100%;height:46px;min-width:44px;min-height:44px;box-sizing:border-box;padding:0}
.christmas-more .mc-topping-palette{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.christmas-more .mc-topping-palette button{min-width:44px;height:46px;display:grid;place-items:center}
.christmas-more .mc-topping-palette svg{width:34px;height:34px;overflow:visible;filter:drop-shadow(0 1px 1px #795b3544)}
.christmas-more .mc-icing-panel [aria-pressed=true]{outline:3px solid #ffdf6b;outline-offset:2px;box-shadow:0 4px 0 #51794a,0 0 12px #fff6c1;scale:1}
.christmas-more .mc-cookie-ready{right:8%;bottom:5%;min-height:46px}
.christmas-more .mc-cookie-tray .mc-prop{aspect-ratio:1;width:auto;height:100%;max-width:100%;justify-self:center}
.christmas-more .mc-finished-tray{width:100%;height:100%;min-width:0;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));place-items:center;container-type:size}
.christmas-more .mc-finished-cookie{width:min(40cqw,40cqh);height:min(40cqw,40cqh);min-width:0;min-height:0}
.christmas-more .mc-finished-tray:has(.mc-finished-cookie:nth-child(2):last-child){grid-template-rows:1fr}
.christmas-more .mc-drag-tray{position:fixed;transform:rotate(-5deg);z-index:32;min-width:0;min-height:0;box-sizing:border-box;pointer-events:none;margin:0;filter:drop-shadow(0 8px 6px #58402966)}
.christmas-more .mc-tray-baking{animation:mc-whole-tray-oven .8s ease-in forwards;pointer-events:none}
@keyframes mc-whole-tray-oven{to{left:68%;top:68%;transform:translate(-50%,-50%) scale(.34) rotate(0);opacity:0}}
@media(orientation:portrait){
 .christmas-more .mc-icing-cookie{left:50%;top:45%;width:min(74vw,32vh);max-width:none}
 .christmas-more .mc-icing-panel{top:auto;bottom:15%;left:50%;right:auto;transform:translateX(-50%);max-width:none;width:272px;gap:10px}
 .christmas-more .mc-cookie-ready{right:50%;bottom:4%;transform:translateX(50%)}
}
@media(max-height:420px) and (orientation:landscape){
 .christmas-more .mc-cutters .mc-prop{width:35px;height:35px}
 .christmas-more .mc-icing-panel{top:28%;right:4%;width:252px;gap:7px}
 .christmas-more .mc-icing-palette,.christmas-more .mc-topping-palette{gap:6px}
 .christmas-more .mc-icing-tools button,.christmas-more .mc-icing-palette button,.christmas-more .mc-topping-palette button{height:44px;min-height:44px}
 .christmas-more .mc-cookie-ready{bottom:3%;right:6%;min-height:44px}
}
@media(orientation:portrait) and (max-height:650px){
 .christmas-more .mc-icing-cookie{top:37%;width:min(65vw,26vh)}
 .christmas-more .mc-game-cookies:has(.mc-icing-panel) .mc-progress{left:3%;top:32%;transform:none;flex-direction:column}
}

/* Everyday train art has no Christmas decorations; both editions share touch layouts. */
.mc-everyday .mc-train-prop{background-image:url('assets/generated/farm112/train-props.png')}
.christmas-more .mc-everyday .mc-topping-palette{grid-template-columns:repeat(4,minmax(0,1fr))}
