STANFORD, Calif. -- Senior day can be emotional, especially against the team a player cheered for as a kid with his late father.
Not so for Kevin Hogan.
Hogan threw four touchdown passes and drove the No. 9 Cardinal to a game-winning, 45-yard field goal by Conrad Ukropina on the last play of a 38-36 victory over No. 6 Notre Dame in a playoff elimination game Saturday night.
"This was the best," Hogan said. "I couldn't have pictured it going any better, having the opportunity to go down and finish the game with the ball in our hands. It seemed like whoever had the ball last would win."
Stanford did just that. Hogan threw for 269 yards and calmly led the winning drive in the final 30 seconds for the Cardinal (10-2), who kept their slim playoff hopes alive with the win. Stanford needs to beat Southern California in the Pac-12 championship game next week and get help in the other title games to make the four-team playoff.
Coach David Shaw presented Hogan with the game ball in an emotional locker room scene, as both remembered Hogan's father, Jerry, who died of colon cancer in December 2014.
"Kevin did a great job of keeping all that at bay and just playing football," Shaw said. "But at the end of the day, he was going to be emotional. I was emotional. He didn't play one of his best games against these guys last year, and he played one of his best games tonight. I can't say how proud I am of him."
DeShone Kizer had given the Irish (10-2) a one-point lead on his 2-yard run with 30 seconds left, only to see Hogan drive Stanford to the winning score.
"We truly thought that we were one of the best teams in the country," Kizer said. "The goal was to make it in the playoffs. We know that that opportunity has kind of fallen away."
The winning drive was aided by a face mask penalty on Isaac Rochell on the first play. Then Hogan connected on a 27-yard pass to Devon Cajuste to get Stanford in field goal range. After a short run by Christian McCaffrey, Ukropina came on and drilled the field goal, which set off a wild celebration including fans rushing the field.
Ukropina said he had predicted to punter Alex Robinson that the Irish would score and give Stanford 30 seconds to drive for the win. He proved prophetic as well as clutch.
"We got the ball, drove down, and it was almost like it was meant to be," he said.
McCaffrey gained 228 all-purpose yards to become the third FBS player to top 3,000 in a season, but he was held to 94 on the ground, which snapped his nine-game 100-yard streak.
Kizer threw for 234 yards and ran for 128 more for the Irish. Josh Adams added 168 on the ground, but it wasn't enough. Notre Dame now awaits its bowl bid, but the Irish's hopes of making the playoff are gone with their second loss.
"We're two plays away from being undefeated and being the No. 1 team in the country," coach Brian Kelly said. "One play at Clemson and one play here at Stanford."
The game was a contrast in styles, with Notre Dame thriving on big-play scores and Stanford moving the ball efficiently down the field and dominating on both sides of the ball in the red zone. The Irish were held to field goals on their first three trips inside the 20, which cost them a chance to build a substantial lead. Kizer also lost a fumble in field-goal range in the closing seconds of the first half.
Notre Dame was actually more potent from farther away from the end zone, with three touchdowns of more than 60 yards on the game: a 93-yard kickoff return by C.J. Sanders, a 73-yard pass from Kizer to Will Fuller and a 62-yard run by Adams.
The Cardinal turned all five of their red zone trips into touchdowns, with Hogan throwing for four and Remound Wright running in one. Hogan's 10-yard pass to Austin Hooper on the opening play of the fourth quarter put Stanford up 35-29.
The defenses then combined to force four straight punts before the two late scoring drives provided the seventh and eighth lead changes of the game.
Stanford Steve and The Bear: Week 4 college football picks, bets, nuggets
What's in store for Week 4 of the college football season? The fellas break it down with their best bets, parlays worth playing and more.
Betting market watch: NFL, college football line moves, early action and bookmaker insights
David Purdum gives an update on where the money lies in Week 3 NFL games, which teams are popular tickets, college insights and more.
College football recruiting notebook: Georgia wants Arch Manning, breaking down Big 12 expansion and more
We break down the latest in the recruiting world, from Arch Manning's visit to Georgia to the 25-player signing limit and beyond.
College football Week 4: Arkansas-Texas A&M in the Southwest Classic, Notre Dame-Wisconsin and more
Arkansas and Texas A&M meet for just the third time as ranked opponents, while the city of Chicago hosts Notre Dame against Wisconsin during Week 4.
Remembering the best moments and stories from the Florida Gators' 1996 football title
Steve Spurrier's Gators lit up the scoreboard en route to the program's first national title in 1996. And like most things involving the Head Ball Coach, the off-field stuff was just as entertaining.
No. 4 Oklahoma opens Big 12 play vs. West Virginia
— It wasn’t pretty, but No. 4 Oklahoma manage to escape its non-conference slate unscathed.