/* COSMO CARGO — enamel panels, brass frames, toy controls. Live labels, original art. */
:root{--gui-ink:#493020;--gui-cream:#fff0c3;--gui-gold:#f7bb4f;--gui-brass:#ae632b;--gui-edge:#613a2c;--gui-red:#95354a;--gui-shadow:#162139}
.toy-gui{background:radial-gradient(ellipse at 50% 20%,#243c5a,#101c30 70%);font-family:'Malgun Gothic','Segoe UI',sans-serif}
.toy-gui :is(.home-screen,.game-shell,.library-layout,dialog) button:where(:not(.unit):not(.map-card)){
 border:3px solid #ffe3a0;border-bottom:5px solid #aa692f;border-radius:13px;
 background:linear-gradient(#758daf 0%,#4b648a 46%,#344d76 50%,#435d85 100%);
 color:#fff7dc;box-shadow:inset 0 2px #ffffff90,inset 0 0 0 2px #263c5b55,0 3px 0 #57382b,0 5px 0 #152338,0 7px 8px #0005;
 text-shadow:0 2px #24344b;font-weight:900;letter-spacing:-.3px;transition:transform .12s,filter .12s;touch-action:manipulation;
}
.toy-gui :is(.home-screen,.game-shell,.library-layout,dialog) button:not(.unit):not(.map-card):not(.world-node):active:not(:disabled){transform:translateY(3px);box-shadow:inset 0 2px 4px #0004,0 1px #57382b}
.toy-gui :is(.home-screen,.game-shell,.library-layout,dialog) button:not(.unit):disabled{background:linear-gradient(#d0bea1,#b3a28c);border-color:#e5d5b5;border-bottom-color:#8c7965;color:#564a3d;box-shadow:inset 0 2px #fff7,0 3px #6b5846;text-shadow:none;filter:none;opacity:1}
.toy-gui :is(.home-screen,.game-shell,.library-layout,dialog) button.primary{background:linear-gradient(#a6db60 0%,#69b448 45%,#378440 51%,#469342);border-color:#fff1ae;border-bottom-color:#346f32;box-shadow:inset 0 2px #eaffb4,inset 0 0 0 2px #245e3a55,0 4px #294c30,0 7px #172b2c,0 9px 15px #0004;color:#fff9da;text-shadow:0 2px #255b35,1px 0 #255b35,-1px 0 #255b35}
.toy-gui button:focus-visible,.toy-gui input:focus-visible{outline:3px solid #fff;outline-offset:4px}
.toy-gui .ui-icon{fill:currentColor;filter:drop-shadow(0 2px 0 #25304588)}
.toy-gui .icon-button{border-radius:15px!important;min-width:48px;min-height:48px}
.toy-gui .home-screen{background:linear-gradient(0deg,#10213eeb,transparent 60%),url('art/spaceport.png') center 46%/cover;overflow:hidden;isolation:isolate;padding:18px 22px 18px}
.home-screen:before{content:'';position:absolute;inset:0;border:7px solid #182d48;box-shadow:inset 0 0 0 2px #a9c2cb45;pointer-events:none;z-index:-1}
.toy-gui .home-top{gap:8px;z-index:1}
.toy-gui .home-wallet{gap:8px}
.toy-gui .home-wallet .life-pill,.toy-gui .wallet-coins{border:3px solid #f5d38d;border-bottom:4px solid #a26937;border-radius:14px;background:linear-gradient(#433d50,#25334b);box-shadow:inset 0 2px #fff6,inset 0 -2px #111b2d,0 3px #253047;min-height:48px;color:#fff4ce}
.toy-gui .home-wallet .life-pill{padding:2px 7px 2px 1px;gap:4px}
.toy-gui .wallet-coins{gap:2px;padding:2px 8px 2px 2px}
.toy-gui .wallet-coins b,.toy-gui .life-pill b{font-size:20px}
.toy-gui .coin-art{width:33px;height:33px;border:0;border-radius:0;background:url('art/gui-items-v8.png') 100% 100%/300% 200% no-repeat;box-shadow:none}
.toy-gui #life-timer{font-size:12px;min-width:35px}
.toy-gui .wallet-plus{background:#6bab49;border:1px solid #cde88e;border-bottom:3px solid #315b36;color:#fff4c0;border-radius:5px;min-width:18px;text-align:center;font-size:19px}
.toy-gui .title-lockup{position:relative;margin-top:8px;padding:48px 4px 22px;isolation:isolate;text-align:center}
.gui-brand-medal{position:absolute;inset:-30px 0 auto;height:105px;background:url('art/gui-crest-v8.png') center/contain no-repeat;z-index:-1;filter:drop-shadow(0 5px 0 #10223b66)}
.toy-gui .orbit-label{position:absolute;top:14px;left:0;right:0;display:block;color:#ffedb9;font-size:12px;line-height:20px;letter-spacing:2px;text-shadow:0 2px #582334;font-weight:900}
.toy-gui .title-lockup h1{font-family:Impact,'Arial Black',sans-serif;font-size:50px;letter-spacing:3px;line-height:.9;margin:0;color:#fff1a7;-webkit-text-stroke:1px #79442c;text-shadow:0 3px #b96a31,0 6px #673c2c,0 8px #10243a;transform:rotate(-4deg);filter:none}
.toy-gui .title-lockup h1 span{font-size:72px;letter-spacing:3px;color:#ffcd58}
.toy-gui .title-lockup p{display:inline-block;margin:18px 0 0;padding:5px 19px;border:2px solid #f4cb81;border-radius:7px;background:#8b344b;color:#fff2c4;box-shadow:0 3px #4a2f35;font-size:15px;letter-spacing:4px}
.toy-gui .home-bottom{padding-top:105px;z-index:1}
.toy-gui .mission-card{min-height:91px;margin-bottom:17px;padding:12px 30px 12px 88px;border:4px solid #f7ca79;border-bottom:6px solid #b77437;border-radius:15px;background:linear-gradient(110deg,#fff3cd,#eccc8a);box-shadow:inset 0 0 0 2px #fff7dc,0 4px #583e30,0 8px 12px #0b183a88;color:var(--gui-ink)}
.toy-gui .mission-card img{width:105px;height:115px;left:-13px;bottom:0}
.toy-gui .mission-card small{font-size:12px;color:#775134;font-weight:900}
.toy-gui .mission-card strong{font-size:24px;color:#583321;text-shadow:0 1px #fff8dd}
.toy-gui .mission-card p{color:#62482f;font-size:12px;font-weight:700;line-height:1.4}
.mission-seal{position:absolute;right:9px;top:13px;color:#b47535;font-size:22px;text-shadow:0 1px #fff8d0}
.toy-gui .play-button{min-height:68px;font-size:26px;border-radius:18px!important;gap:22px}
.toy-gui .play-button .entry-cost{font-size:21px;color:#fff4d6;text-shadow:0 2px #295a33;border-left:2px solid #b8e77e80;padding-left:14px}
.toy-gui .home-links{margin-top:17px;gap:12px}
.toy-gui .home-links button{min-height:54px;font-size:15px;gap:7px}
.toy-gui .home-links .ui-icon{color:#ffdc78;width:22px;height:22px}
.toy-gui .save-note{margin:15px 0 0;font-size:11px;color:#e7e5dc;text-shadow:0 1px #122442}
/* HUD and collector platform keep all interactive geometry stable. */
.toy-gui .game-shell{background:radial-gradient(ellipse at 50% 0,#35607877,transparent 57%),linear-gradient(#253c58,#18283f 65%,#20324b)}
.toy-gui .game-shell:before{opacity:.42;background-size:69px 81px}
.toy-gui .game-shell:after{height:40%;border-top:4px solid #bda46f;background:linear-gradient(#60727b,#344656 48%,#25384e);box-shadow:0 -5px #314052,0 -8px #977e55}
.toy-gui .level-badge{position:relative;min-width:145px;max-width:210px;flex:1;margin:0 8px;padding:1px 10px 8px;border:3px solid #f4ca78;border-bottom:5px solid #a46032;border-radius:9px 9px 18px 18px;background:linear-gradient(#ab4d5d,#8b3147 55%,#6d2b42);box-shadow:inset 0 1px #ffeab566,0 3px #3b2b37}
.toy-gui .level-badge:before,.toy-gui .level-badge:after{content:'✦';position:absolute;top:11px;font-size:12px;color:#ffda83;text-shadow:0 2px #733b2c}
.toy-gui .level-badge:before{left:6px}.toy-gui .level-badge:after{right:6px}
.toy-gui .game-top h2{font-size:23px;letter-spacing:.2px;text-shadow:0 2px #56283a;color:#fff3c2}
.toy-gui .hud-lives{margin-top:-3px;height:20px;font-size:14px;color:#fff4d4}
.toy-gui .hud-lives img{width:22px;height:22px}
.toy-gui .game-shell .board-panel{border:4px solid #f9d690;border-bottom:7px solid #ad713d;border-radius:20px;background:linear-gradient(130deg,#ffe9af,#d6ad70);box-shadow:inset 0 0 0 2px #fff7d1,0 4px #583e36,0 8px 14px #10213977;padding:9px 10px 10px}
.toy-gui .board-panel:before,.toy-gui .board-panel:after{content:'';position:absolute;bottom:7px;width:5px;height:5px;border-radius:50%;background:#b78240;border:1px solid #f6d299;box-shadow:inset 0 1px #725136;pointer-events:none}
.toy-gui .board-panel:before{left:7px}.toy-gui .board-panel:after{right:7px}
.toy-gui .board-stage{background:radial-gradient(ellipse,#fff7dd 25%,#ead5a4);border-radius:12px;box-shadow:inset 0 3px 7px #76593655,inset 0 0 0 1px #a3824c66}
.toy-gui .picture-heading{font-size:15px;color:#563720;padding-bottom:6px;text-shadow:0 1px #fff5c9}
.toy-gui #picture-progress{background:#80523b;color:#fff3cf;border:1px solid #fce0a1;border-radius:7px;box-shadow:inset 0 2px #59342b;font-size:13px;text-shadow:none}
.toy-gui #difficulty-badge{border:1px solid #9b713f77;border-bottom:2px solid #73523966;border-radius:5px;text-shadow:none}
.toy-gui .game-shell .scan-rule{font-size:11px;color:#694727;min-height:25px;margin:4px 0 -5px;gap:8px}
.toy-gui .game-shell .scan-rule span{font-size:10px}
.toy-gui .game-shell .progress-track{height:10px;min-height:10px;border:2px solid #dfbd77;background:#4f382c;border-radius:8px;margin-top:10px;box-shadow:inset 0 2px #1a243a,0 2px #17263b}
.toy-gui .progress-track>div{background:linear-gradient(#dcf69a 0%,#91ce57 45%,#50a347 55%,#81c456);box-shadow:inset 0 1px #f3ffd2}
.toy-gui .flight-corridor span{background:#e0cb94aa;box-shadow:0 2px #253a4c}
.toy-gui .game-shell .queues{background:linear-gradient(#1c3049,#13243a);border:2px solid #9a815b;border-top-color:#e3c790;border-bottom:4px solid #67543f;border-radius:18px;box-shadow:inset 0 3px 10px #071c31,0 2px #101c31;padding:8px 7px 5px}
.toy-gui .unit>span.unit-count{background:linear-gradient(#fff7d8,#edcc8b);color:#4a3124;border-color:#fff0bc;border-bottom-color:#b48b52;border-radius:7px;box-shadow:0 3px #63503e,0 4px 4px #17233855}
.toy-gui #route-cue{border-color:#f9db99;background:#fff1c8;color:#493425;font-size:13px}
/* Actual painted item sprites, rather than unicode symbols. */
.gui-item-art,.gui-award{background-image:url('art/gui-items-v8.png');background-size:300% 200%;background-position:var(--item-position);background-repeat:no-repeat;display:block;flex-shrink:0;filter:drop-shadow(0 2px 1px #503d3077)}
.toy-gui .tools-deck{gap:6px;margin-top:12px;min-height:73px;padding-bottom:3px}
.toy-gui .tools-deck .booster-bar{gap:6px}
.toy-gui .tools-deck .queue-preview{flex:0 0 48px}
.toy-gui .tools-deck :is(.queue-preview,.booster-bar button,.game-actions #restart-btn){border:2px solid #ffe4a3;border-bottom:4px solid #a36832;border-radius:12px;box-shadow:inset 0 2px #fff6,0 3px #583b2c,0 5px #142237;min-height:70px;padding:0 1px 3px;background:linear-gradient(#ffe5a1,#e6b55e 47%,#daa052 50%,#efbf69);color:#51341e;text-shadow:0 1px #fff6cf;gap:0}
.toy-gui .tools-deck .gui-item-art{width:38px;height:38px;line-height:normal;max-width:none}
.toy-gui .tools-deck .booster-bar button>span.gui-item-art{font-size:0;height:38px;width:38px}
.toy-gui .tools-deck :is(button b,.button-label){font-size:12px!important;font-weight:900;line-height:17px;letter-spacing:-.5px;white-space:nowrap}
.toy-gui .tools-deck .booster-bar button small{font-size:10px;line-height:13px;color:#634121;background:#fff2bf66;border-radius:4px;min-width:90%;text-shadow:none}
.toy-gui .tools-deck .game-actions #restart-btn{background:linear-gradient(#91a4ba,#526b8b 48%,#3c5575 51%,#617b98);color:#fff1cb;text-shadow:0 2px #22334d}
.toy-gui .tools-deck .game-actions .ui-icon{width:31px;height:31px;color:#ffedb2;margin:3px 0 4px}
.toy-gui .tools-deck button:disabled .gui-item-art{filter:saturate(.3) opacity(.65)}
.toy-gui .tools-deck .booster-bar button:disabled small{color:#5a4d3d;background:#e9d8b0}
/* Shared panel shell: thick brass case, pale readable inset, oversized title plate. */
.toy-gui dialog{position:fixed;padding:15px 19px 23px;border:5px solid #f8cf7b;border-bottom:8px solid #ae7039;border-radius:22px;background:linear-gradient(125deg,#fff1bf,#e7c58c);color:var(--gui-ink);box-shadow:inset 0 0 0 2px #fff7d5,inset 0 0 0 5px #bd915170,0 4px #653b2f,0 8px #17253a,0 25px 65px #020d24c9;max-height:calc(100dvh - 28px);overflow:auto}
.toy-gui dialog::backdrop{background:#08172bba;backdrop-filter:blur(5px)}
.toy-gui :is(.dialog-heading,.gui-title){position:relative;display:flex;align-items:center;justify-content:center;min-height:106px;margin:-10px -14px 10px;padding:39px 32px 20px;background:url('art/gui-crest-v8.png') center/100% 100% no-repeat;gap:0;isolation:isolate}
.toy-gui :is(.dialog-heading,.gui-title) h2{position:relative;margin:0;text-align:center;font-size:21px;line-height:1.25;color:#fff0ba;text-shadow:0 2px #572133,1px 0 #572133,-1px 0 #572133;font-weight:950;letter-spacing:-1px}
.toy-gui #help-dialog .dialog-heading h2{font-size:17px;letter-spacing:-.8px}
.toy-gui .dialog-heading .gui-close{position:absolute;right:-5px;top:7px;min-width:48px;min-height:48px;width:48px;height:48px;border:3px solid #ffe0a0;border-bottom:5px solid #7a2e38;border-radius:12px!important;background:linear-gradient(#e56e70,#b53e51 48%,#902c43 51%,#a1374a);color:#fff1c8;box-shadow:inset 0 2px #ffc4a7,0 3px #512a31;text-shadow:0 2px #73283b;z-index:2;font-size:29px}
.toy-gui .gui-close .ui-icon{width:22px;height:22px}
.toy-gui dialog :is(p,.settings-status,.life-rules,#confirm-text,#life-balance,#queue-plan-focus,#booster-description,#booster-balance){color:#60432d;font-size:15px;line-height:1.65}
.toy-gui dialog .secondary{color:#fff4cd}
.toy-gui .toggle{margin:8px 0;padding:10px 12px;min-height:58px;border:2px solid #c39351;border-radius:10px;background:linear-gradient(#fff6d6,#efd69f);box-shadow:inset 0 2px #fff9,0 2px #b18750;color:#5e3b26;font-size:16px;cursor:pointer}
.toy-gui .toggle input{appearance:none;-webkit-appearance:none;position:relative;width:60px;height:33px;flex:none;margin:0;border:2px solid #8e6849;border-bottom:3px solid #6a4d3b;border-radius:18px;background:#9d8e78;box-shadow:inset 0 2px 4px #473b3477;cursor:pointer;transition:background .15s}
.toy-gui .toggle input:before{content:'';position:absolute;top:1px;left:2px;width:25px;height:25px;border:2px solid #ffedc2;border-bottom:3px solid #b48747;border-radius:50%;background:linear-gradient(#fff5ce,#e8bd76);box-shadow:0 1px 2px #4e403b66;transition:transform .15s;box-sizing:border-box}
.toy-gui .toggle input:checked{background:linear-gradient(#85c45a,#439246);border-color:#527640}
.toy-gui .toggle input:checked:before{transform:translateX(27px)}
.toy-gui .account-card{border:2px solid #b88b4e;border-radius:12px;background:#fff3cc;box-shadow:inset 0 2px #fff9,0 2px #d8b779;padding:14px;color:#583b29}
.toy-gui .account-card p,.toy-gui #help-dialog p{color:#674a34;font-size:14px}
.toy-gui dialog .google-button{background:#fff;color:#343434;border:1px solid #c5b99f;text-shadow:none;box-shadow:0 3px #baaa8c;font-weight:600;font-family:Arial,sans-serif}
.toy-gui .legal-link{color:#644327;font-size:13px;font-weight:700;padding:16px 0 10px}
.toy-gui .version{color:#725539;font-size:12px}
.toy-gui #lives-dialog .life-hero{width:94px;height:94px;margin:6px auto;filter:drop-shadow(0 5px #a8794d55)}
.toy-gui #life-dialog-count{color:#7b3d2a;font-size:36px;text-shadow:0 2px #fff4cd}
.toy-gui #life-dialog-timer{color:#6e482b;font-size:18px;background:#fff3d1;border:2px solid #d8b271;border-radius:10px;padding:7px;margin:10px 0}
.toy-gui .result{padding-top:13px;text-align:center}
.toy-gui .result .gui-title{margin-bottom:0}
.toy-gui .result-mascot{display:block;margin:-2px auto 2px;width:98px;height:98px;float:none;filter:drop-shadow(0 4px #9d703d55)}
.toy-gui #result-icon{display:none}
.toy-gui #result-text{color:#573c28;font-size:15px;line-height:1.65;margin:9px 0 15px;padding:12px;border:2px solid #cea769;border-radius:11px;background:#fff4d4;box-shadow:inset 0 2px #ad87572b}
.toy-gui #result-title{font-size:22px;color:#fff0b9;margin:0}
.gui-award{--item-position:50% 100%;display:none;width:122px;height:122px;margin:-5px auto 0}
.gui-item-hero{width:92px;height:92px;margin:-5px auto 12px;--item-position:0% 0%}
#booster-dialog[data-item='priority'] .gui-item-hero{--item-position:50% 0%}
#booster-dialog[data-item='thaw'] .gui-item-hero{--item-position:100% 0%}
.toy-gui #result[data-outcome='won'] .gui-award{display:block}
.toy-gui #result[data-outcome='won'] .result-mascot{display:none}
.toy-gui #result :is(#result-action,#result-home){min-height:53px;font-size:17px;margin-top:10px}
.toy-gui #confirm-dialog #confirm-title{font-size:20px;color:#fff0ba}
.toy-gui #confirm-text{padding:12px;background:#fff1c9;border:2px solid #cda469;border-radius:10px}
.toy-gui #queue-dialog{max-width:620px}
.toy-gui #queue-plan-focus{padding:9px;background:#fff4d3;border:1px solid #c99b5d;border-radius:8px;font-size:14px}
.toy-gui #queue-plan{gap:7px;margin-top:12px}
.toy-gui #queue-plan h3{margin-bottom:9px;color:#633c2a;background:#ebcb8c;border-radius:6px;border-bottom:2px solid #be9152;padding:5px;font-size:13px}
.toy-gui .plan-ship{border:2px solid #b18a50;border-top:4px solid var(--c);border-bottom:4px solid #b18a50;border-radius:10px;background:#fff7dc;box-shadow:0 2px #cda265;color:#493525;padding:6px 1px;gap:5px}
.toy-gui .plan-ship small{color:#806046;font-size:11px}
.toy-gui #booster-dialog .priority-option{font-size:14px;min-height:52px;background:linear-gradient(#fff4ce,#e9c789);color:#533923;text-shadow:none;border-color:#ae8449;border-left:6px solid var(--c);box-shadow:inset 0 2px #fff8,0 3px #ae8449}
.toy-gui .toast{background:#fff1c8;color:#513723;border:3px solid #e9b669;border-bottom:5px solid #a6693b;box-shadow:0 4px #4e392e,0 10px 20px #0005;border-radius:12px;font-weight:700}
/* Level select uses collectible framed cards rather than a dashboard table. */
.toy-gui .library-layout{min-height:100dvh;max-width:1000px;padding:18px 18px 30px;background:radial-gradient(ellipse at top,#34556a,#172c46 65%)}
.toy-gui .library-layout>.section-heading{text-align:center;padding:22px 8px 10px}
.toy-gui .library-layout .eyebrow{color:#e7c480;font-size:11px;font-weight:900;letter-spacing:3px}
.toy-gui .library-layout h1{display:inline-block;background:#91384e;color:#ffedbc;border:3px solid #e9bd73;border-bottom:6px solid #a36638;border-radius:10px;padding:10px 25px;font-size:28px;box-shadow:inset 0 2px #fff5,0 4px #16273d;text-shadow:0 2px #5a293a;margin:12px 0}
.toy-gui .library-layout .section-heading p{color:#e6d9bf;font-size:13px}
.toy-gui .library-toolbar{padding:13px;border:3px solid #c89b62;border-radius:13px;background:#233b54;gap:9px;margin-bottom:12px;color:#f9e4b9;font-size:13px}
.toy-gui .library-toolbar label{flex:1;min-width:110px}
.toy-gui .library-toolbar input{background:#fff3d2;color:#59402d;border:2px solid #bf8e51;box-shadow:inset 0 2px #e4c38e;border-radius:8px;font-weight:800;min-height:48px}
.toy-gui #library-count{width:100%;font-size:12px;color:#dbc7a2}
.toy-gui .map-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:22px}
.toy-gui .map-card{position:relative;border:3px solid #f2ca7e;border-bottom:6px solid #a36738;border-radius:13px;background:linear-gradient(#fff0be,#dcb57c);box-shadow:inset 0 0 0 1px #fff9db,0 4px #503b32,0 7px 10px #0c1e3499;padding:8px 7px 9px;color:#5c3b26;text-align:center;text-shadow:none;min-width:0;transition:transform .15s}
.toy-gui .map-card:hover{transform:translateY(-3px);filter:brightness(1.05)}
.toy-gui .map-card .mini-board{background:#f7e7bc;border:1px solid #bb945e;box-shadow:inset 0 2px 5px #85613444;border-radius:7px;padding:4px;margin:0 0 8px}
.toy-gui .route-number{position:absolute;left:50%;transform:translateX(-50%);top:-13px;min-width:45px;padding:2px 8px;background:linear-gradient(#b35862,#873247);border:2px solid #f5d38c;border-bottom:3px solid #6f2f38;border-radius:7px;color:#fff0b9;font-size:14px;line-height:19px;box-shadow:0 2px #8c6543;font-weight:900}
.toy-gui .map-card .map-motif{font-size:12px;line-height:18px;white-space:nowrap}
.toy-gui .map-card .map-difficulty{display:inline-block;margin-top:4px;padding:1px 6px;background:#f8edc9;color:#69472b;font-size:10px;border:1px solid #b58c52;border-radius:5px;line-height:16px}
.toy-gui .map-card[data-completed='true']:after{content:'✓';position:absolute;right:-6px;top:-8px;background:#559a4b;color:#fff6cc;border:2px solid #f2d082;border-radius:50%;width:24px;height:24px;font-size:17px;line-height:21px;box-shadow:0 2px #285239}
.toy-gui .map-card[data-current='true']{border-color:#a9ead8;box-shadow:inset 0 0 0 2px #eaffd3,0 4px #316466,0 0 12px #8cd7c555}
.toy-gui .pagination{margin-top:25px;color:#eed9ae;gap:12px}.toy-gui .pagination button{width:auto;flex:1;max-width:180px;font-size:14px}
@media(max-width:700px){.toy-gui .map-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 12px}.toy-gui .library-layout{padding:14px 15px 25px}.toy-gui .library-toolbar button{font-size:14px;padding:9px 12px}.toy-gui .map-card .map-motif{font-size:11px}}
@media(max-height:740px){
 .toy-gui .home-screen{padding:12px 18px 14px}.toy-gui .title-lockup{margin-top:3px;padding-top:36px;padding-bottom:10px}.gui-brand-medal{top:-26px;height:88px}.toy-gui .orbit-label{top:10px;font-size:10px;letter-spacing:1px}.toy-gui .title-lockup h1{font-size:39px}.toy-gui .title-lockup h1 span{font-size:56px}.toy-gui .title-lockup p{margin-top:13px;font-size:12px;padding:3px 12px}.toy-gui .home-bottom{padding-top:65px}.toy-gui .mission-card{min-height:79px;padding-left:78px;margin-bottom:12px}.toy-gui .mission-card img{width:95px;height:100px}.toy-gui .mission-card strong{font-size:22px}.toy-gui .mission-card p{font-size:11px}.toy-gui .play-button{min-height:59px;font-size:23px}.toy-gui .home-links{margin-top:12px}.toy-gui .home-links button{min-height:49px;font-size:13px}.toy-gui .save-note{margin-top:12px;font-size:10px}
 .toy-gui .game-top{height:50px;min-height:50px;margin-bottom:5px}.toy-gui .level-badge{padding:0 7px 4px;min-width:132px;margin:0 2px}.toy-gui .game-top h2{font-size:21px}.toy-gui .hud-lives{font-size:12px;height:17px}.toy-gui .hud-lives img{width:19px;height:19px}.toy-gui .game-shell .board-panel{padding:6px 7px 7px;border-bottom-width:6px;min-height:150px;border-radius:16px}.toy-gui .picture-heading{padding-bottom:3px;font-size:13px;line-height:17px}.toy-gui .game-shell .scan-rule{min-height:21px;font-size:10px;margin-top:3px;margin-bottom:-4px;gap:6px}.toy-gui .game-shell .scan-rule span{font-size:9px}.toy-gui .game-shell .progress-track{margin-top:8px;height:8px;min-height:8px}.toy-gui .tools-deck{min-height:70px;margin-top:9px;gap:5px}.toy-gui .tools-deck .booster-bar{gap:5px}.toy-gui .tools-deck :is(.queue-preview,.booster-bar button,.game-actions #restart-btn){min-height:67px}.toy-gui .tools-deck .gui-item-art,.toy-gui .tools-deck .booster-bar button>span.gui-item-art{width:33px;height:33px}.toy-gui .tools-deck .game-actions .ui-icon{width:27px;height:27px}
 .toy-gui :is(.dialog-heading,.gui-title){min-height:90px;padding-top:34px;padding-bottom:16px}.toy-gui :is(.dialog-heading,.gui-title) h2{font-size:19px}.toy-gui .result-mascot{width:75px;height:75px}.toy-gui .gui-award{width:87px;height:87px}.toy-gui #result-text{font-size:13px;margin:6px 0 8px;padding:9px}.toy-gui #result :is(#result-action,#result-home){min-height:48px;font-size:15px;margin-top:9px}
}
@media(max-width:350px){.toy-gui .home-screen{padding-left:14px;padding-right:14px}.toy-gui .home-wallet{gap:5px}.toy-gui .home-wallet .life-pill{padding-right:4px}.toy-gui .wallet-coins{padding-right:5px}.toy-gui .wallet-coins b,.toy-gui .life-pill b{font-size:18px}.toy-gui .coin-art{width:27px;height:29px}.toy-gui .wallet-plus{display:none}.toy-gui .home-top{gap:5px}.toy-gui .tools-deck .queue-preview{flex-basis:48px}.toy-gui .tools-deck :is(button b,.button-label){font-size:11px!important;letter-spacing:-.6px}.toy-gui .tools-deck .booster-bar button small{font-size:9px}.toy-gui .dialog-heading .gui-close{right:-8px}.toy-gui dialog{padding-left:14px;padding-right:14px}.toy-gui #queue-plan{gap:5px}.toy-gui .plan-ship{font-size:11px}.toy-gui .library-layout{padding-left:12px;padding-right:12px}.toy-gui .map-grid{gap:20px 10px}.toy-gui .map-card{padding:7px 4px}.toy-gui .map-card .map-motif{font-size:10px}}
@media(prefers-reduced-motion:reduce){.toy-gui *, .toy-gui *:before{transition:none!important;scroll-behavior:auto!important}}
/* On short screens, preserve a full next-ship preview rather than clipping its count. */
@media(max-height:740px){
 .toy-gui .game-shell .queue button.unit{height:48px;min-height:48px}
 .toy-gui .game-shell .queue .unit:not(button){height:24px;max-height:24px;width:100%;max-width:68px;margin-top:7px;border:1px solid #ba9a66;border-radius:7px;background:#20354d;opacity:1}
 .toy-gui .game-shell .queue .unit:not(button) .drone-art{inset:0 auto 0 0;width:32px;height:24px}
 .toy-gui .game-shell .queue .unit:not(button) .unit-count{left:auto;right:1px;bottom:1px;transform:none;min-width:22px;height:19px;line-height:17px;font-size:13px;padding:0 2px;border-radius:4px;box-shadow:none}
 .toy-gui .gui-item-hero{width:64px;height:64px;margin-bottom:8px}
}
