.quiz-card {
  max-width: 620px;
}

.screen {
  text-align: center;
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--soft);
  font-size: 0.95rem;
}

.score-label {
  color: var(--coral-dark);
  font-weight: 600;
}

.progress-track {
  margin: 0.6rem 0 1.6rem;
  height: 8px;
  background: rgba(255, 138, 92, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--coral);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.question-text {
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  margin-bottom: 1.3rem;
}

.answers {
  display: grid;
  gap: 0.7rem;
}

.answer {
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
  background: white;
  border: 2px solid rgba(255, 138, 92, 0.25);
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.answer .key {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--peach);
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.answer:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--coral);
}

.answer:disabled {
  cursor: default;
}

.answer.correct {
  background: #e7f7ec;
  border-color: #57c785;
}

.answer.correct .key {
  background: #57c785;
  color: white;
}

.answer.wrong {
  background: #fdeaea;
  border-color: #e86d6d;
}

.answer.wrong .key {
  background: #e86d6d;
  color: white;
}

.explanation {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 248, 240, 0.9);
  border: 1px dashed rgba(242, 104, 60, 0.4);
  border-radius: 14px;
  text-align: left;
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.45;
}

.explanation strong {
  color: var(--coral-dark);
}

#next-btn {
  margin-top: 1.3rem;
}

.result-score {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--coral-dark);
  margin-top: 0.5rem;
}

.back-link {
  color: var(--soft);
  text-decoration: none;
}

.back-link:hover {
  color: var(--coral-dark);
}
