#quiz .quiz-signup-early {
  color: #42652c;
  font-size: .82rem;
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

#quiz .quiz-completion {
  color: #1e2b27;
  padding: clamp(20px, 4vw, 42px) 0 8px;
}

#quiz .quiz-completion[hidden],
#quiz #quizGame[hidden] {
  display: none;
}

#quiz .quiz-result-hero {
  background: linear-gradient(135deg, #f3f8e8, #fff4e8);
  border: 1px solid #e3ebd8;
  border-radius: 22px;
  padding: clamp(20px, 4vw, 34px);
  text-align: center;
}

#quiz .quiz-result-kicker {
  color: #597b38;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#quiz .quiz-result-medal {
  display: block;
  font-size: 3.8rem;
  line-height: 1.15;
  margin: 8px 0;
}

#quiz .quiz-result-title {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  letter-spacing: -.055em;
  margin: 8px 0;
}

#quiz .quiz-result-points {
  color: #557a34;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 950;
  letter-spacing: -.09em;
  line-height: 1;
  margin: 13px 0 4px;
}

#quiz .quiz-result-caption,
#quiz .quiz-result-description {
  color: #5f7066;
  line-height: 1.6;
  margin: 5px auto;
  max-width: 610px;
}

#quiz .quiz-result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

#quiz .quiz-result-stat {
  background: #fff;
  border: 1px solid #e7ece2;
  border-radius: 14px;
  padding: 14px 8px;
}

#quiz .quiz-result-stat strong {
  display: block;
  color: #28443a;
  font-size: 1.4rem;
}

#quiz .quiz-result-stat span {
  color: #65756c;
  font-size: .78rem;
}

#quiz .quiz-result-progress {
  background: #e4e9df;
  border-radius: 99px;
  height: 12px;
  margin: 9px 0 6px;
  overflow: hidden;
}

#quiz .quiz-result-progress span {
  background: linear-gradient(90deg, #9cca62, #5c963c);
  border-radius: inherit;
  display: block;
  height: 100%;
}

#quiz .quiz-result-achievements,
#quiz .quiz-result-benefits {
  background: #fff;
  border: 1px solid #e7ece2;
  border-radius: 16px;
  margin-top: 14px;
  padding: 18px;
}

#quiz .quiz-result-achievements h4,
#quiz .quiz-result-benefits h4 {
  font-size: 1rem;
  margin: 0 0 12px;
}

#quiz .quiz-trophy-list,
#quiz .quiz-benefit-list {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#quiz .quiz-trophy-list li {
  align-items: center;
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

#quiz .quiz-trophy-icon {
  align-items: center;
  background: #f0f5e8;
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 1.3rem;
  height: 38px;
  justify-content: center;
}

#quiz .quiz-result-rank {
  background: #eef4fa;
  border: 1px solid #dce8f1;
  border-radius: 14px;
  line-height: 1.55;
  margin: 14px 0;
  padding: 15px;
}

#quiz .quiz-result-deadline {
  background: #fff1df;
  border: 1px solid #f1dfc8;
  border-radius: 14px;
  line-height: 1.6;
  margin-top: 14px;
  padding: 17px;
}

#quiz .quiz-result-deadline strong {
  color: #734b1b;
}

#quiz .quiz-result-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

#quiz .quiz-result-cta .btn {
  text-decoration: none;
}

html[data-theme="dark"] #quiz .quiz-completion {
  color: #f3eee6;
}

html[data-theme="dark"] #quiz .quiz-result-hero {
  background: linear-gradient(135deg, #283524, #342c25);
  border-color: #475541;
}

html[data-theme="dark"] #quiz .quiz-result-kicker,
html[data-theme="dark"] #quiz .quiz-result-points {
  color: #b6d88c;
}

html[data-theme="dark"] #quiz .quiz-result-caption,
html[data-theme="dark"] #quiz .quiz-result-description,
html[data-theme="dark"] #quiz .quiz-result-stat span {
  color: #d3d4c9;
}

html[data-theme="dark"] #quiz .quiz-result-stat,
html[data-theme="dark"] #quiz .quiz-result-achievements,
html[data-theme="dark"] #quiz .quiz-result-benefits {
  background: #252b2a;
  border-color: #3b4641;
}

html[data-theme="dark"] #quiz .quiz-result-stat strong {
  color: #eef3e8;
}

html[data-theme="dark"] #quiz .quiz-result-progress {
  background: #3b4540;
}

html[data-theme="dark"] #quiz .quiz-trophy-icon {
  background: #354033;
}

html[data-theme="dark"] #quiz .quiz-result-rank {
  background: #273139;
  border-color: #394a55;
}

html[data-theme="dark"] #quiz .quiz-result-deadline {
  background: #392f25;
  border-color: #55432e;
}

html[data-theme="dark"] #quiz .quiz-result-deadline strong,
html[data-theme="dark"] #quiz .quiz-signup-early {
  color: #e6c38e;
}

@media (max-width: 520px) {
  #quiz .quiz-result-stats {
    gap: 6px;
  }

  #quiz .quiz-result-stat {
    padding: 12px 4px;
  }

  #quiz .quiz-result-stat span {
    font-size: .7rem;
  }

  #quiz .quiz-result-cta {
    align-items: stretch;
    flex-direction: column;
  }
}
