#hanja_quiz_container {
  max-width: 500px;
    margin: 40px auto;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    font-family: 'Malgun Gothic', sans-serif;
}


.quiz-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

    .quiz-header h2 {
        margin: 0 0 5px 0;
        color: #1e293b;
        font-size: 22px;
    }

    .quiz-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
    }

.quiz-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.quiz-hanzi-card {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    line-height: 150px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0f172a;
    margin-bottom: 20px;
}

.quiz-btn {
    display: block;
    width: 100%;
    padding: 13px;
    margin: 8px 0;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: 0.15s;
    box-sizing: border-box;
}

.btn-primary {
    background: #4f46e5;
    color: #fff;
}

    .btn-primary:hover {
        background: #4338ca;
    }

.btn-option {
    background: #fff;
    color: #334155;
    border: 1px solid #cbd5e1;
    text-align: center;
}

    .btn-option:hover {
        background: #f8fafc;
        border-color: #94a3b8;
    }

.btn-dark {
    background: #1e293b;
    color: #fff;
}

    .btn-dark:hover {
        background: #0f172a;
    }

.center {
    text-align: center;
}

.intro-txt {
    color: #475569;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.quiz-alert {
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.result-board {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
    text-align: center;
}

.final-score {
    font-size: 18px;
    margin: 10px 0;
}

    .final-score span {
        color: #4f46e5;
        font-weight: bold;
        font-size: 22px;
    }

.text-success {
    color: #16a34a;
    font-weight: bold;
}

.text-danger {
    color: #dc2626;
    font-weight: bold;
}
