DETROIT — Andrew Luck was down to his last shot and his final option to lead the Indianapolis Colts to victory.
Luck dropped back, then moved up to avoid pressure and buy time for a teammate to get open. He tossed a short pass to Donnie Avery, and the receiver did the rest — racing untouched for a 14-yard touchdown on the final play and giving the Colts a 35-33 comeback win over the Detroit Lions on Sunday.
‘‘You always hesitate throwing the ball not in the end zone, for fear of the clock running out with a guy in bounds,’’ Luck said. ‘‘Took the calculated risk that Donnie could get there in the end zone, and he did.’’
The last time the Colts scored a winning touchdown with no time remaining was Sept. 30, 1990, according to STATS LLC, to beat Philadelphia, 24-23.
Luck has won more games (eight) than any rookie quarterback drafted No. 1 overall in the Super Bowl era.
The Colts (8-4) stayed in control of the AFC wild-card race by winning for the sixth time in seven games. Luck helped them move a step closer toward being in the playoffs for the 10th time in 11 seasons, only this time without Peyton Manning.
‘‘Some teams find ways to win,’’ Colts interim coach Bruce Arian said. ‘‘Others don't.’’
The Lions (4-8) lost for the fourth straight time, including three in a row at home after leading in the final quarter.
They’re the first team to lose three straight games when leading with two minutes left in regulation since San Diego in 2000, according to STATS LLC, and the first since at least 1983 to blow leads that late in three home games in a row.
‘‘This is a tough league for tough people, and we'll find out now who is tough,’’ Detroit coach Jim Schwartz said.
Luck is — that’s for sure.
Ndamukong Suh, who was fined $30,000 for kicking Houston quarterback Matt Schaub last week, sacked Luck on his first snap and he was hit and hurried many more times by a hard-rushing front.
On the final play, though, Detroit let Luck run through a slowly collapsing pocket as the seconds ticked away and he took advantage.
‘‘If the pass rush does their job, he doesn’t get free to scramble and he never finds that receiver,’’ Schwartz said. ‘‘All game, we focused on taking away his step-up lanes, and then on the last play, we don’t do it.’’
Luck, who was 24 of 54 for 391 yards with four TD passes, made up for three interceptions with the fourth-down play that started with three seconds left.
Fellow rookie T.Y. Hilton had six receptions for 100 yards and Avery had five catches for 91 yards and two scores, the first of which gave the Colts their only lead — until his second one won the game.
‘‘I had no choice but to score,’’ Avery said. ‘‘It was the slowest 11 yards that I ever felt like I ran.’’
Calvin Johnson had a career-high 13 receptions for 171 yards, including a 46-yard touchdown that gave Detroit a 30-21 lead late in the third quarter. Matthew Stafford was 27 of 46 for 313 yards, with two TDs and an interception late in the first half.