/* ---------- Head ---------- */
.sc-head { justify-content: space-between; border-bottom: var(--rule); padding-bottom: var(--sp-4); }
.sc-title { font-family: var(--font-mono); font-size: var(--fs-lg); margin-top: var(--sp-1); }
.sc-title b { color: var(--accent); font-weight: 500; }
.sc-title .muted { font-size: var(--fs-sm); }
.sc-controls { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: end; }

/* Shared with the flashcards head; duplicated so this page needs only one stylesheet. */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg__btn { background: transparent; border: 0; padding: 0.35rem 0.7rem; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); cursor: pointer; line-height: 1.3; }
.seg__btn + .seg__btn { border-left: 1px solid var(--line); }
.seg__btn:hover { background: var(--paper-2); color: var(--ink); }
.seg__btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.linklike { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* ---------- Degree strip ---------- */
.sc-degrees { padding-top: var(--sp-5); }
.sc-degrees__strip {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 2px solid var(--ink); border-left: var(--rule);
}
.sc-deg {
  position: relative; display: grid; gap: 2px; justify-items: start; text-align: left;
  background: transparent; border: 0; border-right: var(--rule); border-bottom: var(--rule);
  padding: var(--sp-3); cursor: pointer; min-height: 4.25rem;
}
.sc-deg:hover { background: var(--paper-2); }
.sc-deg__label { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-lg); line-height: 1; }
.sc-deg__note { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink-2); }
.sc-deg kbd { position: absolute; top: var(--sp-2); right: var(--sp-2); }
.sc-deg.is-root .sc-deg__label { color: var(--accent); }
.sc-deg.is-character::after {
  content: ""; position: absolute; left: var(--sp-3); right: var(--sp-3); bottom: 0; height: 3px; background: var(--accent);
}
/* Hidden degree: struck out and faded, still clearly a button you can press to bring back. */
.sc-deg[aria-pressed="false"] { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--paper-2) 6px 7px); }
.sc-deg[aria-pressed="false"] .sc-deg__label,
.sc-deg[aria-pressed="false"] .sc-deg__note { color: var(--ink-3); text-decoration: line-through; }
.sc-deg[aria-pressed="false"].is-character::after { opacity: 0.35; }

.sc-degrees__hint { font-size: var(--fs-sm); margin-top: var(--sp-2); display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); align-items: baseline; }
.sc-degrees__keys { margin-left: auto; font-size: var(--fs-xs); }

/* ---------- Board ---------- */
.sc-board { padding: var(--sp-5) 0 var(--sp-2); }
.sc-board .fb-marker { cursor: pointer; }
/* Only a degree that was just switched on pops in; the rest of the neck stays still. */
.sc-board .fb-marker:not(.is-new) circle { animation: none; }
.sc-board .fb-marker:hover circle { stroke: var(--accent); }

/* ---------- Footer row ---------- */
.sc-foot { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: end; padding-top: var(--sp-3); border-top: var(--rule); }
.sc-blurb { color: var(--ink-2); max-width: 36rem; }
.sc-blurb b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; }
.sc-options { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: end; }

@media (max-width: 640px) {
  .sc-degrees__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sc-deg kbd, .sc-degrees__keys { display: none; }
}
