import { mount } from 'svelte';
import './app.css';
import { setLocale } from './lib/i18n/index.svelte';
import Landing from './Landing.svelte';

// Entry for the standalone landing page (served at "/" by the gateway; the game SPA lives at
// /app/ and /telegram/). Mounts into the same #app node as the SPA's main.ts.

// The landing always starts in Russian — the primary audience and the language of the
// static SEO head (crawlers render with arbitrary navigator.language, e.g. Googlebot's
// en-US, so browser detection would make the indexed content nondeterministic). Set
// before mount so the very first paint is Russian; a saved 🌐 choice is applied in
// Landing's onMount once prefs load.
setLocale('ru');

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