import { mount } from 'svelte';
import './app.css';
import App from './App.svelte';

// Pin the document for the game SPA (see app.css `html.app-shell`) so iOS/WKWebView — notably
// the Telegram Mini App — cannot rubber-band the whole page on a vertical drag. The standalone
// landing page (landing.ts) is a normal scrolling document and deliberately omits this class.
document.documentElement.classList.add('app-shell');

export default mount(App, { target: document.getElementById('app')! });
