    /* 커스텀 CSS: 게임 보드 스타일 */
    @import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

    /* 캔버스 및 컨트롤 영역에 touch-action: none 적용 */
    #gameCanvas, .control-panel, #dpad-container {
        touch-action: none;
    }

    .game-container {
        margin-left: auto;
        margin-right: auto;
            background: #2c3e50;
            border: 4px solid #3f8fef;
        padding: 30px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        width: 100%;
        max-width: 850px;
        text-align: center;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }

    /* 메인 게임 영역: 데스크탑 가로 배열 (Flex Row) */
    .main-game-area {
        display: flex;
        flex-direction: row; 
        align-items: flex-start; /* 상단 정렬 */
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    #gameCanvas {
        border: 4px solid #4a5568; 
        background-color: #2d3748; 
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
    }

    /* --- D-Pad (상하좌우) 영역 스타일 --- */
    #dpad-container {
        width: 240px; /* 데스크탑 전용 크기 */
        height: 240px;
        position: relative; 
        flex-shrink: 0; 
        margin: 20;
        border-radius: 10px;
        background-color: #3b82f630; 
    }

    .dpad-button {
        position: absolute; 
        width: 80px; /* 데스크탑 전용 크기 */
        height: 80px;
        background-color: #3b82f6; 
        color: white;
        border: 2px solid #1e40af;
        border-radius: 8px;
        font-size: 55px; /* 데스크탑 전용 크기 */
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        transition: background-color 0.1s;
    }

    .dpad-button:active {
        background-color: #1e40af;
        transform: scale(0.95);
        box-shadow: none;
    }

    /* 상하좌우 버튼 위치 지정 */
    #btnDpadUp { top: 0; left: 50%; transform: translateX(-50%); }
    #btnDpadDown { bottom: 0; left: 50%; transform: translateX(-50%); }
    #btnDpadLeft { left: 0; top: 50%; transform: translateY(-50%); }
    #btnDpadRight { right: 0; top: 50%; transform: translateY(-50%); }


    /* --- 컨트롤 패널 (즉시 내리기) 스타일 --- */
    .control-panel {
        display: flex;
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        width: 170px; /* 데스크탑 전용 크기 */
        flex-shrink: 0; 
    }
    
    .control-panel button {
        height: 80px; /* 데스크탑 전용 크기 */
        width: 100%; 
        font-size: 2.2em; /* 데스크탑 전용 크기 */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .control-button {
        padding: 10px 15px;
        cursor: pointer;
        border: 1px solid #333;
        border-radius: 5px;
        background-color: #ef4444; 
        transition: background-color 0.1s;
        font-weight: bold;
        color: white;
    }
    
    #btnDown {
        flex-direction: column; 
        line-height: 1.1;
    }

    .control-button:active {
        transform: translateY(2px);
        border: 2px solid #38a169;
    }

    /* --- UI 요소 스타일 --- */
    .score-box {
        border-radius: 10px;
        border: 2px solid #4a5568;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }
    
    .next-piece-container {
        border: 2px solid #4a5568;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }
    
    /* 사이드 패널 (스코어, D-Pad, Next Block, Hard Drop) */
    .desktop-side-panel {
        display: flex;
        flex-direction: column;
        gap: 200px;
        align-items: center;
    }