/* Korean Hangul fallback under existing family names (i18n).
   The canvas reads `font-family: "VT323"` / `"JetBrains Mono"` / `"Courier New"`
   throughout 13_render.js. CSS @font-face rules with matching family names are
   merged by the browser font-matching algorithm via `unicode-range`: when a
   glyph in the Hangul range (U+1100–11FF Jamo, U+3130–318F compatibility Jamo,
   U+AC00–D7A3 precomposed syllables) is requested under any of these family
   names, the browser picks the Korean source below. Latin / CJK-ext glyphs
   are unaffected — they still render via the original VT323 / JetBrains Mono /
   system Courier New. This avoids editing ~150 inline ctx.font strings.

   Korean source: Google Fonts Noto Sans KR (loaded via index.html). Original
   plan called for Galmuri11 + Pretendard via jsdelivr CDN, but those URLs
   404'd. Noto Sans KR is a reliable always-available fallback. Pixel HUD
   aesthetic for Korean glyphs is lost; Korean menu / tutorial / completion
   text render in Noto Sans KR's clean sans-serif — readable and consistent.
   Swap-in candidates if a stable Galmuri11 CDN appears: prepend the url()
   line to each src below before the local('Noto Sans KR') line. */
@font-face {
    font-family: 'VT323';
    src: local('Galmuri11'), local('DungGeunMo'), local('Noto Sans KR');
    unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
    font-display: swap;
}
@font-face {
    font-family: 'Courier New';
    src: local('Galmuri11'), local('DungGeunMo'), local('Noto Sans KR');
    unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: local('Pretendard'), local('Noto Sans KR');
    unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
    font-display: swap;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a0f;
    cursor: default;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    min-width: 800px;
    min-height: 600px;
}

#game-canvas {
    display: block;
}
