.notation-board {
  --notation-step: calc(var(--line-gap) / 2);
  --symbol-width: clamp(13px, 1.45vw, 22px);
  --symbol-height: clamp(8px, .88vw, 13px);
  --stem-height: clamp(21px, 2.5vw, 38px);
  --beamed-gap: clamp(6px, 1vw, 16px);
}
.mini-staff {
  --notation-step: 4px;
  --symbol-width: 11px;
  --symbol-height: 7px;
  --stem-height: 17px;
  --beamed-gap: 6px;
}
.mini-meter {
  color: var(--ink);
  font: 800 13px/.85 Georgia, serif;
  text-align: left;
}
.notation-figure {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: var(--beamed-gap);
  height: var(--symbol-height);
  transform: translateY(calc(var(--notation-step) * var(--pitch-steps, 0)));
}
.pitch-do { --pitch-steps: 6; }
.pitch-re { --pitch-steps: 5; }
.pitch-mi { --pitch-steps: 4; }
.pitch-fa { --pitch-steps: 3; }
.pitch-sol { --pitch-steps: 2; }
.pitch-la { --pitch-steps: 1; }
.pitch-Do { --pitch-steps: -1; }
.notation-note {
  position: relative;
  width: var(--symbol-width);
  height: var(--symbol-height);
}
.notation-note::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ink);
  border-radius: 50%;
  transform: rotate(-16deg);
}
.notation-note::after {
  content: '';
  position: absolute;
  right: 1px;
  bottom: 50%;
  width: 2px;
  height: var(--stem-height);
  background: var(--ink);
}
.notation-figure.beamed::after {
  content: '';
  position: absolute;
  left: calc(var(--symbol-width) - 3px);
  right: 1px;
  bottom: calc(50% + var(--stem-height) - 3px);
  height: 3px;
  background: var(--ink);
}
.notation-ledger {
  position: absolute;
  top: 50%;
  inset-inline: -4px;
  border-top: 1px solid var(--ink);
}
.notation-flag {
  position: absolute;
  left: calc(100% - 3px);
  bottom: calc(50% + var(--stem-height) - 9px);
  width: 8px;
  height: 9px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  border-top-right-radius: 8px;
}
.score-panel .notation-board [data-slot].notation-slot {
  width: calc(100% - 4px);
  min-height: 44px;
  height: calc(var(--line-gap) * 3);
  padding: 0;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
}
.score-panel .notation-board [data-slot].notation-slot:hover { background: #d3edff3d; }
.score-panel .notation-board [data-slot].notation-slot.wrong { border-color: #b01f2a; background: #fbe3df66; }
.score-panel .notation-board [data-slot].notation-slot.correct { border-color: #377241; background: #e2f2db66; }
.notation-board .order-bar .notation-slot {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  place-items: center;
}
.notation-target {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  width: clamp(24px, 3vw, 46px);
  aspect-ratio: 1;
  border: 1px dashed #879aaf;
  border-radius: 50%;
  background: #fff;
}
.notation-target::before {
  content: '';
  width: 3px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #526479;
}
#palette .rhythm-tile {
  display: grid;
  gap: 0;
  justify-items: center;
  width: clamp(118px, 13vw, 198px);
  min-height: 82px;
  line-height: 1.1;
}
.rhythm-tile .mini-staff { width: 78%; border: 0; }
.rhythm-tile .mini-clef { display: none; }
