.hero-copy {
  padding-top: 12px;
  text-align: center;
}

.hero-copy h1,
.result-hero h1 {
  margin: 7px 0;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  line-height: 1.05;
}

.hero-copy p:last-child,
.result-hero p {
  color: var(--muted);
  line-height: 1.55;
}

.how-it-works {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.how-it-works-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.how-it-works-number {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #151b25;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--accent);
  border-radius: 50%;
}

.how-it-works-title {
  margin: 0 0 2px;
  font-size: 0.88rem;
  font-weight: 750;
}

.how-it-works-step p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.account-teaser {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.account-teaser .text-button {
  padding: 0;
  color: var(--accent);
  font-weight: 750;
}

.challenge-banner {
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
  background: linear-gradient(135deg, rgb(245 185 66 / 16%), rgb(251 113 133 / 14%));
  border: 1px solid rgb(245 185 66 / 45%);
  border-radius: var(--radius);
}

.challenge-banner p {
  margin: 5px 0;
}

.challenge-icon,
.result-icon {
  display: block;
  font-size: 2rem;
}

.history-panel {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.history-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.history-item,
.empty-history {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  background: rgb(23 37 60 / 65%);
  border-radius: 10px;
}

.history-item strong {
  color: var(--text);
}

.history-toggle {
  justify-self: center;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}

.quiz-meta strong,
.timer-text {
  color: var(--accent);
}

.timer-track {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: 999px;
}

.timer-bar {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: width 100ms linear, background 180ms ease;
}

.timer-bar.danger {
  background: var(--danger);
}

.timer-text {
  margin: 6px 0 25px;
  font-size: 0.8rem;
  text-align: right;
}

#question-text {
  min-height: 78px;
  margin: 8px 0 20px;
  font-size: 1.35rem;
  line-height: 1.35;
}

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

.option-button {
  padding: 13px 14px;
  color: var(--text);
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.option-button:hover:not(:disabled) {
  border-color: var(--accent);
}

.option-button.correct {
  color: var(--success);
  background: rgb(54 211 153 / 10%);
  border-color: var(--success);
}

.option-button.incorrect {
  color: var(--danger);
  background: rgb(251 113 133 / 10%);
  border-color: var(--danger);
}

.feedback {
  padding: 14px;
  margin: 18px 0 12px;
  background: rgb(23 37 60 / 70%);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feedback p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.result-hero {
  padding: 18px 0;
  text-align: center;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 16px 0 22px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.result-grid div {
  display: grid;
  gap: 4px;
  padding: 19px;
  text-align: center;
}

.result-grid div + div {
  border-left: 1px solid var(--border);
}

.result-grid strong {
  font-size: 2rem;
}

.result-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.result-actions {
  display: grid;
  gap: 10px;
}

.share-status {
  padding: 11px;
  color: var(--success);
  text-align: center;
  background: rgb(54 211 153 / 10%);
  border: 1px solid rgb(54 211 153 / 35%);
  border-radius: 10px;
}

