Lewis Vaughan was the penalty-kicks hero as Raith Rovers prevailed against Partick Thistle to reach the Premiership play-off final and give themselves a dream shot at promotion to the top-flight.
A Ross Matthews header for Raith was sandwiched between Blair Alston’s double for Thistle in the first-half.
But neither side could find another goal in a tense second period, meaning it was on to half an hour of extra-time.
With no further scoring, the sides had to be separated by spot-kicks.
Scott Brown missed for Raith and Jack McMillan and Ricco Diack were errant for Partick, leaving the dependable Vaughan to drill in the decisive kick to spark a jubilant pitch invasion.
The Kirkcaldy men now take their bid to reach the top-flight on to the final against either St Johnstone or Ross County next week.
Defender misses out
Raith boss Ian Murray had plenty of options on the bench for the first-leg at Firhill.
But he resisted the temptation to turn to them for the rematch in Kirkcaldy.
Josh Mullin, Dylan Easton and Zak Rudden had been struggling with injuries and were still short of enough fitness for 90 minutes.
It meant there was just one enforced change from Tuesday night.
Experienced stopper Keith Watson’s hamstring problem precluded his inclusion and Dylan Corr was drafted in for a start.
The former Celtic youngster has himself just shaken off a dislocated shoulder from the Championship finale against Arbroath but tested it out successfully in the final 15 minutes of the opening clash.
Frenetic start
With so much at stake and Raith’s advantage so slender, it was always going to be frantic right from kick-off.
Rovers forced two corners in quick succession inside the first two minutes before there was a moment of concern for the home side.
A quick Thistle break saw them threaten at the other end but Shaun Byrne timed his tackle on Scott Robinson to perfection to thwart the danger.
It was end-to-end thrill-a-minute stuff and Scott Brown, scorer of Raith’s first goal at Firhill, saw a shot from a low corner blocked.
Alston – the Jags’ hero in the first-leg – then tried his luck from fully 40 yards as the ambitious shot whistled past.
Set-piece breakthrough and Raith reply
With 15 minutes gone, Thistle got the breakthrough they craved to draw level in the tie.
Euan Murray blocked a Scott Robinson shot and referee Steven McLean harshly awarded a free-kick – and even more harshly dished out a yellow card.
Alston took full advantage dipping a low shot into the corner of the net as Robinson vacated a position beside the wall that appeared to be blocking Kevin Dabrowski’s view.
Raith needed a quick riposte – and they got it in the 30th minute.
The pressure built and built as the home side kept possession around the Thistle box, and eventually found the opening they wanted.
Liam Dick’s superbly floated cross from the left picked out the late run of Matthews and the auxiliary full-back nodded precisely back across keeper David Mitchell into the net.
Rollercoaster takes another twist
Corr and Murray had produced two blocks in quick succession to save Rovers’ aggregate lead.
But Thistle restored parity in the tie by taking the lead on the night for a second time in first-half injury-time.
Dan O’Reilly, who spent the first half of the season at Raith, chipped in a pinpoint pass that Graham flicked on for Robinson.
The striker touched the ball into the path of the breaking Alston, whose initial shot was repelled by Dabrowski.
But, with Dabrowski still grounded, the midfielder had the simplest of tasks to knock the ricochet in from close range.
Second-half action
The goal had clearly lifted Thistle and they came out the blocks sharper after the break.
Stanton drilled over when he might have done better for Rovers before a key intervention from skipper Brown in the 57th minute.
An Aidan Fitzpatrick corner caused problems and, when O’Reilly drilled in a shot from just inside the box, Brown popped up on the line to save the day.
At the other end 11 minutes later, the midfielder whistled a drive just beyond the top corner as Raith enjoyed a better spell.
A Jack Hamilton header and a Stanton shot then caused panic in the Thistle box but were blocked bravely by the Thistle defence.
Substitute Jack Hamilton then dragged an effort wide as the Stark’s Park men sought in vain a winner.
And Graham should probably have got it for Partick with virtually the last kick of the ball as he fired over the bar under pressure from Murray.
Extra-time required
Thistle substitute Lewis Neilson almost made an instant impact with a run past two Raith tacklers and a shot that bounced just past.
Moments later, Murray’s header from a Rovers corner was repelled and then Vaughan got in the way of Stanton’s follow-up shot.
Thistle, in their third play-off match in the space of ten days, kicked off the second period of extra-time seizing the upper hand.
With just three minutes remaining, Harry Milne’s fizzing drive was heading for the bottom corner before Dabrowski tipped it round the post to the tie into a penalty shoot-out.
Star Man: Scott Brown
The skipper started in midfield and drove the team on with his non-stop energy.
And when asked to move back into defence late on in the 90 minutes, he was a determined figure for the Stark’s Park men to hold Thistle at bay.
A missed penalty was cruel on the captain.
Player Ratings
Raith Rovers (4-2-3-1): Dabrowski 7; Matthews 7, Corr 7 (Mullin 82 4 (Smith 113 3)), Murray 7, Dick 7; S Brown 8, Byrne 8 (Hamilton 69 4); Connolly 7 (Easton 62 4), Stanton 8, Turner 7; Vaughan 7. Subs not used: McNeil, J Brown, Smith, Mullin, McGill, Rudden. Booked: Murray, Corr, Connolly, Matthews.
Referee: Steven McLean.
Attendance: 6,070.