Ooh nice! I didn't know the closing style tag could be omitted.
Yeah, browsers close tags for you. HTML parsing is really permissive. I have only recently learned about this when golfing my own game for the jam!
Unfortunately this does not work with the <script> tag.