Mexico was thisclose—no, really, THIS$^%&*#@CLOSE!!!—to missing out on the 2014 World Cup last night. Mexico lost to Costa Rica 2-1 in a World Cup qualifier and needed the U.S. team to either beat Panama outright or, at the very least, play to a draw in order to enable Mexico to finish in fourth place in CONCACAF qualifying and advance to a playoff against New Zealand for a spot in the World Cup next summer.

But in the 83rd minute of the U.S./Panama match, with things all tied up 1-1, Panama's Luis Tejada did this to give Panama a 2-1 advantage:

And things did not look good for Mexico. In fact, Twitter exploded with folks pretty much writing Mexico off:

There were also some people who worried about the riots that might take place in Mexico if their team didn't qualify for the 2014 World Cup:

But then, three minutes into stoppage time of the U.S./Panama match, USA's Graham Zusi did this for the U.S. team and tied the game up 2-2:

And suddenly, things were looking up for Mexico again and the World Cup looked well within their grasp again:

And just one minute later, USA's Aron Johannsson made sure that Mexico would get a chance to play themselves into the World Cup by doing this:

That's right. Within the span of about a minute, Mexico went from down and out to alive and well, thanks to their hated rivals:

Happy to get a win against Panama, the official U.S. Soccer Twitter feed trolled Mexico for a few minutes:

American soccer fans did, too, as they let Mexico know exactly why they're going to play New Zealand in a playoff now, courtesy of a #YoureWelcomeMexico hashtag:

This awesome T-shirt popped up as well:

But something tells us that Mexico doesn't care what people are saying about them on Twitter right now. Just check out some of the newspaper covers from this morning:

At one point last night, Mexico's World Cup hopes and dreams were basically just minutes away from being taken off life support. But now, they have a second chance to try and make it to the World Cup thanks to the U.S. What a wild night in the world of soccer.

RELATED: 5 World Cup Qualifiers You Should Definitely Pay Attention to Today
RELATED: Sneaker Report - The 10 Most Exciting 2014 World Cup Matchups