/* A fixed game viewport. Only dialog bodies may scroll. */
/* Android WebView can collapse an auto-height flex dialog to its border. */
dialog.ui-dialog,dialog.ui-guided{height:min(780px,calc(var(--app-height,100vh) - 28px));min-height:180px;inset:0;margin:auto}
.ui-dialog>.ui-dialog-body,.ui-guided>.ui-guided-body{flex:1 1 auto}
@media(max-width:760px){dialog.ui-dialog,dialog.ui-guided{height:calc(var(--app-height,100vh) - 16px);min-height:0}}
.landscape-ui .ui-stage #app,.landscape-ui .ui-dialog #app{min-height:0}
.ui-icon-art>img{width:34px;height:34px;object-fit:contain}
.ui-stage .round-boss-status{display:block;font-size:11px;white-space:nowrap;color:#79573e;margin-top:3px}
.ui-stage .free-help-space{display:block;min-height:32px;margin:6px auto;flex-shrink:0}
@media(max-width:760px){.ui-stage .free-help-space{min-height:29px;margin:4px auto}.ui-stage .round-boss-status{font-size:9px}}
html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .free-help-space{grid-column:1;grid-row:3;min-height:25px;margin:0 auto}
body.landscape-ui .ui-stage .task-card>.feedback,body.landscape-ui .ui-stage .task-card>.feedback:empty{height:var(--stage-feedback,40px);min-height:var(--stage-feedback,40px);max-height:var(--stage-feedback,40px);margin:6px 0 0;line-height:17px;overflow:hidden}
@media(max-width:760px){.ui-stage{--stage-feedback:34px}}
html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage{--stage-feedback:32px}
html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage{--stage-feedback:22px}
body.landscape-ui .ui-stage .ui-guided .task-card>.feedback,body.landscape-ui .ui-stage .ui-guided .task-card>.feedback:empty{height:auto;min-height:36px;max-height:none}
.landscape-ui .ui-stage .mini-feedback{height:35px;min-height:35px;flex-shrink:0}
html[data-game-orientation="landscape"][data-game-height="short"] .landscape-ui .ui-stage .mini-feedback{height:22px;min-height:22px;margin:0;font-size:10px;line-height:15px}html[data-game-orientation="landscape"][data-game-height="short"] .landscape-ui .ui-stage .crystal-watch{padding:8px;margin:auto 0;flex-shrink:0}html[data-game-orientation="landscape"][data-game-height="short"] .landscape-ui .ui-stage .crystal-watch h2{font-size:17px;margin:0 0 4px}html[data-game-orientation="landscape"][data-game-height="short"] .landscape-ui .ui-stage .crystal-watch p{display:none}html[data-game-orientation="landscape"][data-game-height="short"] .landscape-ui .ui-stage .crystal-sequence{margin:7px 0;gap:8px}html[data-game-orientation="landscape"][data-game-height="short"] .landscape-ui .ui-stage .crystal-sequence>span{width:52px;min-width:0;padding:5px}html[data-game-orientation="landscape"][data-game-height="short"] .landscape-ui .ui-stage .crystal-sequence small{font-size:8px;margin-top:3px}html[data-game-orientation="landscape"][data-game-height="short"] .landscape-ui .ui-stage .crystal-watch .primary{padding:7px 16px;font-size:12px;min-height:33px}

html:has(.landscape-ui),body.landscape-ui{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;background:#547354}
.landscape-ui>header,.landscape-ui>footer,.landscape-ui>.sun{display:none!important}
.ui-root{position:fixed;inset:0;overflow:hidden;color:#294833;font-family:Nunito,'Segoe UI',sans-serif;isolation:isolate}
.world-viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;cursor:grab;outline:none}.world-viewport.panning{cursor:grabbing}
.world-plane{position:absolute;left:0;top:0;will-change:transform;user-select:none}.world-picture{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.world-path{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.world-path polyline{fill:none;stroke:#ffefb9;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:2 10;filter:drop-shadow(0 2px 1px #4b633a80)}
.world-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#234c3440,transparent 24%,transparent 72%,#25482e50)}
.world-station{position:absolute;transform:translate(-50%,-50%);width:60px;height:60px;display:grid;place-items:center;border:3px solid #fff2c9;border-radius:50%;background:#f4d895;color:#345b38;box-shadow:0 5px 0 #6b673b,0 8px 16px #1a3e3a50;font:900 24px Nunito,sans-serif;cursor:pointer;z-index:2;padding:0}.world-station:disabled{background:#768b6f;border-color:#b8c6a0;box-shadow:0 4px 0 #4d634e;color:#d8dfce;cursor:default}.world-station.done{background:#93b96d;color:#fffaf0}.world-station.current{border:4px solid #fff9dc;background:#fae6a8;box-shadow:0 0 0 8px #fff1af55,0 5px 0 #786642,0 9px 17px #243b3550;z-index:3}.world-station small{position:absolute;top:65px;left:50%;transform:translateX(-50%);padding:5px 10px;background:#fff5d7ed;border:1px solid #c3a769;border-radius:10px;color:#325638;white-space:nowrap;font-size:12px;box-shadow:0 3px 7px #30453240}.world-dino{position:absolute;bottom:46px;left:12px;width:76px;height:91px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 4px 3px #37533250)}
.ui-top{position:absolute;top:14px;left:16px;right:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:5;pointer-events:none}.ui-top>*{pointer-events:auto}.ui-player,.ui-status{display:flex;align-items:center;gap:10px}.ui-player-name,.ui-stars{background:#fff6dded;border:1px solid #d7c59a;border-radius:16px;padding:10px 13px;box-shadow:0 4px 0 #58634440;font-weight:900;font-size:14px;white-space:nowrap;max-width:145px;overflow:hidden;text-overflow:ellipsis}.ui-icon{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;width:62px;min-height:61px;border:2px solid #e4d4aa;border-radius:19px;background:linear-gradient(#fff9e9,#f2e7c9);color:#3a573b;box-shadow:0 4px 0 #736c4850,0 6px 12px #28432e30;padding:6px;cursor:pointer}.ui-icon:hover{background:#f6efc4}.ui-icon:focus-visible,.world-station:focus-visible{outline:4px solid #6f5e9d;outline-offset:4px}.ui-icon:disabled{opacity:.5;cursor:default}.ui-icon-art{font-size:27px;line-height:1;display:flex;align-items:center;justify-content:center;height:32px}.ui-icon-art .drawn-icon{width:33px;height:33px}.ui-icon small{font-size:10px;font-weight:900}.ui-top .ui-icon{min-height:48px;width:48px;border-radius:16px}.ui-top .ui-icon small{display:none}.ui-context{display:flex;align-items:center;flex-direction:column;justify-content:center;max-width:360px;min-width:0;background:#fff6dfea;border:2px solid #ddc99c;border-radius:19px;padding:9px 20px;color:#345936;box-shadow:0 4px 0 #67654440;cursor:pointer}.ui-subject{font-size:9px;font-weight:900;letter-spacing:1.5px}.ui-chapter{font-size:15px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.ui-context:disabled{opacity:.85}
.ui-bottom{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:10px;padding:9px 13px;border:2px solid #d4c197;border-radius:27px;background:#fcf5dfc9;backdrop-filter:blur(10px);box-shadow:0 7px 22px #243b3540;z-index:5;max-width:calc(100% - 24px)}.ui-center{position:absolute;bottom:115px;right:20px;z-index:5;width:48px;height:48px;border:2px solid #ddcba4;border-radius:16px;background:#fff6dfec;color:#426646;box-shadow:0 4px 0 #5c674750;font-size:30px;cursor:pointer}.ui-next{position:absolute;bottom:116px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:1fr 28px;gap:2px 15px;min-height:52px;max-width:calc(100% - 150px);border:2px solid #ded09f;border-radius:17px;background:#fff4d4ed;padding:8px 16px;color:#3c5c3b;text-align:left;box-shadow:0 4px 0 #5b663c50;cursor:pointer;z-index:5}.ui-next-kicker{font-size:8px;letter-spacing:1px;font-weight:900}.ui-next strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ui-next>span:last-child{grid-column:2;grid-row:1/3;align-self:center;font-size:25px}.ui-camera-hint{position:absolute;top:88px;left:50%;transform:translateX(-50%);padding:5px 11px;background:#fff8e6b8;border-radius:11px;font-size:11px;font-weight:800;pointer-events:none;white-space:nowrap;color:#446043}
.ui-busy .ui-bottom,.ui-busy .ui-next,.ui-busy .ui-center,.ui-busy .ui-camera-hint{display:none}.ui-busy .world-viewport{pointer-events:none}.ui-stage{position:absolute;inset:82px 18px 16px;pointer-events:none;z-index:4;min-height:0}.ui-stage:empty{display:none}.ui-stage #app{pointer-events:auto;height:100%;width:100%;max-width:none;padding:0;margin:0;overflow:hidden}.ui-buffer{display:none!important}
.ui-dialog,.ui-guided{width:min(880px,calc(100% - 28px));max-height:calc(var(--app-height,100vh) - 28px);padding:0;border:2px solid #d5c49a;border-radius:25px;background:#fbf7e9;color:#294833;box-shadow:0 20px 80px #122b325c;overflow:hidden}.ui-dialog[open],.ui-guided[open]{display:flex;flex-direction:column}.ui-dialog::backdrop,.ui-guided::backdrop{background:#203e3045;backdrop-filter:blur(3px)}.ui-dialog-head{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;min-height:53px;padding:8px 14px 8px 22px;border-bottom:1px solid #dfd8bc;color:#5a7050;font-size:12px;font-weight:900;letter-spacing:.5px;background:#f3efd9}.ui-dialog-head button{height:38px;width:38px;border:1px solid #c5caae;border-radius:50%;background:#fffaf0;color:#476448;font-size:20px;cursor:pointer;flex-shrink:0}.ui-dialog-head button[hidden]{display:none}.ui-dialog-body,.ui-guided-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:22px;scrollbar-gutter:stable}.ui-dialog #app{max-width:none;padding:0;margin:0;width:100%}.ui-dialog .story-toolbar,.ui-dialog .story-nav,.ui-dialog .all-adventures,.ui-dialog .entry-footnote,.ui-dialog .profile-local-note,.ui-dialog .help-preview strong{display:none}.ui-dialog .story-heading{margin:0 0 18px;align-items:center}.ui-dialog .story-heading h1{font-size:30px;margin:3px 0}.ui-dialog .story-heading .eyebrow{font-size:9px}.ui-dialog .story-heading .story-rank{min-width:190px;max-width:220px;font-size:12px}.ui-dialog .story-heading .story-rank .rank-badge{width:40px;height:40px}.ui-dialog .profile-welcome{margin:0 0 16px;gap:12px}.ui-dialog .profile-welcome img{width:120px;height:140px}.ui-dialog .profile-welcome h1{font-size:30px;margin:0 0 8px}.ui-dialog .profile-welcome p:not(.eyebrow){font-size:13px;line-height:1.55}.ui-dialog .profile-name-form{padding:20px;max-width:100%}.ui-dialog .profile-list{gap:12px}.ui-dialog .profile-card{padding:15px;min-height:96px}.ui-dialog .profile-card strong{font-size:23px}.ui-dialog .profile-actions{margin:18px 0 0}.ui-dialog .storybook-intro{min-height:0;grid-template-columns:1fr 140px;gap:16px}.ui-dialog .intro-copy h1{font-size:31px}.ui-dialog .intro-copy>p:not(.eyebrow){font-size:13px;line-height:1.6;margin-top:12px;max-width:100%}.ui-dialog .explorer-hero{height:170px;max-width:160px;margin:0}.ui-dialog .entry-options{margin:18px 0 0;gap:12px}.ui-dialog .entry-option{padding:18px;min-height:110px}.ui-dialog .entry-option strong{font-size:23px}.ui-dialog .entry-option small{font-size:11px}.ui-dialog .hero{display:none}.ui-dialog .section-heading{margin:12px 0}.ui-dialog .section-heading h2{font-size:20px}.ui-dialog .mode-grid{gap:10px}.ui-dialog .mode{padding:14px;min-height:0}.ui-dialog .mode h3{font-size:18px}.ui-dialog .mode p{font-size:11px}.ui-dialog .mode-icon{font-size:28px;margin:0 0 6px}.ui-dialog .levels{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ui-dialog .level{padding:13px 10px;min-height:0}.ui-dialog .level h3{font-size:17px}.ui-dialog .level .example{font-size:21px}.ui-dialog .level-description{font-size:10px}.ui-dialog .launch{margin:16px 0;padding:16px;gap:14px}.ui-dialog .help-preview{margin:12px 0 0;padding:12px;flex-wrap:wrap}.ui-dialog .help-preview p{font-size:12px}.ui-dialog .settings-panel{border:0;background:transparent;padding:0;max-width:none}.ui-dialog .station-story{padding:18px;gap:18px}.ui-dialog .station-story-art{min-height:190px}.ui-dialog .station-story-art>img{height:180px}.ui-dialog .dialogue{font-size:17px}.ui-dialog .story-reward{padding:18px;gap:18px}.ui-dialog .reward-visual img{max-height:180px}.ui-dialog .summary{padding:12px 0}.ui-dialog .summary h1{font-size:30px}.ui-chapter-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ui-chapter-card{padding:0 0 15px;overflow:hidden;border:2px solid #bcc8a2;border-radius:19px;background:#fffaf0;color:#355739;text-align:left;cursor:pointer}.ui-chapter-card img{width:100%;height:145px;object-fit:cover;display:block;margin-bottom:12px}.ui-chapter-card strong,.ui-chapter-card small{display:block;margin:0 14px}.ui-chapter-card strong{font-size:17px}.ui-chapter-card small{font-size:11px;margin-top:7px}.ui-chapter-card:disabled{opacity:.5;cursor:default}
/* The same round renderer is placed on the fixed stage, without a second rule set. */
.ui-stage #app:has(.game-layout){display:flex;flex-direction:column;gap:8px}.ui-stage .game-top{margin:0;flex-shrink:0;padding:9px 15px;border:1px solid #dbd0ae;border-radius:17px;background:#fff8e8ed;min-height:50px}.ui-stage .game-title h2{font-size:18px}.ui-stage .game-title p{font-size:11px}.ui-stage .game-top>.back{font-size:12px;padding:7px 10px}.ui-stage .game-stats{font-size:14px}.ui-stage .mission-scene{display:none}.ui-stage .game-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,540px) 190px;gap:18px;justify-content:center;align-items:center;margin:0}.ui-stage .task-card{width:100%;height:100%;max-height:680px;min-height:0;display:flex;flex-direction:column;justify-content:center;overflow:hidden;padding:18px 24px;border:2px solid #d6c89d;border-radius:25px;background:#fff9e9f5;box-shadow:0 6px 0 #62734a60,0 16px 34px #243c2c30}.ui-stage .task-meta{font-size:12px;min-height:20px}.ui-stage .equation{font-size:44px;gap:10px;margin:9px 0;min-height:76px;flex-wrap:nowrap}.ui-stage .answer{width:90px;height:72px;font-size:43px}.ui-stage .answer-caption{font-size:12px;line-height:18px;min-height:22px;margin:4px 0}.ui-stage .task-actions{gap:10px;margin:4px 0;justify-content:center}.ui-stage .task-actions .primary,.ui-stage .bulb{padding:9px 15px;min-height:40px;font-size:13px}.ui-stage .penalty{font-size:10px;margin:4px 0;line-height:16px}.ui-stage .free-help-entry{font-size:12px;padding:7px 12px;margin:6px auto;min-height:32px}.ui-stage .assist{display:none}.ui-stage .keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-width:320px;width:100%;margin:10px auto 0}.ui-stage .keypad button{height:49px;min-height:0;padding:4px;font-size:25px;border-radius:12px}.ui-stage .feedback{height:40px;min-height:40px;margin:8px 0 0;line-height:20px;overflow:hidden;font-size:14px}.ui-stage .side-card{background:#fff8e9e8;padding:18px;border-radius:23px}.ui-stage .side-card h3{font-size:17px}.ui-stage .side-card p{font-size:12px}.ui-stage .side-dino{font-size:65px}.ui-stage .mini-stats{display:none}.ui-stage .ui-guided .task-card{height:auto;max-height:none;min-height:0;overflow:visible;display:block;padding:8px;box-shadow:none;border:0;background:transparent}.ui-stage .ui-guided .assist{display:block}.ui-stage .ui-guided .keypad{max-width:300px}.ui-stage .ui-guided .feedback{height:auto;min-height:36px}.ui-stage .ui-guided .task-meta{display:none}
/* Mini-games keep their existing state machines, with fitted play surfaces. */
.ui-stage .memory-screen,.ui-stage .mini-screen,.ui-stage>.story-shell,.ui-stage #app>.story-shell{height:100%;max-width:900px;margin:0 auto;padding:16px 20px;overflow:hidden;border:2px solid #d6c89d;border-radius:25px;background:#fff9e9f2;box-shadow:0 8px 30px #29482e40;display:flex;flex-direction:column;gap:8px}.ui-stage .memory-top{margin:0;flex-shrink:0;gap:12px}.ui-stage .memory-top h1{font-size:23px}.ui-stage .memory-top p{font-size:11px}.ui-stage .memory-top button{font-size:11px;padding:8px 10px}.ui-stage .memory-errors{font-size:10px}.ui-stage .memory-status{font-size:12px;margin:0;padding:6px 0;flex-shrink:0}.ui-stage .memory-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:1;min-height:0;align-content:center;margin:0}.ui-stage .memory-board.pairs-3{grid-template-columns:repeat(3,minmax(0,1fr))}.ui-stage .memory-card{height:clamp(75px,calc(var(--app-height,100vh) * .15),120px);min-height:0;width:100%;font-size:20px}.ui-stage .memory-card .drawn-icon{width:38px;height:38px}.ui-stage .memory-card small{font-size:10px}.ui-stage .memory-feedback,.ui-stage .mini-feedback,.ui-stage .nest-feedback{min-height:35px;line-height:17px;font-size:12px;margin:3px 0;flex-shrink:0}.ui-stage .memory-footer,.ui-stage .nest-foot>p{display:none}.ui-stage .memory-permit{font-size:13px;min-height:45px;padding:8px}.ui-stage .memory-math{width:100%;max-width:420px;margin:auto;flex-shrink:1;min-height:0}.ui-stage .memory-math>p{font-size:12px;line-height:18px;margin:2px 0}.ui-stage .memory-math>.primary{font-size:13px;padding:8px 13px;min-height:35px;display:block;margin:4px auto}.ui-stage .memory-screen:has(.memory-math) .memory-board{display:none}.ui-stage .cloud-landscape,.ui-stage .crystal-garden{height:clamp(100px,calc(var(--app-height,100vh) * .22),200px);min-height:90px;margin:0;flex-shrink:1}.ui-stage .mini-screen:has(.memory-math) .cloud-landscape,.ui-stage .mini-screen:has(.memory-math) .crystal-garden,.ui-stage .mini-screen:has(.crystal-watch) .crystal-garden{display:none}.ui-stage .mini-choices{margin:auto 0}.ui-stage .mini-choices h2,.ui-stage .crystal-watch h2{font-size:20px}.ui-stage .mini-choices p,.ui-stage .crystal-watch p{font-size:12px}.ui-stage .symbol-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.ui-stage .symbol-choice{padding:10px;min-height:90px;font-size:12px}.ui-stage .symbol-choice .drawn-icon{height:43px;width:43px}.ui-stage .crystal-watch{margin:auto 0;padding:14px}.ui-stage .crystal-sequence{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:16px 0}.ui-stage .crystal-sequence>span{width:58px;padding:7px}.ui-stage .crystal-sequence .drawn-icon{width:36px;height:36px}.ui-stage .mini-victory,.ui-stage .memory-restart{padding:15px;margin:auto}.ui-stage .mini-victory h2,.ui-stage .memory-restart h2{font-size:23px}.ui-stage .story-toolbar,.ui-stage .story-nav{display:none}.ui-stage .story-heading{margin:0}.ui-stage .story-heading h1{font-size:22px;margin:2px 0}.ui-stage .story-heading .eyebrow{font-size:9px}.ui-stage .story-heading .story-rank{display:none}.ui-stage .nest-intro{margin:0;font-size:12px}.ui-stage .nest-intro>p{display:none}.ui-stage .nest-playground{height:auto;flex:1;min-height:220px;max-height:340px;margin:0}.ui-stage .nest-companion{top:10px;left:50%;transform:translateX(-50%);height:85px;width:85px}.ui-stage .nest-companion .egg-art,.ui-stage .nest-companion img{height:85px;width:85px}.ui-stage .nest-slots{position:absolute;inset:auto 12px 12px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ui-stage .nest-slot{position:static;transform:none;width:auto;height:66px;border-radius:13px;padding:5px}.ui-stage .nest-slot .drawn-icon{width:31px;height:31px}.ui-stage .nest-slot span{font-size:10px}.ui-stage .material-tray{gap:10px;margin:0}.ui-stage .material-button{height:63px;min-height:0;padding:7px;flex:1}.ui-stage .material-button .drawn-icon{width:30px;height:30px}.ui-stage .material-button span{font-size:11px}.ui-stage .nest-foot{margin:0;justify-content:center}.ui-stage .nest-foot button{font-size:11px;padding:8px 12px;min-height:34px}
@media(max-width:760px){.ui-player-name{display:none}.ui-top{top:10px;left:12px;right:12px;gap:7px}.ui-context{padding:7px 12px;flex:1;max-width:250px}.ui-chapter{font-size:12px}.ui-subject{font-size:8px;letter-spacing:1px}.ui-status{gap:6px}.ui-stars{padding:9px;font-size:12px}.ui-top .ui-icon{width:44px;min-height:44px;border-radius:14px}.ui-bottom{gap:6px;padding:7px 9px;border-radius:23px;bottom:11px}.ui-bottom .ui-icon{width:54px;min-height:57px;border-radius:16px}.ui-bottom .ui-icon small{font-size:9px}.ui-center{bottom:105px;right:12px;width:44px;height:44px}.ui-next{bottom:107px;max-width:calc(100% - 120px);padding:7px 11px;gap:2px 9px}.ui-next strong{font-size:12px}.ui-next-kicker{font-size:7px}.ui-camera-hint{top:70px;font-size:10px}.ui-stage{inset:68px 10px 10px}.ui-stage .game-layout{display:flex;justify-content:center;gap:0}.ui-stage .side-wrap{display:none}.ui-stage .game-top{min-height:43px;padding:6px 10px;border-radius:15px}.ui-stage .game-title h2{font-size:14px}.ui-stage .game-title p{font-size:10px}.ui-stage .game-top>.back{font-size:10px;padding:6px}.ui-stage .game-stats{font-size:12px}.ui-stage .task-card{max-width:520px;padding:10px 14px;border-radius:21px;justify-content:center}.ui-stage .task-meta{min-height:16px;font-size:10px}.ui-stage .equation{font-size:37px;min-height:63px;gap:9px;margin:6px 0}.ui-stage .answer{width:77px;height:60px;font-size:36px}.ui-stage .number-help-button{font-size:inherit;min-height:54px;min-width:52px;padding:4px 9px}.ui-stage .answer-caption{font-size:10px;min-height:18px;line-height:15px;margin:2px 0}.ui-stage .task-actions{gap:8px;margin:3px 0}.ui-stage .task-actions .primary,.ui-stage .bulb{min-height:36px;padding:7px 12px;font-size:12px}.ui-stage .penalty{font-size:9px;line-height:12px;margin:3px 0}.ui-stage .free-help-entry{font-size:11px;padding:6px 10px;margin:4px auto;min-height:29px}.ui-stage .keypad{margin:7px auto 0;gap:5px;max-width:300px}.ui-stage .keypad button{height:42px;font-size:23px;border-radius:10px}.ui-stage .feedback{min-height:34px;height:34px;line-height:17px;font-size:12px;margin:6px 0 0}.ui-dialog,.ui-guided{width:calc(100% - 16px);max-height:calc(var(--app-height,100vh) - 16px);border-radius:21px}.ui-dialog-body,.ui-guided-body{padding:16px}.ui-dialog-head{min-height:48px;padding:6px 10px 6px 17px}.ui-dialog .storybook-intro{display:grid;text-align:left;grid-template-columns:1fr 95px;gap:10px;padding:0}.ui-dialog .intro-copy h1{font-size:27px;line-height:1.1}.ui-dialog .intro-copy>p:not(.eyebrow){font-size:12px;line-height:1.5;margin-top:10px}.ui-dialog .explorer-hero{width:95px;height:135px;margin:0}.ui-dialog .intro-copy .eyebrow{font-size:8px}.ui-dialog .entry-options{grid-template-columns:1fr;gap:10px}.ui-dialog .entry-option{min-height:90px;padding:14px}.ui-dialog .entry-option strong{font-size:21px}.ui-dialog .entry-option .entry-icon .drawn-icon{height:42px;width:42px}.ui-dialog .profile-welcome img{width:85px;height:105px}.ui-dialog .profile-welcome h1{font-size:27px}.ui-dialog .profile-welcome p:not(.eyebrow){font-size:12px}.ui-dialog .profile-list{grid-template-columns:1fr}.ui-dialog .profile-name-form{padding:16px}.ui-dialog .profile-name-form input{min-height:48px;font-size:22px}.ui-dialog .profile-actions{flex-direction:column;gap:10px}.ui-dialog .story-heading .story-rank{display:none}.ui-dialog .story-heading h1{font-size:27px}.ui-dialog .station-story{grid-template-columns:1fr;padding:14px}.ui-dialog .station-story-art{display:none}.ui-dialog .dialogue{font-size:16px}.ui-dialog .story-reward{grid-template-columns:1fr}.ui-dialog .reward-visual{max-height:110px}.ui-dialog .reward-visual img{height:110px}.ui-dialog .egg-grid,.ui-dialog .trophy-shelf{grid-template-columns:1fr}.ui-dialog .levels{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-dialog .mode-grid{grid-template-columns:1fr;gap:8px}.ui-dialog .mode{display:grid;grid-template-columns:38px 1fr;text-align:left;column-gap:10px;padding:12px}.ui-dialog .mode h3{grid-column:2;margin:0}.ui-dialog .mode p{grid-column:2;margin:2px 0}.ui-dialog .mode-icon{grid-column:1;grid-row:1/3;align-self:center}.ui-dialog .mode .selected-dot{right:8px;top:8px}.ui-dialog .launch{flex-direction:column;align-items:stretch}.ui-dialog .launch>.primary{width:100%}.ui-chapter-grid{grid-template-columns:1fr}.ui-stage .memory-screen,.ui-stage .mini-screen,.ui-stage #app>.story-shell{padding:12px;gap:6px;border-radius:21px}.ui-stage .memory-top{gap:7px}.ui-stage .memory-top h1{font-size:18px}.ui-stage .memory-top p{font-size:9px}.ui-stage .memory-top button{font-size:9px;padding:6px}.ui-stage .memory-errors{font-size:9px}.ui-stage .memory-status{font-size:10px;padding:3px 0}.ui-stage .memory-board{gap:7px}.ui-stage .memory-card{height:90px}.ui-stage .memory-card .drawn-icon{width:30px;height:30px}.ui-stage .symbol-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:9px 0}.ui-stage .symbol-choice{min-height:75px;padding:8px}.ui-stage .cloud-landscape,.ui-stage .crystal-garden{height:130px;min-height:95px}.ui-stage .mini-choices h2,.ui-stage .crystal-watch h2{font-size:18px}.ui-stage .memory-math>p{font-size:11px;line-height:15px}.ui-stage .memory-math .equation{font-size:34px}.ui-stage .story-heading h1{font-size:19px}.ui-stage .nest-playground{min-height:220px}.ui-stage .material-button{height:58px}.ui-stage .nest-feedback{font-size:11px;line-height:16px;min-height:32px}}
html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .answer-caption{display:none}html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .task-card{padding:8px 12px}html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .equation{min-height:57px;font-size:34px;margin:5px 0}html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .answer{height:55px;font-size:33px;width:72px}html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .keypad button{height:39px}html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .feedback{min-height:32px;height:32px}html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .memory-math>p{display:none}html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .cloud-landscape,html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .crystal-garden{height:105px;min-height:80px}html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .nest-playground{min-height:195px}html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .nest-companion,html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .nest-companion .egg-art,html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .nest-companion img{height:65px;width:65px}html[data-game-orientation="portrait"][data-game-height="compact"] .ui-stage .nest-slot{height:60px}
html[data-game-orientation="landscape"][data-game-height="short"] .ui-top{top:6px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-top .ui-icon{height:40px;min-height:40px;width:40px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-context{padding:4px 12px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage{inset:57px 12px 8px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .game-top{min-height:32px;padding:3px 10px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage #app:has(.game-layout){gap:5px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .game-layout{display:flex}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .side-wrap{display:none}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .task-card{max-width:820px;display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,260px);grid-template-rows:16px minmax(0,1fr) 28px 22px;gap:3px 15px;padding:8px 14px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .task-meta{grid-column:1/-1;min-height:16px;font-size:9px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage #answerForm{grid-column:1;grid-row:2;align-self:center}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .equation{font-size:31px;min-height:49px;margin:1px 0;gap:8px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .answer{height:47px;width:68px;font-size:31px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .number-help-button{min-height:44px;font-size:31px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .answer-caption{display:none}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .task-actions .primary,html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .bulb{min-height:31px;padding:5px 11px;font-size:11px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .penalty{font-size:8px;line-height:10px;margin:2px 0}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .free-help-entry{grid-column:1;grid-row:3;min-height:25px;font-size:10px;padding:4px 10px;margin:0 auto}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .keypad{grid-column:2;grid-row:2/4;gap:4px;margin:0;align-self:center;max-width:none}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .keypad button{height:33px;font-size:21px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .feedback{grid-column:1/-1;grid-row:4;min-height:22px;height:22px;line-height:20px;font-size:11px;margin:0}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .memory-screen,html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .mini-screen,html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage #app>.story-shell{padding:8px 13px;gap:4px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .memory-board{grid-template-columns:repeat(5,minmax(0,1fr))}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .memory-board.pairs-3{grid-template-columns:repeat(6,minmax(0,1fr))}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .memory-card{height:100px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .memory-math{display:grid;grid-template-columns:1fr 220px;grid-template-rows:1fr 36px;max-width:740px;gap:3px 14px;align-items:center}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .memory-math>p{display:none}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .memory-math .equation{grid-column:1;grid-row:1}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .memory-math>.primary{grid-column:1;grid-row:2;margin:0 auto}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .memory-math .keypad{grid-column:2;grid-row:1/3}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .memory-feedback,html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .mini-feedback{min-height:20px;font-size:10px;line-height:15px;margin:0}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .cloud-landscape,html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .crystal-garden{display:none}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .symbol-choices{grid-template-columns:repeat(4,minmax(0,1fr));margin:5px 0}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .symbol-choice{min-height:73px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .mini-choices h2{font-size:17px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .mini-choices p{display:none}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .nest-intro{display:none}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .nest-companion,html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .nest-bowl{display:none}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .nest-playground{min-height:105px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .nest-slots{grid-template-columns:repeat(6,1fr);inset:10px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .nest-slot{height:75px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .material-tray{position:absolute;right:28px;top:10px;width:280px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .material-button{height:44px;display:flex;align-items:center;justify-content:center;gap:5px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .material-button .drawn-icon{width:23px;height:23px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .story-heading h1{font-size:17px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-stage .nest-foot{display:none}html[data-game-orientation="landscape"][data-game-height="short"] .ui-bottom{bottom:8px;padding:5px 10px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-bottom .ui-icon{height:49px;min-height:49px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-next{bottom:87px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-center{bottom:87px}html[data-game-orientation="landscape"][data-game-height="short"] .ui-camera-hint{top:65px}

/* Measured orientation wins over WebView's unreliable height media queries. */
html[data-game-orientation="portrait"] .ui-stage .game-layout{display:flex;flex-direction:column;align-items:stretch;gap:0}
html[data-game-orientation="portrait"] .ui-stage .task-card{display:flex;flex-direction:column;flex:1;max-height:none;max-width:520px;margin:0 auto;justify-content:center;gap:0}
html[data-game-orientation="portrait"] .ui-stage .side-wrap{display:none}
html[data-game-orientation="portrait"] .ui-stage .task-card>.keypad{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex-shrink:0;width:100%;margin:7px auto 0;gap:5px}
html[data-game-orientation="portrait"] .ui-stage .task-card>#answerForm{flex-shrink:0;width:100%}
html[data-game-orientation="portrait"] .ui-stage .task-card>.task-meta{flex-shrink:0}
html[data-game-orientation="portrait"] .ui-stage .task-card .equation{font-size:34px;gap:7px;min-height:57px;margin:5px 0}
html[data-game-orientation="portrait"] .ui-stage .task-card .answer{height:55px;width:72px;font-size:33px;flex-shrink:0}
html[data-game-orientation="portrait"] .ui-stage .task-card .keypad button{height:40px;min-height:40px;padding:4px}
html[data-game-orientation="portrait"] .ui-stage .task-card .task-actions button{min-height:36px;padding:6px 12px;font-size:12px}
html[data-game-orientation="portrait"] .ui-stage .task-card .answer-caption{display:none}
html[data-game-orientation="portrait"] .ui-stage .ui-guided .task-card{display:block}
.ui-zoom{position:absolute;right:20px;bottom:175px;z-index:5;display:flex;flex-direction:column;gap:5px}
.ui-zoom button{width:44px;height:40px;border:2px solid #ddcba4;border-radius:13px;background:#fff6dfec;color:#426646;font-size:25px}
.ui-busy .ui-zoom{display:none}
.world-viewport{background:linear-gradient(#879e8b,#4f7353)}
@media(max-width:760px){.ui-zoom{right:12px;bottom:160px}}
html[data-game-orientation="landscape"][data-game-height="short"] .ui-zoom{bottom:145px;flex-direction:row}
html[data-game-orientation] .ui-stage .ui-guided .task-card{display:block;height:auto;max-height:none;overflow:visible;min-height:0}
