/* ── Screens ── */
.test-screen {
  display: none;
  padding-bottom: 4rem;
}

.test-screen.active {
  display: block;
}

/* ── Intro ── */
.test-intro-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.test-intro-wrap .section-title {
  margin: 0.5rem 0 0.75rem;
}

.level-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.8rem 0 2.2rem;
}

.level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff7ec;
  border: 2px solid #ffe0b2;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--c-primary-dark);
  transition: all 0.2s ease;
}

.level-pill--accent {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #ffffff;
}

.level-divider {
  color: #d1d5db;
  font-size: 0.9rem;
}

.btn-start {
  font-size: 1.05rem;
  padding: 0.9rem 2.5rem;
  border-radius: 1.2rem;
}

.test-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ── Quiz ── */
.quiz-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 0;
}

.quiz-progress {
  margin-bottom: 1.4rem;
}

.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.quiz-progress-label {
  font-size: 0.85rem;
  color: #6b7280;
}

.quiz-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: #fff7ec;
  border: 1px solid #ffe0b2;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  letter-spacing: 0.05em;
}

.progress-bar-track {
  height: 6px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  transition: width 0.4s ease;
}

.quiz-card {
  padding: 2rem 1.8rem;
}

.quiz-question {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.quiz-options {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .quiz-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  color: #374151;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--c-primary);
  background: #fff7ec;
  color: var(--c-primary-dark);
  transform: translateY(-1px);
}

.quiz-option:disabled {
  cursor: default;
}

.opt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.quiz-option:hover:not(:disabled) .opt-letter {
  border-color: var(--c-primary);
  background: #fff7ec;
  color: var(--c-primary-dark);
}

.opt-correct {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
}

.opt-correct .opt-letter {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
}

.opt-wrong {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.opt-wrong .opt-letter {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
}

.quiz-feedback {
  min-height: 1.5rem;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 0.6rem;
  padding: 0;
  transition: all 0.2s ease;
}

.feedback-correct {
  color: #15803d;
  background: #f0fdf4;
  padding: 0.55rem 0.9rem;
}

.feedback-wrong {
  color: #b91c1c;
  background: #fef2f2;
  padding: 0.55rem 0.9rem;
}

.btn-next {
  margin-top: 1.4rem;
  width: 100%;
  border-radius: 1rem;
  transition: all 0.22s ease;
}

.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Results ── */
.result-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.result-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.result-badge-wrap {
  margin-bottom: 1.2rem;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(245, 124, 0, 0.3);
  margin-bottom: 0.5rem;
}

.result-badge-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.result-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.8rem;
}

.result-desc {
  font-size: 0.94rem;
  color: #6b7280;
  max-width: 480px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}

.result-score-bar {
  height: 8px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.result-score-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  transition: width 0.8s ease;
}

.result-score-label {
  font-size: 0.88rem;
  color: #6b7280;
  margin-bottom: 1.8rem;
}

/* Breakdown */
.result-breakdown {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.breakdown-item {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 0.75rem;
}

.breakdown-level {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  text-align: center;
  background: #fff7ec;
  border: 1px solid #ffe0b2;
  border-radius: 6px;
  padding: 0.15rem 0.3rem;
}

.breakdown-bar-track {
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
}

.breakdown-score {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  text-align: right;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
