Spain: Are guaranteed to qualify with a win/draw vs Japan. Will win the group with a victory, or with a draw if Costa Rica draw/lose.
If Spain lose and Costa Rica win, Spain are out.
If Spain lose and Germany win:
- Japan win the group with six points, Spain and Germany both have four points; and
— Second place will be decided between Spain and Germany on group goal difference and goals scored, and Germany would have to overturn a deficit of eight goals.
— If records are identical, second is decided on fair play points.
— If that's level it's a random draw.