How to handle mobile display notches and safe area insets in games?
Query the device's safe-area insets (top, bottom, left, right in pixels) and pad or reposition HUD elements so nothing sits under a notch, rounded corner or platform UI. Recompute on orientation change and window resize.