/* A single toy-enamel control family; state colours retain their meaning. */
:root{--control-rim:#ffe3a0;--control-base:#aa692f;--control-ink:#fff7dc;--control-face:linear-gradient(#758daf 0%,#4b648a 46%,#344d76 50%,#435d85 100%);--control-depth:inset 0 2px #ffffff90,inset 0 0 0 2px #263c5b55,0 3px #57382b,0 5px #152338,0 7px 8px #0005}
.toy-gui :is(#home-settings,#settings-btn,#pause-settings,#pause-help,#world-locate,#speed-btn){border:3px solid var(--control-rim);border-bottom:5px solid var(--control-base);background:var(--control-face);box-shadow:var(--control-depth);color:var(--control-ink);border-radius:15px}
.toy-gui .icon-button .ui-icon{width:24px;height:24px;display:block;margin:auto;fill:currentColor}
.toy-gui dialog .gui-close .ui-icon{width:22px;height:22px}
.toy-gui #speed-btn>span{display:grid;place-items:center;padding:0;line-height:16px;letter-spacing:0}
.toy-gui #speed-btn>span .ui-icon{width:20px;height:16px}.toy-gui #speed-btn b{font-size:18px;line-height:19px}
.toy-gui #speed-btn[aria-pressed=true]{background:linear-gradient(#ffe7a4,#f6b94b 48%,#dc8d2d 52%,#f6c765);color:#56351a;border-color:#fff3bd;border-bottom-color:#a2672b;text-shadow:0 1px #fff1ba}
.toy-gui #speed-btn[data-access=auto-finish]{box-shadow:var(--control-depth),0 0 12px #ffc95377;opacity:1}
.toy-gui .game-top #speed-btn:active:not(:disabled),.toy-gui #world-locate:active{transform:translateY(3px);box-shadow:inset 0 2px 4px #0004,0 1px #57382b}
.toy-gui .coin-art,.toy-gui .reward-coin,.small-coin{display:inline-block;flex:none;width:28px;height:28px;background:url('art/coin-small.svg') center/contain no-repeat}
.toy-gui .coin-art{width:33px;height:33px}.toy-gui .reward-coin{width:22px;height:22px}
.toy-gui .gui-award{background:url('art/medal-large.svg') center/contain no-repeat}
.coin-capsule,.stock-capsule{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border:1px solid #c09657;border-bottom:3px solid #a97c40;border-radius:10px;background:#fff3cc;color:#513623;font-weight:800}
.run-limit{margin-left:10px;font-size:13px}.toy-gui #booster-use{display:flex;align-items:center;justify-content:center;gap:16px;flex:none}
.button-price{display:inline-flex;align-items:center;gap:4px;padding-left:12px;border-left:1px solid #eaffb477;font-size:17px}.button-price .small-coin{width:26px;height:26px}
.item-price-art{width:28px;height:28px;background:url('art/items-v10.png') 0% 100%/200% 200% no-repeat}
/* Active radar is an entitlement, never a purchase, even when inventory reaches zero. */
.toy-gui .tools-deck button.item-button.is-active:after{content:'';left:0;top:0;width:15px;height:15px;border:2px solid #fff1b6;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f1ffff,#54eee3 40%,#177878 80%);box-shadow:0 2px #385258,0 0 6px #69ffed}
.toy-gui .tools-deck button.item-button.is-active{border-color:#d7ffe4;box-shadow:inset 0 2px #fffce4,0 4px #433b3c,0 0 9px #6fe5cc55}
.toy-gui .tools-deck button.item-button[data-item-state=unavailable]{background:linear-gradient(#e2dfc7,#aebfc3);border-color:#eff1db;border-bottom-color:#627e87}
.toy-gui .tools-deck button.item-button[data-item-state=unavailable] .gui-item-art{filter:saturate(.4);opacity:.65}
.toy-gui .tools-deck button.item-button[data-item-state=used]{background:linear-gradient(#c5b68f,#a08c68);border-color:#dfc995;border-bottom-color:#726143;box-shadow:inset 0 3px 5px #53472966,0 2px #433b3c}
.toy-gui .tools-deck button.item-button[data-item-state=used] .gui-item-art{filter:saturate(.6);opacity:.72}
/* Select where a ship actually is; confirm once in the fixed footer. */
.toy-gui #booster-dialog[data-item=priority]:not([data-mode=purchase]){gap:8px;overflow:hidden}
.toy-gui #booster-dialog[data-item=priority]:not([data-mode=purchase]) .gui-item-hero{display:none}
.toy-gui #booster-dialog[data-item=priority] #booster-description{font-size:14px}
.toy-gui #booster-dialog[data-item=priority] .dialog-heading{min-height:82px;padding-top:32px;padding-bottom:12px}
.toy-gui #booster-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;max-height:340px;min-height:0;overflow:auto;padding:0 3px 8px;border-radius:12px;scrollbar-width:thin;overscroll-behavior:contain;flex:1 1 auto}
.toy-gui #booster-options:not(:empty){background:linear-gradient(#2d506b,#18344c);border:2px solid #b88e4c;border-bottom:4px solid #8c6538}
.priority-lane{min-width:0;display:flex;flex-direction:column;gap:8px;padding:0 1px 6px}.priority-lane h3{position:sticky;top:0;z-index:2;display:grid;place-items:center;height:30px;min-height:30px;margin:0;background:#274a64;color:#fff0bd;font-size:15px;border-bottom:1px solid #8b9e94}
.toy-gui #booster-options button.priority-option,.priority-front{position:relative;flex:none;display:block;width:100%;height:72px;min-height:64px;padding:0;border:2px solid #809eaf;border-bottom:4px solid #102c45;border-radius:12px;background:linear-gradient(#426780,#24455f);box-shadow:inset 0 1px #b7ccd166,0 2px #132a3c;overflow:visible}
.priority-front{border:1px dashed #859caa;background:none;box-shadow:none;opacity:.65}.priority-ship{inset:0 0 8px}
.toy-gui #booster-options :is(.priority-option,.priority-front) b{position:absolute;bottom:1px;right:50%;transform:translateX(50%);display:grid;place-items:center;min-width:27px;height:26px;padding:1px 4px;border:1px solid #fff1b6;border-bottom:3px solid #ad844c;border-radius:7px;background:linear-gradient(#fff4ce,#edcd89);color:#503923;font-size:17px;line-height:20px;text-shadow:none}
.toy-gui #booster-options button.priority-option[aria-pressed=true]{border-color:#fff4b6;border-bottom-color:#ba8f3e;background:radial-gradient(ellipse,#648992,#2e5968);box-shadow:inset 0 0 0 1px #fff3ad,0 0 7px #ffe49d}
.empty-priority{height:64px;border:1px dashed #8ba3ac;border-radius:12px;margin-top:0}
/* Settings keeps a fixed title/close and one scrollable body. */
.toy-gui #settings-dialog{overflow:hidden;gap:8px}.toy-gui #settings-dialog .dialog-heading{min-height:80px;padding:30px 8px 14px}
.settings-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;padding:2px 3px 8px}
.toy-gui #settings-dialog .popup-scene{display:none}.settings-scroll>*{flex:none}.toy-gui #settings-dialog .toggle{min-height:52px}
.toy-gui #settings-dialog .account-card{display:flex;flex-direction:column;gap:8px;padding:12px}.toy-gui #settings-dialog .legal-link{padding:8px 0}
.toy-gui #confirm-dialog #confirm-cancel{order:0}.toy-gui #confirm-dialog #confirm-action{order:1}
.toy-gui .result-mascot{width:112px;height:128px;object-fit:contain}
/* Real game assets, with brief captions, teach the same visual language. */
.toy-gui #help-dialog{gap:12px;overflow:hidden}.toy-gui #help-dialog .help-page{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1 1 auto;padding:0 2px 4px}.toy-gui #help-dialog #help-done,.toy-gui #help-dialog .help-tabs{flex:none}.toy-gui #help-dialog .dialog-heading{min-height:82px;padding-top:32px;padding-bottom:12px}
.lesson-flow{display:grid;grid-template-columns:1fr 18px 1fr 18px 1fr;align-items:center;gap:0;margin:4px 0 14px}.lesson-flow figure{margin:0;min-width:0;text-align:center}.lesson-flow figcaption{font-size:12px;font-weight:800;color:#60432d;margin-top:7px;white-space:nowrap}
.lesson-picture{position:relative;height:84px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#e9c88d55}.lesson-ship{position:absolute;inset:0;background:url('art/motherships-v4.png') 0% 100%/300% 200% no-repeat}
.lesson-tap{position:absolute;width:18px;height:18px;border:3px solid #fff9c9;border-radius:50%;bottom:6px;left:42%;box-shadow:0 0 0 2px #9b6c35;animation:lesson-tap 2.6s ease-in-out infinite}
.lesson-worker{position:absolute;left:0;bottom:8px;width:28px;height:34px;background:url('art/workers-v12.png') 0% 100%/300% 200% no-repeat;animation:lesson-walk 2.6s ease-in-out infinite}
.lesson-dock{background:url('art/dock-pad.png') center/contain no-repeat}.lesson-arrow{color:#a57137}.lesson-arrow .ui-icon{width:17px;height:17px;filter:none}
.lesson-tile.pixel{position:relative;display:inline-block;flex:none;width:38px;height:38px;--cargo-cell:38px;border-radius:4px;background:var(--c);box-shadow:inset 2px 2px #ffffff88,inset -2px -2px #176b8b55,0 2px #8f9c95}
.lesson-before-after{display:flex;justify-content:center;align-items:center;gap:12px;padding:8px 0}.lesson-before-after>.ui-icon{width:22px;height:22px;color:#ab7332;filter:none}.lesson-link{height:3px;width:12px;background:#b68643;border-radius:2px}
.lesson-rule{padding:10px 4px;border-radius:12px;background:#fff5d055;margin:8px 0}.toy-gui #help-dialog .lesson-rule p{text-align:center;margin:5px 0 0;font-size:14px}
.toy-gui #help-dialog .lesson-caption{text-align:center;font-size:13px;line-height:1.6;margin:6px 0}
.lesson-items{display:grid;grid-template-columns:1fr;gap:6px}.lesson-items>div{display:flex;align-items:center;gap:10px;padding:3px 9px;background:#fff4cc66;border-radius:10px}.lesson-item-art{width:46px;height:46px;flex:none;background:url('art/items-v10.png') 0 0/200% 200% no-repeat}.toy-gui #help-dialog .lesson-items p{margin:0;font-size:14px}.lesson-items b,.lesson-items p span{display:block}.lesson-items p span{font-size:12px;margin-top:2px}.lesson-heart{display:flex;align-items:center;justify-content:center;gap:10px;border-top:1px solid #b98e5244;padding-top:8px}.lesson-heart img{width:34px;height:34px}.toy-gui #help-dialog .lesson-heart p{font-size:12px;margin:0}
@keyframes lesson-walk{0%,100%{transform:translateX(0)}45%,60%{transform:translateX(20px)}}@keyframes lesson-tap{0%,100%{transform:scale(.8);opacity:.4}40%,60%{transform:scale(1.1);opacity:1}}
@media(max-height:700px){
 .toy-gui .game-shell .tools-deck{margin-top:12px}
 .toy-gui #booster-dialog[data-item=priority] .dialog-heading{min-height:72px;padding-top:28px}.toy-gui #booster-options{max-height:240px}.toy-gui #booster-options button.priority-option,.priority-front{height:64px}
 .toy-gui .game-shell .queues{height:108px;min-height:108px}.toy-gui .game-shell .queue .unit:not(button){height:32px;max-height:32px;margin-top:6px;background:linear-gradient(90deg,var(--c),#20354d 55%);border:1px solid #ba9a66;border-radius:7px;opacity:1}
 .toy-gui .game-shell .queue .unit:not(button) .drone-art{inset:0 auto 0 0;width:34px;height:29px}.toy-gui .game-shell .queue .unit:not(button) .unit-count{left:auto;right:1px;bottom:2px;transform:none;min-width:25px;height:25px;line-height:22px;font-size:16px;padding:0 3px;border-radius:5px}
 .toy-gui #settings-dialog .dialog-heading,.toy-gui #help-dialog .dialog-heading{min-height:68px;padding-top:26px;padding-bottom:10px}.toy-gui #help-dialog{gap:8px}.lesson-items{gap:3px}.lesson-item-art{width:40px;height:40px}.lesson-picture{height:70px}
}
@media(prefers-reduced-motion:reduce){.lesson-worker,.lesson-tap{animation:none}}.reduced .lesson-worker,.reduced .lesson-tap{animation:none}
