/* Public kill notices occupy the right edge, below the HUD and above controls. */
.kill-feed{position:absolute;right:18px;top:82px;z-index:5;display:flex;flex-direction:column;align-items:flex-end;gap:7px;max-width:min(420px,calc(50% - 150px));padding:0;margin:0;list-style:none;pointer-events:none}
.kill-feed li{display:flex;align-items:center;gap:9px;max-width:100%;min-height:42px;padding:10px 13px;border:1px solid #9fcad181;border-left:3px solid #76bfdd;border-radius:6px;background:#233b44f2;box-shadow:0 2px 8px #17262e20;color:#f4f4ed;font-size:14px;line-height:1.35}
.kill-feed .kill-npc{border-color:#929ba361;border-left-color:#929ba3;background:#30353bf2}
.kill-attacker,.kill-victim{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px;font-weight:750;color:#91d2ff}
.kill-npc .kill-victim{color:#b9bec5;flex-shrink:0}
.kill-action{color:#d1d8ce;font-size:12px;flex-shrink:0}.kill-kind{font-size:10px;font-weight:800;letter-spacing:.4px;color:#91d2ff;flex-shrink:0}.kill-npc .kill-kind{color:#b9bec5}
.death-replay{position:absolute;top:16px;left:50%;transform:translateX(-50%);z-index:7;width:min(540px,calc(100% - 36px));padding:14px 17px 11px;border:1px solid #deaa8c9c;border-top:3px solid #e7ad7b;border-radius:10px;background:#24242af2;color:#fff4e1;box-shadow:0 5px 24px #17131e59}
.death-replay-killer{margin-bottom:9px;color:#ffbca7;font-size:17px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.death-replay-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.death-replay-copy{min-width:0}.replay-badge{display:inline-block;margin-right:7px;padding:3px 5px;border:1px solid #dfbd8380;border-radius:3px;color:#f2d296;background:#7d603331;font-size:9px;line-height:1.2;font-weight:800;vertical-align:middle}
.death-replay strong{font-size:19px;line-height:1.4;overflow-wrap:anywhere;vertical-align:middle}.death-replay small{display:block;margin-top:5px;color:#d2c4c4;font-size:11px;line-height:1.4}
.death-replay button{display:flex;align-items:center;gap:8px;flex-shrink:0;min-height:44px;border:1px solid #b8a09588;border-radius:6px;background:#f2dfc91a;color:#fff1db;padding:7px 11px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.death-replay button:hover{background:#f2dfc933}.death-replay button:focus-visible{outline:3px solid #ffdb9e;outline-offset:3px}.death-replay button kbd{height:auto;min-width:0;padding:3px 5px;border:1px solid #ddc5a680;border-bottom-width:2px;border-radius:3px;background:#211e25;color:#f9e6cc;font-size:9px}
.death-replay-timeline{display:flex;align-items:center;gap:10px;margin-top:10px}.death-replay-timeline small{flex-shrink:0;margin:0;font-size:10px;font-variant-numeric:tabular-nums;color:#d7c9bb}
.death-replay progress{display:block;flex:1;width:100%;height:4px;margin:0;border:0;border-radius:3px;overflow:hidden;accent-color:#edba82;background:#68545b}
.death-replay progress::-webkit-progress-bar{background:#68545b}.death-replay progress::-webkit-progress-value{background:#edba82}.death-replay progress::-moz-progress-bar{background:#edba82}
.death-replay[data-stage=death]{border-top-color:#ec8c74}.death-replay[data-stage=death] .replay-badge{color:#ffc3b1;border-color:#e69d8780;background:#953f3538}
/* The lower cinematic band identifies a recording without obscuring its action. */
.death-replay-caption{position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;padding:0 24px max(28px,env(safe-area-inset-bottom,0px));pointer-events:none;background:linear-gradient(0deg,#090d12f5 0%,#090d12c2 11%,#090d1200 34%);box-shadow:inset 0 0 90px #090d1259;text-align:center;color:#fff7e6}
.death-replay-caption h2{margin:0;font-size:clamp(32px,3.2vw,48px);font-weight:900;line-height:1.15;letter-spacing:-1px;text-shadow:0 3px 0 #0008,0 2px 14px #000a}
.death-replay-caption p{margin:0;color:#e8d4b4;font-size:clamp(12px,1vw,15px);font-weight:650;line-height:1.5;text-shadow:0 2px 4px #000}
.spectator-toolbar{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);z-index:5;max-width:calc(100% - 36px);width:max-content;min-width:min(400px,calc(100% - 36px));padding:10px 12px;border:1px solid #f0d9b25c;border-radius:10px;background:#302e34ee;color:#f7eddb;box-shadow:0 4px 18px #211b2c33}
.spectator-summary{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;justify-content:space-between;margin-bottom:7px;font-size:11px}.spectator-summary strong{font-size:12px;overflow-wrap:anywhere}.spectator-summary span{color:#cebdab;white-space:nowrap}
.spectator-controls{display:flex;align-items:center;gap:5px}.spectator-controls button,.spectator-controls select{min-height:36px;padding:6px 10px;border:1px solid #bda68a61;border-radius:6px;background:#55484ce6;color:#fff1db;font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.spectator-controls select{min-width:120px;max-width:210px;flex:1;text-overflow:ellipsis}.spectator-controls select option{background:#3c343a;color:#fff1db}
.spectator-controls button[aria-pressed=true]{background:#e2b77c;color:#342e2d;border-color:#f1cea0}.spectator-controls button:disabled,.spectator-controls select:disabled{opacity:.45;cursor:default}
.spectator-modes{display:flex;gap:5px;margin-left:9px}.spectator-empty{margin:0;font-size:12px;color:#e9d9c4;text-align:center;line-height:1.5}
.game-card.spectating #crosshair,.game-card.spectating #look-hint,.game-card.spectating #zone-status,.game-card.spectating #self-status,.game-card.spectating #attack-status,.game-card.spectating #mobile-controls{display:none!important}
.game-card.replaying .combat-feedback.kind-eliminated{display:none!important}
.game-card.replaying :is(.kill-feed,.event-feed,.hud-center,.hud-location){visibility:hidden}
@media(max-width:850px),(pointer:coarse){
  .kill-feed{top:calc(64px + env(safe-area-inset-top,0px));right:calc(12px + env(safe-area-inset-right,0px));max-width:min(320px,calc(50% - 112px));gap:5px}
  .kill-feed li{min-height:35px;padding:7px 9px;font-size:12px;gap:6px}.kill-attacker,.kill-victim{max-width:110px}.kill-action{font-size:10px}.kill-kind{font-size:9px}
  .death-replay{top:calc(10px + env(safe-area-inset-top,0px));left:max(12px,env(safe-area-inset-left,0px));transform:none;width:min(580px,calc(100% - 224px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));padding:9px 12px 8px}
  .death-replay-killer{font-size:14px;margin-bottom:5px}.death-replay-top{gap:10px}.death-replay strong{font-size:16px}.death-replay small{font-size:10px}
  .death-replay button{min-height:44px;font-size:11px;padding:6px 9px}.death-replay-timeline{margin-top:7px}.death-replay-timeline small{font-size:9px}
  .death-replay-caption{gap:4px;padding:0 14px max(15px,env(safe-area-inset-bottom,0px));background:linear-gradient(0deg,#090d12f5 0%,#090d12b8 15%,#090d1200 36%);box-shadow:inset 0 0 45px #090d1240}
  .death-replay-caption h2{font-size:clamp(26px,4vw,34px);letter-spacing:-.6px}.death-replay-caption p{font-size:11px}
  .spectator-toolbar{bottom:calc(10px + env(safe-area-inset-bottom,0px));max-width:calc(100% - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));padding:8px 10px}
  .spectator-controls button,.spectator-controls select{min-height:44px;font-size:12px;padding:7px 10px}.spectator-controls select{max-width:170px}.spectator-summary{margin-bottom:5px}
}
@media(max-width:600px){.spectator-controls{flex-wrap:wrap}.spectator-controls select{max-width:calc(100% - 100px)}.spectator-modes{margin-left:0}.death-replay .replay-badge{display:none}.death-replay strong{font-size:14px}.kill-feed .kill-kind{display:none}}
@media(max-height:360px) and (max-width:850px),(max-height:360px) and (pointer:coarse){.kill-feed li:nth-child(n+4){display:none}}
@media(max-height:360px){.death-replay-caption{gap:3px;padding-bottom:max(10px,env(safe-area-inset-bottom,0px))}.death-replay-caption h2{font-size:26px}.death-replay-caption p{font-size:10px}}
@media(min-width:851px) and (max-height:700px) and (pointer:fine){#game-shell:not(:fullscreen) .game-card:not(:fullscreen) .kill-feed li:nth-child(n+4){display:none}}
@media(min-width:851px) and (max-height:600px) and (pointer:fine){#game-shell:not(:fullscreen) .game-card:not(:fullscreen) .kill-feed li:nth-child(n+3){display:none}}
@media(prefers-reduced-motion:reduce){.kill-feed li{animation:none}}
