NEW ORLEANS (AP) - For a Super Bowl with so many story lines, this game came up with quite a twist. Try a blackout that turned a blowout into a shootout - capped by a brilliant defensive stand. The Baltimore Ravens survived a frenzied comeback by the San Francisco 49ers following a 34-minute delay in the third quarter for a power outage Sunday night, winning their second championship 34-31. Super Bowl MVP Joe Flacco threw three first-half touchdown passes, Jacoby Jones ran back the second-half kickoff a record 108 yards for a score, and star linebacker Ray Lewis' last play fittingly was part of a defensive effort that saved the victory. "To me, that was one of the most amazing goal-line stands I've ever been a part of in my career," said Lewis, who announced a month ago he would retire when the Ravens were done playing. They are done now, with another Vince Lombardi Trophy headed for the display case. "What better way to do it," Lewis said, "than on the Super Bowl stage?" That stage already was loaded with plots: The coaching Harbaughs sibling rivalry, won by older brother John, who said the postgame greeting with Jim was "painful." Flacco's emergence as a top-level quarterback, and his impending free agency. Colin Kaepernick's rapid rise in the last two months as 49ers QB. The big game's return to the Big Easy for the first time in 11 years, and the first time since Hurricane Katrina ravaged the city in 2005. Lewis' self-proclaimed "last ride." But when the Superdome lost power, well, that wasn't in anyone's scenario. Flacco and the Ravens (14-6) were turning the game into a rout, leading 28-6 when, without even a flicker of warning, several banks of lights and the scoreboards went dark. Players from both sides stretched and chatted with each other in as bizarre a scene as any Super Bowl has witnessed. "The bad part was we started talking about it," said safety Ed Reed, who had the game's only interception. That was mentioned. It was like they were trying to kill our momentum. After power was restored, the 49ers began playing lights out. San Francisco (13-5-1), in search of its sixth Lombardi Trophy in as many tries, got back in the game almost immediately. Michael Crabtree's 31-yard touchdown reception, on which he broke two tackles, made it 28-13. A few minutes later, Frank Gore's 6-yard run followed a 32-yard punt return by Ted Ginn Jr., and the 49ers were within eight. San Francisco wasn't done challenging, though, and Kaepernick's 15-yard TD run, the longest for a quarterback in a Super Bowl, made it 31-29. Kaepernick couldn't get the 49ers into the end zone on the final three plays. The last was a pass into the right corner of the end zone to Crabtree that involved some incidental bumping. Jim Harbaugh insisted a flag should have been thrown. Ravens punter Sam Koch took a safety for the final score with 4 seconds left. But it's us," John Harbaugh said of his Ravens. Barely. "Yeah, I think that last drive when we got the ball and had time to go down and score a touchdown," Kaepernick said, "we thought it was our game." But the championship is Baltimore's. As for the foul-up at America's biggest sporting event, officials revealed that an "abnormality" in the power system triggered an automatic shutdown, forcing backup systems to kick in. But no one was sure what caused the initial problem. Everything changed after that until Lewis and Co. shut it down. But there were plenty of white-knuckle moments and the Ravens had to make four stops inside their 7 at the end. Flacco's arrival as a championship quarterback - he had 11 postseason TD passes, tying a league mark, and no interceptions - coincides with Lewis' retirement. The win capped a sensational four games since Lewis announced he was leaving the game after 17 Hall of Fame-caliber years. The Ravens will become Flacco's team now, provided he reaches agreement on a new contract. Flacco's three TD passes in the opening half tied a Super Bowl record. They covered 13 yards to Anquan Boldin, 1 to Dennis Pitta and 56 to Jones. That start boosted him to the MVP award. "They have to give it to one guy and I'm not going to complain that I got it," Flacco said. John Harbaugh had no complaints about getting that other trophy named after that Green Bay coach. But he struggled to balance it with the disappointment his brother was feeling. "The meeting with Jim in the middle (of the field for the postgame handshake) was probably the most difficult thing I have ever been associated with in my life," the Ravens coach said. The wild scoring made this the second championship in the NFL's 80-year title game history in which both teams scored at least 30 points. Pittsburgh's 35-31 win over Dallas in 1979 was the other. New Orleans native Jones, one of the stars in a double-overtime playoff win at Denver, seemed to put the game away with his record 108-yard sprint with the second-half kickoff. Lewis was sprawled on all fours, face-down on the turf, after the end zone incompletion. Jim Harbaugh, the coach who turned around the Niners in the last two years and brought them to their first Super Bowl in 18 years, had seen his team make a similarly stunning comeback in the NFC championship at Atlanta, but couldn't finish it off against Baltimore. On San Francisco's next offensive play, Kaepernick threw behind Randy Moss and always dependable Reed picked it off. But again they couldn't cross the goal line, Paul Kruger got his second sack of the half on third down, forcing a second field goal by Akers, from 27 yards.