The draw maintained Spain's position on top of the group, before it faces Japan, with Germany needing to beat Costa Rica to have any hope of advancing.