/* Mobile-first command deck. The scene remains the primary surface. */
body.compact{--panel:#111c32f5;--line:#a6c9ef24;--text:#e4edfc;--muted:#a1b5d1;--accent:#a9deef;font-size:13px}
.compact button{touch-action:manipulation}.compact button:disabled{opacity:.42}.compact select,.compact input[type=number]{min-height:44px;font-size:14px}.compact kbd{display:none}
.compact .topbar{height:66px;padding:0 22px;gap:12px;background:linear-gradient(#091329ee,#09132980);border:0;backdrop-filter:blur(8px)}
.compact .brand{min-width:0;padding:0 24px 0 0;border:0;gap:8px;font-size:15px}.compact .brand small{display:none}.compact .brand svg{width:24px}
.compact .resource{min-width:94px;height:40px;padding:0 10px;border:0;gap:7px}.compact .resource strong{font:500 18px system-ui;letter-spacing:0;color:#edf6ff}.compact .resource small{font-size:10px;color:#b4c5df;margin-bottom:1px}.compact .resource-icon{font-size:17px;display:block}.compact .capacity{display:none}
.compact .top-actions{position:static;margin-left:auto;max-width:none;gap:8px;padding:0;flex-wrap:nowrap}.compact .top-actions button{width:44px;height:44px;padding:11px;border:1px solid #a0c7e62b;background:#17243c99;border-radius:50%}.compact .top-actions svg{width:22px;height:22px;fill:none;stroke:#c6daf3;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.compact .command-column,.compact .fleet-dock,.compact .camera-caption,.compact .time-control,.compact .contact,.compact .welcome,.compact .boss-hud,.compact .rebuild-hud,.compact #open-drawer,.compact .drawer-tabs{display:none!important}
#minimal-hud{position:absolute;inset:0;pointer-events:none;z-index:6}#minimal-hud button,#main-nav,#quick-ships{pointer-events:auto}#flight-status{position:absolute;top:78px;left:24px;right:24px;display:flex;align-items:center;gap:9px;font-size:12px;color:#b6c9e2;pointer-events:none}#flight-state{font-size:12px;font-weight:500;color:#e0edff}.status-light{width:5px;height:5px;background:#a7e2eb;border-radius:50%;box-shadow:0 0 9px #8ce4ff77}#flight-distance{font-size:11px;color:#9db0ce;border-left:1px solid #b4c1d533;padding-left:9px}#focus-mother{margin-left:auto;border:0;background:#10203999;border-radius:20px;color:#eddda9;min-height:36px;padding:5px 12px;font-size:11px}#focus-mother span{margin-right:5px;color:#bbcae1}#focus-mother.hurt b{color:#ff9f92}
#live-notice{position:absolute;top:122px;left:24px;max-width:min(500px,calc(100% - 48px));padding:10px 14px;border-radius:5px;background:#51213ad6;border-left:2px solid #ff9a9c;color:#ffd5d6;font-size:12px;line-height:1.5}
#bonus-chip{position:absolute;top:166px;right:24px;background:#36234dbb;border:1px solid #bc9fe466;color:#eddbff;border-radius:22px;min-height:44px;font-size:11px;padding:9px 16px}#camera-reset{position:absolute;bottom:220px;right:24px;width:44px;height:44px;border:1px solid #b4ccec33;background:#13243a99;border-radius:50%;padding:11px}#camera-reset svg{width:22px;fill:none;stroke:#d4e6ff;stroke-width:1.4}
#compact-controls{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:440px;max-width:100%;padding:0 16px env(safe-area-inset-bottom);background:linear-gradient(transparent,#071126a8 15%,#081226ef 70%);pointer-events:auto}
#quick-ships{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:10px 0;margin-bottom:6px}#quick-ships::-webkit-scrollbar{display:none}#quick-ships button{min-height:44px;flex:0 0 auto;display:flex;align-items:center;gap:7px;border:1px solid #a6c9e62b;background:#15243ca6;padding:8px 12px;border-radius:24px;color:#b3c5de;font-size:11px;white-space:nowrap}#quick-ships button.active{color:#f0e0bb;background:#2f3345e8;border-color:#d6bf8c99}#quick-ships i{width:5px;height:5px;border-radius:50%;flex-shrink:0}#quick-ships small{font:9px system-ui;color:#8c9fb9}
#flight-actions{display:grid;grid-template-columns:1.15fr 1fr;gap:10px}#flight-actions button{min-height:54px;border-radius:12px;font-size:14px;font-weight:550;padding:10px 17px;justify-content:center}#flight-actions #salvage-button{margin:0;background:linear-gradient(125deg,#74c3da,#b4e8ee);color:#122740;border:0;gap:12px}#salvage-button .gas-orb{width:22px;height:22px;flex:0 0 22px;border:1px solid #efffffcc;border-radius:50%;background:radial-gradient(circle at 35% 30%,#edffff,#4699b6 60%,#287592);box-shadow:0 0 14px #e8ffff33}#flight-actions #salvage-button b{font-size:14px;font-weight:650}#flight-actions #salvage-button small{font:10px system-ui;color:#28516b;margin-top:3px}#flight-actions #depart{background:#ead4a8;color:#322a27;border:0}#flight-actions #recall{background:#18263e;color:#dfd9c5;border:1px solid #dbbf8b66}
#main-nav{display:grid;grid-template-columns:repeat(3,1fr);height:70px;margin-top:9px;border-top:1px solid #a5c3e21c}#main-nav button{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;border:0;background:none;color:#9fb3d0;font-size:13px}#main-nav button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}#main-nav button.active{color:#f2dfb7;background:#d8c1920a}#main-nav button.active:before{content:'';position:absolute;top:-1px;left:25%;right:25%;height:2px;background:#efdbb2}#main-nav i{position:absolute;right:22%;top:15px;width:4px;height:4px;background:#a5def7;border-radius:50%}
#compact-controls #emergency-shield{position:absolute;bottom:202px;left:16px;width:auto;max-width:250px;min-height:40px;background:#173b4be0;border-radius:20px;font-size:11px;padding:8px 13px}#compact-controls #salvage-feedback{right:33%;top:62px;font-size:12px;color:#fff;z-index:3}
#sheet-backdrop{position:fixed;inset:0;background:#040b1c54;border:0;z-index:19;cursor:default}.compact #drawer{position:absolute;top:118px;bottom:24px;right:22px;left:auto;width:380px!important;border:1px solid #91b0d23b;border-radius:16px;z-index:20;background:#111b30f7;box-shadow:0 20px 80px #0007;backdrop-filter:blur(20px);display:flex;max-height:calc(100dvh - 142px);transition:none}.compact #drawer.collapsed{display:none}.compact #drawer>section{padding:10px 20px 24px;min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#586983 transparent}.sheet-header{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:20px 20px 13px}.sheet-header small{font:8px ui-monospace;letter-spacing:2px;color:#8aabc9}.sheet-header h2{font-size:22px;font-weight:550;margin:4px 0 0;color:#eef4ff}.sheet-header #sheet-capacity{font-size:11px;color:#91a6c3;margin-left:auto}.sheet-header button{width:44px;height:44px;border:0;background:#a7c3e20c;color:#bacce6;border-radius:50%;font-size:26px}#sheet-sections{display:flex;flex:0 0 auto;gap:4px;margin:0 20px 7px;padding:4px;background:#08122688;border-radius:9px}#sheet-sections button{flex:1;border:0;min-height:40px;background:transparent;font-size:12px;color:#8fa9c9;border-radius:6px}#sheet-sections .active{background:#263a55;color:#e1edff}
.compact .panel-heading{display:none}.compact .small-callout{font-size:11px!important;line-height:1.8;padding:9px 0 14px}.compact .panel-note{font-size:11px!important;color:#98aecb;line-height:1.8!important}.compact .section-title{font-size:12px;color:#d1dff3;margin:21px 0 10px}.compact .section-title>span{font-size:10px}.compact .ship-card{grid-template-columns:62px 1fr;padding:16px 0;gap:0 12px}.compact .ship-art{border:0;background:none}.compact .ship-art svg{width:60px;height:38px}.compact .ship-art>span{font-size:9px}.compact .ship-info h3{font-size:15px}.compact .ship-info .role-tag{display:none}.compact .ship-info p{font-size:11px;line-height:1.7;margin:3px 0;color:#9ab0ce}.compact .ship-bottom .cost{font-size:12px;color:#ddcda7}.compact .ship-bottom .cost small{font:10px system-ui;display:block;margin:3px 0 0}.compact .ship-bottom button{min-height:44px;min-width:96px;font-size:12px;border-radius:8px;padding:8px 10px;background:#3d647944;border-color:#a3d7e64a}.compact .unlock-label{font-size:11px;line-height:1.5}.compact .ship-card.locked{opacity:.5}
.compact .tech-row{grid-template-columns:1fr;gap:8px}.compact .tech-node{padding:16px;border-radius:10px;min-height:0}.compact .tech-node+button:before{display:none}.compact .tech-node strong{font-size:14px}.compact .tech-node p{font-size:11px;line-height:1.7}.compact .tech-node small{font-size:9px;letter-spacing:1px;min-height:0}.compact .tech-cost{font-size:11px}.compact .branch-heading span{font-size:12px}.compact .tech-node em{font-size:10px}.compact .queue-empty,.compact .queue-item{font-size:11px;padding:13px;border-radius:8px}.compact .queue-item b,.compact .queue-item span{font-size:11px}
.compact #fleet-cards{display:grid;grid-template-columns:1fr 1fr;height:auto;overflow:visible;gap:10px;padding:0}.compact .fleet-card.role-card,.compact .fleet-card.mother-card{position:relative;left:auto;min-width:0;width:100%;height:132px;padding:12px;flex:auto;border-radius:10px;background:#18273d!important;border-top:1px solid var(--role);border-color:#8ba1bc33}.compact .fleet-card.role-card.selected{border-color:var(--role);background:#273851!important}.compact .role-card .card-class b,.compact .mother-card .card-class b{font-size:13px}.compact .role-card svg,.compact .mother-card svg{height:46px}.compact .role-card p{display:none}.compact .role-card .card-name{font-size:10px;flex-direction:column;gap:5px}.compact .role-card .card-name span{font-size:9px}.compact .tiny-health{height:2px!important;bottom:0}.compact .dock-title{display:none}.compact .selected-ship{display:block;width:100%;border:0;border-top:1px solid #92adc433;margin-top:20px;padding:14px 0}.compact .selected-ship #selected-icon{display:block;width:75px}.compact .selected-ship #selected-role{font-size:10px}.compact .selected-ship #selected-name{font-size:18px}.compact .selected-ship #selected-functions{font-size:11px}.compact .selected-ship .unit-open{height:44px;padding:11px;border-radius:8px;width:100%;margin-top:12px;font-size:12px}.compact #selected-upgrade{width:100%;min-height:44px;border-radius:8px;margin-bottom:14px;font-size:12px;background:#34597555}.compact .hull-line{font-size:10px;margin:12px 0}.compact .formation-panel{display:block;width:100%;padding:10px 0;border:0}.compact #formations{display:flex;gap:8px}.compact #formations button{min-height:54px;flex:1}.compact #formations span{font-size:12px}.compact .formation-panel #formation-desc{font-size:11px;display:block;margin-top:10px}
.compact .unit-hero{padding:17px;background:#1a2d46;border-radius:12px}.compact .unit-hero p{font-size:12px;line-height:1.7}.compact .unit-hero h3{font-size:22px}.compact .upgrade-card{padding:16px 0}.compact .upgrade-card b{font-size:14px}.compact .upgrade-card small{font-size:11px;line-height:1.6}.compact .upgrade-card button{min-height:48px;min-width:100px;border-radius:9px;font-size:13px;background:#263c54}.compact .upgrade-card button small{font-size:10px}.compact .stance-buttons button{min-height:44px;font-size:13px}.compact .unit-actions button{min-height:44px;font-size:11px}.compact .wide-button,.compact .synthesis button{min-height:44px;font-size:12px;border-radius:8px}.compact .check-row{font-size:12px;min-height:40px}.compact .unit-select-label{font-size:12px}.advanced{border-top:1px solid #9cb2cb29;margin-top:20px;padding:7px 0}.advanced summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#a3b9d5}.advanced summary:after{content:'＋';font-size:18px;color:#92acca}.advanced[open]>summary:after{content:'−'}.advanced summary::-webkit-details-marker{display:none}.compact .rebuild-note{font-size:11px;color:#a6b8d2;margin-top:20px}.compact .rebuild-note p{line-height:1.8;font-size:11px}
.compact #tools-panel{padding-top:0}.tools-grid{display:grid;gap:8px}.compact #tools-panel>button,.tools-grid button{display:block;width:100%;text-align:left;min-height:52px;padding:12px 15px;border-radius:9px;background:#182a42;margin:8px 0;font-size:14px;color:#d9e8fc}.tools-grid span{display:block;font-size:11px;color:#90a9c9;margin-top:5px}.compact #tools-panel .view-tools{position:static;width:100%;display:flex;flex-wrap:wrap;flex-direction:row;gap:8px}.compact #tools-panel .view-tools button{width:calc(50% - 4px);min-height:44px;height:auto;justify-content:center;font-size:16px}.compact #tools-panel .view-tools span{display:inline;font-size:11px}.compact #tools-panel #probe-launch{min-height:44px;width:100%;margin-top:10px;font-size:12px}.compact #tools-panel #pause:before{content:'항행 일시 정지 / 재개   ';font-size:12px}.compact #tools-panel #sound:after{content:'   효과음 켜기 / 끄기';font-size:12px}.compact #tools-panel #help:after{content:'   플레이 가이드';font-size:12px}.compact #operations-panel .voyage{position:static;width:100%;padding:12px;background:none;border:0}.compact #operations-panel .voyage h1{font-size:18px}.compact #operations-panel .voyage #mother-defense{min-height:44px}
.compact #item-inventory{gap:8px}.compact #item-inventory span{font-size:10px}.compact .store-tools button{font-size:12px;min-height:62px;border-radius:9px}.compact .store-tools small{font-size:10px;line-height:1.6}.compact .supply-pack{padding:17px;border-radius:12px}.compact .supply-pack h3{font-size:14px}.compact .supply-pack p{font-size:12px}.compact .supply-pack button{font-size:12px;min-height:44px;border-radius:8px}.compact .prototype-label{font-size:10px;border-radius:6px}.compact .reward-ad{border-radius:10px;padding:15px}.compact .reward-ad b{font-size:12px}.compact .reward-ad small{font-size:10px}.compact .reward-ad p{font-size:11px}.compact .reward-ad button{font-size:12px;min-height:44px;border-radius:8px}.compact .idle-explanation p{font-size:11px}
.compact .logistic-card{border-radius:10px;padding:14px}.compact .logistic-card h4 button{font-size:12px}.compact .logistic-card select{font-size:12px}.compact .logistic-card label{font-size:11px}.compact .controller-slots button,.compact .controller-slots .slot-queued{min-height:48px;border-radius:5px}.compact .controller-slots b{font-size:12px}.compact .controller-slots small{font-size:10px}.compact .logistic-card p{font-size:11px}.compact .field-card>span{font-size:12px}
.compact .tutorial{left:24px;right:auto;top:176px;bottom:auto;width:300px;padding:14px 16px;border-radius:12px;background:#13223ce8;border:1px solid #84b5dd44;z-index:7}.compact .tutorial h2{font-size:16px;line-height:1.5}.compact .tutorial p{font-size:12px;line-height:1.8}.compact .tutorial-heading small{font-size:9px;letter-spacing:.5px}.compact .tutorial-heading b{font-size:10px;margin-left:7px}.compact .tutorial-heading button{width:32px;height:32px;font-size:21px}.compact .tutorial-heading #tutorial-details{font-size:10px;margin-left:auto}.compact .tutorial.brief p,.compact .tutorial.brief .tutorial-reward,.compact .tutorial.brief #tutorial-progress,.compact .tutorial.brief .tutorial-track{display:none}.compact .tutorial.brief h2{font-size:13px;margin:5px 0 9px}.compact .tutorial #tutorial-action{min-height:40px;font-size:11px;border-radius:8px;padding:7px}.compact #tutorial-restore{left:24px;top:174px;bottom:auto;min-height:44px;background:#12223ed9;border-radius:22px;padding:8px 16px}.compact body[data-sheet="open"] .tutorial{display:none}.compact[data-sheet="open"] .tutorial,.compact[data-sheet="open"] #tutorial-restore{display:none!important}.compact[data-sheet="open"] #compact-controls{pointer-events:none}.compact[data-sheet="open"] #main-nav{pointer-events:auto;position:relative;z-index:21}.compact #toasts{position:fixed;left:50%;bottom:220px;transform:translateX(-50%);width:340px;max-width:calc(100% - 32px);z-index:50;pointer-events:none}.compact .toast{font-size:12px;line-height:1.6;border-radius:9px;padding:12px 16px}.compact .launch-notice{display:none!important}
.compact .main-menu{margin:9vh 0 80px 8vw;width:430px}.compact .main-menu h1{font-size:clamp(70px,8vw,112px);letter-spacing:5px}.compact .main-menu h1 em{font-size:15px}.compact .main-menu-actions{width:310px}.compact .main-menu-actions button{min-height:48px;font-size:14px}.compact .main-menu-actions button span{font-size:10px}.compact .menu-description{font-size:13px}.compact .menu-save{font-size:10px}.compact .menu-idle-note{margin-top:22px}.compact .menu-idle-note b{font-size:12px}.compact .menu-idle-note p{font-size:11px}.menu-more summary{padding:15px 7px;color:#8fa8c9;font-size:12px;cursor:pointer}.menu-more button{width:100%}.compact .menu-ship-label{top:68%;font-size:12px}.compact .shell-footer{bottom:16px}.compact .experience-dialog{border-radius:16px;max-height:90dvh;overflow:auto}.compact .experience-dialog .wide-button,.compact .experience-dialog .primary{min-height:48px;font-size:13px}.compact .experience-dialog>button.dialog-close{min-height:44px;min-width:44px}.compact .tactical-map{z-index:40}.compact .tactical-map header button{min-height:44px}.compact .map-legend{font-size:10px}
body.compact[data-stage]:not([data-stage="playing"]) #minimal-hud{visibility:hidden}body.compact[data-stage]:not([data-stage="playing"]) #drawer{visibility:hidden}
@media(max-width:1099px){
 .compact .topbar{height:68px;padding:max(6px,env(safe-area-inset-top)) 12px 4px;gap:0}.compact .brand{display:none}.compact .resource{flex:1;min-width:0;padding:0 4px;height:44px;gap:5px}.compact .resource-icon{display:none}.compact .resource strong{font-size:16px}.compact .resource small{font-size:10px}.compact .resource.capacity{display:none}.compact .top-actions{gap:2px;margin-left:3px}.compact .top-actions button{width:40px;height:44px;border:0;background:transparent;padding:10px}
 #flight-status{top:78px;left:16px;right:16px;gap:7px;font-size:10px}#flight-state{font-size:11px}#flight-distance{font-size:10px;padding-left:7px}#focus-mother{font-size:10px;padding:5px 9px;min-height:32px}#live-notice{top:121px;left:16px;font-size:11px;max-width:calc(100% - 32px);padding:9px 12px}#bonus-chip{top:166px;right:16px;font-size:10px;min-height:40px;max-width:calc(100% - 32px)}#camera-reset{right:16px;bottom:222px}
 #compact-controls{width:100%;padding-left:16px;padding-right:16px}#main-nav{height:66px}#main-nav button{font-size:12px;gap:9px}#main-nav svg{width:21px;height:21px}#flight-actions button{min-height:52px;font-size:13px}#quick-ships button{font-size:11px;min-height:40px;padding:8px 11px}#quick-ships{margin-bottom:3px;padding-top:8px}
 .compact #drawer{left:0;right:0;top:auto;bottom:calc(66px + env(safe-area-inset-bottom));width:100%!important;max-height:calc(100dvh - 158px - env(safe-area-inset-bottom));height:68dvh;border-radius:20px 20px 0 0;border-bottom:0}.compact #drawer:before{content:'';position:absolute;top:7px;left:calc(50% - 18px);width:36px;height:3px;background:#8296b455;border-radius:2px}.sheet-header{padding:22px 20px 12px}.sheet-header h2{font-size:21px}.sheet-header #sheet-capacity{font-size:11px}.compact #drawer>section{padding:8px 20px 24px}#sheet-backdrop{background:#040b1c55}.compact[data-sheet="open"] #compact-controls{z-index:21}.compact[data-sheet="open"] #quick-ships,.compact[data-sheet="open"] #flight-actions,.compact[data-sheet="open"] #emergency-shield{visibility:hidden}.compact[data-sheet="open"] #compact-controls{background:none;pointer-events:none}.compact[data-sheet="open"] #main-nav{background:#0c172b;pointer-events:auto}
 .compact .tutorial{left:16px;right:16px;top:122px;width:auto;max-width:350px;padding:10px 13px}.compact .tutorial h2{font-size:15px}.compact .tutorial.brief{max-width:300px}.compact .tutorial.brief h2{font-size:13px}.compact .tutorial #tutorial-action{min-height:36px}.compact .tutorial-heading{height:25px}.compact #tutorial-restore{left:16px;top:123px;font-size:11px}.compact #toasts{bottom:213px;width:320px}.compact .toast{font-size:11px}
 .compact .main-menu{margin:8vh 24px 80px;width:auto;max-width:none}.compact .main-menu h1{font-size:80px;letter-spacing:4px;line-height:.87;margin:30px 0 22px}.compact .main-menu h1 em{font-size:12px;letter-spacing:1px;margin-top:20px}.compact .menu-kicker{font-size:8px;letter-spacing:2px}.compact .menu-description{font-size:12px}.compact .main-menu-actions{width:min(100%,330px);margin-top:27px}.compact .main-menu-actions #menu-play{min-height:58px;padding:16px}.compact .main-menu-actions #menu-play b{font-size:16px}.compact .menu-save{font-size:9px;max-width:300px}.compact .menu-idle-note{max-width:300px;margin-top:20px}.compact .menu-ship-label{display:none}.compact .shell-footer{left:24px;right:24px;font-size:7px}.compact .shell-footer span:last-child{display:none}.compact .menu-more button span{font-size:10px}.compact .menu-more summary{font-size:11px}
 .compact .tactical-map{inset:0;padding:16px;background:#0d182af5}.compact .tactical-map header{gap:8px}.compact .tactical-map h2{font-size:20px}.compact .map-layout{display:flex;flex-direction:column;height:calc(100% - 65px)}.compact .map-chart{height:52%;min-height:210px;flex:1}.compact #map-canvas{width:100%;height:100%}.compact .map-layout>aside{height:auto;max-height:35%;overflow:auto;padding:14px;border:0}.compact .map-layout>aside>p{font-size:11px}.compact .map-layout>aside>small,.compact .map-layout>aside>h3{display:none}.compact #map-probe{min-height:44px;font-size:12px}.compact #map-contacts{font-size:11px}.compact .design-dialog,.compact .report-dialog{border-radius:14px}.compact .dialog-close{min-width:40px;min-height:40px}
}
@media(max-width:359px){.compact .resource strong{font-size:14px}.compact .resource small{font-size:9px}.compact .top-actions button{width:35px}.compact .main-menu h1{font-size:69px}#flight-status{gap:5px}#focus-mother span{display:none}.compact #drawer>section{padding-left:16px;padding-right:16px}.compact .ship-bottom button{min-width:86px}.compact .role-card .card-class b{font-size:12px}}
@media(max-height:550px) and (min-width:600px){.compact .topbar{height:55px}.compact .brand{display:none}#flight-status{top:60px}#compact-controls{width:360px;left:16px;transform:none;padding:0}#quick-ships{padding:4px 0;margin:0}#main-nav{height:48px;margin-top:4px}#flight-actions button{min-height:44px}#camera-reset{bottom:155px}#bonus-chip{top:110px}#live-notice{top:100px}.compact #drawer{top:60px;bottom:12px;right:12px;left:auto;width:350px!important;height:auto;max-height:none}.compact[data-sheet="open"] #compact-controls{z-index:6}.compact .tutorial{top:108px;left:16px;width:275px}.compact .main-menu{margin-top:25px}.compact .main-menu h1{font-size:58px;margin:15px 0}.compact .main-menu h1 em{display:none}.compact .menu-description,.compact .menu-save,.compact .menu-idle-note{display:none}.compact .main-menu-actions{margin-top:12px}.compact .main-menu-actions button{min-height:40px;padding:10px}.compact .main-menu-actions #menu-play{min-height:48px}.compact .shell-footer{display:none}}

.compact #build-panel:not(.show-all-hulls) .ship-card.locked{display:none}.compact #more-hulls{margin-top:13px;color:#a8bcd7;background:transparent}.research-filter{display:flex;gap:8px;margin:16px 0 8px}.research-filter button{min-height:40px;padding:8px 13px;border-radius:20px;font-size:11px;background:transparent}.research-filter button.active{background:#293e58;color:#e1efff;border-color:#98c6e666}.compact #research-panel>.advanced{margin-top:12px}.compact #research-panel>.advanced summary{font-size:11px}.compact .tech-node.done{opacity:.6!important}

.compact .fleet-card.role-card,.compact .fleet-card.mother-card{max-width:none}.compact .map-layout>aside{display:block}.compact .map-layout>aside>p{grid-column:auto}.compact .map-layout>aside #map-probe{width:100%}.compact .map-layout>aside #map-note{font-size:11px;line-height:1.7}

.compact[data-sheet="open"] #compact-controls{z-index:21}.compact.tutorial-active #bonus-chip{top:310px}@media(max-width:1099px){.compact.tutorial-active #bonus-chip{top:264px}}

/* Keep touch targets clear of a phone's camera cutout and browser chrome. */
@media(max-width:1099px) and (min-height:551px){
 .compact .topbar{height:calc(68px + env(safe-area-inset-top));padding-top:calc(6px + env(safe-area-inset-top))}
 #flight-status{top:calc(78px + env(safe-area-inset-top))}#live-notice{top:calc(121px + env(safe-area-inset-top))}
 .compact .tutorial{top:calc(122px + env(safe-area-inset-top))}.compact #tutorial-restore{top:calc(123px + env(safe-area-inset-top))}
 #bonus-chip{top:calc(166px + env(safe-area-inset-top))}.compact.tutorial-active #bonus-chip{top:calc(264px + env(safe-area-inset-top))}
 .compact #drawer{max-height:calc(100dvh - 158px - env(safe-area-inset-bottom) - env(safe-area-inset-top))}
}
