Luka Modric left the World Cup stage as Croatia beat Morocco 2-1 in the third-place play-off on December 17.