/* Pocket studio. Ambient aurora: icy blue to lavender, frosted panels, violet and aqua. */
/* Unbounded is the display face. Body copy stays the system sans. SIL OFL: /fonts/OFL.txt */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/unbounded-latin-600.woff2") format("woff2");
}

body.pocket {
  --px: 0;
  --py: 0;
  overflow-x: clip;
  color-scheme: light;
  background:
    radial-gradient(640px 420px at 10% 0%, rgba(63, 214, 198, 0.38), transparent 62%),
    radial-gradient(720px 480px at 96% 8%, rgba(123, 92, 255, 0.32), transparent 58%),
    linear-gradient(165deg, #e7f6ff, #efe8ff 46%, #f7fbff);
  color: #1b2240;
  font-family: "Segoe UI", system-ui, sans-serif;
}

body.pocket .home-title,
body.pocket .wordmark,
body.pocket .section-label,
body.pocket .play-steps h2,
body.pocket .strip-name,
body.pocket .drop-title,
body.pocket .tape-kicker,
body.pocket .play-empty-title,
body.pocket h1,
body.pocket h2,
body.pocket h3 {
  font-family: "Unbounded", "Segoe UI", sans-serif;
  font-weight: 600;
  font-synthesis: none;
}

body.pocket-home .home-wrap {
  width: min(1040px, calc(100% - 28px));
}

body.pocket .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: none;
  line-height: 1;
  font-size: clamp(12px, 3.4vw, 18px);
  letter-spacing: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #6a4ae0;
  color: #ffffff;
  box-shadow: 0 3px 0 #3d2496;
  text-decoration: none;
}

body.pocket .home-title { color: #1a1440; }

body.pocket .tagline,
body.pocket .model-note,
body.pocket .section-label { color: #3c4766; }

body.pocket .pocket-hero { margin-top: 8px; }

body.pocket-home .console-scene {
  perspective: 1000px;
  padding: 8px 0 16px;
}

body.pocket .ground-shadow {
  height: 22px;
  margin: -4px 8% 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45), transparent 70%);
}

body.pocket .console {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 22px 22px 28px 28px;
  background-color: #f7f8ff;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 28%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 36px rgba(70, 60, 140, 0.14);
}

body.pocket .console:not(.is-bench) {
  transform: rotateX(calc(11deg + var(--py) * -4deg)) rotateY(calc(var(--px) * 6deg));
  transform-origin: center bottom;
}

body.pocket .console.is-bench { transform: none; }

body.pocket .console:not(.is-bench) .tape-bay { order: 1; }
body.pocket .console:not(.is-bench) .strips { order: 2; }

body.pocket .strips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.pocket .strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 4px 10px;
  border-radius: 12px;
  background-color: #f7f8ff;
  background-image: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 0 #d5d0ea;
}

body.pocket .strip.is-dim { opacity: 0.45; }

body.pocket .strip-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.pocket .strip-vocals .strip-name::before { content: "Vocals"; }
body.pocket .strip-drums .strip-name::before { content: "Drums"; }
body.pocket .strip-bass .strip-name::before { content: "Bass"; }
body.pocket .strip-other .strip-name::before { content: "Other"; }
body.pocket .strip-name:not(:empty)::before { content: none; }

body.pocket .strip-vocals { color: #6a4ae0; }
body.pocket .strip-drums { color: #0e746c; }
body.pocket .strip-bass { color: #1a4a86; }
body.pocket .strip-other { color: #7a3478; }

body.pocket .meter {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 42px;
}

body.pocket .meter i {
  display: block;
  width: 4px;
  height: 28%;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.22;
}

body.pocket .meter i.is-on {
  height: 100%;
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
  transform-origin: bottom;
  animation: led-bounce 0.9s ease-in-out infinite;
}

body.pocket .fader,
body.pocket .pocket-fader {
  position: relative;
  width: 28px;
  height: 72px;
}

body.pocket .fader,
body.pocket .pocket-slot {
  width: 10px;
  border-radius: 8px;
  background: #0c0a0e;
  box-shadow: inset 0 0 0 2px #3a3040;
}

body.pocket .pocket-fader {
  display: flex;
  justify-content: center;
  touch-action: none;
}

body.pocket .pocket-slot {
  position: relative;
  height: 100%;
}

body.pocket .pocket-range { position: absolute; width: 100%; bottom: 0; background: transparent; }

body.pocket .fader i,
body.pocket .pocket-cap {
  border-radius: 4px;
  background: linear-gradient(#fff, #d7d0c6 40%, #8d8680);
  box-shadow: 0 3px 0 #4a453f, 0 6px 6px rgba(0, 0, 0, 0.4);
}

body.pocket .fader i {
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0;
  min-height: 14px;
}

body.pocket .fader i::after,
body.pocket .pocket-cap::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  height: 2px;
  background: #ff5d73;
}

body.pocket .pocket-cap {
  display: block;
  width: 22px;
  height: 16px;
  border: 0;
  padding: 0;
}

body.pocket .pocket-cap:active {
  box-shadow: 0 1px 0 #4a453f;
  filter: brightness(0.92);
}

body.pocket .knob {
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(#3a3a3a, #111);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.35),
    0 4px 0 #050406,
    0 6px 8px rgba(0, 0, 0, 0.35);
}

body.pocket .knob::after {
  content: "";
  display: block;
  width: 3px;
  height: 10px;
  margin: 3px auto 0;
  border-radius: 2px;
  background: currentColor;
}

body.pocket .knob:active,
body.pocket button.knob[aria-pressed='true'] {
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.55), 0 1px 0 #050406;
}

body.pocket .solo {
  min-width: 28px;
  min-height: 22px;
  border: 0;
  border-radius: 6px;
  background: #e7e9fb;
  color: #1b2240;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 3px 0 #c9c4e4;
}

body.pocket .solo[aria-pressed='true'] {
  background: #6a4ae0;
  color: #ffffff;
}

body.pocket .solo:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a070c; }

body.pocket .tape-bay {
  padding: 10px;
  border-radius: 16px;
  background: #e4e9f8;
  box-shadow: inset 0 0 0 3px #7b5cff, 0 8px 0 #c9c4e4;
}

body.pocket .tape-kicker {
  margin: 0 0 6px;
  min-height: 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a36d4;
}

body.pocket .tape-kicker:empty::before { content: "Tape door"; }

body.pocket .tape-bay .dropzone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 112px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  padding: 12px 58px;
  background: #fbfcff;
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.pocket .tape-bay .dropzone::before,
body.pocket .tape-bay .dropzone::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #1c140f 0 4px, transparent 5px),
    repeating-radial-gradient(circle, #241910 0 2px, #5a4636 2px 3px);
  box-shadow: inset 0 0 0 3px #1c140f, 0 0 0 2px #6b5340;
  pointer-events: none;
}

body.pocket .tape-bay .dropzone::before { left: 10px; }
body.pocket .tape-bay .dropzone::after { right: 10px; }

body.pocket .tape-bay .drop-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: auto;
  min-height: 72px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #1b2240;
  text-align: center;
}

body.pocket .tape-bay .drop-button:active { transform: translateY(2px); }

body.pocket .tape-bay .drop-title {
  color: #1b2240;
  font-size: clamp(16px, 4.4vw, 26px);
  line-height: 1.1;
}

body.pocket .tap-hint {
  color: #4a5470;
  font-size: 12px;
  font-weight: 700;
}

body.pocket .tape-bay .muted {
  color: #4a5470;
  font-size: 12px;
  line-height: 1.35;
  max-width: 16em;
  text-align: center;
}

body.pocket .model-note {
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #e7e4ff;
  color: #3c4766;
}

body.pocket .play-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 12px;
  border-radius: 16px;
  background-color: #f7f8ff;
  border: 2px solid #c9c4e4;
  box-shadow: 0 12px 28px rgba(70, 60, 140, 0.12);
}

body.pocket .play-empty-title {
  margin: 0;
  font-size: 20px;
  color: #1b2240;
}

body.pocket .play-empty-body {
  margin: 4px 0 10px;
  color: #3c4766;
  font-size: 14px;
}

body.pocket .spare-tape {
  position: relative;
  width: 86px;
  height: 54px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(#f0d7b4, #c9a67c);
  box-shadow: 4px 5px 0 #c9c4e4;
}

body.pocket .spare-tape span {
  position: absolute;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a120e 0 5px, #3a2a22 6px 8px, transparent 9px);
}

body.pocket .spare-tape span:first-child { left: 12px; }
body.pocket .spare-tape span:last-child { right: 12px; }

body.pocket .play-sample {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #6a4ae0;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #3d2496;
}

body.pocket .play-sample:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #3d2496;
}

body.pocket .library-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

body.pocket .song {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f7f8ff;
  border: 1px solid #d5d0ea;
  box-shadow: 0 8px 20px rgba(70, 60, 140, 0.1);
}

body.pocket .song-name { color: #1b2240; font-weight: 700; }

body.pocket .below,
body.pocket .site-footer {
  width: min(1040px, calc(100% - 20px));
  margin-left: auto;
  margin-right: auto;
}

body.pocket:not(.pocket-home):not(.pocket-guide):not(.pocket-prose) .below,
body.pocket:not(.pocket-home):not(.pocket-guide):not(.pocket-prose) .site-footer {
  width: min(640px, calc(100% - 32px));
}

body.pocket-guide .site-footer {
  width: min(980px, calc(100% - 20px));
}

body.pocket:not(.pocket-home) .pocket-hero .console-scene {
  margin-top: 36px;
}

body.pocket .below { margin-top: 28px; }

body.pocket .play-steps ol {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

body.pocket .play-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 14px 12px;
  border-radius: 16px;
  color: #1b2240;
  border: 2px solid #6a4ae0;
  box-shadow: 0 10px 24px rgba(70, 60, 140, 0.12);
}

body.pocket .play-steps li:nth-child(1) {
  --tilt: -0.7deg;
  --ox: -2px;
  --oy: 1px;
  background: #f7f8ff;
  transform: translate3d(var(--ox), var(--oy), 0) rotate(var(--tilt));
}
body.pocket .play-steps li:nth-child(2) {
  --tilt: 0deg;
  --ox: 1px;
  --oy: -2px;
  background: #e7faf6;
  border-color: #0e746c;
  transform: translate3d(var(--ox), var(--oy), 0) rotate(var(--tilt));
}
body.pocket .play-steps li:nth-child(3) {
  --tilt: 0.7deg;
  --ox: 2px;
  --oy: 1px;
  background: #f1ecff;
  border-color: #7a3478;
  transform: translate3d(var(--ox), var(--oy), 0) rotate(var(--tilt));
}

body.pocket .play-steps h2 {
  margin: 2px 0 2px;
  font-size: 18px;
  line-height: 1.15;
  color: #1b2240;
}

body.pocket .play-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: #1b2240;
}

body.pocket .below .faq { margin-top: 22px; padding: 0; background: transparent; box-shadow: none; }
body.pocket .below .faq h2 {
  margin: 0 0 8px;
  color: #1a1440;
  font-size: 22px;
}
body.pocket .below .faq h3 {
  margin: 12px 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: #1b2240;
}
body.pocket .below .faq p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.45;
  color: #3c4766;
}

body.pocket .trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
body.pocket .trust-pills li {
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #6a4ae0;
  color: #ffffff;
  border: 1px solid #4d2ec4;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
body.pocket .guide-jump { margin: 16px 0 0; text-align: center; }
body.pocket .guide-jump a { color: #4a2ec4; font-weight: 700; }
body.pocket .below .updated { margin-top: 18px; width: auto; text-align: center; }

body.pocket-guide .guide-bar {
  width: min(980px, calc(100% - 20px));
  margin: 18px auto 0;
}

body.pocket-guide .guide-layout {
  width: min(980px, calc(100% - 20px));
  margin: 22px auto 40px;
}

body.pocket-guide .toc {
  margin: 0 0 18px;
  color: #1b2240;
  font-size: 14px;
  line-height: 1.3;
}
body.pocket-guide .toc-fold {
  padding: 6px 8px 8px;
  border-radius: 16px;
  background-color: #f7f8ff;
  border: 1px solid rgba(106, 74, 224, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 28px rgba(70, 60, 140, 0.1);
}
body.pocket-guide .toc-fold > summary {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.pocket-guide .toc summary::-webkit-details-marker { display: none; }
body.pocket-guide .toc summary::marker { content: ""; }
body.pocket-guide .toc-fold > summary::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
  flex: none;
}
body.pocket-guide .toc-fold[open] > summary::before {
  transform: rotate(45deg) translateY(-1px);
}
body.pocket-guide .toc summary:focus-visible,
body.pocket-guide .toc a:focus-visible {
  outline: 2px solid #6a4ae0;
  outline-offset: 3px;
}
body.pocket-guide .toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.pocket-guide .toc li { margin: 0; }
body.pocket-guide .toc a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #1b2240;
  text-decoration: none;
  border-radius: 8px;
  padding: 5px 8px 5px 6px;
  line-height: 1.3;
}
body.pocket-guide .toc-row > .toc-top { padding-right: 28px; }
body.pocket-guide .toc a:hover { color: #4a2ec4; }
body.pocket-guide .toc-dot {
  width: 8px;
  height: 8px;
  margin-top: 0.28em;
  border-radius: 50%;
  flex: none;
  background: var(--stem, #6a4ae0);
}
body.pocket-guide .toc-sec[data-toc="questions"] { --stem: #7b5cff; }
body.pocket-guide .toc-sec[data-toc="stem-splitter"] { --stem: #3fd6c6; }
body.pocket-guide .toc-sec[data-toc="vocal-remover"] { --stem: #6a4ae0; }
body.pocket-guide .toc-sec[data-toc="guitar-remover"] { --stem: #1a4a86; }
body.pocket-guide .toc-sec[data-toc="drum-remover"] { --stem: #0e9a8a; }
body.pocket-guide .toc-sec[data-toc="bass-remover"] { --stem: #7a3478; }
body.pocket-guide .toc-sec[data-toc="bpm-key-finder"] { --stem: #2a8fbf; }
body.pocket-guide .toc-row { position: relative; }
body.pocket-guide .toc-branch > summary {
  position: absolute;
  top: 1px;
  right: 0;
  width: 28px;
  height: 28px;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0;
  border-radius: 8px;
}
body.pocket-guide .toc-chevron {
  width: 6px;
  height: 6px;
  border-right: 2px solid #4a5470;
  border-bottom: 2px solid #4a5470;
  transform: rotate(-45deg);
}
body.pocket-guide .toc-branch[open] > summary .toc-chevron {
  transform: rotate(45deg) translate(-1px, -1px);
}
body.pocket-guide .toc-sub { padding: 0 0 4px 16px; }
body.pocket-guide .toc-sub a {
  display: block;
  padding: 3px 8px 3px 6px;
  font-size: 13px;
  line-height: 1.3;
  color: #4a2ec4;
}
body.pocket-guide .toc a.is-current {
  background: rgba(106, 74, 224, 0.14);
  box-shadow: inset 3px 0 0 #6a4ae0;
  color: #1a1440;
  font-weight: 700;
}

body.pocket-guide .paper,
body.pocket-prose .prose {
  background-color: #f7f8ff;
  color: #1b2240;
  border-radius: 22px;
  border: 1px solid rgba(106, 74, 224, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 16px 36px rgba(70, 60, 140, 0.12);
}

body.pocket-guide .paper {
  padding: 28px 22px 32px;
}

body.pocket-prose .prose {
  width: min(720px, calc(100% - 28px));
  margin-top: 28px;
  margin-bottom: 8px;
  padding: 28px 22px 20px;
}

body.pocket-prose .site-footer {
  width: min(720px, calc(100% - 28px));
}

body.pocket-guide .crumb,
body.pocket-prose .crumb {
  margin: 0 0 12px;
  font-size: 14px;
  color: #3c4766;
}
body.pocket-guide .crumb a,
body.pocket-prose .crumb a:not(.wordmark) { color: #4a2ec4; text-decoration: none; font-weight: 700; }
body.pocket-guide h1,
body.pocket-prose h1 {
  margin: 0 0 8px;
  color: #1a1440;
  font-size: clamp(26px, 7.2vw, 36px);
  line-height: 1.15;
  overflow-wrap: break-word;
}

body.pocket-guide .guide-read {
  max-width: 65ch;
  line-height: 1.7;
}
body.pocket-guide .guide-read section[id] { scroll-margin-top: 18px; }
body.pocket-guide .guide-read h2,
body.pocket-prose h2 {
  margin: 1.5em 0 0.35em;
  color: #1a1440;
  font-size: 26px;
  line-height: 1.2;
}
body.pocket-guide .guide-read h3,
body.pocket-prose h3 {
  margin: 1.1em 0 0.2em;
  font-size: 16px;
  font-weight: 600;
  color: #1a1440;
}
body.pocket-guide .guide-read p,
body.pocket-guide .guide-read li,
body.pocket-prose p,
body.pocket-prose li {
  max-width: 65ch;
  line-height: 1.7;
  color: #1b2240;
}
body.pocket-guide .guide-read p { margin: 0 0 0.9em; }
body.pocket-guide .guide-read a,
body.pocket-prose .prose a:not(.wordmark) { color: #4a2ec4; }
body.pocket-guide .guide-read ol,
body.pocket-guide .guide-read ul { margin: 0 0 0.9em; padding-left: 1.2em; }
body.pocket-guide .guide-read figure { margin: 0 0 1em; }
body.pocket-guide .guide-read img { max-width: 100%; height: auto; border-radius: 12px; display: block; }
body.pocket-guide .guide-read figcaption { font-size: 14px; line-height: 1.5; color: #3c4766; }
body.pocket-guide .paper .updated,
body.pocket-prose .updated { color: #3c4766; }

body.pocket .site-footer { border-top-color: rgba(27, 34, 64, 0.16); }
body.pocket .site-footer a { color: #3c4766; }
body.pocket .site-footer a[aria-current='page'] { color: #1a1440; }
body.pocket .text-button { color: #3c4766; }
body.pocket .text-button:hover,
body.pocket .text-button[aria-pressed='true'] { color: #1b2240; }
body.pocket .faint { color: #3c4766; }
body.pocket .below .updated { color: #3c4766; }

body.pocket .bench-wrap { width: min(1040px, calc(100% - 28px)); }

@media (max-width: 380px) {
  body.pocket .play-steps h2 { font-size: 16px; }
  body.pocket .tape-bay .dropzone { padding-inline: 46px; }
  body.pocket .tape-bay .dropzone::before,
  body.pocket .tape-bay .dropzone::after {
    width: 28px;
    height: 28px;
    margin-top: -14px;
  }
  body.pocket .strip-name { font-size: 9px; letter-spacing: 0; }
  body.pocket .play-empty { align-items: flex-start; }
}

@media (pointer: fine) and (min-width: 800px) {
  body.pocket .tap-hint { display: none; }
}

@media (min-width: 800px) {
  body.pocket-home .pocket-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
    gap: 12px 28px;
    align-items: center;
  }

  body.pocket-home .home-title { font-size: 52px; }

  body.pocket-home .console:not(.is-bench) {
    display: flex;
    flex-direction: column;
  }

  body.pocket .console:not(.is-bench) .tape-bay { order: 1; }
  body.pocket .console:not(.is-bench) .strips { order: 2; }
  body.pocket .fader,
  body.pocket .pocket-fader,
  body.pocket .pocket-slot { height: 96px; }
  body.pocket .meter { height: 56px; }
  body.pocket-home .tape-bay .dropzone { min-height: 132px; padding-inline: 64px; }
  body.pocket-home .tape-bay .dropzone::before,
  body.pocket-home .tape-bay .dropzone::after { width: 36px; height: 36px; margin-top: -18px; }
}

@media (min-width: 800px) {
  body.pocket .play-steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
}

@media (min-width: 960px) {
  body.pocket-guide .guide-layout {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 65ch);
    gap: 28px;
    align-items: start;
    justify-content: center;
  }
  body.pocket-guide .toc {
    position: sticky;
    top: 16px;
    z-index: 2;
    margin: 0;
    max-height: calc(100vh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  body.pocket-guide .toc-fold::details-content {
    display: block;
    content-visibility: visible;
    height: auto;
  }
  body.pocket-guide .toc-fold > ul { display: block !important; }
  body.pocket-guide .toc-fold > summary {
    min-height: 0;
    margin-bottom: 6px;
    pointer-events: none;
    cursor: default;
  }
  body.pocket-guide .toc-fold > summary::before { display: none; }
}

body.pocket .eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 12px;
  margin-right: 0;
  vertical-align: -1px;
  flex: none;
}
body.pocket .eq i {
  display: block;
  flex: 1;
  height: 100%;
  border-radius: 1px;
  background: #ffffff;
  transform-origin: bottom;
}

@media (prefers-reduced-motion: no-preference) {
  body.pocket::before {
    content: "";
    position: fixed;
    inset: -14%;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(440px 280px at 16% 10%, rgba(123, 92, 255, 0.28), transparent 70%),
      radial-gradient(380px 260px at 88% 16%, rgba(63, 214, 198, 0.32), transparent 68%),
      radial-gradient(320px 240px at 72% 88%, rgba(122, 52, 120, 0.12), transparent 70%),
      radial-gradient(300px 220px at 22% 80%, rgba(63, 214, 198, 0.16), transparent 70%);
    animation: ambient-drift 22s ease-in-out infinite alternate;
  }

  body.pocket > main,
  body.pocket > header,
  body.pocket > nav {
    position: relative;
    z-index: 1;
  }

  body.pocket .eq i { animation: eq-bar 0.9s ease-in-out infinite; }
  body.pocket .eq i:nth-child(2) { animation-delay: 0.16s; }
  body.pocket .eq i:nth-child(3) { animation-delay: 0.32s; }

  body.pocket .console:not(.is-bench) .meter i.is-on {
    transform-origin: bottom;
    animation-name: led-idle;
    animation-duration: 2.6s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: calc(var(--led, 0) * 0.07s);
  }
  body.pocket .console:not(.is-bench) .strip:nth-child(2) .meter i.is-on {
    animation-duration: 3.15s;
    animation-delay: calc(0.4s + var(--led, 0) * 0.08s);
  }
  body.pocket .console:not(.is-bench) .strip:nth-child(3) .meter i.is-on {
    animation-duration: 2.75s;
    animation-delay: calc(0.85s + var(--led, 0) * 0.05s);
  }
  body.pocket .console:not(.is-bench) .strip:nth-child(4) .meter i.is-on {
    animation-duration: 3.4s;
    animation-delay: calc(0.2s + var(--led, 0) * 0.11s);
  }

  body.pocket .console:not(.is-bench):not(.is-splitting) .strip:not(.is-muted):nth-child(1) .fader i { animation: fader-sway 3.5s ease-in-out infinite; }
  body.pocket .console:not(.is-bench):not(.is-splitting) .strip:not(.is-muted):nth-child(2) .fader i { animation: fader-sway 2.9s ease-in-out -0.7s infinite; }
  body.pocket .console:not(.is-bench):not(.is-splitting) .strip:not(.is-muted):nth-child(3) .fader i { animation: fader-sway 3.3s ease-in-out -1.5s infinite; }
  body.pocket .console:not(.is-bench):not(.is-splitting) .strip:not(.is-muted):nth-child(4) .fader i { animation: fader-sway 4s ease-in-out -0.35s infinite; }

  body.pocket .console:not(.is-bench) .strip:nth-child(1) .knob { --knob: -28deg; }
  body.pocket .console:not(.is-bench) .strip:nth-child(2) .knob { --knob: -10deg; }
  body.pocket .console:not(.is-bench) .strip:nth-child(3) .knob { --knob: 8deg; }
  body.pocket .console:not(.is-bench) .strip:nth-child(4) .knob { --knob: 26deg; }
  body.pocket .console:not(.is-bench) .strip:not(.is-muted) .knob { animation: knob-wobble 4.2s ease-in-out infinite; }
  body.pocket .console:not(.is-bench) .strip:nth-child(2) .knob { animation-duration: 3.6s; animation-delay: -0.8s; }
  body.pocket .console:not(.is-bench) .strip:nth-child(3) .knob { animation-duration: 4.8s; animation-delay: -1.6s; }
  body.pocket .console:not(.is-bench) .strip:nth-child(4) .knob { animation-duration: 3.2s; animation-delay: -0.4s; }

  body.pocket .tape-bay:hover .dropzone::before,
  body.pocket .tape-bay:focus-within .dropzone::before,
  body.pocket .tape-bay:hover .dropzone::after,
  body.pocket .tape-bay:focus-within .dropzone::after {
    animation: reel-spin 1.8s linear infinite;
  }
  body.pocket .tape-bay:hover .dropzone::after,
  body.pocket .tape-bay:focus-within .dropzone::after { animation-duration: 2.05s; animation-direction: reverse; }
  body.pocket .tape-bay .dropzone.is-over::before,
  body.pocket .tape-bay .dropzone.is-over::after { animation-duration: 0.38s; }
  body.pocket .dropzone.is-inserted { animation: tape-in 0.46s cubic-bezier(0.2, 0.8, 0.2, 1); }
  body.pocket .dropzone.is-inserted::before,
  body.pocket .dropzone.is-inserted::after { animation: reel-spin 0.28s linear 2; }

  body.pocket .console:has(.dropzone.is-over) {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.85),
      0 0 28px rgba(123, 92, 255, 0.35),
      0 16px 36px rgba(70, 60, 140, 0.14);
  }
  body.pocket .tape-bay:has(.dropzone.is-over) {
    box-shadow: inset 0 0 0 3px #6a4ae0, 0 0 22px rgba(63, 214, 198, 0.45), 0 8px 0 #c9c4e4;
  }
  body.pocket .console:has(.dropzone.is-over) .meter i.is-on {
    animation-name: led-jump;
    animation-duration: 0.28s;
  }

  body.pocket .console.is-splitting .meter i,
  body.pocket .console.is-splitting .fader i,
  body.pocket .console.is-splitting .knob { animation: none; }
  body.pocket .console.is-splitting .strip { opacity: 0.4; }
  body.pocket .console.is-splitting .strip.is-lit { opacity: 1; }
  body.pocket .console.is-splitting .strip.is-lit .meter i.is-on {
    transform-origin: bottom;
    animation: led-jump 0.32s ease-in-out infinite;
    animation-delay: calc(var(--led, 0) * 0.04s);
  }

  body.pocket .console.is-finale .strip {
    opacity: 1;
    animation: channel-sweep 0.42s ease-out both;
  }
  body.pocket .console.is-finale .strip:nth-child(2) { animation-delay: 0.07s; }
  body.pocket .console.is-finale .strip:nth-child(3) { animation-delay: 0.14s; }
  body.pocket .console.is-finale .strip:nth-child(4) { animation-delay: 0.21s; }
  body.pocket .console.is-finale .meter i {
    opacity: 1;
    transform-origin: bottom;
    animation: led-jump 0.22s ease-in-out 3;
  }

  html.motion body.pocket .play-steps:not(.is-in) li {
    opacity: 0;
    transform: translate3d(0, 16px, 0) rotate(var(--tilt, 0deg));
  }
  html.motion body.pocket .play-steps.is-in li {
    animation: sticker-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  }
  html.motion body.pocket .play-steps.is-in li:nth-child(2) { animation-delay: 0.08s; }
  html.motion body.pocket .play-steps.is-in li:nth-child(3) { animation-delay: 0.16s; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.pocket .play-steps li { transition: transform 0.28s ease; }
  body.pocket .play-steps li:nth-child(1):hover { transform: translate3d(-2px, -5px, 0) rotate(-1.8deg); }
  body.pocket .play-steps li:nth-child(2):hover { transform: translate3d(1px, -6px, 0) rotate(1deg); }
  body.pocket .play-steps li:nth-child(3):hover { transform: translate3d(2px, -5px, 0) rotate(1.8deg); }
}

html.tab-hidden body.pocket,
html.tab-hidden body.pocket::before,
html.tab-hidden body.pocket::after,
html.tab-hidden body.pocket *,
html.tab-hidden body.pocket *::before,
html.tab-hidden body.pocket *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  body.pocket,
  body.pocket::before,
  body.pocket::after,
  body.pocket *,
  body.pocket *::before,
  body.pocket *::after {
    animation: none !important;
    transition: none !important;
  }

  body.pocket-home .console:not(.is-bench) { transform: none !important; }

  body.pocket .play-steps li:nth-child(n) {
    opacity: 1 !important;
    transform: none !important;
  }

  body.pocket .console:not(.is-bench) .knob { transform: rotate(var(--knob, -12deg)); }
}

@keyframes led-bounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

@keyframes led-idle {
  0%, 100% { transform: scaleY(0.32); opacity: 0.28; }
  16% { transform: scaleY(1); opacity: 1; }
  34% { transform: scaleY(0.46); opacity: 0.48; }
  50% { transform: scaleY(0.84); opacity: 0.9; }
  68% { transform: scaleY(0.3); opacity: 0.32; }
  82% { transform: scaleY(0.68); opacity: 0.72; }
}

@keyframes led-jump {
  0%, 100% { transform: scaleY(0.4); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes fader-sway {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

@keyframes knob-wobble {
  0%, 100% { transform: rotate(var(--knob, -12deg)); }
  50% { transform: rotate(calc(var(--knob, -12deg) + 8deg)); }
}

@keyframes reel-spin {
  to { transform: rotate(1turn); }
}

@keyframes tape-in {
  0% { transform: translate3d(0, -16px, 0); }
  62% { transform: translate3d(0, 3px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes ambient-drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.42; }
  to { transform: translate3d(-2.4%, 1.4%, 0) scale(1.05); opacity: 0.68; }
}

@keyframes eq-bar {
  0%, 100% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
}

@keyframes channel-sweep {
  0% { opacity: 0.35; transform: translate3d(0, 3px, 0); }
  55% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: 1; transform: none; }
}

@keyframes sticker-in {
  from { opacity: 0; transform: translate3d(0, 16px, 0) rotate(calc(var(--tilt, 0deg) * 2)) scale(0.96); }
  to { opacity: 1; transform: translate3d(var(--ox, 0px), var(--oy, 0px), 0) rotate(var(--tilt, 0deg)); }
}

@supports (backdrop-filter: blur(1px)) {
  body.pocket .console,
  body.pocket .strip,
  body.pocket .play-empty,
  body.pocket .model-note,
  body.pocket-guide .paper,
  body.pocket-guide .toc-fold,
  body.pocket-prose .prose {
    background-color: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

body.pocket .strip.is-muted {
  box-shadow: inset 0 0 0 2px currentColor, 0 4px 0 #d5d0ea;
}
body.pocket .strip.is-muted .meter i {
  opacity: 0.2;
  box-shadow: none;
}

body.pocket .strip-vocals .meter i.is-on { background: #7b5cff; box-shadow: 0 0 8px #7b5cff; }
body.pocket .strip-drums .meter i.is-on,
body.pocket .strip-bass .meter i.is-on { background: #3fd6c6; box-shadow: 0 0 8px #3fd6c6; }
body.pocket .strip-vocals .knob::after { background: #7b5cff; }
body.pocket .strip-drums .knob::after,
body.pocket .strip-bass .knob::after { background: #3fd6c6; }

@media (max-width: 420px) {
  body.pocket .wordmark { font-size: 10px; padding-inline: 7px; letter-spacing: -0.04em; }
}
[data-testid="language"]{display:none!important}
