The Americans didn't believe in miracles. They just believed.

And they pulled off the biggest Olympic hockey upset since the Miracle on Ice, stunning Canada 5-3 on Sunday to advance to the quarterfinals of an already mixed-up tournament.

Brian Rafalski scored two goals, Ryan Miller held off a flurry of shots and the Americans quieted a raucous, pro-Canada crowd that came to cheer its dream team, only to see it upstaged by a bunch of unproven kids.

One day short of the 30th anniversary of the country's greatest hockey victory - the unfathomable win over the Soviet Union in Lake Placid - these underrated Americans were faster, more disciplined and more determined than Canada's collection of all-stars.

Better, too.

"We know we can beat anybody now," Rafalski said.

Canada outshot the United States 45-23 yet couldn't badly dent Miller, the goalie the Americans felt could best stand up to all of Canada's might. He did just that, making 42 saves in the victory of a lifetime.

"It's probably one of the biggest games I've ever played," Miller said. "When things happened we responded. We didn't get nervous or anxious. We kept playing."

When Ryan Kesler scored in the final minute, the few U.S. fans who managed to get seats proudly waved their American flags, all their red, white and blue suddenly visible.

"You look up and everything's red and white - so few American flags" at the start, said U.S. coach Ron Wilson, who also led the 1996 team that upset Canada in the World Cup. "We expected a hostile environment. The intensity of the game helped, too."

Depending on the later Finland-Sweden game that concluded hockey's Super Sunday in Vancouver, the United States could go into Wednesday's quarterfinals not only as a group winner but as the top-seeded team, something almost no one predicted when the tournament began.

Canada, the gold-medal favorite, was expected to coast into the medal round. But now, after nearly losing to Switzerland and being outplayed on home ice by the Americans, it must win a play-in game Tuesday against Germany to reach the quarterfinals.

After that, Canada likely will meet Russia, a matchup that wasn't expected until the gold-medal game.

"Just like everybody in this tournament, we're playing to survive," coach Mike Babcock said. "If you lose, you go home."

The Canadians still could win a gold medal, but now face a much tougher road that would include an additional game and a more difficult quarterfinal-round opponent.

"We're here to be the last ones standing and we're still alive," goalie Martin Brodeur said. "We're throwing 45 shots at these goalies and they are making stops facing forward, backward, sideways. Eventually we'll be more successful."

Chris Drury, a former Little League World Series star, and Jamie Langenbrunner scored to put the U.S. up 4-2 and hold off a relentless late surge by Canada that included Sidney Crosby's power play goal with 3:09 remaining.

Miller made an exceptional save on Rick Nash's shot from the slot with two minutes left to preserve it, and Kesler put it away by swiping in an empty-net goal with one hand with 45 seconds remaining.

"He made some really key saves in the third period and was the difference," Canada forward Eric Staal said, referring to Miller, the Buffalo Sabres goalie.