:root {
  --bg: #0b0f14;
  --panel: #111823;
  --panel-2: #182231;
  --card: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #a9b4c2;
  --brand: #8edb32;
  --brand-dark: #68b914;
  --brand-soft: rgba(142, 219, 50, 0.14);
  --danger: #ff6b6b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(
      circle at top right,
      rgba(142, 219, 50, 0.12),
      transparent 25%
    ),
    linear-gradient(180deg, #091018 0%, #0b0f14 100%);
  color: var(--text);
}

.quiz-section {
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.quiz-section::before,
.quiz-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
}

.quiz-section::before {
  width: 220px;
  height: 220px;
  background: rgba(142, 219, 50, 0.18);
  top: 40px;
  left: -80px;
}

.quiz-section::after {
  width: 260px;
  height: 260px;
  background: rgba(33, 120, 255, 0.15);
  bottom: -60px;
  right: -100px;
}

.quiz-wrap {
  max-width: var(--container);
  margin: 0 auto;
}

.quiz-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-stats,
.quiz-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 34px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(142, 219, 50, 0.28);
  background: var(--brand-soft);
  border-radius: 999px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: white;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 62ch;
}

.hero-stats {
  padding: 24px;
  display: grid;
  gap: 16px;
  align-content: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.stat strong {
  display: block;
  font-size: 28px;
  margin-bottom: 6px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.quiz-card {
  padding: 28px;
  position: relative;
}

.quiz-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.quiz-topbar .left,
.quiz-topbar .right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.pill strong {
  color: var(--text);
}

.progress-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.progress {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand) 0%, #b8ff63 100%);
  transition: width 0.35s ease;
}

.progress-text {
  font-weight: 700;
  color: var(--brand);
  min-width: 56px;
  text-align: right;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.step {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--brand), #c3ff79);
  transition: transform 0.3s ease;
}

.step.done::after,
.step.active::after {
  transform: scaleX(1);
}

.question-card {
  padding: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
}

.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.question-title {
  margin: 0 0 20px;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.3;
  color: white;
  letter-spacing: -0.02em;
}

.answers {
  display: grid;
  gap: 14px;
}

.answer {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: 0.25s ease;
}

.answer:hover {
  transform: translateY(-2px);
  border-color: rgba(142, 219, 50, 0.34);
  background: rgba(142, 219, 50, 0.08);
}

.answer input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
}

.answer-text {
  color: var(--text);
  line-height: 1.6;
  padding-top: 4px;
}

.answer.selected {
  border-color: rgba(142, 219, 50, 0.42);
  background: rgba(142, 219, 50, 0.12);
}

.answer.selected .answer-badge {
  background: var(--brand);
  border-color: var(--brand);
  color: #091018;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.quiz-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #0a1119;
  box-shadow: 0 14px 30px rgba(142, 219, 50, 0.24);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(142, 219, 50, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.result-card {
  display: none;
  padding: 28px;
  margin-top: 24px;
  background: linear-gradient(
    180deg,
    rgba(142, 219, 50, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(142, 219, 50, 0.22);
  border-radius: 24px;
}

.result-card.show {
  display: block;
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.result-head h3 {
  margin: 0 0 8px;
  color: white;
  font-size: clamp(24px, 3vw, 36px);
}

.result-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 58ch;
}

.score-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(
    var(--brand) 0deg,
    var(--brand) 0deg,
    rgba(255, 255, 255, 0.08) 0deg
  );
  position: relative;
  flex: 0 0 112px;
}

.score-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #0f1620;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-ring span {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 800;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.review-item strong {
  display: block;
  line-height: 1.5;
}

.review-item .meta {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.review-item .meta .bad {
  color: #ffb4b4;
}

.review-item .meta .good {
  color: #bfff8f;
}

@media (max-width: 980px) {
  .quiz-hero {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .quiz-section {
    padding: 56px 16px;
  }

  .hero-copy,
  .hero-stats,
  .quiz-card,
  .question-card,
  .result-card {
    padding: 20px;
    border-radius: 22px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-title {
    font-size: 22px;
  }

  .quiz-footer,
  .result-head {
    align-items: stretch;
  }

  .actions {
    width: 100%;
  }

  .actions .btn {
    flex: 1 1 auto;
  }
}

.review-item .bad {
  padding-top: 8px;
}

.review-item .bad,
.review-item .good {
  margin-bottom: 8px;
}
