The Padres’ route back into the National League Division Series runs through a place that has already changed the feel of their season. Down two games to none after a pair of painful losses in Milwaukee, San Diego returns to Petco Park needing three straight wins to survive. The task is severe. The home crowd, and a team that has recovered from worse positions this year, give the Padres a reason to believe the series can still turn.

Petco Park has become part of the equation

San Diego’s home-field advantage was hard to miss in its wild-card sweep of the Cubs. More than 47,000 fans packed the ballpark each night: 47,084 for Game 1 and 47,513 for Game 2. The noise built alongside a pair of decisive performances, and players said they felt the crowd raise the intensity on the field.

“You can feel our players raising their level up, and their focus and intensity up, just by feeling the crowd’s intensity,” Padres president of baseball operations A.J. Preller said after the sweep.

Manny Machado has spent 15 seasons in the majors, played 55 postseason games and made five playoff runs with San Diego. He has also seen the Padres face the rival Dodgers in October. Still, the atmosphere during the two games against Chicago stood apart for him.

“Playing here these last two days, I’ve never felt anything like it,” Machado said after the clincher. “I never have.”

The crowd had plenty to react to. In Game 1, Padres starter Michael King opened by striking out Cubs center fielder Pete Crow-Armstrong. Fernando Tatis Jr. followed with a home run on the first pitch of San Diego’s half of the inning. The Padres went on to score eight runs, sending celebration into the nearby Gaslamp Quarter.

The next night, another opening-inning strikeout of Crow-Armstrong, followed by a failed challenge, set the crowd roaring again. Later, as fans chanted “Ho-ly Sheets,” pinch-hitter Gavin Sheets hit a two-run home run that proved decisive. Chicago managed only one run across the two games, held down by King in the opener and San Diego’s bullpen in the finale.

“To get in front of these fans — and I think it’s the best fanbase in baseball, the best ballpark — they brought it,” Sheets said. “Obviously, we fed off of it.”

Xander Bogaerts saw signs that the atmosphere affected Chicago. He recalled looking toward the Cubs’ dugout and wondering whether the opposing players were unsettled by the volume, the yellow flags and the crowd’s reaction to each play.

“I might be wrong,” Bogaerts said, “but I felt like they were like, ‘Damn, this is a tough place to play.’ They probably won’t admit it, but seeing some of the faces over there, and the yellow flags — it gets loud with the flags — it can be intimidating for the other side.”

A late-season recovery changed the picture

The Padres have leaned on that home energy before, but their more compelling argument is what they did after appearing to fall out of the race. On July 23, they were 50-53, in third place in the National League West and 15 games behind the Dodgers. They trailed the Diamondbacks by four games and sat four games back in the wild-card chase. Their odds of reaching the postseason were listed at 7.4 percent.

The offense had been among the league’s weakest, while the rotation looked short of playoff quality. Then San Diego won eight of its next nine games, giving the front office reason to buy at the trade deadline. The club finished the final 60 games with the best record in baseball, powered by an offense that had become one of the sport’s strongest.

That surge was especially pronounced at home. The Padres went 24-6 in 30 Petco Park games after the All-Star break. Including the wild-card series, their home record for the year stood at 53-30. Those results don’t erase what happened in Milwaukee, but they help explain why the club sees its return to San Diego as an opening rather than a formality.

“These boys, this group, we’ve been up against the wall all year,” Machado said of the deficit. “A lot of people didn’t think we would be in this position to begin with, and here we are.”

The margin for error is gone

The Padres’ two losses in Milwaukee were difficult in different ways. In one, a potential go-ahead home run struck a cable beneath the stadium roof and ricocheted back into play. In the other, San Diego’s closer, described in the source as baseball’s most dominant, could not protect a lead that might have evened the series.

A best-of-five deficit of two games to none leaves little room to recover. Only 10 teams in major-league history had come back from that position at the time of the article. The 2017 Yankees offer a relevant example: after losing their first two games on the road, they won three straight, with their home performance helping contain the opposing offense.

San Diego’s version of that path starts with winning at Petco Park. The crowd can make the ballpark uncomfortable for a visitor, but the Padres still need their rotation, bullpen, defense and lineup to deliver together. Pitching coach Ruben Niebla said the team had begun to look more complete during its playoff run.

“Since I’ve been here, we’ve been to the playoffs four times,” Niebla said after the Cubs series. “It feels like, for the first time, we’re actually all jelling — offense, defense, bullpen, starting pitching. Everything’s kind of jelling. This is the first time I feel like, ‘Damn, we really do have a complete team right now.’”

That sense of balance was visible during San Diego’s final two months and its sweep of Chicago. It now has to show up under greater pressure, with the season on the line and no margin for a slow start. Machado’s confidence is clear: “We can,” he said Monday when asked whether the Padres could repeat their late-season resilience. “And we’re going to do it again.”

Petco Park gives San Diego a familiar stage and a crowd that has already proved capable of lifting the team’s energy. The next step is turning that atmosphere into three wins, beginning with the first game back home.