@import "https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap";
:root {
  color-scheme: dark;
  --bg:#101216;
  --panel:#181b20;
  --line:#2b2f35;
  --muted:#9199a5;
  --text:#eaf0f2;
  --mint:#75efd0;
  --violet:#b7a4f8;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px "DM Sans", sans-serif;
}
button,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  transition:
    background .15s,
    color .15s,
    transform .15s;
}
button:hover {
  filter: brightness(1.14);
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid #252930;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  font: 700 28px "Space Grotesk", sans-serif;
  letter-spacing: -1.4px;
}
.brand > span:not(.brand-icon) {
  color: var(--mint);
}
.brand-icon {
  display: block;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  flex: 0 0 36px;
  border-radius: 5px;
  width: 36px;
  height: 36px;
  margin-right: 10px;
}
.brand i {
  font: 500 10px "DM Sans", sans-serif;
  letter-spacing: 1px;
  color: var(--muted);
  border: 1px solid #353a42;
  padding: 4px 6px;
  border-radius: 4px;
  margin-left: 11px;
}
.topbar nav {
  display: flex;
  align-self: stretch;
  gap: 34px;
}
.topbar nav button {
  font-size: 14px;
  color: var(--muted);
  position: relative;
}
.topbar nav .nav-active {
  color: var(--text);
}
.nav-active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mint);
}
.topbar nav span {
  margin-left: 7px;
}
.connection {
  border: 1px solid #3b424b;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: #87909c;
  border-radius: 50%;
}
.connection.connected .status-dot {
  background: var(--mint);
  box-shadow: 0 0 9px #75efd055;
}
main {
  max-width: 1512px;
  margin: auto;
  padding: 30px 4% 16px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
  gap: 20px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--muted);
}
h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  letter-spacing: -1.2px;
  margin: 8px 0;
}
h1 span {
  color: var(--mint);
}
.intro p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.journey-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}
.journey-stat > strong {
  font: 500 30px "Space Grotesk", sans-serif;
}
.journey-stat > strong > span {
  font-size: 16px;
  color: #747e8b;
}
.journey-stat > span {
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.journey-stat > span:first-of-type {
  color: #d5bf82;
}
.stat-divider {
  height: 35px;
  width: 1px;
  background: var(--line);
  margin: 0 10px;
}
.workspace {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.lesson-panel,
.play-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
}
.panel-heading {
  padding: 23px 21px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.path-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #777777;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 11px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}
.path-toggle:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.panel-heading h2 {
  font: 500 19px "Space Grotesk", sans-serif;
  margin: 6px 0 0;
}
.chapter {
  font: 400 35px "Space Grotesk", sans-serif;
  color: #3b414a;
}
.path-progress {
  height: 3px;
  background: #2b3038;
  margin: 0 21px 17px;
  border-radius: 3px;
  overflow: hidden;
}
.path-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mint);
  transition: width .4s;
}
.lesson-list {
  padding: 0 10px;
}
.lesson-row {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 11px 10px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  margin-bottom: 4px;
  min-height: 52px;
}
.lesson-row:hover {
  background: #24292f;
}
.lesson-row.active {
  background: #23352f;
  border-color: #436659;
}
.lesson-number {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 7px;
  background: #292e35;
  color: #8a929e;
  font: 500 12px "Space Grotesk", sans-serif;
}
.active .lesson-number {
  background: var(--mint);
  color: #15392e;
}
.lesson-copy {
  flex: 1;
  min-width: 0;
}
.lesson-copy b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.lesson-copy small {
  font-size: 10px;
  letter-spacing: 1px;
  color: #d5bf82;
}
.lesson-lock {
  color: #78818d;
  font-size: 12px;
}
.lesson-row.locked {
  opacity: .48;
}
.path-footer {
  border-top: 1px solid var(--line);
  padding: 17px 20px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.path-footer span {
  color: var(--mint);
  margin-right: 6px;
}
.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  gap: 12px;
}
.session-header h2 {
  font: 500 25px "Space Grotesk", sans-serif;
  margin: 5px 0 0;
  letter-spacing: -.6px;
}
.difficulty {
  font-size: 10px;
  letter-spacing: 1.3px;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 6px;
}
.difficulty i {
  width: 5px;
  height: 5px;
  background: var(--mint);
  border-radius: 50%;
}
.session-controls {
  display: flex;
  align-items: center;
  padding: 0 24px 16px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.segmented {
  display: flex;
  background: #101317;
  border: 1px solid #30353d;
  padding: 3px;
  border-radius: 7px;
}
.segmented button {
  padding: 7px 16px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
}
.segmented .selected {
  background: #343b41;
  color: var(--mint);
  box-shadow: 0 1px 3px #0008;
}
.speed-control {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.speed-buttons {
  display: flex;
  gap: 3px;
}
.speed-buttons button {
  font-size: 12px;
  padding: 7px 9px;
  border-radius: 4px;
}
.speed-buttons .selected {
  background: #29322f;
  color: var(--mint);
}
.icon-button {
  font-size: 21px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.scorebar {
  display: grid;
  grid-template-columns: 1fr .8fr 1fr 1fr;
  padding: 16px 24px;
}
.scorebar > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.scorebar > div > span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.3px;
}
.scorebar strong {
  font: 500 24px "Space Grotesk", sans-serif;
  letter-spacing: 1px;
}
.scorebar strong span {
  font-size: 16px;
  color: var(--muted);
  margin-left: 4px;
}
.scorebar .best-score {
  text-align: right;
}
.best-score strong {
  color: #b7a4f8;
  font-size: 21px;
}
.instrument {
  margin: 0 16px;
  border: 1px solid #323840;
  border-radius: 8px;
  overflow: hidden;
  background: #101317;
}
.range-deck {
  min-height: 48px;
  display: grid;
  grid-template-columns: 86px auto 1fr 86px;
  align-items: stretch;
  gap: 1px;
  padding: 4px;
  background: #e7e9e5;
  border-bottom: 1px solid #d2d7d0;
}
.range-button,
.auto-fit,
.range-readout {
  border-radius: 7px;
  background: #fff;
  color: #333a36;
}
.range-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d8ddd6;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 2px 0 #cbd0c9;
}
.range-button small {
  font-size: 8px;
  letter-spacing: .7px;
  color: #778078;
}
.range-button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #cbd0c9;
}
.range-button:disabled {
  opacity: .35;
}
.auto-fit {
  min-width: 112px;
  padding: 0 12px;
  border: 1px solid #d8ddd6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .7px;
}
.auto-fit b {
  min-width: 28px;
  padding: 4px 6px;
  border-radius: 99px;
  background: #e7eae6;
  color: #687068;
  font-size: 8px;
}
.auto-fit.selected {
  border-color: #8bd34c;
  background: #f4ffe9;
  color: #3f7415;
}
.auto-fit.selected b {
  background: #58cc02;
  color: #fff;
}
.range-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 10px;
  color: #7a827b;
}
.range-readout span {
  font-size: 8px;
  letter-spacing: 1px;
}
.range-readout strong {
  font: 800 13px "Nunito", sans-serif;
  color: #303632;
}
.highway {
  height: clamp(220px, 29vh, 390px);
  position: relative;
  background: linear-gradient(#10151b, #131e21);
}
#note-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.highway-meta {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  color: #73858a;
  font-size: 9px;
  letter-spacing: 1.5px;
  gap: 10px;
}
.idle-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    radial-gradient(
      ellipse,
      #131d23f5 10%,
      #12182055 80%);
  padding: 20px;
  text-align: center;
}
.idle-overlay[hidden] {
  display: none;
}
.lesson-symbol {
  font: 500 40px "Space Grotesk", sans-serif;
  color: var(--mint);
  width: 64px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid #386657;
  border-radius: 12px;
  background: #1e393133;
  transform: rotate(-5deg);
  position: relative;
  margin-bottom: 5px;
}
.lesson-symbol span {
  position: absolute;
  right: -7px;
  bottom: 3px;
  font-size: 21px;
  color: #b7a4f8;
  transform: rotate(15deg);
}
.idle-overlay h3 {
  font: 500 22px "Space Grotesk", sans-serif;
  margin: 10px 0 5px;
}
.idle-overlay p {
  font-size: 13px;
  color: #a2acb6;
  max-width: 450px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.primary-button {
  background: var(--mint);
  color: #14352c;
  border: 1px solid var(--mint);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}
.primary-button span {
  margin-left: 22px;
  font-size: 11px;
}
.primary-button:active {
  transform: translateY(1px);
}
.demo-hint {
  margin-top: 11px;
  font-size: 10px;
  color: #849197;
}
.hit-line {
  position: absolute;
  bottom: 0;
  height: 3px;
  left: 0;
  right: 0;
  background: #88f7da;
  box-shadow: 0 0 15px #75efd07a;
  pointer-events: none;
}
.hit-line span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  color: #6fbca9;
  font-size: 8px;
  letter-spacing: 1.5px;
}
.piano {
  height: 112px;
  position: relative;
  display: flex;
  background: #090b0d;
}
.piano-key {
  position: absolute;
  top: 0;
  height: 100%;
  border: 0;
  border-right: 2px solid #111820;
  border-radius: 0 0 5px 5px;
  background:
    linear-gradient(
      #cad4d6,
      #f2f5f1 28%,
      #dce2df 94%,
      #a6b4b2 95%);
  color: #798a8b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0 10px;
  gap: 4px;
  touch-action: none;
  user-select: none;
}
.piano-key.black {
  height: 66%;
  background:
    linear-gradient(
      90deg,
      #191e24,
      #29313a 65%,
      #10151a);
  border: 1px solid #030609;
  border-bottom: 5px solid #0b1015;
  z-index: 2;
  color: #94a0ac;
  border-radius: 0 0 4px 4px;
  padding-bottom: 7px;
  box-shadow: 1px 4px 3px #0007;
}
.piano-key .note-name {
  font: 800 11px "Nunito", sans-serif;
}
.piano-key .computer-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #3c3c3c;
  font: 900 10px "Nunito", sans-serif;
  line-height: .9;
  opacity: 1;
}
.piano-key .computer-key i {
  font-style: normal;
}
.piano-key.black .note-name {
  font-size: 9px;
}
.piano-key.black .computer-key {
  color: #ffffff;
}
.piano-key.target {
  background:
    linear-gradient(
      #4aa48d,
      #c0f6db 65%,
      #8bddbe);
  color: #205142;
}
.piano-key.black.target {
  background: linear-gradient(#317765, #53b99b);
  color: #dbfff0;
}
.piano-key.held {
  background:
    linear-gradient(
      #5ed8b5,
      #99ffdc 60%,
      #59b69c);
  color: #153c32;
  box-shadow: inset 0 0 14px #46c89c, 0 -12px 20px #75efd02a;
}
.piano-key.wrong {
  background: linear-gradient(#e47786, #ffd5d9);
  color: #752f38;
}
.piano-key.black.wrong {
  background: #ba5a6e;
}
.keyboard-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  background: linear-gradient(#1b2026, #15191e);
  gap: 10px;
}
.deck-brand {
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: #9aa2ad;
}
.deck-brand b {
  color: var(--text);
}
.deck-brand small {
  font-size: 8px;
  color: #626e79;
  margin-left: 8px;
}
.keyboard-deck > span:nth-child(2) {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #8b9a9e;
}
.deck-leds {
  color: #6fe9c5;
  font-size: 7px;
  letter-spacing: 3px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.text-button {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.timeline {
  height: 3px;
  background: #343a43;
  border-radius: 2px;
  flex: 1;
  overflow: hidden;
}
.timeline > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mint);
}
#time-display {
  font: 11px "Space Grotesk", sans-serif;
  color: var(--muted);
  white-space: nowrap;
}
.pause-button {
  font-size: 12px;
  background: #2b3239;
  border: 1px solid #3c444d;
  border-radius: 5px;
  padding: 7px 12px;
  min-width: 84px;
}
.practice-tip {
  display: flex;
  align-items: center;
  padding: 12px 22px;
  gap: 11px;
}
.tip-icon {
  font-size: 20px;
  color: var(--mint);
}
.practice-tip p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  flex: 1;
  line-height: 1.6;
}
.practice-tip p strong {
  color: #bec8cc;
  font-weight: 500;
}
.practice-tip button {
  font-size: 10px;
  color: #a7b3b9;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  font-size: 9px;
  color: #73808d;
  letter-spacing: 1.2px;
}
footer > span:last-child {
  letter-spacing: 0;
  font-size: 11px;
}
footer > span:last-child > span {
  color: var(--mint);
  margin-left: 6px;
}
.footer-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #75efd0;
  border-radius: 50%;
  margin-right: 8px;
}
.feedback {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  text-align: center;
  font: 600 28px "Space Grotesk", sans-serif;
  color: var(--mint);
  pointer-events: none;
  text-shadow: 0 0 30px #75efd080;
}
.feedback small {
  display: block;
  font: 500 12px "DM Sans", sans-serif;
  margin-top: 5px;
  color: #c1d4d1;
}
.feedback.miss {
  color: #f69aab;
}
.feedback.pop {
  animation: pop .22s ease-out;
}
@keyframes pop {
  from {
    transform: scale(1.12);
    opacity: .3;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
dialog {
  width: min(490px, calc(100% - 32px));
  border: 1px solid #414952;
  border-radius: 16px;
  background: #191f25;
  color: var(--text);
  padding: 28px;
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #03080bcc;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font: 500 30px "Space Grotesk", sans-serif;
  margin: 15px 0 12px;
}
dialog p {
  font-size: 14px;
  line-height: 1.65;
  color: #a9b4c0;
}
dialog label {
  display: block;
  color: #ccd4d9;
  margin: 18px 0 8px;
  font-size: 13px;
}
dialog select {
  width: 100%;
  padding: 12px;
  background: #10161b;
  border: 1px solid #3b4550;
  border-radius: 6px;
  color: #d8e2e6;
}
dialog .small {
  font-size: 12px;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close-dialog {
  font-size: 26px;
  color: #8d9ba7;
  line-height: 1;
}
.secondary-button {
  border: 1px solid #4b5862;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 500;
}
.help-step {
  display: flex;
  gap: 17px;
  margin: 18px 0;
}
.help-step > b {
  color: var(--mint);
  font: 500 18px "Space Grotesk", sans-serif;
  margin-top: 2px;
}
.help-step h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.help-step p {
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}
.key-guide {
  padding: 14px;
  background: #11171c;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.key-guide span {
  font-size: 10px;
  letter-spacing: 1px;
  color: #8696a3;
}
.key-guide code {
  font-size: 13px;
  color: var(--mint);
  letter-spacing: 2px;
}
.result-stars {
  font-size: 40px;
  letter-spacing: 7px;
  color: #e4c884;
  margin: 24px 0 10px;
  text-align: center;
}
.result-stars .unearned {
  color: #3e4650;
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 25px 0;
}
.result-stats > div {
  background: #11171c;
  padding: 16px 8px;
  border-radius: 8px;
  text-align: center;
}
.result-stats b {
  display: block;
  font: 500 24px "Space Grotesk", sans-serif;
  color: var(--mint);
}
.result-stats span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.result-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.result-actions button {
  min-width: 160px;
}
.result-actions button b,
.result-actions button small {
  display: block;
}
.result-actions button b {
  font: inherit;
}
.result-actions button small {
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: .5px;
  opacity: .72;
}
.result-actions button:focus-visible {
  outline: 3px solid #58cc02;
  outline-offset: 3px;
}
body.hide-labels .computer-key {
  visibility: hidden;
}
@media (min-width: 1500px) {
  main {
    padding-top: 38px;
  }
  .lesson-row {
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .highway {
    height: 330px;
  }
}
@media (max-width: 1100px) {
.workspace {
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 14px;
  }
  .journey-stat {
    gap: 8px;
  }
  .journey-stat > strong {
    font-size: 26px;
  }
  .topbar {
    padding: 0 3%;
  }
  main {
    padding: 24px 3%;
  }
  .session-controls {
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .speed-control {
    gap: 6px;
  }
  .segmented button {
    padding: 7px 10px;
  }
  .lesson-copy b {
    font-size: 12px;
  }
  .session-header {
    padding-left: 18px;
  }
  .practice-tip {
    padding: 12px 15px;
  }
  .deck-brand small {
    display: none;
  }
}
.workspace,
.lesson-panel,
.panel-heading,
.lesson-row {
  transition: grid-template-columns .22s ease, width .22s ease, padding .22s ease, gap .22s ease;
}
body.path-collapsed .workspace {
  grid-template-columns: 82px minmax(0, 1fr);
}
body.path-collapsed .panel-heading {
  justify-content: center;
  padding: 17px 10px 12px;
}
body.path-collapsed .path-title,
body.path-collapsed .chapter,
body.path-collapsed .path-progress,
body.path-collapsed .lesson-copy,
body.path-collapsed .lesson-lock,
body.path-collapsed .path-footer {
  display: none;
}
body.path-collapsed .panel-actions {
  gap: 0;
}
body.path-collapsed .lesson-list {
  padding: 0 9px 10px;
}
body.path-collapsed .lesson-row {
  justify-content: center;
  min-height: 46px;
  padding: 8px;
  gap: 0;
}
body.path-collapsed .lesson-number {
  width: 34px;
  height: 34px;
}
@media (max-width: 800px) {
  .topbar {
    height: 64px;
    gap: 12px;
  }
  .topbar nav {
    gap: 16px;
  }
  .topbar nav button {
    font-size: 12px;
  }
  .brand {
    font-size: 23px;
  }
  .brand i {
    display: none;
  }
  .connection {
    font-size: 11px;
    padding: 8px;
  }
  .intro h1 {
    font-size: 28px;
  }
  .intro .eyebrow {
    font-size: 9px;
  }
  .journey-stat {
    display: none;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .lesson-panel {
    order: 2;
  }
  .lesson-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }
  .panel-heading {
    padding: 16px 20px;
  }
  .highway {
    height: 280px;
  }
  .path-footer {
    display: none;
  }
  footer > span:first-child {
    font-size: 8px;
  }
  .play-panel {
    order: 1;
  }
  .piano {
    height: 115px;
  }
  .session-header h2 {
    font-size: 23px;
  }
}
@media (max-width: 800px) {
  body.path-collapsed .workspace {
    grid-template-columns: 1fr;
  }
  body.path-collapsed .lesson-panel {
    min-height: 62px;
  }
  body.path-collapsed .panel-heading {
    justify-content: space-between;
    padding: 12px 18px;
  }
  body.path-collapsed .path-title {
    display: block;
  }
  body.path-collapsed .path-title h2 {
    display: none;
  }
  body.path-collapsed .lesson-list {
    display: none;
  }
}
@media (max-width: 500px) {
  .topbar nav button:first-child {
    display: none;
  }
  .topbar nav {
    margin-left: auto;
  }
  .topbar nav button {
    font-size: 11px;
  }
  .topbar {
    gap: 10px;
  }
  .connection {
    padding: 8px;
    gap: 6px;
  }
  .connection > span:last-child {
    display: none;
  }
  .brand-icon {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
    font-size: 20px;
    margin-right: 6px;
  }
  .intro h1 {
    font-size: 26px;
  }
  .intro p {
    font-size: 12px;
  }
  .intro {
    margin-bottom: 20px;
  }
  .session-controls {
    flex-wrap: wrap;
    gap: 8px;
  }
  .range-deck {
    grid-template-columns: 64px 94px 1fr 64px;
  }
  .range-button small,
  .range-readout span {
    display: none;
  }
  .auto-fit {
    min-width: 0;
    padding: 0 8px;
    letter-spacing: 0;
  }
  .speed-control {
    font-size: 10px;
  }
  .speed-buttons button {
    font-size: 10px;
    padding: 6px;
  }
  .icon-button {
    display: none;
  }
  .segmented button {
    font-size: 12px;
    padding: 7px 9px;
  }
  .scorebar {
    padding: 15px;
  }
  .scorebar strong {
    font-size: 20px;
  }
  .scorebar > div > span {
    font-size: 8px;
    letter-spacing: .8px;
  }
  .instrument {
    margin: 0 8px;
  }
  .highway-meta {
    font-size: 7px;
    left: 8px;
    right: 8px;
  }
  .piano {
    height: 100px;
  }
  .piano-key .note-name {
    font-size: 8px;
  }
  .piano-key.black .note-name {
    font-size: 6px;
  }
  .piano-key .computer-key {
    font-size: 8px;
  }
  .keyboard-deck {
    padding: 10px 8px;
  }
  .keyboard-deck > span:nth-child(2) {
    font-size: 6px;
    letter-spacing: .5px;
  }
  .deck-leds {
    display: none;
  }
  .transport {
    padding: 12px 10px;
    gap: 8px;
  }
  .pause-button {
    min-width: 67px;
    padding: 7px;
  }
  .practice-tip button {
    font-size: 9px;
  }
  .practice-tip {
    gap: 8px;
  }
  .practice-tip p {
    font-size: 10px;
  }
  .difficulty {
    font-size: 8px;
  }
  .session-header .eyebrow {
    font-size: 9px;
  }
  .idle-overlay p {
    font-size: 12px;
  }
  .demo-hint {
    font-size: 9px;
  }
  footer {
    line-height: 1.7;
  }
  footer > span:last-child {
    display: none;
  }
}
@media (min-width: 801px) and (max-height: 850px) {
  .topbar {
    height: 56px;
  }
  main {
    padding-top: 18px;
    padding-bottom: 10px;
  }
  .intro {
    display: none;
  }
  .session-header {
    padding: 12px 20px 10px;
  }
  .session-header h2 {
    font-size: 22px;
    margin-top: 3px;
  }
  .session-controls {
    padding: 0 20px 10px;
  }
  .segmented button {
    padding: 6px 14px;
  }
  .scorebar {
    padding: 10px 20px;
  }
  .scorebar strong {
    font-size: 22px;
  }
  .highway {
    height: calc(100vh - 550px);
    min-height: 160px;
  }
  .idle-overlay {
    padding: 12px;
  }
  .lesson-symbol {
    display: none;
  }
  .idle-overlay h3 {
    font-size: 20px;
    margin: 3px 0 5px;
  }
  .idle-overlay p {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .demo-hint {
    margin-top: 8px;
  }
  .piano {
    height: 88px;
  }
  .keyboard-deck {
    padding: 9px 12px;
  }
  .transport {
    padding: 10px 20px;
  }
  .practice-tip {
    padding: 9px 20px;
  }
  .lesson-row {
    min-height: 43px;
    padding-top: 7px;
    padding-bottom: 7px;
    margin-bottom: 3px;
  }
  .panel-heading {
    padding: 18px 20px 13px;
  }
  .path-footer {
    padding: 13px 20px;
  }
  footer {
    padding-top: 12px;
  }
}
.feedback.waiting {
  font-size: 20px;
  color: #b8e2d7;
  text-shadow: none;
  top: 45%;
}

/* Bright, friendly game theme */
:root {
  color-scheme: light;
  --bg: #f7f7f7;
  --panel: #ffffff;
  --line: #e5e5e5;
  --muted: #777777;
  --text: #3c3c3c;
  --mint: #58cc02;
  --violet: #ce82ff;
}
body {
  background: var(--bg);
  font-family: "Nunito", sans-serif;
  font-weight: 600;
}
h1,
.brand,
.panel-heading h2,
.session-header h2,
.scorebar strong,
.journey-stat > strong,
.lesson-number,
.feedback,
.idle-overlay h3,
dialog h2 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}
.topbar {
  background: #ffffff;
  border-bottom: 2px solid #e5e5e5;
}
.brand {
  color: #3c3c3c;
  letter-spacing: -1.2px;
}
.brand > span:not(.brand-icon) {
  color: #58cc02;
}
.brand-icon {
  border-radius: 6px;
  box-shadow: 0 3px 0 #46a302;
}
.brand i {
  color: #58a700;
  border: 2px solid #d7ffb8;
  background: #efffe4;
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}
.nav-active:after {
  height: 4px;
  border-radius: 4px 4px 0 0;
}
.connection {
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  background: #ffffff;
  border-radius: 12px;
  font-weight: 800;
}
.connection:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.connection.connected .status-dot,
.status-dot {
  background: #58cc02;
  box-shadow: none;
}
h1 span,
.difficulty,
.path-footer span,
.tip-icon {
  color: #58cc02;
}
.journey-stat > span:first-of-type,
.lesson-copy small,
.result-stars {
  color: #ffc800;
}
.stat-divider,
.session-controls,
.transport,
.path-footer {
  border-color: #e5e5e5;
  background-color: transparent;
}
.lesson-panel,
.play-panel {
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  background: #ffffff;
  border-radius: 18px;
}
.chapter {
  color: #e5e5e5;
  font-weight: 900;
}
.path-progress,
.timeline {
  height: 7px;
  background: #e5e5e5;
  border-radius: 999px;
}
.path-progress > span,
.timeline > span {
  background: #58cc02;
  border-radius: 999px;
}
.lesson-row {
  border: 2px solid transparent;
  border-radius: 13px;
  font-weight: 700;
}
.lesson-row:hover {
  background: #f7f7f7;
}
.lesson-row.active {
  background: #efffe4;
  border-color: #a5ed6e;
}
.lesson-number {
  background: #eeeeee;
  color: #777777;
  border-radius: 10px;
  font-weight: 900;
}
.active .lesson-number {
  background: #58cc02;
  color: #ffffff;
  box-shadow: 0 3px 0 #46a302;
}
.lesson-lock,
.chapter {
  color: #afafaf;
}
.segmented {
  background: #f7f7f7;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
}
.segmented button {
  border-radius: 8px;
  font-weight: 800;
}
.segmented .selected {
  color: #58a700;
  background: #ffffff;
  box-shadow: 0 2px 0 #d5d5d5;
}
.speed-buttons .selected {
  color: #1899d6;
  background: #ddf4ff;
}
.best-score strong {
  color: #a560e8;
}
.instrument {
  border: 2px solid #dcdfe3;
  background: #ffffff;
  border-radius: 14px;
}
.highway {
  background: linear-gradient(180deg, #f4fff0 0%, #edf9ff 100%);
}
.highway-meta {
  color: #8c9aa0;
  font-weight: 800;
}
.idle-overlay {
  background: radial-gradient(ellipse, #fffffffa 12%, #f5fff3dd 85%);
}
.lesson-symbol {
  color: #58a700;
  border: 2px solid #a5ed6e;
  background: #efffe4;
  border-radius: 18px;
  font-weight: 900;
}
.lesson-symbol span {
  color: #ce82ff;
}
.idle-overlay p,
.demo-hint {
  color: #777777;
}
.primary-button {
  color: #ffffff;
  background: #58cc02;
  border: 0;
  border-bottom: 5px solid #46a302;
  border-radius: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 900;
}
.primary-button:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}
.secondary-button,
.pause-button {
  color: #1899d6;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 11px;
  font-weight: 900;
}
.hit-line {
  background: #58cc02;
  box-shadow: 0 0 14px #58cc0266;
}
.hit-line span {
  color: #46a302;
  font-weight: 900;
}
.keyboard-deck {
  color: #4b4b4b;
  background: linear-gradient(#f4f4f4, #e8e8e8);
  border-top: 1px solid #d5d5d5;
}
.deck-brand,
.keyboard-deck > span:nth-child(2) {
  color: #777777;
}
.deck-leds {
  color: #58cc02;
}
.practice-tip {
  background: #fcfcfc;
}
.tip-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.practice-tip button {
  color: #1899d6;
  font-weight: 800;
}
.hand-guide {
  position: absolute;
  inset: 5px 0 auto;
  height: 19px;
  z-index: 4;
  pointer-events: none;
  display: flex;
  padding: 0 5px;
  gap: 4px;
}
.hand-guide > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 19px;
  padding: 0 7px;
  border: 1px solid #ffffffcc;
  border-radius: 999px;
  color: #ffffff;
  font-size: 7px;
  letter-spacing: .8px;
  font-weight: 900;
  box-shadow: 0 2px 5px #0002;
}
.hand-guide i {
  font-style: normal;
}
.hand-guide b {
  letter-spacing: 2px;
}
.left-hand {
  width: 46.66%;
  background: #1cb0f6dd;
}
.right-hand {
  width: 53.34%;
  background: #ce82ffdd;
}
.finger-label {
  position: absolute;
  top: 31px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
  background: #1cb0f6;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 0 #1899d6;
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px) scale(.8);
  transition: opacity .16s, transform .16s;
  z-index: 5;
}
.finger-label b {
  font-size: 7px;
  line-height: 6px;
}
.piano-key.black .finger-label {
  top: 26px;
  width: 23px;
  height: 23px;
}
.finger-label.left-finger {
  background: #1cb0f6;
  box-shadow: 0 3px 0 #1899d6;
}
.finger-label.right-finger {
  background: #ce82ff;
  box-shadow: 0 3px 0 #a560e8;
}
.piano-key.next-target .finger-label {
  opacity: .3;
  transform: translateY(-1px) scale(.9);
}
.piano-key.target .finger-label {
  opacity: 1;
  transform: translateY(0) scale(1);
}
body.hide-fingers .hand-guide,
body.hide-fingers .finger-label {
  display: none;
}
.feedback.waiting {
  color: #58a700;
}
dialog {
  color: #3c3c3c;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-bottom-width: 5px;
  border-radius: 20px;
}
dialog::backdrop {
  background: #21354780;
}
dialog p,
.help-step p {
  color: #777777;
}
dialog select,
.key-guide,
.result-stats > div {
  color: #3c3c3c;
  background: #f7f7f7;
  border-color: #e5e5e5;
}
.key-guide code,
.help-step > b,
.result-stats b {
  color: #58a700;
}
.footer-dot {
  background: #58cc02;
}

@media (max-width: 500px) {
  .tip-actions {
    gap: 8px;
  }
  .tip-actions button {
    font-size: 8px;
  }
  .hand-guide b {
    display: none;
  }
  .finger-label {
    width: 21px;
    height: 21px;
    font-size: 9px;
  }
}
@media(max-width:500px){.scorebar{gap:10px;grid-template-columns:1.2fr .7fr .95fr 1.15fr}.scorebar strong{font-size:18px}}

/* Learn, Play, and Settings views */
.song-panel {
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
}
.song-list {
  display: grid;
  gap: 10px;
  padding: 0 12px 16px;
}
.song-count {
  color: #777;
  font-size: 9px;
  letter-spacing: 1px;
}
.song-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: left;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 14px;
  background: #fff;
}
.song-row.active {
  border-color: #a5ed6e;
  background: #efffe4;
}
.song-row.locked {
  opacity: .48;
}
.song-art {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ce82ff;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 3px 0 #a560e8;
}
.song-row > span:last-child {
  min-width: 0;
}
.song-row b,
.song-row small,
.song-row i {
  display: block;
}
.song-row b {
  line-height: 1.15;
}
.song-row small {
  margin-top: 3px;
  color: #777;
  font-size: 10px;
}
.song-row i {
  margin-top: 6px;
  color: #e5ad00;
  font-size: 9px;
  font-style: normal;
  letter-spacing: .8px;
}
body.view-play .workspace {
  grid-template-columns: 265px minmax(0, 1fr);
}

.play-stage-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 2px solid #e5e5e5;
  border-radius: 15px;
  background: #fff;
}
.play-stage-tabs button {
  padding: 10px 15px;
  border-radius: 10px;
  color: #777;
  font-size: 12px;
  font-weight: 900;
}
.play-stage-tabs button b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  background: #e5e5e5;
  color: #777;
}
.play-stage-tabs button.selected {
  background: #efffe4;
  color: #58a700;
}
.play-stage-tabs button.selected b {
  background: #58cc02;
  color: #fff;
}
body.play-stage-songbook .workspace,
body.play-stage-player .workspace {
  grid-template-columns: minmax(0, 1fr);
}
body.play-stage-player .play-intro {
  margin-bottom: 14px;
}
body.play-stage-player .play-intro h1 {
  font-size: 28px;
}
.songbook-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 30px 18px;
}
.songbook-toolbar h2 {
  margin: 6px 0 4px;
  font-size: 25px;
}
.songbook-toolbar p {
  margin: 0;
  color: #777;
  font-size: 13px;
}
.songbook-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}
.import-midi {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 2px solid #84d8ff;
  border-bottom-width: 4px;
  border-radius: 12px;
  background: #ddf4ff;
  color: #168ec2;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}
.folder-midi {
  position: relative;
  overflow: hidden;
  border-color: #a5ed6e;
  background: #f2ffe8;
  color: #58a700;
  font-family: inherit;
}
.folder-picker-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.score-lyric {
  fill: #596669;
  font: 800 12px "Nunito", sans-serif;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
  transition: fill .15s;
}
.score-lyric.preview {
  fill: #a9b2bd;
}
.score-lyric.sung {
  fill: #58a700;
}
.midi-sources {
  position: relative;
}
.midi-sources summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 12px;
  background: #fff;
  color: #555;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  list-style: none;
  white-space: nowrap;
}
.midi-sources summary::-webkit-details-marker {
  display: none;
}
.midi-sources[open] summary {
  border-color: #a5ed6e;
  color: #58a700;
}
.midi-sources[open] summary span {
  transform: rotate(180deg);
}
.midi-source-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 245px;
  padding: 8px;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .13);
}
.midi-source-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 11px;
  border-radius: 9px;
  color: #444;
  text-decoration: none;
}
.midi-source-menu a:hover {
  background: #f2ffe8;
  color: #58a700;
}
.midi-source-menu b {
  font-size: 12px;
}
.midi-source-menu small {
  color: #888;
  font-size: 10px;
}
.import-midi:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.song-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 30px 20px;
  border-bottom: 2px solid #f1f1f1;
}
.song-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(155px, auto);
  align-items: end;
  gap: 12px;
  padding: 4px 30px 12px;
}
.song-search,
.song-sort,
.source-filter {
  display: flex;
  align-items: center;
  gap: 7px;
}
.song-search > span,
.song-sort > span,
.source-filter > span,
.song-filters > span {
  color: #999;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.song-search input,
.song-sort select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 2px solid #e5e5e5;
  border-radius: 11px;
  background: #fff;
  color: #444;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}
.song-search input:focus,
.song-sort select:focus {
  border-color: #84d8ff;
  box-shadow: 0 0 0 3px #ddf4ff;
}
.source-filter button {
  min-height: 40px;
  padding: 0 11px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  color: #777;
  font-size: 10px;
  font-weight: 900;
}
.source-filter button.selected {
  border-color: #84d8ff;
  background: #ddf4ff;
  color: #168ec2;
}
.import-status {
  min-height: 0;
  margin: -6px 30px 12px;
  color: #168ec2;
  font-size: 11px;
  font-weight: 800;
}
.import-status:empty {
  display: none;
}
.folder-scan-status {
  margin: 0 30px 14px;
  padding: 12px 14px;
  border: 2px solid #84d8ff;
  border-radius: 12px;
  background: #f2fbff;
  color: #168ec2;
}
.folder-scan-status[hidden] {
  display: none;
}
.scan-heading {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 11px;
  font-weight: 900;
}
.scan-heading b {
  margin-left: auto;
  color: #555;
}
.scan-ellipsis {
  display: inline-block;
  width: 22px;
}
.scan-ellipsis::after {
  content: "";
}
.folder-scan-status.scanning .scan-ellipsis::after {
  animation: scan-ellipsis 1.1s steps(4, end) infinite;
}
@keyframes scan-ellipsis {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}
.scan-current {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #777;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scan-files {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.scan-files span {
  overflow: hidden;
  max-width: 230px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #fff;
  color: #666;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.song-filters button {
  padding: 8px 14px;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 11px;
  color: #777;
  font-size: 11px;
  font-weight: 900;
}
.song-filters button.selected {
  border-color: #a5ed6e;
  background: #efffe4;
  color: #58a700;
}
.song-filters .filter-divider {
  width: 1px;
  height: 26px;
  margin: 0 4px;
  background: #e5e5e5;
}
.song-filters .favorites-filter {
  margin-left: auto;
  border-color: #ffd76b;
  color: #b88700;
}
.song-filters .favorites-filter.selected {
  border-color: #ffc800;
  background: #fff8d8;
  color: #9e7600;
}
.song-panel .song-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 24px 26px;
}
.song-panel .song-row {
  min-height: 132px;
  height: 100%;
  align-items: flex-start;
  padding: 16px;
}
.song-card {
  position: relative;
  height: 100%;
  min-width: 0;
}
.favorite-song {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 70px;
  width: 30px;
  height: 30px;
  border: 2px solid #e5e5e5;
  border-radius: 50%;
  background: #fff;
  color: #aaa;
  font-size: 17px;
  line-height: 1;
}
.favorite-song:hover,
.favorite-song.selected {
  border-color: #ffd76b;
  background: #fff8d8;
  color: #e5ad00;
}
.song-copy {
  flex: 1;
  min-width: 0;
}
.song-tags {
  display: flex;
  min-height: 17px;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.song-source {
  display: inline-block;
  width: fit-content;
  padding: 2px 5px;
  border-radius: 5px;
  background: #ddf4ff;
  color: #168ec2;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .7px;
}
.song-source.local {
  background: #efffe4;
  color: #58a700;
}
.song-lyrics {
  display: inline-block;
  width: fit-content;
  padding: 2px 5px;
  border-radius: 5px;
  background: #f4e5ff;
  color: #a047d1;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .7px;
}
.song-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 2px dashed #e5e5e5;
  border-radius: 16px;
  color: #aaa;
}
.song-empty b {
  color: #555;
  font-size: 16px;
}
.song-empty span {
  font-size: 11px;
}
.song-level {
  flex: 0 0 58px;
  padding: 7px 5px;
  border-radius: 9px;
  background: #f7f7f7;
  text-align: center;
}
.song-level b {
  font-size: 12px;
}
.song-level small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.song-level i {
  font-size: 7px;
  letter-spacing: 0;
}
.song-level.easy { color: #58a700; background: #efffe4; }
.song-level.medium { color: #ce82ff; background: #f7edff; }
.song-level.hard { color: #ea2b2b; background: #fff0f0; }
.back-to-songbook {
  align-self: center;
  padding: 9px 12px;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 11px;
  color: #777;
  font-size: 11px;
  font-weight: 900;
}
.session-header .back-to-songbook + div {
  flex: 1;
}
.arrangement-control {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 6px;
  margin-left: 2px;
  padding: 4px 6px;
  border: 2px solid #dedede;
  border-bottom-width: 4px;
  border-radius: 11px;
  background: #fff;
}
.arrangement-control > span {
  padding-left: 3px;
  color: #aaa;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .8px;
}
.arrangement-control > div {
  display: flex;
  gap: 2px;
}
.arrangement-control button {
  padding: 7px 9px;
  border-radius: 7px;
  color: #777;
  font-size: 9px;
  font-weight: 900;
}
.arrangement-control button.selected {
  background: #ddf4ff;
  color: #168ec2;
}
.arrangement-control small {
  display: none;
}
.difficulty.medium { color: #a560e8; }
.difficulty.medium i { background: #ce82ff; }
.difficulty.hard { color: #d82828; }
.difficulty.hard i { background: #ff4b4b; }
.music-sheet-card {
  margin: 0 24px 16px;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 15px;
  background: linear-gradient(180deg, #fff 0%, #fdfdfb 100%);
  overflow: hidden;
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px 8px;
  border-bottom: 1px solid #ededed;
}
.sheet-heading > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.sheet-heading strong {
  font-size: 13px;
}
.sheet-heading > span {
  padding: 5px 8px;
  border-radius: 8px;
  background: #efffe4;
  color: #58a700;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .8px;
}
.music-sheet {
  position: relative;
  height: 176px;
  padding: 2px 9px 7px;
}
.music-sheet svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  overflow: visible;
}
.music-sheet .row-tag {
  fill: #8b949e;
  font-family: "Nunito", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}
.music-sheet .score-playhead {
  stroke: #58cc02;
  fill: none;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px #58cc0288);
  transition: transform .08s linear;
  pointer-events: none;
}
.music-sheet .score-beat-line {
  stroke: #8b949e30;
  stroke-width: 1;
}
.music-sheet .score-bar-line {
  stroke: #64707978;
  stroke-width: 2.5;
}
.music-sheet .score-playhead.waiting {
  stroke: #ce82ff;
  filter: drop-shadow(0 0 5px #ce82ff99);
}
@media (max-width: 700px) {
  .arrangement-control {
    flex: 1 1 240px;
    margin-left: 0;
  }
  .music-sheet-card {
    margin: 0 12px 12px;
  }
  .music-sheet {
    height: 140px;
    padding-left: 2px;
    padding-right: 2px;
  }
  .sheet-heading strong {
    display: none;
  }
}

/* Click-through practice controls and unified play surface */
.session-controls {
  align-items: stretch;
  gap: 12px;
}
.cycle-controls {
  margin-left: auto;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}
.cycle-button {
  min-width: 92px;
  padding: 7px 10px 6px;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 11px;
  background: #fff;
  color: #777;
  text-align: left;
  line-height: 1.1;
}
.cycle-button span,
.cycle-button strong {
  display: block;
  white-space: nowrap;
}
.cycle-button span {
  margin-bottom: 4px;
  color: #afafaf;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.cycle-button strong {
  color: #3c3c3c;
  font-size: 10px;
  font-weight: 900;
}
#show-keys strong { color: #58a700; }
#song-speed-control strong { color: #1899d6; }
#bar-speed-control strong { color: #a560e8; }
#sheet-layout-control strong { color: #58a700; }
.cycle-button:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.icon-button {
  align-self: center;
}
.music-sheet-card {
  margin-bottom: 8px;
}
.scorebar {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #ececec;
}
.range-deck {
  position: relative;
  z-index: 6;
}
.music-sheet[data-layout="horizontal"] {
  height: 102px;
}
body.finger-guide-off .hand-guide,
body.finger-guide-off .finger-label,
body.finger-guide-circles .hand-guide,
body.finger-guide-bars .hand-guide {
  display: none;
}
body.finger-guide-all .hand-guide {
  display: flex;
}
body.finger-guide-all .finger-label,
body.finger-guide-circles .finger-label,
body.finger-guide-bars .finger-label {
  display: grid;
}

@media (max-width: 1180px) {
  .session-controls {
    flex-wrap: wrap;
  }
  .cycle-controls {
    order: 3;
    flex: 1 0 100%;
    justify-content: stretch;
  }
  .cycle-button {
    flex: 1 1 0;
  }
  .session-controls .icon-button {
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .cycle-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cycle-button {
    min-width: 0;
  }
  .cycle-button strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .music-sheet[data-layout="horizontal"] {
    height: 92px;
  }
}

/* Compact upper-left scoring and a clean transport finish */
.session-header {
  align-items: flex-start;
}
.session-heading-block {
  flex: 1;
  min-width: 0;
}
.session-header .scorebar {
  width: min(560px, 100%);
  grid-template-columns: 1.15fr .8fr .9fr 1fr;
  gap: 18px;
  padding: 11px 0 0;
  border: 0;
}
.session-header .scorebar > div {
  gap: 1px;
}
.session-header .scorebar > div > span {
  font-size: 7px;
  letter-spacing: 1px;
}
.session-header .scorebar strong {
  font-size: 18px;
  line-height: 1;
}
.session-header .scorebar strong span {
  font-size: 11px;
}
.session-header .scorebar .best-score {
  text-align: left;
}
.session-header .scorebar .best-score strong {
  font-size: 17px;
}
.session-header .difficulty {
  margin-top: 5px;
}
.transport {
  border-bottom: 0;
}

/* Transport and range deck placement */
.instrument > .transport-deck {
  min-height: 48px;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
  position: relative;
  z-index: 6;
}
.range-deck-bottom {
  margin: 12px 16px 16px;
  border: 2px solid #dcdfe3;
  border-bottom-width: 4px;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .range-deck-bottom {
    margin: 10px 8px 12px;
  }
  .instrument > .transport-deck {
    padding: 7px 8px;
  }
}

@media (max-width: 700px) {
  .session-header .scorebar {
    gap: 9px;
    grid-template-columns: 1.15fr .7fr .9fr 1fr;
  }
  .session-header .scorebar strong,
  .session-header .scorebar .best-score strong {
    font-size: 15px;
  }
}
.settings-page {
  max-width: 1040px;
  margin: 0 auto;
}
.settings-heading {
  margin-bottom: 24px;
}
.settings-heading h1 {
  margin-bottom: 4px;
}
.settings-heading p {
  margin: 0;
  color: #777;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 18px;
  background: #fff;
}
.settings-card > div {
  flex: 1;
  min-width: 0;
}
.settings-card h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.settings-card p {
  margin: 0 0 12px;
  color: #777;
  line-height: 1.55;
}
.settings-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ddf4ff;
  color: #1899d6;
  font-size: 21px;
  font-weight: 900;
}
.settings-wide {
  grid-column: 1 / -1;
}
.settings-action {
  color: #58a700;
  font-weight: 900;
}
.settings-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.settings-buttons button,
.settings-buttons strong {
  padding: 9px 12px;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
}
.settings-buttons button.selected {
  border-color: #a5ed6e;
  background: #efffe4;
  color: #58a700;
}
.lyric-settings .settings-icon {
  background: #f7edff;
  color: #a560e8;
  font-size: 14px;
}
.lyric-settings .settings-buttons strong {
  min-width: 90px;
  color: #a560e8;
  text-align: center;
}
.sound-control-grid {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(210px, 1fr) minmax(210px, 1fr);
  align-items: end;
  gap: 14px;
}
.sound-control-grid label {
  display: grid;
  gap: 8px;
  color: #777;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sound-control-grid label > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sound-control-grid output {
  color: #58a700;
}
.sound-control-grid select {
  width: 100%;
  min-height: 43px;
  padding: 9px 34px 9px 12px;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 11px;
  background: #fff;
  color: #3c3c3c;
  font-weight: 800;
}
.sound-control-grid input[type="range"] {
  width: 100%;
  accent-color: #58cc02;
}
.sound-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 9px;
}
.sound-actions button {
  padding: 9px 12px;
  border: 2px solid #e5e5e5;
  border-bottom-width: 4px;
  border-radius: 11px;
  color: #58a700;
  font-size: 12px;
  font-weight: 900;
}
@media (max-width: 760px) {
  .sound-control-grid { grid-template-columns: 1fr; }
  .sound-actions { grid-column: 1; }
}
.keyboard-reference p {
  margin-bottom: 5px;
}
@media (max-width: 800px) {
  body.view-play .workspace {
    grid-template-columns: 1fr;
  }
  .song-panel {
    order: 2;
  }
  .song-panel .song-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .songbook-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .songbook-actions {
    justify-content: flex-start;
  }
  .song-tools {
    grid-template-columns: 1fr;
  }
  .source-filter {
    flex-wrap: wrap;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-wide {
    grid-column: auto;
  }
}
@media (max-width: 500px) {
  .topbar nav {
    gap: 10px;
  }
  .topbar nav button {
    font-size: 10px;
  }
  .brand i {
    display: none;
  }
  .settings-card {
    padding: 17px;
  }
  .settings-icon {
    display: none;
  }
  .play-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .play-stage-tabs {
    width: 100%;
  }
  .play-stage-tabs button {
    flex: 1;
  }
  .song-panel .song-list {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .songbook-toolbar,
  .song-tools,
  .song-filters {
    padding-left: 18px;
    padding-right: 18px;
  }
  .arrangement-control {
    width: 100%;
    margin-left: 0;
  }
  .arrangement-control > div {
    flex: 1;
  }
  .arrangement-control button {
    flex: 1;
  }
}
