Kirk Cousins passed for 405 yards and three touchdowns and ran for another score to lead the Minnesota Vikings to a 37-35 season-ending victory over the host Detroit Lions on Sunday.Alexander Mattison rushed for 95 yards on 21 carries and also caught three passes for 50 yards and another score. Justin Jefferson caught nine passes for 133 yards and set the NFL rookie record with 1,400 receiving yards on the season.The Vikings (7-9), who were eliminated from playoff contention last weekend, snapped a three-game losing streak. The Lions (5-11) finished their season with a four-game skid.Matthew Stafford passed for 293 yards and three touchdowns for the Lions. Marvin Jones Jr. caught eight passes for 180 yards and two touchdowns.Cousins threw three touchdown passes in the first half, lifting his club to a 21-16 lead.Matt Prater’s 54-yard field goal midway through the second quarter gave Detroit a two-point lead before Cousins hit Chad Beebe on a 40-yard touchdown pass with four seconds remaining in the half. Beebe caught the ball near the 20 and two Detroit defenders collided, allowing him to break free.Detroit regained the lead in the first minute of the second half. James Agnew’s 70-yard kick return set up Jones’ second touchdown reception, a 26-yarder after a defender slipped.The Vikings got those points right back on their next possession. Mattison scored on a 2-yard run. A Harrison Smith interception set up a 23-yard Dan Bailey field goal to make it 31-23.