SEATTLE – The 49ers have come to Seattle with better teams since the 2012 season, but Kyle Shanahan’s squad kept things interesting for a lot longer than some of those other units.

The 49ers’ young defense kept things close, putting the clamps on Russell Wilson and the struggling Seattle offense for most of Sunday before San Francisco’s upset bid fell short with a 12-9 loss at CenturyLink Field.

The 49ers – listed as a 14-point underdog against the Seahawks -- entered Sunday’s game with six consecutive losses in Seattle by an average deficit of 18 points. The Seahawks entered with seven consecutive victories over the 49ers, including a victory in the 2013 NFC Championship that propelled Pete Carroll’s team to its only Super Bowl victory.

In a game dominated by both defenses, the 49ers’ only offensive spark for most of the game came from running back Carlos Hyde.

Hyde rushed for 124 yards on 15 carries, including a career-long 61-yard burst in the second quarter that gave the 49ers some energy and enabled them to tie the game at halftime.

Since the end of the 2014 season, Hyde is the only running back to gain more than 100 yards against the Seahawks’ home stadium. Hyde has now done it in back-to-back appearances.

The 49ers rallied from a 6-0 deficit to take a 9-6 lead with 11:36 remaining in the fourth quarter. After a steady dose of Hyde, the 49ers sprinkled in undrafted rookie running back Matt Breida on the go-ahead drive. Breida had back-to-back runs of 11 and 13 yards to set up Robbie Gould’s third field goal of the game.


But the Seahawks came back to take a 12-9 lead on Wilson’s 9-yard touchdown pass to receiver Paul Richardson. Wilson, running for his life against the 49ers’ pass rush, singlehandedly took Seattle down the field with his ability to scramble for yards and buy time to make plays down the field. Blair Walsh missed the extra point.

The 49ers tied the game with Gould field goals of 40 and 37 yards late in the first half. Walsh gave Seattle a 6-0 lead with field goals of 25 and 27 yards in the first quarter. The latter field goal was set up by Bobby Wagner’s interception of a Brian Hoyer pass.

Hoyer and the passing game struggled throughout the game. Hoyer completed 15 of 27 passes for 99 yards with no touchdowns and one interception.

Seattle could not sustain much offense, either. Wilson completed 23 of 39 pass attempts for 198 yards with one touchdown and no interceptions.

Neither the 49ers nor Seahawks scored a touchdown in opening-week losses. The 49ers fell to the Carolina Panthers 23-3, while Seattle opened with a 17-9 loss to the Green Bay Packers.

--Fifth-year veteran Eric Reid left the game three times with apparent issues with his left knee. He went down in the second quarter with a non-contact knee injury. Reid was approximately 30 yards away from the ball on a deep Wilson pass attempt when he sustained the injury. Reid sat out the remainder of the first half but returned to action at the start of the second half. He briefly left again after a big hit on tight end Jimmy Graham. After re-entering the game, Reid sustained another injury in the third quarter and exited the game for good.

--Outside pass rusher Aaron Lynch, who was not active for the 49ers’ first game of the season, recorded the team’s first sack of the season when he threw Wilson for a 1-yard loss in the first quarter. Tank Carradine and Arik Armstead also recorded sacks.

--Rookie defensive lineman Solomon Thomas recorded two tackles for loss, as he made a major improvement in his second NFL game. He was credited with a “start” because the 49ers opened the game in their nickel defensive package.

--Ray-Ray Armstrong started in place of linebacker Reuben Foster, who is expected to miss approximately a month with a high ankle sprain. Armstrong was briefly benched for Brock Coyle in the first half after he blew a couple of assignments. Armstrong returned to his role in the 49ers’ base defense in the second half.

--Hyde had 102 yards rushing in the first half, becoming the first player since Adrian Peterson in 2012 to rush for 100 or more yards against the Seahawks in a half.