No one official would accept the blame, so perhaps it was Beyoncé who knocked out the power with her super-charged halftime show that electrified the Superdome crowd and re-energized the San Francisco 49ers.

Trailing the Baltimore Ravens 28-6 when the power outage delayed Super Bowl XLVII for 33 minutes and 55 seconds in the third quarter, the 49ers rallied and almost pulled off a shocking victory on Sunday.

They ran out of downs on the Ravens' 5-yard line with 1:46 remaining, securing a 34-31 victory for Baltimore that gave retiring linebacker Ray Lewis his second Lombardi Trophy as a going-away present.

"Can you imagine? The final series of Ray Lewis' career was a goal-line stand for the Lombardi Trophy," coach John Harbaugh said in the winning dressing room. "It doesn't get any better than that."

Before Lewis could have his last dance, the Ravens made sure there was some excitement remaining.

Harbaugh took a safety with 4 seconds left, but he couldn't escape with the victory over his brother, Jim, until the Ravens pulled down Ted Ginn Jr. at midfield with no time left after the free kick.

"The ultimate cake," is how outside linebacker Terrell Suggs described Lewis' last game. "There will never be another leader like him. His legacy will go untamed.

"We beat the future, Andrew Luck; we beat the past, Peyton Manning; we beat the present, Tom Brady; and we beat the greatest show in the NFL in the Niners' Colin Kaepernick."

It was the Ravens' second Super Bowl win, and Lewis was a part of both. The first one came against the New York Giants after the 2000 season.

"This is the greatest feeling ever," Lewis said. "How else can you finish that off but with a goal-line stand? What better way to go out? I got tested through this journey. It was a roller coaster — the injuries, the people — but we stayed together. Now I get to ride off into the sunset with my second ring."

Quarterback Joe Flacco was voted the Most Valuable Player. He completed 22 of 33 passes for 287 yards and three touchdowns, all in the first half.