For a brief moment, Raith Rovers thought they had it won.
The Kirkcaldy club's under-20's team had seemingly triumphed atop the Scottish Development League East, having beaten nearest rivals Berwick Rangers 2-0 on Monday night, and thus began their exuberant dressing-room celebrations.
The partying included the now-obligatory celebration pic, published on social media with the simple caption: "Champions!"
Then, amid the hullaballoo, a sage staffer double-checked the league table – and discovered the awful truth.
Raith had not, in fact, won the league.
The glory tweet was swiftly deleted and the team apologised, sheepishly explaining their coach's "nightmare with the maths".
Massive Apologies. @craig8easton's had a nightmare with the maths. Forfar can still draw level on points. So the champagne's back on ice ��
— Raith Rovers FC U20s (@RRFCdev) April 3, 2017
"Champagne's back on ice," they added.
Raith are still in a commanding position at the top of the league, currently seven points clear with only one fixture to play themselves.
However, though second-placed Berwick – seven points adrift with only two games to play – cannot catch them, third-placed Forfar are still able to match Raith's points total if they win all three of their remaining matches.
The unlikely reversal would also require a not-impossible goal-difference swing of 11, with Forfar demonstrating their intent to keep chasing the league leaders with a forceful 5-1 win at home to Alloa last Tuesday.
Will the cock-ups continue for Raith? Have they lost the psychological edge? All they need is a point at home to Livingston in their final match and the world will forget about their premature celebrations.
This is not the first time a football team has got their maths wrong; Manchester City famously spent several precious minutes of their final match of the 1995-96 season thinking that their 2-2 scoreline against Liverpool would be enough to save them from Premier League relegation. By the time they realised the truth, it was too late – they were down.