/* Пианино */
.pn-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.pn-display { min-height: 104px; display: grid; align-content: end; }
.pn-chord { margin: 0; font: 200 clamp(60px, 6vw, 86px)/.95 var(--f-display); letter-spacing: -.05em; color: var(--ivory); min-height: 1em; }
.pn-chord__n { display: inline-block; }
.pn-chord__n.is-swap { animation: pn-swap .4s var(--slow); }
@keyframes pn-swap { from { opacity: 0; transform: translateY(10px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.pn-chord__ru { margin: 10px 0 0; font: 300 16px/1.4 var(--f-text); color: var(--ivory-2); min-height: 1.4em; }
.pn-chord__ru .pn-notes { margin-left: 12px; font: 400 13px/1 var(--f-mono); color: var(--mute); text-transform: none; }
.pn-rec { display: flex; gap: 8px; flex-wrap: wrap; }
.pn-rec__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); transition: border-radius .3s var(--ease); }
.pn-rec__btn[aria-pressed="true"] { border-color: var(--red); }
.pn-rec__btn[aria-pressed="true"] .pn-rec__dot { border-radius: 2px; animation: st-pulse 1.4s var(--ease) infinite; }

.pn-tools { display: flex; flex-wrap: wrap; gap: 22px 34px; align-items: flex-end; margin-top: clamp(32px, 3.6vw, 48px); padding-top: 28px; border-top: 1px solid var(--hair); }
.pn-tool { display: grid; gap: 10px; }
.pn-oct__ctl { display: flex; align-items: center; gap: 8px; }
.pn-oct__ctl .st-round { width: 40px; height: 40px; font-size: 20px; }
.pn-oct__ctl output { min-width: 64px; text-align: center; font: 500 13px/1 var(--f-mono); color: var(--ivory); }

.pn-kb-wrap { margin-top: clamp(18px, 2vw, 26px); padding: 14px 0 0; border-top: 6px solid #050505; border-radius: 4px 4px 0 0; position: relative; }
.pn-kb-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: linear-gradient(90deg, transparent, rgba(227,6,19,.55) 50%, transparent); opacity: .35; }
.pn-kb { --kb-h: clamp(170px, 16vw, 228px); }

.pn-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; font: 300 13.5px/1.4 var(--f-text); color: var(--mute); }
.pn-foot p { margin: 0; display: flex; align-items: center; gap: 14px; }
.pn-load.is-done span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; }
[data-midi-st]:not(:empty)::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; }

@media (max-width: 760px) {
  .pn-display { min-height: 84px; }
  .pn-head { gap: 14px; }
  .pn-rec .st-btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .pn-tools { gap: 18px 20px; }
  .pn-tool { min-width: 0; }
  .pn-kb { --kb-h: 190px; }
}
.pn-credit { font: 400 11.5px/1.4 var(--f-mono) !important; color: var(--mute); }
.pn-credit a { border-bottom: 1px solid var(--hair-2); }
