.controller-glyph { width:25px;height:25px;flex:0 0 25px;vertical-align:middle; }
.controller-hint { display:inline-flex;align-items:center;gap:6px;white-space:nowrap;margin:0 6px; }
.controller-hint .controller-glyph { width:23px;height:23px;flex-basis:23px; }
.with-controller-glyph { display:inline-flex;align-items:center;justify-content:center;gap:8px; }
.compact-choices .choice.with-controller-glyph { display:block;position:relative;padding-left:44px; }
.choice.with-controller-glyph > .controller-glyph { position:absolute;left:10px;top:12px; }
.dock-footer .controller-glyph { width:20px;height:20px;flex-basis:20px; }
.prompt-family { border:0;padding:12px 0;margin:0; }
.prompt-family legend { font:14px var(--sans);color:var(--text); }
.prompt-options { display:flex;flex-wrap:wrap;gap:6px; }
.prompt-choice { display:flex;align-items:center;gap:7px;min-height:44px;padding:6px 10px;background:#f6c78b08;border:1px solid #efd1a82a;font:12px var(--sans);cursor:pointer; }
.prompt-choice:has(input:checked) { border-color:#edbd7b;color:#ffe4bd; }
.prompt-choice input { accent-color:#edbd7b; }
.controller-guide { display:flex;flex-wrap:wrap;gap:9px 14px; }
.controller-guide .controller-hint { margin:0; }
body.touch-controls .prompt-choice { min-height:48px; }
/* Controller play has one objective and a clear selected action. */
.mission-objective { position:absolute;top:155px;left:32px;max-width:min(480px,calc(100vw - 64px));display:grid;gap:6px;padding:12px 16px;background:#0c141de8;border-left:2px solid #edbd7b;color:#fff0d9; }
.mission-objective span { font:9px var(--mono);letter-spacing:.14em;color:#edbd7b; }
.mission-objective strong { font:16px/1.35 var(--sans);font-weight:500; }
.controller-active .interaction-dock button:focus,.controller-active .title-actions button:focus,.controller-active dialog :is(button,input,summary,a):focus,.controller-active .ending-actions button:focus { outline:2px solid #ffe2b7;outline-offset:4px;box-shadow:0 0 22px #ffd59c24; }
.controller-active .compact-choices .choice:not(:focus) > .controller-glyph { opacity:.2; }
#investigation-progress { display:block;width:100%;height:6px;accent-color:#efc58a;margin:12px 0; }
body.controller-active .drive-pad { display:none; }
body.controller-active .world-controls { width:auto;max-width:420px;display:flex;flex-wrap:wrap; }
body.controller-active .world-help { flex-basis:100%; }
body.controller-active .interaction-dock { width:min(440px,calc(100% - 64px));bottom:28px;max-height:45svh; }
@media(max-width:900px) { .mission-objective { top:205px;left:20px; } body.touch-controls .mission-objective { top:240px; } }
@media(max-width:600px) { .mission-objective,body.touch-controls .mission-objective { top:218px;left:18px;max-width:calc(100% - 36px);padding:9px 12px; } .mission-objective strong { font-size:14px; } body.controller-active .interaction-dock { left:12px;right:12px;width:auto;bottom:98px;max-height:35svh; } }
@media(max-height:650px) and (min-width:601px) { .mission-objective,body.touch-controls .mission-objective { top:138px;max-width:360px; } }
/* The world carries the scene. Short thoughts are cinematic captions, not a corner card. */
body[data-screen="game"] .play-screen { background:linear-gradient(transparent 57%,#050b1166 80%,#050b1199); }
body[data-screen="game"] .interaction-dock { left:50%;right:auto;bottom:92px;transform:translateX(-50%);width:min(640px,calc(100% - 44px));max-height:42svh;padding:12px 16px 0;background:none;border:0;box-shadow:none;text-align:center; }
.interaction-dock .inner-voice,.interaction-dock .transmission-text,.interaction-dock .discovery-line { text-shadow:0 2px 9px #000,0 0 25px #000; }
.interaction-dock .inner-voice { font-size:clamp(21px,2.3vw,28px); }
.interaction-dock .dock-footer { border:0;justify-content:center;gap:20px;margin-top:8px; }
.interaction-dock .compact-choices { max-width:520px;margin:auto; }
.interaction-dock .choice { background:#0c161ce8; }
.interaction-dock .contact-mark { margin:0 auto 12px;width:220px; }
.interaction-dock .objective-line { justify-content:center;gap:20px; }
.interaction-dock .continue-button { margin:12px auto 0; }
.interaction-dock .pace-note { text-shadow:0 1px 6px #000; }
.uplink-instrument { margin:12px auto;max-width:380px;color:#fce6c6;text-shadow:0 2px 7px #000; }
.uplink-instrument p { font:15px var(--sans);margin:8px 0; }
.uplink-instrument progress { width:100%;height:5px;accent-color:#efc58a; }
.uplink-instrument small { display:block;font:10px/1.5 var(--mono);margin:8px 0; }
body[data-screen="game"] .world-controls { bottom:12px;right:20px;background:#0c141ca8; }
@media(max-width:900px) { body.touch-controls[data-screen="game"] .interaction-dock { bottom:150px;max-height:37svh; } body.controller-active[data-screen="game"] .interaction-dock { bottom:100px; } }
@media(max-width:600px) { body.touch-controls[data-screen="game"] .interaction-dock { bottom:205px; } body.controller-active[data-screen="game"] .interaction-dock { bottom:110px; } }
@media(max-height:550px) { body[data-screen="game"] .interaction-dock { bottom:64px;max-height:43svh;width:min(540px,65vw); } .interaction-dock .inner-voice { font-size:19px; } }

.input-keycap{display:inline-block;font:11px/1.4 var(--mono);border:1px solid currentColor;border-radius:3px;padding:1px 5px;margin-right:7px;opacity:.8;vertical-align:middle;}
body[data-input="keyboard"] :is(button,a,summary,input):focus{outline:2px solid #ffe2b7;outline-offset:4px;}
.tool-operate[hidden],.signal-controls[hidden]{display:none!important;}

.discovery-camera__input{font:12px var(--sans);text-align:center;text-shadow:0 1px 5px #000;}

.upload-terminal__button[hidden]{display:none!important;}

/* Decorative prompts can change with active input during pointerdown. Keep the
   pressed target on the persistent button so the first click still activates it. */
button > :is(.controller-glyph,.input-keycap) {pointer-events:none;}
