What is the likely evolutionary purpose behind the extreme development of the comet moth's tails?

Answer

They are highly pronounced features favored through sexual selection

The text suggests the tails are an extreme example of sexual selection, indicating they are highly advantageous for mate attraction despite the energy costs and risks involved.

What is the likely evolutionary purpose behind the extreme development of the comet moth's tails?
nameanimalinsectmothcomet