Tight shoes trap moisture and pressure the nail. Synthetic socks trap sweat. Choose breathable shoes, moisture-wicking socks (merino or synthetic athletic blends over cotton), and give toes room. Alternate shoes daily.
Sweaty feet are high-risk. Change socks after workouts, use antifungal foot powder, and never share footwear.