OP I did something similar with another ' merge' style game. Never play merge games they are predatory as F and stronger regulation is needed in my book, because some of them function as 'egalitarian gambling' essentially.
I finally came to my senses when I spent frequent amounts of money trying to complete a special prize streak before a cut off time. Played like crazy every day. Still didn't make it in time to get the prize. Why? Because I still hadn't spent enough. If I had been willing to spend even MORE money, I'd have completed it and that's when I woke up and uninstalled it from my phone and I have avoided 'story' themed games ever since, since that's my particular poison, as I want to finish the story, find out what is happening next and get reeled in by the suspense etc. Of course there never is an 'ending'.
It's pure dopamine. I'm also ill and experience low dopamine as a result of my specific illness, so that dopamine also has a nice little distraction from pain.
My parent was dying too during this time from a nasty disease. After he died I still got caught again, this time by online shopping on second hand sites.
Came to my senses about it all now, (hopefully!!!) I don't make purchases on games, I only play a few that are not as 'pushy'
I've avoided all the websites I used to buy tat I didn't need. It was grief spending. The funny thing is I always rated myself as not being prone to any gambling, never go casinos or put money on cards or slots machines.
It's grief OP. I know you feel bad, but honestly just chalk it up to experience, there's no reason for you to feel ashamed about it. You've realised it and now are talking about it on MN where you risked getting roasted, so you're brave, you want to get past it and really just had a temporary blip, due to completely understandable reasons. Now you've started regaining your balance you've realised. It's absolutely understandable. Don't feel ashamed, acknowledge it and move on. Sorry for your loss💐