html { font-size: 20px; -webkit-text-size-adjust: none; }
@media (max-width: 768px) {
  html { font-size: 22px; }
  .q-text, .option-btn, .text-pill { font-size: 1.05rem !important; }
  .q-num { font-size: 1.5rem !important; }
}
body { background: #0d1428; color: #fff; font-family: "Cairo", sans-serif; margin: 0; padding-bottom: 90px; }
.top-bar { text-align: center; padding: 20px 10px; background: linear-gradient(135deg, #162447, #1f4068); }
.top-bar h1 { margin: 0; font-size: 1.6rem; color: #6ec7ff; text-shadow: 0 0 6px rgba(110,199,255,0.64); }
.top-bar p { margin: 5px 0 0; font-size: 1.5rem; font-weight: 700; color: #dff4ff; }
.phone { font-size: 1.3rem; color: #dff4ff; }
.quiz-container { max-width: 1100px; margin: 20px auto; display: grid; gap: 14px; padding: 0 10px; }
.question-card { background: #111a30; border-radius: 16px; padding: 14px 16px 18px; box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
.q-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; border-bottom: 1.5px solid rgba(255,255,255,0.12); padding-bottom: 8px; }
.q-num { background: #6ec7ff; color: #0d1428; min-width: 74px; height: 42px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; }
.q-text { font-size: 1.02rem; flex: 1; text-align: left; line-height: 1.4; }
.options { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.option-btn { background: #171f35; border: 1px solid transparent; border-radius: 999px; padding: 8px 14px; width: calc(50% - 8px); text-align: left; display: flex; align-items: center; gap: 6px; cursor: pointer; transition: 0.2s; color: #fff; min-height: 44px; font-weight: 400; }
.option-btn span.letter { font-weight: 700; color: #6ec7ff; font-size: 1rem; }
.option-btn.selected { background: #ffefad; color: #000; font-weight: 700; }
.option-btn.selected span.letter { color: #000; }
.option-btn.correct { background: #1b9aaa; color: #fff; font-weight: 700; }
.option-btn.correct span.letter { color: #fff; }
.option-btn.wrong { background: #d34444; color: #fff; font-weight: 700; }
.option-btn.wrong span.letter { color: #fff; }
.text-row { display: flex; gap: 10px; margin-top: 6px; }
.text-pill { flex: 1; border: none; border-radius: 999px; padding: 10px 14px; font-size: 0.95rem; outline: none; }
.text-pill.student { background: #ffefad; color: #000; }
.text-pill.student.filled,
.text-pill.student.correct,
.text-pill.student.wrong { font-weight: 700; font-size: 1.05rem; }
.text-pill.student.correct { background: #1b9aaa; color: #fff; }
.text-pill.student.wrong { background: #d34444; color: #fff; }
.text-pill.correct-answer { background: #1b9aaa; color: #fff; display: none; }
.text-pill.correct-answer.show { display: block; font-weight: 700; font-size: 1.05rem; }
.explain-box { margin-top: 8px; background: rgba(17,26,48,0.35); border: 1px solid rgba(255,255,255,0.05); border-left: 4px solid #6ec7ff; border-radius: 10px; padding: 6px 10px 8px; font-size: 0.78rem; line-height: 1.35; display: none; }
.explain-box ul { margin: 4px 0 0 14px; padding: 0; }
.analysis-line { color: #6ec7ff; margin-top: 3px; font-size: 0.78rem; }
.actions { margin-top: 25px; display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
#checkBtn { width: 100%; max-width: 700px; background: #ff9800; border: none; color: #fff; padding: 18px 0; border-radius: 999px; font-weight: 800; font-size: 2rem; letter-spacing: 0.5px; cursor: pointer; }
.inline-score { width: 100% !important; max-width: 700px !important; background: #ffeb3b !important; color: #ff0000 !important; border-radius: 28px !important; padding: 16px 0 !important; text-align: center !important; font-weight: 900 !important; font-size: 3rem !important; }
#resetBtn { width: 100%; max-width: 700px; background: #4fc3f7; border: none; color: #fff; padding: 18px 0; border-radius: 999px; font-weight: 800; font-size: 2rem; letter-spacing: 0.5px; cursor: pointer; }
@media (max-width: 768px) { #checkBtn, #resetBtn, .inline-score { max-width: none !important; width: calc(100% - 24px) !important; } .option-btn { width: 100%; } .text-row { flex-direction: column; } }
