I am glad you enjoyed the game even without knowing how it works :D
In short: the phoenix has lives and fire. Fire is depleted each attack and when it runs out phoenix dies and get resurrected(-1 life and fire back to full).
Thank you for playing :D