Refactored HUD system and text rendering.