Confetti flying in Denver. The Nuggets sharing hugs while passing around the NBA championship trophy.

Those scenes that, for almost a half-century, seemed impossible, then more recently started feeling inevitable, finally turned into reality Monday night.

The Nuggets outlasted the Miami Heat 94-89 in an ugly, frantic Game 5 that did nothing to derail Nikola Jokic, who bailed out his teammates with 28 points and 16 rebounds on a night when nothing else seemed to work.

Jokic became the first player in history to lead the league in points (600), rebounds (269) and assists (190) in a single postseason. Not surprisingly, he won the Bill Russell trophy as the NBA Finals MVP — an award that certainly has more meaning to him than the two overall MVPs he won in 2021 and ’22 and the one that escaped him this year.

Unable to shake the tenacious Heat or their own closing-night jitters, the Nuggets missed 20 of their first 22 3-pointers. They missed seven of their first 13 free throws. They overcame that to take a late seven-point lead, only to see Miami’s Jimmy Butler go off. He scored eight straight points to give the Heat a one-point lead with 2:45 left.

Butler made two free throws with 1:58 remaining to help Miami regain a one-point lead. Then, Bruce Brown got an offensive rebound and tip-in to give the Nuggets an edge they wouldn’t give up.

Trailing by three with 15 seconds left, Butler jacked up a 3, but missed it. Brown and Kentavious Caldwell-Pope made two free throws each down the stretch to clinch the title for Denver.

Butler finished with 21 points.