It seemed like everything was fine... but the first mistake was mine, buying the item for 121 instead of the Guild of Magic for wasps. As a result, I couldn't replenish my mana. I entered the treasure on turn 122 with only 12 mana. The second mistake was that I reached the opponent's castle, saw him, panicked, and used Teleport. And then, in the last seconds, I decided to go and get the hat +6 to all stats... but I didn't have enough mana... so they piled on me.
Although, I could have just stayed in the castle, replenished my mana, and won. But panic took over)))
Thanks to my opponent for the exciting game!