Wales' hopes of qualifying for Euro 2020 suffered a blow as Mate Patkai's 80th-minute strike consigned them to a 1-0 defeat to Hungary at the Groupama Arena in Budapest.
Three days after going down to defeat in Osijek against Croatia, Wales suffered a second away loss, leaving them with no margin for error from their remaining games, without the guaranteed safety net of a Nations League play-off place.
Gareth Bale was guilty of missing a glorious chance at 0-0 as he scuffed his close-range shot from Tom Lawrence's cross - and Wales were made to pay as Patkai collected the loose ball following good hold-up play from Adam Szalai to lash in the winner via the head of Ben Davies.
The Hungary fans and players celebrated as though they had already qualified at the full-time whistle, conducting an impromptu rendition of the national anthem in front of their ultras. There is now a good chance they will be at the party they are partially hosting next summer after moving six points clear of their opponents in Group E.
Hungary are top on nine points - three ahead of Slovakia and Croatia in second and third respectively, leaving Wales with plenty of ground to make up. Ryan Giggs' side face Azerbaijan in Cardiff next in September.