Updated

UCLA stumbled off the field at halftime trailing by 22 points, its Pac-12 South title hopes all but buried by Taylor Kelly and Arizona State's prolific offense.

Although the Bruins managed to turn a potential blowout into a bit of a nail-biter late, they'll spend a long winter regretting the half that got away in their biggest game of the season.

Kelly passed for 225 yards and a touchdown and rushed for 99 yards and another score, and No. 19 Arizona State hung on in the fourth quarter to clinch the division title with a 38-33 victory over No. 14 UCLA on Saturday night.

Brett Hundley passed for 253 yards and two touchdowns for UCLA (8-3, 5-3), which had hoped to earn a third straight trip to the conference championship. But a 35-13 halftime deficit was too much to overcome, even in a stadium where the Bruins hadn't lost all season.

Another ugly bit of math: Ka'imi Fairbairn missed two makeable field goals in the Bruins' five-point loss.

"These guys, they just fought back," UCLA coach Jim Mora said. "We were in it. We had shots. Those are the what-ifs and the could-have-beens, and they don't matter. We just have to get better from it. And we will."

Marion Grice had 95 yards rushing and 72 yards receiving for the surging Sun Devils (9-2, 7-1 Pac-12), who will face Stanford in the league title game in two weeks.

The Bruins couldn't overcome their dismal start despite repeatedly getting outstanding field position from Ishmael Adams, who had 234 total yards in kick returns. Myles Jack rushed for 86 yards and a touchdown while the freshman linebacker played almost exclusively on offense.

Kelly and the Sun Devils' offense did nearly all of its damage before halftime. UCLA gave up just three points and 91 yards in the second half, but the Bruins couldn't score on their final two drives.

"Nothing we hadn't seen before," UCLA linebacker Anthony Barr said. "Just their tempo in the first couple of series hurt us, and their quarterback hurt us with his legs. We made those adjustments, but it was too little, too late."

If Arizona State beats Arizona in the Territorial Cup game next week, the Sun Devils will host Stanford — a possibility almost nobody anticipated just a couple of weeks ago.

"We got a chance to play for a trip to the Rose Bowl, which I've dreamed of all my life," Kelly said in the Rose Bowl tunnel. "We've got a couple more to go, and then we can be there."

Jaelen Strong had six catches for 91 yards and a score, but Arizona State blew most of its halftime lead over the Bruins. In the schools' first meeting as two ranked teams since 1986, Arizona State earned the right to play for its first Rose Bowl berth in 17 years.

"I've been doing this for 28 years, and that's the most impressive display of heart by a team that I've ever seen," said Arizona State coach Todd Graham, who acknowledged getting choked up on the field for maybe the second time in his adult life. "To watch these kids lay it on the line with that kind of heart was overwhelming to me."

UCLA trailed 38-27 entering the fourth quarter, but Shaq Evans caught a 27-yard TD pass with 11:25 to play. The Bruins drove to the Arizona State 6 in the waning minutes, but Chris Young sacked Hundley for a 13-yard loss before Fairbairn missed a 37-yard field goal attempt.

UCLA got the ball back at its 35 with 3:21 to play. Evans crossed midfield with a catch on fourth-and-5, but the penalty-prone Bruins committed three fouls on the next two snaps, and Hundley's fourth-down pass to Jordan Payton fell well short of a first down.

The Sun Devils emphatically fought off any flashbacks to the schools' meeting last season, when the Bruins won 45-43 on Fairbairn's 33-yard field goal as time expired.

"I was almost like, 'Oh no, it's happening again,'" Jones said. "But this is a different team. We've trained a lot harder. We're better."

Carl Bradford returned an interception 18 yards for an early score by Arizona State, which racked up 357 yards in a dynamic first half.

The Sun Devils reeled off four touchdowns in the last 16 minutes of the first half, including TD runs by D.J. Foster and Michael Eubank. Bradford made Arizona State's biggest defensive play on the first snap of the second quarter, stepping in front of a short swing pass by Hundley and returning it for a score.

Arizona State drove 62 yards in just 35 seconds during the final minute of the half, with Strong making a 19-yard TD grab with 5 seconds to play for a 22-point lead.