BCSNN — For three quarters, Saturday night looked like a throwback to the wildest days of Big 12 football. By the fourth quarter, it turned into a test of which team could make one more stop.

No. 13 Texas Tech passed that test.

Thomas Castellanos threw a career-high five touchdown passes, including the go-ahead score to Kenny Johnson with 2:44 remaining, as the Red Raiders outlasted West Virginia 53-48 in a high-scoring showdown that stretched into the early hours of Sunday morning.

The victory kept Texas Tech (8-1, 5-1 Big 12) firmly in contention for a second consecutive conference championship and the College Football Playoff berth that could come with it. The Red Raiders overcame a second-half collapse after leading by 14 points at halftime and watched a seemingly comfortable advantage disappear before rallying late.

The numbers were staggering. Texas Tech and West Virginia combined for 1,220 total yards, including 894 before halftime, and produced 13 plays of at least 30 yards. Long touchdowns, explosive runs and quick strikes were the norm as both defenses struggled to slow the pace.

Yet for all the offensive fireworks, two defensive plays ultimately helped decide the game.

The first came midway through the fourth quarter when Texas Tech stuffed Cam Cook on third-and-one. West Virginia elected to punt, giving Castellanos and the Red Raiders another opportunity. They capitalized immediately, marching 69 yards in nine plays to reclaim the lead.

The defining play of that drive came on fourth-and-three, when Castellanos floated a pass over the middle to Micah Hudson for a 26-yard gain. Moments later, he found Johnson on a five-yard touchdown pass, putting Texas Tech back in front for good.

“A good old-fashioned throwback Big 12 game broke out,” Texas Tech coach Joey McGuire said. “I haven't been a part of that in a long time.”

Castellanos delivered his finest performance since taking over the starting job. In just his second start since replacing Will Hammond, he completed 18 of 27 passes for 362 yards and five touchdowns without an interception. He also rushed for 102 yards, repeatedly extending plays with his legs. Johnson and Terrance Carter Jr. each caught two touchdown passes as the Red Raiders repeatedly answered every West Virginia surge.

Texas Tech also received a huge performance from J'Koby Williams, who rushed for 160 yards, including a 75-yard touchdown sprint. His 43-yard reception later helped set up another score as the Red Raiders piled up points throughout the night.

West Virginia (5-4, 2-4 Big 12) mounted an impressive comeback after halftime. Quarterback Michael Hawkins Jr. accounted for three rushing touchdowns, tying a school record with 19 rushing scores in a season. He also threw for 303 yards, while redshirt freshman Taron Francis turned just three catches into 169 receiving yards, highlighted by a 73-yard touchdown reception.

The Mountaineers erased a 14-point halftime deficit by forcing Texas Tech to punt on each of its first four second-half possessions. That turnaround helped fuel three straight touchdowns and a 48-41 lead. But after the Red Raiders answered with their game-winning drive, West Virginia's final possession ended when Hawkins stumbled and fell in the end zone for a safety.

The victory wasn't flawless. Texas Tech, whose run defense was the foundation of last year's conference championship run, surrendered 279 rushing yards and allowed West Virginia back into a game it appeared to control. But when the game tightened late, the Red Raiders found a way to win.

That's what playoff contenders do.

And after surviving one of the most entertaining offensive shootouts of the season, Texas Tech remains firmly on track toward a conference title defense and a return trip to the College Football Playoff.