/* Scales & Arpeggios (js/theory/scales.js): #scales-screen / #sc-root. The
   same column as the Chord Bridge (gauntlet.css lends its bar, buttons,
   cards, pad and setup fold): control bar, the scene left with the engraved
   exercise right, the pad, the key hint. */
#sc-root { width: min(1330px, 97vw); display: flex; flex-direction: column; gap: 8px; }
.sc-bar {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center;
  color: #9aa3b8; font-size: 12px;
}
.sc-bar label { display: inline-flex; align-items: center; gap: 5px; }
.sc-bar select {
  background: #1a1f2b; color: #e8ecf6; border: 1px solid #2a3145;
  border-radius: 7px; padding: 4px 7px; font: inherit;
}
.sc-bar select:disabled { opacity: .55; }
.sc-title { font-weight: 700; color: #f3ecd8; font-size: 15px; }
.sc-record { color: #7f8aa5; font-style: normal; margin-left: 6px; }
#sc-stage {
  display: block; width: 100%; border-radius: 12px;
  border: 1px solid #2a3145; background: #000;
}
/* the exercise is stacked one bar per system, so it wants more width than
   the bridge's answer panel */
/* the engraved exercise sits LEFT of the scene (Lionel, 2026-09-02: on the
   right it was hard to see), by flex order so the markup and the scripts
   that address #sc-sheet-svg are untouched */
.sc-sheet { flex: 0 0 340px; order: -1; }
.sc-sh-bar { margin-bottom: 4px; }
.sc-sh-bar svg { display: block; }
.sc-sh-letters { font: 600 14px Georgia, serif; color: #332414; padding: 4px 2px; line-height: 1.5; }
.sc-sh-letters b { color: #8d7c52; font: 700 11px "Segoe UI", sans-serif; margin-right: 6px; }
.sc-sh-hint { color: #8d7c52; font-size: 12.5px; line-height: 1.4; padding: 2px; }
.sc-rduel { margin-top: 10px; color: #e7b54a; font-size: 13px; text-align: center; line-height: 1.5; }

/* ↩ Earlier rounds (2026-09-03): the look-back card over the scene. It wears
   the results card's dress (gauntlet.css .gb-rcard) and adds the exercise's
   name, its verdict and the run in letters; the engraved run itself goes to
   the ordinary sheet panel beside it, which is why this card stays narrow
   enough to leave that visible on a laptop. */
.sc-rvcard { max-width: 460px; }
.sc-rvname { font: 700 20px Georgia, serif; color: #e7b54a; text-align: center; margin-top: 10px; }
.sc-rvsub { color: #b9c1d4; font-size: 12.5px; text-align: center; margin-top: 3px; line-height: 1.5; }
.sc-rvres {
  display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center;
  align-items: baseline; margin-top: 9px; color: #8d94a8; font-size: 12.5px;
}
.sc-rvres b { color: #f3ecd8; font-weight: 700; }
.sc-rvres i { color: #d98b5b; font-style: normal; }
.sc-rvrun {
  font: 600 13px Georgia, serif; color: #e8ecf6; line-height: 1.6;
  margin-top: 8px; word-spacing: 3px; text-align: center;
}
.sc-rvh { font: 700 10px "Segoe UI", sans-serif; padding: 1px 5px; border-radius: 4px; color: #fff; margin-right: 6px; }
.sc-rvh.rh { background: #3b82c4; }
.sc-rvh.lh { background: #d9832b; }
.sc-rvcount { color: #8d94a8; font-size: 12px; align-self: center; min-width: 46px; text-align: center; }
#sc-back-round.on { border-color: #e7b54a; color: #e7b54a; }

/* 💡 Hint (2026-09-03): three a round, flashes the next key and plays it.
   The count is the whole state — a disabled button with 0 left reads as
   spent, one disabled mid-count-in simply waits. */
.sc-hintbtn b { color: #e7b54a; font-weight: 800; margin-left: 2px; }
.sc-hintbtn:disabled { opacity: .5; }
.sc-hintbtn.spent b { color: #8d7c52; }

/* ↻ Play it again (2026-09-03, solo only): a practice run says so in the
   round readout, so it is never taken for one of the twelve. */
.sc-practice-on { color: #e7b54a; font-weight: 700; }
.sc-practicebtn { border-color: #e7b54a; color: #e7b54a; }
@media (max-width: 1100px) { .sc-sheet { flex: 1 1 100%; } }
@media (max-width: 700px) {
  .sc-bar .gb-stats { margin-left: 0; width: 100%; font-size: 11.5px; }
  .sc-title { font-size: 13.5px; }
}

/* the player's standing at this game on the results card (2026-09-03: the
   duel shipped with no skill rank at all, so it had nothing to show) */
.sc-rrank { color: #9aa3b8; font-size: 13px; margin-top: 4px; }
.sc-rrank:empty { display: none; }
/* what the match paid, on the card the player is already reading */
.sc-rpay { color: #ffd978; font-size: 15px; font-weight: 700; margin-top: 6px; }
.sc-rpay:empty { display: none; }

/* 🗺 a learning plan's card (js/plan.js): its exercise named in the bar, in the
   plan's own blue so it never reads as a duel's note */
.sc-plannote { color: #9cc3ff; background: rgba(79, 143, 224, .14); max-width: 46vw; }

/* 🖐 Show me (2026-09-29, js/theory/scale-hand-show.js): a 3D hand plays the
   round's run with its fingering. Its own screen over the whole drill, not a
   card on the canvas: the drill's stage is a few hundred pixels tall on a
   laptop, too little for a hand to be read. The overlay canvas carries the
   drill's numbers (the next key's badge, a digit a fingertip, the pips). */
.sc-hand {
  position: fixed; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 7, 12, .78); backdrop-filter: blur(3px); padding: 12px;
}
.sc-hdcard {
  width: min(1180px, 100%); max-height: 100%; overflow: auto; background: #171c27; border: 1px solid #39415a;
  border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; gap: 10px;
}
.sc-hdhead { display: flex; align-items: center; gap: 12px; }
.sc-hdname { flex: 1; min-width: 0; }
.sc-hdname h2 { margin: 0; font: 700 21px Georgia, serif; color: #e7b54a; }
.sc-hdhead .gb-btn { flex: 0 0 auto; padding: 8px 14px; font-weight: 600; }
.sc-hdstage { position: relative; width: 100%; aspect-ratio: 16 / 8; max-height: 64vh; border-radius: 10px; overflow: hidden; background: #18282e; }
.sc-hdstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.sc-hdstage #sc-hdover { pointer-events: none; }
.sc-hdline {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%); max-width: 80%; pointer-events: none;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  padding: 4px 14px; color: #ffe9a6; font: 700 13px -apple-system, "Segoe UI", sans-serif; white-space: nowrap;
}
.sc-hdline:empty { display: none; }
.sc-hdstatus {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 90%; text-align: center;
  background: rgba(0, 0, 0, .7); border-radius: 999px; padding: 6px 14px; color: #c9c6bb; font-size: 13.5px;
}
.sc-hdstatus[hidden] { display: none; }
.sc-hdstatus.error { color: #ffb4ab; }
.sc-hdbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.sc-hdseg { display: inline-flex; flex-wrap: wrap; gap: 3px; background: #10141d; border: 1px solid #2a3145; border-radius: 10px; padding: 3px; }
.sc-hdseg button {
  font: 600 12.5px -apple-system, "Segoe UI", sans-serif; color: #9aa3b8; background: transparent;
  border: 1px solid transparent; border-radius: 7px; padding: 5px 9px; cursor: pointer;
}
.sc-hdseg button:hover { color: #f3ecd8; }
.sc-hdseg button.on { background: #2b3550; border-color: #3b82c4; color: #f3ecd8; }
#sc-showme.on { border-color: #e7b54a; color: #e7b54a; }
/* a learning plan's split card is about the crossing: the button asks */
#sc-showme.sc-showme-ask { border-color: #3b82c4; color: #9cc3ff; animation: sc-showme-ask 1.8s ease-in-out infinite; }
@keyframes sc-showme-ask { 50% { box-shadow: 0 0 0 4px rgba(59, 130, 196, .35); } }
@media (max-width: 700px) {
  .sc-hand { padding: 6px; }
  .sc-hdcard { padding: 10px; }
  .sc-hdhead { flex-wrap: wrap; }
  .sc-hdstage { aspect-ratio: 1 / 1; }
  .sc-hdline { font-size: 11.5px; max-width: 94%; }
}
