/* Isolated, consent-to-enable HUD. No overrides of original game layout. */
.ksp-launch{--ksp-bg:#0b1428;--ksp-gold:#dfbc6f;--ksp-line:#526078;--ksp-ink:#f7f8fc;font:500 14px/1.5 system-ui,sans-serif;color:var(--ksp-ink);position:fixed;right:14px;bottom:14px;z-index:2147483000;pointer-events:none}
.ksp-launch button,.ksp-launch input,.ksp-launch select{font:inherit}
.ksp-launch button{cursor:pointer}
.ksp-toggle{pointer-events:auto;background:var(--ksp-bg);color:var(--ksp-ink);border:1px solid var(--ksp-gold);border-radius:12px;padding:10px 16px;box-shadow:0 4px 24px #0008}
.ksp-panel{pointer-events:auto;position:absolute;right:0;bottom:52px;width:min(360px,calc(100vw - 28px));max-height:76vh;overflow:auto;background:var(--ksp-bg);border:1px solid var(--ksp-line);border-radius:16px;padding:17px;box-shadow:0 10px 45px #000b}
.ksp-panel[hidden],.ksp-touch[hidden]{display:none!important}
.ksp-head{display:flex;align-items:center;justify-content:space-between;color:var(--ksp-gold);font-size:17px;margin-bottom:10px}
.ksp-close{background:none;color:white;border:0;font-size:24px}
.ksp-panel label{display:block;margin:12px 0;color:var(--ksp-ink)}
.ksp-panel label:has(input[type="range"]){display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ksp-panel input[type="range"]{width:110px;accent-color:var(--ksp-gold)}
.ksp-panel input[type="checkbox"]{accent-color:var(--ksp-gold)}
.ksp-panel select{background:#192846;color:white;border:1px solid var(--ksp-line);border-radius:6px;padding:5px}
.ksp-panel p{color:#d5ddec;font-size:12px;margin:12px 0 0}
.ksp-status{border-top:1px solid var(--ksp-line);padding-top:10px}
.ksp-touch{position:fixed;inset:auto 18px 78px 18px;display:flex;align-items:end;justify-content:space-between;pointer-events:none;gap:20px}
.ksp-stick{width:125px;height:125px;border-radius:50%;border:2px solid #e5bf77bb;background:#07122799;position:relative;touch-action:none;pointer-events:auto;flex:0 0 auto}
.ksp-knob{width:52px;height:52px;border-radius:50%;position:absolute;left:calc(50% - 26px);top:calc(50% - 26px);background:radial-gradient(circle at 30% 30%,#f0d49e,#94733a);box-shadow:0 0 12px #0008;pointer-events:none}
.ksp-actions{display:grid;grid-template-columns:repeat(3,48px);gap:9px;pointer-events:auto}
.ksp-actions button{width:48px;height:48px;border:1px solid #f4d699bb;border-radius:50%;background:#102543c9;color:#fff;font-size:21px;touch-action:none;user-select:none}
.ksp-actions button:active{background:#b98c37}
.ksp-launch button:focus-visible,.ksp-launch input:focus-visible,.ksp-launch select:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(hover:hover) and (pointer:fine){.ksp-touch{opacity:.65}}
@media(max-width:540px){.ksp-stick{width:110px;height:110px}.ksp-actions{grid-template-columns:repeat(3,42px);gap:6px}.ksp-actions button{width:42px;height:42px}.ksp-touch{left:9px;right:9px}}
@media(prefers-reduced-motion:reduce){.ksp-launch *{animation:none!important;transition:none!important}}
