SAN JOSE – The San Jose Sharks have talked for months, if not years, about trying to return SAP Center to where it was several years ago, when the team won a ton of games, and the building was always rocking.

The Sharks now have what they want, right as they enter a make-or-break homestand and their playoff hopes hang in the balance.

The Sharks host the Pacific Division-leading Anaheim Ducks on Wednesday, looking to build on their 5-4, last-minute win over the St. Louis Blues on Monday before a delirious announced crowd of 16,031 at the west downtown arena, which has a seating capacity of 17,435 for hockey games.

Adam Gaudette scored a go-ahead goal with 21 seconds left in the third period, as his shot found the five-hole on Blues goalie Joel Hofer and slowly slid over the goal line as the Sharks began their six-game homestand with another important victory.

It’s the first time in seven years the Sharks have played meaningful games this late in the season.

“This building is alive. There’s great energy in here. You could feel it,” Sharks coach Ryan Warsofsky said. “It felt like the roof was going to pop off when (Gaudette) put that goal in.”

The crowd was keenly aware, too, that when Macklin Celebrini scored his 37th goal of the season at the 13:25 mark of the first period on a San Jose power play, it also represented his 100th point this year. It’s a milestone no Shark player has accomplished during a home game; both Joe Thornton in 2007 and Erik Karlsson in 2022 reached the century mark in points during games on the road.

“Our fan base has been amazing all year,” Celebrini said. “They’ve really shown out and showed their support and been loud every night. So hopefully they keep coming.”

The Sharks had announced sellouts for their previous 11 home games before Monday, a streak that began on Jan. 10. The Sharks were 5-4-2 in those games and are now 18-12-5 at home this season – their best points percentage (.586) in their rink since going 25-11-5 at SAP in 2018-19, the last year they made the playoffs.

The Sharks’ average paid attendance this season is 16,143, up from the 14,219 average of last season, when San Jose’s home record was a dismal 12-27-2.

The Sharks have now had seven home games on Monday or Tuesday nights this season, and only two of those games had a larger announced attendance than the win over St. Louis – the Jan. 6 game against Columbus and the March 3 game against Montreal.

“We could feel it really a lot after the Olympic break,” Warsofsky said. “You can sense it around the area and where I live, especially. But it’s special. It’s a special place. It’s a special environment. It’s a hard place to play, and we want to continue to make that energy come alive.”

San Jose enters Tuesday in a tie for 10th place in the Western Conference with the Seattle Kraken. Both teams have 75 points, two more than the Blues and now two fewer than the Nashville Predators, who hold the second wild card spot in the West.

The Sharks and Kraken are also one point behind the Los Angeles Kings. San Jose has one game in hand on the Kings and two on the Predators.

Whether or not the Sharks reach the postseason will largely depend on how they fare at SAP Center. For the last six years, late-season home games haven’t really mattered, as the Sharks were always well out of the playoff picture. Now they’re in the mix, and these games are taking on extra significance.

After Wednesday, the Sharks host the Toronto Maple Leafs on Thursday, the Predators on Saturday, the Chicago Blackhawks next Monday, and the Edmonton Oilers on April 8. It appears those games are not yet close to selling out.

The only other Sharks home game is on April 11 against the Vancouver Canucks. San Jose’s four other games are on the road, including a three-game trip to finish the regular season with stops in Nashville, Chicago, and Winnipeg.

“I think it’ll help a lot,” Gaudette said of playing at home. “Especially with how excited the crowd is and how much they’re getting into it, and the support they’re showing. We feed off that for sure.

“It’s great when we have the momentum swings, or if we don’t have it, the crowd can help us get it back. It’s been a lot of fun playing in front of them, and we’re excited for more games to come.”