/* Terminal typography and a single restrained control treatment. */
#subtitle{top:auto;bottom:calc(var(--safe-bottom) + 119px);width:min(480px,calc(100% - 40px));max-width:none;max-height:32vh;overflow:auto;text-align:left;background:rgba(8,16,13,.95);border:1px solid #526658;border-left:3px solid #b3c7a7;border-radius:3px;padding:12px 16px;color:#edf0dc;font:15px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-shadow:none;pointer-events:auto;white-space:normal;overflow-wrap:break-word;touch-action:pan-y;box-shadow:0 4px 20px #0006}
#subtitle:empty{display:none}.terminal-speaker{display:block;margin-bottom:6px;font-size:10px;font-weight:700;letter-spacing:.12em;color:#b7c8a0}.terminal-copy{white-space:pre-wrap}.terminal-copy::after{content:' ▌';color:#b7c8a0;opacity:0}#subtitle.typing .terminal-copy::after{opacity:1}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.touch-button,.hud-button,.quickslot{background:rgba(13,22,18,.8)!important;border:1px solid rgba(202,215,181,.5)!important;box-shadow:none!important;border-radius:6px!important;color:#e1e6ce!important;text-shadow:none!important;backdrop-filter:none!important}
.quickslot.selected,.quickslot[aria-pressed='true'],.touch-button[aria-pressed='true']{background:rgba(72,89,64,.94)!important;border-color:#c9d7ae!important;color:#fff7d4!important;box-shadow:inset 0 -2px #b9cc98!important}.quickslot.empty{opacity:.52}.icon{stroke-width:1.65;filter:none!important}.touch-button .icon,.hud-button .icon{width:24px;height:24px}.control-name{font:700 9px/1.2 ui-monospace,monospace;letter-spacing:.04em}.touch .quickslot kbd{display:none}.equipment-dock{padding:7px;background:rgba(10,18,14,.72);border:1px solid #74806966;border-radius:7px}.quickslot{width:44px;height:44px}.hud-actions{flex-direction:row;gap:8px}.hud-button{min-width:44px;width:44px;height:44px}.sound-control{color:transparent!important}
#signal-caption{max-width:280px;font:11px/1.4 ui-monospace,monospace;background:rgba(8,16,13,.76);padding:4px 6px;border-radius:2px;color:#e1e4cc}#interaction{font:12px/1.4 ui-monospace,monospace;background:rgba(8,16,13,.88);border:1px solid #74806977;padding:5px 9px}
@media(orientation:landscape) and (max-height:600px){
 #subtitle{bottom:calc(var(--safe-bottom) + 106px);width:min(430px,calc(100% - 390px));max-height:34vh;font-size:13px;line-height:1.45;padding:9px 12px}
 .terminal-speaker{font-size:9px;margin-bottom:4px}#signal-caption{top:calc(var(--safe-top) + 89px);left:calc(var(--safe-left) + 14px);max-width:230px;font-size:10px}
 #touch-run{left:calc(var(--safe-left) + 148px);bottom:calc(var(--safe-bottom) + 30px);width:44px;height:44px}
 #touch-turn{left:calc(var(--safe-left) + 148px);bottom:calc(var(--safe-bottom) + 86px);width:44px;height:44px}
 #touch-light{right:calc(var(--safe-right) + 110px);bottom:calc(var(--safe-bottom) + 92px);width:44px;height:44px}
 #touch-crouch{right:calc(var(--safe-right) + 110px);bottom:calc(var(--safe-bottom) + 32px);width:44px;height:44px}
 #touch-use,#touch-fire{right:calc(var(--safe-right) + 24px);bottom:calc(var(--safe-bottom) + 62px);width:64px;height:64px}
 #touch-controls:has(#touch-fire:not([hidden])) #touch-use{right:calc(var(--safe-right) + 110px);bottom:calc(var(--safe-bottom) + 148px);width:44px;height:44px}
 #touch-reload{right:calc(var(--safe-right) + 34px);bottom:calc(var(--safe-bottom) + 148px);width:44px;height:44px}
 .quickslot{width:40px;height:40px}.quickslot .icon{width:23px;height:23px}.equipment-dock{bottom:calc(var(--safe-bottom) + 8px)}
}
@media(orientation:landscape) and (max-width:740px){#subtitle{width:calc(100% - 300px);font-size:12px;bottom:calc(var(--safe-bottom) + 104px)}}
@media(prefers-reduced-motion:reduce){.terminal-copy::after{display:none}}

.sound-control::before{display:block!important;background:#e1e6ce!important;opacity:1!important;width:24px!important;height:24px!important}
