SANTA CLARA, Calif. — Geno Smith scampered past the tired San Francisco defense for the go-ahead score in the closing seconds and struck the iconic Stephen Curry "night night" pose.
Just when it looked as if Seattle's playoff hopes might be put to rest, Smith engineered a game-winning, and possibly season-saving, drive.
Smith capped the 80-yard drive with a 13-yard scramble with 12 seconds remaining, giving the Seahawks their second win in seven games with a 20-17 victory over the 49ers on Sunday.
''We knew what was at stake,'' Smith said. ''We're trying to turn around our season. This is a step in the right direction.''
The Seahawks (5-5) won their first three games under first-year coach Mike Macdonald before dropping five of six — including a sixth straight loss to San Francisco (5-5) last month.
Loss number seven in a row to the 49ers seemed imminent after Seattle allowed a go-ahead score in the fourth quarter and then got stopped on a fourth-and-1 in San Francisco territory.
But the Seahawks defense got a stop and Smith did the rest, completing seven of eight passes for 54 yards on the game-winning drive before running it in against a depleted defense that sorely missed injured edge rusher Nick Bosa on the final drive.
''We just knew we had to go down and score,'' running back Kenneth Walker III said. ''A field goal wasn't going to get it done.''