tokens: When a supergiant star has converted elements in its core to iron , the core collapses to produce a supernova and the star is destroyed , leaving behind a vast gaseous cloud and a small , dense remnant .