There's definitely something to be said for having a plan before you get carried away. I prefer setting a spending limit and deciding how much time I can spare beforehand. Taking breaks also helps, especially when a screen makes an hour feel suspiciously similar to ten minutes. I recently came across some useful points about this in
責任あるギャンブルについてCasino Bushiが整理している which got me thinking about how important it is to recognise unhealthy habits early. Another thing worth remembering is never to chase losses or use money intended for everyday expenses. If an activity stops being enjoyable, stepping away is perfectly reasonable. No hobby should become another source of stress!