Panama pulled off a shock 2-1 victory over the United States in a heated Group C encounter at the Copa America on Thursday after the hosts were reduced to 10 men following Tim Weah's red card in the 18th minute.
Jose Fajardo netted the winner in the 83rd minute for Panama, who had Adalberto Carrasquilla dismissed five minutes later for a crunching challenge on Christian Pulisic.
The U.S. are second in the group, level with Panama on three points but with a better goal difference. The hosts must at least match Panama's result in the final group game to advance to the knockout rounds.
The U.S. play Uruguay while Panama face Bolivia on Monday.
"Emotional rollercoaster, but that's soccer at the end of the day," U.S. midfielder Tyler Adams said.
"We know what we signed up for and playing in Copa America we knew it was going to be a fight. Credit to Panama. They did their job. They got the result."
Panama coach Thomas Christiansen said his team had executed the game plan perfectly.
"I'm very happy, in particular for the team, tactically and psychologically," he added.
Advertisement • Scroll to continue
"I try to make the best decisions by being calm, level-minded. And of course, everyone that went in contributed what we expected from them, and now we have a victory such as this one."
It was a costly night all round for the hosts, with goalkeeper Matt Turner being substituted at halftime with a leg injury after a collision with Panama defender Cesar Blackman in the 12th minute.
Weah was sent off after a video review showed he had shoved Roderick Miller in the back of the head off the ball amid a tense and fiery start to the match.
That was the verdict of a California federal jury on Thursday after a decade of litigation.
After Weah's dismissal, Folarin Balogun delighted the crowd with a splendid strike from 17 yards to give the hosts the lead in the 22nd minute. However, the joy was shortlived as Blackman equalised from the edge of the box four minutes later.