"The Scottish lion has roared across the country," declared Alex Salmond, the former first minister of Scotland and newly minted member of Britain's Parliament, as the results of Thursday's election came in. Salmond, who stepped down when his Scottish National Party (SNP) narrowly lost its bid for Scottish independence last year, is known for his colorful turns of phrase, but he wasn't wrong.

Thursday's election in the United Kingdom had been projected to be close, with political betting markets giving 50-50 odds that David Cameron, the Conservative prime minister, would lose to Labour's Ed Miliband. The exit polls looked bad for Labour, but the reality is much worse, and Cameron's triumph led Miliband to resign as Labour leader. BBC News helpfully recaps the night's drama in less than 4 minutes:

According to the latest BBC News projections, the Conservatives will win a majority of seats in Parliament, 331 of 650, meaning Cameron won't have to cobble together a coalition to form his government. Labour is projected to win 232, a loss of 26 seats, and the Liberal Democrats — part of Cameron's current coalition — will be down to 8 seats, from 54. Along with the Conservatives, the big winner on Tuesday was the SNP, which is projected to win 56 seats — a gain of 50.

Here's the thing: When you look at the popular vote, Labour didn't fare too poorly: 30.5 percent to the Conservatives' 36.8 percent, according to incomplete results. The Liberal Democrats earned 7.8 percent of the vote, the SNP 4.8 percent, and the Greens 3.8 percent — giving the political left roughly half the vote.

On the other side, the UK Independence Party (UKIP) got a respectable 12.6 percent, which translated to the same number of seats as the Greens: 1. UKIP leader Neil Farange didn't win a seat and resigned as leader of the populist conservative party.

So what happened? First, the UK's parliamentary system doesn't care too much about the popular vote: Individual constituencies are winner-take-all, like U.S. congressional districts.

Then, Labour underperformed in England and was virtually wiped out in Scotland. "We haven’t made the gains that we wanted in England and Wales," Miliband explained, "and in Scotland we have seen a surge of nationalism overwhelm our party." SkyNews political director Faisal Islam suggested that the Liberal Democrats were essentially Cameron's scapegoats, and Scottish voters were mad at Labour for joining Cameron to help defeat independence.

So Conservatives outsourced blame for unpopular coalition decisions to LibDems. And blame for indyref campaign unpopularity to Labour. — Faisal Islam (@faisalislam) May 8, 2015

"Rather than contracting after losing the independence vote, the SNP was revitalized, with a sharply increased membership and an enthusiasm unmatched by the Labour Party," say Dan Balz and Griff Witte at The Washington Post. "To voters who want a Labour Party devoted to Scotland, the decision looked like a betrayal — a party in league with London that was no longer authentically Scottish."

Labour was also widely seen in Scotland as taking the Scottish for granted, ignoring its problems, and poaching its political talent. Political analysts, too, are giving a lot of credit to SNP leader ­Nicola Sturgeon, who emerged as a masterful campaigner and shone during the one televised debate of party leaders.

The SNP's evisceration of Labour in Scotland isn't entirely to blame for Labour's misfortune and the Tories' gains — early Friday, Miliband tweeted that "the responsibility for the result is mine alone" before he announced his resignation.

But almost all of the SNP's 50 extra seats were poached from Labour, and that sealed the party's loss.

Oddly, it was sort of a Pyrrhic victory for the SNP. "They have been victims of their own success because their hopes of influencing a Labour government now lie in tatters because of Ed Miliband's party's disastrous performance," says SkyNews chief political correspondent Jon Craig. "The SNP will get no favors from David Cameron and the Conservatives."

For Scottish nationalists, that's a potential hangover they're probably happy to deal with after Thursday's heady victory.