It took until virtually the last kick after 96 minutes of frustration, but Neymar and Brazil have lift-off at the World Cup.
For most of a sunny afternoon in Saint Petersburg, the world's most expensive player battled against his own lack of match sharpness, an inspired Keylor Navas in the Costa Rica goal and referee Bjorn Kuipers.
However, once Philippe Coutinho broke the deadlock in stoppage time, Brazil's swagger returned.
Neymar's late goal puts him past Romario in sole possession of 3rd all-time on Brazil's top scorers list with 56 goals.— FOX Soccer (@FOXSoccer) June 22, 2018
He now only trails Pelé (77) and Ronaldo (62). 🇧🇷 pic.twitter.com/RaeowO2Oom
The relief of sealing Brazil's first win in Russia was all too visible as Neymar broke down in tears moments after tapping home Douglas Costa's cross for a 2-0 victory.
Still haunted by demons after losing 7-1 in the semi-finals at their own World Cup four years ago -- a game Neymar missed -- this threatened to turn into another World Cup nightmare for the five-time winners.
Battered and bruised by Switzerland in a 1-1 draw on Sunday, Neymar's appeals for more protection did not impress Kuipers, who consistently told the Paris Saint-Germain star to get to his feet instead of appealing for free-kicks.
Even when the experienced official did give Neymar the benefit of the doubt, technology did not. A penalty originally awarded by the referee was rescinded after Kuipers watched a replay of Neymar's clash with Giancarlo Gonzalez 15 minutes from time.
Moments later, Neymar was booked for petulantly punching the ball in front of Kuipers as Costa Rica players sprawled out on the turf time wasting.
Neymar's temper threatened to boil over as his frustrations grew at Brazil's lack of ability to finish as much as Costa Rica's resistance.
Coutinho and Neymar score in stoppage time to give Brazil the win! pic.twitter.com/rKJs2qa9He— FOX Soccer (@FOXSoccer) June 22, 2018
Navas has had to cope with constant speculation that the man between the posts at the other end of the field, Alisson Becker of Roma, is set to take his place at Real Madrid.
However, the 26-year-old showed why he is a three-time Champions League winner with a string of stunning saves to deny Neymar and Coutinho.
Even when Navas was beaten, Neymar curled inches wide as he bore down on goal midway through the second half.
🇧🇷 Brazil's all-time leading goal-scorers:— Team FA 🏴 (@TeamFA) June 22, 2018
Pele - 77
Ronaldo - 62
NEYMAR - 56
Romario - 55
He's 26 years old. pic.twitter.com/yKwjOmqB7N
As he hid his face inside his blue Brazil shirt, he had the look of a man who wondered if he had squandered his best opportunity.
Thankfully for him, his time did come when Costa presented Neymar with an open goal deep into stoppage time.
How much an emotional victory proves to be a launch pad rather than a false dawn remains to be seen as the pre-tournament favourites made heavy work of a Costa Rica side that have now lost their past four games.
Much will depend on how quickly Neymar gets back up to speed.
This was just his fourth appearance since breaking a bone in his foot against Marseille in February and only the second time he has completed the full 90 minutes.
Brazil coach Tite has admitted Neymar could need five games under his belt to get back to his best.
Neymar has now scored 56 goals for Brazil, making him the outright third all-time top scorer for his country.— Squawka Football (@Squawka) June 22, 2018
Only Pelé (77) and Ronaldo (62) have scored more. 🇧🇷 pic.twitter.com/MI8FfA9DEh
There remains the risk the South Americans will have boarded their plane home by the time he peaks again.
However, Brazil now look likely to reach the knockout stages in Russia. They are on four points with Serbia to come in their final Group E outing next week.
They have bought themselves, and Neymar, precious time.