MANAUS, Brazil (AP) -- Cristiano Ronaldo set up Varela for a late equalizer on a hot and humid night in the jungle Sunday to give the Portugal a 2-2 draw with the United States and hope for a spot in the second round of the World Cup.
Ronaldo, who has been playing despite a left knee injury, sent in a cross in the fifth minute of stoppage time and Varela scored with a diving header in the last seconds of the match.
Nani had scored first for Portugal, shooting past a sprawling Tim Howard in the fifth minute, but the Americans responded in the second half as Portugal seemed to wilt in the stifling heat.
Jermaine Jones made it 1-1 with a curling shot in the 64th minute after a cross from Graham Zusi made its way through the Portugal defense.
Clint Dempsey, playing with a broken nose, then put the Americans ahead in the 81st. The United States captain used his stomach to direct the ball into the net from a cross by Zusi.
Video for mobile users: http://bit.ly/1syqGZk
The last-second draw denied the Americans a spot in the second round, but it kept Portugal alive in the tournament.
The United States now has four points in Group G, the same as Germany. Both Portugal and Ghana have one point. The Americans will face Germany on Thursday in Recife, while Portugal takes on Ghana at the same time in Brasilia.
Here are the scenarios:
--If the U.S. wins: The Americans are through to the next round as the winners of Group G and will play the second place team from Group H. (Belgium currently leads Group H, followed by Algeria, Russia and South Korea)
Germany would finish second unless Ghana or Portugal won and passed Germany on goal differential. Germany currently is plus 4, Ghana is minus 1 and Portugal is minus 4. The second place finisher plays the winner of Group H.
--If Germany wins: Germany wins the group.
The U.S. would finish second unless Ghana or Portugal won and passed the U.S. on goal differential. The U.S. is plus 1, Ghana is minus 1 and Portugal is minus 4. So, if the U.S. loses to Germany, it will be rooting for Portugal, because it's less likely that Portugal could pass the U.S. on goal differential.
--If Germany and the U.S. draw: Germany wins the group and the U.S. finishes second. The result of the other game is meaningless.
--If Ghana and Portugal draw: The U.S. and Germany advance. Germany wins the group unless the U.S. defeats them.
--Other tiebreakers: In any of these scenarios involving goal differential, if two teams are tied on points and goal differential, the next tiebreaker is total goals scored. Germany has six goals, the U.S. has four, Ghana has there and Portugal has two.