Panama have missed out on a FIFA World Cup play-off spot after a heartbreaking 3-2 loss to the United States on Tuesday.
Needing a win and for Mexico to lose in Costa Rica, Panama looked to have got both results and appeared to be on the verge of snatching the play-off spot in CONCACAF qualifying.
Luis Tejada's 83rd-minute goal looked to have been enough before the USA equalised in the 92nd minute through Graham Zusi.
And Aron Johannsson ensured there would be no chance of Panama reaching their first ever World Cup when he struck a minute later.
Michael Orozco had cancelled out Gabriel Torres' opener earlier on, with Mexico fortuitously falling into the play-off and a tie against New Zealand.
Wet conditions made maintaining possession difficult for both sides early on at the Estadio Rommel Fernandez Gutierrez.
Panama were ahead on 18 minutes courtesy of a fine strike from Torres.
A fast counter-attack led to Marcos Sanchez playing the ball into the path of the Colorado Rapids forward, who side-footed a superb finish into the bottom corner.
A minute later and Panama could have doubled their lead in almost identical fashion.
This time it was Blas Perez on the end of the chance, but the FC Dallas striker's effort was too narrow and kept out by Brad Guzan.
Panama went close to doubling their advantage two minutes before half-time, but Perez was stretching and acrobatically volleyed Torres' cross over.
Julio Dely Valdes' men had a glorious chance to make it 2-0 just nine minutes into the second half.
Alberto Quintero's run down the left led to him cutting inside and setting up Perez, whose low side-footed shot was somehow kept out and scrambled away by the USA.
And Panama were made to pay for their wastefulness in the 64th minute as the USA equalised through Orozco.
Brad Davis' in-swinging corner bounced off Orozco and into the bottom corner to put Jurgen Klinsmann's men on level terms.
Soon after, Torres was denied after a lovely through ball by Quintero, with Guzan standing up to make a good save.
It was Guzan who was partly at fault for Panama's goal in the 83rd minute.
Substitute Roberto Chen was released down the right and composed himself and waited for runners before crossing.
Guzan parried the cross, but straight into the path of substitute Luis Tejada to tap in and send the home fans wild.
But Zusi headed in a Davis cross to break Panamanian hearts before Johannsson gave Klinsmann's men victory and left the hosts' players in despair after the final whistle.
Meanwhile, Honduras confirmed their place at Brazil 2014 despite playing out a disappointing 2-2 draw at last-placed and winless Jamaica.
|Coach: J. Dely Valdés|
for C. Rodríguez 72'
for G. Gómez 72'
for M. Sánchez 78'
|Williams rules out Swansea exit|
|UEFA Europa League Preview: Southampton, Vojvodina poised to advance|
|Mitrovic up for a battle|
|Pochettino in the market for a striker|
|Beware of Leverkusen, says Kiessling|
|CONCACAF Champions League Review: Rimando, Plata stand tall for RSL|
|Jardim: Monaco worked on defending lead|
|Deila uninterested in pitch excuses against Qarabag|
|City won´t make top four, says James|
|Clyne eyes Premier League title with Liverpool|
|Dos Santos key to Galaxy´s bid for continental dominance|
|Brazil to play Costa Rica in New Jersey|
|Ajax loss ´sad for Dutch football´ - De Boer|
|United target Bale happy at Real|
|Guardiola furious but Mihajlovic defends De Jong: ´Football isn´t dancing´|
|Champions League top priority at PSG - Di Maria|
|UEFA Champions League Review: Ajax crash out after home defeat|
|Blackpool handed suspended deduction|
|Bayern Munich 3 Milan 0: Guardiola and De Jong lock horns in tunnel|
|Akpom, Ojo and Solanke on the move|
|McClaren: No Newcastle bid for Austin|
|Real Madrid 2 Tottenham 0: Bale on target against former club|
|Mangala vows to improve on debut campaign|
|Tomlin completes Bournemouth switch|
|Astra v West Ham: Page hungry for first-team action|
|Di Maria arrives in Qatar for PSG medical|
|Vitesse v Southampton: Caulker prepared to wait for his chance|
|UEFA rejects Fenerbahce´s Fred appeal|
|Watford show support for assaulted fan as police charge six|
|Ibrahimovic to miss PSG opener|
|Klopp suited to Bayern job - Watzke|
|Eredivisie season-opener postponed due to police strike|
|Dortmund v Wolfsberger: Tuchel set for home bow|
|Griezmann at the double in Atletico win|
|Japan v South Korea: Halilhodzic calls for ´pride´|
|Mourinho enjoying improved relationship with Abramovich|
|Gradel agrees Bournemouth return|
|Inter switch an ´easy decision´ for Miranda|
|Bojan eyes early comeback|
|Vitesse hopeful over Solanke loan deal|
|Pedro will decide his own future - Luis Enrique|
|Iniesta handed Barcelona armband|
|Kukesi punished after Europa League abandonment|
|Leno hints at Leverkusen exit|
|Benitez explains Ronaldo absence|
|Pochettino backs Kane to be among world´s best|
|Messi not ruled out of Mexico friendly - Martino|
|China v North Korea: Kim´s side look for another win|
|River Plate v Tigres UANL: Copa Libertadores final evenly poised|
|Real target Ceballos focused on Betis - Mel|
|Torres: I´d give my life to win La Liga with Atletico|
|Platini can lead FIFA change - Fernandez|
|Mel: Betis won´t be signing Osvaldo|
|Ferrero defends Samp boss Zenga|
|Pochettino expects Spurs improvement|
|Bale ideal for United - Robson|
|Ferdinand: Di Maria will regret United failure|
|Benitez pleased with goalkeepers as De Gea transfer saga continues|
|Guardiola tips fit Schweinsteiger to shine|
|Confident Oxlade-Chamberlain hits back at Keane|
|Ferdinand: Stones would be ´a lunatic´ to join Chelsea|
|Qarabag v Celtic: Gordon wants positivity from Scottish champions|
|Higuain rejects extension from Napoli|
|Zamora returns to Brighton|
|West Ham can cope without Valencia - Gold|
|Wickham loses on Palace debut|
|Guardiola: No problem with Matthaus and Effenberg comments|
|Cartabia excited by Deportivo loan|
|Lyon confirm Rafael deal|
|Hysaj agrees deal to follow Sarri to Napoli|
|Rafael says his goodbyes to Manchester United|
|Dos Santos ready to get going with Galaxy|
|Pochettino rejects Soldado exit talk|
|Metatarsal misery for Mulumbu|
|Benitez: Benzema and Bale going nowhere|
|Mihajlovic: Ibrahimovic would make Milan title contenders|
|Hughes not taking any risks with Bojan|
|Guardiola relishing Audi Cup test|
|Di Maria ´taking a step up´ - Silva|
|Leicester bring in defender Benalouane|
|Deulofeu doubtful for Premier League opener|
|West Ham striker Valencia out for three months|
|UEFA: Qarabag-Celtic to go ahead|
|Palace seal Wickham swoop|
|Ronaldo and Benzema to miss Audi Cup|
|Marotta: Juventus could lose Pogba|
|Kante completes Leicester switch|
|Khedira ruled out for two months|
|FA accepts Mourinho criticism of Wembley surface|
|Robben rubbishes injury talk|
|Marchisio expects Milan title challenge|
|Rafael set for Lyon move|
|Celtic ´seeking reassurances´ over Qarabag pitch|
|Wenger beating Mourinho does not affect Chelsea - Zouma|
|Rooney moved by Everton welcome|
|Mancini not worried by lack of Inter goals|
|Coloccini wants to finish career at Newcastle - McClaren|
|Ramsey: Pressure to win trophies is nothing new|
|Terry: Wembley defeat could be a ´blessing in disguise´|
|Blatter not running for IOC re-election|
|Bendtner: Wolfsburg can challenge Bayern for Bundesliga honours|
|Liverpool relishing Britannia return, says Henderson|
|Everton big enough to keep Stones - Martinez|
|MLS Review: Fire stun Dallas as goals dry up|
|New Atletico signings excite Raul Garcia|
|Cahill expects Arsenal title challenge|
|Jovetic happy with Inter debut|
|Luis Enrique: Barca defence must improve|
|Yanev calls for calm after ugly scenes in friendly|
|Coppa Italia Review: Cittadella romp to victory, Brescia rely on penalties|