:root {
  --rh: #2f6fed;
  --lh: #e8590c;
  --ok: #2b9a4b;
  --bad: #d6336c;
  --line: #d9dde3;
  --bg: #f4f5f7;
  --ink: #1f2328;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Malgun Gothic", "맑은 고딕", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
#app { display: grid; grid-template-columns: var(--sidew, 250px) 6px 1fr; height: 100vh; }
/* 메뉴 폭 조절 손잡이: 끌어서 넓히거나 좁히고, 두 번 누르면 기본 폭 */
#sideResize { cursor: col-resize; background: transparent; position: relative; margin-left: -1px; touch-action: none; }
#sideResize::after { content: ""; position: absolute; top: 50%; left: 1px; width: 4px; height: 40px; margin-top: -20px; border-radius: 2px; background: #cbd5e1; }
#sideResize:hover, #sideResize.drag { background: #dbe7ff; }
#sideResize:hover::after, #sideResize.drag::after { background: var(--rh); }
body.resizing { cursor: col-resize; user-select: none; }
/* 건반 높이 조절 손잡이: 위로 끌면 건반이 길어진다 */
#keyResize { flex: none; height: 7px; cursor: row-resize; position: relative; background: #e5e7eb; touch-action: none; }
#keyResize::after { content: ""; position: absolute; left: 50%; top: 2px; width: 40px; height: 3px; margin-left: -20px; border-radius: 2px; background: #9ca3af; }
#keyResize:hover, #keyResize.drag { background: #dbe7ff; }
#keyResize:hover::after, #keyResize.drag::after { background: var(--rh); }
body.resizing-v { cursor: row-resize; user-select: none; }

#side {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 16px 14px;
  overflow-y: auto;
}
#side h1 { font-size: 20px; line-height: 1.35; margin: 10px 0 18px; text-align: center; }
#brand .photos { display: flex; justify-content: center; gap: 14px; }
#brand figure { margin: 0; text-align: center; }
#brand figcaption { margin-top: 4px; font-weight: 700; font-size: 13px; }
/* 사진에서 얼굴이 원 가운데에 오도록 확대 비율과 위치를 맞춘다 */
.photo {
  width: 96px; height: 96px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--rh), 0 3px 8px rgba(0, 0, 0, .2);
  background-repeat: no-repeat; background-color: #e5e7eb;
}
.photo.yuju { background-image: url("YUJU.jpg"); background-size: auto 167%; background-position: 68% 8%; }
.photo.mom { background-image: url("avatars/mom.jpg"); background-size: 135%; background-position: 92% 50%; }
.photo.dad { background-image: url("avatars/dad.jpg"); background-size: 170%; background-position: 50% 26%; }
.photo.yuna { background-image: url("YUNA.jpg"); background-size: auto 294%; background-position: 44% 50%; box-shadow: 0 0 0 2px var(--lh), 0 3px 8px rgba(0, 0, 0, .2); }
#side h2 { font-size: 12px; color: #6b7280; margin: 18px 0 8px; font-weight: 600; }
.levelList button, #songs button {
  display: block; width: 100%; text-align: left;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 6px; cursor: pointer; font: inherit;
}
.levelList button small, #songs button small { display: block; color: #6b7280; font-size: 11px; margin-top: 2px; }
.levelList button.on { border-color: var(--rh); background: #eef4ff; }
/* 선택한 곡: 메뉴에서 가장 진한 색 */
/* 중간 파랑 위의 흰 글씨는 대비가 낮아 잘 안 보이므로, 짙은 남색 굵은 글씨 + 왼쪽 굵은 띠로 표시한다 */
#songs button.on {
  border-color: #1d4fc4; background: #86adfa; color: #0a1a40; font-weight: 700;
  box-shadow: inset 6px 0 0 #1d4fc4, 0 3px 10px rgba(29, 79, 196, .35);
  /* 고른 곡은 다른 곡보다 크게: 글씨·여백을 키우고 양옆으로 살짝 튀어나오게 */
  font-size: 16px; line-height: 1.35; padding: 14px 12px 14px 18px;
  margin: 10px -4px; width: calc(100% + 8px); border-width: 2px; border-radius: 10px;
  transition: padding .15s, font-size .15s, margin .15s;
}
#songs button.on small { color: #13306e; font-weight: 600; font-size: 12px; margin-top: 4px; }
#songs button.on .del { color: #13306e; }
.levelList button b { font-size: 15px; }
/* 고르지 않은 수준: 이름만 한 줄로 작게 */
.levelList button.mini { padding: 5px 10px; margin-bottom: 4px; color: #374151; }
.levelList button.mini b { font-size: 13px; font-weight: 600; }
.levelList button.mini b::before { content: "▸ "; color: #9ca3af; }
.levelList button.on b::before { content: "▾ "; color: var(--rh); }
.levelList button.on { margin-bottom: 0; border-radius: 8px 8px 0 0; }
.levelList button.on.closed { margin-bottom: 6px; border-radius: 8px; }
.levelList button.on.closed b::before { content: "▸ "; }
#songBox[hidden] { display: none; }
/* 묶음(교육)과 세부 장르 */
.levelList button.group b::before { content: "▸ "; color: #9ca3af; }
.levelList button.group.open b::before { content: "▾ "; }
.levelList button.sub { margin-left: 16px; width: calc(100% - 16px); }
/* 메뉴 단계별 배경색: 묶음(교육) 머리 · 그 안의 세부 장르 · 묶음 밖 장르 · 곡 목록 */
.levelList button.group { background: #e6f0ff; border-color: #b9cff5; }   /* 맨 위 단계: 다른 장르와 같은 색 */
.levelList button.mini { background: #e6f0ff; border-color: #b9cff5; }   /* 세부 장르도 같은 파랑 */
.levelList button.on { background: #a9c6ff; border-color: var(--rh); }   /* 고른 장르: 장르(연한 파랑)와 선택한 곡(진한 파랑) 사이 */
.levelList button.on small { color: #374151; }
.levelList button.group.has-on { border-color: var(--rh); background: #a9c6ff; }   /* 고른 장르가 들어 있는 묶음도 고른 장르처럼 */
.levelList button.group.has-on small { color: #374151; }
.levelList button.group.has-on b::before { color: var(--rh); }
.levelList button:hover { filter: brightness(0.97); }
#levels:has(> button.sub.on:last-child) + #songBox { margin-left: 16px; }
/* 고른 수준 바로 밑 곡 목록: 수준 버튼과 이어진 상자 */
#songBox { border: 1px solid var(--rh); border-top: 0; border-radius: 0 0 8px 8px; padding: 8px 8px 2px; margin-bottom: 10px; background: #f8fafc; }

#songs button { position: relative; padding-right: 28px; }
#songs .del { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; line-height: 18px; text-align: center; border-radius: 50%; color: #6b7280; font-size: 16px; }
#songs .del:hover { background: #fde2e2; color: #c92a2a; }
#songs .empty { color: #6b7280; font-size: 12px; margin: 4px 2px 10px; }
#songs button.more { text-align: center; color: var(--rh); font-weight: 600; border-style: dashed; }
#songFilter { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
#songFilter[hidden] { display: none; }
#songFilter .lvTabs { display: flex; gap: 4px; }
#songFilter .lvTabs button { flex: 1; padding: 5px 0; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font: inherit; }
#songFilter .lvTabs button.on { border-color: var(--rh); background: #eef4ff; font-weight: 600; }
#songFilter select, #songFilter input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; width: 100%; box-sizing: border-box; }
#songCount { margin: 0 2px; font-size: 11px; color: #6b7280; }
#import, #photo {
  width: 100%; margin-top: 8px; padding: 9px 10px; cursor: pointer; font: inherit; font-weight: 600;
  border: 1px dashed var(--rh); border-radius: 8px; background: #fff; color: var(--rh);
}
#import:hover, #photo:hover { background: #eef4ff; }
#side .hint { color: #6b7280; font-size: 11px; line-height: 1.5; margin: 8px 2px 0; }

/* 곡 선택 영역 숨기기 */
body.side-hidden #app { grid-template-columns: 1fr; }
body.side-hidden #side, body.side-hidden #sideResize { display: none; }
#toggleSide {
  flex: none; align-self: center; padding: 5px 10px; cursor: pointer; font: inherit; font-size: 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #4b5563; white-space: nowrap;
}
#toggleSide:hover { background: #f0f2f5; }

#main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
#head { padding: 12px 18px 4px; display: flex; align-items: baseline; gap: 12px; }
#title { font-size: 20px; font-weight: 700; }
#origin { color: #6b7280; }

#toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 18px;
}
#toolbar button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 7px 12px; cursor: pointer; font: inherit;
}
#toolbar button:hover { background: #f0f2f5; }
#toolbar button.primary { background: var(--rh); border-color: var(--rh); color: #fff; min-width: 92px; }
#toolbar .sep { width: 1px; height: 22px; background: var(--line); }
#toolbar label { display: inline-flex; align-items: center; gap: 5px; }
#toolbar .chk.rh { color: var(--rh); font-weight: 600; }
#toolbar .chk.lh { color: var(--lh); font-weight: 600; }
#tempo { width: 120px; }
#tempoVal { min-width: 34px; display: inline-block; }
#volume { width: 90px; }
#instrument { font: inherit; padding: 3px 6px; border-radius: 6px; border: 1px solid #ccc; background: #fff; cursor: pointer; }
#volumeVal { min-width: 28px; display: inline-block; }

/* 게임: 연주자 선택 겸 점수판 */
#gamebar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; padding: 0 18px 8px; }
#board { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip {
  display: flex; align-items: center; gap: 8px; min-width: 150px; flex: 1;
  padding: 6px 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; font: inherit; text-align: left;
}
.chip.on { border-color: var(--ok); background: #ecfbf0; }
.chip .who { flex: 1; line-height: 1.25; }
.chip .who b { display: block; font-size: 14px; }
.chip .who small { color: #6b7280; font-size: 11px; white-space: nowrap; }
.chip .medal { font-size: 20px; font-weight: 700; color: #6b7280; }
.face { width: 38px; height: 38px; flex: none; border-radius: 50%; }
.face.photo { width: 38px; height: 38px; border: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.face.emoji { display: flex; align-items: center; justify-content: center; font-size: 24px; background: #fff3d6; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
#game {
  padding: 0 18px; min-height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: var(--ok);
}
#game.playing { background: var(--bad); }
#gameModeBox { display: flex; flex-direction: column; justify-content: center; gap: 4px; font-size: 12px; color: #4b5563; }
#gameModeBox select { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
#gameModeBox select:disabled { opacity: .6; }
#fallSheetBox { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #374151; cursor: pointer; }

/* 떨어지는 음표 게임: 악보 자리에 건반과 줄을 맞춘 화면을 띄운다 */
/* 악보 위에 반투명으로 겹쳐서, 떨어지는 음표 뒤로 악보가 비쳐 보인다 (위치·크기는 drawFall 이 악보에 맞춘다) */
#main { position: relative; }
#fall { position: absolute; left: 0; top: 0; display: block; pointer-events: none; z-index: 5; }
#fall[hidden] { display: none; }
body.falling #tip { display: none; }

/* 콤보 축하: 악보 가운데 큰 글씨 + 터지는 반짝이 */
.comboFx { position: absolute; left: 50%; width: 0; height: 0; z-index: 20; pointer-events: none; }
.comboFx .word, .comboFx .count {
  position: absolute; left: 0; transform: translate(-50%, -50%); white-space: nowrap; text-align: center;
  font-weight: 900; letter-spacing: 1px;
}
.comboFx .word { top: -10px; font-size: 54px; }
.comboFx .count { top: 34px; font-size: 20px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.6); opacity: 0; animation: fxCount 1.1s ease-out forwards; }
.comboFx.great .word {
  color: #22c55e; -webkit-text-stroke: 2px #fff; text-shadow: 0 0 18px #4ade80, 0 4px 10px rgba(0,0,0,.35);
  animation: fxGreat 1.1s ease-out forwards;
}
.comboFx.awesome .word {
  font-size: 68px; -webkit-text-stroke: 2px #fff;
  background: linear-gradient(90deg, #f43f5e, #f59e0b, #facc15, #22c55e, #3b82f6, #a855f7);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(250, 204, 21, .9)) drop-shadow(0 4px 8px rgba(0,0,0,.35));
  animation: fxAwesome 1.5s cubic-bezier(.2, 1.4, .4, 1) forwards, fxRainbow .6s linear infinite;
}
.comboFx .spark {
  position: absolute; left: 0; top: 0; font-size: 22px; color: hsl(var(--hue), 95%, 60%);
  text-shadow: 0 0 8px hsl(var(--hue), 95%, 70%); transform: translate(-50%, -50%);
  animation: fxSpark 1s ease-out forwards;
}
.comboFx.awesome .spark { font-size: 28px; animation-duration: 1.4s; }
@keyframes fxGreat {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(1); }
  80% { transform: translate(-50%, -60%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -90%) scale(.9); opacity: 0; }
}
@keyframes fxAwesome {
  0% { transform: translate(-50%, -50%) scale(.1) rotate(-25deg); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.35) rotate(6deg); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
  65% { transform: translate(-50%, -50%) scale(1.12) rotate(0); }
  85% { transform: translate(-50%, -55%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -80%) scale(1.4); opacity: 0; }
}
@keyframes fxRainbow { to { background-position: 200% 0; } }
@keyframes fxCount { 0%, 20% { opacity: 0; transform: translate(-50%, -20%); } 40%, 80% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; } }
@keyframes fxSpark {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(180deg); opacity: 0; }
}

/* 건반 위에 뜨는 판정 */
.judge {
  position: absolute; top: 34%; z-index: 6; transform: translateX(-50%); pointer-events: none;
  font-size: 15px; font-weight: 800; white-space: nowrap; color: #fff;
  padding: 2px 8px; border-radius: 10px; animation: judgeUp .7s ease-out forwards;
}
.judge.perfect { background: #f59f00; }
.judge.good { background: var(--ok); }
.judge.ok { background: var(--rh); }
.judge.miss { background: var(--bad); }
@keyframes judgeUp {
  from { opacity: 0; margin-top: 12px; }
  20% { opacity: 1; margin-top: 0; }
  to { opacity: 0; margin-top: -34px; }
}

/* 게임 결과 */
#result { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .45); }
#result[hidden] { display: none; }
#result .card { width: min(380px, 92vw); padding: 20px 22px; border-radius: 16px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
#result .top { display: flex; align-items: center; gap: 12px; }
#result .top .face { width: 56px; height: 56px; }
#result .top .face.emoji { font-size: 36px; }
#result .top b { display: block; font-size: 18px; }
#result .top small { color: #6b7280; }
#result .score { margin: 12px 0 2px; text-align: center; font-size: 18px; font-weight: 700; }
#result .score span { font-size: 56px; line-height: 1; }
#result .score i { font-style: normal; margin-left: 8px; padding: 2px 12px; border-radius: 10px; color: #fff; font-size: 24px; background: #6b7280; }
#result .score i.gS { background: #f59f00; }
#result .score i.gA { background: var(--ok); }
#result .score i.gB { background: var(--rh); }
#result .note { margin: 4px 0; text-align: center; font-weight: 700; color: #9a6b00; }
#result .counts { margin: 6px 0 12px; text-align: center; color: #6b7280; font-size: 12px; line-height: 1.6; }
#result h3 { margin: 0 0 6px; font-size: 13px; color: #6b7280; }
#result ol { list-style: none; margin: 0 0 14px; padding: 0; }
#result li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; }
#result li.me { background: #ecfbf0; }
#result li > span:first-child { width: 30px; text-align: center; font-size: 18px; font-weight: 700; color: #6b7280; }
#result li .face { width: 30px; height: 30px; }
#result li .face.emoji { font-size: 19px; }
#result li b { flex: 1; }
#result li em { font-style: normal; font-weight: 700; }
#result li small { color: #6b7280; width: 44px; text-align: right; }
#result .btns { display: flex; gap: 8px; }
#result .btns button { flex: 1; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
#result .btns .primary { background: var(--ok); border-color: var(--ok); color: #fff; font-weight: 700; }

#tip {
  margin: 0 18px 8px; padding: 9px 12px;
  background: #fff8e1; border: 1px solid #f1dfa0; border-radius: 8px; line-height: 1.55;
}
#tip::before { content: "선생님 한마디  "; font-weight: 700; color: #9a6b00; }

#sheet {
  flex: 1; min-height: 0; overflow-y: auto;
  margin: 0 18px; padding: 6px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
#sheet svg { display: block; }
/* 악보 높이를 직접 정했을 때: 그 높이로 고정하고, 넘치면 오른쪽 화면 전체가 스크롤된다 */
body.sheet-fixed #sheet { flex: none; height: var(--sheeth); }
body.sheet-fixed #main { overflow-y: auto; }
body.sheet-fixed #main > * { flex-shrink: 0; }
/* 악보 높이 조절 손잡이: 아래로 끌면 악보가 길어진다 */
#sheetResize { flex: none; height: 9px; margin: 2px 18px 0; cursor: row-resize; position: relative; border-radius: 4px; touch-action: none; }
#sheetResize::after { content: ""; position: absolute; left: 50%; top: 3px; width: 40px; height: 3px; margin-left: -20px; border-radius: 2px; background: #cbd5e1; }
#sheetResize:hover, #sheetResize.drag { background: #dbe7ff; }
#sheetResize:hover::after, #sheetResize.drag::after { background: var(--rh); }
.note { color: #1f2328; cursor: pointer; }
.note.active.rh { color: var(--rh); }
.note.active.lh { color: var(--lh); }
.note.muted { opacity: .28; }
.note text.finger { font: 600 11px "Segoe UI", sans-serif; fill: #6b7280; }
.note.active text.finger { fill: currentColor; }
.cursor { fill: #2f6fed; opacity: .1; }

/* 좁은 화면: 메뉴를 위로 올리고 페이지 전체를 스크롤 */
@media (max-width: 900px) {
  #app { display: block; height: auto; }
  #sideResize { display: none; }
  #side { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  #side h1 { margin: 0; text-align: left; }
  #brand { display: flex; align-items: center; gap: 14px; }
  .photo { width: 64px; height: 64px; }
  #side h2 { margin: 8px 0 6px; }
  .levelList, #songs { display: flex; gap: 6px; overflow-x: auto; }
  .levelList button, #songs button { width: auto; flex: none; margin-bottom: 4px; }
  .levelList button small { display: none; }
  #songs button.on { width: auto; margin: 0 0 4px; }
  #main { height: auto; }
  #sheet { flex: none; height: 52vh; min-height: 260px; }
}

#status { height: 24px; padding: 3px 18px; color: #6b7280; font-size: 13px; }

#keyboard {
  --keyh: 220px;                 /* 건반 길이 (검은건반은 이 길이의 62%) */
  position: relative; flex: none;
  margin: 0 18px 14px; user-select: none;
  border: 1px solid #333; border-top: 5px solid #7a1f1f; border-radius: 0 0 6px 6px;
  background: #222;
  overflow-x: auto; overflow-y: hidden;   /* 건반이 많으면 옆으로 스크롤 */
  scrollbar-width: thin;
}
#keyboard .keys { position: relative; height: var(--keyh); min-width: 100%; }
.key { position: absolute; top: 0; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; }
.key.white { height: var(--keyh); background: #fff; border-right: 1px solid #999; border-radius: 0 0 4px 4px; z-index: 1; }
.key.black { height: calc(var(--keyh) * .62); background: #111; border-radius: 0 0 3px 3px; z-index: 2; }
.key span { font-size: 11px; line-height: 1.15; text-align: center; padding-bottom: 5px; color: #9aa1ab; pointer-events: none; white-space: pre; }
.key.black span { font-size: 10px; color: #fff; padding-bottom: 4px; letter-spacing: -1.5px; }
.key.rh { background: #a9c5fb; box-shadow: inset 0 -7px 9px rgba(0, 0, 0, .28); }
.key.lh { background: #f9bf9b; box-shadow: inset 0 -7px 9px rgba(0, 0, 0, .28); }
.key.black.rh { background: var(--rh); }
.key.black.lh { background: var(--lh); }
.key.ok span, .key.bad span { color: #fff; font-weight: 700; }

/* 건반 위의 손 */
.key { flex-direction: column; align-items: center; justify-content: flex-end; }
.fnum { display: none; pointer-events: none; }
.fnum.on {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; max-width: 90%; margin-bottom: 6px; border-radius: 50%; box-sizing: border-box;
  font: 800 15px "Segoe UI", sans-serif; background: #fff; border: 2.5px solid;
}
.key.black .fnum.on { width: 20px; height: 20px; font-size: 13px; margin-bottom: 5px; }
.fnum.rh { border-color: var(--rh); color: var(--rh); }
.fnum.lh { border-color: var(--lh); color: var(--lh); }
.fnum.press.rh { background: var(--rh); color: #fff; border-color: #fff; }
.fnum.press.lh { background: var(--lh); color: #fff; border-color: #fff; }
.solfa { display: none; pointer-events: none; }
.solfa.on {
  display: block; flex: none; margin-bottom: 7px; font: normal 800 13px "Malgun Gothic", sans-serif;
  white-space: nowrap; letter-spacing: -1px;
}
.key.black .solfa.on { font-size: 10px; margin-bottom: 5px; letter-spacing: -1.5px; }
.solfa.rh { color: #1b4fc4; }
.solfa.lh { color: #b84300; }
.key.black .solfa.on, .solfa.press { color: #fff; }
.key.white .solfa.press.rh { color: #12398f; }
.key.white .solfa.press.lh { color: #8a3200; }
.key.named span { display: none; }
.key.ok { background: var(--ok); }
.key.bad { background: var(--bad); }
.key.down { filter: brightness(.85); }
