* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Baloo 2', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.container {
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 30px;
}

h1 {
    color: #fff;
    font-size: 3.5em;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 2px;
}

.subtitle {
    color: #fff;
    font-size: 1.4em;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.game-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.level-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.level-btn {
    background-color: #4d96ff;
    color: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.level-btn:hover {
    transform: scale(1.02);
    background-color: #ff6b6b;
}

.level-name {
    font-size: 1.8em;
    font-weight: 700;
}

.level-desc {
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 400;
}

.level-emoji {
    font-size: 1.2em;
    margin-top: 5px;
}

.question-box {
    font-size: 3.5em;
    margin: 30px 0;
    color: #2c3e50;
    font-weight: 600;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    position: relative;
}
.question-box::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
}

.answer-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#answer {
    font-size: 2.2em;
    width: 170px;
    padding: 15px;
    border: 3px solid #667eea;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f0f2ff);
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    color: #2c3e50;
}
#answer:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.3);
    outline: none;
    transform: scale(1.05);
}

.check-button, .next-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    font-family: 'Baloo 2', sans-serif;
}
.check-button:hover, .next-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
.check-button:active, .next-button:active {
    transform: translateY(-1px);
}
.check-button::after, .next-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}
.check-button:hover::after, .next-button:hover::after {
    left: 100%;
}

.result {
    margin: 20px 0;
}

.result-message {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.result-message.correct {
    color: #2ecc71;
}

.result-message.incorrect {
    color: #e74c3c;
}

.stars {
    font-size: 2em;
    margin: 10px 0;
}

.score-container {
    font-size: 1.7em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 auto;
    max-width: 500px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.score, .streak {
    margin: 0;
    padding: 10px;
    text-align: center;
}
.score {
    color: #4d96ff;
}
.streak {
    color: #ff6b6b;
}
@media (max-width: 600px) {
    .score-container {
        grid-template-columns: 1fr;
    }
}

.score, .streak {
    background-color: white;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2.8em;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 1.2em;
    }
    
    .game-container {
        padding: 25px;
    }

    .level-name {
        font-size: 1.5em;
    }
    
    .level-desc {
        font-size: 1em;
    }

    .question-box {
        font-size: 2.5em;
    }

    #answer {
        width: 140px;
        font-size: 1.8em;
        padding: 12px;
    }
    
    .check-button, .next-button {
        padding: 15px 25px;
        font-size: 1.1em;
    }
    
    .score-container {
        font-size: 1.4em;
    }
}
