Spain got its World Cup off to a pulsating start with a record 7-0 rout of Costa Rica as a Ferran Torres brace and a sumptuous strike from Gavi sent the team past the 100-goal mark in soccer's showpiece event on Wednesday.

The European giant put its stamp on a Group E stunned by Japan's 2-1 victory over Germany with a relentless attack against a shambolic Costa Rican side that gave Luis Enrique's team time and space to carve out chance after chance.

It was a night of records at Doha's iconic Al Thumama Stadium for a Spanish side that struggled at World Cups since winning the title in 2010, with the 18-year-old Gavi becoming the country's youngest World Cup player, and the youngest to score since Brazil great Pele in 1958.