.quiz-container {
    background: var(--cloud-dancer);
    border: 1px solid var(--line-muted);
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    margin: 20px auto;
    color: var(--slate-earth);
    font-family: system-ui, sans-serif;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.quiz-container.open {
    max-height: 1000px; /* large enough to fit content */
    opacity: 1;
}


.quiz-title {
    margin-bottom: 15px;
    color: var(--tortoise);
}

.quiz-label {
    font-weight: 600;
}

.quiz-select {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px;
    border: 1px solid var(--line-muted);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--slate-earth);
}

.quiz-question-box {
    margin-bottom: 20px;
}

.quiz-question {
    font-weight: 600;
    margin-bottom: 10px;
}

.quiz-answer {
    display: block;
    padding: 10px;
    margin: 6px 0;
    border: 1px solid var(--line-muted);
    border-radius: 6px;
    cursor: pointer;
    background: var(--bg-surface);
    transition: background 0.2s ease;
}

.quiz-answer:hover {
    background: var(--amber);
    color: var(--slate-earth);
}

.quiz-answer.correct {
    background: var(--amber);
    border-color: var(--tortoise);
}

.quiz-answer.wrong {
    background: var(--bg-red);
    color: white;
}

.quiz-progress {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--tortoise);
}

.quiz-feedback {
    font-weight: 700;
    margin-bottom: 8px;
    min-height: 24px;
}

.quiz-feedback.correct {
    color: var(--forest-green);
}

.quiz-feedback.wrong {
    color: var(--bg-red);
}

.quiz-answer.correct-answer {
    background: var(--forest-green);
    color: white;
}