Just so you know, I made my game (I also work with Kotlin) function in a browser using TeaVM or whatever it was called, it's going to be a thing in the next liftoff release.
Thank you very much for the info. TeaVM is also stated in the wiki but I have not found any working example yet. I will have a look.