ARTICLE AD BOX
By Phil McNultyChief football writer at Al Bayt Stadium
Last updated on 8 minutes ago.From the section World Cup

Germany crashed out of the World Cup on a remarkable night of drama despite victory over Costa Rica at Al Bayt Stadium.
Japan's 2-1 win against Spain would have eliminated Germany anyway, but Hansi Flick's side needed three points to give themselves any chance of reaching the last 16.
They completed their part of the bargain, but it was to no avail as the four-time champions finished third in the group and were eliminated on goal difference.
Germany were in complete control and in front through Serge Gnabry's 10th-minute header only for Costa Rica to turn the match on its head to raise the remarkable possibility of Spain also going out.
Yeltsin Tejeda equalised after Germany keeper Manuel Neuer pushed out Kendall Waston's header in the 58th minute, before Juan Pablo Vargas bundled in a second 12 minutes later.
At that stage, Costa Rica were going through with Japan, and Spain were heading for the exit.
It would have capped one of the most astonishing nights in World Cup history, but Germany substitute Kai Havertz restored a measure of normality to proceedings with two clinical finishes to extinguish Costa Rica's hopes of springing a major shock.
Substitute Niclas Fullkrug added a last-minute fourth to confirm victory, but it will be of no consolation as Germany failed to reach the knockout stage of the tournament for the second time in succession.
More to follow.
How to play
Rate players out of 10 throughout or after the game. The rater will close 30 minutes after the final whistle.
Rating range key1 = Give it up10 = Pure perfection
Costa Rica
Squad number1Player nameNavas
Squad number4Player nameFuller
Squad number6Player nameDuarte
Squad number19Player nameWaston
Squad number3Player nameVargas
Squad number8Player nameOviedo
Squad number12Player nameCampbell
Squad number5Player nameBorges
Squad number17Player nameTejeda
Squad number20Player nameAguilera
Squad number11Player nameVenegas
Squad number7Player nameContreras
Squad number9Player nameBennette
Squad number14Player nameSalas
Squad number22Player nameMatarrita
Squad number24Player nameWilson
Germany
Squad number1Player nameNeuer
Squad number6Player nameKimmich
Squad number15Player nameSüle
Squad number2Player nameRüdiger
Squad number3Player nameRaum
Squad number8Player nameGoretzka
Squad number21Player nameGündogan
Squad number19Player nameSané
Squad number14Player nameMusiala
Squad number10Player nameGnabry
Squad number13Player nameMüller
Squad number4Player nameGinter
Squad number7Player nameHavertz
Squad number9Player nameFüllkrug
Squad number11Player nameGötze
Squad number16Player nameKlostermann
Line-ups
Costa Rica
Formation 5-4-1
- 1Navas
- 4FullerSubstituted forBennetteat 74'minutes
- 6DuarteBooked at 76mins
- 19Waston
- 3Vargas
- 8OviedoSubstituted forContrerasat 90+3'minutes
- 12Campbell
- 5Borges
- 17TejedaSubstituted forWilsonat 90+3'minutes
- 20AguileraSubstituted forSalasat 45'minutes
- 11VenegasSubstituted forMatarritaat 74'minutes
Substitutes
- 2Chacón
- 7Contreras
- 9Bennette
- 10Ruiz
- 13Torres
- 14Salas
- 16Martínez
- 18Alvarado
- 21López
- 22Matarrita
- 23Sequeira
- 24Wilson
- 25Hernández
- 26Zamora
Germany
Formation 4-2-3-1
- 1Neuer
- 6Kimmich
- 15SüleSubstituted forGinterat 90+3'minutes
- 2Rüdiger
- 3RaumSubstituted forGötzeat 67'minutes
- 8GoretzkaSubstituted forKlostermannat 45'minutes
- 21GündoganSubstituted forFüllkrugat 55'minutes
- 19Sané
- 14Musiala
- 10Gnabry
- 13MüllerSubstituted forHavertzat 67'minutes
Substitutes
- 4Ginter
- 5Kehrer
- 7Havertz
- 9Füllkrug
- 11Götze
- 12Trapp
- 16Klostermann
- 17Brandt
- 18Hofmann
- 20Günter
- 22ter Stegen
- 23Schlotterbeck
- 24Adeyemi
- 25Bella-Kotchap
- 26Moukoko
Referee:Stéphanie Frappart
Attendance:67,054
Live Text
Match ends, Costa Rica 2, Germany 4.
Second Half ends, Costa Rica 2, Germany 4.
Foul by Matthias Ginter (Germany).
Joel Campbell (Costa Rica) wins a free kick in the defensive half.
Attempt saved. Jamal Musiala (Germany) left footed shot from the centre of the box is saved in the centre of the goal. Assisted by Serge Gnabry.
Corner, Germany. Conceded by Youstin Salas.
Attempt blocked. Jamal Musiala (Germany) right footed shot from the centre of the box is blocked. Assisted by Joshua Kimmich.
Attempt missed. Niclas Füllkrug (Germany) header from the left side of the six yard box is just a bit too high. Assisted by Kai Havertz.
Attempt blocked. Niclas Füllkrug (Germany) right footed shot from outside the box is blocked. Assisted by Serge Gnabry.
Substitution, Germany. Matthias Ginter replaces Niklas Süle.
Substitution, Costa Rica. Roan Wilson replaces Yeltsin Tejeda.
Substitution, Costa Rica. Anthony Contreras replaces Bryan Oviedo.
VAR Decision: Goal Costa Rica 2-4 Germany (Niclas Füllkrug).
Goal! Costa Rica 2, Germany 4. Niclas Füllkrug (Germany) left footed shot from very close range to the bottom right corner. Assisted by Leroy Sané.Goal awarded following VAR Review.
Attempt saved. Mario Götze (Germany) header from the centre of the box is saved in the top centre of the goal.
Attempt saved. Kai Havertz (Germany) left footed shot from the left side of the box is saved in the centre of the goal. Assisted by Jamal Musiala.
Goal! Costa Rica 2, Germany 3. Kai Havertz (Germany) left footed shot from the centre of the box to the bottom right corner. Assisted by Serge Gnabry with a cross.
Attempt missed. Jamal Musiala (Germany) right footed shot from the centre of the box is too high.
Joshua Kimmich (Germany) wins a free kick in the defensive half.
Foul by Ronald Matarrita (Costa Rica).
Get the latest results and goal notifications for any team at the Fifa World Cup by downloading the BBC Sport app: Apple - Android - Amazon
Get your daily dose of Fifa World Cup reaction, debate & analysis with World Cup Daily on BBC Sounds