/* Luminary · fair boss fights (wave 1, fair-boss). Registered on every page (routes_boss.register_stylesheet), after
   quests.css. Tokens only (luminary.css), both themes; the studio world's rules are at the bottom.
   - Tool-Chest Red stays the fight's own color (hits, the boss vise). A ready check is not a fight yet: blue.
   - "Not yet" and "too fast to count" are amber, never red. A rush mark is a dashed amber notch with the
     fast-forward icon, so it reads without color too (dashed = didn't happen / didn't count).
   - No timer anywhere, no animation of its own; the shared just-hung moment is the one celebration.
   - Touch: 44px targets on coarse pointers; everything stacks at 320px. */

/* ------------------------------------------------------------------ rush marks: answers too fast to count */
.q-hits li.is-rush { border-style: dashed; border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.q-notches > span.is-rush { border-style: dashed; border-color: var(--warn); background: var(--warn-soft); }
.q-rush-note { display: flex; align-items: flex-start; gap: 8px; max-width: 70ch; padding: 10px 14px; border-radius: var(--r); background: var(--warn-soft); color: var(--ink); }
.q-rush-note > .icon { color: var(--warn); flex: none; margin-top: 2px; }

/* ------------------------------------------------------------------ the ready check: blue, not the fight's red */
.q-bench-ready .q-vise-boss { background: var(--blue-soft); color: var(--blue); }
.q-ready .q-hits li { border-color: var(--blue); }
.q-ready .q-hits li.is-hit { background: var(--blue); color: var(--blue-ink); }
.q-ready .q-hits li.is-miss { border-color: var(--line); }
.q-ready .q-hits li.is-skip { border-color: var(--line); }

/* ------------------------------------------------------------------ the pay line: now, and when it holds */
.q-boss-pay { white-space: normal; }
.q-boss-pay .num { font-family: var(--font-mono); font-weight: 500; color: var(--ink); white-space: nowrap; }
.q-extra { font: 500 .82rem var(--font-mono); color: var(--ink-2); }

/* ------------------------------------------------------------------ walking away: quiet, deliberate */
.q-walk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; }
.q-walk-note { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: .9rem; }
.q-walk .btn .icon { color: var(--ink-2); }

/* ------------------------------------------------------------------ the training round offer and tough days */
.q-train-offer { padding: 18px; border-radius: var(--r-lg); background: var(--surface-2); }
.q-train-offer .section-title { display: flex; align-items: center; gap: 8px; }
.q-train-offer .section-title .icon { color: var(--ink-2); }
.q-btn-train .icon { color: var(--ink-2); }
.q-train-note { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: .9rem; }

/* ------------------------------------------------------------------ a skill held on its tune-up */
.q-held { display: flex; align-items: flex-start; gap: 8px; max-width: 70ch; padding: 10px 14px; border-radius: var(--r); background: var(--good-soft); color: var(--ink); }
.q-held > .icon { color: var(--good); flex: none; margin-top: 2px; }
.q-held .num { font-family: var(--font-mono); font-weight: 500; }

/* ------------------------------------------------------------------ the one-time rules notice on the board */
.q-rules {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px 16px;
  padding: 14px 16px; border-radius: var(--r-lg); background: var(--blue-soft); color: var(--ink);
}
.q-rules-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--blue); }
.q-rules-body h3 { font-size: 1.02rem; }
.q-rules-list { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; max-width: 68ch; }
.q-rules-list li::marker { color: var(--blue); }
.q-rules-list .num { font-family: var(--font-mono); font-weight: 500; }
.q-rules-ok { align-self: start; }
@media (max-width: 560px) {
  .q-rules { grid-template-columns: auto minmax(0, 1fr); }
  .q-rules-ok { grid-column: 1 / -1; }
  .q-rules-ok .btn { width: 100%; }
}

/* ------------------------------------------------------------------ touch: 44px targets */
@media (pointer: coarse) {
  .q-walk .btn, .q-rules-ok .btn { min-height: 44px; }
}

/* ------------------------------------------------------------------ the studio world: card stock on the cork */
/* The rules notice and the training offer are cards taped to the board (white stock, ink edge, the swatch along the
   top), the way the studio's quest cards are; colors stay tokens. */
[data-world="studio"] .q-rules {
  border: 1px solid var(--card-edge); border-radius: var(--r-sm); background: var(--card);
  box-shadow: inset 0 4px 0 var(--swatch-cornflower), var(--shadow-hung); padding-top: 18px;
}
[data-world="studio"] .q-rules-icon { background: var(--kraft); color: var(--ink); }
[data-world="studio"] .q-rules-list li::marker { color: var(--swatch-cornflower); }
[data-world="studio"] .q-train-offer {
  border: 1px solid var(--card-edge); border-radius: var(--r-sm); background: var(--card);
  box-shadow: inset 0 4px 0 var(--swatch-teal), var(--shadow-hung); padding-top: 22px;
}
[data-world="studio"] .q-held { background: var(--card); border: 1px solid var(--card-edge); box-shadow: inset 0 3px 0 var(--swatch-fern); }
[data-world="studio"] .q-rush-note { background: var(--card); border: 1px dashed var(--card-edge); }
[data-world="studio"] .q-extra { font-family: var(--font-body); font-weight: 700; }
