is gambling assur, and where exactly is the line

the mishna in sanhedrin 3:3 disqualifies a dice player from being a witness or a judge, and the gemara in sanhedrin 24b explains it two ways, either because what he takes is an asmachta and close to theft, or because he is not busy with yishuvo shel olam. but that is...