Why a website can work with no connection
The mechanism is a service worker: a small script a site can register, which the browser keeps and runs on that site's behalf — even when no tab is open. It sits between the page and the network. When you ask for a page, the service worker can answer from a copy stored on your device instead of going out to the internet.
The site has to choose which files to save. Some save files as you visit; others download an offline pack in advance. Those files use data and device storage. Follow the site's instructions, and check that the games you want are available before you disconnect.
Installing gives a supported site an icon and its own app window. Offline support can also work in a normal browser tab. Neither installation nor a service worker guarantees that every page or game has been saved.