With Mario already having a yellow there also was a high risk for him to get a second yellow. So much talent, so little brain.
And yeah, the diving from both sides was rather annoying but not entirely unexpected either. The refs have really failed this entire tourney to hand out yellows for dives and also for asking for cards.