/* --- 미니게임 페이지 전용 스타일 --- */

.minigame-main {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background-color: var(--color-dark-brown-background);
}

.minigame-container {
    width: 100%;
    max-width: 1000px;
    background-color: #FFF;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px #2C1D1D;  
    border: 3px solid var(--color-red-christmas); /* 빨간색 실선 */
    text-align: center;
}

.minigame-container h1 {
    font-family: var(--font-bangers); 
    color: var(--color-black-text);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--color-red-christmas);
    margin-bottom: 30px;
    font-style: italic;
}

/* 1. 게임 선택 카드 */
.game-selection {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    flex: 1;
    background-color: #f7f7f7;
    color: var(--color-black-text);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    min-width: 250px;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.game-card h2 {
    color: var(--color-button-dark-red);
    border-bottom: 2px dashed #ccc;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
}

/* 2. 게임 실행 영역 */
.game-area {
    background-color: var(--color-black-text); 
    height: 500px; /* 게임 캔버스 크기 */
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white-snow);
    font-size: 1.5em;
    border: 5px solid var(--color-red-christmas); /* 빨간색 실선 */
}

/* --- minigame.css 추가: 눈송이 터뜨리기 게임의 컨테이너를 위한 스타일 --- */

/* 게임 영역 크기 및 위치 조정을 위해 game-area 내부의 flex 속성 변경 */
.game-area {
    background-color: var(--color-black-text); 
    height: 500px;
    border-radius: 8px;
    /* 기존: display: flex, justify-content: center, align-items: center */
    flex-direction: column; /* 컨트롤과 캔버스가 수직으로 배치되도록 변경 */
    padding: 20px;
    border: 5px dashed var(--color-gold-accent);
}

/* 눈송이 터뜨리기 게임의 컨테이너 */
#snowClickerContainer {
    /* js에서 인라인 스타일로 설정되지만, 기본 배경을 위해 추가 */
    background-color: #2c3e50; 
}

/* Falling Gifts / Santa Dodge의 캔버스 컨테이너를 위해 다시 중앙 정렬 */
#game-controls {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}