Ryan scored on a penalty shot at 2:50 of overtime as the Ducks snapped the Detroit Red Wings' five-game road winning streak with a wild 2-1 victory at the Honda Center.
Ryan was taken down on a breakaway moments after the Ducks killed off a penalty, and the New Jersey native put a quick shot past Jimmy Howard's glove for his 30th goal of the season on his first career penalty shot.
"That shot seemed to work for me in the last couple of shootouts," Ryan said. "He is a different kind of goalie. He challenges and he gets those legs back. He goes off to the side pretty well. There wasn’t any other game plan if that didn’t work out, he was making the save. I just tried to close my eyes and put it in the right place."
Dan Ellis made 28 saves for the Ducks, who have won two straight after a five-game skid threatened their playoff chances. Jason Blake tied it for Anaheim early in the third period, spoiling Howard's bid to shut out the Ducks for the third time this season.
Pavel Datsyuk scored a second-period power-play goal, and Howard made 26 saves for Detroit, which hadn't lost on the road since Feb. 5.
Howard made a spectacular glove save with 7:35 left in regulation when All-Star Corey Perry broke in alone, but he failed to earn his NHL-leading 32nd victory after getting beaten on a penalty shot for just the second time in Howard's career.
"It's a bad call," Howard said of the penalty shot. "He fell on his own. He tripped. But things happen out there fast. He might have saw it different."
Both teams had ample opportunities to end it in the final minutes. The Ducks were called for too many men on the ice with just 12 seconds left in regulation, but Detroit still couldn't score during 4-on-3 power play in overtime.
Anaheim is four games into a seven-game homestand, while Detroit will play at surging San Jose on Thursday night during a five-game trip.
"With the situation we are in, we killed a lot of penalties against a pretty good power play, you don’t always expect to come out on top," Ducks captain Ryan Getzlaf said. "The guys did a great job killing and Dan [Ellis] stood in there hard for us and we got the result we wanted in the end."
Ellis, acquired from Tampa Bay last week, looked sharp in his third game filling in for All-Star Jonas Hiller, who has been out for most of a month with dizziness and fatigue. Although Anaheim apparently has plugged its goaltending problems with Ellis and fellow newcomer Ray Emery, the Ducks are finally starting to solve the overall slide that's threatening to keep them out of the playoffs for the second straight season.
"We want to put some points together in that final push," Ellis said. "It's so difficult in the West right now. Everything is just kind of a logjam. Every point is important right now. To get a big win was huge for us."
Detroit will lament numerous missed chances on the power play. The Wings failed to score on a 93-second two-man advantage during the first period, and they didn't connect until their sixth power play, created by Anaheim newcomer Brad Winchester's interference penalty.
Datsyuk scored his 20th goal on a fortunate defection, banking it off Ellis' pads from behind the net while Anaheim's attention was occupied by Tomas Holmstrom in front.
Anaheim appeared mostly punchless until Blake abruptly fired a long shot from the slot past Howard for the veteran forward's first goal in nine games.
The Red Wings got another power play with 3:24 to play in regulation when former Detroit defenseman Andreas Lilja held Datsyuk's stick, but the Wings didn't threaten to score.
"They did a good job of being in the lane, but we have to take the shots, even if the perfect shot is not there," Wings defenseman Niklas Kronwall said. "We have to be a little bit more resilient. That's something we need to work on."
Leading goal-scorer Johan Franzen returned to the Red Wings' lineup after missing Monday's win at Los Angeles to attend the birth of his first child. He still hasn't scored a goal in 13 games since his five-goal outburst at Ottawa on Feb. 2.
"We had every opportunity (to win)," Detroit coach Mike Babcock said. "We didn't score on a power play. We were set up to get a win here tonight and we didn't get it done."
Material from wire services and team media was used in this report.
Snap shot -
1 - 0 DET
1 - 1 Tie
Wrist shot -
2 - 1 ANA
Delaying Game-Puck over glass
Holding the stick