/* The Mario kill feed and round clock (client/kill-feed.mjs), in Halo's font.
   --hud is one unit of the engine HUD's 320 x 240 space (engine/mario-hud.inc), so
   both sit where the engine HUD put them, clear of the power meter. */
#kill-feed, #round-clock { --hud:min(calc(100vh / 240), calc(100vw / 320)); --hud-top:0px; display:none; position:fixed; z-index:18; pointer-events:none; text-shadow:1px 1px 2px #000; font-family:Arial,sans-serif; }
.playing.match-menu-ready #kill-feed:not([hidden]), .playing.match-menu-ready #round-clock:not([hidden]) { display:block; }
.match-menu-open :is(#kill-feed, #round-clock), .controls-open :is(#kill-feed, #round-clock) { visibility:hidden; }
#round-clock { top:calc(var(--hud-top) + 37 * var(--hud)); left:max(calc(22 * var(--hud)), env(safe-area-inset-left)); color:#bdd9ff; font-size:max(18px, calc(13 * var(--hud))); line-height:1; }
#kill-feed { top:calc(var(--hud-top) + 8 * var(--hud)); right:max(calc(8 * var(--hud)), env(safe-area-inset-right)); max-width:calc(50vw - 20 * var(--hud)); text-align:right; font-size:max(14px, calc(8 * var(--hud))); line-height:1.25; }
.playing.match-menu-ready #kill-feed:not([hidden]) { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.kill-feed-line { padding:0 6px; color:#a9c8ec; overflow-wrap:anywhere; animation:kill-feed-line 5s linear forwards; }
.kill-feed-line[data-mine="true"] { color:#fff; background:#2896ff4d; }
@keyframes kill-feed-line { 0%, 80% { opacity:1; } 100% { opacity:0; } }
/* Portrait: the engine HUD is 1.5x larger and 34 units down; the feed goes below the power meter. */
@media (orientation:portrait) {
 #kill-feed, #round-clock { --hud:calc(1.5 * min(calc(100vh / 240), calc(100vw / 320))); --hud-top:calc(34 * var(--hud)); }
 #kill-feed { top:calc(var(--hud-top) + 112 * var(--hud)); max-width:calc(100vw - 16 * var(--hud)); }
}
