CONCORD, N.H. — Before Sen. Amy Klobuchar left the debate stage in Manchester on Friday night, her staff could feel a new energy around her candidacy. Donations poured in — $1 million before midnight that night and then another $2 million over the weekend.

Larger-than-usual crowds showed up to her campaign events — a record for her of 700 people at a Manchester university on Sunday afternoon, followed by a new record a few hours later of 1,100 people in a Nashua middle school gym. Meanwhile, she surged in two polls in the state.

After months of trying to find her place in this crowded field, Klobuchar (D-Minn.) seemed to have hit a stride. Her message was sharper, which she credited to hours of sitting in impeachment trial hearings and thinking about the status of the country. Her crowds laughed at the jokes she had been telling for months to mixed responses in Iowa. She could bounce between funny and sentimental in a single sentence. As her opponents were giving darkly somber speeches, her rallies radiated excitement.

Then, Tuesday night, came the stunning result: a third-place finish in New Hampshire, surpassing her better-funded and better-known rivals, former vice president Joe Biden and Sen. Elizabeth Warren (D-Mass.), and rocketing from the bottom tier of a crowded field to the center of the race for the Democratic presidential nomination.

“Tonight is about grit. And my story, like so many of yours, is one of resilience,” she told hundreds of supporters at a victory party in a hotel ballroom and many more watching her on television, perhaps for the first time. “What we’ve done is steady. We’ve been strong, and we’ve never quit. I think that sounds pretty good for a president.”

Her challenge now is to keep that momentum building as the Democratic nominating contest moves to states where she has spent far less time campaigning — and where she will face higher-polling candidates with more money and larger campaign operations.

Her next announced campaign stop is a telling one: a fundraiser in New York City on Wednesday night.

Klobuchar’s staff is hopeful she will resonate in Nevada, noting the popularity of Sen. Catherine Cortez Masto, a moderate Democrat elected in 2016. The campaign plans to begin airing commercials in Las Vegas and Reno on Wednesday. Though it didn’t make its first hires in Nevada until late November, it now has 50 staffers there.

Klobuchar has pitched herself as the candidate who can win over independent voters and Republicans horrified by President Trump’s actions. Now, she must also prove she can gain the support of African American and Latino voters. Already, she is facing more scrutiny about her time as a prosecutor in Minnesota and her alleged brash treatment of some staff members.

Her rise comes as Biden has suffered back-to-back embarrassing finishes and as former South Bend, Ind., mayor Pete Buttigieg has logged strong performances — including a second-place primary finish here — despite his lack of governing experience, something Klobuchar has repeatedly highlighted.

Klobuchar has long pitched herself as a pragmatic centrist who has “the receipts” to show that she can work with Republicans to get legislation passed. Her policies are not “pipe dreams,” she says, but rather ideas that could actually be passed and implemented.

For months, Klobuchar has questioned the cost of policies proposed by Sen. Bernie Sanders (I-Vt.) — the primary winner — and Warren, especially their calls for Medicare-for-all and free public college tuition.

Over the weekend, Klobuchar said she is “troubled” that Sanders, a self-described democratic socialist, has a shot at becoming the nominee.

It was a case that seemed to resonate — in the last few months, Klobuchar racked up endorsements from state lawmakers and newspapers. Though she threw herself into Iowa, visiting all 99 counties, she finished in fifth place in the caucuses last week, earning only one of the state’s 41 delegates. But that disappointment was largely lost in the chaos surrounding the caucuses. 

New Hampshire provided another chance. She had been visiting the state for months and seemed to have hit it off with many of its voters, who are known for being brash and salty, just like her. In more than 70 events in the state over the past year, Klobuchar often noted the similarities between Minnesota and New Hampshire. She frequently reminded her audiences that she launched her campaign outside during a blizzard. And that she didn’t need a hat. Then came her standout debate performance last Friday, during which she spoke movingly about political courage and her desire to defeat Trump.

All of a sudden, she was having a moment. Over the weekend, her campaign staff often struggled to keep up, planning her schedule only a few hours out. Her supporters sometimes stepped up to fill in where they saw gaps: One created homemade buttons, while another bought hundreds of small American flags to wave at rallies.

Her audiences were filled with Democratic voters — not just from New Hampshire but also from Massachusetts and Maine, which have primaries on March 3 — who often said they were trying to decide between Klobuchar, Buttigieg, Warren or Biden. At her largest rally, in Nashua on Sunday, a surrogate begged the crowd to “give her a ticket out of New Hampshire.”

In that crowd was Lori Cinque, 57, who had long liked Klobuchar but didn’t think she had a chance to win, so she had been knocking doors in support of Buttigieg. The Friday night debate changed her mind.

“I feel like I’ve been flip-flopping around trying to find a moderate,” said Cinque, who lives in Amherst and follows politics closely. “I’ve loved her all the way through, for three years, but she hadn’t gained the traction — and recently she has.”

Exit polls from Tuesday suggest Cinque wasn’t alone. More than two-thirds of her supporters said they made their decision in the last few days. 

Klobuchar kicked off Tuesday by visiting polling locations in Manchester and then doing radio and television interviews, including an appearance on ABC’s “The View” during which co-host Sunny Hostin grilled her on the murder conviction of Myon Burrell, a black teenager, when Klobuchar was the Hennepin County attorney.

The Associated Press has reported on several flaws in that case, including that the police offered informants money and did not pursue leads that could have exonerated Burrell.

“How do you defend something like that to someone like me, who is the mother of a black boy, a black teenager? This case would be my worst nightmare,” said Hostin, who was also once a prosecutor.

Klobuchar had called for a review of the case, and did so again during the interview. She noted that she decreased the number of incarcerated African Americans in Hennepin County by 12 percent, diversified the county attorney’s office and supported programs that helped the formerly incarcerated to find jobs.

“As for my support in the African American community, I’ve always had strong support in my elections at home,” she said. “My challenge is to get people to know me.”

The exchange highlighted the questions that Klobuchar will face from voters of color in the primaries ahead. But there was little talk about the challenges ahead as Klobuchar took the stage at her victory party. 

“Hello, America,” she said, beaming. “I’m Amy Klobuchar, and I will beat Donald Trump.”