Switzerland set aside politics and Costa Rica broke their World Cup duck in a thrilling 2-2 draw on Wednesday that saw the Europeans through to the next round where they will face Sweden.
Pre-match attention had focused on Granit Xhaka and Xherdan Shaqiri's "eagle" celebrations in their last game in honor of their Albanian roots, while Costa Rica had taken flak at home for failing to score at the tournament.
Yet this time, the Swiss kept their focus purely on the game to keep the already-eliminated but still lively Central Americans at bay and ensure passage from Group E.
After withstanding plenty of early pressure, the Swiss took a 31st minute lead against the run of play when forward Blerim Dzemaili blasted past Costa Rica goalkeeper Keylor Navas from close range following a nod down from Breel Embolo.
Costa Rica had twice hit the woodwork in a frustrating opening 15 minutes of missed chances, but finally scored their first goal in Russia when defender Kendall Waston powered home Joel Campbell's corner in the 56th minute.
That triggered mass celebrations like they had won the trophy, as players mobbed coach Oscar Ramirez who has been facing stinging personal criticism in Costa Rica.
In a frenetic finale, substitute Josip Drmic restored Switzerland's lead when he drilled home in the 88th minute, before Costa Rica captain Bryan Ruiz's stoppage time penalty struck the bar and went in off goalkeeper Yann Sommer's back for an own goal and 2-2 draw.
In between those two late strikes, Costa Rica appeared to have won another penalty before it was ruled out for offside by the Video Assistant Referee (VAR) system.
"We are happy, we made it to the last 16. But we are still going to speak among us about how we are starting games," goalkeeper Sommer said of Switzerland's timid opening.
"We have to fix that otherwise it is going to be hard ... The Swedes will be a big challenge. They have a strong collective – all the players are there for each other. We have to do the same. We have to be ready, unlike today."
Amid their celebrations, there was a sour note for the Swiss, as both captain Stephan Lichtsteiner and defender Fabian Schar took second yellow cards, meaning they will miss the knockout clash with Sweden on Tuesday in St Petersburg.
Despite their joy at scoring on Wednesday, Costa Rica's tournament has overall been a disappointment for their legions of red-clad fans and a far cry from their glorious 2014 run to the quarter-finals when they lost on a penalty shootout.
Coach Ramirez thanked locals for backing the 'Ticos'.
"It was beautiful to see all of them supporting us. I do not know why but Costa Rica is a team that is quite liked abroad. Maybe itis the way we are. People like us," he said.
Ramirez would not be drawn on his personal situation: "Today is Wednesday, tomorrow Thursday we will fly back to our country and we will see. Right now, I do not know anything about my future."
Switzerland, driven on by the inventive Shaqiri who is having a fantastic World Cup, ended Group E as runners-up to Brazil who beat Serbia 2-0.