/* RCIC Exam Prep — theme matched to Jinny Academy (vibe-code-portal/assets/styles.css):
   dark cinematic, serif editorial headings, Inter body. The 404 decoy stays
   classic white (see #decoy overrides below); only the real app is dark. */
:root {
  --bg: #0a0a0a;
  --bg-soft: #131313;
  --bg-raised: #1a1a1a;
  --text: #f5f2ea;
  --muted: #a8a29e;
  --faint: #6b6560;
  --line: rgba(255, 255, 255, 0.13);
  --cta: #f5f2ea;
  --cta-text: #0a0a0a;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- 404 decoy stays classic white, like maid-chat ---------- */
/* FIX 2026-10-28: the dark body background showed as a black band above the
   decoy because .decoy-wrap used a top margin; the decoy now fills from the
   top with padding instead, and its text is forced dark (the dark-theme
   p rule would otherwise render it pale on white). */
#decoy { background: #fff; color: #222; min-height: 100vh; }
#decoy p, #decoy h1, #decoy h2 { color: #222; }
#decoy .decoy-txt p { color: #222; }
#decoy input, #decoy button { background: #fff; color: #222; }
#decoy input { border: 1px solid #dadce0; }
#decoy button { border: 1px solid #dadce0; }

/* ---------- Top bar, Academy style ---------- */
#appBody header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.4rem;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
#appBody header h1 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
}
#appBody header nav { display: flex; gap: 0.8rem; }
h1, h2, h3 { font-family: var(--serif); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 600; line-height: 1.12; margin: 0 0 0.4rem; }
h3 { font-size: 1.4rem; font-weight: 700; margin: 0.6rem 0 1.1rem; }
main { max-width: 880px; margin: 0 auto; padding: 0 1.4rem 48px; }
p, li { font-size: 1.06rem; line-height: 1.75; color: #ddd8cc; }
.banner {
  max-width: 880px;
  margin: 12px auto 0;
  padding: 0.8rem 1.1rem;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fcd34d;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 12px 0;
}
.card.placeholder { opacity: 0.75; }
.card:hover { background: rgba(255, 255, 255, 0.035); }
.note { font-size: 13px; color: var(--muted); }
/* The question is the largest text on a quiz page, by design. */
.question { font-size: 1.3rem; font-weight: 600; color: var(--text); line-height: 1.6; margin: 0.8rem 0 1.2rem; }
.context {
  background: var(--bg-raised);
  border-left: 4px solid var(--cta);
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.5;
  color: #ddd8cc;
}
button {
  padding: 0.95rem 1.4rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin: 4px 4px 4px 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--text);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
button:active { transform: scale(0.98); }
button:hover { border-color: var(--text); }
button:disabled { opacity: 0.5; cursor: default; }
/* Primary action (Practice / Exam / Submit) reads as Academy CTA: cream on black. */
button.primary { background: var(--cta); color: var(--cta-text); border: none; }
button.primary:hover { background: #ffffff; }
button.option, label.option {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  margin: 0.4rem 0;
  padding: 0.65rem 0.95rem;
  line-height: 1.45;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 400;
}
button.option:hover:not(:disabled), label.option:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }
input[type="email"], input[type="text"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin: 8px 0;
  font-size: 15px;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
}
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  margin: 0 0 0.7rem;
  font: inherit;
  resize: vertical;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.5;
}
.timer { font-size: 18px; font-weight: bold; font-variant-numeric: tabular-nums; }
.correct { color: var(--green); font-weight: bold; }
.wrong { color: var(--red); font-weight: bold; }
#loginMsg { font-size: 13px; color: var(--red); margin-top: 8px; min-height: 16px; }
.or { font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
#appBody footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1.8rem 1.4rem 2.4rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.82rem;
}
@media (max-width: 560px) {
  #appBody header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
