-snip-
Can someone please explain to me what the f**k is going on?
Its called "malleability" and its an attack currently run on the network. Reset the blockchain[1], your TX has probably changed which might have resulted in issues with the site you gambled with.
How can transactions which are confirmed disappear like that? They were very small bets so it doesn't affects me that much but what if they were bigger bets and this thing happens, what if someone buys bitcoins and pays the other person after seeing the confirmations and the transactions vanish later??
They do not disappear they just changed their ID, it confuses wallets and services.
[1] electrum has a function for in under tool IIRC.
I see, so it's another attack, I had to google it to understand what it is and apparently attackers can mess with the transactions, this was in the news 2 days back but I missed it:
The attackers change the transactions without any knowledge of the private keys involved.
The change does not affect the source, destination, or amounts of the funds, so it isn’t obvious when it happens.
source: Bitcoin Under Attack: Coinkite Reports Malleability Attack & Urges CautionBut one of my transaction did disappear, I made 2 txs last night, one got it's ID changed and was later broadcasted with different ID but the event was over by then and the 2nd one it was broadcasted and confirmed when I went to bed and now there's no trace of it in my wallet or on any block explorer, as if I didn't made that tx, which is really weird and if that hadn't happened, I would have won a little something.
I will see if I can reset the blockchain in Electrum, I haven't ever done that before. But is there a way to prevent this from happening?? Or after how many confirmations the attackers can't do this? So I'll put in my bets much earlier and give them time to get confirmed.
Thanks shorena for clearing my doubts, you're always so helpful.

Edit: Can't find anyway to reset the blockchain, I guess when you turn on the Electrum and it syncs, it redownloads the whole thing from the node it gets connected to.