Running low on hope and almost out of time, the Americans were surely beat, about to make their earliest exit from the Women's World Cup.
And then, with one of the most thrilling goals in U.S. history, they weren't.
Showing a dramatic burst sure to captivate the folks back home, the Americans packed an entire World Cup's worth of theatrics into a 15-minute span by beating Brazil 5-3 on penalty kicks after a 2-2 tie Sunday night.
Abby Wambach tied it with a magnificent, leaping header in the 122nd minute, and Hope Solo denied the Brazilians - again - in one of the most riveting games in the history of the World Cup, men's or women's.
"There is something special about this group. That energy, that vibe," Solo said. "Even in overtime, you felt something was going to happen."
The United States advanced to Wednesday's semifinals against France, which eliminated England on penalty kicks Saturday. And although the Americans will have to win twice more to win the final, they are the only one of the favorites left after two-time defending champ Germany was stunned by Japan on Saturday night.
The U.S. victory came 12 years to the day the Americans' last caught their country's attention in a big way with their penalty-kick shootout victory over China at the Rose Bowl that gave them their second World Cup title. This one created enough of a buzz that highlights were shown on the Jumbotron at Yankee Stadium, drawing big cheers.
For Brazil, it is yet another disappointment at a major tournament. And this one is sure to sting more than any others because Marta had it won for the Brazilians, scoring her second goal of the game in the second minute of overtime for the 2-1 lead. But Erika stalled when she went down on a tackle, and the delay added three minutes of stoppage time to the game.
That was all the time Wambach and the Americans needed, after pushing themselves to limit while playing a woman short after Rachel Buehler's 66th-minute ejection.
"Not for one second," Wambach said when asked if she ever felt the Americans were beat. "I kept saying, all it takes is one chance. I kept holding up one finger to the girls."
Two minutes into stoppage time, Megan Rapinoe blasted a left-footed cross from 30 yards out on the left side that Andreia didn't come close to getting her hands on. Wambach, one of the best players in the world in the air, made contact and with one furious whip of her head, buried it in the near side of the net from about five yards.
"I took a touch and smoked it," Rapinoe said. "I don't think I've ever hit a cross with my left foot that well. And then that beast in the air got ahold of it."
Wambach let out a primal scream and slid into the corner, pumping her fists and quickly mobbed by teammates. No goal had ever been scored that deep into a World Cup game.
"Everything seemed to be on the safe side, but it wasn't," Brazil coach Kleiton Lima said. "Unfortunately there was the goal."
The Americans, shooting first, made their three penalty kicks only to have Cristiane and Marta easily match them. But then it was Daiane's turn - the same Daiane who'd given the U.S. a 1-0 lead with an own goal in the second minute of the game. She took a hard shot, but Solo stretched out and batted it away. Though the U.S. still had to make two more, the celebration was already starting.
After Rapinoe blistered the net with a blast and Ali Krieger converted hers, the Americans raced onto the field, their joy only matched by that of the pro-American crowd of 25,598. Wambach tackled Solo and U.S. coach Pia Sundhage even broke out her air guitar when AC/DC's "You Shook Me All Night Long" began to play.
Shake the tournament, the Americans did.
"It is a special moment for me and for this team," Solo said.
Four years ago, Solo touched off a firestorm after the Americans were humiliated 4-0 in the semifinals by Brazil, criticizing then-coach Greg Ryan's decision to bench her. She has lost only one game since, being particularly tough on Brazil. She's now 5-0, including a 1-0 shutout in overtime in the 2008 Olympic final.
It's redemption for the rest of the Americans, too, who have been roundly criticized and questioned for their uncharacteristically inconsistent play in recent months. After going more than two years without a loss, they've been beaten four times since November.
"It's like a storybook," Wambach said.
"They fought, they did everything," coach Kleiton Lima said. "They threw their hearts into it and, of course, they were really sad."
The U.S. has now eliminated Brazil at five of the last seven major tournaments. The lone consolation was that Marta's goals, the 13th and 14th of her career, tied her with Birgit Prinz atop the all-time World Cup scoring list. The Americans also have won their last five meetings against Brazil.
None, however, was more memorable than this.
Brazil spotted the U.S. the lead in the second minute with an own goal by Daiane, who misdirected a clearance, then spent the next 63 trying furiously for the equalizer - and getting increasingly frustrated with every minute they didn't get it.
When they finally did, it was clouded in controversy.
Marta made a dangerous run into the box in the 65th, beating two U.S. defenders and coming practically nose to nose with Solo before Buehler tracked back and dragged her down. Australian referee Jacqui Melksham not only ruled it a penalty but a red card as well. Cristiane, who already scored one goal off a penalty, took the kick. Solo made a perfect read and smacked it away, pumping her fists as Lloyd ran toward her to grab her in a bearhug.
But Melksham ordered the penalty retaken - and gave Solo a yellow card, ruling the American had left her line or a teammate encroached the penalty area before the kick was taken. Replays clearly showed Solo was on her line.
"I have no idea," Solo said. "It is what it is."
As the crowd jeered, Marta stepped up for the retake, staring down her old foe. Solo cost Marta and the Brazilians the gold medal in Beijing, stopping a point-blank blast from Marta in the 72nd minute of the Olympic final. This time, however, Marta got the best of the U.S. 'keeper, burying the ball to pull the Brazilians even.
As she walked away from the spot, Marta slapped her right arm.
Fired up, the Americans repeatedly pushed forward over the last 20 minutes but couldn't get a decent shot. The closest they came was a blast from Rapinoe in second-half stoppage time, but it was from long range and it was never a real threat to Andreia.
Marta seemed to put the game out of reach in the 92nd minute - though replays seemed to show that Maurine, the player who fed her the ball, was offside.
But the Americans, criticized after losing four games in the last eight months, have talked repeatedly about their resilience. On this day, it was on full display.
"We're just fighting for each other out there," said captain Christie Rampone, the last player left from the 1999 squad. "We were totally believing the whole time."