/*
 * quiz.css
 * The Quiz page. Builds on popup/popup.css (colors, word rows, gold button).
 */

[hidden]
{
    display: none !important;
}

.quiz-box
{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d8c79c;
    border-radius: 14px;
    background: #fffaf0;
}

/* ---- Settings ---- */

.setting-name
{
    font-weight: 700;
    margin-bottom: 5px;
}

.options
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.options button,
.small-button
{
    font: inherit;
    padding: 6px 14px;
    border: 1px solid #d8c79c;
    border-radius: 999px;
    background: #fff;
    color: #2b2620;
    cursor: pointer;
}

.options button:hover,
.small-button:hover
{
    background: #fdf1d3;
}

.options button.chosen,
.small-button.primary
{
    background: #f5b82e;
    border-color: #b9861a;
    font-weight: 700;
}

.option-note
{
    font-weight: 400;
    color: #6b604f;
}

.setup-message
{
    min-height: 1em;
    font-size: 13px;
    color: #8a5a00;
}

.quiz-button:disabled
{
    opacity: 0.5;
    cursor: default;
}

/* ---- Question ---- */

.progress-row
{
    display: flex;
    justify-content: space-between;
    color: #6b604f;
    font-size: 13px;
}

.hear-row
{
    display: flex;
    gap: 8px;
}

.hear-row .hear-button
{
    flex: 1;
}

.hear-row .hear-button.slow
{
    flex: 0 0 auto;
    font-size: 17px;
}

.voice-select
{
    font: inherit;
    padding: 5px 8px;
    border: 1px solid #d8c79c;
    border-radius: 8px;
    background: #fff;
    max-width: 100%;
}

.hear-button
{
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    padding: 14px;
    border: 2px solid #b9861a;
    border-radius: 14px;
    background: #2b2620;
    color: #f5b82e;
    cursor: pointer;
}

.hear-button:hover
{
    filter: brightness(1.15);
}

.no-voice
{
    font-size: 13px;
    color: #a33;
}

.hint-buttons
{
    display: flex;
    gap: 8px;
}

.hint
{
    font-size: 15px;
    color: #2b2620;
    padding: 8px 12px;
    border-left: 4px solid #f5b82e;
    background: #f4efe3;
    border-radius: 6px;
}

.answer-row
{
    display: flex;
    gap: 8px;
}

.answer-row input
{
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: 22px;
    letter-spacing: 1px;
    padding: 8px 12px;
    border: 2px solid #d8c79c;
    border-radius: 10px;
}

.answer-row input:focus
{
    outline: none;
    border-color: #f5b82e;
}

.dont-know
{
    align-self: flex-start;
    font-size: 13px;
}

.feedback
{
    font-weight: 700;
    min-height: 1em;
}

.feedback.right
{
    color: #2e7d32;
    font-size: 20px;
}

.feedback.wrong
{
    color: #a33;
}

.quiz-stage .bee-card
{
    max-width: none;
}

/* ---- Score ---- */

.final-score
{
    font-size: 44px;
    font-weight: 800;
    text-align: center;
}

.final-note
{
    text-align: center;
    color: #6b604f;
}

.missed-list
{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.syllables
{
    font-size: 13px;
    color: #8a5a00;
}

.voice-tip
{
    margin-top: 4px;
    font-size: 13px;
    color: #8a5a00;
}

/* 🔔 / 🔕 in the top right */
.mute-button
{
    margin-left: auto;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid #d8c79c;
    border-radius: 12px;
    background: #fffaf0;
    cursor: pointer;
}

.mute-button:hover
{
    background: #fdf1d3;
}
