body { background: #f4f6f9; }
.login-box { max-width: 380px; margin: 12vh auto 0; }
.quiz-container { max-width: 760px; }

.q-title { font-size: 1.05rem; line-height: 1.6; font-weight: 500; }
.q-no { color: #0d6efd; font-weight: 700; margin-right: 2px; }
.q-card { border: none; scroll-margin-top: 70px; }
.q-card.unanswered { box-shadow: 0 0 0 2px #ffc107 !important; }

.option {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; margin-bottom: 8px;
    border: 1px solid #dee2e6; border-radius: 10px;
    background: #fff; cursor: pointer; transition: all .12s;
    -webkit-tap-highlight-color: transparent;
}
.option:hover { border-color: #86b7fe; background: #f5f9ff; }
.option input { display: none; }
.opt-key {
    flex: 0 0 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #adb5bd; font-weight: 600; font-size: .9rem; color: #495057;
}
.opt-text { flex: 1; line-height: 1.5; }
.option.checked { border-color: #0d6efd; background: #eef4ff; }
.option.checked .opt-key { background: #0d6efd; border-color: #0d6efd; color: #fff; }

.option.static { cursor: default; }
.option.static:hover { border-color: #dee2e6; background: #fff; }
.option.opt-correct, .option.opt-correct:hover { border-color: #198754; background: #e9f7ef; }
.option.opt-correct .opt-key { background: #198754; border-color: #198754; color: #fff; }
.option.opt-wrong, .option.opt-wrong:hover { border-color: #dc3545; background: #fdecee; }
.option.opt-wrong .opt-key { background: #dc3545; border-color: #dc3545; color: #fff; }
.opt-tag { font-size: .75rem; padding: 2px 8px; border-radius: 20px; background: rgba(0,0,0,.06); white-space: nowrap; }

.explain { background: #fff8e6; border-left: 4px solid #ffc107; padding: 10px 14px; border-radius: 6px; line-height: 1.6; }

.result-head { border: none; border-top: 5px solid #dc3545; }
.result-head.pass { border-top-color: #198754; }
.score-big { font-size: 3.5rem; font-weight: 800; line-height: 1.1; }
.only-wrong .q-card.is-right { display: none; }

@media (max-width: 576px) {
    .score-big { font-size: 2.8rem; }
    .option { padding: 11px 12px; }
}
