/* Toy spaceport: objects share one deck; only controls look like buttons. */
.home-top{gap:10px;align-items:center}
.home-wallet{display:flex;gap:10px;align-items:center;min-width:0}
.home-wallet .life-pill,.wallet-coins{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;border:2px solid #aea9d1;border-bottom:4px solid #302442;border-radius:16px;background:linear-gradient(#4c456d,#2b2949);box-shadow:inset 0 2px #e8ddff55,0 3px 0 #17192f;color:#fff8e5;text-shadow:0 1px #13182b}
.home-wallet .life-pill{padding:3px 9px 3px 4px}
.life-pill img{width:38px;height:38px;filter:drop-shadow(0 2px 1px #18152666)}
.life-pill b,.wallet-coins b{font-size:20px;line-height:1;font-variant-numeric:tabular-nums}
#life-timer{font-size:13px;font-weight:800;min-width:38px;font-variant-numeric:tabular-nums}
.wallet-plus{font-size:22px;color:#fae2a1;line-height:1}
.wallet-coins{padding:4px 10px 4px 7px}
.coin-art{display:grid;place-items:center;flex:none;width:29px;height:29px;border:2px solid #ffe89a;border-bottom:4px solid #b56c26;border-radius:50%;background:linear-gradient(#ffe68b,#f7b93e);color:#845019;text-shadow:0 1px #fff2bd;box-shadow:inset 0 1px #fff8c9,0 2px #422c37;font-size:18px}
.play-button .entry-cost{display:inline-flex;align-items:center;gap:4px;font-size:22px;color:#673420}
.entry-cost img{width:32px;height:32px;vertical-align:middle}
.hud-lives{display:flex;align-items:center;justify-content:center;gap:4px;height:21px;color:#fff5e2;font-size:15px;line-height:1;text-shadow:0 1px #251e36;margin-top:-3px}
.hud-lives img{width:23px;height:23px}
#lives-dialog{text-align:center}
#lives-dialog .dialog-heading{text-align:left}
.life-hero{display:block;width:96px;height:96px;margin:8px auto 3px;filter:drop-shadow(0 5px 0 #20233d66)}
#life-dialog-count{display:block;font-size:32px;color:#fff4cc;line-height:1.3;font-variant-numeric:tabular-nums}
#life-dialog-timer{font-size:18px;color:#fff1c9;font-weight:800;font-variant-numeric:tabular-nums}
.life-rules,#life-balance,#confirm-text{font-size:16px;line-height:1.6;color:#edf2ff}
#life-balance{font-size:14px;margin-bottom:0}
#lives-dialog .primary,#confirm-dialog button,#result-home{width:100%;min-height:48px;margin-top:12px}
#confirm-title{font-size:24px;color:#fff5d8;margin-top:0}
#confirm-text{margin:16px 0}
@media(max-width:350px){.home-wallet{gap:6px}.home-wallet .life-pill{gap:4px;padding-right:6px}.life-pill img{width:31px;height:31px}.wallet-coins{gap:4px;padding-right:7px}.life-pill b,.wallet-coins b{font-size:18px}.wallet-plus{font-size:18px}.home-top{gap:6px}}
.game-shell{overflow:clip;background:radial-gradient(ellipse at 12% 15%,#8c739e66,transparent 55%),linear-gradient(155deg,#514a79,#303253 64%,#252640)}
.game-shell:before{background-size:73px 97px;opacity:.25}
.game-shell:after{content:'';position:absolute;z-index:-1;left:-12%;right:-12%;bottom:0;height:41%;border-radius:50% 50% 0 0/12% 12% 0 0;background:linear-gradient(#73758d,#4d526f 45%,#363952);border-top:4px solid #b2aec4;box-shadow:0 -8px 0 #24253d,0 -9px 0 #85839f;pointer-events:none}
.game-shell .board-panel{padding:10px 12px 12px;border:3px solid #f0e8cf;border-bottom:7px solid #a89eac;border-radius:28px;background:linear-gradient(#eee5d2,#d8d1c4);box-shadow:inset 0 2px #fff9e5,0 5px 0 #4d465e,0 11px 15px #151a3566}
.board-stage{background:radial-gradient(ellipse,#fff8e7,#e4dac5);border-radius:16px;box-shadow:inset 0 3px 6px #96889333}
.picture-heading{color:#423b58;padding-bottom:8px;font-size:16px}
#picture-progress{color:#423b58;background:#d3c8b9;font-size:14px}
.pixel{border-radius:2px;background:linear-gradient(145deg,#ffffff35,transparent 45%,#00000016),var(--c);box-shadow:inset 0 2px 0 #fff8,inset 2px 0 0 #ffffff40,inset -2px -2px 0 #0003,0 2px 0 #574c6466}
.pixel.route-target{outline:2px solid #463458;outline-offset:-1px;box-shadow:inset 0 0 0 3px #fff5,0 0 0 1px #fff9e6;z-index:1}
.game-shell .queue button.unit.route-choice:before{border-bottom:4px solid #fff1a0;background:radial-gradient(ellipse,#fff2bbaa,transparent 72%);box-shadow:0 2px 0 #ad773b,0 0 12px #fff2b366}
.game-shell .progress-track{height:8px;min-height:8px;background:#22243c;border-color:#898099;margin-top:11px}
.progress-track>div{background:linear-gradient(#e7ffbd,#a6d963);box-shadow:inset 0 1px #fff9}
.flight-corridor span{width:22px;height:5px;background:#ddd8bf77;border-radius:2px;box-shadow:0 1px #282a4366}
.flight-corridor.has-route-cue>span{display:none}
#route-cue{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:0 9px;border:1px solid #fff7dd;border-radius:12px;background:#fff0cc;color:#302c44;font-size:14px;line-height:20px;font-weight:800;white-space:nowrap;box-shadow:0 2px 0 #282a4366}
#route-cue[hidden]{display:none}
#route-cue:before{content:'';width:10px;height:10px;flex:none;border:1px solid #302c4466;border-radius:3px;background:var(--c);box-shadow:inset 0 1px #fff9}
.game-shell .slots{gap:1px;margin-bottom:12px}
.slot .unit{bottom:19%;height:98%;width:100%;left:0;z-index:2}
.slot .unit .drone-art{inset:0 -7% -4%}
.unit .drone-art,.flight-mothership .drone-art{position:absolute;inset:0;background-image:url('art/motherships-v4.png');background-size:300% 200%;background-position:var(--sx) var(--sy);pointer-events:none;filter:drop-shadow(0 4px 2px #17213e44)}
.unit>span.unit-count{background:#fff7dd;color:#302c44;border:2px solid #fffbea;box-shadow:0 3px 0 #746478,0 4px 4px #151b3a55;text-shadow:none;border-radius:9px;font-weight:950;z-index:3}
.slot .unit-count{bottom:-5px}
.color-code{display:none}.color-patterns .color-code{display:block}
.slot.dispatching:after{content:'';position:absolute;bottom:30%;left:34%;width:32%;height:5px;border-radius:50%;background:#e6ffce;box-shadow:0 0 8px #bbff92;pointer-events:none}
.game-shell .queues{padding:10px 9px 6px;gap:10px;background:linear-gradient(#34374e99,#252940b3);border:0;border-top:2px solid #a1a1b144;border-bottom:4px solid #25283d;box-shadow:inset 0 2px 9px #171c3544,0 2px 0 #88899e77;border-radius:24px}
.game-shell .queue button.unit,.game-shell .queue button.unit:disabled{background:none;border:0;box-shadow:none;filter:none;opacity:1}
.game-shell .queue button.unit:before{content:'';position:absolute;inset:65% 5% -3%;border-radius:50%;background:radial-gradient(ellipse,#e6ebfc55,transparent 72%);border-bottom:3px solid var(--c);box-shadow:0 2px 2px #12192a33;z-index:0}
.queue button.unit .drone-art{inset:-12% -8% 2%}
.queue button.unit>span.unit-count{bottom:-6px}
.game-shell .queue .unit:not(button){opacity:.85;margin-top:9px}
.game-shell .queue .unit:not(button) .drone-art{inset:-2px -8%}
.queue button.unit:disabled .drone-art{filter:drop-shadow(0 4px 2px #17213e44)}
.game-shell .queue button.unit.hinted{outline:3px solid #ffe783;outline-offset:1px;box-shadow:0 0 16px #ffe78366}
.empty-lane{border-color:#b2afc133;background:#121c3233}
.game-shell .game-actions button{color:#302b49;text-shadow:0 1px #fff9;box-shadow:inset 0 2px #fff8,0 4px #29213f,0 7px 9px #17203c55;border:2px solid #e2daf0;border-bottom:4px solid #8d80ad;background:linear-gradient(#e2d8f0,#b4a3d7)}
.game-actions button .ui-icon{color:#4b3b77;filter:drop-shadow(0 1px #fff9)}
.game-shell .game-actions #hint-btn{background:linear-gradient(#ffedb1,#f4c45c);border-color:#fff2c9;border-bottom-color:#b4843f;color:#493510}
.game-actions #hint-btn .ui-icon{color:#785313}
.game-shell .game-actions button:disabled{background:linear-gradient(#9b99b0,#7e7d97);border-color:#b6b2c6;border-bottom-color:#5a5874;color:#25283f;text-shadow:none}
.game-actions button:disabled .ui-icon{color:#34364f}
.flight-mothership{position:absolute;left:0;top:0;width:64px;height:64px;will-change:transform;z-index:3;filter:drop-shadow(0 5px 4px #17365a66)}
.cargo-worker{position:absolute;left:0;top:0;width:32px;height:32px;will-change:transform;z-index:4}
.worker-body{position:absolute;inset:0;background:url('art/worker-v4.png') center/contain no-repeat;filter:drop-shadow(0 1px 1px #25355455)}
.worker-shadow{position:absolute;bottom:-1px;left:5px;width:23px;height:7px;background:#22293e33;border-radius:50%;filter:blur(1px)}
.cargo-worker .carried-cargo{width:14px;height:14px;left:10px;top:15px;border-radius:3px;border:1px solid #fffa;box-shadow:inset 1px 2px #ffffff88,inset -2px -3px #0003,0 2px 2px #121d3b66;background:var(--c);opacity:0;z-index:1}
.cargo-worker[data-phase='returning'] .carried-cargo:after{content:'';position:absolute;left:-3px;right:-3px;bottom:1px;height:4px;border-left:4px solid #fff0c4;border-right:4px solid #fff0c4;border-radius:2px}
.dock-pulse{border-color:#f3ffbb;inset:20%;border-width:2px}
@media(max-height:740px){
 .game-shell .board-panel{padding:8px;border-radius:22px;border-bottom-width:6px}
 .picture-heading{font-size:14px;padding-bottom:4px}
 .game-shell .queues{padding:8px 8px 4px}
 .game-shell .queue .unit:not(button){margin-top:7px}
 .unit>span.unit-count{border-width:1px}
 .slot .unit-count{bottom:-3px}
 .flight-corridor{height:26px}
}
/* One action remains; leave the rest of the surface to the cargo and ships. */
.game-shell .game-actions{justify-content:center;min-height:52px;margin-top:12px}
.game-shell .game-actions #restart-btn{flex:0 1 180px;min-height:52px;flex-direction:row;gap:8px;padding:7px 12px}
/* Rule feedback and reusable item controls, with a compact 320px layout. */
.picture-heading{gap:6px}.picture-heading #picture-name{margin-right:auto}
#difficulty-badge{font-size:11px;line-height:18px;border-radius:7px;padding:0 6px;background:#c5d3ae;color:#304823;white-space:nowrap}
#difficulty-badge[data-grade='1']{background:#c2dbef;color:#19496f}#difficulty-badge[data-grade='2']{background:#efc7a4;color:#683612}#difficulty-badge[data-grade='3']{background:#d9bedf;color:#5b246b}
.game-shell .scan-rule{display:flex;align-items:center;justify-content:center;gap:9px;min-height:32px;margin:4px 0 -6px;padding:0 6px;background:none;border:0;border-radius:7px;box-shadow:none;color:#433a55;text-shadow:none;font-size:12px;font-weight:800}
.scan-rule span{font-size:17px}.pixel.next-cargo:after{content:'';position:absolute;inset:16%;border:1.5px solid #fffef1;border-radius:50%;box-shadow:0 0 0 1px #352c4e;pointer-events:none}
.pixel.iced{background:linear-gradient(135deg,#d5faffab,#8bcee955),var(--c);outline:1px solid #c9fbff;outline-offset:-1px}
.pixel.locked{filter:saturate(.45) brightness(.72)}
.pixel .cargo-ice,.pixel .cargo-lock,.pixel .cargo-key{display:grid;place-items:center;position:absolute;inset:10%;font-style:normal;font-size:clamp(7px,2.2vw,12px);font-weight:950;line-height:1;z-index:2;color:#153d5c;text-shadow:0 1px #fff}
.pixel .cargo-ice{background:linear-gradient(135deg,#e9fbffbb,#7ac5e9aa);border-radius:2px;border:1px solid #f4ffff}
.pixel .cargo-lock{inset:27% 14% 8%;border-radius:2px;background:#fff4bf;color:#5c3b26;box-shadow:0 -3px 0 -1px #fff2c9}
.pixel .cargo-lock:before{content:'';position:absolute;left:25%;right:25%;top:-5px;height:5px;border:1px solid #fff2c9;border-bottom:0;border-radius:3px 3px 0 0}
.pixel .cargo-key{border-radius:50%;background:#ffe287;color:#513b19;box-shadow:0 1px #6a4b35}.pixel .cargo-key:after{content:'';position:absolute;right:-3px;width:4px;height:2px;background:#ffe287}
.booster-bar{display:flex;gap:9px;margin-top:10px;min-height:57px;flex:none}
.booster-bar button{flex:1;min-width:0;min-height:57px;padding:3px 2px;border:2px solid #fff0bd;border-bottom:4px solid #ac753a;border-radius:14px;background:linear-gradient(#fff1b0,#e8bd68);color:#493419;text-shadow:0 1px #fff3c9;box-shadow:inset 0 2px #fff7df,0 3px #29213f;display:grid;grid-template-columns:25px auto;justify-content:center;align-items:center;column-gap:3px}
.booster-bar button>span{font-size:28px;font-weight:900;grid-row:span 2}.booster-bar button b{font-size:13px;line-height:17px}.booster-bar button small{font-size:11px;line-height:14px}.booster-bar button:disabled{background:linear-gradient(#cbc6d4,#a3a0b3);border-color:#d5cfdf;border-bottom-color:#797388;color:#383546;text-shadow:none}
.game-shell .game-actions{min-height:48px;margin-top:8px}.game-shell .game-actions #restart-btn{min-height:48px;padding:4px 10px}
.game-shell .flight-corridor{height:32px;flex-shrink:0}
#booster-description{color:#f4f0ff;line-height:1.6}#booster-balance{color:#ffe8ae;font-size:14px}#booster-use{width:100%;min-height:48px}#booster-options{display:grid;gap:8px;max-height:48vh;overflow-y:auto}.priority-option{border-left:8px solid var(--c);min-height:48px;font-size:14px;text-align:left}
.tools-deck{display:flex;gap:7px;margin-top:12px;flex:none}.tools-deck .booster-bar{flex:3;margin:0;gap:7px}.tools-deck .game-actions{flex:1;margin:0;min-width:0}.tools-deck .booster-bar button{display:flex;flex-direction:column;gap:1px;padding:3px 1px}.tools-deck .booster-bar button>span{font-size:22px;line-height:24px}.tools-deck .booster-bar button b{font-size:12px;line-height:15px}.tools-deck .booster-bar button small{font-size:10px;line-height:13px}.tools-deck .game-actions #restart-btn{width:100%;flex:1;min-height:64px;flex-direction:column;gap:3px;padding:4px 1px}.tools-deck .game-actions .button-label{font-size:12px;white-space:nowrap}.tools-deck .game-actions .ui-icon{width:24px;height:24px}
@media(max-height:740px){.game-shell .board-panel{min-height:150px}.game-shell .scan-rule{min-height:26px;font-size:11px}.booster-bar{margin-top:8px;min-height:52px;gap:6px}.booster-bar button{min-height:52px}.booster-bar button>span{font-size:23px}.booster-bar button b{font-size:12px}.game-shell .flight-corridor{height:22px}.game-shell .queues{height:105px;min-height:105px}.game-shell .game-top{min-height:50px;height:50px;margin-bottom:6px}.game-shell .slots{height:52px}.game-shell .game-actions{margin-top:7px}.game-shell{padding-bottom:8px}}
.game-shell .tools-deck .game-actions{margin-top:0}
@media(max-height:620px){.game-shell .board-panel{padding:5px 7px 6px;border-bottom-width:5px}.game-shell .picture-heading{line-height:17px;padding-bottom:2px}.game-shell .scan-rule{margin-top:2px;margin-bottom:-3px;min-height:22px}.game-shell .tools-deck{margin-top:8px}.game-shell .flight-corridor{height:18px}.game-shell .progress-track{margin-top:7px}.game-shell .queues{height:99px;min-height:99px}.game-shell .slots{margin-bottom:8px}}
.tools-deck .game-actions .button-label{font-size:15px}.tools-deck .booster-bar button b{font-size:14px;line-height:18px}.tools-deck .booster-bar button small{font-size:11px}.game-shell .scan-rule span{font-size:11px}

/* Planning and truthful retry feedback, available without spending currency. */
.queue-preview{display:flex;flex:1;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:3px;margin:0;min-height:64px;border:2px solid #9386bd;border-bottom:4px solid #584878;border-radius:14px;padding:4px 1px;background:linear-gradient(#e9e0f6,#b9a6da);color:#342644;font:inherit;font-size:13px;font-weight:800;cursor:pointer}#queue-dialog{max-width:620px;width:calc(100% - 28px);max-height:86dvh;overflow:auto}#queue-plan-focus{font-size:14px;line-height:1.6;color:#eee8ff}#queue-plan{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:18px}#queue-plan h3{font-size:13px;text-align:center}.plan-ship{display:grid;gap:4px;border:2px solid var(--c);border-radius:10px;background:#f7f0ff;color:#30213f;padding:7px 4px;margin-bottom:7px;text-align:center;font-size:12px}.plan-ship small{font-size:10px;color:#6a517e}#result-text{white-space:pre-line;line-height:1.65}

.queue-preview>span{font-size:26px;line-height:26px}.queue-preview>b{font-size:14px;line-height:18px}.tools-deck .game-actions .button-label{font-size:13px}

.tools-deck .queue-preview{flex:0 0 48px}.tools-deck .booster-bar button b{white-space:nowrap}@media(max-width:350px){.tools-deck .booster-bar button b{font-size:12px;letter-spacing:-.1px}.tools-deck .booster-bar button small{font-size:10px}.tools-deck .queue-preview b{font-size:12px}}
