Spain staggered through to the World Cup last 16 on Thursday despite a 2-1 defeat by Japan, who remarkably won Group E on a roller-coaster night when four-time champions Germany were eliminated. 206