CHICAGO (CBS) — Donte Ingram hit a long 3-pointer just before the buzzer, lifting Loyola-Chicago to a thrilling 64-62 win over Miami on Thursday in its first NCAA Tournament appearance in 33 years.

Ingram’s shot from well above the key — from the edge of the March Madness logo that spans midcourt, in fact — came after Lonnie Walker IV missed a free throw with a chance to give the Hurricanes a three-point lead with 9 seconds remaining.

The 11th-seeded Ramblers (29-5) matched the school record for wins from their 1963 national championship team in their first NCAA trip since losing to Patrick Ewing and Georgetown in the Sweet 16 in 1985.

They advanced to face third-seeded Tennessee on Saturday.

gettyimages 932524172 Loyola Beats Miami 64 62, Advances In NCAA Tournament

DALLAS, TX – MARCH 15: Dejan Vasiljevic #1 of the Miami Hurricanes drives on Clayton Custer #13 of the Loyola Ramblers in the second half in the first round of the 2018 NCAA Men’s Basketball Tournament at American Airlines Center on March 15, 2018 in Dallas, Texas. (Photo by Tom Pennington/Getty Images)

Loyola was boosted by a pregame prayer from its team chaplain, 98-year-old Sister Jean Dolores Schmidt.

She’s held that post for more than two decades and, sitting courtside in her wheelchair, got hugs from the Ramblers when it was over.

“I said we wanted to get that big W up there, and we did,” she said in a postgame TV interview.

The sixth-seeded Hurricanes (22-10) led most of the second half in their third straight trip to the tournament, but couldn’t pull away in the final minutes and lost in the first round for the second straight year.

The buzzer sounded as Ingram’s shot went in, and the Ramblers celebrated wildly in front of the raucous fans wearing maroon-and-gold scarfs in the American Airlines Center sections across from their bench.

But officials put 0.3 seconds back on the clock, forcing Loyola to gather on the bench and postponing the celebration until after a desperation full-court pass bounced away harmlessly.

The game-winner came after coach Porter Moser initially signaled for a timeout after Walker’s missed free throw, but then motioned his players to bring the ball up the court.

932537386 Loyola Beats Miami 64 62, Advances In NCAA Tournament

in the first round of the 2018 NCAA Men’s Basketball Tournament at American Airlines Center on March 15, 2018 in Dallas, Texas.

Clayton Custer hit a tying 3 in the final 2 minutes and led Loyola with 14 points on 4-of-6 shooting from long range. Ingram was 3 of 8 from 3 and finished with 13.

Walker scored 12 points for the Hurricanes.

BIG PICTURE

Chicago: Most of Moser’s key players should be back next season, giving the Ramblers a chance to keep the NCAA appearances coming after such a long drought and such a big win.

Miami: The Hurricanes were back in Texas five years after winning twice in Austin to advance to the Sweet 16. They looked they’d have another shot at that until Ingram’s stunner.

UP NEXT

With Miami’s season over, Loyola advances to play third-seeded Tennessee in the second round.