/* Screen-space feedback follows the same camera as the visible 3D actors. */
.has-combat-overlay{position:relative}
.combat-overlay{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:2;user-select:none;-webkit-user-select:none;font-family:Inter,Arial,sans-serif}
.combat-overlay,.combat-overlay *{pointer-events:none!important}
.combat-overlay[hidden]{display:none}
.co-readout{position:absolute;top:0;left:0;margin:0;line-height:1;white-space:nowrap;box-sizing:border-box}
.co-enemy{width:67px;padding:3px 4px 4px;border:1px solid #ffffff35;border-radius:4px;background:#17262ce8;box-shadow:0 1px 3px #0004}
.co-readout-row{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:0 0 3px}
.co-hp-value{font-size:9px;font-weight:750;color:#fff5e9;font-variant-numeric:tabular-nums;letter-spacing:.1px}
.co-attack{font-size:8px;font-weight:750;color:#ffb09c}
.co-hp-track{height:3px;border-radius:2px;overflow:hidden;background:#0d161b}
.co-hp-track>i{height:100%;display:block;background:#eb6754;border-radius:2px}
.co-frozen .co-hp-track>i{background:#8ce8fa}
.co-boss{width:83px;border-color:#f9986580;background:#3c2422ed}
.co-boss .co-hp-value{font-size:10px}
.co-crate{width:103px;border:1px solid #f2ca7270;border-radius:4px;background:#29271fef;padding:4px 5px;box-shadow:0 2px 4px #0004}
.co-crate .co-readout-row{justify-content:center;margin-bottom:4px}
.co-crate .co-hp-value{font-size:7.8px;color:#ffdf9a;letter-spacing:.1px}
.co-crate .co-hp-track>i{background:#efb34b}
.co-hazard{display:flex;align-items:center;gap:5px;justify-content:center;min-width:112px;height:25px;padding:4px 7px;background:#1c252de6;border:1px solid #edb38f75;border-radius:5px;color:#f6e7d7}
.co-hazard strong{font-size:9px;font-weight:650;letter-spacing:.2px}
.co-hazard-mark{font-size:10px;line-height:1;color:#efd2a3}
.co-hazard.co-mine{border-style:dashed}
.co-number{font-size:17px;font-weight:900;color:#fff5dd;text-shadow:-1px -1px 0 #462111,1px -1px 0 #462111,-1px 1px 0 #462111,1px 1px 0 #462111,0 2px 4px #0009;letter-spacing:-.5px;z-index:4}
.co-number.co-crate-hit{color:#ffd16c}
.co-number.co-squad-loss{font-size:18px;color:#ff8a6b;text-shadow:-1px -1px 0 #4c1511,1px -1px 0 #4c1511,-1px 1px 0 #4c1511,1px 1px 0 #4c1511,0 2px 5px #000b}
@media(max-width:350px){.co-enemy{width:61px}.co-hp-value{font-size:8px}.co-attack{font-size:7px}.co-crate{width:97px}.co-crate .co-hp-value{font-size:7.2px}.co-hazard{min-width:106px}.co-hazard strong{font-size:8.5px}.co-number{font-size:16px}}

.co-crate.co-barrel{width:78px;border-color:#f47b4d;background:#48251fed}.co-barrel .co-hp-track>i{background:#ff7650}

/* Pickup names remain readable before the small world-space engraving is. */
.co-item-title{display:block;text-align:center;font-size:10px;line-height:1.1;letter-spacing:.3px;margin-bottom:3px;color:#fff9e9;font-weight:900}
.co-crate{width:114px;padding:4px 5px 5px;border-width:1.5px;background:#1c2528f2}
.co-crate .co-hp-value{font-size:7.4px;letter-spacing:0}
.co-crate .co-readout-row{margin-bottom:3px}
.co-crate .co-hp-track{height:3px}
.co-rescue{background:#1f3e30f5}
.co-rescue .co-item-title{color:#d0ffab}
.co-crate.co-barrel{width:88px;background:#442720f2}
.co-barrel .co-item-title{font-size:8px;color:#ffd79c}
.co-barrel .co-hp-value{font-size:7.5px}
.co-hazard{min-width:122px}
.co-hazard strong{font-size:9px;letter-spacing:0}
.co-frozen{border-color:#acf2ff;background:#173b4aef}
.co-frozen .co-attack{color:#bcefff;font-size:8px}
.co-boss{width:96px}
.co-boss.co-frozen{background:#194352f2}
@media(max-width:350px){.co-crate{width:108px}.co-item-title{font-size:9px}.co-crate .co-hp-value{font-size:6.9px}.co-hazard{min-width:114px}.co-hazard strong{font-size:8px}.co-crate.co-barrel{width:84px}}

.co-enemy.co-frozen{width:83px}.co-boss.co-frozen{width:96px}

.co-number{text-align:center}.co-number.co-squad-loss{font-size:14px}

.co-readout{z-index:2}.co-number{z-index:4}.co-leader{position:absolute;top:0;left:0;height:1px;background:#d3cba3;opacity:.55;transform-origin:0 50%;pointer-events:none;z-index:0}.co-leader[hidden]{display:none}

.co-ranged{border-color:#c4e98599;background:#1b3534ed}.co-ranged .co-item-title{font-size:7px;letter-spacing:.2px;margin-bottom:3px;color:#daf0b0}.co-ranged .co-hp-value{font-size:8px}.co-ranged .co-attack{font-size:7px}

.co-crate.co-supply{background:#18392fed;border-color:#b1db85}.co-supply .co-item-title{color:#eff9d8}.co-supply .co-hp-value{font-size:8px;letter-spacing:0;color:#d6efb5}.co-crate-hint{font-size:7px;line-height:11px;letter-spacing:.1px;color:#b9d9d3;text-align:center}.co-number.co-gain{color:#b9f197;text-shadow:0 1px 3px #153727}

.co-supply .co-readout-row{display:block;text-align:center}.co-supply .co-hp-value{display:block;white-space:pre-line;font-size:9px;line-height:12px}.co-supply .co-item-title{font-size:11px}.co-supply .co-crate-hint{font-size:7px}

.co-crate.co-supply{background:#17394df5;border-color:#ffd873}.co-supply .co-item-title{color:#ffe2a0}.co-supply .co-hp-value{color:#f1f4df}

/* The polygon itself carries the fill and one-pixel boundary. */
.co-zone{inset:0;z-index:0;transform:none;will-change:auto}
.co-zone svg{display:block;width:100%;height:100%;overflow:hidden}
.co-zone.co-zone-primary{z-index:1}



.co-drone.co-enemy{border-color:#80dbf4;background:#132c3bf5}.co-drone .co-item-title{color:#b2efff;font-size:9px}.co-drone .co-attack{font-size:8px}

.co-scooter{border-color:#7ee6cc}.co-scooter .co-item-title{color:#b0f6df}



.co-route{display:grid;place-content:center;gap:4px;border:1px solid var(--route-accent);border-radius:7px;background:#172421f2;color:#fff8e9;text-align:center;box-shadow:0 2px 6px #0007;z-index:5}
.combat-overlay .co-route-choice:not(:disabled){pointer-events:auto!important;cursor:pointer;touch-action:manipulation}
.co-route.co-route-choice{padding:2px 5px;gap:2px;white-space:normal;font:inherit;background:#172421e8}
.co-route-choice:focus-visible{outline:2px solid #fff;outline-offset:2px}
.co-route.co-route-choice strong{font-size:clamp(10px,3.25vw,11px);line-height:1.1}
.co-route.co-route-choice span{font-size:clamp(8px,2.5vw,10px);line-height:1.1}
.co-route.co-route-choice small{font-size:8px;font-weight:700;line-height:1.1;color:#d9e6df}
#objective-hud[data-cue="choice"]{background:#1a2c32ed;color:#f8e8bf;border:1px solid #e8bd7380;font-weight:800}
.co-route-rescue{--route-accent:#a1d78d}
.co-route-ammo{--route-accent:#f1cb7b}
.co-route strong{font-size:clamp(10px,3vw,13px);line-height:1;color:var(--route-accent);font-weight:850}
.co-route span{font-size:clamp(7px,2.1vw,9px);font-weight:750;line-height:1}
.co-route.is-selected{border-width:2px;box-shadow:0 0 0 2px #182420,0 0 13px var(--route-accent)}


.co-route{background:linear-gradient(165deg,#2d3a33,#172421);border-top:3px solid var(--route-accent)}
.co-route.is-selected{border-top-width:3px}
.game-shell[data-perimeter-cue="reward"] .combat-overlay .co-readout:not(.co-zone-primary),
.game-shell[data-perimeter-cue="truck"] .combat-overlay .co-readout:not(.co-zone-vehicle):not(.co-zone-primary),
.game-shell[data-perimeter-cue="choice"] .combat-overlay .co-readout:not(.co-route):not(.co-priority):not(.co-zone-primary){visibility:hidden}
.co-route.co-weapon-route{border:1px solid #b9ae878f;background:#172629;box-shadow:0 1px 3px #091515a0;gap:4px}
.co-route.co-weapon-route.is-selected{border-color:var(--route-accent)}
.co-weapon-route strong{font-size:clamp(11px,3.1vw,13px)}
.co-weapon-route span{font-size:clamp(8px,2.45vw,10px)}
.co-route.co-medic-route{background:#132e3b;color:#f1fcf9;border:1px solid #75d9d1;border-left:3px solid #75d9d1;gap:4px;padding:0 4px;white-space:nowrap}
.co-medic-route strong{color:#e7fffa;font-size:clamp(10px,2.9vw,12px);letter-spacing:.015em}
.co-medic-route strong::before{content:'✚';color:#83e8e1;margin-right:4px}
.co-medic-route span{color:#bdece6;font-size:clamp(8px,2.6vw,10px)}
.co-route.co-medic-route.is-selected{box-shadow:0 0 0 1px #1d5661,0 2px 6px #0a1e28c9}
.co-route.co-medic-route.is-contested{border-color:#ffce91}
.co-medic-route.is-contested span{color:#ffdeab}
.co-medic-route.is-compact{padding:0;border-left-width:1px}
.co-medic-route.is-compact strong::before{margin-right:2px}
.co-route.co-medic-route{gap:3px}
.co-medic-health{height:3px;background:#0a1925;border-radius:2px;overflow:hidden}
.co-medic-health i{display:block;height:100%;background:#83e8e1;border-radius:2px}
.co-medic-route.is-critical .co-medic-health i{background:#ffad87}
.co-medic-route.is-critical span{color:#ffbca4}
.co-route.co-escort-target{gap:2px;padding:2px 5px;justify-content:center}
.co-escort-target :is(strong,span){width:100%;overflow:hidden;text-overflow:ellipsis;text-align:center}
.co-escort-target .co-medic-health{width:100%;min-height:3px}
.co-hospital-exit{display:flex;align-items:center;justify-content:center;gap:4px;background:#153a3ff2;border:1px solid #7adbc8;border-radius:4px;color:#e3fff6;font-size:9px}
.co-hospital-exit .co-hazard-mark{font-size:0}
.co-hospital-exit .co-hazard-mark::after{content:'↑';font-size:12px}
#objective-hud.has-hospital-evacuation:not([hidden]){display:flex;align-items:center;justify-content:center;gap:6px;background:linear-gradient(90deg,#112e35f2 0 56%,#112e35a8 79%,#112e3552 100%);color:#f0fff7;border:1px solid #7ddbc874;white-space:nowrap}
#hospital-rescue-count{flex:none;color:#a0f0d6;font-weight:800}
#hospital-escort-health{flex:none;color:#e6fff6;font-variant-numeric:tabular-nums}

.co-crate.co-checkpoint-cage{background:#19382ef5;border-color:#b5e697;text-align:center}
.co-checkpoint-cage .co-item-title{font-size:11px;letter-spacing:.15px}
.co-checkpoint-cage .co-hp-value{color:#f2ffdb;font-size:10px;font-weight:800}
.co-checkpoint-cage .co-hp-track>i{background:#b5e697}

/* Checkpoint. A single road cue, a short hit confirmation and compact supplies. */
.co-road-threat,.co-road-impact,.co-road-supply{
 display:flex;align-items:center;justify-content:center;gap:4px;
 padding:0 4px;border:1px solid;border-radius:5px;
 font-size:10px;font-weight:800;white-space:nowrap;line-height:1;box-shadow:0 1px 4px #0008;
}
.co-road-threat{z-index:3;background:#25232af5;color:#ffe5a2;border-color:#f2bd62}
.co-road-timed{padding-bottom:4px;border-color:#ffc16a}
.co-road-timed::before,.co-road-timed::after{
 content:"";position:absolute;bottom:3px;left:5px;right:5px;height:2px;border-radius:1px;
}
.co-road-timed::before{background:#6b4e36}
.co-road-timed::after{background:#ffd184;transform:scaleX(var(--impact-left,0));transform-origin:left}
.co-road-impact{z-index:4;background:#3a2428f5;color:#ffe0d7;border-color:#ff9f87}
.co-road-impact .co-hazard-mark,.co-road-supply .co-hazard-mark{display:none}
.co-distant-point{color:#ffe0a0;font-size:14px}
.co-road-supply{background:#182b2df2;color:#e7f6cb;border-color:#9bb780;font-size:9px}
.co-hospital-ammo{border-radius:999px;border-color:#88a48c99;background:#182b2ee8;color:#e1edd5;box-shadow:0 1px 3px #0005}
.co-hospital-ammo-sealed{border-color:#d5a472;background:#312822ed;color:#ffe3bd}
.co-impact-source{z-index:3}
.co-impact-source path{stroke:#ffa38b;stroke-width:2;filter:drop-shadow(0 1px 1px #291518)}
.co-checkpoint-cage.co-checkpoint-compact{min-width:0;padding:2px 4px}
.co-checkpoint-compact .co-item-title,.co-checkpoint-compact .co-hp-value{font-size:8px;line-height:9px}
.game-shell:has(.co-road-threat[data-boss]) #boss-hud>.boss-cue:not([data-phase="recovery"]){display:none}
.game-shell:has(.co-road-impact) #hero-damage-feedback{display:none}

.co-escort-target.is-urgent{border-color:#acffe1;box-shadow:0 0 0 1px #76e8b8,0 2px 7px #142622b0}
.co-hospital-battery {border:2px solid #ffe08a;border-radius:50%;background:transparent;box-shadow:0 0 0 2px #553615a8,0 0 12px #ffb84dbf}

/* Informational gesture only: route buttons and steering remain interactive. */
.co-readout.co-priority{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:transparent;border:0;box-shadow:none;color:#fff1d5;pointer-events:none!important;text-align:center;z-index:8}
.co-priority strong{font:750 clamp(12px,3.4vw,16px)/1.25 system-ui;text-shadow:0 2px 5px #071921;white-space:normal}
.co-priority-hand{display:block;font:36px/1.1 system-ui;filter:drop-shadow(0 2px 3px #06131e99);animation:priority-swipe 1.8s ease-in-out infinite;will-change:transform}
@keyframes priority-swipe{0%,100%{transform:translateX(-42px) rotate(-10deg)}50%{transform:translateX(42px) rotate(10deg)}}
@media(prefers-reduced-motion:reduce){.co-priority-hand{animation:none;transform:none}}

/* Fixed screen-size cues follow actual hostile projectiles; never intercept input. */
.co-zone.co-hostile-shot{inset:auto;top:0;left:0;height:4px;min-width:8px;background:#ffd169;border:1px solid #fff5d9;border-radius:3px;box-shadow:0 0 0 1px #442619;transform-origin:100% 50%;margin-left:0;z-index:3}
.co-zone.co-hostile-shot::after{content:'';position:absolute;right:-2px;top:-2px;width:6px;height:6px;border-radius:50%;background:#fff2b9;box-shadow:0 0 0 1px #753619}
.co-zone.co-hostile-acid{background:#83d66b;border-color:#dfffc8}
.co-zone.co-hostile-acid::after{background:#c7ff8d;border-radius:1px}
.co-zone.co-aim-source{inset:auto;top:0;left:0;width:16px;height:16px;border:2px solid #ffe2a1;border-radius:50%;box-shadow:0 0 0 1px #4a2820;z-index:2}

.co-first-attack-path{height:0;border-top:2px dashed #ffcf68;transform-origin:0 0;opacity:.85;filter:drop-shadow(0 1px 2px #17212b)}
.co-first-attack-path::after{content:"";position:absolute;right:0;top:-5px;width:8px;height:8px;border-top:2px solid #ffcf68;border-right:2px solid #ffcf68;transform:rotate(45deg)}
.co-first-attack-label{padding:4px 6px;border:1px solid #ffcf68;border-radius:5px;background:#30241feb;color:#fff3cc;font-size:10px;font-weight:800;white-space:nowrap;pointer-events:none}

.game-shell[data-perimeter-cue] .combat-overlay .co-first-attack-path,.game-shell[data-perimeter-cue] .combat-overlay .co-first-attack-label{visibility:visible}

.co-zone.co-first-attack-label{inset:auto;left:0;top:0;z-index:2}
