/* Match events (MatchEventManager), environment pulse (EnvironmentEventManager), punchier hitmarkers.
   Only transform + opacity are animated (no layout properties) — cheap for the compositor. */
.mev { position: absolute; top: 30%; left: 50%; transform: translate(-50%, 0); display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 6;
  font-family: 'Anton', 'Impact', sans-serif; zoom: calc(var(--ui) * var(--ui-k)); }
.mev.hidden { display: none; }
.mev b { font-weight: 400; font-size: 58px; letter-spacing: 4px; color: #fff; line-height: 1;
  -webkit-text-stroke: 3px #1b1440; paint-order: stroke fill; text-shadow: 0 6px 0 rgba(27, 20, 64, 0.55), 0 0 24px rgba(255, 178, 28, 0.45);
  background: linear-gradient(180deg, #fff6c8, #ffb21c 60%, #ff7a1a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mev small { margin-top: 6px; font: 700 18px 'Rajdhani', sans-serif; letter-spacing: 3px; color: #e9e6ff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.mev.small b { font-size: 34px; }
.mev.warn b { background: linear-gradient(180deg, #ffe0e0, #ff5a6e 60%, #c4243a); -webkit-background-clip: text; background-clip: text; text-shadow: 0 6px 0 rgba(27, 20, 64, 0.55), 0 0 24px rgba(255, 70, 90, 0.5); }
.mev.good b { background: linear-gradient(180deg, #e9fff3, #3be38a 60%, #17a35d); -webkit-background-clip: text; background-clip: text; }
.mev.hot b { background: linear-gradient(180deg, #e9fcff, #3fe6ff 45%, #b45cff); -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 26px rgba(180, 92, 255, 0.6); }
.mev.head b { font-size: 26px; background: linear-gradient(180deg, #fff6c8, #ffd23f); -webkit-background-clip: text; background-clip: text; }
.mev.head { top: 56%; }
.mev.show { animation: mevIn 0.32s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes mevIn { from { opacity: 0; transform: translate(-50%, 10px) scale(1.6); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* environment reaction: subtle screen-edge pulse (alarm red, hot zone purple) + explosion flash */
.env-pulse { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1; }
.env-pulse.alarm { box-shadow: inset 0 0 120px 20px rgba(255, 40, 60, 0.55); animation: envPulse 1.1s ease-in-out infinite; }
.env-pulse.hot { box-shadow: inset 0 0 120px 20px rgba(180, 92, 255, 0.45); animation: envPulse 1.6s ease-in-out infinite; }
.env-pulse.flash { background: #fff; animation: envFlash 0.45s ease-out; }
@keyframes envPulse { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.6; } }
@keyframes envFlash { from { opacity: 0.55; } to { opacity: 0; } }

/* hitmarkers: body / headshot / kill read differently */
.hitmarker.show { animation: hitmarkPop 0.3s ease-out; }
.hitmarker.head i { background: #ffd23f; height: 11px; box-shadow: 0 0 6px rgba(255, 210, 63, 0.9); }
.hitmarker.kill i { background: #ff4d5e; height: 13px; width: 3px; box-shadow: 0 0 8px rgba(255, 77, 94, 0.9); }
@keyframes hitmarkPop { 0% { opacity: 1; transform: scale(1.45); } 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.9); } }
