TORONTO -- Gonçalo Ramos headed in a pass from Rafael Leão in stoppage time as Cristiano Ronaldo, who had earlier converted a penalty kick, watched from the bench while Portugal defeated Croatia 2-1 on Thursday, ending Luka Modrić's fifth bid for a World Cup.
Ronaldo initially tied things up in the 68th minute on a penalty kick to equalize and give the megastar his first knockout stage goal at the World Cup, but it was Ramos who gave Portugal the victory as they came from behind to win for only the second time in the nation's history at the tournament.
The game ended in controversy as Croatia thought it had tied things up 2-2 in the very last moments, but Mario Pasalic was called offside as the VAR ruled no goal. Croatia fans threw bottles on the field and whistled in protest -- they also loudly booed Ronaldo every time the Portuguese star touched the ball.
FIFA said later that a sensor in the ball detected that Croatia's Igor Matanovic had got the faintest of touches to the ball before it reached Pasalic in an offside position.
"The referee said that he didn't see our side touch the ball," Croatia midfielder Petar Sucic said. "He said that he has a sensor in the ball and he decided like that. But I don't know what is this. It's really difficult to explain, but we expect somebody will explain to us because if what I saw is that Matanovic didn't touch the ball."
"So, for me, it's a regular goal, but I don't know. I say we need to look better and a few more times .. I don't know. Today is like that. Luck is on their side."
Portugal coach Roberto Martinez, though, said there could be no disputing the decision.
"The message is very clear: The balls now they are chipped (or they have a chip), and it's very clear -- that's why VAR intervened," he said. "There is no subjective opinion -- the chip of the ball shows. There was no bad decision, no unlucky call.
"Today was clear, and the technology helped. It showed us that. Today we were fortunate."
It was the 10th goal overruled by the VAR so far at the 2026 World Cup, but Croatia coach Zlatko Dalic didn't want to blame the officiating for his team's loss.
"I don't want to comment on it too much, but the refereeing was definitely very poor," Dalic said. "Nothing went our way -- not a single foul, not a single decision. Nothing was favorable for us. But that's not the reason we lost. The refereeing was poor.
"Croatia lost, and I don't really have the right to complain."
Croatia opened the scoring in the 53rd minute when Ivan Perisic scored off a cross from Josip Sanisic.
Portugal move on to face Spain on Monday in the round of 16.
"First half we dominated the game. In second half after the goal we get a little bit panic, but this is football," Ronaldo said. "After the penalty, I think it was a little bit better for us. We created a few chances and I think at the end of the day we deserved to win the match."
Modrić led Croatia to second- and third-place finishes in 2018 and 2022, but his Croatia side could not come back and its run at this year's World Cup ended in the round of 32.
Thursday's match was the first in World Cup history to feature two outfield players who are at least 40 years old in Modrić and Ronaldo. The two former Real Madrid teammates shared a hug at midfield after the match.
"I played with Luca so many years," Ronaldo said. "We're nearly the same age. I think he's a legend of football. He's still a legend of football."
Information from ESPN Global Research and The Associated Press was used in this report.
