Pretty cool! The idea is nice and I think with some polish it could make for a decent game. Some quality of life features like having the fire not reject the dice but just exclude them etc, being able to directly swap one die for another, having the music not restart each level entry, something to spend the treasure on or some unlockables for collecting it etc. A little bit of narrative to build the story/world a bit and I could see it working out well. Nice job!
I should note though that I couldn't work out how to solve level 10. I can't figure it out or am missing something haha.