#quiz-app .description {
  text-align: center;
  margin-bottom: 3rem;
}
/* .quiz { max-width: 700px; margin: 0 auto; padding: 20px; font-family: system-ui, sans-serif; }
.quiz h1 { font-size: 2rem; text-align: center; margin-bottom: 1rem; }
.quiz h2 { font-size: 1.8rem; margin: 2rem 0 1rem; } */
.quiz .question {
  margin-bottom: 3rem;
  text-align: center;
}
.quiz .question-text {
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding: 2rem 1.25rem 2rem 1.25rem;
  /* border-radius: 12px; */
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz .question-image {
  width: 100%;
  max-height: 500px;
  display: block;
  object-fit: cover;
  margin-bottom: 2.5rem;
}

.quiz .options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
  align-items: stretch;
}
.quiz .option {
  cursor: pointer;
  display: flex;
  height: 100%;
}
.quiz .option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.quiz .option-label {
  position: relative; /* Important for text_on_image_bg */
  /* border-radius: 12px; */
  overflow: hidden;
  box-shadow: 0 4px 12px #0000001a;
  transition: transform 0.2s, box-shadow 0.2s;
  /* height: 250px; */ /* Consistent height */
  display: flex;
  flex-direction: column;
  padding-bottom: 0.5rem;
  width: 100%;
  height: 100%;
}
.quiz .option-label:hover {
  /* transform: translateY(-4px); */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.quiz .option-text {
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  line-height: 1.2;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(255,255,255,0.9); */ /* fallback for non-image */
  color: #333;
  /* font-weight: bold; */
}
.quiz .option-image {
  width: 100%;
  height: 160px;
  display: block;
  object-fit: cover;
  margin-bottom: 1rem;
  border: none;
}

.quiz .result {
  background: rgba(0,0,0,0.1);
  padding: 3rem 4rem;
  /* border-radius: 16px; */
  margin-top: 3rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Circular Progress Bar */
.result-progress-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
}

.result-progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.result-progress-svg circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.progress-bg {
  stroke: #eee;
}

.progress-bar {
  stroke: #e74c3c;
  stroke-dasharray: 283; /* 2 * PI * 45 */
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s ease-out;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-percent {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #333;
}

.result-summary {
  font-size: 1.4rem;
  line-height: 1.5;
  color: #555;
  max-width: 500px;
  margin: 1.5rem auto;
}

.quiz button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem 1rem 1.5rem;
  font-size: 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  margin: 3rem auto 2rem auto;
  display: block;
}
.quiz button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.quiz button:hover:not(:disabled) {
  background: #c0392b;
}

.quiz .option.selected .option-label {
  /* transform: translateY(-8px) scale(1.03); */
  /* box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25); */
  box-shadow: none;
  border: 4px solid #f1c40f; /* Bright gold/yellow border – very visible */
  z-index: 10;
}

/* .quiz .option.selected .option-label:hover {
    transform: translateY(-10px) scale(1.04);
} */

.quiz .option.selected .option-label::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #27ae60;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 20;
}

.not-answered-warning {
  color: red;
  text-align: center;
  margin-bottom: 0;
  font-size: 16px;
}

.quiz .option.correct .option-label {
    border: 5px solid #27ae60 !important;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.4);
}

.quiz .option.wrong .option-label {
    border: 5px solid #e74c3c !important;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.quiz .question.answered .option-label {
    pointer-events: none; /* Disable further clicks after answer */
}

.result-headline {
  margin-bottom: 2rem;
}

.templar-timeline-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
}

.templar-power-timeline {
  position: relative;
  width: 100%;
  height: 360px;
}

@media (min-width: 600px) {
  .quiz .question-text {
    font-size: 2.5rem;
  }
  .quiz .option-text {
    font-size: 1.5rem;
  }
  .quiz button {
    padding: 1rem 2rem 1.25rem 2rem;
    font-size: 2rem;
  }
}