/* 1.2 HUD: all passive overlays pass pointer input to the city. */
#ui {pointer-events:none}
#ui nav {pointer-events:none}
#ui nav button, #mission-toggle, #weapon-next, #reload,
#joystick, #fire-pad, #actions button, #chat-open,
#chat-form, #chat-form input, #chat-form button {pointer-events:auto}
#notices, #notices * {pointer-events:none!important}
#notices {
 position:fixed;top:max(14px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);
 width:min(370px,calc(100vw - 440px));max-height:146px;overflow:hidden;
 display:flex;flex-direction:column;gap:3px;z-index:2;
}
#notices>div {position:static;inset:auto;transform:none;width:100%;max-width:none;
 margin:0;border-radius:3px;box-shadow:none;backdrop-filter:none;text-align:left}
#toast {padding:5px 8px;font-size:10px;line-height:1.35;background:#0a1824d9;
 border:0;border-left:2px solid #b6ffdf66;transition:none}
#toast:not(.on) {display:none}
#toast.on {transform:none}
#dialogue {padding:5px 8px;background:#211726d9;border:0;border-left:2px solid #fb7fb866;
 font-size:10px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#dialogue small {font-size:9px;letter-spacing:0;margin-right:5px;display:inline}
#dialogue p {display:inline;font-size:10px;line-height:1.35;margin:0}
#chase {position:relative!important;padding:4px 8px 6px;background:#281827d9;border:0;
 display:flex;align-items:center;gap:8px;min-height:23px;overflow:hidden}
#chase strong {font-size:9px;letter-spacing:.6px;white-space:nowrap}
#chase span {font-size:9px;line-height:1.2;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#chase>div {position:absolute;bottom:0;left:0;right:0;height:1px;background:#ff6f9a20}
#context {padding:3px 8px;border:0;background:#08151d99;color:#a8c4bd;font-size:9px;line-height:1.3;white-space:normal}
#chatlog {display:flex;gap:2px}
#chatlog div {padding:3px 7px;font-size:9px;line-height:1.3;max-height:27px;overflow:hidden;
 background:#091723bb;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#chat-form {top:170px;bottom:auto;left:50%;transform:translateX(-50%);width:min(370px,calc(100vw - 32px));z-index:3}
#chat {padding:8px 10px;font-size:11px}
#chat-form button {width:32px}
#mission,#mission.collapsed {top:80px;left:20px;width:210px;padding:5px 9px;background:#0a1824cb}
#mission-toggle {width:24px;height:24px;font-size:17px}
#mission h2 {font-size:14px;margin:9px 0 6px}
#mission p {font-size:10px;margin-bottom:6px}
#mission-progress {font-size:10px;margin:6px 0}
#mission-foot {display:none}
#weapon-panel {
 top:55px;left:20px;bottom:auto;right:auto;display:flex;align-items:center;gap:6px;
 width:auto;max-width:230px;height:25px;padding:0;background:none;border:0;border-radius:0;
 pointer-events:none;white-space:nowrap;
}
#weapon-next {font-size:8px;letter-spacing:.5px;height:24px;padding:0 6px;background:#0b1b27b8;border-color:#b6ffdf24}
#weapon-name {display:inline;font-size:8px;letter-spacing:.5px}
.ammo-row {display:inline-flex;align-items:baseline;gap:4px;margin:0;font:13px monospace;letter-spacing:0;text-shadow:0 1px 3px #000}
.ammo-row strong {font:700 13px monospace;letter-spacing:0}
.ammo-row>span {font:13px monospace;color:#c5dfd7}
#reload {width:25px;height:24px;font-size:13px;padding:0;background:#0b1b27b8;border-color:#b6ffdf24}
#reload-status {font-size:8px;letter-spacing:0;color:#ffd28a;pointer-events:none}
#reload-status:empty {display:none}
.wallet {top:78px;right:20px}
.wallet small {display:none}
.wallet strong {font-size:22px;line-height:1.1}
#wanted {font-size:16px;letter-spacing:3px}
#vitals {top:128px;right:20px;width:104px;transition:filter .2s}
#vitals.hurt {filter:drop-shadow(0 0 7px #ff4c75)}
#damage-flash {display:none}
#speed {right:20px;bottom:150px;top:auto}
#speed strong {font-size:30px}
#speed small {font-size:7px}
#map-label {font-size:6px;letter-spacing:.6px}
@media(pointer:coarse),(max-width:600px) {
 #notices {top:145px;left:12px;transform:none;width:calc(100vw - 108px);max-height:min(112px,19vh);gap:2px}
 #toast {padding:4px 6px;font-size:9px;line-height:1.3;max-height:32px;overflow:hidden}
 #dialogue {padding:4px 6px;font-size:9px;max-height:34px}
 #dialogue p,#dialogue small {font-size:9px;line-height:1.3}
 #chase {padding:3px 6px 5px;min-height:20px;gap:5px}
 #chase strong,#chase span {font-size:8px}
 #context {padding:2px 6px;font-size:8px}
 #chatlog div {font-size:8px;padding:2px 5px;max-height:24px}
 #chat-form {top:266px;bottom:auto;left:12px;transform:none;width:calc(100vw - 24px)}
 #mission,#mission.collapsed {top:62px;left:12px;width:140px;padding:3px 6px}
 #mission .section-label,#mission.collapsed .section-label {font-size:7px;letter-spacing:.4px}
 #mission:not(.collapsed) {width:calc(100vw - 122px);max-width:260px}
 #mission h2 {font-size:12px;margin:6px 0 4px}
 #mission p {font-size:9px;line-height:1.35;margin:0}
 #mission-progress {font-size:9px;margin:4px 0 2px}
 #mission-toggle {width:23px;height:23px;font-size:16px}
 .mission-open #notices {top:204px;max-height:90px}
 #weapon-panel {top:102px;left:12px;right:auto;bottom:auto;height:26px;max-width:230px;gap:5px;padding:0}
 #weapon-name {font-size:7px}
 #weapon-next,#reload {height:26px}
 .ammo-row,.ammo-row strong,.ammo-row>span {font-size:12px}
 .wallet {top:59px;right:12px}
 .wallet strong {font-size:18px}
 #wanted {font-size:12px;letter-spacing:2px}
 #vitals {top:104px;right:12px;width:72px}
 #vitals>span {font-size:6px;letter-spacing:.5px}
 #health {height:3px;margin-top:4px}
 #speed {top:230px;right:12px;left:auto;bottom:auto;text-align:right}
 #speed strong {font-size:22px;letter-spacing:-1px}
 #speed small {font-size:6px}
 #map-label {font-size:5px;letter-spacing:.3px}
}
@media(max-height:570px) {
 #notices,.mission-open #notices {top:14px;left:50%;transform:translateX(-50%);width:min(320px,calc(100vw - 360px));max-height:75px}
 #toast,#dialogue,#dialogue p,#context {font-size:8px}
 #chat-form {top:100px}
}
@media(pointer:coarse) and (max-height:570px) and (orientation:landscape) {
 #speed {top:auto;bottom:18px;left:calc(50% + 48px);right:auto;text-align:left}
}
