.starship-panel{position:fixed;z-index:35;left:22px;bottom:max(22px,env(safe-area-inset-bottom));width:min(370px,calc(100vw - 28px));max-height:calc(100dvh - 110px);overflow:auto;box-sizing:border-box;padding:16px 18px;border:1px solid #627c89;border-top:3px solid #fbc45c;border-radius:12px;background:#102632ed;color:#f1f6f8;box-shadow:0 12px 48px #0006;font-family:system-ui,sans-serif;pointer-events:auto;scrollbar-width:thin}
.starship-panel [hidden],.starship-panel[hidden]{display:none!important}
.starship-panel>small{display:block;color:#fbc45c;letter-spacing:.14em;font-size:10px;font-weight:700;margin-bottom:7px}
.starship-panel>strong{display:block;font-size:21px;line-height:1.2}
.starship-panel p{margin:9px 0 12px;color:#bfced6;font-size:12px;font-variant-numeric:tabular-nums;line-height:1.5}
.starship-panel .starship-stage{font-size:9px;letter-spacing:.06em;color:#8edddc;padding:0 0 12px}
.starship-panel .starship-warning{padding:8px 10px;border-left:2px solid #fbc45c;background:#fbc45c10;color:#ffdc92}
.starship-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.starship-panel button{min-height:39px;padding:8px 10px;border:1px solid #5b7584;border-radius:7px;background:#244353;color:#f3f7fa;cursor:pointer;font-size:11px;font-weight:600}
.starship-panel button.starship-primary{grid-column:1/-1;background:#fbc45c;color:#182b35;border-color:#fbc45c;font-size:13px}
.starship-panel button:hover{filter:brightness(1.12)}
.starship-panel button:focus-visible,.starship-panel input:focus-visible{outline:3px solid #8edcff;outline-offset:3px}
.starship-controls{display:flex;justify-content:space-around;gap:20px;align-items:center;padding-top:14px;margin-top:12px;border-top:1px solid #527081}
.starship-controls span{display:block;font-size:11px;font-weight:600;color:#c4d9e3;margin-bottom:8px;text-align:center}
.starship-stick{position:relative;width:88px;height:88px;touch-action:none;border-radius:50%;border:1px solid #86a5b77a;background:linear-gradient(transparent 49%,#83b0c144 49%,#83b0c144 51%,transparent 51%),linear-gradient(90deg,transparent 49%,#83b0c144 49%,#83b0c144 51%,transparent 51%),#091a24;box-shadow:inset 0 0 20px #0006;cursor:grab}
.starship-stick i{display:block;position:absolute;left:28px;top:28px;width:30px;height:30px;pointer-events:none;border:1px solid #bcf4ff;border-radius:50%;background:#609aaa;box-shadow:0 2px 7px #0006}
.starship-throttle{display:flex;flex-direction:column;align-items:center;min-width:120px}
.starship-throttle b{font-variant-numeric:tabular-nums;color:#fbc45c;font-size:22px}
.starship-throttle input{width:130px;min-height:32px;accent-color:#fbc45c;cursor:pointer}
.starship-throttle small{font-size:9px;color:#a3bdca}
.starship-controls[data-mode=walk] .starship-throttle{display:none}
.starship-landing{display:flex;gap:14px;align-items:center;margin-bottom:12px;padding:8px;border-radius:8px;background:#061b25}
.starship-radar{position:relative;width:64px;height:64px;flex:0 0 64px;border:1px solid #6097a2;border-radius:50%;background:linear-gradient(transparent 49%,#6197a266 49%,#6197a266 51%,transparent 51%),linear-gradient(90deg,transparent 49%,#6197a266 49%,#6197a266 51%,transparent 51%)}
.starship-radar:after{content:'';position:absolute;inset:20px;border:1px solid #cceeee88;border-radius:50%}
.starship-radar i{position:absolute;width:7px;height:7px;margin:-4px;background:#fbc45c;border:1px solid #ffe8ad;border-radius:2px}
.starship-landing span{font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;color:#d0e6eb}
@media(max-width:600px){.starship-panel{left:10px;bottom:max(12px,env(safe-area-inset-bottom));width:min(330px,calc(100vw - 20px));max-height:calc(100dvh - 145px);padding:12px}.starship-panel>strong{font-size:18px}.starship-panel button{min-height:40px}.starship-controls{padding-top:10px;margin-top:8px}.starship-panel p{font-size:11px}}
@media(max-height:540px){.starship-panel{left:10px;bottom:8px;max-height:calc(100dvh - 75px);width:310px;padding:10px}.starship-panel>small{display:none}.starship-panel>strong{font-size:16px}.starship-panel p{margin:5px 0}.starship-panel .starship-stage{padding-bottom:6px}.starship-actions{gap:5px}.starship-panel button{min-height:32px;padding:6px}.starship-stick{width:70px;height:70px}.starship-stick i{left:19px;top:19px}.starship-controls{padding-top:8px;margin-top:8px}.starship-radar{width:42px;height:42px;flex-basis:42px}.starship-radar:after{inset:12px}}
/* During touch landing, leave the rocket and its approach visible above the controls. */
@media(max-width:600px){
 .starship-panel[data-control=manual]>small{display:none}
 .starship-panel[data-control=manual]>strong{font-size:16px}
 .starship-panel[data-control=manual] p{margin:5px 0}
 .starship-panel[data-control=manual] .starship-stage{font-size:8px;padding-bottom:6px}
 .starship-panel[data-control=manual] .starship-radar{width:36px;height:36px;flex-basis:36px}
 .starship-panel[data-control=manual] .starship-radar:after{inset:10px}
 .starship-panel[data-control=manual] .starship-landing{padding:6px;gap:10px;margin-bottom:8px}
 .starship-panel[data-control=manual] .starship-landing span{font-size:10px}
 .starship-panel[data-control=manual] .starship-cabin,.starship-panel[data-control=manual] .starship-manual{display:none}
 .starship-panel[data-control=manual] button.starship-primary{grid-column:auto;font-size:10px}
 .starship-panel[data-control=manual] .starship-actions button{min-height:40px}
 .starship-panel[data-control=manual] .starship-stick{width:72px;height:72px}
 .starship-panel[data-control=manual] .starship-stick i{left:20px;top:20px}
 .starship-panel[data-control=manual] .starship-controls{padding-top:8px;margin-top:8px}
 .starship-panel[data-control=manual] .starship-controls span{font-size:10px;margin-bottom:5px}
}
