How Does Ryuga Die?

How Does Ryuga Die? Yet Ryuga did not despair, and with the remaining power of the Fragment of the Star he contained, he gave it to Kenta to inherit. This caused Ryuga to seemingly die in an act of self sacrifice to give hope to destroy Nemesis. His death came to a shock to many