
/* Quiz ------------------------------------------------------------------ */

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

.quiz-card {
  background: #09111b;
  border: 1px solid rgb(52 52 52 / 50%);
  border-radius: 16px;
  overflow: hidden;
}

.quiz-photo {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #0d0d12;
  transform-origin: 50% 45%;
  will-change: transform;
}

/* The reels push into a still rather than let it sit there; the same travel
   keeps a question that never changes from feeling frozen for ten seconds.
   Direction alternates so five questions do not read as one long shot.
   .quiz-card already clips its overflow, which is what holds the crop. */
@keyframes quiz-push-in {
  from { transform: scale(1); }
  to { transform: scale(1.14); }
}

@keyframes quiz-pull-out {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

.quiz-photo.push-in { animation: quiz-push-in 11s ease-out forwards; }
.quiz-photo.pull-out { animation: quiz-pull-out 11s ease-out forwards; }

@media (prefers-reduced-motion: reduce) {
  .quiz-photo.push-in,
  .quiz-photo.pull-out { animation: none; transform: none; }
}

/* The timer is the only thing telling you to hurry, so it sits directly under
   the photo where the eye already is, not in a corner. */
.quiz-timer { height: 4px; background: rgba(255, 255, 255, 0.08); }

.quiz-timer-fill {
  height: 100%;
  width: 100%;
  background: rgb(70, 164, 248);
  transform-origin: left center;
  transition: transform 0.1s linear, background-color 0.3s ease;
}

.quiz-timer-fill.warn { background: #f0a020; }
.quiz-timer-fill.danger { background: #e0405a; }

.quiz-body { padding: 1.6rem 1.7rem 1.8rem; }

.quiz-step {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-gray);
}

.quiz-prompt { font-size: 1.7rem; font-weight: 700; margin: 0.4rem 0 1.3rem; letter-spacing: -0.02em; }
.quiz-prompt small { display: block; font-size: 0.95rem; font-weight: 400; color: var(--text-gray); margin-top: 0.3rem; }

.quiz-options { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgb(52 52 52 / 70%);
  background: #0d1622;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.quiz-option:hover:not(:disabled) { border-color: rgba(70, 164, 248, 0.6); }
.quiz-option:disabled { cursor: default; }

.quiz-key {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-gray);
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

/* Under the word, in the same cell: the reader needs both at once, and a
   second column would halve the space the word itself gets. */
.opt-roman {
  display: block;
  font-size: 0.78rem;
  color: var(--text-gray);
  margin-top: 0.1rem;
}

.quiz-option.correct { border-color: #32d74b; background: rgba(50, 215, 75, 0.14); }
.quiz-option.wrong { border-color: #e0405a; background: rgba(224, 64, 90, 0.14); }

.quiz-credit { font-size: 0.72rem; color: rgba(255, 255, 255, 0.35); margin-top: 0.9rem; }
.quiz-credit a { color: inherit; }

/* Results --------------------------------------------------------------- */

.quiz-score { font-size: 4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.quiz-score span { color: var(--text-gray); font-size: 1.6rem; }
.quiz-verdict { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin: 0.6rem 0 1.6rem; }

.quiz-review { list-style: none; padding: 0; margin: 0 0 1.8rem; text-align: left; }

.quiz-review li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 1rem;
}

.quiz-review li:last-child { border-bottom: none; }
.quiz-review .ok { color: #32d74b; }
.quiz-review .ko { color: #e0405a; }
.quiz-review .fr { color: #7ec8f4; }

/* The app gets explained here rather than dropped on the reader as a badge:
   they have just finished five questions and earned a sentence about why. */
.quiz-outro {
  position: relative;
  margin: 2.2rem 0 1.6rem;
  padding: 1.6rem 1.7rem 1.7rem 1.7rem;
  background: #0d1622;
  border: 1px solid rgb(52 52 52 / 60%);
  border-radius: 14px;
  text-align: left;
}

.quiz-outro h3 { font-size: 1.15rem; margin: 0.4rem 0 0.9rem; padding-right: 3rem; }
.quiz-outro .app-row { margin-bottom: 1.1rem; }
.quiz-outro p { font-size: 0.98rem; color: #bdbdbd; margin-bottom: 0.8rem; }
.quiz-outro .nav-cta { display: inline-block; margin-top: 0.4rem; }

.quiz-outro .callout-mascot {
  position: absolute;
  top: -18px;
  right: -14px;
  left: auto;
  width: 66px;
  transform: rotate(10deg);
}

.quiz-again {
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.quiz-again:hover { border-color: rgba(70, 164, 248, 0.7); }

@media (max-width: 600px) {
  .quiz-photo { height: 180px; }
  .quiz-body { padding: 1.2rem 1.2rem 1.4rem; }
  .quiz-prompt { font-size: 1.4rem; }
}
