* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    touch-action: none;
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    padding: 10px;
}

#gameCanvas {
    background-color: #000000;
    border: 2px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .game-container {
        padding: 5px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
        max-width: 100vw;
    }
}

/* 横屏优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .game-container {
        padding: 5px;
    }
    
    #gameCanvas {
        height: 90vh;
        width: auto;
    }
}
