/* Game fonts. Chinese UI text uses the device's native CJK font (PingFang SC /
 * Microsoft YaHei / Noto Sans CJK) via the font stack in Style.ts — we no longer
 * ship the 8MB NotoSansSC webfont. Only the small 'Anybody' face is bundled. */
@font-face {
    font-family: 'Anybody';
    font-weight: 500;
    font-style: normal;
    src: url('./assets/xiyou/font/Anybody-Medium.ttf') format('truetype');
    font-display: block;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    color: rgba(255, 255, 255, 0.87);
    /* Black fallback behind the canvas (brief pre-boot flash; RESIZE fills the screen). */
    background-color: #000;
    -webkit-user-select: none;
    user-select: none;
}

#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

#game-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Native Capacitor WebView only (html.native is set in main.ts). Lock the
 * document so the WebView never rubber-band overscrolls. A plain mobile browser
 * is intentionally left scrollable: locking it (overflow/height/touch-action)
 * stops iOS Safari from auto-collapsing its toolbar to fullscreen on rotation. */
html.native,
html.native body {
    height: 100%;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
}

html.native #app {
    height: 100%;
}

html.native #game-container {
    touch-action: none;
}
