/* Release127: scoped host layout. No selectors affect lessons, ads or site navigation. */
.nge127-access,[data-nge127-legacy-access]{max-width:620px;padding:14px 16px;margin:12px 0;border:1px solid #bfd9ce;border-radius:16px;background:#f1f8ef;color:#244b45;text-align:start;font:500 14px/1.9 Alexandria,system-ui,sans-serif;overflow-wrap:anywhere}
.nge127-access>strong{font-size:15px;display:block}.nge127-access p,[data-nge127-legacy-access] p{margin:5px 0 9px}
.nge127-access .nge1-button,[data-nge127-legacy-access] button,[data-nge127-legacy-access] a{min-height:44px;max-width:100%;white-space:normal;touch-action:manipulation}
.nge127-access-status:empty{display:none}.nge127-access-status{font-weight:600;color:#784b18}
.nge126-host{--nge126-gap:8px;position:relative;isolation:isolate;box-sizing:border-box;max-width:100%;min-width:0}
.nge126-host *, .nge126-metrics *, .nge126-rating-panel *{box-sizing:border-box}
.nge126-host [hidden],.nge126-rating-panel[hidden],.nge126-metrics[hidden]{display:none!important}
.nge126-host.nge1-player>.li1-frame-header{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;padding:7px 10px;min-height:58px;position:relative;z-index:7;flex-shrink:0}
.nge126-host>.li1-frame-header>strong{font-size:13px;line-height:1.6;min-width:0;overflow-wrap:anywhere;flex:1}
.nge126-toolbar,.nge126-task-tools,.nge126-round-tools,.nge126-host .li1-frame-actions,.nge126-host .nge126-moved-tools{display:flex;align-items:center;justify-content:center;flex:0 0 auto;flex-wrap:nowrap;gap:4px;margin:0;min-width:0}
.nge126-host .nge126-task-tools:empty{display:none}
.nge126-host .li1-frame-header .nge126-control,.nge126-control{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;width:auto;height:auto;padding:8px;border:1px solid #c4d7d0;border-radius:12px;background:#fffdf4;color:#28535c;font:600 12px/1.55 Alexandria,system-ui,sans-serif;text-decoration:none;cursor:pointer;touch-action:manipulation;box-shadow:none;white-space:normal}
.nge126-control>svg{width:22px;height:22px;flex:0 0 22px;pointer-events:none}
.nge126-host .nge126-control:focus-visible,.nge126-rating-panel button:focus-visible,.nge126-stars input:focus-visible+svg{outline:3px solid #c27c11;outline-offset:2px}
.nge126-control:disabled{opacity:.5;cursor:default}.nge126-control[aria-expanded="true"]{background:#f8ebc5}
.nge126-host .nge126-round-tools .nge126-control-label{display:none}
.nge126-host .nge1-game-options{position:static}
.nge126-host .nge1-game-options>summary{list-style:none;min-width:44px;min-height:44px;margin:0}
.nge126-host .nge1-game-options>summary::-webkit-details-marker{display:none}
.nge126-host .nge1-game-options-panel{position:absolute;z-index:12;inset:calc(100% + 4px) 8px auto auto;width:min(310px,calc(100vw - 20px));max-width:calc(100% - 16px);max-height:min(360px,60vh);max-height:min(360px,60dvh);overflow:auto;overscroll-behavior:contain;display:grid;gap:8px;padding:12px;background:#fffdf6;border:1px solid #c4d7d0;border-radius:16px;box-shadow:0 12px 30px #173e4b35}
.nge126-host .nge1-game-options-panel button{min-height:44px;width:100%;font-size:13px;padding:9px}
.nge126-host.nge1-player>.nge1-round-meta{display:flex;align-items:center;gap:8px;padding:5px 10px;min-height:31px;border-bottom:1px solid #d6e3db;flex:0 0 auto}
.nge126-host>.nge1-round-meta>div:first-child{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.nge126-host>.nge1-round-meta>div:first-child strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.nge126-host>.nge1-round-meta>div:first-child span{font-size:12px;white-space:nowrap;line-height:1.5}
.nge126-host>.nge1-round-meta .nge1-actions{display:none}
.nge126-host.nge1-player>.nge1-round-meta progress{width:min(150px,25%);flex:0 1 150px;height:5px;min-width:36px;margin:0}
.nge126-host.nge1-player>.nge1-stage{height:auto!important;min-height:280px;max-width:100%;padding:12px!important;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;scroll-padding-block:12px;touch-action:pan-y}
.nge126-host.nge1-player>.nge1-stage:has(.nge1-custom-frame){height:var(--li1-height,560px)!important;padding:0!important;min-height:280px}
.nge126-host .nge1-custom-frame{width:100%;max-width:100%;height:100%;min-height:280px;border:0}
.nge126-host.nge1-player>.nge1-player-foot{padding:4px 10px;min-height:0;flex:0 0 auto}
.nge126-host>.nge1-player-foot .nge1-save-status{font-size:11px;line-height:1.6;margin:0}
.nge126-host>.nge1-player-foot .nge1-sync-actions{gap:5px;margin:0}.nge126-host>.nge1-player-foot button{min-height:44px}
.nge126-host .nge1-task,.nge126-host .nge123-host{max-width:1100px;min-width:0;margin-inline:auto;box-sizing:border-box}
.nge126-host .nge123-host{padding:0!important}
.nge126-host .nge1-world-top{margin:0 0 5px;min-height:0}
.nge126-host .nge1-world-top:empty{display:none}
.nge126-host .nge1-adventure-progress{gap:5px;margin:4px 0 8px}
.nge126-host .nge123-mission h2{font-size:18px;line-height:1.65;margin:2px 0}
.nge126-host .nge123-mission p{font-size:13px;line-height:1.75;margin:2px 0 7px}
.nge126-host .nge123-world{margin-top:6px}
.nge126-host .nge123-actions,.nge126-host .nge1-adventure-actions,.nge126-host .nge1-task-actions{gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin-block:9px 3px}
.nge126-host .nge1-task-actions .nge1-button,.nge126-host .nge1-adventure-actions .nge1-button{min-height:44px;font-size:13px;padding:8px 14px;flex:0 1 auto}
.nge126-host .nge123-control{min-width:44px;min-height:44px}
.nge126-host .nge123-voice-status{margin:4px 0;font-size:12px}
.nge126-host .nge1-world-feedback,.nge126-host .nge1-task-feedback,.nge126-host .nge1-hint{font-size:14px;line-height:1.8;padding:8px 12px;margin:7px 0}
.nge126-countdown{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 9px;font:500 12px/1.7 Alexandria,system-ui,sans-serif;color:#426766}
.nge126-countdown-hold,.nge126-rating-retry{min-width:44px;min-height:44px;padding:7px 10px;background:#fffaf0;color:#3a625f;border:1px solid #c7d9c8;border-radius:11px;font:600 12px/1.6 Alexandria,system-ui,sans-serif;cursor:pointer}
.nge126-countdown-hold[aria-pressed="true"]{background:#f7e7b6}
.nge126-metrics{display:flex;align-items:center;flex:0 0 auto;min-width:0;margin:0}
.nge126-host .nge126-metrics-button{font-size:11px;gap:4px}
.nge126-metrics-button>svg{color:#9d690c;fill:#fff1b6;width:20px;flex-basis:20px}
.nge126-rating-panel{position:absolute;z-index:30;inset:64px 10px auto;max-width:430px;margin-inline:auto;background:#fffdf6;color:#2a4e58;border:1px solid #b9ccc5;border-radius:20px;padding:14px;box-shadow:0 14px 45px #1438494d;max-height:calc(100% - 80px);overflow:auto;overscroll-behavior:contain;font-family:Alexandria,system-ui,sans-serif;text-align:center}
.nge126-rating-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px}.nge126-rating-heading .nge126-control-label{display:none}
.nge126-rating-metrics{font-size:13px;line-height:1.9;margin:12px 0}
.nge126-stars{padding:8px 0 0;margin:0;border:0;min-width:0}.nge126-stars legend{font-size:13px;line-height:1.8;padding:0}
.nge126-star-row{display:flex;gap:3px;justify-content:center;direction:ltr;margin:8px 0}
.nge126-star{display:flex;align-items:center;justify-content:center;position:relative;width:44px;min-width:44px;height:44px;cursor:pointer;border-radius:8px}
.nge126-star input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.nge126-star>svg{width:34px;height:34px;stroke:#8c6b2d;fill:#fff;pointer-events:none}
.nge126-star[data-filled="true"]>svg{fill:#f3c754;stroke:#91620c}.nge126-stars:disabled{opacity:.55}
.nge126-rating-status{font-size:12px;line-height:1.8;min-height:22px;margin:8px 0 0}.nge126-rating-status:empty{min-height:0;margin:0}
.nge126-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
/* Native and fallback full screen retain a fixed toolbar and one scrollable play panel. */
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded){display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;min-height:0;max-width:none;border-radius:0;overflow:hidden;padding:0}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded)>.li1-frame-header{padding:calc(4px + env(safe-area-inset-top,0px)) max(6px,env(safe-area-inset-right,0px)) 4px max(6px,env(safe-area-inset-left,0px));gap:4px;min-height:52px}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded)>.li1-frame-header>strong{font-size:12px}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded)>.nge1-stage{flex:1 1 auto;min-height:0!important;height:auto!important;padding:7px max(8px,env(safe-area-inset-right,0px)) 9px max(8px,env(safe-area-inset-left,0px))!important;overflow:auto;overflow-x:hidden}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded)>.nge1-stage:has(.nge1-custom-frame){padding:0!important}.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded) .nge1-custom-frame{min-height:0;height:100%}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded)>.nge1-player-foot{padding:2px max(8px,env(safe-area-inset-right,0px)) calc(2px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded) .nge1-adventure-progress,.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded) .nge1-world-top>.nge1-world-tag{display:none}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded) .nge1-world-top{margin:0}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded) .nge1-adventure{max-width:1100px}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded) .nge126-control-label{display:none}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded) .nge126-rating-panel{top:calc(60px + env(safe-area-inset-top,0px));max-height:calc(100dvh - 80px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
/* Phone and tablet: compact illustrations, readable instructions and 44px interactions. */
@media(max-width:1024px){
 .nge126-host>.li1-frame-header>strong{display:none}.nge126-host.nge1-player>.li1-frame-header{justify-content:space-between}
 .nge126-host .nge126-control-label,.nge126-host .nge126-metrics-text{display:none}
 .nge126-host .nge126-toolbar{flex:1;justify-content:flex-start}
 .nge126-host .nge123-scene{padding:12px}
 .nge126-host .nge125-world,.nge126-host .nge125-world .nge123-scene{min-height:0}
 .nge126-host .nge125-top{gap:9px;align-items:center;margin-bottom:9px;flex-direction:row}
 .nge126-host .nge125-top>.nge125-goal{display:grid;grid-template-columns:minmax(0,1fr);width:auto;min-width:90px;max-width:46%;gap:3px;padding:8px;flex:0 1 42%}
 .nge126-host .nge125-top>.nge125-goal>*{grid-column:1;grid-row:auto}
 .nge126-host .nge125-top .nge125-goal>.nge123-control{font-size:12px;padding:6px;min-height:44px;max-width:100%}
 .nge126-host .nge125-top>.nge123-companion{max-width:none;min-width:0;flex:1;gap:4px;align-items:center}
 .nge126-host .nge123-companion .nge123-character{width:44px;height:60px;flex-basis:44px}
 .nge126-host .nge123-companion-bubble{font-size:12px;line-height:1.75;padding:8px;border-radius:13px;min-width:0}
 .nge126-host .nge125-target,.nge126-host .nge125-target[lang="en"]{font-size:28px;line-height:1.4}
 .nge126-host .nge125-goal-image{width:54px;height:54px}
 .nge126-host .nge125-board{padding:10px;border-radius:16px}
 .nge126-host .nge125-options{gap:8px}
 .nge126-host .nge125-card{min-height:88px;padding:7px;gap:5px}
 .nge126-host .nge125-card .nge123-picture,.nge126-host .nge125-card .nge125-media-picture{width:54px;height:54px}
 .nge126-host .nge125-card-label{font-size:13px;line-height:1.65}
 .nge126-host .nge125-small-label{font-size:12px;line-height:1.7;margin:6px 0}
 .nge126-host .nge123-sub-label{font-size:12px}
 .nge126-host .nge125-output{margin:7px 0;gap:7px}
 .nge126-host .nge123-actions{margin-top:9px}.nge126-host .nge123-control{padding:7px 10px;font-size:13px}
 .nge126-host .nge123-announcement{font-size:12px;line-height:1.7;margin-top:8px;padding:6px 8px;min-height:0}
 .nge126-host .nge1-adventure-ending{min-height:0;padding:10px 0}
 .nge126-host .nge123-ending>.nge123-welcome-scene{min-height:130px;max-height:170px}
 .nge126-host .nge123-welcome{padding:14px;gap:14px;min-height:0}
 .nge126-host .nge123-welcome>.nge123-welcome-scene,.nge126-host .nge123-welcome>.nge123-lab-poster{min-height:160px;max-height:180px}
 .nge126-host .nge123-welcome h2{font-size:22px;margin:6px 0}.nge126-host .nge123-welcome p{font-size:13px;line-height:1.8;margin:6px 0}
 .nge126-host .nge123-welcome .nge1-stage-start{margin:9px 0 3px}.nge126-host .nge123-level-select{margin:7px 0;font-size:13px}.nge126-host .nge123-level-select select{font-size:13px;min-height:44px;padding:7px}
 .nge126-host .nge1-ending-hero>.nge1-guide-art{width:72px;height:72px}.nge126-host .nge1-ending-stars{font-size:21px;margin:0}
 .nge126-host .nge1-result{padding:12px;margin:6px 0}.nge126-host .nge1-result h2{font-size:18px}.nge126-host .nge1-result-score{font-size:34px}
}
@media(max-width:600px){
 .nge126-host.nge1-player>.li1-frame-header{padding:5px 6px;gap:4px;min-height:54px}
 .nge126-host.nge1-player>.nge1-stage{padding:8px!important;min-height:260px}
 .nge126-host>.nge1-round-meta>div:first-child strong{font-size:11px}.nge126-host>.nge1-round-meta>div:first-child span{font-size:11px}
 .nge126-host .nge123-world{border-radius:18px}.nge126-host .nge123-scene{padding:9px}
 .nge126-host .nge125-top>.nge123-companion{display:block;position:relative;padding-inline-start:0}.nge126-host .nge125-top .nge123-character{display:none}
 .nge126-host .nge123-mission h2{font-size:16px}.nge126-host .nge123-mission p{font-size:13px}
 .nge126-host .nge125-card-letter{font-size:34px;line-height:1.4}
 .nge126-host .nge123-fishing-water{gap:12px 25px;padding:8px 10px 15px}.nge126-host .nge123-fish-body{height:82px}.nge126-host .nge123-world .nge123-fish{min-height:108px}
 .nge126-host .nge123-lake-top{min-height:95px}.nge126-host .nge123-lake-boat{height:95px;width:120px}.nge126-host .nge123-lake-boat>.nge123-picture{width:120px;height:75px}.nge126-host .nge123-lake-boat>.nge123-character{height:80px;width:62px;left:40px;bottom:22px}
 .nge126-host .nge123-lake-cue{min-width:98px;padding:6px 8px}.nge126-host .nge123-lake-letter{font-size:36px}
 .nge126-host .nge123-train-station,.nge126-host .nge123-sub-header,.nge126-host .nge123-rally-header{min-height:90px;gap:8px}
 .nge126-host .nge123-train-station .nge123-character,.nge126-host .nge123-sub-header .nge123-character,.nge126-host .nge123-rally-header .nge123-character{height:50px;width:42px}
 .nge126-host .nge123-train-object{width:48px;height:48px}.nge126-host .nge123-train-railway{margin:8px 0 3px}.nge126-host .nge123-word-window{min-height:52px;margin:8px auto 4px;padding:4px 8px}
 .nge126-host .nge123-letter-tray{padding:8px 4px;gap:6px}.nge126-host .nge123-world .nge123-letter-token{width:45px;min-width:44px;min-height:48px;font-size:28px}
 .nge126-host .nge123-pearl-stock{margin:7px auto 22px;min-height:0;padding:6px;gap:4px}.nge126-host .nge123-submarine-body{padding:15px 9px 10px;margin-inline:5px}.nge126-host .nge123-porthole{min-height:122px;padding-bottom:29px}.nge126-host .nge123-chamber-pearls{min-height:66px}
 .nge126-host .nge123-pearl-relationship{margin:9px auto 4px;padding:6px}.nge126-host .nge123-sub-total,.nge126-host .nge123-rally-target{font-size:31px}
 .nge126-host .nge125-flight-airspace{min-height:200px;padding-bottom:90px}.nge126-host .nge125-flight-gate{min-height:82px}.nge126-host .nge125-flight-kite{width:62px;height:78px}
 .nge126-host .nge125-magic-easel{max-width:500px}.nge126-host .nge125-magic-canvas{max-height:170px}
 .nge126-host .nge125-theater-stage{gap:5px;padding:12px 5px;grid-template-columns:repeat(3,minmax(0,1fr))}.nge126-host .nge125-theater-frame{min-height:120px;padding:5px;flex-direction:column;gap:4px}
 .nge126-host .nge125-theater-frame .nge123-picture{width:52px;height:52px}.nge126-host .nge125-theater-frame .nge125-card-label{font-size:11px;line-height:1.7}.nge126-host .nge125-theater-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.nge126-host .nge125-theater-options .nge125-card{min-height:115px;padding:5px;flex-direction:column}.nge126-host .nge125-theater-options .nge125-card-label{font-size:11px}.nge126-host .nge125-theater-options .nge123-picture{width:47px;height:47px}
 .nge126-host .nge125-workshop-bench{min-height:150px;gap:12px}.nge126-host .nge125-kitchen-bowl{min-height:145px}.nge126-host .nge125-kitchen-hob{min-height:98px}.nge126-host .nge125-kitchen-pot{width:90px;height:100px}
 .nge126-host .nge125-rescue-scene{min-height:150px}.nge126-host .nge125-factory-bay{min-height:135px}.nge126-host .nge125-factory-controls{gap:6px}
 .nge126-host .nge125-time-dial{width:150px;height:150px}.nge126-host .nge125-time-station{gap:8px}.nge126-host .nge125-time-hours{grid-template-columns:repeat(4,minmax(44px,1fr));gap:5px}.nge126-host .nge125-time-hours button{min-height:44px;padding:5px}
 .nge126-host .nge125-data-pool{max-height:130px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:8px;gap:5px}.nge126-host .nge125-data-chart{grid-template-columns:repeat(var(--categories,3),minmax(0,1fr));gap:5px}.nge126-host .nge125-data-column{min-width:0;padding:5px 3px}.nge126-host .nge125-data-bar{height:145px}.nge126-host .nge125-data-column .nge125-count-controls{display:grid;grid-template-columns:44px;gap:2px}.nge126-host .nge125-data-column .nge125-count-controls output{grid-row:1;min-width:44px;font-size:22px}.nge126-host .nge125-data-column .nge125-count-controls button{min-width:44px;width:44px;min-height:44px;padding:5px}.nge126-host .nge125-data-label{font-size:11px;overflow-wrap:anywhere}
 .nge126-host .nge125-robo-room{min-height:310px;padding-bottom:75px}.nge126-host .nge125-robo-options .nge125-card{min-height:96px}
 .nge126-host .nge125-color-easel{min-height:150px}.nge126-host .nge125-color-paper{min-height:115px}.nge126-host .nge125-color-palette{gap:5px}.nge126-host .nge125-color-palette button{min-height:46px}
 .nge126-host .nge125-reserve-lookout{min-height:140px}.nge126-host .nge125-reserve-lens{width:130px;height:130px}
 .nge126-host .nge125-phonics-sky{min-height:145px}.nge126-host .nge125-phonics-balloon{width:90px;height:120px}
}
@media(min-width:360px) and (max-width:600px){.nge126-host .nge125-time-hours{grid-template-columns:repeat(6,minmax(44px,1fr));gap:4px}}
/* A phone in landscape uses width for play instead of scaling text or hit targets. */
@media(max-height:550px) and (min-width:560px){
 .nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded)>.nge1-round-meta{padding-block:2px;min-height:24px}
 .nge126-host .nge123-mission h2{font-size:15px;line-height:1.5}.nge126-host .nge123-mission p{margin:0 0 4px;font-size:12px}
 .nge126-host .nge123-welcome{grid-template-columns:minmax(0,1.25fr) minmax(180px,.75fr);gap:12px;padding:10px}
 .nge126-host .nge123-welcome>.nge123-welcome-scene,.nge126-host .nge123-welcome>.nge123-lab-poster{grid-column:2;grid-row:1;min-height:160px;max-height:185px}.nge126-host .nge123-welcome-copy{grid-column:1;grid-row:1}
 .nge126-host .nge123-welcome h2{font-size:18px}.nge126-host .nge123-welcome p{font-size:12px;line-height:1.6}.nge126-host .nge123-welcome .nge1-world-tag{display:none}
 .nge126-host .nge123-ending{grid-template-columns:minmax(0,.55fr) minmax(0,1fr);gap:12px}.nge126-host .nge123-ending>.nge123-welcome-scene{grid-column:1;grid-row:1 / span 2;min-height:170px;max-height:200px}.nge126-host .nge123-ending>.nge1-ending-hero,.nge126-host .nge123-ending>.nge1-result,.nge126-host .nge123-ending>.nge1-button{grid-column:2}.nge126-host .nge1-ending-hero h2{font-size:16px;margin:3px}.nge126-host .nge1-ending-hero p{font-size:12px;margin:3px}
 .nge126-host .nge123-scene{padding:8px 10px}.nge126-host .nge125-top{gap:8px;margin-bottom:6px}.nge126-host .nge125-top>.nge125-goal{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;min-width:0;max-width:48%;padding:5px;gap:5px}.nge126-host .nge125-top .nge125-target{font-size:26px}.nge126-host .nge125-top .nge123-character{width:35px;height:46px;flex-basis:35px}.nge126-host .nge123-companion-bubble{font-size:12px;padding:5px 8px}
 .nge126-host .nge125-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.nge126-host .nge125-card{min-height:76px;gap:3px;padding:5px}.nge126-host .nge125-card .nge123-picture,.nge126-host .nge125-card .nge125-media-picture{width:42px;height:42px}.nge126-host .nge125-card-label{font-size:12px}
 .nge126-host .nge123-fishing-water{grid-template-columns:repeat(4,minmax(0,1fr));min-height:0;padding:5px 16px 12px;gap:25px}.nge126-host .nge123-lake-top{min-height:76px;padding:0 5%}.nge126-host .nge123-lake-boat{height:82px}.nge126-host .nge123-lake-boat>.nge123-character{height:72px}.nge126-host .nge123-lake-cue{padding:4px 10px}.nge126-host .nge123-lake-letter{font-size:30px}.nge126-host .nge123-world .nge123-fish{min-height:91px}.nge126-host .nge123-fish-body{height:70px}.nge126-host .nge123-fish-eye{top:25px}.nge126-host .nge123-lake-status{margin:0 auto 5px}
 .nge126-host .nge125-flight-airspace{min-height:180px;padding-bottom:80px}.nge126-host .nge125-flight-gate{min-height:75px}
 .nge126-host .nge125-theater-stage{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px;gap:7px}.nge126-host .nge125-theater-frame{min-height:95px}.nge126-host .nge125-theater-options{grid-template-columns:repeat(3,minmax(0,1fr))}.nge126-host .nge125-theater-options .nge125-card{min-height:76px}
 .nge126-host .nge125-kitchen-bowl{min-height:115px}.nge126-host .nge125-kitchen-hob{min-height:80px}.nge126-host .nge125-kitchen-pot{height:80px;width:75px}.nge126-host .nge125-factory-bay{min-height:120px}
 .nge126-host .nge125-time-dial{width:135px;height:135px}.nge126-host .nge125-time-hours{grid-template-columns:repeat(6,minmax(44px,1fr));gap:4px}.nge126-host .nge125-time-train{height:78px}.nge126-host .nge125-time-station{min-height:0}
 .nge126-host .nge125-data-pool{max-height:105px;overflow:auto}.nge126-host .nge125-data-bar{height:115px}.nge126-host .nge125-data-chart{grid-template-columns:repeat(var(--categories,3),minmax(0,1fr))}
 .nge126-host .nge125-rescue-scene{min-height:135px}.nge126-host .nge125-robo-room{min-height:230px}.nge126-host .nge125-phonics-sky{min-height:120px}.nge126-host .nge125-phonics-balloon{width:85px;height:105px}
 .nge126-host .nge123-actions{margin-top:7px}.nge126-host .nge1-task-actions,.nge126-host .nge1-adventure-actions{margin-top:7px}
}
@media(prefers-reduced-motion:reduce){.nge126-host .nge126-control{transition:none}.nge126-host{scroll-behavior:auto}}

/* Keep tally stacks proportional: ten cells always fit the same vertical scale. */
@media(max-width:600px){
 .nge126-host .nge125-data-bar{min-height:145px;height:145px;gap:2px;background:repeating-linear-gradient(0deg,transparent,transparent 12px,#cdd3bd5c 13px);padding-bottom:5px;margin:6px 0}
 .nge126-host .nge125-data-cell{width:12px;height:12px}
 .nge126-host .nge125-data-column .nge125-count-controls output{grid-column:1;grid-row:1}
 .nge126-host .nge125-data-column .nge125-count-controls button:first-child{grid-column:1;grid-row:2}
 .nge126-host .nge125-data-column .nge125-count-controls button:last-child{grid-column:1;grid-row:3}
 .nge126-host .nge125-theater-frames{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .nge126-host .nge125-theater-frame{display:flex;align-items:center;flex-direction:column;text-align:center}
 .nge126-host .nge125-world--story-theater .nge125-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 .nge126-host .nge125-theater-scene{min-height:120px;flex-direction:column;padding:5px;gap:4px}
 .nge126-host .nge125-theater-scene .nge125-card-label{font-size:12px;text-align:center}
 .nge126-host .nge125-time-station{min-height:0;padding:3px 0 9px}.nge126-host .nge125-time-chosen{margin:7px auto}
}
@media(max-height:550px) and (min-width:560px){.nge126-host .nge125-data-bar{min-height:145px;height:145px;gap:2px}.nge126-host .nge125-data-cell{width:12px;height:12px}}
/* The inherited lesson toolbar used direct-child buttons; moved controls retain the same hit area. */
.nge126-host.nge1-player .li1-frame-header .nge126-control{min-height:44px!important;min-width:44px!important;height:auto!important}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded) [data-li1-expand]{display:none!important}
.nge126-host.nge1-player:not(:fullscreen):not(.li1-overlay):not(.li1-expanded) [data-li1-close]{display:none!important}
.nge126-host .nge123-lab button,.nge126-host .nge123-lab summary{min-width:44px;min-height:44px}
/* Dense equation apparatus remains readable, with longer explanations reached in the play panel. */
@media(max-width:1024px){
 .nge126-host .nge123-lab{padding:11px;border-radius:17px}
 .nge126-host .nge123-lab-head{margin-bottom:8px}.nge126-host .nge123-lab-question{padding:8px;margin-bottom:9px}
 .nge126-host .nge123-lab-monitor{padding:9px 7px}.nge126-host .nge123-lab-monitor-label{padding-bottom:5px;font-size:11px}
 .nge126-host .nge123-lab-apparatus{margin-bottom:9px;gap:7px}
 .nge126-host .nge123-lab-chamber,.nge126-host .nge123-lab-pipeline .nge123-lab-chamber{padding:6px 4px;gap:3px}
 .nge126-host .nge123-lab-chamber-label{font-size:11px;line-height:1.6}
 .nge126-host .nge123-lab-pipeline .nge123-lab-value{min-height:26px;padding-top:2px;margin-top:3px}
 .nge126-host .nge123-lab-pipe-input,.nge126-host .nge123-lab-pipe-output{padding:5px 3px;gap:4px}
 .nge126-host .nge123-lab-pipeline+.nge123-lab-pipeline{margin-top:7px}
 .nge126-host .nge123-lab-difference{margin-top:7px;padding:6px}
 .nge126-host .nge123-lab-readout{flex-direction:row;align-items:center;gap:7px;padding:7px 9px}
 .nge126-host .nge123-lab .nge123-lab-readout-text{font-size:12px;line-height:1.75}
 .nge126-host .nge123-lab-console{padding:9px}.nge126-host .nge123-lab .nge123-lab-console-title{margin-bottom:7px;font-size:12px}
 .nge126-host .nge123-lab-cartridge{min-height:62px;padding:9px 5px 6px}.nge126-host .nge123-lab-cartridge-caption{font-size:10px}
 .nge126-host .nge123-lab-launch{margin-top:9px;gap:7px}.nge126-host .nge123-lab-selection-message{font-size:11px}
 .nge126-host .nge123-lab-energy{padding-top:9px}.nge126-host .nge123-lab-energy-ring{height:44px;width:44px}.nge126-host .nge123-lab-energy-ring svg{width:34px;height:34px}
 .nge126-host .nge123-lab .nge123-lab-learn p{font-size:14px;line-height:1.85}
}
@media(max-width:600px){
 .nge126-host .nge125-builder-site{min-height:135px;padding:12px 8px 20px;margin-bottom:9px}
 .nge126-host .nge125-builder-gap{min-height:65px}.nge126-host .nge125-builder-friend>*,.nge126-host .nge125-builder-destination>*{height:75px}
 .nge126-host .nge125-builder-shape>svg,.nge126-host .nge125-builder-shape>img,.nge126-host .nge125-builder-shape .nge125-builder-piece{width:70px;height:70px}
 .nge126-host .nge125-builder-material{min-height:80px}.nge126-host .nge125-builder-material .nge123-picture{width:54px;height:48px}
 .nge126-host .nge125-color-studio{margin-bottom:12px}.nge126-host .nge125-color-paper{height:110px;min-height:110px}.nge126-host .nge125-color-paper svg{width:90px;height:90px}
 .nge126-host .nge125-color-easel{min-height:0;padding:8px}.nge126-host .nge125-color-palette{padding:7px 4px;margin:8px 0}.nge126-host .nge125-color-swatch{width:28px;height:28px}.nge126-host .nge125-color-stamp svg{width:35px;height:35px}
 .nge126-host .nge125-phonics-sky{min-height:130px;margin-bottom:7px}.nge126-host .nge125-phonics-balloon{width:88px;height:112px}
 .nge126-host .nge125-data-pool{margin-bottom:9px}.nge126-host .nge125-data-chart{gap:4px}
}
@media(max-height:550px) and (min-width:560px){
 .nge126-host .nge123-lab{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(220px,.9fr);gap:8px 12px;padding:9px}
 .nge126-host .nge123-lab-head{grid-column:1 / -1;margin:0}.nge126-host .nge123-lab-question{grid-column:1;margin:0;align-self:start}.nge126-host .nge123-lab-apparatus{grid-column:1;grid-row:3 / span 2;margin:0}
 .nge126-host .nge123-lab-console{grid-column:2;grid-row:2 / span 2;align-self:start}.nge126-host .nge123-lab-learn{grid-column:2;grid-row:4;margin:0}.nge126-host .nge123-lab-pipeline{gap:2px;grid-template-columns:minmax(35px,.7fr) 12px minmax(50px,1fr) 12px minmax(50px,1fr)}
 .nge126-host .nge123-lab .nge123-lab-run{min-width:0;padding:8px}.nge126-host .nge123-lab-launch{flex-direction:column;align-items:stretch}
 .nge126-host .nge125-builder-site{min-height:120px;padding:10px 15px 20px;margin-bottom:9px}.nge126-host .nge125-builder-friend>*,.nge126-host .nge125-builder-destination>*{height:72px}.nge126-host .nge125-builder-gap{min-height:60px}
}
@media(max-width:1024px){
 .nge126-host .nge125-world--data-festival .nge125-target,.nge126-host .nge125-world--story-theater .nge125-target,.nge126-host .nge125-world--color-studio .nge125-target,.nge126-host .nge125-world--rescue-builder .nge125-target{font-size:21px;line-height:1.5}
}
@media(max-width:600px){
 .nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded) .nge123-mission h2{display:none}
 .nge126-host .nge123-sub-header .nge123-companion,.nge126-host .nge123-rally-header .nge123-companion{flex-direction:row;gap:0}
 .nge126-host .nge123-sub-header .nge123-character,.nge126-host .nge123-rally-header .nge123-character{display:none}
 .nge126-host .nge123-sub-mission>.nge123-sub-label:last-child,.nge126-host .nge123-rally-goal>.nge123-sub-label:last-child{display:none}
 .nge126-host .nge125-world--rescue-builder .nge125-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .nge126-host .nge125-world--rescue-builder .nge125-card-label{font-size:12px}
 .nge126-host .nge125-kitchen-bowls{gap:5px}.nge126-host .nge125-kitchen-bowl{min-height:125px;padding:7px}
}

.nge126-host .nge1-game-options>summary::after{display:none}
.nge126-host .nge126-stats-line{font:500 12px/1.8 Alexandria,system-ui,sans-serif;color:#476c70;margin:4px 0;padding:3px 8px;text-align:center}
.nge126-host.nge1-player:is(:fullscreen,.li1-overlay,.li1-expanded) .nge126-stats-line,.nge126-host:is(:fullscreen,.li1-overlay,.li1-expanded)>.nge126-stats-line{display:none}
@media(max-height:550px) and (min-width:720px){.nge126-host .nge125-time-hours{grid-template-columns:repeat(12,minmax(44px,1fr))}}
/* Keep the clock and its adjustments side by side on short landscape screens. */
@media(max-height:550px) and (min-width:560px){
 .nge126-host .nge125-world--time-train>.nge123-scene{display:grid;grid-template-columns:minmax(190px,.85fr) minmax(276px,1.15fr);gap:7px 10px;align-items:start}
 .nge126-host .nge125-world--time-train .nge125-top{display:contents}
 .nge126-host .nge125-world--time-train .nge125-top>.nge125-goal{grid-column:1;grid-row:1;max-width:none;width:100%;min-width:0;margin:0;padding:6px}
 .nge126-host .nge125-world--time-train .nge125-top>.nge123-companion{grid-column:2;grid-row:1;margin:0}
 .nge126-host .nge125-world--time-train .nge123-character{display:none}
 .nge126-host .nge125-world--time-train .nge125-time-station{grid-column:1;grid-row:2;min-height:0;gap:7px;padding:0;margin:0}
 .nge126-host .nge125-world--time-train .nge125-time-dial{width:135px;height:135px;flex:0 0 135px}
 .nge126-host .nge125-world--time-train .nge125-time-train{width:65px;height:65px;flex:0 1 65px}
 .nge126-host .nge125-world--time-train .nge125-time-controls{grid-column:2;grid-row:2 / span 3;width:100%;min-width:0;padding:8px;margin:0}
 .nge126-host .nge125-world--time-train .nge125-time-hours{grid-template-columns:repeat(6,minmax(44px,1fr));gap:4px}
 .nge126-host .nge125-world--time-train .nge125-time-minutes{gap:5px}
 .nge126-host .nge125-world--time-train .nge125-time-minutes button{padding:6px;font-size:12px;flex:1;min-width:0}
 .nge126-host .nge125-world--time-train .nge125-small-label{margin:4px 0;font-size:12px}
 .nge126-host .nge125-world--time-train .nge125-time-chosen{grid-column:1;grid-row:3;margin:0;font-size:12px}
 .nge126-host .nge125-world--time-train .nge123-actions{grid-column:1;grid-row:4;margin:0}
 .nge126-host .nge125-world--time-train .nge123-announcement{grid-column:1 / -1}
 .nge126-host .nge125-world--time-train .nge123-announcement:empty{display:none}
}
