:root {
  color-scheme: dark;
  --ink: #eef3f2;
  --muted: #98a5a9;
  --panel: #182129;
  --panel-deep: #10171d;
  --line: rgba(255, 255, 255, .11);
  --accent: #64e5cd;
  --accent-deep: #1b9e8c;
  --warm: #ffb45e;
  --danger: #ff5f6d;
  --white-key: #f7f3e9;
  --white-key-edge: #d9d4c9;
  --black-key: #171b20;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 8%, rgba(100, 229, 205, .13), transparent 30rem),
    radial-gradient(circle at 5% 38%, rgba(255, 180, 94, .09), transparent 27rem),
    #0d1318;
  font-family: var(--font-ui);
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  padding-bottom: env(safe-area-inset-bottom);
}

button, a { font: inherit; }
button { color: inherit; }

.topbar {
  width: min(1500px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-decoration: none;
}

.brand-mark {
  height: 24px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.brand-mark i {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.brand-mark i:nth-child(1), .brand-mark i:nth-child(5) { height: 9px; }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(4) { height: 17px; }
.brand-mark i:nth-child(3) { height: 24px; background: var(--warm); }

main { padding-bottom: 74px; }

.hero {
  width: min(1400px, calc(100% - 72px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 116px) 0 clamp(48px, 6vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr);
  gap: 64px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.15rem, 7.2vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .86;
}

h1 em { color: var(--warm); font-weight: 400; }

.hero-copy {
  max-width: 430px;
  margin: 0 0 8px;
  color: #bbc5c7;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.75;
}

.studio {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(20, 29, 36, .82);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .38);
  backdrop-filter: blur(14px);
}

.control-panel {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.display-options, .transport { display: flex; flex-wrap: wrap; gap: 6px; }

.control-button {
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 9px;
  color: #dbe4e4;
  background: rgba(255, 255, 255, .055);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .015em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.control-button:hover:not(:disabled), .control-button:focus-visible {
  border-color: rgba(100, 229, 205, .55);
  background: rgba(100, 229, 205, .11);
}

.control-button:active:not(:disabled) { transform: translateY(1px); }
.control-button:disabled, .control-button.is-disabled { opacity: .38; cursor: not-allowed; pointer-events: none; }
.control-button:focus-visible, .key:focus-visible { outline: 3px solid rgba(100, 229, 205, .42); outline-offset: 2px; }

.toggle-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #6d797d;
  border-radius: 50%;
  background: transparent;
}

.toggle-button.is-on .toggle-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px rgba(100, 229, 205, .6); }
.mark-button.is-on { border-color: var(--warm); color: #17120b; background: var(--warm); }
.mark-button.is-on .button-icon { fill: currentColor; }
.play-marked-button:not(:disabled) { border-color: rgba(100, 229, 205, .5); color: #0c1917; background: linear-gradient(135deg, #91f3df, var(--accent)); }
.mark-button.is-on:hover:not(:disabled),
.mark-button.is-on:focus-visible {
  border-color: #ffe0ad;
  color: #17120b;
  background: linear-gradient(135deg, #ffd28d, var(--warm));
  box-shadow: 0 5px 16px rgba(255, 180, 94, .2);
}
.play-marked-button:not(:disabled):hover,
.play-marked-button:not(:disabled):focus-visible {
  border-color: #c7fff4;
  color: #081714;
  background: linear-gradient(135deg, #bafff1, #72ead3);
  box-shadow: 0 5px 16px rgba(100, 229, 205, .2);
}
.record-button { border-color: rgba(255, 95, 109, .35); }
.record-button.is-recording { border-color: var(--danger); color: #fff; background: rgba(255, 95, 109, .18); }
.record-button.is-recording:hover:not(:disabled),
.record-button.is-recording:focus-visible {
  border-color: #ff8b96;
  color: #fff;
  background: rgba(255, 95, 109, .26);
  box-shadow: 0 5px 16px rgba(255, 95, 109, .16);
}
.record-icon { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 95, 109, .11); }
.record-button.is-recording .record-icon { border-radius: 2px; animation: recordPulse 1.2s ease infinite; }

.download-button {
  border-color: rgba(255, 180, 94, .45);
  color: #15120d;
  background: linear-gradient(135deg, #ffd28d, var(--warm));
}

.download-button:hover:not(.is-disabled) { border-color: #ffe3b5; background: linear-gradient(135deg, #ffe0ac, #ffc16f); }
.fullscreen-button {
  min-height: 38px;
  padding-inline: 11px;
  border-color: rgba(100, 229, 205, .3);
  color: #bdf8ec;
  background: rgba(100, 229, 205, .065);
  box-shadow: none;
}
.fullscreen-button:hover:not(:disabled),
.fullscreen-button:focus-visible,
.fullscreen-button[aria-pressed="true"] {
  border-color: rgba(100, 229, 205, .58);
  color: #ecfffb;
  background: rgba(100, 229, 205, .14);
  box-shadow: 0 4px 14px rgba(100, 229, 205, .1);
}
.button-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.play-icon { fill: currentColor; stroke: none; }

.take-strip {
  min-height: 70px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  background: var(--panel-deep);
  border-bottom: 1px solid var(--line);
}

.take-state { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 13px; }
.take-state div { min-width: 0; display: grid; gap: 3px; }
.take-state strong { color: var(--ink); font-size: .82rem; }
.take-state span:not(.status-light) { font-size: .73rem; }
.status-light { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px rgba(100, 229, 205, .52); }
.status-light.recording { background: var(--danger); box-shadow: 0 0 13px rgba(255, 95, 109, .7); animation: recordPulse 1.2s ease infinite; }
.status-light.processing { background: var(--warm); box-shadow: 0 0 13px rgba(255, 180, 94, .65); }
#recordingTimer { flex: 0 0 auto; color: #d8dfdf; font-size: .88rem; font-variant-numeric: tabular-nums; letter-spacing: .08em; }

.keyboard-frame { position: relative; background: #c8c3b8; }
.rotate-prompt { display: none; }
.piano-deck {
  height: 104px;
  padding: 20px clamp(22px, 6vw, 92px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(24px, 6vw, 92px);
  align-items: center;
  color: #dce3e2;
  background:
    linear-gradient(100deg, rgba(255,255,255,.07), transparent 30%, rgba(255,255,255,.04) 65%, transparent),
    linear-gradient(#253039, #182129);
  border-bottom: 5px solid #0a0e11;
  box-shadow: inset 0 -9px 22px rgba(0, 0, 0, .32);
}

.speaker-grille { height: 48px; opacity: .45; background-image: radial-gradient(circle, #030506 1px, transparent 1.3px); background-size: 7px 7px; }
.deck-badge { display: grid; gap: 4px; text-align: center; }
.deck-badge b { font-size: .8rem; letter-spacing: .25em; }
.deck-badge span { color: var(--accent); font-size: .56rem; letter-spacing: .16em; }

.keyboard-viewport {
  width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  background: #cac6bc;
}

.piano {
  --white-width: calc(100% / 21);
  position: relative;
  width: 100%;
  min-width: 0;
  height: clamp(270px, 26vw, 390px);
  display: flex;
  padding: 0 6px 12px;
  user-select: none;
  -webkit-user-select: none;
}

.key {
  position: relative;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  touch-action: none;
}

@media (hover: none), (pointer: coarse) {
  .key { touch-action: none; }
  .control-button { -webkit-tap-highlight-color: transparent; }
}

.key-white {
  width: var(--white-width);
  height: 100%;
  z-index: 1;
  border: 1px solid #afa99e;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.04), transparent 9%, transparent 87%, rgba(0,0,0,.075)),
    linear-gradient(#fffdf8 0%, var(--white-key) 71%, #e7e1d5 100%);
  box-shadow: inset 0 -8px 0 var(--white-key-edge), 0 8px 7px rgba(0,0,0,.32);
  transform-origin: top;
  transition: transform 55ms ease, filter 55ms ease, box-shadow 55ms ease;
}

.key-white + .key-white { border-left-color: #c6c0b6; }

.key-black {
  position: absolute;
  top: 0;
  width: 2.8%;
  height: 62%;
  z-index: 3;
  border: 1px solid #050607;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  color: #f4f7f6;
  background:
    linear-gradient(90deg, rgba(255,255,255,.14), transparent 15%, transparent 72%, rgba(0,0,0,.7)),
    linear-gradient(#252b31 0%, #111418 74%, #292f34 75%, #07090a 100%);
  box-shadow: inset 0 -8px 2px rgba(255,255,255,.08), 0 8px 8px rgba(0,0,0,.52);
  transform-origin: top;
  transition: transform 55ms ease, filter 55ms ease, box-shadow 55ms ease;
}

.key.is-active.key-white {
  transform: perspective(700px) rotateX(-2deg) translateY(5px);
  filter: brightness(.97) saturate(1.25);
  box-shadow: inset 0 -3px 0 #bdb6aa, 0 3px 3px rgba(0,0,0,.29), inset 0 0 36px rgba(100, 229, 205, .23);
}

.key.is-active.key-black {
  transform: perspective(500px) rotateX(-3deg) translateY(5px);
  filter: brightness(1.35);
  box-shadow: inset 0 -3px 1px rgba(100,229,205,.42), 0 3px 3px rgba(0,0,0,.45), 0 0 20px rgba(100,229,205,.22);
}

.key.is-marked::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 3px rgba(255,180,94,.2), 0 3px 8px rgba(0,0,0,.25);
  transform: translateX(-50%);
  pointer-events: none;
}

.key-white.is-marked::after { top: 62%; }
.key-black.is-marked::after { top: 14px; width: 10px; height: 10px; border-width: 1px; }

.key-labels {
  position: absolute;
  left: 50%;
  bottom: 21px;
  width: 90%;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.key-black .key-labels { bottom: 13px; gap: 5px; }
.key-black .note-name { line-height: 1.08; }
.note-name { color: #71716c; font-family: var(--font-display); font-size: .9rem; }
.key-black .note-name { color: #bfc5c4; font-size: .67rem; }
.binding-label { min-width: 25px; height: 25px; padding: 0 6px; display: grid; place-items: center; border: 1px solid #c8c2b7; border-radius: 7px; color: #394143; background: rgba(255,255,255,.52); font-size: .64rem; font-weight: 900; box-shadow: 0 2px 3px rgba(0,0,0,.08); }
.key-black .binding-label { min-width: 22px; height: 22px; padding: 0 4px; border-color: #50585c; color: #e8eeee; background: #262d31; }
.hide-notes .note-name, .hide-bindings .binding-label { display: none; }

.details {
  width: min(1300px, calc(100% - 72px));
  margin: clamp(66px, 8vw, 118px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.details article { padding: 32px 38px 18px 0; }
.details article + article { padding-left: 38px; border-left: 1px solid var(--line); }
.details span { color: var(--accent); font-size: .68rem; font-weight: 900; letter-spacing: .18em; }
.details h2 { margin: 18px 0 9px; font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; }
.details p { max-width: 320px; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.65; }

footer {
  width: min(1500px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #6f7b7e;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.studio:fullscreen, .studio.fullscreen-fallback {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0d1318;
  padding-right: env(safe-area-inset-right);
  padding-left: env(safe-area-inset-left);
  padding-bottom: env(safe-area-inset-bottom);
}

.studio:fullscreen .control-panel, .studio.fullscreen-fallback .control-panel {
  flex: 0 0 auto;
  min-height: 64px;
  padding: 10px 16px;
  flex-direction: row;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(16, 23, 29, .98);
}
.studio:fullscreen .display-options, .studio.fullscreen-fallback .display-options,
.studio:fullscreen .transport, .studio.fullscreen-fallback .transport {
  width: auto;
  flex-wrap: nowrap;
}
.studio:fullscreen .take-strip, .studio.fullscreen-fallback .take-strip {
  flex: 0 0 58px;
  min-height: 58px;
  padding-block: 8px;
}
.studio:fullscreen .keyboard-frame, .studio.fullscreen-fallback .keyboard-frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(14px, 3vh, 34px) 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(100, 229, 205, .08), transparent 34rem),
    #111920;
}
.studio:fullscreen .piano-deck, .studio.fullscreen-fallback .piano-deck {
  flex: 0 0 94px;
  height: 94px;
}
.studio:fullscreen .keyboard-viewport, .studio.fullscreen-fallback .keyboard-viewport {
  flex: 0 0 auto;
  width: 100%;
  background: transparent;
}
.studio:fullscreen .piano, .studio.fullscreen-fallback .piano {
  width: 100%;
  height: clamp(280px, min(50vh, 30vw), 560px);
  min-height: 0;
}
.studio.fullscreen-fallback { position: fixed; inset: 0; z-index: 1000; }

@keyframes recordPulse { 50% { opacity: .45; transform: scale(.86); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { margin: 0; }
  .control-panel { align-items: flex-start; flex-direction: column; }
  .transport { width: 100%; }
  .transport .control-button { flex: 1 1 auto; }
  .piano-deck { height: 82px; padding-block: 16px; }
  .piano { width:100%; min-width:0; height:clamp(240px,42vw,330px); }
  .note-name { font-size:clamp(.58rem,1.25vw,.82rem); }
  .key-black .note-name { font-size:clamp(.45rem,.92vw,.62rem); }
  .binding-label { min-width:clamp(15px,2.5vw,23px); height:clamp(18px,2.8vw,23px); padding-inline:3px; font-size:clamp(.48rem,.9vw,.6rem); }
  .key-black .binding-label { min-width:clamp(13px,2vw,20px); height:clamp(16px,2.35vw,20px); padding-inline:2px; font-size:clamp(.43rem,.8vw,.55rem); }
  .details { grid-template-columns: 1fr; }
  .details article, .details article + article { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .topbar { width: calc(100% - 30px); min-height: 64px; }
  .topbar p { display: none; }
  main { padding-bottom: 50px; }
  .hero { width: calc(100% - 32px); padding: 38px 0 34px; gap: 20px; }
  .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(3rem, 15vw, 4.65rem); }
  .hero-copy { font-size: .94rem; line-height: 1.58; }
  .studio { width: calc(100% - 16px); border-radius: 18px; }
  .control-panel { padding: 10px; }
  .display-options { width: 100%; }
  .display-options .control-button { flex: 1; }
  .transport { display: grid; grid-template-columns: 1fr 1fr; }
  .control-button { min-height: 48px; }
  .transport .control-button { min-width: 0; padding-inline: 9px; }
  .take-strip { min-height: 65px; padding: 10px 13px; }
  .take-state span:not(.status-light) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .piano-deck { height: 70px; padding: 12px 18px; gap: 20px; }
  .speaker-grille { height: 35px; }
  .deck-badge span { display: none; }
  .piano { min-width:0; height:clamp(235px,52vw,300px); }
  .details { width: calc(100% - 36px); margin-top: 64px; }
  footer { width: calc(100% - 30px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
}

@media (max-width: 390px) {
  .topbar { min-height: 58px; }
  .brand { font-size: .78rem; }
  .hero { padding-top: 30px; }
  h1 { font-size: clamp(2.72rem, 14.6vw, 3.55rem); }
  .hero-copy { font-size: .88rem; }
  .studio { width: calc(100% - 10px); border-radius: 15px; }
  .control-panel { padding: 8px; gap: 8px; }
  .control-button { padding-inline: 9px; font-size: .7rem; }
  .take-strip { padding-inline: 10px; gap: 10px; }
  .take-state { gap: 9px; }
  .take-state span:not(.status-light) { max-width: 158px; }
  #recordingTimer { font-size: .76rem; letter-spacing: .04em; }
  .piano-deck { height: 60px; padding-inline: 13px; gap: 13px; }
  .speaker-grille { height: 30px; background-size: 6px 6px; }
  .deck-badge b { font-size: .68rem; }
  .piano { min-width:0; height:240px; }
}

@media (orientation: landscape) and (max-height: 560px) and (pointer: coarse) {
  .hero { padding-block: 28px; grid-template-columns: 1.25fr .75fr; align-items: center; }
  .hero h1 { font-size: clamp(2.8rem, 8vw, 4.6rem); }
  .hero-copy { font-size: .86rem; }
  .studio:fullscreen .control-panel, .studio.fullscreen-fallback .control-panel { min-height: 50px; padding: 5px 8px; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
  .studio:fullscreen .control-button, .studio.fullscreen-fallback .control-button { min-height: 40px; white-space: nowrap; }
  .studio:fullscreen .take-strip, .studio.fullscreen-fallback .take-strip { display: none; }
  .studio:fullscreen .keyboard-frame, .studio.fullscreen-fallback .keyboard-frame { padding-block: 6px; }
  .studio:fullscreen .piano-deck, .studio.fullscreen-fallback .piano-deck { flex-basis: 58px; height: 58px; padding-block: 9px; }
  .studio:fullscreen .piano, .studio.fullscreen-fallback .piano { height:clamp(190px,min(58vh,30vw),300px); min-height:0; }
}

@media (max-width:560px) and (orientation:portrait) and (pointer:coarse) {
  body {
    height:100vh;
    height:100dvh;
    overflow:hidden;
  }
  .rotate-prompt {
    position:fixed;
    inset: 0;
    z-index:10000;
    min-height:100vh;
    min-height:100dvh;
    padding:
      max(28px,env(safe-area-inset-top))
      max(24px,env(safe-area-inset-right))
      max(28px,env(safe-area-inset-bottom))
      max(24px,env(safe-area-inset-left));
    display:grid;
    grid-template-columns:auto minmax(0,280px);
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: #eef4f2;
    background:
      radial-gradient(circle at 25% 30%,rgba(100,229,205,.2),transparent 16rem),
      radial-gradient(circle at 76% 72%,rgba(255,180,94,.11),transparent 16rem),
      #0e151b;
    text-align: left;
  }

  .rotate-prompt div { display:grid; gap:8px; }
  .rotate-prompt small { color:var(--accent); font-size:.58rem; font-weight:900; letter-spacing:.2em; }
  .rotate-prompt strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; line-height: 1.08; }
  .rotate-prompt span:not(.rotate-device) { color: #aab6b8; font-size: .78rem; line-height: 1.5; }
  .rotate-device { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(100,229,205,.35); border-radius: 16px; color: var(--accent); background: rgba(100,229,205,.08); }
  .rotate-device svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
}

@media (max-width: 980px) and (orientation: landscape) {
  .keyboard-viewport { overflow-x: hidden; }
  .piano { width: 100%; min-width: 100%; height: clamp(220px, 47vw, 330px); }
  .key-black .note-name { font-size: clamp(.47rem, 1vw, .65rem); }
  .binding-label { min-width: 20px; height: 22px; padding-inline: 4px; font-size: .57rem; }
  .key-black .binding-label { min-width: 18px; height: 19px; font-size: .52rem; }
}

@media (max-width: 700px) and (orientation: portrait) and (hover: hover) and (pointer: fine) {
  .keyboard-viewport { overflow-x: hidden; }
  .piano { width: 100%; min-width: 100%; height: clamp(210px, 68vw, 280px); }
  .note-name { display: none; }
  .binding-label { min-width: 14px; height: 19px; padding-inline: 2px; border-radius: 4px; font-size: .5rem; }
  .key-black .binding-label { min-width: 12px; height: 17px; font-size: .46rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
