* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: manipulation;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
    /* bgHtmlBottom 배경 이미지는 JavaScript에서 설정되며 하단에 고정됩니다 */
}

#game-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
}

canvas {
    display: block;
}

#orientation-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

#orientation-message img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: rotate 1.5s ease-in-out infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-90deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

#pwa-install-hint {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9998;
    display: none;
    text-align: center;
    max-width: 90%;
}

#pwa-install-hint button {
    background: #4caf50;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
}

.game-container {
    position: relative;
    width: 750px;
    height: 160px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    padding: 0 10px;
}


/* Additional control panel styles are in ui.js createHTMLControlPanel function */


/* Control panel area transparency */

.control-display-area,
.control-panel-container {
    background: transparent !important;
    background-color: transparent !important;
}


/* 추가적인 투명도 설정 */

.game-container {
    background: transparent !important;
    background-color: transparent !important;
}


/* Control panel 관련 요소들의 투명도 확보 */

.control-panel,
.control-panel-background {
    background: transparent !important;
    background-color: transparent !important;
}