.lr-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;color:#49351f;background:#d4e7a2}.lr-dialog *{box-sizing:border-box}.lr-scene{position:relative;isolation:isolate;display:grid;grid-template-rows:70px minmax(0,1fr) auto;gap:8px;width:100%;height:100%;overflow:hidden;padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:var(--lr-scene) center/cover}.lr-scene.lr-active{touch-action:none}.lr-dialog button{font:800 17px system-ui;color:#533d25;border:2px solid #cfa564;border-radius:15px;background:#fff7e5;min-width:46px;min-height:46px;cursor:pointer;touch-action:manipulation}.lr-dialog button:focus-visible{outline:4px solid #176946;outline-offset:3px}.lr-dialog button:disabled{cursor:default}.lr-dialog button svg{width:26px;height:26px}.lr-header{z-index:5;display:flex;align-items:center;gap:8px;padding:4px 9px;border:2px solid #e3c18a;border-radius:22px;background:#fff7e8f2;box-shadow:0 4px 15px #51391c28}.lr-header>img{width:50px;height:58px;object-fit:contain}.lr-header h2{flex:1;min-width:0;margin:0;font:800 clamp(18px,2.8vw,27px) Georgia,serif}.lr-header>button{flex:none;width:46px;height:46px;padding:8px}.lr-header [data-lr-stage]{font-size:15px;font-weight:900;white-space:nowrap}.lr-stars{display:flex;gap:2px;color:#c8bd92;font-size:23px;white-space:nowrap}.lr-stars .earned{color:#efb83e;text-shadow:0 1px #a76a25}.lr-board{position:relative;min-width:0;min-height:0;overflow:hidden;user-select:none;-webkit-user-select:none}.lr-footer{z-index:4;position:relative;max-height:34vh;overflow:auto;padding:8px 12px;border:2px solid #d7b074;border-radius:22px;background:#fff7e6ed;box-shadow:0 5px 16px #58381926;touch-action:pan-y}.lr-footer>p{margin:0 0 6px;font-size:clamp(13px,1.7vw,17px);font-weight:750;text-align:center;line-height:1.35}.lr-dock{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;min-height:54px}.lr-source{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;width:66px;height:62px;padding:4px;box-shadow:0 3px 0 #b68c53;touch-action:none!important;user-select:none}.lr-source img{width:100%;height:100%;object-fit:contain;pointer-events:none}.lr-source:has(>span) img{height:70%}.lr-source>span{font-size:12px;line-height:1.1;white-space:nowrap}.lr-source svg{width:100%!important;height:100%!important;pointer-events:none}.lr-selected{outline:4px solid #f2ba42!important;outline-offset:2px;filter:brightness(1.04)}.lr-dialog .lr-target{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);background:#fff7c52b;border:3px dashed #e9c777;box-shadow:inset 0 0 0 2px #fff9e354;padding:0;touch-action:none}.lr-target>img{width:100%;height:100%;object-fit:contain}.lr-target.lr-ready{border-color:#f9c34c;background:#fff0ab40;box-shadow:0 0 0 3px #fff6cb66,0 0 20px #fff0a65c}.lr-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:7px 14px;box-shadow:0 3px 0 #b38b51}.lr-dialog .lr-go,.lr-dialog .lr-primary{background:linear-gradient(#7cba68,#4b8d45);border-color:#427b38;color:#fffbed;box-shadow:0 4px 0 #315f2b}.lr-go>b{font-size:28px;line-height:1}.lr-ghost{position:absolute;z-index:50;transform:translate(-50%,-55%) scale(1.12);pointer-events:none!important;width:86px;height:86px;padding:7px;border:3px solid #f3c66b;border-radius:20px;background:#fff9e3;box-shadow:0 10px 24px #4f361c55;display:grid;place-items:center}.lr-ghost img,.lr-ghost svg{width:100%!important;height:100%!important;object-fit:contain}.lr-ghost>span{display:none}.lr-nudge{animation:lr-nudge .35s}.lr-hint{outline:4px solid #f8c63c!important;outline-offset:3px}.lr-task-complete:after{content:'★';position:absolute;left:50%;top:15%;color:#ffd35a;font-size:80px;pointer-events:none;text-shadow:0 3px #b27926;animation:lr-star .8s both}.lr-overlay{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:16px;background:#352a174d;backdrop-filter:blur(3px);overflow:auto;touch-action:pan-y}.lr-paper{position:relative;width:min(540px,100%);max-height:100%;overflow:auto;padding:22px;text-align:center;border:4px solid #d4ac67;border-radius:30px;background:#fff7e6;box-shadow:0 12px 50px #55351c55}.lr-paper>small{font-size:10px;letter-spacing:.1em;color:#805430;font-weight:850}.lr-paper h2{font:800 clamp(24px,4vw,34px) Georgia,serif;margin:8px 0 12px}.lr-paper p{font-size:17px;line-height:1.4;margin:10px 0 14px}.lr-paper>button{display:block;width:100%;margin-top:10px;min-height:52px;padding:10px}.lr-preview{width:180px;height:130px;object-fit:cover;border:3px solid #e9cb94;border-radius:22px}.lr-farmer{width:90px;height:95px;object-fit:contain}.lr-modes{display:flex;justify-content:center;gap:8px;border:0;margin:10px 0;padding:0}.lr-modes legend{font-size:13px;font-weight:800;margin:0 auto 7px}.lr-modes label{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:750;padding:8px;border:2px solid #dbc18d;border-radius:12px;background:#fffdf4}.lr-modes input{accent-color:#4c8d44;width:20px;height:20px}.lr-win .fa-win-stars{font-size:46px;color:#f5bc3b;letter-spacing:4px;text-shadow:0 2px #b47b2c}.lr-win>button:first-of-type{animation:lr-invite 2.4s infinite}.lr-paused *{animation-play-state:paused!important}.lr-task-tip{font-size:15px;font-weight:750;text-align:center;line-height:1.3}.lr-board img{user-select:none;-webkit-user-drag:none;pointer-events:none}
/* Water routing: the water follows the actual connected gutters. */
.lr-pipe-grid{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);height:min(85%,360px);aspect-ratio:1;max-width:65%;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:3px;padding:7px;border:5px solid #8e633a;border-radius:21px;background:#cfac6ac9;box-shadow:0 7px 0 #74512e33}.lr-dialog .lr-pipe{min-width:0;min-height:0;position:relative;padding:0;border:0;border-radius:10px;background:#8f673e14}.lr-pipe svg{width:100%;height:100%;overflow:visible}.lr-pipe path{fill:none;stroke-linecap:butt;stroke-linejoin:round}.lr-pipe-edge{stroke:#6f4323;stroke-width:34}.lr-pipe-wood{stroke:#d7a661;stroke-width:27}.lr-pipe-channel{stroke:#9d6938;stroke-width:15}.lr-pipe-water{stroke:#75d9ec;stroke-width:11;stroke-dasharray:100;stroke-dashoffset:100;animation:lr-water-flow .5s linear both;filter:drop-shadow(0 0 2px #c5ffff)}.lr-water-source{position:absolute;left:0;top:2%;width:21%;height:42%;display:grid;place-items:center}.lr-water-source img{width:100%;height:100%;object-fit:contain}.lr-water-plants{position:absolute;right:0;bottom:0;width:20%;height:85%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:2px}.lr-plant{width:100%;height:30%;object-fit:contain;transform-origin:50% 90%}.lr-grow{animation:lr-grow .85s cubic-bezier(.2,.8,.2,1) both}
/* Wooden sound train and magnetic letter tiles. */
.lr-word-goal{position:absolute;left:50%;top:0;transform:translateX(-50%);height:48%;max-height:170px;min-height:70px}.lr-word-goal button{height:100%;padding:4px 16px;display:flex;align-items:center;gap:10px;background:#fff6dddf;border-color:#e6c48c;border-radius:24px}.lr-word-goal img{width:85px;height:100%;object-fit:contain}.lr-word-goal strong{font-size:clamp(18px,3vw,26px);white-space:nowrap}.lr-train{position:absolute;left:4%;right:4%;bottom:16%;height:43%;max-height:180px;display:flex;align-items:flex-end;justify-content:center;gap:2px}.lr-engine{width:25%;height:100%;flex:none}.lr-engine>img{width:100%;height:100%;object-fit:contain}.lr-carriage{position:relative;width:24%;height:83%;max-width:150px;flex:none}.lr-carriage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.lr-dialog .lr-letter-slot{left:50%;top:39%;width:56%;height:57%;border-radius:12px;background:#fff8e4d9;color:#67421f;font-size:clamp(27px,5vw,48px);border-width:2px}.lr-train-track{position:absolute;bottom:13%;left:0;right:0;height:10px;border-top:4px solid #79583a;border-bottom:4px solid #79583a;background:repeating-linear-gradient(90deg,#b88850 0 8px,transparent 8px 28px)}.lr-letter-tray{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;align-items:center}.lr-dialog .lr-letter-tile{width:52px;height:55px;font-size:29px;color:#79532c;background:linear-gradient(135deg,#fff0c5,#dfb573);border-color:#b48546}.lr-letter-tile strong{line-height:1}
html:has(.lr-dialog[open]){overflow:hidden}
/* Scene art fills its touch surface; toolbar icon sizing must not shrink gutters or ramps. */
.lr-dialog .lr-pipe svg,.lr-dialog .lr-ramp-space svg{width:100%;height:100%}
/* Equal shares: movable food remains visible on the actual plates. */
.lr-friends{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:6%;padding-bottom:8%}.lr-friend{position:relative;width:30%;height:95%;max-width:220px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.lr-picnic-animal{width:100%;height:55%;min-height:50px}.lr-picnic-animal img{width:100%;height:100%;object-fit:contain}.lr-dialog .lr-plate-target{top:76%;left:50%;width:110%;height:clamp(64px,18vw,125px);background:transparent;border-color:#caa86b80;border-radius:50%}.lr-plate{width:100%;height:100%;border-radius:50%;background:radial-gradient(ellipse at 50% 45%,#fffdf3 52%,#e9dcb8 54%,#fff8e5 70%,#bca16f 72%,#f9edcf 75%);box-shadow:0 5px 9px #6f542d33}.lr-served{position:absolute;top:76%;left:50%;transform:translate(-50%,-50%);width:90px;height:90px;pointer-events:none}.lr-dialog .lr-served-food{position:absolute;left:calc(50% + (var(--food-i) - 1)*22px);top:calc(45% + (var(--food-i) - 1)*9px);transform:translate(-50%,-50%);width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none;pointer-events:auto;animation:lr-food-land .4s both}.lr-plate-dots{position:absolute;bottom:0;display:flex;justify-content:center;gap:4px;height:9px}.lr-plate-dots i{width:8px;height:8px;border-radius:50%;background:#8eaf52}.lr-share-tray{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;min-height:60px;max-width:480px}.lr-share-tray .lr-source{width:51px;height:52px}.lr-picnic-time .lr-picnic-animal{animation:lr-happy-hop .55s 2 alternate}.lr-picnic-time .lr-served img{animation:lr-nibble 1.1s both}
/* Ramps, rolling trolley and its passenger. */
.lr-rolling-track{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);width:100%;height:auto;aspect-ratio:1.9;max-height:100%}.lr-ramp-space{position:absolute;top:14%;width:28%;height:73%}.lr-dialog .lr-ramp-space>.lr-target{left:50%;top:50%;width:100%;height:100%;border:0;background:transparent;box-shadow:none}.lr-ramp-space svg{width:100%;height:100%;overflow:visible}.lr-ramp-outline{stroke:#fff0bc;stroke-width:17;stroke-dasharray:9 5;fill:none;stroke-linecap:round;filter:drop-shadow(0 2px 1px #8b6735)}.lr-ramp-edge{stroke:#9b622f;stroke-width:18;fill:none;stroke-linecap:round;filter:drop-shadow(0 5px 1px #543b2036)}.lr-ramp-grain{stroke:#e6ba79;stroke-width:8;fill:none;stroke-linecap:round}.lr-ramp-tray{display:flex;justify-content:center;align-items:center;gap:8px}.lr-ramp-tray .lr-source{width:83px;height:66px}.lr-ramp-tray .lr-source svg{height:75%!important}.lr-rolling-cart{position:absolute;transform:translate(-50%,-92%);width:20%;height:42%;max-width:150px;max-height:150px;z-index:4}.lr-trolley{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.lr-passenger{position:absolute;left:25%;bottom:43%;width:55%;height:63%;object-fit:contain;z-index:2}.lr-wheels-turn .lr-trolley{animation:lr-trolley-bob .2s infinite alternate}.lr-rolling-home{position:absolute;right:0;bottom:0;width:16%;height:36%}.lr-rolling-home img{width:100%;height:100%;object-fit:contain}
/* Shape construction uses real geometric pieces, then reveals the farm friend. */
.lr-shape-mat{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:min(94%,460px);height:94%;border:3px solid #b5925440;border-radius:25px;background:#fff5dc38;box-shadow:inset 0 0 30px #f9e4ad44}.lr-shape-target,.lr-fitted-shape{min-width:44px;min-height:44px}.lr-dialog .lr-shape-target{border:0;background:transparent;box-shadow:none}.lr-shape-svg{width:100%!important;height:100%!important;overflow:visible}.lr-shape-svg g{transform-origin:50% 50%;transform:rotate(var(--shape-angle))}.lr-shape-svg g>*{fill:var(--shape-colour);stroke:#a7763a;stroke-width:4;filter:drop-shadow(0 3px 0 #8c602a55)}.lr-shape-outline g>*{fill:#7f684d30;stroke:#f4e4b6;stroke-width:5;stroke-dasharray:9 4;filter:drop-shadow(0 1px 1px #634d29)}.lr-fitted-shape{position:absolute;transform:translate(-50%,-50%);animation:lr-food-land .3s both}.lr-shape-tray{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap}.lr-shape-tray .lr-source{width:59px;height:58px}.lr-made-friend{position:absolute;inset:8%;opacity:0;pointer-events:none}.lr-made-friend img{width:100%;height:100%;object-fit:contain}.lr-shape-alive .lr-made-friend{animation:lr-friend-arrive 1.4s both}.lr-shape-alive .lr-fitted-shape{animation:lr-shape-fade .5s both}
/* Apple arithmetic: the real quantity changes before the number label is chosen. */
.lr-maths-story{position:absolute;left:50%;top:0;transform:translateX(-50%);display:flex;gap:10px;align-items:center;padding:6px 16px;border:2px solid #d6b77e;border-radius:17px;background:#fff8e4ed;color:#79552c;font-size:clamp(22px,4vw,34px);font-weight:900}.lr-maths-story b{color:#8eaa54}.lr-number-basket{position:absolute;left:5%;top:24%;width:54%;height:66%}.lr-dialog .lr-maths-basket{left:50%;top:61%;width:100%;height:75%;background:transparent;border:0;box-shadow:none}.lr-basket-weave{position:absolute;inset:24% 0 0;border:5px solid #99602e;border-radius:25% 25% 34% 34%;background:repeating-linear-gradient(0deg,#ba854b 0 6px,#dbaa69 6px 12px);box-shadow:inset 0 0 0 5px #e7bd7a,0 6px 10px #53381835}.lr-basket-weave:before{content:'';position:absolute;left:22%;right:22%;top:-44%;height:54%;border:9px solid #ac773e;border-bottom:0;border-radius:100% 100% 0 0}.lr-basket-apples{position:absolute;left:3%;right:3%;top:8%;height:62%;display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;pointer-events:none;z-index:2}.lr-counted-apple{width:30%;height:55%;object-fit:contain;animation:lr-food-land .4s both}.lr-basket-apples .lr-source{pointer-events:auto;background:transparent;border:0;box-shadow:none;width:34%;height:60%;padding:0}.lr-dialog .lr-number-label{left:50%;top:82%;width:61px;height:51px;background:#fff0c5;border-style:solid;font-size:28px;z-index:3}.lr-bunny-place{position:absolute;right:0;bottom:5%;width:36%;height:65%}.lr-dialog .lr-bunny-target{left:50%;top:50%;height:100%;width:100%;background:transparent;border:0;box-shadow:none}.lr-bunny{width:100%!important;height:100%!important;overflow:visible}.lr-bunny ellipse{fill:#f9edcb;stroke:#9c784d;stroke-width:3}.lr-bunny-eye{fill:#4a3021}.lr-bunny-nose{fill:#e59687}.lr-bunny-apples{position:absolute;bottom:5%;left:0;right:0;display:flex;justify-content:center;pointer-events:none}.lr-bunny-apples img{width:28%;height:55px;object-fit:contain}.lr-orchard-apples{position:absolute;left:5%;right:35%;top:18%;display:flex;justify-content:center;gap:4px}.lr-orchard-apples .lr-source{width:66px;height:66px;background:transparent;border:0;box-shadow:none}.lr-number-tray{display:flex;gap:15px;justify-content:center}.lr-dialog .lr-number-tile{width:66px;height:60px;font-size:34px;background:linear-gradient(135deg,#fff2ca,#e3bd7e)}.lr-maths-happy .lr-bunny{animation:lr-happy-hop .4s 2 alternate}
/* Rhyming pictures become actual bridge planks. */
.lr-rhyme-anchor{position:absolute;left:50%;top:0;transform:translateX(-50%);height:37%;max-height:130px}.lr-rhyme-anchor button{height:100%;display:flex;align-items:center;gap:10px;background:#fff7e3e8;padding:4px 15px;border-radius:20px}.lr-rhyme-anchor img{width:66px;height:100%;object-fit:contain}.lr-rhyme-anchor span{font-size:18px}.lr-rhyme-bridge{position:absolute;left:17%;right:8%;top:45%;height:40%;display:flex;align-items:center;justify-content:center;gap:4px;border-top:6px solid #946331;border-bottom:6px solid #946331}.lr-rhyme-log{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:30%;height:100%;max-width:160px;background:repeating-linear-gradient(0deg,#bc8a4e 0 14px,#cda566 14px 29px)!important;border:3px solid #865b2d!important;border-radius:11px!important;box-shadow:0 5px 0 #6d492833!important;display:grid;place-items:center}.lr-rhyme-log>img{width:86%;height:90%;object-fit:contain;padding:4px}.lr-rhyme-log>span{font-size:42px;color:#f7e3a4}.lr-crossing-lamb{position:absolute;left:4%;top:48%;height:47%;width:18%;z-index:3}.lr-crossing-lamb img{width:100%;height:100%;object-fit:contain}.lr-picture-tray{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.lr-picture-tray .lr-source{width:70px;height:69px}.lr-river-glints{position:absolute;left:37%;right:20%;top:36%;bottom:2%;background:linear-gradient(95deg,#75c9dd22,#bcecf133,#78c8d322);border-radius:45%;animation:lr-river 3s ease-in-out infinite alternate}
/* Pip occupies the actual doorway, bridge arch or space behind the bale. */
.lr-pip-landmarks{position:absolute;inset:8% 0 0}.lr-pip-landmarks>div{position:absolute;isolation:isolate}.lr-pip-barn{left:0;top:0;width:41%;height:62%}.lr-pip-barn>img:first-child{width:100%;height:100%;object-fit:contain}.lr-pip-bridge{right:0;top:30%;width:48%;height:52%}.lr-bridge-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2}.lr-pip-hay{left:15%;bottom:0;width:33%;height:39%}.lr-hay-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2}.lr-dialog .lr-pip-landmarks .lr-target{z-index:4;background:transparent;border-color:#f9e6a800;box-shadow:none}.lr-dialog .lr-pip-landmarks .lr-target.lr-ready{border-color:#f6d25a;box-shadow:0 0 18px #fff1b177;background:#fff5bd18}.lr-pip-inside{position:absolute!important;left:40%;top:42%;height:38%;width:28%;object-fit:contain;z-index:3}.lr-pip-under{position:absolute;left:38%;bottom:9%;height:56%;width:31%;object-fit:contain;z-index:1}.lr-pip-behind{position:absolute;right:0;bottom:30%;height:95%;width:58%;object-fit:contain;z-index:1}.lr-place-prompt{position:absolute;right:3%;top:0;background:#fff7e4eb;border:2px solid #d5b47e;border-radius:16px;padding:7px 12px;font-size:clamp(16px,2.5vw,23px);font-weight:850}.lr-pip-piece{width:80px;height:65px}.lr-pip-peek .lr-pip-inside,.lr-pip-peek .lr-pip-under,.lr-pip-peek .lr-pip-behind{animation:lr-peek 1.2s both}
/* A visible arrow program drives the tractor one cell at a time. */
.lr-road{position:absolute;left:50%;top:0;transform:translateX(-50%);width:min(95%,400px);height:calc(100% - 66px);display:grid;grid-template-columns:repeat(var(--road-size),1fr);grid-template-rows:repeat(var(--road-size),1fr);border:5px solid #9e7a40;border-radius:20px;overflow:hidden;background:#e3c283d9;box-shadow:0 6px 0 #7b5c3433}.lr-road-cell{display:grid;place-items:center;min-height:0;border:1px dashed #b08b5177;background:#f3dba442}.lr-road-cell img{width:75%;height:75%;max-height:85px;object-fit:contain}.lr-road-cell.blocked{background:#b8965733}.lr-program-tractor{position:absolute;transform:translate(-50%,-50%);z-index:3}.lr-program-tractor img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 1px #704b3033)}.lr-program{position:absolute;bottom:0;left:0;right:0;height:59px;display:flex;align-items:center;gap:5px;overflow-x:auto;overflow-y:hidden;padding:4px 5px;touch-action:pan-x;background:#fff5dacc;border:2px solid #c9a96d;border-radius:17px}.lr-command{height:46px;min-width:47px;flex:none;padding:4px;position:relative;background:#fff3cf}.lr-command small{position:absolute;left:3px;top:1px;font-size:10px;color:#90724a}.lr-command svg{height:25px;width:25px}.lr-dialog .lr-queue-target{position:relative;left:auto;top:auto;transform:none;width:49px;height:46px;flex:none;font-size:27px}.lr-arrow-tray{display:flex;justify-content:center;align-items:center;gap:6px}.lr-arrow-tray .lr-source{width:54px;height:58px}.lr-arrow-tray .lr-source svg{height:64%!important}.lr-arrow-tray .lr-source>span{font-size:10px}.lr-clear{font-size:25px;padding:6px;min-width:44px}
/* Gesture-driven dancing, an audible freeze cue and generous settling time. */
.lr-freeze-cue{position:absolute;left:50%;top:0;transform:translateX(-50%);font:900 clamp(30px,6vw,55px) Georgia,serif;color:#fffbe6;text-shadow:0 3px #537637,0 0 8px #6b9638;border:3px solid #d9e4aa;background:#76a95bda;border-radius:22px;padding:5px 25px;z-index:3}.lr-is-freeze .lr-freeze-cue{background:#d4a852dc;text-shadow:0 3px #926932;border-color:#ffe5a2}.lr-dialog .lr-dancer{position:absolute;transform:translate(-50%,-50%);width:37%;height:60%;max-width:230px;max-height:255px;border:0;background:transparent;box-shadow:none;z-index:2;padding:0;touch-action:none}.lr-dancer>img{width:100%;height:100%;object-fit:contain;animation:lr-dance .6s infinite alternate;transform-origin:50% 90%}.lr-is-freeze .lr-dancer>img{animation-play-state:paused}.lr-dance-shadow{position:absolute;left:10%;right:10%;bottom:0;height:9%;background:#3a5d2530;border-radius:50%;z-index:-1}.lr-freeze-meter{position:absolute;left:20%;right:20%;bottom:2%;height:15px;border:2px solid #dfca94;background:#fff8e1ba;border-radius:14px;overflow:hidden}.lr-freeze-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#f4be5f,#8fb961);border-radius:12px}.lr-music-notes{position:absolute;inset:10%;pointer-events:none;color:#fff2a3;font-size:40px;text-shadow:0 2px #957037}.lr-music-notes span{position:absolute;left:15%;top:35%;animation:lr-note 1.6s infinite alternate}.lr-music-notes span:nth-child(2){left:80%;top:20%;animation-delay:.3s}.lr-music-notes span:nth-child(3){left:67%;top:65%;animation-delay:.6s}.lr-is-freeze .lr-music-notes{opacity:.2}.lr-dance-cheer .lr-dancer img{animation:lr-happy-hop .35s 2 alternate}
@keyframes lr-nudge{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes lr-star{0%{opacity:0;transform:translate(-50%,20px) scale(.3)}40%{opacity:1;transform:translate(-50%,-10px) scale(1.1)}100%{opacity:0;transform:translate(-50%,-35px) scale(.8)}}@keyframes lr-water-flow{to{stroke-dashoffset:0}}@keyframes lr-grow{0%{transform:scale(.7)}65%{transform:scale(1.12)}100%{transform:scale(1)}}@keyframes lr-food-land{from{opacity:.4;translate:0 -10px}to{opacity:1;translate:0 0}}@keyframes lr-happy-hop{to{translate:0 -12px;scale:1.04 .98}}@keyframes lr-nibble{70%{transform:scale(.85)}100%{transform:scale(.9)}}@keyframes lr-trolley-bob{to{translate:0 -2px}}@keyframes lr-friend-arrive{0%{opacity:0;transform:scale(.5)}40%{opacity:1;transform:scale(1.05)}100%{opacity:1;transform:translateX(10%)}}@keyframes lr-shape-fade{to{opacity:.12}}@keyframes lr-river{to{translate:0 4px;filter:brightness(1.1)}}@keyframes lr-peek{20%{translate:0 -8px}60%{translate:0 2px}100%{translate:0 0}}@keyframes lr-dance{0%{rotate:-7deg;translate:0 2px;scale:1.03 .98}100%{rotate:7deg;translate:0 -8px;scale:.98 1.03}}@keyframes lr-note{to{translate:0 -15px;rotate:9deg}}@keyframes lr-invite{50%{filter:brightness(1.1);scale:1.02}}
@media(max-width:500px){.lr-scene{grid-template-rows:66px minmax(0,1fr) auto;gap:7px;padding-left:8px;padding-right:8px}.lr-header{gap:5px;padding:3px 5px;border-radius:19px}.lr-header>img{width:34px;height:50px}.lr-header h2{font-size:17px;line-height:1.05}.lr-header>button{width:40px;min-width:40px;height:44px;min-height:44px;padding:7px}.lr-header>button svg{width:22px;height:22px}.lr-header [data-lr-stage]{font-size:12px}.lr-stars{display:none}.lr-footer{padding:8px;max-height:34vh}.lr-paper{padding:16px}.lr-preview{height:120px;width:170px}.lr-paper h2{font-size:27px}.lr-paper p{font-size:15px}.lr-modes{gap:5px}.lr-modes label{font-size:11px;padding:6px}.lr-friends{gap:2%;padding-bottom:5%}.lr-friend{width:32%}.lr-share-tray{gap:5px}.lr-ramp-tray{gap:4px;flex-wrap:wrap}.lr-ramp-tray .lr-source{width:70px}.lr-arrow-tray{gap:4px;flex-wrap:wrap}.lr-arrow-tray .lr-source{width:48px;height:54px}.lr-word-goal img{width:66px}.lr-word-goal strong{font-size:18px}.lr-letter-tray{gap:5px}.lr-dialog .lr-letter-tile{width:45px;height:50px}.lr-train{left:0;right:0}.lr-carriage{height:80%}.lr-rhyme-anchor span{font-size:16px}.lr-picture-tray .lr-source{width:62px}.lr-place-prompt{font-size:15px;padding:6px 9px}}
@media(max-width:360px){.lr-header>img{display:none}.lr-header{gap:4px}.lr-header h2{font-size:16px}.lr-header>button{width:38px;min-width:38px}.lr-header [data-lr-stage]{font-size:11px}.lr-source{width:57px}.lr-modes label{font-size:10px}.lr-paper{padding:13px}.lr-paper h2{font-size:24px}.lr-paper>button{min-height:46px;padding:8px}.lr-preview{height:100px;width:145px}.lr-modes{margin:7px 0}.lr-paper p{margin:7px 0}.lr-farmer{height:75px;width:75px}}
@media(max-height:520px) and (min-width:501px){.lr-scene{grid-template-rows:53px minmax(0,1fr) auto;padding-top:5px;padding-bottom:5px;gap:5px}.lr-header{border-radius:18px}.lr-header>img{height:44px;width:38px}.lr-header h2{font-size:22px}.lr-header>button{width:42px;min-width:42px;height:42px;min-height:42px}.lr-header .lr-stars{font-size:20px}.lr-footer{padding:5px 10px;max-height:34vh}.lr-footer>p{font-size:13px;margin-bottom:3px}.lr-dock{min-height:44px;gap:6px}.lr-source{width:57px;height:49px;min-height:44px}.lr-action{min-height:44px;padding:5px 10px}.lr-letter-tray,.lr-arrow-tray{gap:6px}.lr-dialog .lr-letter-tile{height:45px;width:46px;font-size:26px}.lr-ramp-tray .lr-source{height:49px;width:70px}.lr-arrow-tray .lr-source{height:46px;width:48px}.lr-share-tray{min-height:48px}.lr-share-tray .lr-source{height:44px;width:47px}.lr-dock>.lr-share-tray{flex:0 1 auto}.lr-picture-tray .lr-source{height:49px;width:60px}.lr-paper{max-width:580px;padding:12px 20px}.lr-paper h2{font-size:26px;margin:4px 0 7px}.lr-paper p{font-size:15px;margin:7px 0}.lr-intro .lr-preview{float:left;width:145px;height:150px;margin:0 13px 5px 0}.lr-paper>button{min-height:43px;padding:7px;margin-top:7px}.lr-modes{margin:6px 0}.lr-modes label{font-size:11px;padding:5px}.lr-modes legend{font-size:11px;margin-bottom:4px}.lr-farmer{float:left;height:75px;width:80px;margin:0 10px 0 0}.lr-win .fa-win-stars{font-size:35px}.lr-pipe-grid{height:95%;max-width:58%;top:49%}.lr-water-source{width:19%;height:72%}.lr-water-plants{width:24%;height:90%;flex-direction:row;align-items:flex-end;gap:0}.lr-plant{width:33%;height:90%}.lr-road{width:43%;height:100%;left:28%}.lr-program{left:55%;right:1%;top:20%;height:65%;bottom:auto;flex-wrap:wrap;align-content:center;justify-content:center}.lr-word-goal{left:14%;top:5%;height:85%;width:24%}.lr-word-goal button{display:flex;flex-direction:column;justify-content:center;padding:4px 7px;width:100%;gap:2px}.lr-word-goal img{width:100%;height:65%}.lr-word-goal strong{font-size:17px}.lr-train{left:28%;right:0;bottom:12%;height:86%}.lr-train-track{left:28%;bottom:10%}.lr-place-prompt{font-size:18px}.lr-maths-story{font-size:23px;padding:3px 14px}.lr-number-basket{top:18%;height:74%}.lr-bunny-place{height:77%}.lr-orchard-apples{top:1%;right:2%;left:auto;width:30%}.lr-orchard-apples .lr-source{width:48px;height:48px}.lr-freeze-cue{font-size:29px;padding:3px 20px}.lr-dialog .lr-dancer{height:82%;width:25%}.lr-freeze-meter{height:12px}.lr-rhyme-anchor{left:14%;top:0;max-height:none;height:85%;width:23%}.lr-rhyme-anchor button{flex-direction:column;width:100%;gap:1px;padding:4px}.lr-rhyme-anchor img{height:65%;width:90%}.lr-rhyme-anchor span{font-size:14px;white-space:nowrap}.lr-rhyme-bridge{left:31%;right:3%;top:26%;height:59%}.lr-crossing-lamb{left:22%;top:28%;height:64%;width:17%}.lr-shape-mat{width:55%;height:98%;top:49%}}
@media(prefers-reduced-motion:reduce){.lr-dialog *{animation:none!important;scroll-behavior:auto!important}.lr-task-complete:after{display:none}.lr-win .lr-primary{outline:4px solid #efc55d;outline-offset:3px}}

.lr-rail-support{position:absolute;transform:translateX(-50%);width:4%;min-width:10px;border:2px solid #86572e;border-radius:4px;background:linear-gradient(90deg,#af793e,#e1b575,#aa713c);box-shadow:2px 3px 0 #6d482533}.lr-rolling-cart{pointer-events:none}

.lr-board{container-type:size}.lr-shape-mat{width:min(94cqw,94cqh,460px);height:auto;aspect-ratio:1}.lr-rolling-track{left:5%;right:auto;width:90%}.lr-dialog .lr-bunny{object-fit:contain}.lr-basket-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}

.lr-pipe-grid{width:min(65cqw,85cqh,360px);height:auto;aspect-ratio:1}.lr-scene:has(.lr-rhymes){background-position:center bottom}.lr-rhyme-bridge{top:auto;bottom:0;height:27%;min-height:64px}.lr-crossing-lamb{left:54.5%;top:66%;width:18%;height:24%;transform:translate(-50%,-50%)}@media(max-height:520px) and (min-width:501px){.lr-crossing-lamb{left:64%;top:60%;height:34%;width:13%}}
.lr-pip-barn{top:12%;height:auto;aspect-ratio:1}.lr-pip-bridge{top:43%;height:auto;aspect-ratio:2}.lr-pip-hay{bottom:12%;height:auto;aspect-ratio:2.2}.lr-pip-behind{right:0;bottom:0;width:65%;height:150%;object-position:center bottom}.lr-pip-under{bottom:0;left:38%;width:25%;height:48%;object-position:center bottom}
.lr-road{width:min(95cqw,calc(100cqh - 75px),400px);height:auto;aspect-ratio:1;top:calc((100% - 66px)/2);transform:translate(-50%,-50%);padding:5px;gap:3px;background:#b6cd7b;border-color:#77924b}.lr-road-cell{border:2px solid #ceb176;border-radius:10px;background:linear-gradient(135deg,#f5dfad,#e6c98e);box-shadow:inset 0 0 5px #b28c4b25}.lr-road-cell.blocked{background:#c4d691;border-color:#8da662}.lr-driving img{animation:lr-trolley-bob .18s infinite alternate}@media(max-height:520px) and (min-width:501px){.lr-road{width:min(43cqw,98cqh,400px);height:auto;top:50%;left:28%}}
.lr-dialog .lr-dancer{width:min(37cqw,50cqh,230px);height:auto;aspect-ratio:.85;max-height:none}@media(max-height:520px) and (min-width:501px){.lr-dialog .lr-dancer{width:min(25cqw,65cqh,230px)}}

.lr-dialog .lr-dancer{--lr-dancer-width:min(37cqw,50cqh,230px);width:var(--lr-dancer-width)}@media(max-height:520px) and (min-width:501px){.lr-dialog .lr-dancer{--lr-dancer-width:min(25cqw,65cqh,230px)}}
.lr-water{--lr-garden-size:min(60cqw,80cqh,480px);--lr-barrel-size:min(21cqw,26cqh,140px)}.lr-pipe-grid{left:54%;top:46%;width:var(--lr-garden-size);height:auto;max-width:none}.lr-water-source{left:calc(54% - var(--lr-garden-size)/2 - var(--lr-barrel-size));top:max(0px,calc(46% - var(--lr-garden-size)/3 - var(--lr-barrel-size)*.79));width:var(--lr-barrel-size);height:calc(var(--lr-barrel-size)*1.1)}.lr-plant{object-position:center bottom}@media(max-width:500px){.lr-water-plants{width:60%;height:24%;flex-direction:row;gap:0;align-items:flex-end}.lr-plant{width:33.33%;height:100%}}@media(max-height:520px) and (min-width:501px){.lr-water-plants{width:22%;height:88%}.lr-pip-barn{left:2%;top:12%;width:25%}.lr-pip-bridge{left:36%;right:auto;top:40%;width:30%}.lr-pip-hay{left:72%;bottom:18%;width:24%}.lr-dialog .lr-plate-target{height:58px;top:77%}}.lr-ghost strong{font-size:38px}
.lr-pip-under{height:32%}.lr-pip-inside{top:52%}
@media(max-width:360px) and (max-height:700px){.lr-footer{max-height:43vh}.lr-share-tray{gap:4px}.lr-share-tray .lr-source{width:44px;height:44px;min-width:44px;min-height:44px}}

.lr-dialog .lr-served-food{left:calc(50% + var(--food-centre)*22px);top:calc(50% + var(--food-centre)*8px)}.lr-modes label{min-height:44px}

/* Once food is chosen, its destination plate remains tappable through served pieces. */
.lr-has-selection .lr-served-food{pointer-events:none}
.lr-paper{overflow-x:hidden}
.lr-rolling-track{left:50%;right:auto;top:50%;width:min(90cqw,180cqh);height:auto;max-height:none;aspect-ratio:1.9;transform:translate(-50%,-50%)}.lr-rolling-cart{transform:translate(-50%,-74%);max-width:none;max-height:none}

.lr-rolling-home{bottom:auto;transform:translateY(-66%)}
.lr-river-glints{display:none}
@media(max-width:500px){.lr-program{height:110px;flex-wrap:wrap;align-content:center;overflow:hidden}.lr-road{width:min(95cqw,calc(100cqh - 120px),400px);top:calc((100% - 120px)/2)}}
.lr-scene{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
/* Match each toy's native proportions so its wheels meet the rail and letters sit on its face. */
.lr-train{height:auto;max-height:none;bottom:calc(13% + 10px);align-items:flex-end}
.lr-engine{height:auto;max-width:165px;aspect-ratio:410/326}
.lr-carriage{height:auto;aspect-ratio:438/306}
.lr-engine>img,.lr-carriage>img{object-position:center bottom}
.lr-engine>img{display:block}
.lr-dialog .lr-letter-slot{left:50%;top:50%;width:100%;height:100%;min-width:44px;min-height:44px;background:transparent;border:0;box-shadow:none;overflow:visible}
.lr-letter-slot>span{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);display:grid;place-items:center;width:56%;height:47%;border:2px dashed #e9c777;border-radius:7px;background:#fff8e4b3;font-size:clamp(22px,4.5vw,40px);line-height:1}
.lr-dialog .lr-letter-slot.lr-ready{background:transparent;box-shadow:none}
.lr-letter-slot.lr-ready>span{border-color:#f9c34c;box-shadow:0 0 0 2px #fff6cb99}
/* Empty ramp slots show a guide, while placed ramps show solid timber. */
.lr-ramp-outline{stroke:#fff8d7;stroke-width:12;stroke-dasharray:10 8;stroke-linecap:butt;opacity:.85}
.lr-ramp-outline+.lr-ramp-grain{display:none}
.lr-ready .lr-ramp-outline{stroke:#f4c656;opacity:1}
@media(max-height:520px) and (min-width:501px){.lr-modern .lr-overlay:has(.lr-intro){top:60px}}
.lr-scene.lr-modern [data-lr-hint],.lr-scene.lr-modern .lr-answer-glow{animation:lr-help-glow 2.2s ease-in-out infinite}
@keyframes lr-help-glow{50%{filter:brightness(1.1) drop-shadow(0 0 7px #fff4b3);box-shadow:0 0 0 3px #f7d67188}}
@media(max-width:360px) and (max-height:700px){.lr-modern .lr-intro>button:nth-last-child(3){display:none}.lr-modern .lr-intro .lr-preview{height:75px}.lr-modern .lr-challenges{margin:8px 0}}
@media(min-height:521px){.lr-modern .lr-pip-barn{left:0;top:0;width:36%}.lr-modern .lr-pip-bridge{left:53%;right:auto;top:34%;width:45%}.lr-modern .lr-pip-hay{left:5%;bottom:0;width:30%}}
/* Growing learning adventures: clear introductions and optional, local guidance. */
.lr-modern .lr-overlay:has(.lr-intro){background:transparent;backdrop-filter:none}
.lr-modern .lr-overlay:has(.lr-intro){top:86px;padding:8px 12px}
.lr-modern .lr-intro{padding:8px 12px}.lr-modern .lr-intro h2{font-size:clamp(23px,4vw,32px);margin:4px 0 8px}.lr-modern .lr-intro p{font-size:15px;line-height:1.3;margin:6px 0}.lr-modern .lr-intro>button{min-height:44px;padding:7px;margin-top:7px}
.lr-modern .lr-intro{width:min(680px,100%);background:transparent;border:0;box-shadow:none;color:#fffbed;text-shadow:0 2px 3px #342513,0 0 7px #342513;overflow:auto}
.lr-modern .lr-intro>small,.lr-modern .lr-intro h2,.lr-modern .lr-intro p,.lr-modern .lr-challenges strong,.lr-modern .lr-challenges small{color:#fffbed;background:none;box-shadow:none}
.lr-modern .lr-intro .lr-preview{float:none;display:block;width:150px;height:100px;margin:0 auto 8px}
.lr-modern .lr-intro>button,.lr-challenges button{text-shadow:none}
.lr-challenges{display:flex;align-items:center;gap:12px;margin:14px 0}
.lr-challenges>div{flex:1;min-width:0;display:grid;gap:5px}.lr-challenges small{font-size:14px;line-height:1.3}.lr-challenges button{min-width:74px;min-height:48px;padding:8px}.lr-challenges button:disabled{opacity:.6}
.lr-modern [data-lr-hint]{display:block;margin:0 auto 8px;padding:7px 15px;min-height:44px;background:linear-gradient(#ffec9d,#e9bd53);border-color:#986529;color:#4d341d;animation:lr-invite 2.4s ease-in-out infinite}
.lr-modern [data-lr-hint][hidden]{display:none}.lr-modern .lr-answer-glow{outline:4px solid #f5cd59!important;outline-offset:3px;filter:drop-shadow(0 0 7px #fff4b3);animation:lr-invite 2s ease-in-out infinite}
.lr-pipe-guide{position:absolute;inset:0;pointer-events:none;opacity:.6}.lr-pipe-guide .lr-pipe-wood{stroke:#fff8d5}.lr-pipe-guide .lr-pipe-channel{stroke:#fff8d5}.lr-fixed-ramp{position:absolute;inset:0;display:block;pointer-events:none}
.lr-modern .lr-header>button{min-width:44px;min-height:44px;width:44px;height:44px}.lr-modern .lr-footer{max-height:40vh}.lr-modern .lr-letter-tray{flex-wrap:wrap}.lr-modern .lr-ramp-space{padding:0 3px}.lr-modern .lr-ramp-space>.lr-target{width:calc(100% - 6px)}
@media(max-height:520px) and (min-width:501px){.lr-modern .lr-intro{max-width:780px;display:grid;grid-template-columns:150px 1fr;gap:6px 16px;padding:8px 18px}.lr-modern .lr-intro>small,.lr-modern .lr-intro>h2{grid-column:1/-1;margin:0}.lr-modern .lr-intro>.lr-preview{grid-column:1;grid-row:3/5;width:150px;height:120px;margin:auto}.lr-modern .lr-intro>p{grid-column:2;margin:0;font-size:14px}.lr-modern .lr-challenges{grid-column:2;margin:0}.lr-modern .lr-intro>button{grid-row:5;margin-top:0;min-height:44px}.lr-modern .lr-intro>button:nth-last-child(3){grid-column:1}.lr-modern .lr-intro>button:nth-last-child(2){grid-column:2;justify-self:start;width:48%}.lr-modern .lr-intro>button:last-child{grid-column:2;justify-self:end;width:48%}.lr-modern .lr-challenges small{font-size:13px}.lr-modern .lr-header h2{font-size:19px}.lr-modern .lr-water{--lr-garden-size:max(176px,min(60cqw,96cqh,480px))}.lr-modern .lr-footer:has([data-lr-hint]:not([hidden])){display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 12px}.lr-modern [data-lr-hint]{grid-row:1/3;margin:0;max-width:130px}.lr-modern .lr-footer>p{grid-column:2}.lr-modern .lr-dock{grid-column:2}}
@media(max-width:360px){.lr-modern .lr-header>img{display:none}.lr-modern .lr-challenges{gap:6px}.lr-modern .lr-challenges button{min-width:60px}.lr-modern .lr-challenges small{font-size:12px}.lr-modern .lr-intro .lr-preview{height:85px;width:130px}}
@media(max-height:520px) and (min-width:501px){.lr-train{bottom:calc(10% + 10px)}}

@media(max-height:520px) and (min-width:501px){.lr-modern .lr-overlay:has(.lr-intro){top:60px}}
.lr-scene.lr-modern .lr-served-food{left:calc(50% + var(--food-x)*1px);top:calc(50% + var(--food-y)*1px)}.lr-scene [data-lr-hint][hidden]{display:none}
@media(max-width:500px){.lr-modern .lr-footer:has([data-lr-hint]:not([hidden])){display:grid;grid-template-columns:minmax(94px,34%) 1fr;gap:6px;align-items:center}.lr-modern .lr-footer [data-lr-hint]{grid-column:1;grid-row:1;margin:0}.lr-modern .lr-footer:has([data-lr-hint]:not([hidden]))>p{grid-column:2;margin:0;font-size:13px}.lr-modern .lr-footer:has([data-lr-hint]:not([hidden]))>.lr-dock{grid-column:1/-1}}
