/* style.css — quiz-specific UI. The page wrapper, nav, and footer come from
   landing.css via the unified shell; rules below only style the quiz content
   inside main#quiz on /quiz. */

main#quiz {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 28px 80px;
  position: relative;
  z-index: 2;
}

@media (max-width: 800px) {
  main#quiz { padding: 40px 20px 60px; }
}
main#quiz .quiz-status {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink-soft); font-size: 13px; margin-bottom: 14px;
  padding: 0 4px;
}
main#quiz .quiz-status a { color: var(--orange); cursor: pointer; }

#question-card {
  background: var(--bg-elev); color: var(--ink);
  padding: 36px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.counter { color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 12px; }
.study-link { color: var(--orange); text-decoration: none; font-size: 13px; font-weight: 600; }
.study-link:hover { color: var(--orange-soft); }
.signs-strip { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.4rem 0 1.4rem; }
.signs-strip.hidden { display: none; }
.signs-strip .sign { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; min-width: 96px; max-width: 140px; flex: 0 0 auto; }
.signs-strip .sign img { width: 100%; height: 64px; object-fit: contain; display: block; }
.signs-strip .sign figcaption { font-size: 11.5px; color: #2A3A4D; margin-top: 6px; line-height: 1.25; font-weight: 500; }
#prompt {
  font-family: var(--display);
  margin: 0.8rem 0 1.5rem;
  font-size: 22px; font-weight: 500; line-height: 1.25;
  color: var(--ink); letter-spacing: -0.015em;
}
#choices { display: grid; gap: 10px; }
.choice {
  padding: 16px 20px; background: var(--bg-soft);
  border: 2px solid var(--line); border-radius: 14px;
  text-align: left; cursor: pointer; font-size: 15px; font-weight: 500;
  color: var(--ink); transition: all 0.2s; font-family: inherit;
}
.choice:hover { border-color: var(--orange); transform: translateY(-1px); }
.choice.correct { background: rgba(31, 191, 158, 0.12); border-color: var(--teal); color: var(--ink); }
.choice.wrong { background: rgba(255, 92, 156, 0.1); border-color: var(--pink); color: var(--ink); }
.choice:disabled { cursor: default; }
#feedback { margin: 1rem 0; min-height: 1.5em; font-size: 14px; }
#feedback.ok { color: var(--teal); }
#feedback.err { color: var(--pink); }
#next-btn {
  padding: 13px 26px; background: var(--orange); color: var(--paper);
  border: 0; border-radius: 999px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
  box-shadow: 0 6px 20px -8px rgba(242, 92, 26, 0.6);
  transition: all 0.2s;
}
#next-btn:hover:not(:disabled) { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(242, 92, 26, 0.7); }
#next-btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

#ad-wall { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal { background: white; color: #222; max-width: 600px; width: 100%; padding: 2rem; border-radius: 14px; max-height: 90vh; overflow-y: auto; }
.modal h2 { margin-bottom: 0.5rem; }
.ad-container { margin: 1rem 0; aspect-ratio: 16/9; background: #000; }
.ad-container iframe { width: 100%; height: 100%; }
.sponsor-link { margin: 0.8rem 0 0.2rem; }
.sponsor-link a { color: #0033A0; font-weight: 600; text-decoration: none; }
.sponsor-link a:hover { text-decoration: underline; }
.sponsor-note { color: #888; font-size: 0.85rem; margin-bottom: 0.6rem; }
.timer-line { color: #666; margin: 0.5rem 0; }
#ad-continue { padding: 0.6rem 1.2rem; background: #0033A0; color: white; border: 0; border-radius: 6px; cursor: pointer; }
#ad-continue:disabled { opacity: 0.4; cursor: not-allowed; }
hr { margin: 1.5rem 0; border: 0; border-top: 1px solid #ddd; }
.signup-cta { background: #fff8dc; padding: 1.2rem; border-radius: 6px; }
.signup-cta h3 { margin-bottom: 0.3rem; }
.signup-cta form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
.signup-cta input { padding: 0.6rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.signup-cta button { padding: 0.6rem; background: #00843D; color: white; border: 0; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.login-link { margin-top: 0.8rem; font-size: 0.9rem; }
.login-link a { color: #0033A0; cursor: pointer; }
.error { color: #dc3545; margin-top: 0.5rem; min-height: 1.2em; }
.pre-ad-copy { font-size: 1.05rem; margin: 1rem 0 1.5rem; }
#pre-ad-ok { display: block; width: 100%; padding: 0.9rem; background: #0033A0; color: white; border: 0; border-radius: 6px; cursor: pointer; font-size: 1.05rem; font-weight: 600; }
#pre-ad-ok:hover { background: #002277; }
