.quiz-section {
  max-width: 700px;
  margin: 0 auto;
}

.start-card,
.question-card,
.results-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}

.start-card h2 {
  margin: 0 0 16px;
  font-size: 2rem;
}

.start-card p {
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-2);
  color: var(--bg);
}

.btn-primary:hover {
  background: #35b0e0;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
}

.btn-secondary:hover {
  background: rgba(68, 197, 245, 0.1);
}

.quiz-progress {
  margin-bottom: 24px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: var(--accent-2);
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.question-card {
  text-align: left;
}

.question-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.difficulty,
.category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.difficulty {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.difficulty.easy {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
}

.difficulty.hard {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.category {
  background: rgba(143, 125, 243, 0.15);
  color: var(--accent);
}

.question-card h2 {
  margin: 0 0 32px;
  font-size: 1.5rem;
  line-height: 1.4;
}

.choice {
  display: block;
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.choice:hover:not(:disabled) {
  border-color: var(--accent-2);
  background: rgba(68, 197, 245, 0.1);
}

.choice:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.choice.correct {
  border-color: var(--success);
  background: rgba(74, 222, 128, 0.15);
}

.choice.incorrect {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

#answer-feedback {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

#feedback-content {
  margin-bottom: 20px;
}

.feedback-correct {
  color: var(--success);
  font-weight: 600;
  margin-bottom: 12px;
}

.feedback-incorrect {
  color: #ef4444;
  font-weight: 600;
  margin-bottom: 12px;
}

.feedback-rationale {
  color: var(--muted);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.results-card h2 {
  margin: 0 0 32px;
  font-size: 2rem;
}

.score-display {
  margin-bottom: 32px;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.score-display p {
  color: var(--muted);
  font-size: 1.1rem;
}

.results-breakdown {
  text-align: left;
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.results-breakdown h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: var(--accent);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-item span:first-child {
  color: var(--muted);
}

.breakdown-item span:last-child {
  font-weight: 600;
  color: var(--accent-2);
}

.results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .start-card,
  .question-card,
  .results-card {
    padding: 24px;
  }

  .question-card h2 {
    font-size: 1.2rem;
  }

  .score-circle {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
}

