It looks like @OP is too eager to recover losses which results in getting more losses.
That will not give good results, especially if we intend to recover losses and even if we think about going all-in for all money to recover losses, that is also difficult to achieve.
But @OP managed to defuse the tension by reducing the number of bets in each round but it would be better if at that point, @OP could take a break and walk out of the casino to rest and come back a few hours later or the next day.
And @OP is lucky to recover all his losses because it rarely happens to us.
If that happened to me, I would stop to rest and not continue playing, as I have done before.
then yes , OP had been into gambling for such a time and now with realization on how to manage His losses, meaning that he had been into many things before and now learn His lessons.
actually this is what most gamblers must do but if we can manage to accept the fact that it is not easy and need perseverance and full dedication to succeed .
I think gambling requires a certain amount of luck because all of the games in the casino had a house edge that gives the casino owners a slight advantage over players, it is still risky betting a smaller amount of money while trying to recover losses since the house edge for the game is still the same. Over the long run, I think some players might still lose all of their remaining money if they got unlucky while trying to recover their losses.
and discipline mate , because no matter how big or small the luck if you cannot control yourself from playing then everything will gone in after the luck.