/* Full-screen game menus. Each collection uses pages instead of a long document. */
.overlay{position:fixed;inset:0;z-index:10;display:grid;place-items:center;background:#091c36;overflow:hidden}
.panel{position:relative;isolation:isolate;width:min(1280px,100%);height:100%;overflow:hidden;margin:0;border:0;border-radius:0;background:radial-gradient(ellipse at 50% 21%,#466d8b,#24465f 45%,#17344f 75%,#112a44);box-shadow:0 0 90px #020e22;color:#f3f4e7}
.panel::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(circle,#e9edc33b 1px,transparent 2px);background-size:89px 101px;mask-image:linear-gradient(transparent,#0005,transparent)}
.screen-content{height:100%;min-height:0;display:flex;flex-direction:column;gap:10px;padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l)}
.hub-screen .screen-content{padding-bottom:8px;height:calc(100% - 76px - var(--safe-b))}
.screen-header{display:flex;align-items:center;gap:10px;min-height:48px;flex-shrink:0}.screen-header>div{flex:1;min-width:0}.screen-header h2{font-size:19px;line-height:1.4;margin:0;text-shadow:0 2px #0c2844}.screen-header p{font-size:10px;line-height:1.5;margin:3px 0 0;color:#bfd4dc}.header-spacer{width:12px}
.game-dock{height:calc(76px + var(--safe-b));padding:7px max(8px,env(safe-area-inset-right,0px)) var(--safe-b) max(8px,env(safe-area-inset-left,0px));display:grid;grid-template-columns:repeat(5,1fr);gap:4px;position:absolute;bottom:0;left:0;right:0;background:linear-gradient(#173d5f,#0d2944);border-top:2px solid #6688a0;box-shadow:0 -5px 20px #0c294c44;z-index:6}
.game-dock button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;border-radius:14px;color:#92b3c7;min-width:0;min-height:57px;padding:3px 2px}.game-dock button>span{height:29px;display:grid;place-items:center;filter:drop-shadow(0 2px #061c34)}.game-dock .ui-icon{width:27px;height:27px;stroke-width:1.9}.game-dock b{font-size:9px;white-space:nowrap}.game-dock button[aria-current=page]{color:#ffe1a0;background:linear-gradient(#587a8a55,#182f4900)}.game-dock button[aria-current=page]::after{content:"";width:19px;height:3px;border-radius:4px;background:#f5cf78;position:absolute;bottom:1px}
.game-dock button[data-action=home]>span{height:40px;width:48px;border:2px solid #bf9b56;border-radius:14px;background:linear-gradient(#ffe6a0,#d7a65c);color:#73562e;margin-top:-17px;box-shadow:0 3px 0 #5c452c,0 3px 14px #ffdc7133}.game-dock button[data-action=home]{gap:5px}.game-dock button[data-action=home] .ui-icon{width:27px;height:27px;fill:#fff0bf44}
.home-header{display:flex;align-items:center;gap:9px;flex-shrink:0;min-height:51px}.player-chip{display:flex;align-items:center;gap:8px;background:transparent;flex:1;text-align:left;padding:0;min-width:0}.player-chip img{border-radius:14px;background:linear-gradient(#c5d9c3,#81aaa0);border:2px solid #e7cc84;box-shadow:0 3px 0 #102e49;object-fit:contain}.player-chip small{display:block;font-size:8px;color:#b4ced8;margin-bottom:3px}.player-chip b{display:block;font-size:15px}.progress-chip{display:flex;align-items:center;gap:7px;background:#102e49;border:1px solid #4f7592;border-radius:20px;padding:7px 11px;color:#f6dba0}.progress-chip .ui-icon{width:18px;height:18px}.progress-chip b{font-size:15px}.progress-chip small{font-size:9px;color:#a9c8d3;margin-left:3px}
.home-view{min-height:0;display:flex;flex:1;flex-direction:column;gap:10px}.game-logo{flex-shrink:0;text-align:center;padding-top:8px;position:relative;z-index:1}.game-logo>span{display:block;font-size:16px;font-weight:900;letter-spacing:.14em;color:#ffe9b4;text-shadow:0 2px #30425a}.game-logo h2{font-size:36px;line-height:1.13;margin:6px 0;color:#f8f8e9;letter-spacing:.06em;text-shadow:0 3px #153f57,2px 0 #153f57,-2px 0 #153f57,0 -2px #153f57,0 5px #0f2944}.game-logo p{font-size:10px;color:#c6dbdc;margin:10px 0 0}
.home-stage{position:relative;min-height:100px;flex:1;isolation:isolate;max-height:425px}.island-art{display:block;width:100%;height:100%;overflow:visible}.home-stage>.island-art{position:absolute;inset:0;z-index:-1}.hero-aura{position:absolute;left:50%;top:13%;transform:translateX(-50%);width:155px;height:155px;border-radius:50%;background:radial-gradient(#ffe8ad44,transparent 69%);z-index:-1}.hero-figure{position:absolute;left:50%;bottom:28%;transform:translateX(-50%);background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;filter:drop-shadow(0 8px #193b5430)}.hero-figure:active:not(:disabled){transform:translateX(-50%) translateY(2px)}.hero-figure img{height:clamp(112px,21vh,180px);width:auto;object-fit:contain;animation:friend-breathe 4s ease-in-out infinite}.hero-figure>span{font-size:10px;padding:3px 15px;border:1px solid #efdc9c99;border-radius:16px;color:#fff0ba;background:#224b62cc;margin-top:-7px}.floating-feature{position:absolute;display:flex;flex-direction:column;align-items:center;gap:5px;background:transparent;color:#f1dda6;min-width:60px;min-height:62px;padding:4px;text-shadow:0 2px #153149}.floating-feature .ui-icon{width:38px;height:38px;padding:7px;border:2px solid #bd9e61;border-radius:13px;background:linear-gradient(#7e947f,#3f686c);box-shadow:inset 0 2px #d5e0b877,0 3px #18344a;fill:#f2d18a33}.floating-feature span{font-size:9px}.feature-book{left:0;top:28%}.feature-treasure{right:0;top:38%}
.home-destination{flex-shrink:0;overflow:hidden;border:2px solid #7e9ba6;border-radius:16px;background:linear-gradient(#41667b,#284c64);box-shadow:0 4px #102c47}.world-selector{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:58px;flex-shrink:0;padding:4px 0}.home-destination .world-selector{padding:4px}.world-selector>.icon-button{width:40px;height:44px;background:transparent;border:0;box-shadow:none;color:#d5debd}.world-name{min-width:0;flex:1;text-align:center;background:transparent;padding:0 4px;min-height:45px;display:flex;flex-direction:column;justify-content:center;gap:4px}.world-name small{font-size:8px;letter-spacing:.15em;color:#bad4d3}.world-name b{font-size:16px;line-height:1.4;color:#f3e6bf}.destination-course{display:flex;align-items:center;gap:7px;min-height:35px;padding:6px 12px;background:#163e58;color:#d7e7dd;width:100%;text-align:left}.destination-course>span{background:#4d786e;border:1px solid #92b59a;border-radius:5px;padding:2px 6px;font-size:8px;flex-shrink:0}.destination-course>b{font-size:10px}.destination-course .ui-icon{width:13px;height:13px;margin-left:auto}
.launch-button{flex-shrink:0;min-height:64px;display:flex;align-items:center;justify-content:center;gap:15px;border-radius:19px;background:linear-gradient(#ffe9aa,#f6c35e 60%,#e7ae4f);color:#624522;border:2px solid #9c713c;box-shadow:inset 0 3px #fff7c7,0 5px #765430,0 7px 18px #061b3a66}.launch-button>.ui-icon{width:29px;height:29px;fill:#7b562c}.launch-button>span{font-size:23px;letter-spacing:.05em;text-shadow:0 1px #ffedba}.launch-button small{display:block;margin-top:1px;font-size:9px;color:#94713f}.screen-home .screen-content{padding-bottom:17px}
.screen-footnote{flex-shrink:0;margin:0;min-height:15px;font-size:9px;line-height:1.5;text-align:center;color:#b5cbd1;display:flex;align-items:center;justify-content:center;gap:5px}.screen-footnote .ui-icon{width:13px;height:13px}.screen-map .world-selector{background:#183f59;border:1px solid #557e91;border-radius:15px;min-height:57px}
.route-map{position:relative;flex:1;min-height:120px;isolation:isolate;overflow:hidden;border-radius:22px;background:radial-gradient(ellipse,#7c9d8c55,transparent 72%)}.route-scenery{position:absolute;inset:-8%;z-index:-2;opacity:.34;pointer-events:none;filter:saturate(.65)}.route-path{position:absolute;inset:0;width:100%;height:100%;z-index:-1}.route-path path{fill:none;stroke:#e4dfae88;stroke-width:3.5;stroke-dasharray:4 5;stroke-linecap:round}.course-nodes{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:9px 19px;height:100%;padding:5px 3px}.course-nodes:has(>button:nth-child(4):last-child){grid-template-rows:repeat(2,minmax(0,1fr))}.course-node{display:flex;align-items:center;gap:8px;min-width:0;min-height:46px;padding:3px;background:transparent;text-align:left;align-self:center;border:2px solid transparent;border-radius:16px}.course-node:nth-child(3){grid-column:2;grid-row:2}.course-node:nth-child(4){grid-column:1;grid-row:2}.node-emblem{display:grid;place-items:center;flex-shrink:0;width:47px;height:47px;border:3px solid #91adbc;border-radius:17px;background:linear-gradient(#cbd9d1,#82a79d);box-shadow:inset 0 2px #eef6cd,0 5px #2b4c5c;color:#285d60}.node-emblem>b{font-size:23px}.node-emblem .ui-icon{width:24px;height:24px}.course-node.done .node-emblem{background:linear-gradient(#ffe8a7,#d9ac5c);border-color:#e6d19c;color:#6b5330}.course-node.locked .node-emblem{background:linear-gradient(#4a6678,#2e485e);border-color:#617b8c;color:#91a7ac;box-shadow:inset 0 2px #7e959b55,0 4px #172e45}.course-node[aria-pressed=true]{background:#fff1ae18;border-color:#edce7c}.course-node[aria-pressed=true] .node-emblem{border-color:#ffe9a4;box-shadow:0 0 0 3px #ffe9a429,inset 0 2px #fff8d0,0 4px #6f673d}.node-label{min-width:0;display:block;color:#ecf4e7;line-height:1.45}.node-label>b{font-size:10px;display:block}.node-label small{font-size:8px;display:block;color:#b2c6ca;margin-top:3px}.course-node.locked .node-label{color:#b0c4cd}
.course-preview{display:flex;align-items:center;gap:9px;background:linear-gradient(#e3e8d6,#d5dfcb);border:2px solid #a4b5a6;border-radius:16px;box-shadow:0 4px #0b2b43;padding:9px;flex-shrink:0;color:#315967;min-height:90px}.course-preview-art{width:55px;height:49px;overflow:hidden;border:2px solid #b2c4ad;border-radius:9px;flex-shrink:0;background:#8dbdbb}.course-preview-art svg{height:100%;width:100%}.course-preview-text{min-width:0;flex:1}.course-preview-text>small{font-size:8px;color:#698775;display:block}.course-preview-text h3{font-size:11px;margin:4px 0;line-height:1.4}.course-preview .primary{flex-direction:column;gap:2px;padding:5px 10px;min-height:58px;min-width:58px;border-radius:12px;font-size:10px}.course-preview .primary .ui-icon{width:18px;height:18px;fill:#8f643444}
.medal-line{display:flex;align-items:center;gap:6px}.medal-line>span{width:23px;height:22px;display:grid;place-items:center;border-radius:7px;background:#1a3e5822;border:1px solid #7a9a9755;color:#6d8a8a}.medal-line .ui-icon{width:13px;height:13px}.medal-line>span.earned{background:linear-gradient(#ffe8a9,#e4c782);border-color:#ad8a46;color:#876532}
.world-grid{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,minmax(0,1fr));gap:10px}.world-grid>button{display:flex;align-items:center;gap:9px;min-width:0;background:linear-gradient(#3b617a,#26465e);border:2px solid #77969b;border-radius:15px;text-align:left;padding:8px;color:#f2e9c7;box-shadow:inset 0 2px #ffffff15,0 3px #112e47}.world-grid>button[aria-pressed=true]{border-color:#ffe0a0;background:linear-gradient(#617e7c,#365b64)}.world-grid>button>span{width:50px;height:45px;flex-shrink:0;overflow:hidden;border:2px solid #b5c9b4;border-radius:9px}.world-grid>button>span svg{height:100%;width:100%}.world-grid>button>div{min-width:0}.world-grid small{font-size:8px;color:#bad3d5;display:block}.world-grid b{font-size:11px;line-height:1.5;display:block;margin-top:5px}.world-grid .ui-icon{width:14px;height:14px;margin-left:auto}
.loadout{display:flex;flex-direction:column;gap:13px;flex:1;min-height:0}.selected-friend{position:relative;display:flex;align-items:center;justify-content:center;gap:16px;min-height:85px;flex:1;max-height:170px;isolation:isolate}.selected-friend img{height:min(17vh,135px);width:auto;object-fit:contain}.selected-friend small{font-size:9px;color:#bfd3d7}.selected-friend h3{margin:5px 0;font-size:25px;color:#fff0b5}.selected-friend p{margin:0;font-size:10px;color:#bed5d8}.friend-halo{position:absolute;inset:-10% 10%;background:radial-gradient(#a9cdb544,transparent 70%);z-index:-1}.character-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;flex-shrink:0}.character-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:79px;padding:3px;border:2px solid #6d91a1;border-radius:13px;background:linear-gradient(#41687e,#294c64);box-shadow:inset 0 2px #ffffff1a,0 3px #12324c}.character-card img{height:57px;width:57px;object-fit:contain}.character-card b{font-size:10px;margin:1px 0 4px}.character-card>.ui-icon{width:15px;height:15px;position:absolute;right:3px;top:3px;background:#2a806f;color:#fff2b5;border-radius:50%;padding:1px}.character-card[aria-pressed=true]{border-color:#ffe39d;background:linear-gradient(#788e79,#426f72);box-shadow:0 0 0 2px #fada7d22,inset 0 2px #e5ecc255,0 3px #716741}
.badge-loadout{flex-shrink:0}.badge-loadout>h3{font-size:11px;margin:0 0 8px;color:#dce9dc}.badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.badge-card{border:2px solid #76939b;background:#23475e;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;min-height:76px;gap:3px}.badge-card>svg{width:55px;height:41px}.badge-card>b{font-size:9px;line-height:1.4}.badge-card[aria-pressed=true]{background:#6a806b;border-color:#ffe0a0;box-shadow:inset 0 2px #d8e5a333,0 3px #6d643e}.badge-description{display:flex;justify-content:center;align-items:center;gap:5px;min-height:18px;font-size:10px;line-height:1.5;margin:8px 0 0;color:#d3e0da}.badge-description .ui-icon{width:14px;height:14px}.loadout-done{flex-shrink:0;min-height:46px}
.segmented{display:flex;gap:4px;border:1px solid #51728b;background:#102f4c;border-radius:15px;padding:4px;flex-shrink:0;min-height:47px}.segmented button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;background:transparent;color:#9abac7;border-radius:11px;padding:5px;font-size:12px;min-height:37px}.segmented .ui-icon{width:19px;height:19px}.segmented [aria-pressed=true]{color:#6b5635;background:linear-gradient(#f4deb0,#c8bd95);box-shadow:inset 0 2px #fff3c2,0 2px #172e43}
.atelier-intro{display:flex;gap:11px;align-items:center;justify-content:center;flex:1;max-height:140px;min-height:58px}.atelier-intro>span{color:#ead4a1}.atelier-intro>span .ui-icon{width:44px;height:44px}.atelier-intro h3{font-size:20px;color:#f2e1ae;margin:0 0 6px}.atelier-intro p{font-size:10px;color:#b9d1d7;margin:0}.workshop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;flex:1.8;min-height:150px;max-height:310px}.workshop-grid button{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:0;border:2px solid #7798a5;border-radius:16px;background:linear-gradient(#4d7184,#31546f);box-shadow:inset 0 3px #ffffff18,0 4px #102e48;color:#e9e6c8;padding:6px}.workshop-grid small{font-size:7px;letter-spacing:.08em;color:#abc9ce}.workshop-grid b{font-size:34px;line-height:1.1;margin:5px 0}.workshop-grid span{position:absolute;bottom:7px;right:7px;color:#d1dfcf}.workshop-grid .ui-icon{width:12px;height:12px}.workshop-grid .finished{background:linear-gradient(#91aa84,#587f72);border-color:#bccc95;color:#f9e9af}.workshop-summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;flex:.6;max-height:75px;color:#bdd1cf;font-size:12px}.workshop-summary .ui-icon{color:#ecc775;width:24px;height:24px}.workshop-summary b{color:#f4dba6;font-size:15px;margin-left:10px}
.pager{display:flex;align-items:center;justify-content:center;gap:22px;flex-shrink:0;min-height:45px}.pager>span{font-size:19px;min-width:56px;text-align:center;color:#f3dfb0}.pager small{font-size:12px;color:#9cbbc5}.pager .icon-button{height:40px;width:43px}.album-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:11px}.souvenir{border:2px solid #5d7d91;border-radius:15px;background:linear-gradient(#345970,#24465f);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:0;padding:5px;position:relative}.souvenir>span{display:grid;place-items:center;flex:1;min-height:20px;max-height:90px;width:100%}.souvenir>span>svg{width:80%;height:100%;max-height:90px}.souvenir>span>.ui-icon{width:27px;height:27px;color:#67899c}.souvenir>b{font-size:10px;color:#9bb8c2;max-width:100%;text-align:center;line-height:1.4;flex-shrink:0}.souvenir>small{font-size:8px;color:#839fae;flex-shrink:0}.souvenir.earned{border-color:#b4b99c;background:linear-gradient(#e8e9d3,#cbd7ba);box-shadow:inset 0 2px #fff8d8,0 3px #122f45}.souvenir.earned>b{color:#4a6a63}.souvenir.earned>small{color:#7a8e74}.collection-garden{flex-shrink:0;min-height:44px}
.garden-scene{position:relative;isolation:isolate;flex:1;min-height:100px;border-radius:22px;border:2px solid #adbf9d;background:linear-gradient(#b3d8d9 0 30%,#96b899 30% 32%,#7ea67d 32% 41%,#b4cc9a 41%);overflow:hidden;display:flex;flex-direction:column;padding:28px 12px 0;box-shadow:inset 0 3px #f0f2c466,0 4px #0e2f46}.garden-cloud{position:absolute;top:15px;left:12%;height:7px;width:51px;border-radius:5px;background:#eef5e3b3}.garden-cloud::before{content:"";position:absolute;left:12px;top:-5px;width:20px;height:13px;border-radius:7px;background:#eef5e3b3}.garden-cloud.cloud-b{left:auto;right:14%;width:38px;top:20px}.garden-plots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:4px 7px;flex:1;min-height:0;z-index:1}.garden-plot{position:relative;min-height:25px;border:1px dashed #5e8b6588;border-radius:11px;background:#d4e3ad44;display:grid;place-items:center;padding:0}.garden-plot::after{content:"";position:absolute;bottom:5px;width:70%;height:6px;background:#5c885b22;border-radius:50%;z-index:-1}.garden-plot>svg{width:100%;height:100%;max-height:86px;min-height:0;filter:drop-shadow(0 2px #566c4f22)}.garden-plot>span{font-size:25px;font-weight:400;color:#60936788}.garden-plot.planted{background:transparent;border-color:transparent}.garden-friends{display:flex;justify-content:center;flex-shrink:0;min-height:32px;padding-top:4px}.garden-friends img{width:14%;height:auto;max-height:50px;max-width:50px;object-fit:contain;align-self:end}.garden-workbench{flex-shrink:0;display:flex;flex-direction:column;gap:8px}.tray-heading{display:flex;align-items:center;gap:8px;min-height:37px}.tray-heading p{font-size:10px;line-height:1.5;margin:0;flex:1;color:#c0d3d1}.erase-pick{width:38px;height:37px;border-radius:10px}.erase-pick[aria-pressed=true]{border-color:#f7d18a;color:#f8d18e}.treasure-tray{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-height:74px}.treasure-pick{min-height:74px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(#466b7e,#2d526c);border:2px solid #668798;border-radius:12px;padding:3px}.treasure-pick>svg{width:100%;height:45px;max-width:69px}.treasure-pick>span{font-size:8px;line-height:1.4;text-align:center}.treasure-pick[aria-pressed=true]{background:#7a8f76;border-color:#f9dfa0;box-shadow:inset 0 2px #fff2b333}.garden-empty-note{grid-column:1/-1;display:grid;place-items:center;background:#24485f;border:1px dashed #658897;border-radius:12px;padding:12px;text-align:center;font-size:11px;line-height:1.7;color:#a7c5cb}.garden-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center}.garden-bottom .pager{gap:13px}.garden-bottom>.secondary{font-size:10px;min-height:40px;padding:7px 10px;gap:6px}.garden-bottom>.secondary .ui-icon{width:17px;height:17px}
.journal-view{flex:1;min-height:0;display:flex;flex-direction:column;gap:4px}.journal-hero{flex:1;position:relative;min-height:50px;max-height:250px;isolation:isolate}.journal-hero>.island-art{position:absolute;inset:0;z-index:-1;opacity:.6}.journal-hero img{position:absolute;height:100%;width:auto;max-height:150px;left:50%;bottom:13%;transform:translateX(-50%)}.discovery-page{border:2px solid #a9b8a8;background:linear-gradient(#f0eed9,#d9e1cb);border-radius:18px;padding:16px;color:#41676c;flex-shrink:0;box-shadow:inset 0 3px #fff9df,0 4px #0f2f46}.chapter-label{font-size:8px;letter-spacing:.12em;color:#819786}.discovery-page>h3{font-size:20px;margin:6px 0 8px}.discovery-page>b{font-size:11px}.discovery-stats{display:flex;gap:20px;margin:13px 0}.discovery-stats>span{display:flex;align-items:center;gap:6px;color:#7f8f6e}.discovery-stats .ui-icon{width:19px;height:19px}.discovery-stats b{font-size:20px;color:#4d756b}.discovery-stats small{font-size:9px;color:#7e9179}.family-question{background:#fff8df;border-radius:10px;padding:10px;border:1px dashed #cbbd8f;margin:9px 0 14px}.family-question small{font-size:9px;color:#a29265}.family-question p{font-size:12px;line-height:1.7;margin:5px 0 0}.discovery-page>.secondary{font-size:11px;min-height:42px;width:100%}.discovery-page>.secondary .ui-icon{width:17px;height:17px}
.treasure-detail{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;flex:1;min-height:0;text-align:center;max-width:480px;align-self:center;width:100%}.treasure-detail>div{display:grid;place-items:center;width:170px;height:150px;background:radial-gradient(#e6db9b55,transparent 70%)}.treasure-detail>div>svg{height:100%;width:100%}.treasure-detail>div>.ui-icon{width:80px;height:80px;color:#b4c6c6}.treasure-detail h3{font-size:18px;margin:0}.treasure-detail p{font-size:12px;color:#bdd3d5;line-height:1.8;max-width:300px;margin:0}.treasure-detail .medal-line>span{width:35px;height:33px}.treasure-detail .medal-line .ui-icon{width:19px;height:19px}.treasure-detail>.primary,.treasure-detail>.secondary{width:100%}
.settings-options{flex:1;display:flex;flex-direction:column;justify-content:center;gap:15px;min-height:0}.setting-row{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-radius:16px;border:1px solid #6a8b9b;background:linear-gradient(#3b617a,#2c4f69);box-shadow:inset 0 2px #ffffff11,0 3px #14344e}.setting-row>span{min-width:0}.setting-row b{font-size:14px;display:block}.setting-row small{font-size:9px;color:#b6ced6;display:block;margin-top:6px;line-height:1.5}.setting-row input{appearance:none;-webkit-appearance:none;position:relative;flex-shrink:0;width:51px;height:29px;border:2px solid #7895a2;border-radius:18px;background:#15354f;margin:0;cursor:pointer;touch-action:manipulation;transition:background .15s}.setting-row input::before{content:"";position:absolute;left:3px;top:3px;width:19px;height:19px;border-radius:50%;background:#adc4cb;box-shadow:0 2px #0b2d3b44;transition:transform .15s}.setting-row input:checked{background:#77b695;border-color:#bad7a5}.setting-row input:checked::before{transform:translateX(22px);background:#f2f1c8}.settings-footer{display:flex;gap:10px;flex-shrink:0;padding:5px 0 8px}.settings-footer>*{flex:1}.parent-copy{flex:1;min-height:0;overflow:auto;user-select:text;line-height:1.9;padding:17px 4px;font-size:13px;color:#c9dadc}.parent-copy h3{font-size:18px;color:#f0e4c3}.parent-copy p{margin:15px 0}.parent-copy .danger{font-size:12px;width:100%;margin:25px 0 10px}.screen-about>.screen-content>.primary{flex-shrink:0}
.confirm-body{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:24px;text-align:center}.confirm-body>.ui-icon{width:72px;height:72px;color:#e0c88d;stroke-width:1.5}.confirm-body p{font-size:15px;line-height:1.9;color:#c9dcdb;margin:0}.confirm-body .button-row{width:100%;max-width:430px}.confirm-body .button-row>*{flex:1}.pause-hero{flex:1;min-height:80px;max-height:290px;display:flex;align-items:center;justify-content:center;gap:20px}.pause-hero img{max-height:100%;height:150px;width:auto;object-fit:contain}.pause-hero small{font-size:11px;color:#e9d29d}.pause-hero h3{font-size:20px;margin:8px 0;color:#f4e5b8}.pause-hero p{font-size:11px;color:#b9d0d6}.pause-actions{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding-bottom:15px;flex-shrink:0}.pause-actions>*{min-height:58px}
.result-view{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:13px;min-height:0;text-align:center}.result-title{flex-shrink:0}.result-title>span{font-size:10px;color:#becfd1}.result-title h2{font-size:30px;line-height:1.4;margin:6px 0 12px;color:#fbe1a0;text-shadow:0 3px #0f2d46}.clear-stars{display:flex;justify-content:center;gap:13px}.clear-stars .ui-icon{width:35px;height:35px;fill:#f5cc73;stroke:#fff1b5}.clear-stars .ui-icon:nth-child(2){width:43px;height:43px;margin-top:-5px}.result-reward{position:relative;isolation:isolate;flex:1;max-height:235px;min-height:100px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px}.result-reward>svg{width:175px;height:130px;min-height:50px;flex:1}.reward-rays{position:absolute;inset:-15% -30%;z-index:-1;background:radial-gradient(ellipse,#e9dba24d,transparent 68%);border-radius:50%}.result-reward>b{font-size:17px;color:#f6e3ad}.result-reward>small{font-size:10px;color:#b7cdd0}.result-friends{display:flex;justify-content:center;gap:0;flex-shrink:0}.result-friends img{width:14%;height:auto;max-width:49px;max-height:49px;object-fit:contain}.result-record .medal-line{justify-content:center;gap:12px}.result-record .medal-line>span{width:35px;height:33px;border-color:#577b8a}.result-record .medal-line .ui-icon{width:19px;height:19px}.result-record p{font-size:11px;margin:9px 0 6px;color:#d9e4d5}.result-record>small{font-size:9px;color:#9fbec7}.result-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:10px;flex-shrink:0;margin-top:3px}.result-actions>.primary{grid-column:1/-1}.result-actions>.secondary{font-size:11px;min-height:44px}.result-actions>.secondary .ui-icon{width:15px;height:15px}
.lab-layout{display:flex;flex-direction:column;flex:1;min-height:0;gap:12px}.lab-body{flex:1;min-height:0;display:flex;justify-content:center;align-items:center;background:linear-gradient(#dce7cf,#bdceb0);border:2px solid #a2b69f;box-shadow:inset 0 3px #f0f4dc,0 4px #102d45;border-radius:20px;padding:16px 12px;color:#476e68}.lab-feedback{min-height:53px;display:flex;align-items:center;gap:10px;flex-shrink:0;padding:10px 12px;border:1px solid #668b97;border-radius:13px;background:#254c65;color:#d5e3dc}.lab-feedback>span{color:#d9c58f}.lab-feedback>span .ui-icon{width:23px;height:23px}.lab-feedback p{font-size:11px;line-height:1.65;margin:0;flex:1}.lab-feedback small{display:block;color:#d5d9b3;font-size:9px;margin-top:4px;line-height:1.5}.lab-feedback.success{background:#4e7d6c;border-color:#b4cf91}.lab-actions{display:flex;gap:9px;justify-content:space-between;align-items:center;flex-shrink:0;min-height:46px}.lab-actions>.primary{flex:1}.lab-actions>.icon-button{height:46px;width:46px}.lab-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:45px;flex-shrink:0}.lab-footer .secondary,.lab-footer .primary{min-height:42px;font-size:11px;padding:9px 14px}.lab-footer>.primary .ui-icon{width:15px;height:15px}.lab-footer>span{font-size:10px;color:#91b0be;letter-spacing:.1em}
.bridge-experiment{width:100%;max-width:620px;min-width:0}.bridge-target{display:flex;gap:3px;justify-content:center;padding:18px 2px 20px;background:linear-gradient(transparent 0 60%,#7abac8 60%);border-radius:12px;min-width:0}.bridge-target i{width:32px;height:29px;min-width:0;display:grid;place-items:center;background:#b2c4b0;border:1px dashed #86a495;color:#6e8c80;font-style:normal;font-size:10px}.bridge-target i.filled{background:#e2bc75;border:1px solid #ab8956;color:#80683b;box-shadow:0 4px #b7945f}.plank-row{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:23px 0 0}.plank-row button{min-height:61px;padding:8px 12px;border:2px solid #b69b65;border-radius:11px;background:linear-gradient(#f8e6b8,#dec895);box-shadow:inset 0 2px #fff5d4,0 3px #af9869;color:#8a7044}.plank-row span{letter-spacing:1px;display:block}.plank-row b{display:block;font-size:10px;margin-top:5px}.plank-row [aria-pressed=true]{background:#a9c5a0;box-shadow:inset 0 2px #cbdda7,0 3px #6f976c;border-color:#779d74;opacity:.7}.lab-count{text-align:center;margin:20px 0 0;font-size:12px;color:#537e70}
.mirror-experiment{display:flex;align-items:center;justify-content:center;gap:14px}.mirror-experiment>div>b{display:block;font-size:11px;text-align:center;margin-bottom:12px}.mosaic{display:grid;grid-template-columns:repeat(3,44px);gap:4px}.mosaic>*{height:44px;width:44px;border-radius:7px;background:#eef0d9;border:2px solid #a5bda4;padding:0}.mosaic .filled{background:#82b4b0;border-color:#558e8d;box-shadow:inset 0 3px #add2bd,0 2px #638a7b}.mirror-line{border-left:2px dashed #7aa5a5;height:170px;padding-left:4px;display:flex;align-items:center;color:#7c9c8c;font-size:9px}.mirror-experiment>div:first-child .mosaic{grid-template-columns:repeat(3,27px)}.mirror-experiment>div:first-child .mosaic>*{height:32px;width:27px;border-radius:5px}
.path-experiment{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;gap:15px}.path-board{display:grid;grid-template-columns:repeat(5,40px);gap:4px}.path-cell{height:38px;display:grid;place-items:center;font-size:20px;border:1px solid #a6c192;border-radius:7px;background:#c0d4a4;color:#ba994e;position:relative}.path-cell.wall{background:#99aa99;color:#748c81;border-color:#91a594}.path-cell.visited{background:#f0dca2;border-color:#c4a864;color:#438f7d}.path-cell img{width:34px;height:34px;position:relative;z-index:1;object-fit:contain}.program{width:100%;max-width:400px}.program-tape{font-size:19px;line-height:1.6;letter-spacing:2px;border:1px dashed #96af96;border-radius:10px;background:#edf0d4;padding:6px 10px;min-height:48px;word-break:break-word;color:#547d70}.arrow-pad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}.arrow-pad button{height:45px;border:2px solid #7f9f93;border-radius:11px;background:linear-gradient(#f6edce,#d9ddbb);box-shadow:0 3px #91a48a;color:#437969;font-size:25px}
@keyframes friend-breathe{50%{transform:translateY(-3px)}}
@media(orientation:landscape){
.panel{background:radial-gradient(ellipse at 65% 30%,#416d83,#24475e 50%,#102e49)}.screen-content{padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);gap:8px}.hub-screen .screen-content{height:100%;padding-left:calc(var(--safe-l) + 84px);padding-bottom:var(--safe-b)}
.game-dock{left:var(--safe-l);right:auto;top:50%;bottom:auto;transform:translateY(-50%);width:66px;height:calc(100% - var(--safe-t) - var(--safe-b) - 16px);max-height:550px;display:flex;flex-direction:column;gap:3px;padding:8px 3px;border:1px solid #6b8d9d;border-radius:21px;box-shadow:inset 0 2px #ffffff11,0 5px #071f39}.game-dock button{flex:1;min-height:40px;gap:3px}.game-dock b{font-size:8px}.game-dock .ui-icon{width:24px;height:24px}.game-dock button>span{height:24px}.game-dock button[data-action=home]>span{margin:0;width:39px;height:34px;border-radius:11px}.game-dock button[data-action=home] .ui-icon{width:24px;height:24px}.game-dock button[aria-current=page]::after{bottom:0;width:13px;height:2px}
.screen-header{min-height:44px;gap:10px}.screen-header h2{font-size:18px}.screen-header p{font-size:9px}.screen-header .icon-button{width:40px;height:40px}.home-header{min-height:45px}.player-chip img{height:40px;width:40px}.player-chip b{font-size:14px}.player-chip small{font-size:8px}.home-header .icon-button{height:40px;width:40px}.home-view{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(220px,1.1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:12px 22px}.game-logo{grid-column:1;grid-row:1;align-self:center;padding:0}.game-logo>span{font-size:12px}.game-logo h2{font-size:32px;margin:5px 0}.game-logo h2 br{display:none}.game-logo p{font-size:9px;margin:8px 0 0}.home-stage{grid-column:2;grid-row:1/4;min-height:0;max-height:none;width:100%;height:100%}.home-destination{grid-column:1;grid-row:2}.launch-button{grid-column:1;grid-row:3;min-height:55px;border-radius:17px}.launch-button>span{font-size:21px}.launch-button small{font-size:8px}.launch-button>.ui-icon{height:24px;width:24px}.home-stage .hero-figure img{height:clamp(120px,30vh,190px)}.hero-figure{bottom:25%}.home-stage .feature-book{left:0;top:24%}.home-stage .feature-treasure{right:0;top:46%}.floating-feature{min-width:50px;min-height:55px;padding:2px}.floating-feature .ui-icon{width:33px;height:33px;padding:6px}.floating-feature span{font-size:8px}.world-selector{min-height:48px}.world-selector>.icon-button{height:39px;min-height:39px}.world-name{min-height:38px;gap:2px}.world-name small{font-size:7px}.world-name b{font-size:14px}.destination-course{min-height:30px;padding:5px 9px}.destination-course>span{font-size:7px}.destination-course>b{font-size:9px}
.screen-map .screen-content{display:grid;grid-template-columns:minmax(0,1fr) 235px;grid-template-rows:44px 49px minmax(0,1fr) 18px;gap:8px 15px}.screen-map .screen-header{grid-column:1/-1;grid-row:1}.screen-map .world-selector{grid-column:1;grid-row:2;min-height:0}.route-map{grid-column:1;grid-row:3/5;min-height:0}.course-preview{grid-column:2;grid-row:2/4;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:12px;gap:9px}.course-preview-art{width:100%;height:58px;min-height:35px;border-radius:10px}.course-preview-text h3{font-size:12px;line-height:1.5;margin:5px 0}.course-preview-text{flex:0}.course-preview .medal-line{margin-top:8px}.course-preview .primary{flex-direction:row;gap:8px;min-height:43px;margin-top:2px}.screen-map .screen-footnote{grid-column:2;grid-row:4;font-size:7px}.course-nodes{gap:4px 18px;padding:3px}.course-node{gap:7px;min-height:36px;padding:2px;border-radius:12px}.node-emblem{height:38px;width:39px;border-radius:13px;border-width:2px}.node-emblem>b{font-size:20px}.node-emblem .ui-icon{width:20px;height:20px}.node-label>b{font-size:9px}.node-label small{font-size:7px;margin-top:1px}
.world-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px}.world-grid>button{flex-direction:column;justify-content:center;gap:6px;text-align:center;padding:8px}.world-grid>button>span{width:80%;height:50px;min-height:27px}.world-grid>button>.ui-icon{display:none}.world-grid b{font-size:10px;margin-top:3px}.world-grid small{font-size:7px}
.loadout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);grid-template-rows:minmax(0,.75fr) minmax(0,1fr) 44px;gap:10px 16px}.selected-friend{grid-column:1;grid-row:1;min-height:0;max-height:none;gap:10px}.selected-friend img{height:90px;max-height:100%}.selected-friend h3{font-size:23px}.selected-friend p{font-size:8px}.selected-friend small{font-size:8px}.character-grid{grid-column:1;grid-row:2/4;min-height:0;gap:7px;grid-template-rows:1fr 1fr}.character-card{min-height:0;padding:2px;box-shadow:inset 0 2px #ffffff11,0 2px #133047}.character-card img{height:clamp(31px,11vh,60px);width:auto;max-height:calc(100% - 15px);min-height:0}.character-card b{font-size:8px;margin:1px 0 2px}.badge-loadout{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;justify-content:center;min-height:0}.badge-loadout>h3{font-size:10px;margin-bottom:8px}.badge-grid{gap:7px}.badge-card{min-height:75px;padding:5px 2px}.badge-card>svg{height:43px;width:55px}.badge-card>b{font-size:8px}.badge-description{font-size:9px;min-height:30px;margin:9px 0 0;line-height:1.6}.loadout-done{grid-column:2;grid-row:3;min-height:43px;font-size:12px}
.screen-atelier .screen-content{display:grid;grid-template-columns:200px minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) 30px;gap:12px 18px}.screen-atelier .screen-header{grid-column:1/-1}.screen-atelier .segmented{grid-column:1;grid-row:2;flex-direction:column;min-height:0;max-height:190px;align-self:start;gap:5px}.screen-atelier .segmented button{min-height:43px;flex:none;font-size:11px}.atelier-intro{display:none}.workshop-grid{grid-column:2;grid-row:2/4;min-height:0;max-height:none;gap:10px}.workshop-grid button{padding:6px;min-height:0}.workshop-grid b{font-size:30px}.workshop-grid small{font-size:7px}.workshop-summary{grid-column:1;grid-row:3;min-height:0;font-size:9px}.workshop-summary b{font-size:12px;margin-left:6px}.workshop-summary .ui-icon{width:18px;height:18px}
.screen-album .screen-content{display:grid;grid-template-columns:minmax(0,1fr) 190px;grid-template-rows:44px minmax(0,1fr) 50px;gap:10px 18px}.screen-album .screen-header{grid-column:1/-1}.album-grid{grid-column:1;grid-row:2/4;gap:8px;grid-template-rows:repeat(3,minmax(0,1fr))}.souvenir{flex-direction:row;gap:8px;padding:6px}.souvenir>span{width:39px;height:100%;max-height:65px;min-height:0;flex:none}.souvenir>span>svg{width:100%;height:100%}.souvenir>b{font-size:9px;flex:1;line-height:1.5}.souvenir>small{font-size:7px;position:absolute;bottom:4px;right:7px}.screen-album .pager{grid-column:2;grid-row:2;align-self:center;gap:12px}.screen-album .collection-garden{grid-column:2;grid-row:3;font-size:11px;min-height:43px;align-self:center;padding:9px}
.screen-garden .screen-content{display:grid;grid-template-columns:minmax(0,1fr) 214px;grid-template-rows:44px minmax(0,1fr);gap:11px 16px}.screen-garden .screen-header{grid-column:1/-1}.garden-scene{grid-column:1;grid-row:2;min-height:0;padding:23px 9px 0;border-radius:17px}.garden-plots{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:2px 6px}.garden-plot>svg{max-height:70px}.garden-friends{min-height:25px;max-height:36px}.garden-friends img{max-height:36px;max-width:39px}.garden-workbench{grid-column:2;grid-row:2;min-height:0;flex:1;gap:8px}.tray-heading{min-height:37px;gap:7px}.tray-heading p{font-size:9px}.erase-pick{width:35px;height:35px}.treasure-tray{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;min-height:0;flex:1;gap:7px}.treasure-pick{min-height:0;padding:3px}.treasure-pick>svg{height:38px;min-height:22px;max-height:60px;flex:1}.treasure-pick>span{font-size:8px}.garden-bottom{flex-direction:column;gap:6px}.garden-bottom .pager{min-height:31px;gap:21px}.garden-bottom .pager .icon-button{width:34px;height:31px;border-radius:10px}.garden-bottom .pager>span{font-size:14px}.garden-bottom>.secondary{width:100%;min-height:34px;font-size:9px;padding:6px}
.screen-journal .screen-content{display:grid;grid-template-columns:minmax(0,1fr) 180px;grid-template-rows:44px minmax(0,1fr) 16px;gap:8px 20px}.screen-journal .screen-header{grid-column:1/-1}.journal-view{grid-column:1;grid-row:2/4;display:grid;grid-template-columns:95px minmax(0,1fr);gap:10px;min-height:0}.journal-hero{min-height:0;max-height:none}.journal-hero>.island-art{width:200%;left:-50%}.journal-hero img{height:auto;width:100%;max-height:115px;bottom:25%}.discovery-page{padding:12px;display:flex;flex-direction:column;justify-content:center;min-height:0}.chapter-label{font-size:7px}.discovery-page>h3{font-size:17px;margin:4px 0}.discovery-page>b{font-size:9px}.discovery-stats{gap:15px;margin:9px 0}.discovery-stats b{font-size:17px}.discovery-stats small{font-size:8px}.family-question{padding:8px;margin:4px 0 9px}.family-question small{font-size:8px}.family-question p{font-size:10px;margin-top:3px;line-height:1.6}.discovery-page>.secondary{min-height:35px;font-size:10px;padding:6px}.screen-journal .pager{grid-column:2;grid-row:2;gap:12px;align-self:center}.screen-journal .screen-footnote{grid-column:2;grid-row:3;font-size:7px;text-align:center}
.settings-options{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;align-content:center;gap:13px}.setting-row{min-height:70px;max-height:150px;padding:13px}.setting-row b{font-size:13px}.setting-row small{font-size:8px}.settings-footer{padding-bottom:3px;max-width:450px;align-self:center;width:100%}.settings-footer>*{min-height:44px;font-size:12px}.screen-about .screen-content{display:grid;grid-template-columns:165px minmax(0,1fr);grid-template-rows:44px minmax(0,1fr) 44px;gap:12px 25px}.screen-about .screen-header{grid-column:1/-1}.screen-about .segmented{grid-column:1;grid-row:2;flex-direction:column;align-self:start;min-height:0}.screen-about .segmented button{min-height:41px;font-size:11px}.parent-copy{grid-column:2;grid-row:2/4;min-height:0;padding:0 5px;font-size:11px}.parent-copy h3{font-size:16px;margin:8px 0}.parent-copy p{margin:10px 0}.parent-copy .danger{margin-top:15px;font-size:10px;min-height:40px}.screen-about .screen-content>.primary{grid-column:1;grid-row:3;font-size:10px;min-height:40px;padding:8px}
.treasure-detail{display:grid;grid-template-columns:200px minmax(0,1fr);grid-template-rows:auto auto auto 44px;gap:10px 22px;max-width:760px;align-content:center;text-align:left;min-height:0}.treasure-detail>div{grid-column:1;grid-row:1/5;width:100%;height:100%;max-height:200px}.treasure-detail>h3{grid-column:2;font-size:16px}.treasure-detail>p{grid-column:2;font-size:11px;max-width:none;line-height:1.7}.treasure-detail>.medal-line{grid-column:2}.treasure-detail>.primary{grid-column:2;grid-row:4;min-height:43px;font-size:12px}.treasure-detail>.secondary{display:none}.pause-hero{min-height:0;max-height:none;gap:20px}.pause-hero img{height:120px;max-height:100%}.pause-hero h3{font-size:20px}.pause-actions{grid-template-columns:repeat(4,1fr);gap:10px;padding-bottom:3px}.pause-actions>*{font-size:12px;min-height:47px;gap:6px;padding:8px}.pause-actions .ui-icon{height:20px;width:20px}
.result-view{display:grid;grid-template-columns:1fr 1.1fr;grid-template-rows:auto minmax(0,1fr) 45px auto;align-items:center;justify-items:center;gap:9px 25px;padding:5px 5px 1px}.result-title{grid-column:1/-1;grid-row:1}.result-title>span{font-size:9px}.result-title h2{font-size:25px;display:inline;margin:0 13px}.clear-stars{display:inline-flex;vertical-align:middle;gap:6px}.clear-stars .ui-icon{height:25px;width:25px}.clear-stars .ui-icon:nth-child(2){height:30px;width:30px;margin-top:-4px}.result-reward{grid-column:1;grid-row:2/4;min-height:0;max-height:none;height:100%;gap:3px}.result-reward>svg{width:160px;min-height:40px;max-height:140px}.result-reward>b{font-size:15px}.result-reward>small{font-size:9px}.result-friends{grid-column:2;grid-row:2;align-self:end}.result-friends img{max-width:45px;max-height:45px}.result-record{grid-column:2;grid-row:3;align-self:center}.result-record .medal-line{gap:10px}.result-record .medal-line>span{width:28px;height:25px}.result-record .medal-line .ui-icon{width:16px;height:16px}.result-record p{font-size:9px;display:inline-block;margin:4px 6px}.result-record>small{font-size:7px;display:block}.result-actions{grid-column:1/-1;grid-row:4;display:flex;gap:12px;min-width:0;margin-top:5px}.result-actions>*{flex:1;min-height:44px;font-size:11px}.result-actions>.primary{font-size:13px}.result-actions>.secondary{min-height:44px}
.lab-layout{display:grid;grid-template-columns:minmax(0,1fr) 215px;grid-template-rows:minmax(0,1fr) 44px 44px;gap:12px 18px}.lab-body{grid-column:1;grid-row:1/4;padding:15px;min-height:0}.lab-feedback{grid-column:2;grid-row:1;min-height:0;align-self:stretch;flex-direction:column;justify-content:center;text-align:center;padding:12px;gap:8px}.lab-feedback p{font-size:11px;flex:none}.lab-feedback small{font-size:9px;margin-top:8px}.lab-actions{grid-column:2;grid-row:2;gap:7px;min-height:0}.lab-actions>.primary{font-size:11px;padding:8px;min-height:43px}.lab-actions>.primary .ui-icon{width:16px;height:16px}.lab-actions>.icon-button{height:42px;width:33px;border-radius:11px}.lab-actions>.icon-button .ui-icon{height:17px;width:17px}.lab-footer{grid-column:2;grid-row:3;min-height:0;gap:6px}.lab-footer>.secondary,.lab-footer>.primary{font-size:8px;min-height:40px;padding:7px 9px}.lab-footer>span{font-size:8px}.lab-footer>.primary .ui-icon{width:12px;height:12px}.bridge-target{padding:10px 0 17px;gap:3px}.bridge-target i{width:28px;min-width:0;height:26px;font-size:9px}.plank-row{margin-top:18px;gap:8px}.plank-row button{min-height:49px;padding:7px 10px}.plank-row span{font-size:12px}.plank-row b{font-size:9px}.lab-count{margin-top:15px;font-size:11px}.mirror-experiment{gap:18px}.mirror-experiment>div:first-child .mosaic{grid-template-columns:repeat(3,30px)}.mirror-experiment>div:first-child .mosaic>*{height:36px;width:30px}.mirror-line{height:158px}.path-experiment{flex-direction:row;gap:18px}.path-board{grid-template-columns:repeat(5,34px);gap:3px}.path-cell{height:34px}.path-cell img{height:32px;width:32px}.program{max-width:210px;min-width:100px}.program-tape{min-height:63px;font-size:17px;letter-spacing:1px;padding:7px 9px}.arrow-pad{grid-template-columns:repeat(2,1fr);gap:7px;margin-top:12px}.arrow-pad button{height:42px}
}
@media(orientation:portrait) and (max-width:360px){
.screen-content{gap:8px}.screen-header{min-height:43px;gap:8px}.screen-header h2{font-size:16px}.screen-header p{font-size:9px}.screen-home .screen-content{padding-bottom:13px}.home-header{min-height:45px}.home-header .icon-button{height:40px;width:40px}.player-chip img{height:40px;width:40px}.player-chip b{font-size:13px}.progress-chip{padding:6px 9px}.game-logo{padding-top:3px}.game-logo>span{font-size:13px}.game-logo h2{font-size:30px;margin:3px 0}.game-logo p{font-size:8px;margin-top:8px}.launch-button{min-height:56px}.launch-button>span{font-size:21px}.launch-button small{font-size:8px}.home-view{gap:9px}.hero-figure img{height:112px}.floating-feature .ui-icon{height:33px;width:33px;padding:5px}.floating-feature span{font-size:8px}.feature-book{left:-4px;top:23%}.feature-treasure{right:-4px;top:35%}.world-selector{min-height:52px}.world-name b{font-size:14px}.world-name small{font-size:7px}.destination-course{min-height:31px;padding:5px 8px}.destination-course>span,.destination-course>b{font-size:8px}.game-dock{height:calc(65px + var(--safe-b));padding-top:4px}.game-dock button{min-height:50px}.game-dock button>span{height:24px}.game-dock .ui-icon{width:24px;height:24px}.game-dock b{font-size:8px}.game-dock button[data-action=home]>span{height:36px;width:43px;margin-top:-14px}.hub-screen .screen-content{height:calc(100% - 65px - var(--safe-b))}
.course-nodes{gap:7px 9px;padding:4px 0}.course-node{gap:5px;padding:2px;border-radius:12px}.node-emblem{width:39px;height:40px;border-radius:14px;border-width:2px}.node-emblem>b{font-size:20px}.node-emblem .ui-icon{width:21px;height:21px}.node-label>b{font-size:9px}.node-label small{font-size:7px}.course-preview{padding:7px;gap:7px;min-height:79px}.course-preview-art{width:39px;height:43px}.course-preview-text h3{font-size:9px}.course-preview-text>small{font-size:7px}.medal-line{gap:4px}.medal-line>span{width:21px;height:20px}.medal-line .ui-icon{width:12px;height:12px}.course-preview .primary{min-width:49px;padding:5px 8px;min-height:53px}.screen-footnote{font-size:8px;min-height:12px}.world-grid{gap:8px}.world-grid>button{gap:6px;padding:6px}.world-grid>button>span{width:36px;height:35px}.world-grid b{font-size:9px;margin-top:4px}.world-grid small{font-size:6px}.world-grid .ui-icon{width:10px;height:10px}
.loadout{gap:9px}.selected-friend{min-height:62px;max-height:78px;gap:10px}.selected-friend img{height:79px}.selected-friend h3{font-size:21px}.selected-friend p,.selected-friend small{font-size:8px}.character-grid{gap:7px}.character-card{min-height:62px;padding:2px;border-radius:11px}.character-card img{height:45px;width:45px}.character-card b{font-size:8px;margin-bottom:3px}.badge-loadout>h3{font-size:10px;margin-bottom:6px}.badge-grid{gap:6px}.badge-card{min-height:62px;padding:3px}.badge-card>svg{width:47px;height:34px}.badge-card>b{font-size:8px}.badge-description{font-size:8px;margin-top:6px;min-height:13px}.loadout-done{font-size:12px;min-height:43px}.segmented{min-height:43px;border-radius:12px}.segmented button{min-height:33px;font-size:10px}.segmented .ui-icon{width:16px;height:16px}.atelier-intro{min-height:47px}.atelier-intro h3{font-size:17px}.atelier-intro p{font-size:8px}.atelier-intro>span .ui-icon{width:34px;height:34px}.workshop-grid{gap:9px;min-height:135px}.workshop-grid b{font-size:29px}.workshop-grid small{font-size:6px}.workshop-summary{font-size:10px;min-height:35px}.workshop-summary b{font-size:13px}
.album-grid{gap:8px}.souvenir{padding:4px;gap:3px;border-radius:12px}.souvenir>b{font-size:8px}.souvenir>small{font-size:7px}.collection-garden{min-height:40px;font-size:12px}.pager{gap:17px;min-height:40px}.pager .icon-button{width:40px;height:37px;border-radius:11px}.pager>span{font-size:17px}.garden-scene{padding:22px 9px 0;min-height:120px;border-radius:16px}.garden-plots{gap:3px}.garden-friends{min-height:27px}.garden-friends img{max-height:36px}.garden-workbench{gap:6px}.tray-heading{min-height:33px}.tray-heading p{font-size:8px}.erase-pick{width:35px;height:33px}.treasure-tray{min-height:64px;gap:6px}.treasure-pick{min-height:64px;border-radius:10px}.treasure-pick>svg{height:38px}.treasure-pick>span{font-size:7px}.garden-bottom{gap:6px}.garden-bottom .pager{gap:7px}.garden-bottom>.secondary{font-size:8px;min-height:37px;padding:6px 7px}.garden-bottom>.secondary .ui-icon{width:13px;height:13px}
.discovery-page{padding:12px;border-radius:15px}.discovery-page>h3{font-size:17px;margin:4px 0 6px}.discovery-page>b{font-size:10px}.discovery-stats{margin:9px 0;gap:14px}.discovery-stats b{font-size:17px}.discovery-stats small{font-size:8px}.family-question{padding:8px;margin:7px 0 10px}.family-question p{font-size:11px;line-height:1.6;margin-top:3px}.family-question small{font-size:8px}.discovery-page>.secondary{min-height:37px;font-size:10px}.journal-hero{min-height:36px;max-height:110px}.settings-options{gap:10px}.setting-row{min-height:66px;padding:11px}.setting-row b{font-size:13px}.setting-row small{font-size:8px}.settings-footer>*{font-size:12px;padding:9px;min-height:43px}.parent-copy{font-size:11px;padding:5px;line-height:1.8}.parent-copy h3{font-size:16px}.treasure-detail{gap:13px}.treasure-detail>div{height:110px;width:145px}.treasure-detail h3{font-size:15px}.treasure-detail p{font-size:11px}.pause-hero{gap:12px}.pause-hero img{height:105px}.pause-hero h3{font-size:16px}.pause-actions{gap:11px}.pause-actions>*{min-height:50px;font-size:12px}
.result-view{gap:9px}.result-title h2{font-size:25px;margin:4px 0 9px}.clear-stars .ui-icon{width:29px;height:29px}.clear-stars .ui-icon:nth-child(2){height:34px;width:34px}.result-reward{min-height:74px;max-height:154px}.result-reward>svg{width:130px;max-height:90px}.result-reward>b{font-size:14px}.result-reward>small{font-size:8px}.result-friends img{max-height:37px;max-width:37px}.result-record p{font-size:10px;margin:7px 0}.result-record>small{font-size:8px}.result-record .medal-line>span{width:29px;height:26px}.result-record .medal-line .ui-icon{width:16px;height:16px}.result-actions{gap:8px}.result-actions>.primary{min-height:43px;font-size:12px}.result-actions>.secondary{min-height:39px;font-size:9px;padding:8px}
.lab-layout{gap:9px}.lab-body{padding:12px 9px;border-radius:16px}.lab-feedback{min-height:44px;padding:8px;gap:8px}.lab-feedback p{font-size:10px;line-height:1.5}.lab-feedback small{font-size:8px;line-height:1.4}.lab-feedback>span .ui-icon{width:18px;height:18px}.lab-actions{gap:7px;min-height:44px}.lab-actions>.primary{font-size:12px;min-height:44px;padding:7px}.lab-actions>.icon-button{height:44px;width:42px;border-radius:12px}.lab-footer{min-height:41px}.lab-footer .primary,.lab-footer .secondary{font-size:10px;min-height:39px;padding:7px 10px}.lab-footer>span{font-size:9px}.bridge-target{gap:2px;padding:9px 0 16px}.bridge-target i{height:24px;font-size:8px}.plank-row{margin-top:16px;gap:6px}.plank-row button{padding:6px 8px;min-height:48px}.plank-row span{font-size:11px}.plank-row b{font-size:9px;margin-top:3px}.lab-count{font-size:10px;margin-top:14px}.mirror-experiment{gap:5px}.mirror-experiment>div>b{font-size:9px;margin-bottom:9px}.mirror-experiment>div:first-child .mosaic{grid-template-columns:repeat(3,19px)}.mirror-experiment>div:first-child .mosaic>*{width:19px;height:26px}.mosaic{gap:3px}.mirror-line{padding-left:2px;font-size:8px;height:145px}.path-experiment{gap:10px}.path-board{grid-template-columns:repeat(5,31px);gap:3px}.path-cell{height:29px;border-radius:5px;font-size:18px}.path-cell img{height:28px;width:28px}.program-tape{font-size:15px;letter-spacing:1px;line-height:1.4;min-height:39px;padding:5px 8px}.arrow-pad{gap:6px;margin-top:8px}.arrow-pad button{height:44px;font-size:22px}
}
@media(orientation:portrait) and (min-width:361px) and (max-height:720px){.screen-content{gap:8px}.game-logo h2{font-size:31px}.home-header{min-height:47px}.home-stage{min-height:90px}.hero-figure img{height:130px}.selected-friend{max-height:100px}.selected-friend img{height:95px}.character-card{min-height:68px}.character-card img{height:48px;width:48px}.badge-card{min-height:65px}.badge-card>svg{height:35px}.lab-layout{gap:9px}.path-board{grid-template-columns:repeat(5,34px)}.path-cell{height:32px}.program-tape{min-height:42px;font-size:17px}.path-experiment{gap:10px}.arrow-pad{margin-top:8px}.lab-feedback{padding:8px}.lab-feedback p{font-size:10px}}
@media(orientation:landscape) and (max-height:390px){
.screen-content{gap:7px}.home-view{gap:10px 16px}.game-logo h2{font-size:27px}.game-logo p{font-size:8px}.game-logo>span{font-size:10px}.home-header{min-height:42px}.home-stage .hero-figure img{height:118px}.home-destination .world-selector{min-height:43px}.world-name b{font-size:13px}.world-name small{font-size:6px}.destination-course{min-height:27px}.launch-button{min-height:49px}.launch-button>span{font-size:19px}.screen-map .screen-content{grid-template-columns:minmax(0,1fr) 204px;grid-template-rows:41px 44px minmax(0,1fr) 16px;gap:7px 12px}.screen-header{min-height:41px}.screen-header h2{font-size:16px}.screen-header p{font-size:8px}.course-preview{padding:9px;gap:7px}.course-preview-art{height:46px}.course-preview-text h3{font-size:10px}.node-emblem{width:34px;height:34px;border-radius:12px}.node-emblem>b{font-size:17px}.node-label>b{font-size:8px}.node-label small{font-size:6px}.course-node{gap:5px;padding:1px}.course-nodes{gap:3px 13px}.loadout{gap:8px 14px;grid-template-rows:minmax(0,.65fr) minmax(0,1fr) 41px}.selected-friend img{height:78px}.selected-friend h3{font-size:20px}.character-grid{gap:6px}.character-card img{height:36px}.character-card b{font-size:7px}.badge-card{min-height:65px}.badge-card>svg{height:35px;width:48px}.badge-card>b{font-size:7px}.badge-description{font-size:8px;min-height:28px}.loadout-done{min-height:40px;font-size:11px}.screen-atelier .screen-content{grid-template-columns:180px minmax(0,1fr);gap:10px 16px;grid-template-rows:41px minmax(0,1fr) 27px}.workshop-grid{gap:8px}.workshop-grid b{font-size:26px}.workshop-grid small{font-size:6px}.screen-atelier .segmented button{min-height:38px;font-size:10px}.screen-album .screen-content{grid-template-columns:minmax(0,1fr) 170px;grid-template-rows:41px minmax(0,1fr) 45px}.souvenir>span{width:33px}.souvenir>b{font-size:8px}.souvenir>small{font-size:6px}.screen-garden .screen-content{grid-template-columns:minmax(0,1fr) 205px;grid-template-rows:41px minmax(0,1fr);gap:9px 13px}.garden-scene{padding-top:21px}.garden-workbench{gap:6px}.garden-friends{max-height:30px}.garden-friends img{max-height:30px}.treasure-pick>span{font-size:7px}.tray-heading p{font-size:8px}.garden-bottom>.secondary{min-height:31px;font-size:8px}.garden-bottom .pager .icon-button{height:28px;width:31px}.screen-journal .screen-content{grid-template-columns:minmax(0,1fr) 150px;gap:7px 15px}.journal-view{grid-template-columns:73px minmax(0,1fr);gap:7px}.discovery-page{padding:10px}.discovery-page>h3{font-size:15px}.discovery-page>b{font-size:8px}.discovery-stats{margin:6px 0;gap:9px}.discovery-stats b{font-size:15px}.discovery-stats small{font-size:7px}.discovery-stats .ui-icon{width:16px;height:16px}.family-question{padding:6px;margin:4px 0 7px}.family-question p{font-size:9px;line-height:1.5}.family-question small{font-size:7px}.discovery-page>.secondary{min-height:30px;font-size:9px}.settings-options{gap:10px}.setting-row{padding:11px;min-height:64px}.setting-row b{font-size:12px}.setting-row small{font-size:8px}.settings-footer>*{min-height:41px;font-size:11px}.pause-hero img{height:100px}.pause-hero h3{font-size:18px}.pause-actions{gap:9px}.pause-actions>*{font-size:11px;min-height:44px}.pause-actions .ui-icon{width:18px;height:18px}.result-title h2{font-size:23px}.result-title>span{font-size:8px}.result-reward>svg{max-height:104px;width:140px}.result-reward>b{font-size:13px}.result-reward>small{font-size:8px}.result-friends img{max-width:39px;max-height:39px}.result-view{gap:8px 18px}.lab-layout{grid-template-columns:minmax(0,1fr) 200px;gap:10px 14px;grid-template-rows:minmax(0,1fr) 41px 39px}.lab-actions>.primary{min-height:40px;font-size:10px;padding:6px}.lab-actions>.icon-button{height:39px;width:31px}.lab-actions{gap:6px}.lab-footer>.secondary,.lab-footer>.primary{min-height:37px;font-size:8px;padding:6px}.lab-feedback p{font-size:10px}.lab-feedback small{font-size:8px}.lab-body{padding:12px}.path-experiment{gap:14px}.path-board{grid-template-columns:repeat(5,30px)}.path-cell{height:30px}.path-cell img{width:29px;height:29px}.program-tape{font-size:15px;min-height:56px}.arrow-pad{gap:6px;margin-top:10px}.arrow-pad button{height:38px}.plank-row{gap:7px;margin-top:14px}.plank-row button{min-height:45px;padding:6px 8px}.lab-count{font-size:10px;margin-top:11px}
}
.lesson-layout{display:flex;flex-direction:column;flex:1;min-height:0;gap:12px}.lesson-board{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#3b6265;border:2px solid #adc0ac;border-radius:22px;background:linear-gradient(#eff0d9,#cedfc3);box-shadow:inset 0 3px #fff8e6,0 4px #0a2b44;padding:16px 12px;overflow:hidden}.math-goal{text-align:center;flex-shrink:0}.math-goal>b{display:block;font-size:15px;line-height:1.5}.math-goal>span{display:block;font-size:10px;color:#7a927d;line-height:1.6;margin-top:4px}.ten-frame{display:grid;grid-template-columns:repeat(5,36px);gap:7px;background:#a3b9a144;border:2px solid #92ac9666;border-radius:13px;padding:10px}.math-unit{display:block;width:35px;height:29px;background:linear-gradient(#efcd87 0 15%,#deb36c 15% 65%,#bb955c 65%);border:2px solid #a4824d;border-radius:4px;box-shadow:inset 0 2px #fae9b2,0 2px #8d815133}.math-unit.added{background:linear-gradient(#8bc9c9 0 15%,#64aaa9 15% 65%,#4b8c8f 65%);border-color:#4f8b8b;box-shadow:inset 0 2px #b5e1d1,0 2px #527f7133}.math-unit.empty{background:#c5d4bb;border:1px dashed #8fa98e;box-shadow:inset 0 1px #a7bba266}.math-equation{font-size:23px;color:#6e896b;display:flex;align-items:center;gap:9px}.math-equation b{color:#397d82}.math-equation small{font-size:10px;color:#889974;margin-left:5px}.number-counter{display:flex;align-items:center;justify-content:center;gap:15px;flex-shrink:0}.number-counter button{width:48px;height:46px;border:2px solid #6d9991;border-radius:13px;background:linear-gradient(#fbf5d9,#d8e1bf);color:#4e8679;box-shadow:inset 0 2px #fffef0,0 3px #9bb294;font-size:25px}.number-counter>span{min-width:77px;display:flex;align-items:center;justify-content:center;gap:7px;position:relative;padding-top:13px}.number-counter small{font-size:10px;color:#7e987b}.number-counter small:first-child{position:absolute;top:0;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:9px}.number-counter b{font-size:31px;line-height:1.2;color:#467f78}.lesson-explanation{display:flex;flex-wrap:wrap;gap:9px;align-items:center;flex-shrink:0}.lesson-friend{display:none}.lesson-feedback{width:100%;margin:0;border:1px solid #608595;border-radius:12px;background:#284d66;color:#d4e6df;font-size:12px;line-height:1.7;padding:9px 11px;min-height:41px}.lesson-feedback.success{background:#4e7b68;border-color:#a5c58d;color:#f4f3cd}.lesson-reason{width:100%;font-size:11px;line-height:1.7;margin:0;padding:2px 4px;color:#d9d7ae}.lesson-tools{display:flex;gap:8px;order:3}.lesson-tools .icon-button{height:46px;width:44px}.lesson-apply{flex:1;order:2;min-height:46px}.lesson-explanation>.secondary{display:none}.subtract-pieces{display:grid;grid-template-columns:repeat(5,44px);gap:6px}.subtract-pieces>button{display:grid;place-items:center;width:44px;height:44px;background:transparent;padding:0;border:1px solid #99b09866;border-radius:8px}.math-unit.delivered{opacity:.25;background:#829f93;border-color:#73948a;box-shadow:none}.delivery-tray{display:flex;align-items:center;gap:7px;color:#839c81;font-size:10px}.delivery-tray .ui-icon{height:18px;width:18px}.pair-board{display:grid;grid-template-columns:1fr 1fr;width:190px;gap:3px 25px;flex-shrink:1}.pair-board>span{text-align:center;font-size:10px;color:#6a8d7a;margin-bottom:4px}.pair-row{grid-column:1/-1;display:grid;grid-template-columns:1fr 35px 1fr;align-items:center;gap:8px;height:18px}.pair-row>span{display:flex;justify-content:center}.pair-row .math-unit{height:16px;width:23px;border-width:1px;border-radius:3px;box-shadow:none}.pair-row>i{height:2px;width:100%;background:transparent}.pair-row.matched>i{background:#6aa79a}.pair-row.matched>span{opacity:.5}.pair-button{display:flex;align-items:center;justify-content:center;gap:8px;background:#d7e5c6;border:1px solid #87a98c;color:#4e8070;border-radius:10px;padding:9px 14px;min-height:41px;font-size:11px;box-shadow:0 2px #a3b993;flex-shrink:0}.pair-button .ui-icon{height:17px;width:17px}.pair-button small{font-size:9px;color:#84a080}.math-choices{display:flex;gap:8px;justify-content:center;flex-shrink:0}.math-choices button{min-height:44px;min-width:73px;padding:8px;font-size:11px;background:#f5e7b8;border:2px solid #c4ab73;color:#7d6b44;border-radius:12px;box-shadow:0 3px #b79d6b}.math-choices button[aria-pressed=true]{background:#b7d7b7;border-color:#679580;color:#3d7e70;box-shadow:inset 0 2px #dce9be,0 3px #6e9776}.pattern-groups{display:flex;justify-content:center;align-items:center;gap:13px;flex-shrink:0}.pattern-groups>div{display:flex;gap:5px;border-bottom:3px solid #93b4a0;padding:9px 2px 11px;position:relative}.pattern-groups>div:not(:last-child)::after{content:'group';position:absolute;bottom:-18px;left:50%;transform:translateX(-50%);font-size:8px;color:#93a388;white-space:nowrap}.pattern-groups span{font-size:25px;line-height:1.2}.pattern-groups .next-shape{height:51px;min-width:38px;display:grid;place-items:center;background:#f7f2d9;border:2px dashed #a0bba3;border-radius:8px;font-size:27px;color:#6d9b8a}.shape-0{color:#cb955b}.shape-1{color:#56979b}.shape-2{color:#9b84ad}.pattern-loop{display:flex;align-items:center;gap:7px;margin:15px 0 5px;color:#8c9d7e;font-size:10px}.pattern-loop .ui-icon{width:17px;height:17px}.shape-choices button{font-size:26px;width:64px;min-width:64px}.number-sequence{display:flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;margin-bottom:15px}.number-sequence>span,.number-sequence>b{position:relative;display:grid;place-items:center;width:45px;height:45px;border:2px solid #a1b89f;background:#f4efd7;border-radius:10px;font-size:23px;color:#5a8c7f}.number-sequence>span>small{position:absolute;bottom:-18px;right:-17px;font-size:9px;line-height:1.3;color:#a28f5e}.number-sequence>b{border-color:#c0a86e;background:#f5dea2;color:#866f39}.number-jump{display:flex;align-items:center;gap:7px;font-size:17px;color:#4e8e7d;flex-shrink:0}.number-jump i{font-style:normal;font-size:9px;color:#91a274;border:1px solid #a7bd96;border-radius:50%;padding:6px}.direction-board{position:relative;width:170px;height:170px;border:2px solid #a9bea6;border-radius:50%;background:radial-gradient(#f5f0d4,#d7e5c3);flex-shrink:1;min-height:110px}.direction-board>span{position:absolute;font-size:16px;color:#9aab8f}.north{top:5px;left:50%;transform:translateX(-50%)}.east{right:9px;top:50%;transform:translateY(-50%)}.south{bottom:5px;left:50%;transform:translateX(-50%)}.west{left:9px;top:50%;transform:translateY(-50%)}.turn-arrow{position:absolute;inset:23%;display:grid;place-items:center;font-size:73px;line-height:1;color:#4b8f86;text-shadow:0 3px #c5d4af;transition:transform .25s}.turn-controls{display:flex;gap:12px;flex-shrink:0}.turn-controls button{min-height:44px;min-width:100px;border:2px solid #9bb38e;background:#e4e8c6;color:#618974;border-radius:12px;font-size:12px;box-shadow:0 3px #a0b595}.turn-note{margin:0;font-size:10px;color:#8a9c7d}
@media(orientation:portrait) and (max-height:650px){.lesson-board{padding:12px 9px;gap:10px}.math-goal>b{font-size:12px}.math-goal>span{font-size:9px;margin-top:3px}.math-unit{width:30px;height:26px}.ten-frame{grid-template-columns:repeat(5,30px);gap:6px;padding:8px}.math-equation{font-size:20px}.number-counter button{height:44px;width:45px}.number-counter b{font-size:27px}.number-counter small:first-child{font-size:8px}.lesson-explanation{gap:7px}.lesson-feedback{font-size:10px;padding:8px;min-height:35px}.lesson-reason{font-size:9px;line-height:1.6}.lesson-tools .icon-button{height:44px;width:41px}.lesson-apply{min-height:44px;font-size:12px;padding:8px}.subtract-pieces{grid-template-columns:repeat(5,40px);gap:4px}.subtract-pieces>button{height:40px;width:40px}.delivery-tray{font-size:9px}.pair-board{width:165px;gap:2px 20px}.pair-row{height:15px}.pair-row .math-unit{width:21px;height:14px}.pair-board>span{font-size:8px}.pair-button{min-height:36px;padding:7px 10px;font-size:10px}.math-choices{gap:6px}.math-choices button{min-height:42px;min-width:67px;font-size:10px}.pattern-groups{gap:9px}.pattern-groups span{font-size:22px}.pattern-groups>div{gap:3px}.shape-choices button{font-size:24px;min-width:58px;width:58px}.direction-board{height:140px;width:140px}.turn-arrow{font-size:61px}.turn-controls button{font-size:10px;min-width:91px}.turn-note{font-size:9px}.number-sequence{gap:9px;margin-bottom:13px}.number-sequence>span,.number-sequence>b{height:39px;width:39px;font-size:21px}.number-sequence>span>small{font-size:8px;right:-13px}.number-jump{gap:5px;font-size:15px}.number-jump i{padding:5px;font-size:8px}}
@media(orientation:landscape){.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:18px}.lesson-board{padding:13px;gap:12px}.lesson-explanation{flex-direction:column;flex-wrap:nowrap;justify-content:center;gap:9px;min-height:0}.lesson-friend{display:flex;align-items:center;justify-content:center;gap:8px;min-height:35px;flex-shrink:0}.lesson-friend img{height:40px;width:40px;object-fit:contain}.lesson-friend span{font-size:10px;color:#c1d5d3}.lesson-feedback{font-size:11px;line-height:1.65;min-height:34px;padding:8px}.lesson-reason{font-size:10px;line-height:1.6}.lesson-tools{order:2}.lesson-tools .icon-button{height:36px;width:39px}.lesson-apply{order:3;flex:none;width:100%;min-height:43px;font-size:13px}.math-goal>b{font-size:13px}.math-goal>span{font-size:9px}.ten-frame{grid-template-columns:repeat(5,30px);gap:5px;padding:8px}.math-unit{width:30px;height:25px}.math-equation{font-size:21px}.number-counter button{height:42px;width:45px}.number-counter b{font-size:27px}.subtract-pieces{grid-template-columns:repeat(5,40px);gap:4px}.subtract-pieces>button{height:40px;width:40px}.direction-board{height:142px;width:142px;min-height:90px}.turn-arrow{font-size:61px}.turn-controls button{min-height:40px;font-size:11px}.pair-board{width:160px;gap:2px}.pair-row{height:13px;grid-template-columns:1fr 30px 1fr}.pair-row .math-unit{height:12px;width:21px}.kind-compare .lesson-board{gap:8px}.pair-button{min-height:36px;padding:7px 10px}.math-choices button{min-height:39px;font-size:10px}.number-sequence>span,.number-sequence>b{height:39px;width:39px;font-size:21px}.number-jump i{padding:4px;font-size:8px}}
.course-learning{display:flex;align-items:center;gap:4px;margin:3px 0 6px;font-size:8px;line-height:1.5;color:#5c8174}.course-learning .ui-icon{width:12px;height:12px;flex-shrink:0}.route-scenery{overflow:hidden}
@media(orientation:landscape) and (max-width:700px){.home-view{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 13px}.game-logo h2{font-size:24px}.home-stage .hero-figure img{height:105px}.floating-feature span{font-size:7px}.home-stage .feature-treasure{right:0}.screen-map .screen-content{grid-template-columns:minmax(0,1fr) 168px;column-gap:9px}.node-label>b{font-size:7px}.node-label small{font-size:6px}.node-emblem{width:30px;height:32px}.course-nodes{column-gap:5px}.course-preview-art{height:38px}.course-preview-text h3{font-size:9px}.course-learning{font-size:7px}.screen-map .screen-footnote{font-size:6px}.lesson-layout{grid-template-columns:minmax(0,1fr) 190px;gap:12px}.lesson-board{gap:8px;padding:10px}.lesson-friend{display:none}.lesson-feedback{font-size:10px}.lesson-reason{font-size:9px}.kind-compare .lesson-board{gap:5px}.pair-row{height:10px}.pair-row .math-unit{height:9px}.pair-board>span{margin-bottom:2px}.math-goal>span{margin-top:2px}.math-goal>b{font-size:12px}.math-goal>span{font-size:8px}.math-choices button{min-width:66px;font-size:9px}.kind-subtract .lesson-board{gap:6px}.subtract-pieces>button{height:34px;width:38px}.subtract-pieces{grid-template-columns:repeat(5,38px);gap:3px}.delivery-tray{font-size:9px}.number-counter button{height:40px}.kind-sequence .number-sequence{margin-bottom:12px}.kind-sequence .number-jump{gap:4px}.kind-sequence .number-jump i{font-size:7px}.kind-turn .turn-controls{gap:7px}.kind-turn .turn-controls button{min-width:91px;font-size:10px}.kind-turn .direction-board{height:125px;width:125px}.kind-turn .turn-note{font-size:9px}}
.route-scenery{inset:0}

/* 2026-10-19 layout audit: touch targets stay usable when the viewport rotates. */
#panel button{min-width:48px;min-height:48px}
#panel .screen-header{min-height:48px}
#panel .screen-header .icon-button,#panel .icon-button{width:48px;height:48px}
#panel .world-selector{min-height:56px}
#panel .world-selector>.icon-button{width:48px;height:48px}
#panel .world-name,#panel .player-chip,#panel .destination-course{min-height:48px}
#panel .segmented{min-height:58px}
#panel .game-dock button{min-width:0;min-height:48px}
#panel .garden-plot{min-height:48px}
#panel .setting-row{min-height:64px}
#panel .number-counter button{width:48px;height:48px}
#panel .subtract-pieces{grid-template-columns:repeat(5,48px);gap:4px}
#panel .subtract-pieces>button{width:48px;height:48px}
#panel .mosaic:has(button){grid-template-columns:repeat(3,48px)}
#panel .mosaic button{width:48px;height:48px}
#panel .lesson-tools .icon-button{width:48px;height:48px}
#panel .lab-actions{gap:8px;min-height:48px}
#panel .lab-actions>.icon-button{width:48px;height:48px}
#panel .lab-footer{min-height:48px}
@media(orientation:landscape){
  .screen-map .screen-content{grid-template-rows:48px 56px minmax(0,1fr) 18px}
  .screen-atelier .screen-content{grid-template-rows:48px minmax(0,1fr) 27px;grid-template-columns:156px minmax(0,1fr)}
  .screen-album .screen-content{grid-template-rows:48px minmax(0,1fr) 48px}
  .screen-garden .screen-content{grid-template-rows:48px minmax(0,1fr);grid-template-columns:minmax(0,1fr) 176px;gap:8px 10px}
  .garden-scene{padding:18px 7px 0}.garden-plots{gap:3px 4px}
  .garden-workbench{gap:5px}.garden-bottom{gap:4px}.garden-bottom .pager{gap:8px}
  .garden-bottom>.secondary{padding:4px 7px;font-size:10px}
  .garden-friends{min-height:24px;max-height:28px}.garden-friends img{max-height:28px}
  #panel .lab-layout{grid-template-rows:minmax(0,1fr) 48px 48px;gap:8px 14px}
  .lab-body{padding:10px}.lab-layout.kind-path .lab-body{padding:8px}
  .lab-feedback{padding:8px;min-height:0}.lab-feedback p{font-size:11px;line-height:1.5}
  .lab-layout.kind-path .path-experiment{gap:10px}
  .lab-layout.kind-path .program-tape{font-size:14px;line-height:1.4;min-height:44px}
  .lab-layout.kind-path .arrow-pad{margin-top:8px;gap:5px}
  #panel .lab-layout.kind-path .arrow-pad button{font-size:23px}
  .lesson-explanation{gap:8px}.lesson-friend{display:none}
  .kind-subtract .lesson-board{gap:6px}.kind-subtract .delivery-tray{font-size:9px}
}
@media(orientation:landscape) and (max-width:700px){
  .screen-album .screen-content{grid-template-columns:minmax(0,1fr) 126px;gap:8px}
  .screen-garden .screen-content{grid-template-columns:minmax(0,1fr) 162px}
  .garden-scene{padding:16px 5px 0}.garden-plots{gap:3px}
  #panel .garden-bottom .pager{gap:4px}
  .lab-layout{grid-template-columns:minmax(0,1fr) 184px}
  #panel .lab-actions{flex-wrap:wrap;justify-content:center;gap:5px}
  .lab-actions>.primary{flex-basis:100%}
  #panel .lab-layout{grid-template-rows:minmax(0,1fr) 103px 48px}
  .lab-feedback p{font-size:10px}.lab-feedback small{font-size:9px}
  .lesson-layout{grid-template-columns:minmax(0,1fr) 175px;gap:10px}
  .lesson-board{padding:8px;gap:7px}.lesson-feedback{font-size:11px}
  .lesson-reason{font-size:10px}.math-goal>span{font-size:9px}
  .kind-subtract .math-goal>span{display:none}
  .kind-subtract .lesson-board{gap:4px}
}
@media(orientation:portrait) and (max-height:650px){
  .screen-content{gap:7px}
  .home-header{min-height:48px}.screen-home .screen-content{padding-bottom:12px}
  .game-logo{padding-top:0}.game-logo h2{font-size:27px}.game-logo p{margin:5px 0 0}
  .home-view{gap:7px}.home-stage{min-height:65px}.hero-figure img{height:94px}
  .home-destination .world-selector{min-height:54px}.launch-button{min-height:52px}
  .character-grid{gap:5px}.character-card{min-height:65px}.character-card img{height:44px;width:44px}
  .selected-friend{min-height:52px;max-height:62px}.selected-friend img{height:62px}
  .loadout{gap:7px}.badge-card{min-height:60px}.badge-card>svg{height:31px}
  .badge-description{margin-top:5px}.badge-loadout>h3{margin-bottom:5px}
  .garden-scene{padding:18px 7px 0}.garden-plots{gap:3px}.garden-friends{max-height:28px;min-height:25px}
  .garden-workbench{gap:5px}.treasure-tray{min-height:59px}.treasure-pick{min-height:59px}.treasure-pick>svg{height:32px}
  .garden-bottom{gap:6px}.garden-bottom .pager{gap:8px}
  .lesson-board{gap:8px;padding:9px}.math-goal>span{font-size:9px}
  .kind-subtract .lesson-board{gap:6px}
  .lab-layout{gap:8px}.lab-feedback p{font-size:11px}.lab-feedback small{font-size:9px}
  .lab-body{padding:10px}.mirror-experiment{gap:4px}.mirror-line{font-size:8px;padding-left:2px}
}
@media(orientation:landscape){
  #panel .lab-layout{grid-template-rows:minmax(0,1fr) 48px 48px}
  #panel .lab-body{grid-row:1/3}
  #panel .lab-feedback{grid-column:2;grid-row:1}
  #panel .lab-footer{grid-column:2;grid-row:2}
  #panel .lab-actions{grid-column:1/-1;grid-row:3;flex-wrap:nowrap}
  #panel .lab-actions>.primary{flex:1;flex-basis:auto}
}
@media(orientation:landscape) and (max-width:700px){
  .mirror-experiment>div:first-child .mosaic{grid-template-columns:repeat(3,22px)}
  .mirror-experiment>div:first-child .mosaic>*{width:22px;height:29px}
  .mirror-experiment{gap:4px}.mirror-line{font-size:8px;padding-left:2px}
  .lab-layout.kind-path .path-board{grid-template-columns:repeat(5,28px);gap:2px}
  .lab-layout.kind-path .path-cell{height:28px}
  .lab-layout.kind-path .path-cell img{width:27px;height:27px}
}
@media(orientation:landscape), (max-height:650px){
  .kind-subtract .lesson-board{display:grid;grid-template-columns:minmax(70px,1fr) auto;grid-template-rows:auto auto auto;align-content:center;justify-items:center;gap:6px}
  .kind-subtract .lesson-board>.math-goal:first-child{grid-column:1/-1}
  .kind-subtract .subtract-pieces{grid-column:1/-1}
  .kind-subtract .delivery-tray{grid-column:1;grid-row:3}
  .kind-subtract .math-goal:nth-child(4){display:none}
  .kind-subtract .number-counter{grid-column:2;grid-row:3;gap:6px}
  .kind-subtract .number-counter>span{min-width:45px}
  .kind-compare .pair-row{height:10px}
  .kind-compare .pair-row .math-unit{height:9px}
}
.hero-aura,.friend-halo,.reward-rays,.garden-cloud{pointer-events:none}
.home-stage>.island-art{overflow:hidden}
#panel .pager{gap:6px;width:100%}#panel .pager>span{min-width:40px}
#panel .garden-bottom .pager{gap:4px}
@media(orientation:landscape){#panel .loadout{grid-template-rows:minmax(0,.65fr) minmax(0,1fr) 48px}}
@media(orientation:landscape) and (max-width:700px){
  .screen-album .screen-content{grid-template-columns:minmax(0,1fr) 152px}
  .game-logo h2{font-size:20px;letter-spacing:.02em;white-space:nowrap}
  .home-destination .world-name{padding:0}.home-destination .world-name b{font-size:11px}
}
/* Query usable content space, so safe-area padding also triggers the compact layout. */
.screen-content{container-type:size;container-name:game-screen}
@media(orientation:portrait){
 @container game-screen (max-height:430px){
  .home-view{gap:6px}.game-logo h2{font-size:24px}.game-logo p{display:none}
  .home-stage{min-height:86px}.hero-figure{bottom:5%}.hero-figure img{height:60px}
  .hero-figure>span{font-size:9px;padding:2px 11px}
  .home-stage .floating-feature{top:8%;min-height:55px}
  .garden-scene{padding:12px 5px 0;min-height:182px}
  .garden-plots{grid-template-rows:repeat(3,minmax(48px,1fr));gap:3px}
  .garden-friends{min-height:16px;max-height:16px;padding-top:0}.garden-friends img{max-height:16px}
  .journal-hero{display:none}
 }
}
@media(orientation:landscape){
  .home-stage .hero-figure img{height:118px}.hero-figure{bottom:25%}
  .home-stage .feature-book{top:24%}.home-stage .feature-treasure{top:46%}
  .garden-scene{min-height:0}.garden-friends{min-height:24px;max-height:28px}.garden-friends img{max-height:28px}
  .journal-hero{display:block}
}
@media(orientation:portrait){
 @container game-screen (max-height:430px){
  .settings-options{gap:6px}.setting-row{padding:10px 12px}.setting-row b{font-size:12px}.setting-row small{font-size:9px}
 }
}
@media(orientation:landscape) and (max-width:700px){
  .home-stage .hero-figure img{height:76px}
  .screen-journal .journal-hero{display:none}.journal-view{grid-template-columns:minmax(0,1fr)}
}
@media(orientation:landscape) and (max-width:700px){
  .bridge-experiment .plank-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:10px}
  .bridge-experiment .plank-row button{padding:5px 2px}.bridge-experiment .plank-row span{font-size:7px;letter-spacing:0}.bridge-experiment .plank-row b{font-size:9px}
  .bridge-experiment .lab-count{margin-top:8px}
  #panel .lab-layout.kind-mirror .lab-body{padding:5px}
  .mirror-experiment .mosaic{gap:3px}.mirror-experiment .mirror-line{height:148px}
  .mirror-experiment>div>b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  #panel .lab-layout.kind-path .lab-body{padding:5px}
  .lab-layout.kind-path .path-experiment{display:grid;grid-template-columns:108px minmax(0,1fr);gap:6px 8px}
  .lab-layout.kind-path .path-board{grid-column:1;grid-row:1;grid-template-columns:repeat(5,20px);gap:2px}
  .lab-layout.kind-path .path-cell{height:20px;font-size:15px}.lab-layout.kind-path .path-cell img{width:19px;height:19px}
  .lab-layout.kind-path .program{display:contents}
  .lab-layout.kind-path .program-tape{grid-column:2;grid-row:1;align-self:stretch;min-height:0;padding:5px;font-size:13px;letter-spacing:0}
  .lab-layout.kind-path .arrow-pad{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0;gap:6px}
}
@media(orientation:landscape) and (max-height:430px){
 .kind-compare .lesson-board{display:grid;grid-template-columns:minmax(0,1fr) 100px;grid-template-rows:auto auto auto;align-content:center;justify-items:center;gap:6px}
 .kind-compare .math-goal{grid-column:1/-1}.kind-compare .pair-board{grid-column:1;grid-row:2;width:132px;gap:1px}
 .kind-compare .pair-row{height:7px;grid-template-columns:1fr 22px 1fr;gap:5px}.kind-compare .pair-row .math-unit{height:6px}
 .kind-compare .pair-button{grid-column:2;grid-row:2;flex-direction:column;gap:3px;padding:7px;font-size:10px;min-width:90px}
 .kind-compare .math-choices{grid-column:1/-1;grid-row:3}
 .kind-sum .lesson-board,.kind-sequence .lesson-board{display:grid;grid-template-columns:minmax(0,1fr) 48px;grid-template-rows:auto minmax(0,1fr) auto;align-content:center;justify-items:center;gap:6px 8px}
 .kind-sum .math-goal,.kind-sequence .math-goal{grid-column:1/-1}
 .kind-sum .ten-frame{grid-column:1;grid-row:2;align-self:end}.kind-sum .math-equation{grid-column:1;grid-row:3;align-self:start;font-size:19px;gap:5px}
 .kind-sum .number-counter,.kind-sequence .number-counter{grid-column:2;grid-row:2/4;display:grid;grid-template-columns:48px;grid-template-rows:48px auto 48px;gap:3px;align-self:center}
 .kind-sum .number-counter>span,.kind-sequence .number-counter>span{min-width:0;width:48px;grid-row:2;padding-top:11px;gap:2px}
 .kind-sum .number-counter button:first-child,.kind-sequence .number-counter button:first-child{grid-row:3}
 .kind-sum .number-counter button:last-child,.kind-sequence .number-counter button:last-child{grid-row:1}
 .kind-sum .number-counter small:first-child,.kind-sequence .number-counter small:first-child{font-size:8px}
 .kind-sequence .lesson-board{grid-template-rows:auto auto auto auto}
 .kind-sequence .number-counter{grid-row:2/5}.kind-sequence .number-sequence{grid-column:1;grid-row:2;margin-bottom:11px;gap:9px}
 .kind-sequence .number-sequence>span,.kind-sequence .number-sequence>b{width:33px;height:33px;font-size:18px}
 .kind-sequence .pair-button{grid-column:1;grid-row:3;padding:6px;font-size:10px}
 .kind-sequence .number-jump{grid-column:1;grid-row:4;font-size:14px;gap:4px}.kind-sequence .number-jump i{font-size:7px;padding:4px}
 .kind-turn .math-goal>span{display:none}.kind-turn .direction-board{width:100px;height:100px;min-height:100px;flex-shrink:0}
 .kind-turn .turn-arrow{font-size:49px}.kind-turn .lesson-board{gap:6px}.kind-turn .turn-note{font-size:9px}
}
.home-stage .feature-book{left:0}.home-stage .feature-treasure{right:0}
@media(orientation:portrait){.game-dock{padding-left:var(--safe-l);padding-right:var(--safe-r)}}
@media(orientation:landscape){
 .game-dock{top:calc(var(--safe-t) + 8px);bottom:calc(var(--safe-b) + 8px);height:auto;max-height:none;transform:none;padding:5px 3px}
}
.game-logo h2{line-height:1.25;margin:4px 0}
/* English release wordmark and readable content information. */
.game-logo{min-height:0;padding:0}
.game-logo .title-logo{display:block;width:min(100%,350px);height:auto;max-height:19dvh;object-fit:contain;margin:auto;filter:drop-shadow(0 4px 5px #0c264955)}
.home-stage{container-type:size;container-name:home-scene}
.home-stage .hero-figure{bottom:20%}
.home-stage .hero-figure img{height:clamp(60px,calc(70cqh - 20px),180px);width:auto}
.game-logo p{margin:2px 0 0;font-size:11px}
.progress-chip{min-height:48px;flex-shrink:0}
.edition-heading{display:flex;align-items:center;gap:16px}
.edition-heading img{width:140px;height:auto;object-fit:contain;flex-shrink:0}
.edition-heading h3{margin:0}.edition-heading p{margin:5px 0}
.edition-cards{display:grid;grid-template-columns:1fr;gap:14px}
.edition-cards section{padding:16px;background:#173d56;border:1px solid #7d9e9b;border-radius:16px}
.edition-cards section>small{color:#f0d396;font-size:10px;font-weight:800;letter-spacing:.05em}
.edition-cards h3{margin:6px 0}.edition-cards p{margin:8px 0;line-height:1.6}
.release-note{border-left:3px solid #e3c489;padding:8px 12px;background:#ffffff08}
.edition-switch{padding:12px 0}.edition-switch button{width:100%;white-space:normal}
.edition-switch p{font-size:11px}
.edition-switch a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border-radius:14px;border:1px solid #92abb2;text-decoration:none;font-weight:800;line-height:1.5;text-align:center;color:#f1eedb;background:linear-gradient(#3b617a,#2c4f69)}
.conflict-body{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;max-width:480px;margin:auto;text-align:center}
.conflict-body h2{font-size:22px;margin:0;line-height:1.3}.conflict-body p{font-size:13px;line-height:1.6;margin:0}.reload-save{text-decoration:none;min-height:48px}
.parent-account-root{flex:1;min-height:0;overflow:auto;user-select:text;padding:8px 4px 20px}
.parent-account{max-width:680px;margin:auto;font-size:14px;line-height:1.6}.parent-account p{margin:10px 0}
.parent-account h3{color:#f3d89c;margin:24px 0 10px}.parent-account h4{margin:3px 0;font-size:17px}
.parent-account label{display:block}.parent-account form{display:grid;gap:12px;margin:20px 0}
.parent-account input:not([type=checkbox]){display:block;min-height:48px;width:100%;margin:5px 0 0;padding:10px;border:2px solid #98b7bd;border-radius:10px;background:#f5f3e2;color:#193c4b;font:inherit;user-select:text}
.parent-button-row,.backup-actions{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.parent-button-row button,.backup-actions button{flex:1 1 160px;min-height:48px}
.parent-plan,.plan-review{padding:14px;margin:14px 0;border:1px solid #809f9f;border-radius:15px;background:#173d56}.plan-review button{width:100%;margin:10px 0}.parent-account fieldset{border:1px solid #89a5ac;border-radius:12px;padding:10px}
.parent-account fieldset label,.parent-account .parent-ack{min-height:48px;display:flex;align-items:center;gap:12px}.parent-account input[type=checkbox]{width:24px;height:24px;flex-shrink:0}
.parent-status{padding:12px;border-radius:12px;background:#ffffff0b}.parent-account :focus-visible{outline:3px solid #ffe5a3;outline-offset:3px}
.parent-account [data-parent-composer]:not(:empty),.parent-pending{padding:14px;margin:14px 0;border:1px solid #809f9f;border-radius:15px;background:#173d56}
.parent-account [data-parent-composer] select{width:100%;min-height:48px;padding:10px;font:inherit;border-radius:10px;background:#f5f3e2;color:#193c4b}
.parent-account [data-parent-composer] label{display:flex;gap:12px;align-items:center;min-height:48px;overflow-wrap:anywhere}
.parent-account [data-parent-composer] button,.parent-pending button{width:100%;min-height:48px;margin-top:12px;padding:10px;font:inherit;border-radius:10px}
.parent-account [data-dradra-reservation] button,.parent-account [data-dradra-reservation] select{min-height:48px;white-space:normal;overflow-wrap:anywhere}
.parent-account [data-dradra-reservation] label{min-height:48px;overflow-wrap:anywhere}
.parent-account [data-dradra-reservation] h3{color:inherit}
/* Fixed success boards remain readable while their former editing controls are clearly inactive. */
fieldset.lesson-board{margin:0;min-inline-size:0}
.lesson-board:disabled button{opacity:.42;cursor:default;box-shadow:none;filter:saturate(.35)}
.discovery-experiment .plank-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.discovery-experiment .plank-row button{min-width:0;padding:6px}
.discovery-experiment .plank-row span{font-size:11px}
.first-build{display:block;font-size:11px;margin-top:4px;color:#315b61}
#panel .mirror-horizontal{display:flex;flex-direction:column;gap:4px;width:199px;margin:auto}
#panel .mirror-horizontal>div{display:grid;grid-template-columns:55px 144px;align-items:center}
#panel .mirror-horizontal>div>b{font-size:10px;margin:0;text-align:left}
#panel .mirror-horizontal>div>b{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
#panel .mirror-horizontal .mosaic{justify-self:center}
#panel .mirror-horizontal>div:first-child .mosaic{grid-template-columns:repeat(3,12px);gap:2px}
#panel .mirror-horizontal>div:first-child .mosaic>*{height:12px;width:12px}
#panel .mirror-horizontal .mirror-line{height:12px;width:144px;margin-left:55px;padding:0;font-size:8px;line-height:12px;border-left:0;border-top:2px dashed #67b7c6;text-align:center}
.result-takeaway{font-weight:700;color:#e6f4dc}
.next-discovery{display:block;line-height:1.4;max-width:340px;margin:auto}
.world-finale .reward-rays{background:repeating-conic-gradient(from 0deg,transparent 0deg 20deg,var(--celebration) 20deg 28deg);opacity:.3}
.world-finale .result-title h2{color:#ffdf8b}
@media(orientation:landscape){
 #panel .lab-layout.discovery-experiment.kind-mirror .lab-body{grid-row:1/4}
 #panel .lab-layout.discovery-experiment.kind-mirror .lab-actions{grid-column:2;grid-row:2;gap:6px}
 #panel .lab-layout.discovery-experiment.kind-mirror .lab-footer{grid-column:2;grid-row:3}
 #panel .lab-layout.discovery-experiment.kind-mirror .lab-actions>.primary{min-width:0;padding:6px}
}
.path-cell{position:relative}.path-cell>#lab-pawn{position:absolute;inset:0;margin:auto}.path-cell:has(>#lab-pawn)>.path-marker{opacity:.2}
@media(orientation:portrait) and (max-height:650px){#panel .discovery-experiment .lab-body{padding:5px}.discovery-experiment .lab-count{margin-top:6px}.result-takeaway{font-size:10px!important}.next-discovery{font-size:9px!important}.world-finale .result-title h2{font-size:22px}}
@media(orientation:landscape) and (max-height:360px){.result-takeaway{font-size:10px!important;margin:4px 0!important}.next-discovery{font-size:9px!important}}
@media(orientation:landscape){.screen-import .conflict-body{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:center;max-width:680px}.screen-import .conflict-body>p{grid-column:1/-1}.screen-import .conflict-body>button{width:100%}}
@media(orientation:landscape) and (max-height:360px){.conflict-body{gap:8px}.conflict-body h2{font-size:19px}.conflict-body p{font-size:11px}.conflict-body>.ui-icon{display:none}}
.screen-header h2,.node-label b,.destination-course b,.world-name b{overflow-wrap:normal;word-break:normal}
.node-label>b{line-height:1.2}.floating-feature span{max-width:72px;line-height:1.3}
.workshop-grid b{line-height:1.25}
@media(orientation:portrait){
 @container game-screen (max-height:520px){.game-logo .title-logo{max-height:110px}.game-logo p{font-size:9px}.home-view{gap:6px}}
 @container game-screen (max-height:430px){.game-logo .title-logo{max-height:85px}.game-logo p{display:none}}
}
@media(orientation:landscape){
 .game-logo .title-logo{max-height:25dvh;width:100%}.game-logo p{display:none}
 .edition-heading img{width:110px}.edition-heading{gap:10px}
 .edition-cards{grid-template-columns:1fr}.parent-copy .edition-cards h3{font-size:15px}
 .screen-about .screen-content{grid-template-rows:48px minmax(0,1fr) 48px}
}
@media(orientation:landscape) and (max-width:700px){
 .home-stage .floating-feature{top:auto;bottom:0}
 .home-stage .hero-figure{bottom:26%}
}

/* Parent explanations may scroll inside their existing panel. */
.ordinary-trial-plans .trial-entry{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;box-sizing:border-box;padding:12px;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;font:inherit;line-height:1.4}
.ordinary-trial-plans .parent-plan{min-width:0}
.ordinary-trial-plans p{overflow-wrap:anywhere}

/* Fixed-size command repair controls; no extra panel or scrolling route. */
.program-tape button{min-width:32px;min-height:44px;padding:2px 6px;border:1px solid #7998a1;border-radius:7px;background:#254c63;color:#fff;font:inherit}.program-tape button[aria-pressed=true]{outline:3px solid #f6cc71;outline-offset:-3px}.balance-experiment .bridge-target{margin:4px auto}.balance-experiment>div>b{font-size:12px;color:#315160}

@media(orientation:landscape) and (max-height:500px){.balance-experiment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.balance-experiment .bridge-target{padding:6px 0 10px;margin:0}.balance-experiment>.plank-row{grid-column:1/-1;margin-top:0}.balance-experiment .plank-row button{min-height:48px}}

.repair-experiment .program-tape{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:5px;min-height:0;letter-spacing:0}.repair-experiment .program-tape button{min-width:0;width:100%;min-height:44px;padding:2px;font-size:18px}.repair-experiment .arrow-pad{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin-top:6px}.repair-experiment .arrow-pad button{min-width:0}

.mirror-diagonal .mirror-line{border:0;height:auto;font-size:26px;padding:0;align-self:center}.mirror-diagonal>div:first-child .mosaic{position:relative}.mirror-diagonal>div:first-child .mosaic:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom left,transparent 49%,#16475b 49%,#16475b 51%,transparent 51%)}

/* Locale controls are part of the normal settings screen. */
.language-picker{display:flex;align-items:center;gap:8px;flex-shrink:0;min-height:48px}.language-picker>b{margin-right:auto;font-size:13px}.language-picker button{min-height:48px;padding:8px 16px;border-radius:12px;border:1px solid #739eaa;background:#315b75;color:#f4f7e7;font:inherit}.language-picker [aria-pressed=true]{background:#f0cd79;color:#31535a;border-color:#ffe8a7}
html[lang=ja] .screen-header h2{font-size:clamp(14px,3.8vw,21px)}html[lang=ja] .screen-header p{line-height:1.4}html[lang=ja] .home-destination .world-name b{font-size:13px}html[lang=ja] .lab-feedback p{line-height:1.55}html[lang=ja] .first-build{font-size:10px}
@media(orientation:landscape) and (max-height:430px){.screen-settings .screen-content{gap:8px}.screen-settings .settings-options{gap:8px}.screen-settings .setting-row{min-height:52px;padding:7px 10px}.screen-settings .setting-row b{font-size:12px}.screen-settings .setting-row small{font-size:9px}.screen-settings .settings-footer>*{min-height:48px}.language-picker>b{font-size:12px}.language-picker button{padding:6px 14px}}

.jump-label{font:inherit;display:block}

@media(orientation:landscape) and (max-height:350px) and (max-width:700px){
 #panel .discovery-experiment.kind-bridge .bridge-target{padding:0 0 2px}
 #panel .discovery-experiment.kind-bridge .plank-row{margin-top:5px;gap:4px}
 #panel .discovery-experiment.kind-bridge .plank-row button{min-height:48px;padding:4px 2px}
 #panel .discovery-experiment.kind-bridge .lab-count{margin-top:4px;line-height:13px}
 #panel .discovery-experiment.kind-bridge .first-build{margin-top:1px;font-size:10px;line-height:13px}
}
