/* ── Hero ─────────────────────────────────────────────────────────────────── */
.quiz-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

/* ── Large character display ─────────────────────────────────────────────── */
.character-display {
    font-size: 5rem;
    line-height: 1.1;
    color: #1e1b4b;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.character-pinyin {
    font-size: 1.1rem;
    color: #6d28d9;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.character-meaning {
    font-size: 0.95rem;
    color: #6b7280;
}

/* ── Option buttons ───────────────────────────────────────────────────────── */
.radical-option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    border: 2px solid #e5e7eb;
    border-radius: .75rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .12s;
    width: 100%;
    padding: 0.75rem 0.5rem;
}

.radical-option-btn:hover:not(:disabled) {
    border-color: #7c3aed;
    background: #f5f3ff;
    transform: translateY(-2px);
}

.radical-option-btn:disabled {
    cursor: default;
}

.radical-option-btn.correct {
    border-color: #198754;
    background: #d1e7dd;
}

.radical-option-btn.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
}

.radical-symbol {
    font-size: 2rem;
    line-height: 1.2;
    color: #1e1b4b;
}

.radical-label {
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 0.25rem;
    text-align: center;
}

/* ── Violet utilities ─────────────────────────────────────────────────────── */
.btn-violet {
    background-color: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.btn-violet:hover {
    background-color: #6d28d9;
    border-color: #6d28d9;
    color: #fff;
}

.btn-outline-violet {
    border: 2px solid #7c3aed;
    color: #7c3aed;
    background: transparent;
}

.btn-outline-violet:hover {
    background-color: #7c3aed;
    color: #fff;
}

/* ── Progress sidebar bars ────────────────────────────────────────────────── */
.progress { height: 8px; }

/* ── Difficulty badge ─────────────────────────────────────────────────────── */
#difficultyBadge { font-size: 0.85rem; }