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.
Dimitris Salpingidis had the best chance of a turgid first half but his close-range volley from a fine Jose Holebas cross was saved by the legs of Costa Rica's Keylor Navas - the first of several crucial interventions by the Levante keeper.
Christian Bolanos had already sent a half-chance over the bar for Costa Rica while Greece's Giorgos Karagounis saw a long-range effort comfortably saved as erratic passing meant chances were a rarity.
Greece started the second half well with Giorgos Samaras heading a Holebas cross straight at Navas from six yards.
But it was Costa Rica who broke the deadlock with their first shot on target.
Fulham forward Ruiz, who spent the latter part of last season on loan at PSV Eindhoven, converted from the edge of the area, placing a precise side-foot shot into the corner of the goal after a Bolanos pass from the left found him in space.
The Central Americans were incensed not to be given the chance to double their lead after Greek defender Vasilis Torosidis appeared to handle in the box and then lost Duarte when he brought down Holebas to pick up a second yellow card.
Although the game opened up as a result of the dismissal, neither side was able to create a clear opening until the final minute of the game when Papastathopoulos found the net with a scuffed shot from inside the box after Navas had parried Gekas's shot into his path.
The goal, Papastathopoulos's first in international football, sparked wild celebrations on the Greek bench and they might even have won it in what remained of normal time but Navas superbly tipped Kostas Mitroglou's bullet header over the bar.
Greece had further half-chances through Gekas and Kostas Katsouranis before a golden opportunity to win it arrived in the second half of extra time.
![Costa Rica 1-1 Greece (1) Costa Rica 1-1 Greece (1)](https://i0.wp.com/ichef.bbci.co.uk/onesport/cps/624/mcs/media/images/75927000/jpg/_75927361_f6c9cd7c-607f-4cd0-9b83-44ddddbf2231.jpg)
They broke upfield from a Costa Rica corner and found themselves with a 5-2 advantage, the ball eventually finding its way to Lazaros Christodoulopoulos - but once again Navas responded agilely to turn the strike away for a corner.
And Costa Rica had their keeper to thank yet again as he saved Mitroglou's late half-volley from six yards in the last seconds of extra time.
There was to be further drama before the penalties had even begun as Greece manager Fernando Santos was sent off.
The first seven spot-kicks were confidently dispatched before Navas made his final and decisive contribution, saving from Gekas and leaving Umana to put Costa Rica through.
![Costa Rica 1-1 Greece (2) Costa Rica 1-1 Greece (2)](https://i0.wp.com/ichef.bbci.co.uk/onesport/cps/624/mcs/media/images/75927000/jpg/_75927306_fans.jpg)
![Costa Rica 1-1 Greece (3) Costa Rica 1-1 Greece (3)](https://i0.wp.com/ichef.bbci.co.uk/onesport/cps/624/mcs/media/images/75927000/jpg/_75927305_joel.jpg)
![Costa Rica 1-1 Greece (4) Costa Rica 1-1 Greece (4)](https://i0.wp.com/ichef.bbci.co.uk/onesport/cps/624/mcs/media/images/75927000/jpg/_75927304_salpingidis.jpg)
![Costa Rica 1-1 Greece (5) Costa Rica 1-1 Greece (5)](https://i0.wp.com/ichef.bbci.co.uk/onesport/cps/624/mcs/media/images/75927000/jpg/_75927308_bryan.jpg)
![Costa Rica 1-1 Greece (6) Costa Rica 1-1 Greece (6)](https://i0.wp.com/ichef.bbci.co.uk/onesport/cps/624/mcs/media/images/75927000/jpg/_75927360_b92ccbbf-deef-4a8c-bddc-1f6fe7debad5.jpg)
- Line-ups
- Match Stats
- Live Text
Line-ups
Costa Rica
Formation 5-4-1
1Navas
16Gamboa6Duarte3González4Umaña15Díaz
10Ruiz17Tejeda5Borges7Bolaños
9Campbell
- 1NavasBooked at 90mins
- 16GamboaSubstituted forAcostaat 77'minutes
- 6DuarteBooked at 66mins
- 3González
- 4Umaña
- 15Díaz
- 10RuizBooked at 70mins
- 17TejedaBooked at 48minsSubstituted forCuberoat 66'minutes
- 5Borges
- 7BolañosSubstituted forBrenesat 83'minutes
- 9Campbell
Substitutes
- 2Acosta
- 8Myrie
- 11Barrantes
- 12Francis
- 13Granados
- 14Brenes
- 18Pemberton
- 19Miller
- 20Calvo
- 21Ureña
- 22Cubero
- 23Cambronero
Greece
Formation 4-2-3-1
1Karnezis
15Torosidis4Manolas19Papastathopoulos20Holebas
2Maniatis22Samaris
14Salpingidis10Karagounis16Christodoulopoulos
7Samaras
- 1Karnezis
- 15Torosidis
- 4ManolasBooked at 72mins
- 19Papastathopoulos
- 20Holebas
- 2ManiatisSubstituted forKatsouranisat 78'minutes
- 22SamarisBooked at 36minsSubstituted forMitroglouat 58'minutes
- 14SalpingidisSubstituted forGekasat 69'minutes
- 10Karagounis
- 16Christodoulopoulos
- 7Samaras
Substitutes
- 3Tzavellas
- 5Moras
- 6Tziolis
- 8Kone
- 9Mitroglou
- 11Vyntra
- 12Glykos
- 13Kapino
- 17Gekas
- 18Fetfatzidis
- 21Katsouranis
- 23Tachtsidis
- Referee:
- Ben Williams
- Attendance:
- 41,242
Match Stats
Home TeamCosta RicaAway TeamGreece
- Possession
- Home40%
- Away60%
- Shots
- Home7
- Away23
- Shots on Target
- Home1
- Away8
- Corners
- Home3
- Away11
- Fouls
- Home22
- Away16
Live Text
Post update
Match ends, Costa Rica 1(5), Greece 1(3).
Penalties over
Penalty Shootout ends, Costa Rica 1(5), Greece 1(3).
Goal!
Goal! Costa Rica 1(5), Greece 1(3). Michael Umaña (Costa Rica) converts the penalty with a right footed shot to the top left corner.
Post update
Penalty saved! Theofanis Gekas (Greece) fails to capitalise on this great opportunity, right footed shot saved in the bottom left corner.
Goal!
Goal! Costa Rica 1(4), Greece 1(3). Joel Campbell (Costa Rica) converts the penalty with a left footed shot to the bottom left corner.
Goal!
Goal! Costa Rica 1(3), Greece 1(3). José Holebas (Greece) converts the penalty with a left footed shot to the bottom right corner.
Goal!
Goal! Costa Rica 1(3), Greece 1(2). Giancarlo Gonzalez (Costa Rica) converts the penalty with a right footed shot to the centre of the goal.
Goal!
Goal! Costa Rica 1(2), Greece 1(2). Lazaros Christodoulopoulos (Greece) converts the penalty with a right footed shot to the bottom right corner.
Goal!
Goal! Costa Rica 1(2), Greece 1(1). Bryan Ruiz (Costa Rica) converts the penalty with a left footed shot to the top right corner.
Goal!
Goal! Costa Rica 1(1), Greece 1(1). Kostas Mitroglou (Greece) converts the penalty with a left footed shot to the bottom left corner.
Goal!
Goal! Costa Rica 1(1), Greece 1. Celso Borges (Costa Rica) converts the penalty with a right footed shot to the high centre of the goal.
Penalties in progress
Penalty Shootout begins Costa Rica 1, Greece 1.
Post update
Second Half Extra Time ends, Costa Rica 1, Greece 1.
Post update
Foul by Konstantinos Katsouranis (Greece).
Post update
Randall Brenes (Costa Rica) wins a free kick in the defensive half.
Post update
Corner, Greece. Conceded by Keylor Navas.
Post update
Attempt saved. Kostas Mitroglou (Greece) right footed shot from the centre of the box is saved in the centre of the goal. Assisted by Theofanis Gekas with a headed pass.
Post update
Corner, Greece. Conceded by Johnny Acosta.
Post update
Attempt missed. Kostas Mitroglou (Greece) right footed shot from outside the box is high and wide to the right. Assisted by Kostas Manolas.
Post update
Offside, Greece. Kostas Manolas tries a through ball, but José Holebas is caught offside.
Page 1 of 9