Costa Rica are into the quarter-finals of the World Cup for the first time in their history after beating Greece 5-3 in a penalty shootout in Recife.
Sokratis Papastathopoulos’s injury-time equaliser for Greece had cancelled out Bryan Ruiz’s side-footed opener and sent the game into extra time.
Costa Rica, down to 10 men for almost an hour after Oscar Duarte’s dismissal, scored their first four spot-kicks.
Theofanis Gekas missed for Greece, and Michael Umana settled the tie.
It means the Central American side – surprise qualifiers from a group containing England, Italy and Uruguay – go through to face the Netherlands on Saturday for a place in the semi-finals as their unlikely run at the World Cup continues.
The last-ditch equaliser and the penalty shootout added belated drama to what had been a less than enthralling encounter at times.