Seconds after Sean Johnson made a brilliant save off a corner kick, Joe Corona cleared the ball, setting up the winning sequence. The veteran Donovan, trying to work his way back into a starring role on the national team after a self-imposed hiatus, took the ball on the right side. He quickly spotted Shea, who came on just five minutes earlier, streaking down the middle.
Donovan's pass hit Shea in stride, and the Stoke City player sent a left-footed shot from 15 yards off goalkeeper Patrick Pemberton for the winner, the Americans' eighth straight, a team record.
"It's good," Shea said, downplaying his massive contribution after struggling earlier in the tournament. "First U.S. goal, only goal of the game, it wins the group. Really good."
The Americans will play El Salvador in the quarterfinals Sunday in Baltimore, while Costa Rica meets Honduras in the knockout round.
Shea's goal broke a 785-minute string without being scored upon for Costa Rica. It followed Johnson, considered a fourth-stringer at best in the net for the United States, making a clutch stop on Carlos Johnson.
"Once I made the save, we just tried to get it out of there," Sean Johnson said. "Then I saw it cleared and we're breaking the other way. It created and opportunity and we finished it."
The match was played in slightly different conditions than the last time the nations met. That was in a blizzard in Denver, with the United States edging Costa Rica 1-0 in a World Cup qualifier. Tuesday night, there was plenty of moisture on the pitch just before kickoff, but it came from sprinklers trying to keep the turf in shape during a northeastern heat wave.
With both sides already having clinched moving on in the CONCACAF championship, not much happened offensively until late in the match in front of 25,432.
Early in the second half, Costa Rica captain Pemberton came out of his net, collided with a teammate outside the area and then had the ball hit him squarely in the hands. He was given only a yellow card, however, then immediately made saves on Jose Torres' curling free kick and Donovan's shot off a rebound.
That sequence opened up play for a while, but then it deteriorated into sloppiness and some roughness in midfield between teams with no love lost.
U.S. captain DaMarcus Beasley took a nasty spill and was run over by Rodney Wallace early in the match. A woozy Beasley sat out three minutes before returning — and almost immediately stripped the ball from Wallace.
His teammates struggled to link up, showing their lack of familiarity with each other, through the first 20 minutes. U.S. coach Jurgen Klinsmann's charge to is to find the right combinations to get the Americans into the World Cup — they lead CONCACAF qualifying through six games with 13 points, while Costa Rica is next with 11 — and then perform well in Brazil. He's using the Gold Cup to test as many players as possible, while giving most of the national team regulars who have done so well in qualifying a breather.
"It's good giving them a taste of these kind of battles," Klinsmann said of using multiple lineups. "We'll keep on building this and giving them opportunities whenever possible."
Neither goalkeeper was particularly threatened until U.S. defender Clarence Goodson got free on the left side of the box late in the first half. His left-footed drive was deflected out of bounds by the defense.
Costa Rica played a tightly packed defensive style for much of the match, but coach Jorge Luis Pinto felt his players handled themselves well.
"The only thing we lacked was getting the goal," Pinto said. "The United States got the goal, we didn't."
More Sports Headlines
'The kids' who brought pro baseball to Everett Kvitova Opens Wimbledon Defense With 6-1, 6-0 Win 9:48 a.m. Williams sisters pull out of doubles at Wimbledon 9:46 a.m. Community Bulletin Board Mís face tough decision on rotation as Iwakuma nears return Friberg returns to the Sounders AquaSox get plenty of help from Hawks in 10-7 win Solo has kept a low profile in Women's World Cup
Our new comment system is not supported in IE 7. Please upgrade your browser here.