Dr. Eggman kidnaps Princess Elise of Soleanna to harness the Flames of Disaster sealed within her. Sonic races to protect Elise with help from Tails and Knuckles. Meanwhile, Shadow and Rouge accidentally release the evil spirit Mephiles, who transports them to a post-apocalyptic future ravaged by the monster Iblis. Mephiles tricks time-displaced survivors Silver and Blaze into believing Sonic caused the catastrophe and sends them back to kill him. The full picture eventually surfaces: Mephiles and Iblis are the two sundered halves of Soleanna's god, Solaris. Mephiles kills Sonic to make Elise cry and release Iblis from within her, then merges with Iblis to become Solaris — who begins consuming all of time. The heroes use the Chaos Emeralds to revive Sonic. He, Shadow, and Silver transform and defeat Solaris. Sonic and Elise travel to the past and extinguish Solaris's flame, erasing the god from existence and resetting everything that followed — though both seem to carry a faint echo of what they lived through.