A party that has defined itself in opposition to the EU will be left marooned by an ever-more pro-European electorate.