/* Scoped overlays: the existing HUD and controls retain their positions. */
#mapa-vida-terrain .damage-feedback{position:fixed;inset:0;z-index:80;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,transparent 40%,#8b071760 73%,#e42649d9 100%);box-shadow:inset 0 0 70px #a3123540;--hit-opacity:.3}
#mapa-vida-terrain .damage-light{--hit-opacity:.28}
#mapa-vida-terrain .damage-medium{--hit-opacity:.48}
#mapa-vida-terrain .damage-heavy{--hit-opacity:.72}
#mapa-vida-terrain .damage-critical{--hit-opacity:.95}
#mapa-vida-terrain .damage-feedback.is-hit{animation:city-damage-hit 1.1s ease-out both}
#mapa-vida-terrain.combat-damage .life-world:after{display:none}
@keyframes city-damage-hit{0%{opacity:0}10%{opacity:var(--hit-opacity)}30%{opacity:calc(var(--hit-opacity)*.7)}100%{opacity:0}}
#mapa-vida-terrain .combat-down.death-screen{display:none!important;position:fixed;inset:0;top:0;left:0;transform:none;width:auto;z-index:90;border:0;border-radius:0;padding:max(18px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));box-sizing:border-box;background:radial-gradient(ellipse at 50% 40%,#1320299e 0%,#1d0d18d9 70%,#3c0f20eb 100%);color:#fff7f8;pointer-events:auto;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain;touch-action:none;backdrop-filter:blur(3px) saturate(.35)}
#mapa-vida-terrain.player-deceased .combat-down.death-screen{display:flex!important;animation:city-death-enter .65s ease-out both}
.death-card{width:min(440px,100%);text-align:center;font-family:inherit;animation:city-death-card .7s cubic-bezier(.2,.7,.3,1) both}
.death-emblem{width:76px;height:76px;margin:0 auto 16px;display:grid;place-items:center;border:1px solid #fa9bad66;border-radius:24px;color:#ffc5ce;background:linear-gradient(145deg,#e549642e,#662d4426);box-shadow:0 0 40px #d43e5326}
.death-emblem svg{width:48px;height:48px}
.death-card .death-kicker{display:block;color:#f1a4b1;font-size:10px;font-weight:700;letter-spacing:.28em}
.death-card h2{margin:7px 0 8px;font-size:clamp(36px,7vw,54px);font-weight:800;letter-spacing:-.045em;line-height:1.05}
.death-card .death-subtitle{margin:0 0 26px;color:#d2c6ce;font-size:14px;line-height:1.5}
.death-card .death-count{display:flex;gap:16px;align-items:center;text-align:left;border:1px solid #f4bbcb26;border-radius:18px;background:#1418208c;padding:16px 20px}
.death-card .death-seconds{font-size:38px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums;color:#ffb4c2;min-width:50px;margin:0}
.death-card .death-count-label{display:block;font-size:16px;line-height:1.4}
.death-card .death-count-hint{display:block;font-size:11px;color:#bbaeb8;margin-top:4px;line-height:1.4}
.death-track{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin:12px 4px 22px}
.death-track i{height:3px;border-radius:3px;background:#ffd3de24;transition:background .35s,box-shadow .35s}
.death-track i.is-complete{background:#f49dac;box-shadow:0 0 8px #f49dac35}
.death-card .death-footer{display:flex;align-items:center;justify-content:center;gap:7px;color:#c6bbc4;font-size:11px}
.death-card .death-footer svg{width:17px;height:17px;color:#bad7cd;flex:none}
.death-card .death-footer span{margin:0;font-size:inherit}
.death-live-clock,.death-announcement{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
@keyframes city-death-enter{from{opacity:0}to{opacity:1}}
@keyframes city-death-card{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:480px){.death-card{width:min(400px,100%)}.death-emblem{width:48px;height:48px;border-radius:16px;margin-bottom:9px}.death-emblem svg{width:34px;height:34px}.death-card h2{font-size:38px}.death-card .death-subtitle{margin-bottom:14px;font-size:12px}.death-card .death-count{padding:10px 16px}.death-card .death-seconds{font-size:30px}.death-track{margin:10px 4px 12px}}
@media(prefers-reduced-motion:reduce){#mapa-vida-terrain .damage-feedback.is-hit{animation:none;opacity:calc(var(--hit-opacity)*.65)}#mapa-vida-terrain.player-deceased .combat-down.death-screen,.death-card{animation:none}.death-track i{transition:none}}
