Casemiro scored in the 83rd minute to lift Brazil to a 1-0 victory over Switzerland on Monday and advance to the knockout stage of the World Cup in Doha, Qatar.
The Brazilians are through the group stage despite the absence of Neymar, who missed the match with an ankle injury.
Brazil's tally in the 64th minute was overturned after VAR determined Richarlison was offsides on Vinicius Junior's score.
Switzerland remains alive and will play Serbia in its final group match.
Yann Sommer made four saves for the Swiss. But it was Casemiro's half-volley that eluded Sommer, sending Brazil to the Round of 16.
--Cameroon 3, Serbia 3
Cameroon closed a two-goal deficit with a pair of late goals and scored a draw with Serbia in a thriller in Group G.
Vincent Aboubakar netted a lob to make it a 3-2 game and Cameroon's Eric Maxim Choupo-Moting scored the equalizer three minutes later to set up a frantic finish between teams vying to reach the Round of 16.
Serbia started fast and worked a 3-1 advantage after halftime thanks to striker Aleksandar Mitrovic's score. After Cameroon evened the game at 3, Mitrovic missed his best chance for a game-winner, going just wide of the net.
--Ghana 3, South Korea 2
Ghana fended off South Korea's last-minute barrage to ensure Mohammed Kudus' game-winner held up and 61st-ranked Ghana improved its chances of advancing to the Round of 16.
Ghana grabbed a 2-0 lead in the first half but before Kudus punched in his second goal of the match in the 68th minute, South Korea had stormed back to tie it at 2-all.
Gue-sung Cho knocked in two goals on headers just three minutes apart, and the scene at Education City Stadium turned electric for the rest of the match.
Kudus found open space from the penalty area and poked in the winner as goalkeeper Seung-gyu Kim left his feet for a save attempt.
South Korea brought a heavy attack the rest of the way, tallying 22 shots on goal -- compared to seven for Ghana -- but could not capitalize on possession time over 60 percent.
The win bumps Ghana up to three total points in Group H.
--Field Level Media