Danish fans were already celebrating a place among Europe’s last eight. Then Erling Haaland stepped up. The Manchester City striker converted a stoppage-time penalty on Tuesday night to give Norway a 3-2 win in the Group A4 decider, wiping out a two-goal deficit and taking the last place in the last eight at their neighbours’ expense.

The hosts only needed a point, and the opening quarter of an hour suggested a comfortable evening. Rasmus Højlund tapped in from close range after 11 minutes, extending his hot scoring streak for his country, and captain Pierre-Emile Højbjerg headed in a second three minutes later.

Norway clawed their way back before the interval. Martin Ødegaard pounced on an error by the Danish goalkeeper and set up Haaland, who rolled the ball into an empty net. The Arsenal captain then levelled himself with seven minutes left, slamming home a rebound after Andreas Schjelderup had struck the post.

The twist arrived with the clock well past 90 minutes. Joachim Andersen handled a cross inside the area, and Turkish referee Halil Umut Meler went to the pitchside monitor at the video assistant’s request before pointing to the spot. Haaland swept his left-footed shot into the bottom corner for his sixth goal of the campaign, then picked up a yellow card for his wild celebration in front of the travelling fans.

Norway finish second behind holders Portugal, edging Denmark on goal difference. Portugal signed off with a 3-2 victory in Cardiff despite Pedro Neto’s late sending-off for two bookings. Haaland’s form remains remarkable: he now has 20 goals from as many games for Manchester City and Norway combined, and the quarter-final draw now has its full set of eight teams.