body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 95vw; /* 화면 너비의 95% 사용 */
    height: auto;
    aspect-ratio: 4 / 3; /* 800:600 비율 유지 */
    max-width: 800px;
    max-height: 95vh; /* 화면 높이를 넘지 않도록 설정 */
    box-shadow: 0 0 20px rgba(0,255,0,0.5);
    cursor: none;
    touch-action: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

/* 가로가 더 긴 화면(데스크탑 등)에서의 대응 */
@media (min-aspect-ratio: 4/3) {
    #game-container {
        width: auto;
        height: 95vh;
    }
}

canvas {
    background-color: #333;
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000;
}

#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
}

#start-btn {
    padding: 15px 40px;
    font-size: 20px;
    cursor: pointer;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background 0.3s;
}

#start-btn:hover {
    background: #218838;
}
