/* quiz.css — Transform owners: .qz-card = entrance (anim-card-in) · .qz-opt-label = pop / shake. */

.qz-center { max-width: 520px; }
.qz-stage { width: 100%; display: flex; justify-content: center; }
.qz-stage > * { width: min(92vw, 480px); }
.qz-out { animation: fadeOut .3s ease forwards; }
.qz-intro { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 8px 0; }
.qz-intro-text { max-width: 28ch; }

.qz-card { display: flex; flex-direction: column; gap: 14px; }
.qz-progress { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-700); text-align: center; }
.qz-dots { display: flex; justify-content: center; gap: 6px; }
.qz-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(122, 18, 51, .18); }
.qz-dot.is-done { background: var(--rose); }
.qz-dot.is-current { background: var(--rose-700); box-shadow: 0 0 0 3px rgba(233, 30, 99, .2); }
.qz-question { font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--ink); text-align: center; }
.qz-options { display: flex; flex-direction: column; gap: 10px; }
.qz-opt {
  position: relative;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(122, 18, 51, .15);
  background: rgba(122, 18, 51, .06);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color .25s ease, color .25s ease, opacity .25s ease, box-shadow .3s ease;
}
.qz-opt:disabled { cursor: default; }
.qz-opt-label { display: inline-block; }
.qz-opt-label.is-pop { animation: bounceIn .6s var(--ease-back); }
.qz-opt-label.is-shake { animation: shake .42s ease-in-out; }
.qz-opt.is-right { background: var(--rose); border-color: var(--rose); color: #fff; opacity: 1; }
.qz-opt.is-wrong { opacity: .4; text-decoration: line-through; }
.qz-opt.is-hint:not(:disabled) { animation: yesGlow 2.2s ease-in-out infinite; border-color: rgba(233, 30, 99, .5); }
.qz-tease {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(233, 30, 99, .1);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.qz-tease.is-in { animation: slideDown .45s var(--ease-out) both; }
.qz-feedback { min-height: 22px; font-size: 16px; font-weight: 600; color: var(--rose-700); text-align: center; }
.qz-continue { align-self: center; color: var(--rose-700); }

.qz-results { align-items: center; text-align: center; gap: 10px; padding-top: 32px; }
.qz-score { font-size: clamp(44px, 14vw, 64px); font-weight: 700; color: var(--rose); line-height: 1.05; animation: bounceIn .8s var(--ease-back) .15s both; }
.qz-finish { font-size: 18px; font-weight: 600; color: var(--ink); }
.qz-retry { font-size: 15px; color: var(--ink-soft); }
.qz-again { color: var(--rose-700); font-size: 14px; }

@media (max-height: 680px) {
  .qz-card { gap: 10px; }
  .qz-question { font-size: 20px; }
  .qz-opt { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .qz-opt-label.is-pop, .qz-opt-label.is-shake, .qz-tease.is-in, .qz-score { animation: none !important; }
  .qz-opt.is-hint:not(:disabled) { animation: none; box-shadow: 0 0 0 3px rgba(233, 30, 99, .35); }
}
