Inverness CT 4-3 Motherwell
Inverness kept up their European hopes with a dramatic defeat of Motherwell.
Billy McKay completed a hat-trick for the hosts to finally close out a victory after 'Well had cancelled out a three-goal Inverness lead.
Andrew Shinnie had scored in between two McKay efforts but James McFadden stemmed the tide for 'Well.
Michael Higdon's penalty and McFadden's second brought the visitors level but the Steelmen had Henrik Ojamaa dismissed before McKay's winner.
Terry Butcher's side stay one point clear of St Johnstone in the race for the third place that will guarantee a Europa League qualifying berth. Motherwell still need one more point to confirm second in the Scottish Premier League.
If there was an award for game of the season along with those for manager and players, this seven-goal crowd-pleaser in Inverness would be a prime candidate.
Josh Meekings, playing down the right in Inverness's rearranged defence, set up McKay to slot home the opener from close range.
Caley Thistle captain Richie Foran hit the post in advance of McKay setting up Shinnie for a left-footed 12-yard shot into the net.
Within two minutes, the compliment was repaid as Shinnie supplied McKay for the striker's second of the game.
However, Ojamaa found McFadden just outside the Inverness box and the forward struck to start a comeback.
And after the interval Ojamaa was tripped by Chris Hogg, who was back in the Inverness line-up for the first time in 18 months following cruciate ligament surgery. Higdon further narrowed the gap with the resulting penalty.
Inverness shunned a chance to restore a two-goal advantage when McKay's spot-kick was saved by Darren Randolph after Nick Ross had been upended.
And it looked like a costly mistake as McFadden soon levelled the score off the left post.
Nicky Law then had a good chance to give 'Well the lead but the midfielder put his effort over the bar.
Ojamaa's foul on Shinnie attracted a second yellow card, the Estonian having earlier been booked for diving.
Motherwell, down to 10 men, then felt the full weight of the Inverness attack.
And with seven minutes left McKay grabbed the winner and his hat-trick when he stabbed a rebound from a Randolph save beyond the Motherwell keeper.