.quiz {
  padding: 48px 0 80px;
  min-height: calc(100vh - 72px);
  background: var(--bg-alt);
}

.quiz__container {
  max-width: 620px;
}

.quiz__progress {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}

.quiz__progress-bar {
  height: 100%;
  width: 14.28%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.quiz__topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.quiz__topbar[hidden],
.quiz__progress[hidden] {
  display: none;
}

.quiz__back {
  background: none;
  border: none;
  color: var(--text-dim-2);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.quiz__back:hover {
  color: var(--accent);
}

.quiz__step-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
}

.quiz__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 20px 50px rgba(20, 22, 31, 0.06);
}

.quiz__card h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz__option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.quiz__option:hover {
  border-color: var(--accent);
  background: #fff5f2;
}

.quiz__option:active {
  transform: scale(0.99);
}

.quiz__result {
  text-align: center;
}

.quiz__result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.quiz__result-icon--good {
  background: rgba(26, 156, 74, 0.12);
  color: var(--good);
}

.quiz__result-icon--muted {
  background: var(--bg-alt);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.quiz__result-sub {
  color: var(--text-dim-2);
  max-width: 460px;
  margin: 0 auto 28px;
}

@media (max-width: 560px) {
  .quiz__card { padding: 28px 22px; }
}
