/* 기본 리셋 및 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
    text-align: center;
}

/* 헤더 스타일 */
header {
    margin-bottom: 40px;
}

.title {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
}

/* 게임 컨테이너 */
.games-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* 게임 카드 스타일 */
.game-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.game-card:hover::before,
.game-card:active::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.game-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* 게임 아이콘 */
.game-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.game-card:hover .game-icon {
    transform: rotate(10deg) scale(1.1);
}

/* 게임 이름 */
.game-name {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 플레이 버튼 */
.play-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.game-card:hover .play-button {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 푸터 */
footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

footer p {
    color: #888;
    font-size: 0.9rem;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .game-card {
        padding: 25px 15px;
        min-height: 160px;
    }

    .game-icon {
        font-size: 3.5rem;
        width: 80px;
        height: 80px;
    }

    .game-name {
        font-size: 1.5rem;
    }

    .play-button {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .container {
        padding: 30px 15px;
        border-radius: 20px;
    }
}

/* 터치 디바이스를 위한 추가 스타일 */
@media (hover: none) and (pointer: coarse) {
    .game-card:active {
        transform: scale(0.95);
        background: linear-gradient(135deg, #e0e7ff 0%, #a5b4fc 100%);
    }
}

/* 작은 화면 대응 */
@media (max-width: 360px) {
    .title {
        font-size: 1.7rem;
    }

    .game-card {
        padding: 20px 12px;
        min-height: 140px;
    }

    .game-icon {
        font-size: 3rem;
        width: 70px;
        height: 70px;
    }
}

