A Game 7 miracle is complete.

Fourth-liner Barclay Goodrow had enough legs to dip inside Vegas defenseman Brayden McNabb and score the series-winning goal at 18:19 of overtime for a 5-4 victory in one of the most amazing Stanley Cup-deciding games one could ever hope to witness Tuesday night at SAP Center.

“To be honest, I can’t really remember what just happened,” said Goodrow, who skated only one shift prior in sudden death. “It’s a pretty surreal moment. Definitely the biggest goal of my career.”

By rallying from a 3-1 series deficit for the first time in franchise history, the Sharks advance to the second round with a best-of-seven matchup against Colorado, which starts Friday.

San Jose owns home ice for as long as it lasts in the West.

Goalie Martin Jones made 34 saves, including nine in overtime.

On the game-winner, Sharks defenseman Erik Karlsson fed Goodrow, who did the rest and finished it by slipping the puck past Vegas goalie Marc-Andre Fleury.

“I saw Erik get the puck in the middle and (McNabb) was kind of flat-footed, so I tried to skate maybe behind him,” Goodrow said. “Erik made a great pass to me.”

Down and out, trailing 3-0 with barely half a period remaining, the Sharks struck four times on a Vegas major penalty to take a 4-3 lead.

Logan Couture scored twice, Tomas Hertl once and Kevin Labanc — who had assists on the first three power-play goals — blew a fourth one past Fleury at 13:21.

The four goals came in a span of 3:39 sent the sell-out crowd into an utter tizzy when it looked for all the world the Sharks didn’t have the energy to score even one goal, let alone four.

“It shows the team’s resilience,” Labanc said. “We were down three goals. Getting that power play was a momentum changer for us. Get one, get two, get three and then get four.”

The major penalty was a result of Vegas forward Cody Eakin checking Sharks captain Joe Pavelski to the ice at 9:13 of the third period. It appeared forward Vegas forward Paul Stastny had as much to do with planting Pavelski on the left side of his face. It appeared Pavelski was out for a short time, and there was a pool of blood that needed to be scraped after Pavelski needed assistance from two teammates to get to the locker room.

“He wasn’t OK. There’s blood on the ice. … He wasn’t OK,” Sharks forward Joe Thornton said.

“He’s our captain. He drives us here,” Goodrow added. “The power play did its job with four goals. Unbelievable.”

To recap the flurry of power-play goals after the Sharks were 0-for-4 with the man-advantage earlier in the game, Couture scored at 9:20, Hertl followed with his sixth 49 seconds later at 10:09 by tipping a Karlsson drive to cut it to a goal.

Vegas vs. Sharks Sharks win series 4-3 Game 1: Sharks 5, Vegas 2 Game 2: Vegas 5, Sharks 3 Game 3: Vegas 6, Sharks 3 Game 4: Vegas 5, Sharks 0 Game 5: Sharks 5, Vegas 2 Game 6: Sharks 2, Vegas 1 (2 OT) Game 7: Sharks 5, Vegas 4 (OT)

Read More

Couture tied it with a hard slap shot — his sixth in the series — at 12:53 and Labanc capped the rally with his second at 13:21.

“We just kept going. We kept attacking. We didn’t take a step back,” Sharks forward Timo Meier said. “We kept throwing it out there and we got rewarded.”

“It was crazy,” Labanc added. “Once we got that fourth goal, the whole building just erupted. We had a lot of momentum on our side.”

The Golden Knights were not done. Jonathan Marchessault scored his fourth of the series at 19:13 with Fleury pulled for an extra attacker.

“Last season, we lost in the Stanley Cup Finals, and that was hard,” Vegas head coach Gerard Gallant said. “But tonight, this is worse.”

“It was a complete team effort, everyone contributed,” Labanc said. “Goody with that unreal goal at the end. It was a great series. ... And on to the next one.”

Ross McKeon is a freelance writer. Twitter: @rossmckeon