Beaten by Costa Rica in the first group game and then winning against Sweden in the second, Scotland had to get a win against Brazil to be guaranteed a place in the knockout stages. They were tantalisingly close, with the game decided by an 82nd minute strike by Muller and Scotland going out.