Hungary snatched a 100th-minute winner to beat Scotland 1-0 and put themselves in contention for a last-16 spot at Euro 2024 while condemning the Scots to yet another failure at a major tournament.
Kevin Csoboth's breakaway goal with the last kick off the match ensured Hungary finished third in Group A with three points while Scotland crashed out bottom with two, still to get through to the knockout phase of either the Euros or World Cup.
Hungary must wait to see whether they will qualify for the last-16 in one of the places reserved for the best four third-placed finishers.
Their progress now rests on results from other groups going their way over the next three days.