* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* 시작 페이지 스타일 */
.start-page {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-page .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.start-page .title {
    font-size: 4rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    margin-bottom: 20px;
}

.start-page .kimchi-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-page .kimchi-icon {
    width: 600px;
    height: 600px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.start-button {
    padding: 15px 50px;
    font-size: 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.start-button:hover {
    background-color: #45a049;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.start-button:active {
    transform: scale(0.98);
}

/* 게임 페이지 스타일 */
.game-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.score-container {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.score-label {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.score {
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
}

.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    position: relative;
}

.kimchi-clickable {
    width: 900px;
    height: 900px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.kimchi-clickable:active {
    transform: scale(0.95);
}

/* 깍두기 애니메이션 */
.kkakdugi {
    position: absolute;
    width: 120px;
    height: 120px;
    object-fit: contain;
    pointer-events: none;
    z-index: 5;
    animation: fallDown 1.5s ease-out forwards;
}

@keyframes fallDown {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(300px) scale(0.5);
    }
}

/* +1점 텍스트 애니메이션 */
.score-popup {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 6;
    animation: popUp 1s ease-out forwards;
}

@keyframes popUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.2);
    }
}

/* 모바일 반응형 스타일 */
@media screen and (max-width: 768px) {
    .start-page .title {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .start-page .kimchi-icon {
        width: 250px;
        height: 250px;
    }
    
    .start-page .container {
        gap: 30px;
        padding: 20px;
    }
    
    .start-button {
        padding: 12px 40px;
        font-size: 1.2rem;
    }
    
    .score-container {
        top: 15px;
        padding: 10px 20px;
    }
    
    .score-label {
        font-size: 1.2rem;
    }
    
    .score {
        font-size: 1.5rem;
    }
    
    .kimchi-clickable {
        width: 80vw;
        height: 80vw;
        max-width: 400px;
        max-height: 400px;
    }
    
    .kkakdugi {
        width: 50px;
        height: 50px;
    }
    
    .score-popup {
        font-size: 1.5rem;
    }
    
    @keyframes fallDown {
        0% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        100% {
            opacity: 0;
            transform: translateY(200px) scale(0.5);
        }
    }
}
