/* Specialization Quizzes — sober dark+gold, same family as /library-map. */

.lq-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a0a0c;
  color: #e8e4da;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---- top bar ------------------------------------------------------------- */
.lq-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(12, 10, 7, 0.92);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  position: sticky;
  top: 0;
  z-index: 5;
}
.lq-back { display: flex; align-items: center; gap: 10px; color: #e8e4da; text-decoration: none; font-size: 14px; white-space: nowrap; }
.lq-back img { border-radius: 7px; display: block; }
.lq-back:hover span { color: #d4af37; }
.lq-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.lq-title strong { font-size: 15px; letter-spacing: 0.02em; }
.lq-title__sub { font-size: 12px; color: #9a927f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lq-links { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lq-links a { color: #b8b0a0; font-size: 13px; text-decoration: none; }
.lq-links a:hover { color: #d4af37; }
.lq-cta {
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #d4af37, #b8912a);
  color: #171207 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.lq-cta:hover { filter: brightness(1.08); }

/* ---- module grid --------------------------------------------------------- */
.lq-main { flex: 1 1 auto; width: 100%; max-width: 1180px; margin: 0 auto; padding: 26px clamp(12px, 4vw, 40px) 60px; box-sizing: border-box; }
.lq-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }

.lq-mod {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0d0b09;
  padding: 14px 16px;
}
.lq-mod--free { border-color: rgba(212, 175, 55, 0.45); }
.lq-mod__head { display: flex; align-items: baseline; gap: 8px; }
.lq-mod__num { color: #6d6654; font-size: 11px; }
.lq-mod__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.lq-mod__free { margin-left: auto; color: #d4af37; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.lq-mod__count { margin: 4px 0 10px; color: #8a8270; font-size: 11.5px; }

.lq-levels { display: flex; gap: 8px; flex-wrap: wrap; }
.lq-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #cfc8b8;
  font-size: 12px;
  cursor: pointer;
}
.lq-level:hover { border-color: #d4af37; color: #d4af37; }
.lq-level--locked { color: #6d6654; cursor: default; }
.lq-level--locked:hover { border-color: rgba(255, 255, 255, 0.12); color: #6d6654; }
.lq-level__best { color: #d4af37; font-size: 10.5px; }
.lq-lockhint { margin: 10px 0 0; color: #7d7663; font-size: 11px; }
.lq-lockhint a { color: #d4af37; text-decoration: none; }

/* ---- quiz runner --------------------------------------------------------- */
.lq-runner { max-width: 720px; margin: 0 auto; }
.lq-quit { border: 0; background: transparent; color: #9a927f; font-size: 13px; cursor: pointer; padding: 0 0 18px; }
.lq-quit:hover { color: #d4af37; }
.lq-run__module { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #d4af37; }
.lq-run__level { margin: 0 0 4px; font-size: 22px; }
.lq-run__progress { margin: 0 0 22px; color: #8a8270; font-size: 12.5px; }
.lq-run__q { margin: 0 0 16px; font-size: 17px; line-height: 1.45; font-weight: 600; }

.lq-choices { display: flex; flex-direction: column; gap: 9px; }
.lq-choice {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #0d0b09;
  color: #ddd6c6;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px;
  cursor: pointer;
}
.lq-choice:hover:not(:disabled) { border-color: rgba(212, 175, 55, 0.55); color: #fff; }
.lq-choice:disabled { cursor: default; opacity: 0.55; }
.lq-choice--right { border-color: #4caf72; color: #a9e6c0; opacity: 1 !important; }
.lq-choice--wrong { border-color: #c0564f; color: #eda69f; opacity: 1 !important; }

.lq-feedback { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; }
.lq-verdict { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.lq-verdict--right { color: #4caf72; }
.lq-verdict--wrong { color: #c0564f; }
.lq-why { margin: 0 0 14px; color: #b8b0a0; font-size: 13.5px; line-height: 1.5; }
.lq-next {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.12);
  color: #d4af37;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.lq-next:hover { background: rgba(212, 175, 55, 0.2); }

.lq-result { text-align: center; padding: 30px 0 10px; }
.lq-result__score { margin: 0 0 8px; font-size: 34px; color: #d4af37; }
.lq-result__msg { margin: 0 0 22px; color: #b8b0a0; font-size: 14px; }
.lq-result__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- footer -------------------------------------------------------------- */
.lq-foot { border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 14px 18px 22px; }
.lq-foot p { margin: 0 auto; max-width: 1180px; color: #7d7663; font-size: 11.5px; line-height: 1.5; }

@media (max-width: 700px) {
  .lq-title__sub { display: none; }
  .lq-links a:not(.lq-cta) { display: none; }
}
