And breathe.
Croatia took the lead against the run of play and in unusual fashion when keeper Unai Simón misjudged Pedri's long-distance back pass. Luis Enrique's side were level before half-time, though, Pablo Sarabia firing in the rebound after Dominik Livaković had parried José Gayà's effort.
When César Azpilicueta headed in his first international goal and Ferran Torres finished low past Livaković to double Spain's lead with just 13 minutes left, the game looked to be up. But that was barely the start to this round of 16 epic.
Substitute Mislav Oršić scrambled one back for Croatia but it was not until added time that the turnaround was complete. Another replacement, Mario Pašalić met Oršić's pinpoint cross from the left with an emphatic header. Cue mayhem.
It would have been 4-3 Croatia just six minutes into extra time had Unai Simón not somehow kept out Andrej Kramarić's effort – a moment of redemption that proved a turning point.
Álvaro Morata was next to turn his fortunes round when, with 100 minutes on the clock, he controlled Dani Olmo's cross and rifled into the net. From another Olmo centre, his fellow subtitute Mikel Oyarzabal restored the two-goal Spanish cushion which had felt a lifetime ago.