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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    width: 100%;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.game-header h1 {
    color: #2d5016;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-stats {
    display: flex;
    gap: 20px;
}

.stat {
    background: #f0f8e8;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid #8fbc8f;
    font-weight: 600;
    color: #2d5016;
}

#gameCanvas {
    width: 100%;
    height: 400px;
    border: 3px solid #8fbc8f;
    border-radius: 15px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 70%, #228B22 100%);
    display: block;
    margin: 0 auto;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;
    gap: 20px;
}

.control-info {
    flex: 1;
    background: #f0f8e8;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #8fbc8f;
}

.control-info h3 {
    color: #2d5016;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.control-info p {
    margin: 5px 0;
    color: #2d5016;
    font-size: 0.9rem;
}

.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    min-width: 120px;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ff9800;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #f57c00;
    transform: translateY(-2px);
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #da190b;
    transform: translateY(-2px);
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #138496;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 1000;
}

.game-over h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.game-over p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .game-container {
        padding: 15px;
        margin: 10px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .game-header h1 {
        font-size: 1.5rem;
    }
    
    .game-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .game-controls {
        flex-direction: column;
        text-align: center;
    }
    
    .game-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #gameCanvas {
        height: 300px;
    }
}