:root {
  --bg: #f4efe6;
  --surface: rgba(255, 250, 242, 0.82);
  --surface-strong: #fff9f1;
  --line: rgba(65, 45, 28, 0.14);
  --text: #2b1d0f;
  --muted: #72563b;
  --accent: #c65d25;
  --accent-dark: #9e4618;
  --good: #1d7a45;
  --bad: #b6382f;
  --shadow: 0 18px 50px rgba(86, 56, 29, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(247, 204, 132, 0.45), transparent 28%),
    radial-gradient(circle at right center, rgba(198, 93, 37, 0.18), transparent 24%),
    linear-gradient(135deg, #f9f3eb 0%, #efe2d1 100%);
}

.app {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 48px;
}

.hero,
.stats,
.result,
.question-card {
  backdrop-filter: blur(14px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  border-radius: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
}

.intro {
  max-width: 760px;
  margin: 16px 0 0;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary {
  color: #fff6ef;
  background: linear-gradient(135deg, var(--accent) 0%, #da7a29 100%);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 24px;
}

.stats article {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-strong);
  text-align: center;
}

.stats span {
  display: block;
  font-size: 30px;
  font-weight: 800;
}

.stats p {
  margin: 6px 0 0;
  color: var(--muted);
}

.result {
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: 24px;
}

.result.good {
  border-color: rgba(29, 122, 69, 0.24);
}

.result.bad {
  border-color: rgba(182, 56, 47, 0.22);
}

.hidden {
  display: none;
}

.quiz {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.question-card {
  padding: 22px;
  border-radius: 24px;
}

.question-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.question-number {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.category {
  font-size: 13px;
  color: var(--muted);
}

.question-text {
  margin: 10px 0 18px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.option input {
  margin-top: 3px;
}

.option.correct {
  border-color: rgba(29, 122, 69, 0.45);
  background: rgba(29, 122, 69, 0.08);
}

.option.incorrect {
  border-color: rgba(182, 56, 47, 0.34);
  background: rgba(182, 56, 47, 0.08);
}

.explanation {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .app {
    width: min(100% - 20px, 1120px);
    margin-top: 20px;
  }

  .hero,
  .question-card,
  .result {
    padding: 18px;
    border-radius: 20px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .question-text {
    font-size: 18px;
  }
}
