Goalkeeper Dominik Livakovic was the hero, saving three penalties in the shootout, as Croatia edged past Japan after a 1-1 draw to reach the World Cup quarter-finals.