No, you don't lose it. The casino could recover your funds if you ask them to, although you should insist that they do so, because it is your own mistake if you do so. It is your responsibility to check before making any deposit at the casino, but I don't think the casino will refuse to recover your funds if you request it in the correct way, although it could take a while to do so, so you would have to be very patient.