Cristiano Ronaldo's missed penalty cost Portugal first place in its World Cup group on Monday.
Portugal finished second in Group B after a 1-1 draw with Iran. The 2016 European champions will next face Uruguay on Saturday in the round of 16.
Instead of Ronaldo, it was Ricardo Quaresma who scored for the Portuguese. The 34-year-old midfielder responded to his first start of the tournament by producing one of the more aesthetically pleasing goals of group play.
It has been a difficult tournament so far for reigning champion Germany, which lost its opener to Mexico then needed a goal deep in stoppage time to beat Sweden, keeping alive its hopes of reaching the knockout round.
Now it needs another win if it hopes to continue a streak of never exiting a World Cup in group play, although with the right circumstances, it could also advance with a draw.
Winless South Korea also has a path — albeit a narrow one — open to the second round. The easiest way through would be for the South Koreans to win and Sweden to lose, creating a three-way tie for second that would be broken on goal differential. If Sweden loses and South Korea beats Germany by two or more goals, the Koreans finish second.
Luis Suarez and Edinson Cavani scored a goal each and Uruguay went on to defeat Russia 3-0 on Monday, finishing undefeated in group play and handing the host nation its first loss of the World Cup.
Both teams were already assured of spots in the knockout round, but Uruguay's victory put it at the top of Group A and looking toward a match in Sochi on Saturday against the second-place finisher from Group B.
Uruguay, which also benefited from an own-goal in the first half, had its third straight shutout of the tournament after consecutive 1-0 victories over Egypt and Saudi Arabia.
Hundreds of Iranian fans spent several overnight hours surrounding the hotel where Portugal's national team is based, making loud noises in an attempt to disrupt their opponents' sleep before a decisive World Cup match later Monday.
Superstar Cristiano Ronaldo was filmed by Portuguese TV RTP late at night by the window using gestures to ask the Iranian fans to be silent, but Monday morning there were still a few dozen of them playing loud music near the hotel in the Saransk city center.
Ronaldo foi à janela pedir aos iranianos para o deixarem dormir em paz 💤
Despite goal celebrations seen as inflaming political tensions with Serbia, the head of Switzerland's soccer federation said Sunday he doesn't expect FIFA to suspend his players.
FIFA has added a third Swiss player — captain Stephan Lichtsteiner — to an investigation of both scorers in a 2-1 win who made hand gestures of a two-headed eagle that is an Albanian national symbol. Lichtsteiner also made the gesture during the match.
Granit Xhaka and Xherdan Shaqiri have ethnic Albanian heritage linked to Kosovo, a former Serbian province that declared independence in 2008. Serbia doesn't recognize that independence.