The hawk-dove game in a sexually reproducing species explains a colourful polymorphism of an endangered bird