.progress-container {
  display: grid;
  gap: 10px;
  padding: 12px 25px;
  background: #fffde7;
  border-bottom: 1px solid #fff9c4;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.progress-text {
  font-size: 0.95rem;
  color: #555;
}
.score {
  display: flex;
  gap: 15px;
}
.score-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.correct-count {
  color: var(--success, #4caf50);
}
.incorrect-count {
  color: var(--danger, #f44336);
}
.score-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}
.correct-count::before {
  background: var(--success, #4caf50);
}
.incorrect-count::before {
  background: var(--danger, #f44336);
}
.quiz-progress {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: #fff59d;
  overflow: hidden;
}
.quiz-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient, linear-gradient(135deg, #ffeb3b 0%, #f57f17 100%));
  transition: width 0.35s ease;
}
.question-box {
  padding: 25px;
}
.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: #6c757d;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-height: 18px;
}
.tricky-badge {
  background: #fff3e0;
  color: #e65100;
  padding: 2px 9px;
  border-radius: 99px;
  font-weight: 700;
}
.question-text {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #1e293b;
}
.options {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: #fffde7;
  border: 2px solid #fff59d;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition, all 0.3s ease);
}
.option:hover {
  background: #fff9c4;
}
.option:focus-visible {
  outline: 3px solid var(--primary, #f57f17);
  outline-offset: 2px;
}
.option .opt-key {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff9c4;
  color: #8d6e63;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.option.selected {
  border-color: var(--primary, #f57f17);
  background: #fff9c4;
  color: var(--primary, #f57f17);
}
.option.correct {
  border-color: var(--success, #4caf50);
  background: #e8f5e9;
  color: #1b5e20;
}
.option.incorrect {
  border-color: var(--danger, #f44336);
  background: #ffebee;
  color: #c62828;
}
.options.locked .option {
  cursor: default;
}
.feedback {
  padding: 14px;
  border-radius: 10px;
  margin: 15px 0;
  display: none;
}
.correct-feedback {
  background: #e8f5e9;
  color: #1b5e20;
  display: block;
}
.incorrect-feedback {
  background: #ffebee;
  color: #c62828;
  display: block;
}
.feedback-head {
  font-weight: 700;
  margin-bottom: 4px;
}
.feedback-exp {
  font-size: 0.95rem;
}
.next-btn {
  background: var(--gradient, linear-gradient(135deg, #ffeb3b 0%, #f57f17 100%));
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: var(--transition, all 0.3s ease);
}
.next-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 127, 23, 0.4);
}
.next-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.keyboard-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem;
  color: #9e9e9e;
}
.quiz-panel {
  padding: 10px 5px;
}
.quiz-panel h2 {
  font-size: 1.35rem;
  color: #1e293b;
  margin-bottom: 8px;
}
.quiz-panel p {
  color: #555;
  margin-bottom: 6px;
}
.panel-actions {
  display: grid;
  gap: 10px;
  max-width: 380px;
  margin: 20px auto 0;
}
.btn {
  display: block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 50px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition, all 0.3s ease);
}
.btn.primary {
  background: var(--gradient, linear-gradient(135deg, #ffeb3b 0%, #f57f17 100%));
  color: white;
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 127, 23, 0.35);
}
.btn.ghost {
  background: #fffde7;
  border-color: #fff59d;
  color: #8d6e63;
}
.btn.ghost:hover {
  background: #fff9c4;
}
.results-score {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary, #f57f17);
}
.results-sub {
  font-size: 1rem;
  color: #555;
  margin-bottom: 18px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.results-grid div {
  background: #fffde7;
  border: 1px solid #fff59d;
  border-radius: 12px;
  padding: 10px;
  font-size: 0.8rem;
  color: #6c757d;
}
.results-grid span {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
}
.topic-breakdown {
  text-align: left;
  margin: 0 0 18px;
}
.topic-breakdown h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin-bottom: 8px;
}
.topic-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px dashed #fff59d;
}
.topic-row:last-child {
  border-bottom: none;
}
@media (max-width: 600px) {
  .score {
    flex-direction: column;
    gap: 5px;
  }
  .question-meta {
    flex-direction: column;
  }
}

.q-figure {
  margin: 0 0 16px;
  overflow-x: auto;
}
.q-figure svg {
  max-width: 100%;
  height: auto;
  display: block;
}
