/* First-person HUD: crosshair and incoming-shell arrow. */
#vignette, #hurt, #tags, #floats, #hud, #mini, #banner, #subtitle { pointer-events: none; }
/* touch look follows the finger itself: the right thumb stick's ring is not drawn */
[data-controls] [data-stick="right"], [data-controls] [data-stick="right"] + div { display: none !important; }
/* while the intro cutscene plays over the title, the title's prompt and button step aside for its subtitles */
#title.intro-on #pressStart, #title.intro-on #lbBtn { visibility: hidden; }

#crosshair {
  position: absolute; left: 50%; top: 50%;
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border: 2px solid rgba(255, 255, 255, 0.85); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.45);
  pointer-events: none; transition: transform 0.12s ease-out, border-color 0.12s, box-shadow 0.12s;
  z-index: 2;
}
#crosshair i {
  position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px;
  background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}
#crosshair.on {
  border-color: var(--yellow, #ffcf3a);
  box-shadow: 0 0 10px rgba(255, 207, 58, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.6);
  transform: scale(1.35);
}
#crosshair.on i { background: var(--yellow, #ffcf3a); }

#threat {
  position: absolute; left: 50%; top: 50%;
  width: 160px; height: 160px; margin: -80px 0 0 -80px;
  opacity: 0; transform: rotate(var(--a, 0rad));
  pointer-events: none; transition: opacity 0.15s; z-index: 2;
}
#threat::before {
  content: ""; position: absolute; left: 50%; top: -6px; margin-left: -14px;
  border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-bottom: 24px solid #ff3a2a;
  filter: drop-shadow(0 0 6px rgba(255, 58, 42, 0.95)) drop-shadow(0 0 2px #000);
}
#threat.on { opacity: 1; }
#threat.on::before { animation: threatPulse 0.45s ease-in-out infinite alternate; }
#threat.in::after {
  content: ""; position: absolute; inset: 18px; border-radius: 50%;
  border: 3px solid rgba(255, 58, 42, 0.85);
  box-shadow: 0 0 14px rgba(255, 58, 42, 0.9), inset 0 0 14px rgba(255, 58, 42, 0.6);
  animation: threatPulse 0.3s ease-in-out infinite alternate;
}
@keyframes threatPulse { from { opacity: 0.55; } to { opacity: 1; } }

#threatLabel {
  position: absolute; left: 50%; top: calc(50% + 92px); transform: translateX(-50%);
  font-size: 18px; color: #ff5a3a; white-space: nowrap; pointer-events: none;
  text-shadow: var(--ol, 0 0 3px #000), 0 0 10px rgba(255, 58, 42, 0.8);
  opacity: 0; transition: opacity 0.15s; z-index: 2;
}
#threatLabel.on { opacity: 1; animation: threatPulse 0.3s ease-in-out infinite alternate; }

@media (max-height: 520px) {
  #crosshair { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
  #threat { width: 128px; height: 128px; margin: -64px 0 0 -64px; }
  #threatLabel { top: calc(50% + 72px); font-size: 15px; }
}
