/* One game screen. Only long dialogs may scroll. */
html,body{height:100%;width:100%;min-height:0;margin:0;overflow:hidden;overscroll-behavior:none}
body{height:100vh;height:100dvh;touch-action:manipulation;-webkit-user-select:none;user-select:none}
main{width:100%;max-width:520px;height:100%;margin:0 auto;padding:8px 12px 10px;display:flex;flex-direction:column;gap:8px;min-height:0;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}
header{height:44px;min-height:44px;flex:none}.brand{font-size:11px;letter-spacing:1.6px;line-height:1.25;gap:7px}.brand-icon{font-size:31px}.top-controls{gap:7px}.top-controls button{min-width:44px;min-height:44px;border-radius:14px;padding:8px 12px;font-size:12px}
.game-layout{display:flex;flex-direction:column;flex:1;min-height:0;gap:9px;width:100%}
.mission{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px 12px;max-width:none;width:100%;flex:none;margin:0;padding:0 3px}
.tag{border:0;padding:0;font-size:11px;letter-spacing:1px;background:none}.tag b{font-size:16px;margin-left:6px}.progress-label{margin:0;font-size:12px;gap:10px;justify-content:flex-end}.progress{grid-column:1/-1;width:100%;height:3px;margin:0}
.station{display:flex;flex-direction:column;min-height:0;flex:1;width:100%;max-width:none;margin:0;padding:10px 23px 8px;gap:0;border-radius:22px;box-shadow:inset 0 1px #64809e22,0 8px 25px #0003}
.section-label,.dock-header,.hangar-header{font-size:10px;line-height:13px;letter-spacing:1px;flex:none}
.queue-wrap{flex:none;padding:13px 0 6px;margin:3px 0 9px;border-bottom:1px solid #37859b;min-height:0}.queue-start{font-size:8px;line-height:10px}.queue{height:39px;min-height:39px;gap:5px}.astronaut{width:26px;flex-shrink:0}.dock-header{margin:0}
.docks{flex:none;height:58px;margin:8px 0 0;gap:12px}.dock{height:58px;min-width:0}.dock .craft{width:31px;height:45px}.dock small{font-size:9px;bottom:-8px;padding:1px 7px}.pad-icon{font-size:30px}
.route{flex:none;height:25px;margin:7px 0 0;gap:8px}.route span{font-size:7px;letter-spacing:1.5px}.route i{width:30px}.hangar-header{margin:0 0 13px}
.board{flex:1;min-height:0;width:100%;height:auto!important;aspect-ratio:auto;grid-template-rows:repeat(6,minmax(0,1fr));grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;padding:6px;margin:0 0 8px;border-radius:15px}.board:before{inset:-12px;border-radius:23px}.cell{min-width:0;min-height:0}.ship{min-height:0;min-width:0}.ship .craft{width:54%;height:78%;max-width:36px;max-height:58px}.direction{font-size:10px;right:1px;bottom:1px}
#message{flex:none;height:32px;min-height:32px;font-size:11px;line-height:14px;margin:0 0 5px;padding:0 2px;overflow:hidden}
.toolbar{flex:none;height:49px;gap:7px}.toolbar button{min-width:0;min-height:44px;padding:5px 2px;flex-direction:column;gap:2px;font-size:10px;border-radius:12px;line-height:13px}.toolbar button span{font-size:22px;line-height:23px}
.planet{position:fixed;top:-70px;right:-100px;width:240px;height:240px;opacity:.5;pointer-events:none}.stars{pointer-events:none}dialog{max-height:85vh;overflow:auto;overscroll-behavior:contain;padding:24px}dialog p{font-size:14px;line-height:1.65}
@media(max-height:680px){main{gap:5px;padding-top:5px;padding-bottom:5px}.game-layout{gap:6px}header{height:40px;min-height:40px}.top-controls button{min-height:40px}.station{padding-top:8px}.queue-wrap{margin-bottom:6px;padding-top:11px;padding-bottom:4px}.queue{height:33px;min-height:33px}.astronaut{transform:scale(.85);transform-origin:bottom left;width:23px}.docks,.dock{height:48px}.dock .craft{height:38px;width:26px}.route{height:19px}.hangar-header{margin-bottom:11px}#message{height:28px;min-height:28px;margin-bottom:3px}.toolbar{height:44px}.toolbar button{min-height:44px}.toolbar button span{font-size:19px;line-height:19px}}
