:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --background-color: #F7FFF7;
    --text-color: #292F36;
    --success-color: #95E1D3;
    --error-color: #F38181;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Fredoka', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.game-container {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 600px;
    border: 5px solid var(--secondary-color);
}

header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.score-board {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    color: var(--text-color);
}

.instruction {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.target-letter-container {
    margin: 2rem 0;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#target-letter {
    font-size: 10rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.feedback {
    height: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    min-height: 30px;
}

.feedback.success {
    color: var(--secondary-color);
}

.feedback.error {
    color: var(--error-color);
}

.keyboard-instruction {
    margin-top: 3rem;
    font-size: 1rem;
    color: #888;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pop-animation {
    animation: pop 0.3s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake-animation {
    animation: shake 0.4s ease-in-out;
}
