It's a ridiculous system. A player who receives a yellow card in the first group game and the quarter-finals (two yellow cards in five games) is banned for the semi-finals, but a player who receives a yellow card in the quarter-finals and the semi-finals (two yellow cards in two games) can play in the final.