Restaurants, bars are part of number first one. Coffee shops to me close early. Never seen one open at 10pm+
The library having games and such would be nice. They likely would run into the issue that thoae unfortunate would turn up and try to stay all night every time to get out of the cold/rain/heat.
Bars usually manage to bounce them without issue due to them not being paying customers. Getting bounced by a librarian does sound kind of cool though.
Cafes near me don't open late a lot of the time. They close at about 5pm. So if you want some place to hang out after work? You have no choice other than a bar.
In the UK they defunded youth centres. Whatever shady shit we used to get up to at those, it was in a safe-ish place which at least one responsible person not far away in the worst case. Our behaviour/activities outside of those places once they were gone, as bored youths in a town of middle age to old people, was much worse.