body {
    font-family: 'Comic Sans MS', cursive;
    background: linear-gradient(135deg, #ff9cf7, #86c5ff);
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quiz-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 90%;
    text-align: center;
}

h1 {
    color: #ff46e5;
    font-size: 2em;
    margin-bottom: 1.5rem;
}

.option-button {
    background: #f0f0f0;
    border: none;
    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: transform 0.2s, background 0.2s;
    width: 80%;
}

.option-button:hover {
    transform: scale(1.05);
    background: #ffe6fb;
}

.loading {
    padding: 20px;
    font-style: italic;
    color: #666;
}

.character-image {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    margin: 20px auto;
    display: block;
    animation: bounce 2s infinite ease-in-out;
}

.eye {
    animation: blink 4s infinite;
}

@keyframes blink {
    0%, 96%, 98% {
        transform: scaleY(1);
    }
    97% {
        transform: scaleY(0.1);
    }
}

#character-result {
    font-size: 1.5em;
    margin: 2rem 0;
    padding: 1rem;
    background: #ffd9f9;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#retry-button {
    background: #ff46e5;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: transform 0.2s;
}

#retry-button:hover {
    transform: scale(1.1);
}

.character {
    transform-origin: center;
}

.smile {
    animation: smileWiggle 3s infinite ease-in-out;
}

@keyframes smileWiggle {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.1); }
}

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