/* Prefer bundled CJK face so Linux/WSL still renders Chinese (not tofu □). */
@font-face {
    font-family: 'FZDaHei-B02S';
    src: url('/fonts/fzdh.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.87);
    /* Match original index.html pure black letterbox */
    background-color: #000000;
    font-family: "FZDaHei-B02S", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

/*
 * Full-viewport host. Do NOT flex-center here — Phaser ScaleManager
 * (FIT + CENTER_BOTH) owns canvas position via margin auto.
 */
#app,
#game-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000000;
}

/*
 * Original Cocos canvas scales with bilinear filtering (smooth).
 * Never force pixelated — this game is painted HD art, not pixel art.
 */
#game-container canvas {
    image-rendering: auto;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
}
