Here is the part that fools everyone. The referee checks the attacker's position at the moment the pass is kicked, not the moment they receive it. A striker can be standing level when the ball is played and then sprint past the defenders, and that is perfectly onside. This is why a fast forward can look like they are miles ahead but the goal still counts. To be flagged, an attacker also has to be involved in play, by touching the ball, blocking an opponent, or stopping the goalkeeper from seeing. Just standing in an offside spot doing nothing is allowed.
⚡ DID YOU KNOW?
Hands and arms do not count for offside, because you cannot legally score with them. Only the parts of the body you can score with are measured.