/* main.css - 全局样式（540x960 竖屏，支持移动端） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Courier New', monospace;
    /* 防止移动端下拉刷新和弹性滚动 */
    overscroll-behavior: none;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    /* safe area 适配刘海屏 */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: #050510;
}

#game-canvas {
    max-width: 100%;
    max-height: 100%;
    /* 保持 9:16 比例 */
    aspect-ratio: 9 / 16;
    image-rendering: pixelated;
    cursor: default;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(0, 204, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 204, 255, 0.1),
                inset 0 0 30px rgba(0, 204, 255, 0.05);
}

::selection {
    background: transparent;
}
