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.

Analysis

"To play with 10 men for so long, to hold on and maintain their composure in the penalties, there was no panic whatsoever. They had the arrogance to stay up there and say: 'I'll take it in my time.'

"They should be so proud. This is history for their country, they should celebrate now and they deserve it. Incredible scenes."

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.

Papastathopoulos equalises in last minute for Greece

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.

Extended deadline

I spoke to a Costa Rican journalist who was in tears after the match. He told me he is now changing his flights home for a third time. His newspaper didn't budget for the team getting out of the group.

BBC Sport's Seth Bennett in Recife

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.

Keylor Navas stat

Levante goalkeeper Keylor Navas has rejected a new contract with the Spanish club and is reportedly available for £8m

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 fans

Costa Rica fans made the most of their unexpected place in the last 16 of the World Cup

Joel Campbell

Costa Rica forward Joel Campbell struggled to find space in a tight first half

Dimitris Salpingidis

Dimitris Salpingidis had a volley from close range saved by Keylor Navas

Bryan Ruiz

Fulham striker Ruiz scored the opener and dispatched his spot-kick in the shootout

Keylor Navas saves

Theofanis Gekas missed the decisive penalty, with Keylor Navas making a superb save

Lineup, Bookings (8) & Substitutions (6)

Costa Rica

  • 01 Navas Booked
  • 16 Gamboa (Acosta - 77' )
  • 15 Díaz Campbell
  • 04 Umaña
  • 03 Gonzalez
  • 06 Duarte Dismissed after an earlier booking
  • 10 Ruiz Booked
  • 17 Tejeda Valverde Booked (Cubero - 66' )
  • 09 Campbell
  • 05 Borges
  • 07 Bolaños (Brenes - 83' )

Substitutes

  • 02 Acosta
  • 08 Myrie
  • 11 Barrantes
  • 12 Francis
  • 13 Granados Maroto
  • 14 Brenes
  • 18 Pemberton
  • 19 Miller
  • 20 Calvo
  • 21 Ureña
  • 22 Cubero
  • 23 Cambronero

Greece

  • 01 Karnezis
  • 15 Torosidis
  • 20 Holebas
  • 22 Samaris Booked (Mitroglou - 58' )
  • 04 Manolas Booked
  • 19 Papastathopoulos
  • 14 Salpingidis (Gekas - 69' )
  • 02 Maniatis (Katsouranis - 78' )
  • 07 Samaras
  • 10 Karagounis
  • 16 Christodoulopoulos

Substitutes

  • 03 Tzavellas
  • 05 Moras
  • 06 Tziolis
  • 08 Kone
  • 09 Mitroglou
  • 11 Vyntra
  • 12 Glykos
  • 13 Kapino
  • 17 Gekas
  • 18 Fetfatzidis
  • 21 Katsouranis
  • 23 Tachtsidis
Ref: Ben Williams
Att: 41,242

Match Stats

Shots

7 23

On target

1 8

Corners

3 11

Fouls

22 16

Live Text Commentary

Full time

Full Time Match ends, Costa Rica 1(5), Greece 1(3).

120:00 +8:30

Penalty Shootout ends, Costa Rica 1(5), Greece 1(3).

120:00 +8:25 Goal scored

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.

120:00 +7:08

Penalty saved! Theofanis Gekas (Greece) fails to capitalise on this great opportunity, right footed shot saved in the bottom left corner.

120:00 +6:19 Goal scored

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.

120:00 +5:25 Goal scored

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.

120:00 +4:34 Goal scored

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.

120:00 +3:49 Goal scored

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.

120:00 +3:10 Goal scored

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.

120:00 +2:23 Goal scored

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.

120:00 +1:34 Goal scored

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.

120:00 Penalty shootout

Penalty Shootout begins Costa Rica 1, Greece 1.

120:00 +1:57

Second Half Extra Time ends, Costa Rica 1, Greece 1.

120:00 +1:16

Foul by Konstantinos Katsouranis (Greece).

120:00 +1:16

Randall Brenes (Costa Rica) wins a free kick in the defensive half.

120:00 +0:47

Corner, Greece. Conceded by Keylor Navas.

120:00 +0:42

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.

119:25

Corner, Greece. Conceded by Johnny Acosta.

118:06

Attempt missed. Kostas Mitroglou (Greece) right footed shot from outside the box is high and wide to the right. Assisted by Kostas Manolas.

116:33

Offside, Greece. Kostas Manolas tries a through ball, but José Holebas is caught offside.

115:56

Corner, Greece. Conceded by Randall Brenes.

114:30

Sokratis (Greece) wins a free kick in the defensive half.

114:30

Foul by Randall Brenes (Costa Rica).

112:46

Attempt missed. Giorgos Karagounis (Greece) right footed shot from outside the box misses to the right. Assisted by Sokratis.

112:11

Attempt saved. Lazaros Christodoulopoulos (Greece) right footed shot from the right side of the box is saved in the centre of the goal. Assisted by Kostas Mitroglou.

111:20

Corner, Costa Rica. Conceded by Konstantinos Katsouranis.

109:57

Offside, Costa Rica. Celso Borges tries a through ball, but Joel Campbell is caught offside.

109:23

Attempt missed. Giancarlo Gonzalez (Costa Rica) right footed shot from the left side of the box misses to the right. Assisted by Randall Brenes with a cross following a set piece situation.

108:46

Foul by Konstantinos Katsouranis (Greece).

108:46

Joel Campbell (Costa Rica) wins a free kick in the attacking half.

107:16

Delay in match Keylor Navas (Costa Rica) because of an injury.

105:15

Attempt missed. Randall Brenes (Costa Rica) right footed shot from the right side of the box is just a bit too high. Assisted by Joel Campbell with a headed pass.

105:00

Second Half Extra Time begins Costa Rica 1, Greece 1.

105:05

First Half Extra Time ends, Costa Rica 1, Greece 1.

104:55

Offside, Greece. José Holebas tries a through ball, but Theofanis Gekas is caught offside.

103:39

Giorgos Karagounis (Greece) wins a free kick in the defensive half.

103:39

Foul by Randall Brenes (Costa Rica).

102:16

Foul by Kostas Mitroglou (Greece).

102:16

José Cubero (Costa Rica) wins a free kick in the defensive half.

99:48

Corner, Greece. Conceded by Giancarlo Gonzalez.

99:45

Attempt blocked. Konstantinos Katsouranis (Greece) left footed shot from the left side of the box is blocked.

98:50

Georgios Samaras (Greece) wins a free kick on the left wing.

98:50

Foul by Giancarlo Gonzalez (Costa Rica).

97:50

Foul by Kostas Manolas (Greece).

97:50

Júnior Díaz (Costa Rica) wins a free kick in the defensive half.

97:09

Corner, Greece. Conceded by Randall Brenes.

94:58

Attempt blocked. Giorgos Karagounis (Greece) left footed shot from outside the box is blocked. Assisted by Konstantinos Katsouranis.

94:00

Attempt missed. Theofanis Gekas (Greece) header from the centre of the box is close, but misses to the right. Assisted by Kostas Mitroglou with a headed pass.

92:51

Attempt missed. Lazaros Christodoulopoulos (Greece) right footed shot from the right side of the box is high and wide to the right.

91:24

Offside, Greece. Georgios Samaras tries a through ball, but Kostas Mitroglou is caught offside.

91:00

José Holebas (Greece) wins a free kick on the left wing.

91:00

Foul by Randall Brenes (Costa Rica).

90:00

First Half Extra Time begins Costa Rica 1, Greece 1.

90:00 +5:23 Full time

Full Time Second Half ends, Costa Rica 1, Greece 1.

90:00 +4:40

Foul by Giorgos Karagounis (Greece).

90:00 +4:40

Joel Campbell (Costa Rica) wins a free kick in the defensive half.

90:00 +3:32

Delay in match Keylor Navas (Costa Rica) because of an injury.

90:00 +2:52

Corner, Greece. Conceded by Keylor Navas.

90:00 +2:51

Attempt saved. Kostas Mitroglou (Greece) header from the centre of the box is saved in the top centre of the goal. Assisted by Vasilis Torosidis.

90:00 +0:11 Goal scored

Goal! Goal! Costa Rica 1, Greece 1. Sokratis (Greece) right footed shot from the centre of the box to the top right corner.

90:00 +0:09

Attempt saved. Theofanis Gekas (Greece) right footed shot from the centre of the box is saved in the centre of the goal. Assisted by Sokratis.

89:12 Booking

Booking Keylor Navas (Costa Rica) is shown the yellow card.

86:05

Foul by Giorgos Karagounis (Greece).

86:05

Bryan Ruiz (Costa Rica) wins a free kick on the left wing.

83:57

Corner, Greece. Conceded by Júnior Díaz.

83:27

Kostas Manolas (Greece) wins a free kick in the defensive half.

83:27

Foul by Joel Campbell (Costa Rica).

82:54 Substitution

Substitution Substitution, Costa Rica. Randall Brenes replaces Christian Bolaños.

81:20

Attempt missed. Kostas Manolas (Greece) header from the centre of the box is high and wide to the right. Assisted by José Holebas with a cross following a set piece situation.

80:31

Georgios Samaras (Greece) wins a free kick in the attacking half.

80:31

Foul by José Cubero (Costa Rica).

79:22

Attempt missed. Giorgos Karagounis (Greece) right footed shot from outside the box is too high from a direct free kick.

78:20

Giorgos Karagounis (Greece) wins a free kick in the attacking half.

78:20

Foul by José Cubero (Costa Rica).

77:07 Substitution

Substitution Substitution, Greece. Konstantinos Katsouranis replaces Giannis Maniatis.

76:20 Substitution

Substitution Substitution, Costa Rica. Johnny Acosta replaces Cristian Gamboa.

73:35

Hand ball by Joel Campbell (Costa Rica).

71:49 Booking

Booking Kostas Manolas (Greece) is shown the yellow card for a bad foul.

71:45

Foul by Kostas Manolas (Greece).

71:45

Joel Campbell (Costa Rica) wins a free kick in the attacking half.

71:14

Vasilis Torosidis (Greece) wins a free kick on the right wing.

71:14

Foul by Christian Bolaños (Costa Rica).

69:44 Booking

Booking Bryan Ruiz (Costa Rica) is shown the yellow card.

69:41

Georgios Samaras (Greece) wins a free kick in the defensive half.

69:41

Foul by Bryan Ruiz (Costa Rica).

68:58

Attempt missed. Lazaros Christodoulopoulos (Greece) with an attempt from the centre of the box misses to the right.

68:11 Substitution

Substitution Substitution, Greece. Theofanis Gekas replaces Dimitrios Salpingidis.

67:28

Foul by Kostas Manolas (Greece).

67:28

Joel Campbell (Costa Rica) wins a free kick in the attacking half.

66:46

Attempt missed. Georgios Samaras (Greece) header from the centre of the box misses to the right. Assisted by José Holebas with a cross following a set piece situation.

65:40 Dismissal

Dismissal Second yellow card to Oscar Duarte (Costa Rica) for a bad foul.

65:39

José Holebas (Greece) wins a free kick in the attacking half.

65:39

Foul by Oscar Duarte (Costa Rica).

65:22 Substitution

Substitution Substitution, Costa Rica. José Cubero replaces Yeltsin Tejeda.

63:46

Foul by Dimitrios Salpingidis (Greece).

63:46

Júnior Díaz (Costa Rica) wins a free kick in the defensive half.

61:14

Foul by Christian Bolaños (Costa Rica).

61:14

Vasilis Torosidis (Greece) wins a free kick in the defensive half.

60:34

Offside, Greece. Lazaros Christodoulopoulos tries a through ball, but Kostas Mitroglou is caught offside.

57:12 Substitution

Substitution Substitution, Greece. Kostas Mitroglou replaces Andreas Samaris.

56:49

Foul by Bryan Ruiz (Costa Rica).

56:49

Andreas Samaris (Greece) wins a free kick in the defensive half.

55:25 Booking

Booking Esteban Granados (Costa Rica) is shown the yellow card.

55:12

Foul by Celso Borges (Costa Rica).

55:12

Dimitrios Salpingidis (Greece) wins a free kick in the defensive half.

53:56

Attempt blocked. Christian Bolaños (Costa Rica) left footed shot from the left side of the box is blocked. Assisted by Celso Borges.

51:50 Goal scored

Goal! Goal! Costa Rica 1, Greece 0. Bryan Ruiz (Costa Rica) left footed shot from outside the box to the bottom right corner. Assisted by Christian Bolaños.

48:30

Corner, Greece. Conceded by Cristian Gamboa.

47:29 Booking

Booking Yeltsin Tejeda (Costa Rica) is shown the yellow card for a bad foul.

47:26

Foul by Yeltsin Tejeda (Costa Rica).

47:26

Giorgos Karagounis (Greece) wins a free kick in the defensive half.

46:44

Attempt saved. Georgios Samaras (Greece) header from the centre of the box is saved in the centre of the goal. Assisted by José Holebas with a cross.

45:58

Foul by Oscar Duarte (Costa Rica).

45:58

Lazaros Christodoulopoulos (Greece) wins a free kick on the left wing.

45:00

Second Half begins Costa Rica 0, Greece 0.

45:00 +2:03 Half time

Half Time First Half ends, Costa Rica 0, Greece 0.

45:00 +1:34

Yeltsin Tejeda (Costa Rica) wins a free kick in the defensive half.

45:00 +1:34

Foul by Andreas Samaris (Greece).

45:00 +0:32

Offside, Greece. José Holebas tries a through ball, but Lazaros Christodoulopoulos is caught offside.

45:00 +0:09

Attempt blocked. Andreas Samaris (Greece) right footed shot from outside the box is blocked. Assisted by Georgios Samaras.

43:52

Foul by Cristian Gamboa (Costa Rica).

43:52

José Holebas (Greece) wins a free kick in the defensive half.

43:24

Keylor Navas (Costa Rica) wins a free kick in the defensive half.

43:24

Foul by Sokratis (Greece).

41:53 Booking

Booking Oscar Duarte (Costa Rica) is shown the yellow card for a bad foul.

41:51

Foul by Oscar Duarte (Costa Rica).

41:51

Lazaros Christodoulopoulos (Greece) wins a free kick in the attacking half.

41:35

Foul by Joel Campbell (Costa Rica).

41:35

Giannis Maniatis (Greece) wins a free kick in the defensive half.

39:30

Foul by Celso Borges (Costa Rica).

39:30

Giannis Maniatis (Greece) wins a free kick in the defensive half.

39:01

Offside, Greece. Andreas Samaris tries a through ball, but Dimitrios Salpingidis is caught offside.

37:27

Keylor Navas (Costa Rica) wins a free kick in the defensive half.

37:27

Foul by Georgios Samaras (Greece).

36:36

Corner, Greece. Conceded by Keylor Navas.

36:33

Attempt saved. Dimitrios Salpingidis (Greece) right footed shot from very close range is saved in the centre of the goal. Assisted by José Holebas with a cross.

35:05 Booking

Booking Andreas Samaris (Greece) is shown the yellow card for a bad foul.

35:01

Joel Campbell (Costa Rica) wins a free kick in the attacking half.

35:01

Foul by Andreas Samaris (Greece).

31:08

Offside, Greece. Georgios Samaras tries a through ball, but Lazaros Christodoulopoulos is caught offside.

31:06

Attempt blocked. Andreas Samaris (Greece) right footed shot from outside the box is blocked.

30:14

Corner, Costa Rica. Conceded by José Holebas.

28:56

Offside, Greece. Giorgos Karagounis tries a through ball, but Georgios Samaras is caught offside.

27:48

Attempt saved. Giorgos Karagounis (Greece) right footed shot from outside the box is saved in the top right corner.

24:28

Corner, Greece. Conceded by Giancarlo Gonzalez.

22:16

Attempt missed. Celso Borges (Costa Rica) header from the centre of the box misses to the left. Assisted by Christian Bolaños with a cross following a set piece situation.

20:35

Joel Campbell (Costa Rica) wins a free kick on the right wing.

20:35

Foul by Giorgos Karagounis (Greece).

20:03

Corner, Costa Rica. Conceded by Giannis Maniatis.

17:13

Bryan Ruiz (Costa Rica) wins a free kick in the defensive half.

17:13

Foul by Giannis Maniatis (Greece).

16:22

Offside, Greece. Giorgos Karagounis tries a through ball, but Vasilis Torosidis is caught offside.

14:40

Attempt missed. Sokratis (Greece) header from the centre of the box misses to the right. Assisted by Giorgos Karagounis with a cross following a corner.

14:01

Corner, Greece. Conceded by Michael Umaña.

13:24

Joel Campbell (Costa Rica) wins a free kick on the left wing.

13:24

Foul by Kostas Manolas (Greece).

11:20

Attempt missed. Lazaros Christodoulopoulos (Greece) right footed shot from outside the box misses to the left. Assisted by Giannis Maniatis.

10:22

Offside, Greece. Vasilis Torosidis tries a through ball, but Georgios Samaras is caught offside.

10:01

Foul by Michael Umaña (Costa Rica).

10:01

Giorgos Karagounis (Greece) wins a free kick on the right wing.

7:02

Attempt missed. Christian Bolaños (Costa Rica) left footed shot from the left side of the box is too high. Assisted by Bryan Ruiz.

4:02

Attempt missed. Cristian Gamboa (Costa Rica) right footed shot from outside the box misses to the left. Assisted by Bryan Ruiz.

1:17

Attempt missed. Lazaros Christodoulopoulos (Greece) right footed shot from outside the box misses to the right following a set piece situation.

0:22

Georgios Samaras (Greece) wins a free kick on the right wing.

0:22

Foul by Michael Umaña (Costa Rica).

0:00

First Half begins.

0:00

Lineups are announced and players are warming up.

Live data and text provided by our data suppliers