/* ──────────────────────────────────────────────────────────────────────
   Music Lab · Piano virtual (/herramientas/piano)
   On top of music-lab.css. The instrument keeps its own dark palette in
   both themes: a stage, not a page. Everything about the keys is measured
   in white keys: --x (the view's offset, white keys) and --v (white keys
   in view), set on the article by the bundle; each key carries --l (left)
   and --w (width) from the server, and the keys and the strip are placed
   as percentages of the stage, so --v keys fill it exactly. --ww (one
   white key, px) is kept for the bundle's gestures.
   ────────────────────────────────────────────────────────────────────── */

.ml-piano {
  --ww: 54px;
  --x: 16;
  --v: 15;
  --pk-bg: #08070c;
  --pk-bezel: #121118;
  --pk-line: rgba(255, 255, 255, .09);
  --pk-text: #e9e8f1;
  --pk-muted: #9b98ad;
  --pk-blue: #3d8bff;
  --pk-blue-soft: rgba(61, 139, 255, .22);
  --pk-glow: rgba(61, 139, 255, .6);
  --pk-bar-h: 52px;
  --pk-nav-h: 54px;
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  background: var(--pk-bg);
  color: var(--pk-text);
  font-family: Inter, system-ui, sans-serif;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* An element the bundle hides stays hidden whatever its display. */
.ml-piano [hidden] { display: none !important; }

/* In the page (not immersive): a bezel inside the layout. */
.ml-piano-page .ml-main { padding-bottom: 32px; }
.ml-piano-page__intro, .ml-piano-page__notes { max-width: var(--ml-max); margin: 0 auto; padding: 22px 20px 0; }
.ml-piano-page__title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ml-piano-page__title h1 { font: 700 clamp(28px, 4vw, 40px)/1.05 "Space Grotesk", Inter, sans-serif; margin: 0 0 8px; letter-spacing: -.02em; }
.ml-piano-page__grad { background: var(--ml-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ml-piano-page__lead { max-width: 60ch; margin: 0; color: var(--ml-muted); font-size: 15.5px; line-height: 1.5; }
.ml-piano-page__notes h2 { font: 700 20px/1.2 "Space Grotesk", Inter, sans-serif; margin: 26px 0 12px; }
.ml-piano-page__notes ul { margin: 0; padding-left: 20px; color: var(--ml-muted); font-size: 14.5px; line-height: 1.55; }
.ml-piano-page__notes li + li { margin-top: 8px; }
.ml-piano-page__notes strong { color: var(--ml-text); }
body:not(.ml-piano-immersive) .ml-piano {
  width: min(100%, var(--ml-max));
  height: clamp(360px, 62vh, 620px);
  margin: 0 auto;
  border-radius: 18px;
  border: 1px solid var(--pk-line);
  overflow: hidden;
  box-shadow: var(--ml-shadow);
}
@media (max-width: 1220px) { body:not(.ml-piano-immersive) .ml-piano { border-radius: 0; border-left: 0; border-right: 0; } }

/* Immersive: the whole screen, inside the safe areas (the notch, the home indicator). */
body.ml-piano-immersive { overflow: hidden; overscroll-behavior: none; background: var(--pk-bg); }
body.ml-piano-immersive .ml-nav, body.ml-piano-immersive .ml-footer, body.ml-piano-immersive .mlb,
body.ml-piano-immersive .ml-piano-page__intro, body.ml-piano-immersive .ml-piano-page__notes, body.ml-piano-immersive .ml-skip { display: none; }
body.ml-piano-immersive .ml-main { padding: 0; margin: 0; max-width: none; }
body.ml-piano-immersive .ml-piano {
  position: fixed;
  inset: 0;
  z-index: 60;
  height: 100vh;
  height: 100dvh;
  /* The notch's sides and the top stay clear; the keys run to the bottom
     edge, their names lifted above the home indicator. */
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) 0 env(safe-area-inset-left, 0);
}
body.ml-piano-immersive .ml-piano__label { bottom: calc(11px + env(safe-area-inset-bottom, 0px)); }
body.ml-piano-immersive .ml-piano__key--black .ml-piano__label { bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
.ml-piano:fullscreen { padding: 0; }

/* ── The bar ─────────────────────────────────────────────────────────── */
.ml-piano__bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "left center right exit";
  align-items: center;
  gap: 10px;
  min-height: var(--pk-bar-h);
  padding: 6px 10px 4px;
  background: linear-gradient(#17161e, #0d0c12);
  border-bottom: 1px solid var(--pk-line);
}
.ml-piano__group { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ml-piano__group--left { grid-area: left; }
.ml-piano__group--center { grid-area: center; justify-content: center; }
.ml-piano__group--right { grid-area: right; justify-content: flex-end; }
.ml-piano__btn--exit { grid-area: exit; }
/* Portrait phones only (see the media query below): a nudge to turn the phone. */
.ml-piano__rotate { display: none; margin: 0; padding: 5px 12px; text-align: center; font: 500 12px/1.2 Inter, system-ui, sans-serif; color: var(--pk-muted); background: #0b0a10; border-bottom: 1px solid var(--pk-line); }
.ml-piano__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ml-piano__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 44px;
  height: 42px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: var(--pk-text);
  font: 500 10.5px/1.1 Inter, system-ui, sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s, border-color .12s, box-shadow .2s, color .12s;
}
.ml-piano__btn svg { flex: none; }
.ml-piano__btn:hover { background: rgba(255, 255, 255, .1); }
.ml-piano__btn:focus-visible { outline: 2px solid var(--pk-blue); outline-offset: 2px; }
.ml-piano__btn[aria-pressed="true"], .ml-piano__btn[aria-expanded="true"] {
  background: var(--pk-blue-soft);
  border-color: rgba(61, 139, 255, .6);
  color: #a9cdff;
  box-shadow: 0 0 14px rgba(61, 139, 255, .3);
}
.ml-piano__btn.is-beat { background: rgba(61, 139, 255, .55); color: #fff; transition: none; }
.ml-piano__btn.is-beat.is-accent { background: #3d8bff; }
.ml-piano__btn--icon { gap: 0; padding: 0; width: 42px; }
.ml-piano__btn--step { width: 36px; height: 36px; border-radius: 10px; }
.ml-piano__btn--small { height: 30px; min-width: 0; padding: 0 10px; font-size: 12px; font-weight: 600; }
.ml-piano__btn--exit { border-color: rgba(255, 255, 255, .14); }
body:not(.ml-piano-immersive) .ml-piano__btn--exit { display: none; }
.ml-piano__btn-txt { display: block; }
.ml-piano__btn-txt--short { display: none; }

.ml-piano__inst { display: inline-flex; align-items: center; position: relative; }
.ml-piano__select {
  appearance: none;
  -webkit-appearance: none;
  height: 42px;
  padding: 0 32px 0 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9c7d6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center / 14px 14px;
  color: var(--pk-text);
  font: 600 13.5px Inter, system-ui, sans-serif;
  max-width: 190px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.ml-piano__select:focus-visible { outline: 2px solid var(--pk-blue); outline-offset: 2px; }

.ml-piano__range { font: 600 15px/1 "Space Grotesk", Inter, sans-serif; letter-spacing: .01em; min-width: 92px; text-align: center; font-variant-numeric: tabular-nums; }
.ml-piano__now { margin-left: 8px; min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12.5px/1 Inter, system-ui, sans-serif; color: #9cc6ff; font-variant-numeric: tabular-nums; }
.ml-piano__now:empty { display: none; }

/* ── The navigator ───────────────────────────────────────────────────── */
.ml-piano__nav {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: var(--pk-nav-h);
  padding: 7px 10px;
  background: #0b0a10;
  border-bottom: 1px solid var(--pk-line);
}
.ml-piano__nav-btn { height: auto; width: 40px; flex: none; }
.ml-piano__mini {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  background: #16151d;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.ml-piano__mini:focus-visible { outline: 2px solid var(--pk-blue); outline-offset: 1px; }
.ml-piano__mini.is-dragging { cursor: grabbing; }
.ml-piano__mini-w, .ml-piano__mini-b { position: absolute; top: 0; display: block; pointer-events: none; }
.ml-piano__mini-w { height: 100%; left: calc(var(--l) * 100% / 52); width: calc(100% / 52); background: linear-gradient(#d2d1dc, #b9b8c6); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .55); border-radius: 0 0 2px 2px; opacity: .55; z-index: 1; }
.ml-piano__mini-w--c { background: linear-gradient(#dddce6, #c3c2d0); }
.ml-piano__mini-b { height: 58%; left: calc(var(--l) * 100% / 52); width: calc(.6 * 100% / 52); background: #101017; border-radius: 0 0 2px 2px; z-index: 2; box-shadow: 0 1px 0 rgba(0, 0, 0, .6); }
.ml-piano__win {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--x) * 100% / 52);
  width: calc(var(--v) * 100% / 52);
  box-sizing: border-box;
  border: 2px solid var(--pk-blue);
  border-radius: 6px;
  background: rgba(61, 139, 255, .24);
  box-shadow: 0 0 14px var(--pk-glow), inset 0 0 12px rgba(61, 139, 255, .35);
  z-index: 3;
  pointer-events: none;
}
.ml-piano__win::before, .ml-piano__win::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px;
  height: 14px;
  margin-top: -7px;
  border-radius: 2px;
  background: #fff;
  opacity: .8;
}
.ml-piano__win::before { left: 3px; }
.ml-piano__win::after { right: 3px; }

/* ── The keys ────────────────────────────────────────────────────────── */
.ml-piano__stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #0a090f;
  touch-action: none;
}
/* The fallboard's shadow over the top of the keys. */
.ml-piano__stage::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 14px;
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  z-index: 3;
  pointer-events: none;
}
.ml-piano__stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, #2a1d33, #4b2f5a 40%, #2a1d33);
  z-index: 4;
  pointer-events: none;
}
.ml-piano__strip {
  position: absolute;
  inset: 0;
  /* Percentages of the stage: --v white keys always fill it exactly. */
  transform: translate3d(calc(var(--x) * -100% / var(--v)), 0, 0);
  will-change: transform;
}
.ml-piano__key {
  position: absolute;
  top: 0;
  left: calc(var(--l) * 100% / var(--v));
  width: calc(var(--w) * 100% / var(--v));
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  cursor: pointer;
  touch-action: none;
  transition: background .07s, box-shadow .22s, transform .06s;
}
.ml-piano__key--white {
  height: 100%;
  z-index: 1;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(#ffffff, #f0f0f5 70%, #e3e3ea);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .42), inset 1px 0 0 rgba(255, 255, 255, .7), inset 0 -8px 0 rgba(0, 0, 0, .09);
}
.ml-piano__key--black {
  height: 62%;
  z-index: 2;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(#3b3a47, #1a1a22 55%, #0d0d12);
  box-shadow: 0 5px 3px rgba(0, 0, 0, .55), inset 0 -8px 0 rgba(255, 255, 255, .045), inset 2px 0 0 rgba(255, 255, 255, .09), inset -2px 0 0 rgba(0, 0, 0, .5);
}
.ml-piano__key--white.is-down {
  background: linear-gradient(#b5d4ff, #5aa0ff 55%, #2f7bff);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .42), inset 0 -5px 0 rgba(0, 0, 0, .15), 0 0 26px var(--pk-glow);
  transform: translateY(1.5px);
}
.ml-piano__key--black.is-down {
  background: linear-gradient(#6fb0ff, #2c73e8 60%, #1d5bc7);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .55), 0 0 20px var(--pk-glow);
  transform: translateY(1.5px);
}
.ml-piano__key.is-hint { box-shadow: inset 0 0 0 3px var(--pk-blue); }
.ml-piano__label {
  position: absolute;
  left: 0; right: 0;
  bottom: 11px;
  text-align: center;
  font: 600 13px/1 Inter, system-ui, sans-serif;
  color: #5f5e73;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.ml-piano__key--c .ml-piano__label { color: #4b4a60; }
.ml-piano__key--white.is-down .ml-piano__label { color: #fff; }
.ml-piano__key--black .ml-piano__label { bottom: 9px; font-size: 10.5px; color: #c9c8d8; }
.ml-piano__label:empty { display: none; }
/* Narrow keys: smaller type; the black keys keep their names, smaller still. */
.ml-piano--tight .ml-piano__label { font-size: 10.5px; bottom: 8px; }
.ml-piano--tight .ml-piano__key--black .ml-piano__label { font-size: 8.5px; bottom: 7px; letter-spacing: -.02em; }

.ml-piano__status {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 7, 12, .78);
  border: 1px solid var(--pk-line);
  color: #cfd3e6;
  font: 500 12px/1.2 Inter, system-ui, sans-serif;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
}

/* ── The volume popover ──────────────────────────────────────────────── */
.ml-piano__pop {
  position: absolute;
  top: calc(var(--pk-bar-h) + env(safe-area-inset-top, 0px) + 4px);
  right: calc(env(safe-area-inset-right, 0px) + 10px);
  z-index: 25;
  width: 230px;
  padding: 12px 14px 14px;
  border-radius: 14px;
  background: #17161f;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.ml-piano__pop label { display: flex; justify-content: space-between; font: 600 13px Inter, system-ui, sans-serif; margin-bottom: 8px; }
.ml-piano__pop output { color: #9cc6ff; font-variant-numeric: tabular-nums; }

/* ── The settings sheet ──────────────────────────────────────────────── */
.ml-piano__sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(5, 4, 8, .7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.ml-piano__sheet-in {
  width: min(100%, 980px);
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  border-radius: 18px;
  background: #15141c;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.ml-piano__sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 18px; background: #15141c; border-bottom: 1px solid var(--pk-line); }
.ml-piano__sheet-head h2 { margin: 0; font: 700 17px/1 "Space Grotesk", Inter, sans-serif; }
.ml-piano__sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.ml-piano__field { padding: 12px 18px 16px; border-right: 1px solid var(--pk-line); }
.ml-piano__field:last-child { border-right: 0; }
.ml-piano__field h3 { margin: 0 0 10px; font: 600 11.5px/1 Inter, system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--pk-muted); }
.ml-piano__field h3 + h3, .ml-piano__row + h3 { margin-top: 16px; }
.ml-piano__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; font-size: 14px; }
.ml-piano__row + .ml-piano__row { margin-top: 6px; }
.ml-piano__row > span { display: flex; flex-direction: column; min-width: 0; }
.ml-piano__row small { color: var(--pk-muted); font-size: 12px; line-height: 1.35; margin-top: 2px; }
.ml-piano__row--range { justify-content: flex-start; }
.ml-piano__row--range label { flex: none; width: 52px; color: var(--pk-muted); }
.ml-piano__row--range input[type="range"] { flex: 1; min-width: 60px; }
.ml-piano__num { width: 64px; height: 34px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 9px; background: rgba(255, 255, 255, .06); color: var(--pk-text); font: 600 14px Inter, system-ui, sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.ml-piano__num:focus-visible { outline: 2px solid var(--pk-blue); }
.ml-piano__unit { color: var(--pk-muted); font-size: 12px; }
.ml-piano__hint { margin: 10px 0 0; color: var(--pk-muted); font-size: 12.5px; line-height: 1.45; }
.ml-piano__hint kbd { font: 600 11px/1 Inter, system-ui, sans-serif; padding: 2px 5px; border-radius: 5px; background: rgba(255, 255, 255, .1); color: var(--pk-text); }
@media (pointer: coarse) { .ml-piano__hint--desktop { display: none; } }

.ml-piano__seg { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.ml-piano__seg button { border: 0; border-radius: 8px; padding: 6px 10px; background: transparent; color: var(--pk-muted); font: 500 12.5px Inter, system-ui, sans-serif; cursor: pointer; }
.ml-piano__seg button[aria-pressed="true"] { background: var(--pk-blue); color: #fff; }
.ml-piano__seg button:focus-visible { outline: 2px solid var(--pk-blue); outline-offset: 1px; }

/* Switches: a checkbox drawn as a pill. */
.ml-piano__row--switch input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, .14);
  position: relative;
  cursor: pointer;
  transition: background .15s;
}
.ml-piano__row--switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ml-piano__row--switch input:checked { background: var(--pk-blue); }
.ml-piano__row--switch input:checked::after { transform: translateX(18px); }
.ml-piano__row--switch input:focus-visible { outline: 2px solid var(--pk-blue); outline-offset: 2px; }

/* Range inputs on the dark stage. */
.ml-piano input[type="range"] { accent-color: var(--pk-blue); width: 100%; margin: 0; }

/* ── Sizes ───────────────────────────────────────────────────────────── */
/* A phone held sideways: every pixel of height goes to the keys. */
@media (max-height: 460px) {
  .ml-piano { --pk-bar-h: 46px; --pk-nav-h: 48px; }
  .ml-piano__bar { padding: 4px 8px 3px; gap: 6px; }
  .ml-piano__btn { height: 38px; min-width: 40px; border-radius: 10px; }
  .ml-piano__btn--icon { width: 38px; }
  .ml-piano__select { height: 38px; font-size: 12.5px; max-width: 150px; }
  .ml-piano__nav { padding: 5px 8px; }
  .ml-piano__sheet { padding: 6px; }
  .ml-piano__sheet-in { border-radius: 12px; }
  .ml-piano__sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ml-piano__field { padding: 8px 14px 12px; }
  .ml-piano__field:nth-child(2) { border-right: 0; }
  .ml-piano__field:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--pk-line); border-right: 0; }
}
/* Narrow: icons speak alone in the bar. */
@media (max-width: 900px) {
  .ml-piano__btn-txt { display: none; }
  .ml-piano__btn { gap: 0; padding: 0 8px; }
  .ml-piano__now { max-width: 120px; }
}
@media (max-width: 760px) {
  .ml-piano__bar { grid-template-columns: auto 1fr auto; gap: 4px; }
  .ml-piano__select { max-width: 120px; padding-right: 26px; }
  .ml-piano__range { min-width: 76px; font-size: 13.5px; }
  .ml-piano__now { display: none; }
  .ml-piano__btn { min-width: 36px; }
  .ml-piano__btn--icon { width: 36px; }
}
/* Narrow screens: the sheet stacks. */
@media (max-width: 640px) {
  .ml-piano__sheet-grid { grid-template-columns: 1fr; }
  .ml-piano__field { border-right: 0; border-bottom: 1px solid var(--pk-line); }
  .ml-piano__field:last-child { border-bottom: 0; }
}
/* Phones held upright: the bar stacks in three rows (height is plentiful,
   width is not) and the buttons get their names back. Sideways, even on a
   small old phone, the single row stays: the keys need the height. */
@media (max-width: 640px) and (orientation: portrait) {
  .ml-piano { --pk-bar-h: auto; grid-template-rows: auto auto auto minmax(0, 1fr); }
  .ml-piano__bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "left left exit" "center center center" "right right right";
    gap: 8px 6px;
    padding: 8px 10px;
  }
  .ml-piano__group--left { min-width: 0; }
  .ml-piano__inst { flex: 1; min-width: 0; }
  .ml-piano__select { width: 100%; max-width: none; }
  .ml-piano__group--center { gap: 10px; }
  .ml-piano__range { font-size: 15px; min-width: 92px; }
  .ml-piano__group--right { justify-content: space-between; gap: 4px; }
  .ml-piano__group--right .ml-piano__btn { flex: 1; min-width: 0; height: 46px; padding: 3px 4px; gap: 2px; }
  .ml-piano__group--right .ml-piano__btn-txt { display: block; font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .ml-piano__group--right .ml-piano__btn-txt--long { display: none; }
  .ml-piano__btn--exit .ml-piano__btn-txt { display: none; }
  .ml-piano__btn--exit { width: 42px; height: 42px; padding: 0; }
  .ml-piano__rotate { display: block; }
}
@media (pointer: fine) {
  .ml-piano__rotate { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ml-piano__key, .ml-piano__btn, .ml-piano__row--switch input, .ml-piano__row--switch input::after { transition: none; }
}
