Rhys Lloyd kicked a 42-yard field goal with 23 seconds remaining to lift the 17th-ranked Golden Gophers to a 31-30 victory over the Ducks.