/* Study Quest — starter.css (V7.3, lane Q, builder Q1 v73-starter): THE STARTER QUEST CHAIN's card (js/starter-chain.js).
 * A person of Dawnmere Vale speaks: a parchment note in the forged frame of the quest card (css/hud.css .qc), the game's own
 * scroll marks (no gold "!" look-alike), the person's name with its hover. Safari-safe; reduced motion: no slide. */
.sqc {
  /* on the left, like a quest frame: the person and the hero stay in view on the map */
  position: fixed;
  left: 18px;
  top: 92px;
  width: min(440px, calc(100vw - 36px));
  max-height: calc(100vh - 230px);
  overflow: auto;
  padding: 12px 16px 12px 16px;
  color: var(--cx-ink-text);
  font: 400 15px/1.4 var(--cx-font-body);
  z-index: 960;   /* over the HUD (10) and an open book (950); the modals (1000) stay above */
  pointer-events: auto;   /* the HUD layer itself lets clicks through */
  outline: none;
  background: var(--cx-bg-vellum, #e6d6b0);
  border-radius: 1px;
  box-shadow: var(--cx-vellum-burn, inset 0 0 18px rgba(80, 40, 10, 0.35)), 0 0 0 1px rgba(176, 122, 60, 0.75), 0 0 0 2px #000,
    0 0 0 8px var(--cx-iron-2, #202328), 0 0 0 9px var(--cx-line, #030304), 0 14px 32px rgba(0, 0, 0, 0.75);
  animation: sqcIn var(--cx-dur-quick, 160ms) ease-out;
}
@keyframes sqcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-height: 520px) { .sqc { top: 12px; max-height: calc(100vh - 24px); } }
@media (prefers-reduced-motion: reduce) { .sqc { animation: none; } }
.sqc-head { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; padding: 0 0 7px 30px;   /* V7.8 lane V: flat rule (no gradient); room for the X */
  border-bottom: 1px solid rgba(122, 29, 16, 0.4); }
.sqc-seal { flex: none; width: 30px; height: 30px; margin-top: 1px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35)); }
.sqc-ht { flex: 1 1 auto; min-width: 0; }
.sqc-title { font: 700 19px/1.15 var(--cx-font-head); letter-spacing: 0.03em; color: var(--cx-ink-rubric); }
.sqc-who { margin-top: 3px; font: 400 14px/1.3 var(--cx-font-body); color: var(--cx-ink-text); }
.sqc-who .ot, .sqc-who .sqc-w { font-weight: 700; }
.sqc-n { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 2px; font: 700 11px/17px var(--cx-font-label); letter-spacing: 0.06em;
  color: #f6e7c4; background: rgba(122, 29, 16, 0.78); vertical-align: 1px; }
.sqc-x { flex: none; width: 26px; height: 26px; border: 1px solid rgba(60, 30, 10, 0.55); border-radius: 2px; cursor: pointer;
  background: rgba(255, 246, 222, 0.5); color: var(--cx-ink-rubric); font: 700 17px/1 var(--cx-font-body); }
.sqc-x:hover { background: rgba(255, 246, 222, 0.85); }
.sqc-text { margin: 0 0 9px; }
.sqc-dim { color: var(--cx-ink-text-dim); }
.sqc-obj { margin: 0 0 8px; }
.sqc-lab { display: block; font: 700 12px/1 var(--cx-font-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--cx-ink-rubric); margin: 0 0 4px; }
.sqc-obj ul { margin: 0; padding: 0; list-style: none; }
.sqc-obj li { position: relative; padding: 1px 0 1px 22px; }
.sqc-obj li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border: 1.5px solid #6b4a20; border-radius: 2px; background: rgba(255, 250, 236, 0.6); }
.sqc-obj li.is-done { color: var(--cx-ink-text-dim); }
.sqc-obj li.is-done::after { content: ''; position: absolute; left: 5px; top: 6px; width: 5px; height: 9px; border: solid #2f7a5e; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.sqc-num { font-weight: 700; color: var(--cx-ink-rubric); white-space: nowrap; }
.sqc-rew { margin: 0 0 8px; }
.sqc-note, .sqc-next { margin: 4px 0 8px; padding: 6px 9px; border-left: 3px solid rgba(122, 29, 16, 0.55); background: rgba(255, 246, 222, 0.45); font-size: 14px; }
.sqc kbd { display: inline-block; min-width: 1.3em; padding: 0 4px; border: 1px solid rgba(60, 30, 10, 0.5); border-radius: 2px; background: rgba(255, 250, 236, 0.75);
  font: 700 12px/1.35 var(--cx-font-label); text-align: center; color: var(--cx-ink-text); }
.sqc-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.sqc-b { min-height: 30px; padding: 0 14px; border: 1px solid #000; border-radius: var(--cx-r-1, 2px); cursor: pointer;
  font: 700 13px/1 var(--cx-font-label); letter-spacing: 0.05em; color: #f7e3b2; text-shadow: 0 1px 0 #000;
  background: var(--cx-tex-gilt), #6a4520;   /* V7.8 lane V: flat colour + texture, never a gradient */
  box-shadow: inset 0 1px 0 rgba(255, 228, 166, 0.3), inset 0 0 0 1px rgba(242, 201, 122, 0.6), 0 2px 0 rgba(0, 0, 0, 0.45); }
.sqc-b:hover, .sqc-b:focus-visible { box-shadow: inset 0 0 0 1px rgba(255, 224, 160, 0.95), inset 0 -6px 10px rgba(255, 138, 61, 0.25), 0 2px 0 rgba(0, 0, 0, 0.45); outline: none; }
.sqc-b2 { color: var(--cx-ink-text); text-shadow: none; background: rgba(255, 246, 222, 0.55); box-shadow: inset 0 0 0 1px rgba(60, 30, 10, 0.45); border-color: rgba(60, 30, 10, 0.6); }
.sqc-b2:hover, .sqc-b2:focus-visible { background: rgba(255, 246, 222, 0.9); box-shadow: inset 0 0 0 1px rgba(60, 30, 10, 0.7); }
.sqc-b kbd { background: none; border: 0; color: inherit; padding: 0 0 0 4px; }
.sqc-w { border-bottom: 1px dotted rgba(122, 29, 16, 0.6); cursor: help; }
/* the chain in the Nauka's Quests tab and the tracker: the rows open the person's card */
.sqc-ql li[data-sqc] { cursor: pointer; }
.sqc-ql li.is-locked { opacity: 0.55; cursor: default; }
.tq-starter { cursor: pointer; }

/* V7.8 lane V (v78-start): the Putnik's Road. The card's Why / Where lines, and THE POINTER: a soft ring and a small arrow over the
 * current step's real button (js/starter-chain.js paintRing). Never in the way: pointer-events none; flat colour, no gradient; a
 * slow breath (none with reduced motion); "Show me" makes it pulse a little stronger for two seconds. */
.sqc-why, .sqc-where { margin: 0 0 8px; }
.sqc-why .sqc-lab, .sqc-where .sqc-lab, .sqc-rew .sqc-lab { display: inline; margin-right: 6px; }
.sqc-auto { border-left-color: rgba(47, 122, 94, 0.6); color: var(--cx-ink-text-dim); }
.sqc-glow { position: fixed; z-index: 2000; pointer-events: none; }   /* only ever over a button that is on top at its centre (js checks), so it may sit high: over a window or the Game Menu too */
.sqc-glow.hidden { display: none; }
.sqc-glow__ring { position: absolute; inset: 0; border: 2px solid #f2c45a; border-radius: 4px;
  box-shadow: 0 0 0 1px #2a1a06, 0 0 0 4px rgba(242, 196, 90, 0.28), inset 0 0 0 1px rgba(42, 26, 6, 0.6);
  animation: sqpBreath 2.4s ease-in-out infinite; }
.sqc-glow__arrow { position: absolute; left: 50%; bottom: calc(100% + 3px); width: 0; height: 0; margin-left: -8px;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid #f2c45a;
  filter: drop-shadow(0 1px 0 #2a1a06); animation: sqpBob 2.4s ease-in-out infinite; }
.sqc-glow.is-below .sqc-glow__arrow { bottom: auto; top: calc(100% + 3px); border-top: 0; border-bottom: 11px solid #f2c45a; }
.sqc-glow.is-flash .sqc-glow__ring { animation-duration: 0.8s; border-color: #ffd98a; }
@keyframes sqpBreath { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes sqpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .sqc-glow__ring, .sqc-glow__arrow { animation: none; } }
body.reduced-motion .sqc-glow__ring, body.reduced-motion .sqc-glow__arrow { animation: none; }
/* V7.15 (firststeps): the Pouka, Vodila's lessons (js/tutorial.js): the same card as the starter's */
.tq-tutorial { cursor: pointer; }
.sqt-list { margin: 0; padding: 0 0 0 20px; }
.sqt-list li { margin: 1px 0; }
.sqt-list li.is-done { color: var(--cx-ink-text-dim); text-decoration: line-through; text-decoration-thickness: 1px; }
.sqt-az { margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid rgba(60, 30, 10, 0.25); }
.sqt-h { margin: 0 0 6px; }
.sqt-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.sqt-az .sqt-list { padding: 0; }
