/* 알카노이드 게임 스타일 */
.game-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    min-height: 100vh;
    padding-bottom: calc(50px + 20px); /* 스크롤버튼 + 띠배너1번 + 띠배너여백 + 고정배너 + 여백 */
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-title {
    font-size: 42px;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 182, 193, 0.5);
}

.game-subtitle {
    font-size: 18px;
    color: #5A5A5A;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 게임 정보 */
.game-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-label {
    font-size: 14px;
    color: #5A5A5A;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.info-value {
    font-size: 24px;
    font-weight: 700;
    color: #2D2D2D;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* 게임 영역 */
.game-area {
    background: white;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    min-height: 600px;
}

#gameCanvas {
    display: block;
    background: #1a1a2e;
    border-radius: var(--radius-md);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 게임 오버레이 */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    z-index: 10;
}

.game-overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.overlay-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.overlay-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.final-score {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.final-score span {
    color: #FFD700;
    font-size: 32px;
}

.start-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.6);
}

.start-btn:active {
    transform: translateY(-1px);
}

/* 컨트롤 안내 */
.controls-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    color: #2D2D2D;
    font-size: 14px;
    border: 1px solid rgba(255, 182, 193, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.controls-info strong {
    color: #FF69B4;
    font-weight: 700;
}

/* 반응형 */
@media (max-width: 768px) {
    .game-container {
        padding: 40px 16px 80px;
        padding-bottom: calc(50px + 20px); /* 스크롤버튼 + 띠배너1번 + 띠배너여백 + 고정배너 + 여백 */
    }
    
    .game-title {
        font-size: 36px;
    }
    
    .game-subtitle {
        font-size: 16px;
    }
    
    .game-info {
        gap: 15px;
    }
    
    .info-item {
        padding: 10px 16px;
    }
    
    .info-value {
        font-size: 20px;
    }
    
    .game-area {
        padding: 10px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}
