/* Keepsake music box. Every rule is scoped under .dsp-music-box. Light comes from the upper left. */

.dsp-music-box {
  background: #c9bb9f;
  color: #2a1a08;
  font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
}
.dsp-music-box div,
.dsp-music-box i,
.dsp-music-box svg,
.dsp-music-box img,
.dsp-music-box button {
  position: absolute;
  display: block;
}
.dsp-music-box svg {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.dsp-music-box i {
  font-style: normal;
}

/* ---- the surface: a linen runner on the dresser --------------------------- */

.dsp-music-box .mb-surface {
  inset: 0;
  background-image: var(--t), radial-gradient(130cqw 115cqw at 10% 4%, #f0e7d3 0%, #dccfb6 40%, #b7a788 100%);
  background-size: 100% 100%;
}
.dsp-music-box .mb-shadow-box {
  left: 5cqw;
  top: 47.6cqw;
  width: 90cqw;
  height: 46cqw;
  border-radius: 0.5cqw;
  box-shadow:
    0 0 0.5cqw 0.15cqw rgba(30, 18, 6, 0.6),
    1.2cqw 1.6cqw 2cqw rgba(40, 25, 10, 0.5),
    2.8cqw 3.8cqw 4.4cqw rgba(40, 25, 10, 0.36),
    4.6cqw 6.4cqw 8cqw rgba(40, 25, 10, 0.24);
}
.dsp-music-box .mb-shadow-lid {
  left: 86cqw;
  top: 10cqw;
  width: 14cqw;
  height: 40cqw;
  background: linear-gradient(to bottom, rgba(45, 30, 14, 0), rgba(45, 30, 14, 0.55) 34%);
  filter: blur(1.8cqw);
}

/* ---- wood, velvet, inlay ---------------------------------------------------- */

.dsp-music-box .mb-wood {
  background-size: 100% 100%;
}
.dsp-music-box .mb-m-t.mb-wood {
  background-image:
    linear-gradient(to bottom, rgba(255, 226, 176, 0.5) 0, rgba(255, 226, 176, 0.08) 9%, rgba(0, 0, 0, 0) 60%, rgba(10, 4, 0, 0.5) 100%),
    var(--t), linear-gradient(#8a5630, #7a4a28);
}
.dsp-music-box .mb-m-l.mb-wood {
  background-image:
    linear-gradient(to right, rgba(255, 226, 176, 0.45) 0, rgba(255, 226, 176, 0.06) 9%, rgba(0, 0, 0, 0) 60%, rgba(10, 4, 0, 0.5) 100%),
    var(--t), linear-gradient(to right, #875430, #774826);
}
.dsp-music-box .mb-m-b.mb-wood {
  background-image:
    linear-gradient(to bottom, rgba(255, 226, 176, 0.42) 0, rgba(255, 226, 176, 0.05) 8%, rgba(0, 0, 0, 0) 55%, rgba(10, 4, 0, 0.62) 100%),
    var(--t), linear-gradient(#82502c, #6c4022);
}
.dsp-music-box .mb-m-r.mb-wood {
  background-image:
    linear-gradient(to right, rgba(255, 226, 176, 0.4) 0, rgba(255, 226, 176, 0.05) 8%, rgba(0, 0, 0, 0) 55%, rgba(10, 4, 0, 0.62) 100%),
    var(--t), linear-gradient(to right, #804e2b, #6a3f21);
}
.dsp-music-box .mb-inlay {
  border: 0.42cqw solid #e6d3a2;
  border-color: #efdeb0 #d9c48f #d2bc86 #ead7a6;
  box-shadow: 0 0 0 0.1cqw #1a0f07, inset 0 0 0 0.1cqw #1a0f07;
  pointer-events: none;
}
.dsp-music-box .mb-velvet {
  background-image:
    var(--t),
    radial-gradient(70% 90% at 38% 34%, rgba(64, 150, 112, 0.28), rgba(0, 0, 0, 0) 70%),
    linear-gradient(160deg, #14503b, #0c3427 55%, #082419);
  background-size: 100% 100%;
}

/* ---- the lid ------------------------------------------------------------------ */

.dsp-music-box .mb-lid {
  transform-origin: 50% 100%;
  transform: perspective(430cqw) rotateX(-27deg);
  transform-style: preserve-3d;
}
.dsp-music-box .mb-lid-back {
  inset: 0;
  background: #1a0f07;
}
.dsp-music-box .mb-lid-edge {
  left: 0;
  right: 0;
  bottom: 100%;
  transform-origin: 50% 100%;
  transform: rotateX(90deg);
  background-image:
    linear-gradient(to bottom, rgba(10, 4, 0, 0.5) 0, rgba(255, 230, 180, 0.12) 30%, rgba(255, 236, 196, 0.34) 100%),
    var(--t), linear-gradient(#94603a, #845230);
}
.dsp-music-box .mb-lid-edge-line {
  left: 0;
  right: 0;
  top: 46%;
  height: 0.42cqw;
  background: #ecdaa8;
  box-shadow: 0 0 0 0.1cqw #1a0f07;
}
.dsp-music-box .mb-latch {
  left: 50%;
  top: 22%;
  width: 5cqw;
  height: 78%;
  margin-left: -2.5cqw;
  border-radius: 0.5cqw 0.5cqw 0 0;
  background: linear-gradient(to right, #8c6822, #f1d98f 30%, #cba54b 60%, #8a6520);
  box-shadow: 0 0 0 0.1cqw rgba(40, 24, 4, 0.8);
}
.dsp-music-box .mb-lid-panel {
  box-shadow:
    inset 1.1cqw 1.4cqw 1.6cqw rgba(0, 0, 0, 0.6),
    inset -0.3cqw -0.3cqw 0.7cqw rgba(0, 0, 0, 0.3),
    inset 0 0 0 0.12cqw rgba(0, 0, 0, 0.7);
}
.dsp-music-box .mb-lid-shade {
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 236, 200, 0.07) 0, rgba(0, 0, 0, 0) 30%, rgba(12, 6, 0, 0.16) 78%, rgba(8, 4, 0, 0.5) 100%);
}

/* The picture: a gilt moulding, the art, and a sheet of glass. */
.dsp-music-box .mb-pic {
  box-shadow:
    0.5cqw 0.7cqw 1.1cqw rgba(0, 0, 0, 0.65),
    1.2cqw 1.7cqw 2.6cqw rgba(0, 0, 0, 0.35),
    0 0 0 0.1cqw rgba(30, 18, 2, 0.9);
}
.dsp-music-box .mb-m-t.mb-gilt {
  background: linear-gradient(to bottom, #7b5a1c 0, #f3dc94 14%, #fff5cc 26%, #d8b45a 50%, #a67e2c 74%, #6a4a12 92%, #4a3209 100%);
}
.dsp-music-box .mb-m-l.mb-gilt {
  background: linear-gradient(to right, #7b5a1c 0, #ecd288 14%, #fbedb9 26%, #d2ad52 50%, #a17a2a 74%, #664710 92%, #46300a 100%);
}
.dsp-music-box .mb-m-b.mb-gilt {
  background: linear-gradient(to bottom, #6f4f16 0, #e7cc7e 12%, #c9a348 36%, #9d7626 62%, #7a5919 84%, #3d2906 100%);
}
.dsp-music-box .mb-m-r.mb-gilt {
  background: linear-gradient(to right, #6f4f16 0, #e2c676 12%, #c49e44 36%, #997224 62%, #765517 84%, #3a2706 100%);
}
.dsp-music-box .mb-gilt-bead {
  border: 0.36cqw solid #e9cf86;
  border-color: #5e430f #f4e0a0 #fbeab4 #6b4d13;
  box-shadow: 0 0 0 0.08cqw rgba(40, 26, 4, 0.9);
}
.dsp-music-box .mb-art {
  overflow: hidden;
  background: #3a2a14;
}
.dsp-music-box .mb-art img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}
.dsp-music-box .mb-glass {
  inset: 0;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0.2) 21%, rgba(255, 255, 255, 0.07) 30%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.09) 64%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(to bottom, rgba(20, 30, 40, 0.1), rgba(0, 0, 0, 0.02));
  box-shadow:
    inset 0.6cqw 0.8cqw 0.9cqw rgba(0, 0, 0, 0.55),
    inset -0.15cqw -0.15cqw 0.3cqw rgba(0, 0, 0, 0.25);
}

/* The engraved plate. */
.dsp-music-box .mb-nameplate {
  filter: drop-shadow(0.3cqw 0.45cqw 0.5cqw rgba(0, 0, 0, 0.6));
}
.dsp-music-box .mb-np-face {
  inset: 0;
  background-image:
    var(--t),
    linear-gradient(122deg, rgba(255, 250, 222, 0.75) 0, rgba(255, 246, 205, 0.1) 26%, rgba(255, 244, 200, 0.3) 46%, rgba(90, 60, 8, 0.05) 62%, rgba(80, 52, 6, 0.36) 100%),
    linear-gradient(#d9b55c, #bf9740);
  background-size: 100% 100%;
  box-shadow:
    inset 0.16cqw 0.16cqw 0 rgba(255, 246, 205, 0.9),
    inset -0.16cqw -0.16cqw 0 rgba(70, 45, 6, 0.7),
    inset 0 0 0 0.75cqw rgba(0, 0, 0, 0),
    inset 0 0 0 0.84cqw rgba(70, 45, 6, 0.45),
    inset 0 0 0 0.93cqw rgba(255, 246, 205, 0.35);
  -webkit-mask:
    radial-gradient(circle 1.7cqw at 0 0, transparent 97%, #000 100%) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle 1.7cqw at 100% 0, transparent 97%, #000 100%) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle 1.7cqw at 0 100%, transparent 97%, #000 100%) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle 1.7cqw at 100% 100%, transparent 97%, #000 100%) 100% 100% / 51% 51% no-repeat;
  mask:
    radial-gradient(circle 1.7cqw at 0 0, transparent 97%, #000 100%) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle 1.7cqw at 100% 0, transparent 97%, #000 100%) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle 1.7cqw at 0 100%, transparent 97%, #000 100%) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle 1.7cqw at 100% 100%, transparent 97%, #000 100%) 100% 100% / 51% 51% no-repeat;
}
.dsp-music-box .mb-np-pin {
  width: 0.9cqw;
  height: 0.9cqw;
  margin: 1.2cqw 1.6cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8d8, #c9a148 45%, #6b4c12);
  box-shadow: 0.08cqw 0.12cqw 0.15cqw rgba(40, 24, 2, 0.7);
}
.dsp-music-box .mb-np-text {
  inset: 1.9cqw 2.6cqw 1.5cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35cqw;
  text-align: center;
  color: #33200a;
  text-shadow: 0.07cqw 0.1cqw 0 rgba(255, 248, 214, 0.75), -0.04cqw -0.05cqw 0 rgba(40, 22, 0, 0.35);
}
.dsp-music-box .mb-np-text span {
  display: block;
  flex: none;
  width: 100%;
}
/* The owner's message: engraved roman under the rule, wrapped at word breaks, three lines at most. */
.dsp-music-box .mb-np-text .mb-np-msg {
  width: 100%;
  font-size: 3.1cqw;
  font-weight: 600;
  line-height: 1.18;
  color: #2a1806;
  letter-spacing: 0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
  overflow: hidden;
}
/* Every line stays inside the four corner pins: the title and the low "to" line by width; the message sits between the pin rows. */
.dsp-music-box .mb-np-text .mb-np-title {
  width: 88%;
  font-family: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 4.6cqw;
  line-height: 1.02;
  text-wrap: balance;
  overflow: hidden;
  padding: 0.2cqw 0.3cqw 0.1cqw;
}
.dsp-music-box .mb-np-text .mb-np-rule {
  position: static;
  width: 24cqw;
  height: 1.26cqw;
  flex: none;
  opacity: 0.8;
}
.dsp-music-box .mb-np-text .mb-np-for {
  width: 92%;
  font-size: 3.1cqw;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04cqw;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.3cqw;
}
/* A "to" line of wide letters takes two balanced lines before it drops under the floor size. */
.dsp-music-box .mb-np-text .mb-np-for.mb-np-wrap {
  white-space: normal;
  text-wrap: balance;
  line-height: 1.12;
  overflow-wrap: break-word;
}

/* ---- hinges ---------------------------------------------------------------------- */

.dsp-music-box .mb-leaf {
  border-radius: 0.12cqw;
  background:
    radial-gradient(circle 0.42cqw at 14% 50%, #5b4210 0 34%, #fff3c4 36% 52%, #a8842e 56% 92%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(circle 0.42cqw at 50% 50%, #5b4210 0 34%, #fff3c4 36% 52%, #a8842e 56% 92%, rgba(0, 0, 0, 0) 100%),
    radial-gradient(circle 0.42cqw at 86% 50%, #5b4210 0 34%, #fff3c4 36% 52%, #a8842e 56% 92%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(100deg, #f6e2a0, #d3ae53 35%, #b78e39 70%, #cba54c);
  box-shadow:
    inset 0.08cqw 0.08cqw 0 rgba(255, 248, 214, 0.8),
    inset -0.08cqw -0.08cqw 0 rgba(70, 45, 6, 0.7),
    0 0 0 0.08cqw rgba(30, 16, 2, 0.75);
}
.dsp-music-box .mb-knuckle {
  border-radius: 0.3cqw;
  background:
    repeating-linear-gradient(to right, rgba(30, 18, 2, 0) 0, rgba(30, 18, 2, 0) 1.68cqw, rgba(30, 18, 2, 0.85) 1.68cqw, rgba(30, 18, 2, 0.85) 1.8cqw),
    linear-gradient(to bottom, #6f5113 0, #f7e6a6 26%, #d6b257 48%, #94701f 78%, #4c3508 100%);
  box-shadow: 0.2cqw 0.35cqw 0.4cqw rgba(0, 0, 0, 0.55), 0 0 0 0.07cqw rgba(30, 16, 2, 0.8);
}

/* ---- the box ----------------------------------------------------------------------- */

.dsp-music-box .mb-box {
  background: #1a0f07;
  border-radius: 0.3cqw;
}
.dsp-music-box .mb-well {
  box-shadow: inset 0 0 0 0.12cqw rgba(0, 0, 0, 0.8);
}
.dsp-music-box .mb-well-walls {
  inset: 0;
  border-style: solid;
  border-width: 0.35cqw 1cqw 1.5cqw 1cqw;
  border-color: #03120d #1c624a #237258 #061a13;
  box-shadow:
    inset 2.4cqw 2.9cqw 2.8cqw rgba(0, 0, 0, 0.68),
    inset -0.4cqw -0.5cqw 0.9cqw rgba(0, 0, 0, 0.3);
}
.dsp-music-box .mb-bed {
  border-radius: 0.55cqw;
  background-image:
    var(--t),
    linear-gradient(124deg, rgba(255, 250, 220, 0.62) 0, rgba(255, 246, 205, 0.05) 20%, rgba(255, 242, 196, 0.3) 44%, rgba(90, 58, 6, 0) 60%, rgba(74, 46, 4, 0.34) 100%),
    linear-gradient(135deg, #d9b65e, #c09a44 45%, #a47c2e);
  background-size: 100% 100%;
  box-shadow:
    inset 0.16cqw 0.16cqw 0 rgba(255, 246, 205, 0.9),
    inset -0.16cqw -0.16cqw 0 rgba(72, 46, 6, 0.75),
    inset 0.34cqw 0.34cqw 0 rgba(120, 84, 20, 0.25),
    0.5cqw 0.7cqw 0.9cqw rgba(0, 0, 0, 0.65),
    1.1cqw 1.5cqw 2.2cqw rgba(0, 0, 0, 0.35),
    0 0 0.25cqw rgba(0, 0, 0, 0.8);
}
.dsp-music-box .mb-bed span {
  position: absolute;
  display: block;
  color: rgba(58, 36, 6, 0.86);
  text-shadow: 0.07cqw 0.1cqw 0 rgba(255, 246, 208, 0.6);
  text-align: center;
  white-space: nowrap;
}
.dsp-music-box .mb-brand {
  font-family: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  font-size: 3.5cqw;
  line-height: 4.6cqw;
}
.dsp-music-box .mb-brand::before,
.dsp-music-box .mb-brand::after {
  content: "";
  position: absolute;
  top: 2.5cqw;
  width: 7cqw;
  height: max(1px, 0.16cqw);
  background: linear-gradient(to right, rgba(58, 36, 6, 0), rgba(58, 36, 6, 0.9));
  box-shadow: 0 0.12cqw 0 rgba(255, 246, 208, 0.5);
}
.dsp-music-box .mb-brand::before {
  left: 1.4cqw;
}
.dsp-music-box .mb-brand::after {
  right: 1.4cqw;
  transform: scaleX(-1);
}
/* The engraved label beside the da capo button. */
.dsp-music-box .mb-dc-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.dsp-music-box .mb-dc-label b {
  display: block;
  font-size: 1.7cqw;
  font-weight: 600;
  line-height: 2.2cqw;
  letter-spacing: 0.26cqw;
  text-transform: uppercase;
}
.dsp-music-box .mb-dc-label b + b {
  font-size: 1.6cqw;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.04cqw;
  text-transform: none;
  border-top: 0.09cqw solid rgba(58, 36, 6, 0.6);
  box-shadow: 0 -0.09cqw 0 rgba(255, 246, 208, 0.35);
  margin-top: 0.3cqw;
  padding-top: 0.2cqw;
}

.dsp-music-box .mb-mech {
  inset: 0;
}

/* ---- screws --------------------------------------------------------------------------- */

.dsp-music-box .mb-screw {
  border-radius: 50%;
  box-shadow: 0.1cqw 0.16cqw 0.22cqw rgba(0, 0, 0, 0.6), 0 0 0 0.07cqw rgba(20, 14, 6, 0.7);
}
.dsp-music-box .mb-screw::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 41%;
  height: 18%;
  background: linear-gradient(to bottom, rgba(6, 6, 12, 0.92) 0 70%, rgba(255, 255, 255, 0.45) 70% 100%);
  transform: rotate(var(--a, 0deg));
}
.dsp-music-box .mb-screw-blue {
  background: radial-gradient(circle at 34% 28%, #b3c8ff 0, #4f6fd0 22%, #26398a 55%, #0f173c 100%);
}
.dsp-music-box .mb-screw-steel {
  background: radial-gradient(circle at 34% 28%, #ffffff 0, #d5dbe0 24%, #8c959e 60%, #3f4850 100%);
}

/* ---- rotating parts ---------------------------------------------------------------------- */

.dsp-music-box .mb-rot {
  transform-origin: 50% 50%;
  will-change: transform;
}
.dsp-music-box .mb-disc-shadow {
  border-radius: 50%;
  background: rgba(20, 10, 0, 0.62);
  filter: blur(0.45cqw);
}
.dsp-music-box .mb-disc-shadow-hi {
  background: rgba(20, 10, 0, 0.5);
  filter: blur(0.6cqw);
}
/* A fixed sheen over a turning wheel: on spun brass the highlight stays put. */
.dsp-music-box .mb-spun {
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 315deg,
    rgba(255, 250, 224, 0.62) 0deg,
    rgba(255, 250, 224, 0) 34deg,
    rgba(50, 30, 0, 0.26) 92deg,
    rgba(50, 30, 0, 0) 140deg,
    rgba(255, 250, 224, 0.4) 180deg,
    rgba(255, 250, 224, 0) 214deg,
    rgba(50, 30, 0, 0.3) 272deg,
    rgba(50, 30, 0, 0) 322deg,
    rgba(255, 250, 224, 0.62) 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent calc(var(--hole, 60%) * 0.7071), #000 calc(var(--hole, 60%) * 0.7071 + 1%));
  mask: radial-gradient(circle, transparent calc(var(--hole, 60%) * 0.7071), #000 calc(var(--hole, 60%) * 0.7071 + 1%));
}

/* ---- spring barrel and crank ---------------------------------------------------------------- */

.dsp-music-box .mb-drum-floor {
  border-radius: 50%;
  background: radial-gradient(circle, #1b130a 0, #0c0804 100%);
  box-shadow: 0 0 0 0.3cqw #7d5b1c;
}
.dsp-music-box .mb-coil {
  fill: none;
  stroke-width: 0.15cqw;
  vector-effect: non-scaling-stroke;
}
.dsp-music-box .mb-drum-cover {
  border-radius: 50%;
  background:
    conic-gradient(
      from 315deg,
      #fff0bd 0deg,
      #d6b055 26deg,
      #a57c2b 88deg,
      #c9a24a 140deg,
      #f1da94 180deg,
      #cfa84e 208deg,
      #9c7426 270deg,
      #c8a149 322deg,
      #fff0bd 360deg
    );
  -webkit-mask: var(--m) center / 100% 100% no-repeat;
  mask: var(--m) center / 100% 100% no-repeat;
}
.dsp-music-box .mb-hub-shine {
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 32% 26%, rgba(255, 252, 232, 0.8), rgba(255, 252, 232, 0) 46%);
}
.dsp-music-box .mb-crank-shadow {
  opacity: 0.55;
  filter: blur(0.4cqw);
}
.dsp-music-box .mb-knob {
  border-radius: 50%;
  will-change: transform;
  background: radial-gradient(circle at 33% 28%, #8d7868 0, #3d2d24 16%, #1c1310 48%, #070403 100%);
  box-shadow: 0 0 0 0.08cqw #050302, inset -0.2cqw -0.25cqw 0.4cqw rgba(0, 0, 0, 0.7);
}
.dsp-music-box .mb-knob i {
  inset: 31%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff7d0 0, #dab75c 40%, #7f5c18 100%);
  box-shadow: 0 0 0 0.07cqw rgba(30, 18, 2, 0.9);
}

/* ---- comb -------------------------------------------------------------------------------- */

.dsp-music-box .mb-comb-base {
  filter: drop-shadow(0.35cqw 0.5cqw 0.45cqw rgba(0, 0, 0, 0.6));
}
.dsp-music-box .mb-tooth {
  transform-origin: 50% 100%;
  will-change: transform;
}
.dsp-music-box .mb-glint {
  opacity: 0;
  will-change: opacity;
}
.dsp-music-box .mb-cyl-cast {
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 6, 0, 0.78) 0, rgba(10, 6, 0, 0.5) 30%, rgba(10, 6, 0, 0) 100%);
}

/* ---- cylinder ----------------------------------------------------------------------------- */

.dsp-music-box .mb-arbor {
  border-radius: 0.2cqw;
  background: linear-gradient(to bottom, #5a646e 0, #f4f7f9 30%, #b5bdc5 55%, #4c555e 100%);
  box-shadow: 0.25cqw 0.5cqw 0.4cqw rgba(0, 0, 0, 0.5);
}
.dsp-music-box .mb-pinion {
  overflow: hidden;
  border-radius: 0.15cqw / 0.7cqw;
  background: #9c7527;
  box-shadow: 0.2cqw 0.4cqw 0.4cqw rgba(0, 0, 0, 0.55), 0 0 0 0.06cqw rgba(40, 24, 4, 0.8);
}
.dsp-music-box .mb-ribs {
  left: 0;
  right: 0;
  top: -0.2cqw;
  height: 5.6cqw;
  will-change: transform;
  background: linear-gradient(to bottom, #f2dd9a 0 38%, #5f430f 38% 100%) 0 0 / 100% 0.56cqw repeat-y;
}
.dsp-music-box .mb-pinion-shade {
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 10, 0, 0.9) 0, rgba(20, 10, 0, 0.1) 24%, rgba(255, 250, 220, 0.3) 36%, rgba(0, 0, 0, 0) 52%, rgba(20, 10, 0, 0.5) 80%, rgba(20, 10, 0, 0.95) 100%);
}
.dsp-music-box .mb-bridge {
  border-radius: 0.3cqw;
  background: linear-gradient(to right, #f8e5a4 0, #d6b156 28%, #b58c38 70%, #7a5a1a 100%);
  box-shadow:
    inset 0 0.12cqw 0 rgba(255, 248, 214, 0.8),
    0.3cqw 0.5cqw 0.5cqw rgba(0, 0, 0, 0.6),
    0 0 0 0.07cqw rgba(40, 24, 4, 0.8);
}
.dsp-music-box .mb-cyl-shadow {
  border-radius: 0.6cqw;
  background: rgba(14, 8, 0, 0.6);
  filter: blur(0.55cqw);
}
.dsp-music-box .mb-cyl {
  overflow: hidden;
  border-radius: 0.3cqw / 1.2cqw;
  background: #2c1c05;
  box-shadow: 0 0 0 0.06cqw rgba(30, 16, 2, 0.9);
}
.dsp-music-box .mb-strip {
  left: 0;
  width: 100%;
  overflow: hidden;
}
.dsp-music-box .mb-skin {
  left: 0;
  top: 0;
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
  background-image: var(--t);
  background-repeat: repeat-y;
}
.dsp-music-box .mb-cyl-shade {
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(24, 12, 0, 0.94) 0,
      rgba(34, 18, 2, 0.6) 6%,
      rgba(60, 35, 5, 0.16) 15%,
      rgba(255, 248, 220, 0.06) 21%,
      rgba(255, 252, 235, 0.7) 28.5%,
      rgba(255, 248, 220, 0.2) 36%,
      rgba(255, 248, 220, 0) 46%,
      rgba(45, 25, 3, 0.26) 66%,
      rgba(34, 17, 2, 0.6) 84%,
      rgba(60, 40, 14, 0.74) 94%,
      rgba(16, 8, 0, 0.96) 100%
    ),
    linear-gradient(to right, rgba(255, 244, 205, 0.16), rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0.16));
}
.dsp-music-box .mb-cyl-cap {
  top: 0;
  bottom: 0;
  width: 1cqw;
  background: linear-gradient(to right, rgba(40, 24, 2, 0.75) 0 9%, rgba(255, 244, 200, 0.5) 9% 20%, rgba(255, 244, 200, 0.1) 20% 76%, rgba(40, 24, 2, 0.6) 76% 88%, rgba(255, 244, 200, 0.3) 88% 100%);
}
.dsp-music-box .mb-cyl-cap-l {
  left: 0;
}
.dsp-music-box .mb-cyl-cap-r {
  right: 0;
  transform: scaleX(-1);
}

/* ---- governor ------------------------------------------------------------------------------- */

.dsp-music-box .mb-block {
  border-radius: 0.4cqw;
  background: linear-gradient(118deg, #fbe9ab 0, #dab65b 22%, #be9540 60%, #8f6c22 100%);
  box-shadow:
    inset 0.13cqw 0.13cqw 0 rgba(255, 248, 214, 0.9),
    inset -0.13cqw -0.13cqw 0 rgba(70, 45, 6, 0.75),
    0.45cqw 0.65cqw 0.7cqw rgba(0, 0, 0, 0.62),
    0 0 0 0.07cqw rgba(40, 24, 4, 0.85);
}
.dsp-music-box .mb-block i {
  left: 18%;
  right: 18%;
  top: 26%;
  bottom: 26%;
  border-radius: 0.3cqw;
  box-shadow: inset 0.08cqw 0.1cqw 0 rgba(70, 45, 6, 0.6), inset -0.08cqw -0.1cqw 0 rgba(255, 248, 214, 0.6);
}
.dsp-music-box .mb-fan-shadow {
  opacity: 1;
  filter: blur(0.35cqw);
  will-change: transform, opacity;
}
.dsp-music-box .mb-fan-shadow svg {
  opacity: 0.66;
}
.dsp-music-box .mb-fan {
  will-change: transform, opacity;
}
.dsp-music-box .mb-fan-blur {
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
  background: conic-gradient(
    rgba(236, 206, 124, 0.62) 0deg,
    rgba(206, 170, 86, 0.34) 50deg,
    rgba(240, 214, 140, 0.56) 110deg,
    rgba(206, 170, 86, 0.3) 180deg,
    rgba(240, 214, 140, 0.6) 235deg,
    rgba(206, 170, 86, 0.34) 300deg,
    rgba(236, 206, 124, 0.62) 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 20%, #000 34%, #000 62%, rgba(0, 0, 0, 0.35) 68%, transparent 71%);
  mask: radial-gradient(circle, transparent 20%, #000 34%, #000 62%, rgba(0, 0, 0, 0.35) 68%, transparent 71%);
}
.dsp-music-box .mb-cock {
  pointer-events: none;
}
.dsp-music-box .mb-lever-shadow {
  opacity: 0.5;
  filter: blur(0.3cqw);
}

/* ---- wind indicator ---------------------------------------------------------------------------- */

.dsp-music-box .mb-tick {
  top: 0.75cqw;
  width: 0.14cqw;
  height: 0.62cqw;
  margin-left: -0.07cqw;
  background: rgba(52, 32, 4, 0.85);
  box-shadow: 0.08cqw 0.06cqw 0 rgba(255, 246, 208, 0.6);
}
.dsp-music-box .mb-tick-long {
  top: 0.2cqw;
  height: 1.17cqw;
  width: 0.18cqw;
}
.dsp-music-box .mb-tick-end {
  box-shadow: 0.08cqw 0.06cqw 0 rgba(255, 246, 208, 0.6), -0.4cqw 0 0 rgba(52, 32, 4, 0.85);
}
.dsp-music-box .mb-tick b {
  position: absolute;
  left: 0.42cqw;
  top: -0.42cqw;
  font-size: 1.75cqw;
  font-weight: 600;
  line-height: 1;
  color: rgba(52, 32, 4, 0.9);
  text-shadow: 0.07cqw 0.09cqw 0 rgba(255, 246, 208, 0.6);
}
.dsp-music-box .mb-rod {
  overflow: hidden;
  border-radius: 0.2cqw;
  background: linear-gradient(to bottom, #4b545d 0, #f2f5f7 28%, #aab3bb 55%, #3c444c 100%);
  box-shadow: 0.25cqw 0.45cqw 0.35cqw rgba(0, 0, 0, 0.55);
}
.dsp-music-box .mb-thread {
  left: -0.56cqw;
  right: 0;
  top: 0;
  bottom: 0;
  will-change: transform;
  background: linear-gradient(104deg, rgba(0, 0, 0, 0) 0 28%, rgba(16, 20, 26, 0.62) 28% 56%, rgba(255, 255, 255, 0.5) 56% 78%, rgba(0, 0, 0, 0) 78%) 0 0 / 0.56cqw 100% repeat-x;
}
.dsp-music-box .mb-bearing {
  border-radius: 0.25cqw;
  background: linear-gradient(118deg, #fbe9ab 0, #d6b156 30%, #a98230 75%, #7c5c1b 100%);
  box-shadow:
    inset 0.1cqw 0.1cqw 0 rgba(255, 248, 214, 0.85),
    0.3cqw 0.45cqw 0.45cqw rgba(0, 0, 0, 0.6),
    0 0 0 0.07cqw rgba(40, 24, 4, 0.85);
}
.dsp-music-box .mb-nut {
  will-change: transform;
}
.dsp-music-box .mb-nut-body {
  inset: 0;
  border-radius: 0.3cqw;
  background:
    repeating-linear-gradient(to right, rgba(60, 38, 4, 0) 0, rgba(60, 38, 4, 0) 0.2cqw, rgba(60, 38, 4, 0.5) 0.2cqw, rgba(60, 38, 4, 0.5) 0.3cqw),
    linear-gradient(to bottom, #7f5e1c 0, #fff0b8 22%, #e0bd62 46%, #a27a2a 76%, #5e430f 100%);
  box-shadow: 0.35cqw 0.5cqw 0.5cqw rgba(0, 0, 0, 0.6), 0 0 0 0.07cqw rgba(40, 24, 4, 0.9);
}
.dsp-music-box .mb-nut-hand {
  left: 50%;
  bottom: 96%;
  width: 0.9cqw;
  height: 1.5cqw;
  margin-left: -0.45cqw;
  background: linear-gradient(to right, #6f8ff0, #1c2c74);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0.12cqw 0.16cqw 0.12cqw rgba(0, 0, 0, 0.6));
}

/* ---- play button ---------------------------------------------------------------------------------- */

.dsp-music-box .mb-play {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  outline: none;
}
.dsp-music-box .mb-play:focus-visible {
  outline: 0.5cqw solid #fff6d2;
  outline-offset: 0.35cqw;
}
.dsp-music-box .mb-play-collar {
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 315deg, #fff3c4, #d2ac52 12%, #94701f 25%, #c7a049 37%, #f1da94 50%, #caa34b 62%, #8b681c 75%, #c59e47 87%, #fff3c4);
  box-shadow:
    0.4cqw 0.6cqw 0.7cqw rgba(0, 0, 0, 0.55),
    0 0 0 0.08cqw rgba(40, 24, 4, 0.9),
    inset 0 0 0 0.12cqw rgba(255, 248, 214, 0.55);
}
.dsp-music-box .mb-play-pit {
  inset: 0.62cqw;
  border-radius: 50%;
  background: radial-gradient(circle, #241703 0, #130b01 100%);
  box-shadow: inset 0.25cqw 0.35cqw 0.4cqw rgba(0, 0, 0, 0.9), 0 0 0 0.07cqw rgba(255, 244, 200, 0.4);
}
.dsp-music-box .mb-play-drop {
  inset: 0.85cqw;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  filter: blur(0.4cqw);
  transform: translate(0.42cqw, 0.58cqw);
  transition: transform 0.14s ease-out, opacity 0.14s ease-out;
}
.dsp-music-box .mb-play-cap {
  position: absolute;
  display: block;
  inset: 0.85cqw;
  border-radius: 50%;
  transition: transform 0.14s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.dsp-music-box .mb-play-knurl {
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(rgba(74, 48, 6, 0.85) 0deg 1.6deg, rgba(255, 244, 200, 0.9) 1.6deg 3.6deg),
    #b98f3b;
  box-shadow: 0 0 0 0.07cqw rgba(40, 24, 4, 0.9);
}
.dsp-music-box .mb-play-knurl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 315deg, rgba(255, 252, 232, 0.5), rgba(0, 0, 0, 0) 14%, rgba(30, 16, 0, 0.5) 27%, rgba(0, 0, 0, 0) 40%, rgba(255, 252, 232, 0.3) 50%, rgba(0, 0, 0, 0) 62%, rgba(30, 16, 0, 0.55) 76%, rgba(0, 0, 0, 0) 90%, rgba(255, 252, 232, 0.5));
}
.dsp-music-box .mb-play-face {
  inset: 0.62cqw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 26%, rgba(255, 253, 238, 0.95) 0, rgba(255, 248, 214, 0.35) 22%, rgba(255, 248, 214, 0) 46%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(64, 40, 4, 0.5) 100%),
    conic-gradient(from 315deg, #fbe7a4, #dab65b 13%, #a9812e 26%, #cfa94f 38%, #f1d98f 50%, #d2ac52 62%, #a27a2a 75%, #cda64c 88%, #fbe7a4);
  box-shadow:
    0 0 0 0.08cqw rgba(50, 30, 4, 0.9),
    inset 0.1cqw 0.12cqw 0.1cqw rgba(255, 252, 232, 0.8),
    inset -0.2cqw -0.3cqw 0.5cqw rgba(60, 36, 2, 0.5);
}
.dsp-music-box .mb-play-ring {
  inset: 1.5cqw;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.09cqw rgba(60, 38, 4, 0.6), inset 0.1cqw 0.13cqw 0 0.09cqw rgba(255, 250, 224, 0.5);
}
.dsp-music-box .mb-glyph {
  transition: opacity 0.16s ease-out;
}
.dsp-music-box .mb-glyph-pause {
  opacity: 0;
}
.dsp-music-box .mb-play-shine {
  inset: 0.62cqw;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.dsp-music-box .mb-play-shine::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 46%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(0) skewX(-14deg);
  animation: dsp-music-box-shine 5.5s ease-in-out 1.2s infinite;
}
@keyframes dsp-music-box-shine {
  0%,
  72% {
    transform: translateX(0) skewX(-14deg);
    opacity: 0;
  }
  76% {
    opacity: 1;
  }
  96% {
    opacity: 1;
  }
  100% {
    transform: translateX(480%) skewX(-14deg);
    opacity: 0;
  }
}
.dsp-music-box .mb-play:hover .mb-play-cap {
  transform: translate(0.05cqw, 0.07cqw);
}
.dsp-music-box .mb-play:active .mb-play-cap {
  transform: translate(0.2cqw, 0.28cqw) scale(0.985);
}
.dsp-music-box .mb-play:active .mb-play-drop {
  transform: translate(0.12cqw, 0.16cqw);
}
.dsp-music-box.mb-on .mb-play-cap {
  transform: translate(0.16cqw, 0.22cqw) scale(0.988);
}
.dsp-music-box.mb-on .mb-play-drop {
  transform: translate(0.2cqw, 0.28cqw);
  opacity: 0.8;
}
.dsp-music-box.mb-on .mb-glyph-play {
  opacity: 0;
}
.dsp-music-box.mb-on .mb-glyph-pause {
  opacity: 1;
}
.dsp-music-box.mb-on .mb-play-shine::after,
.dsp-music-box.mb-calm .mb-play-shine::after {
  animation: none;
  opacity: 0;
}

/* ---- da capo button: a smaller push piece of the same brass and enamel ------------------------------ */

.dsp-music-box .mb-dc {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  outline: none;
}
.dsp-music-box .mb-dc:focus-visible {
  outline: 0.45cqw solid #fff6d2;
  outline-offset: 0.3cqw;
}
.dsp-music-box .mb-dc-collar {
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 315deg, #fff3c4, #d2ac52 12%, #94701f 25%, #c7a049 37%, #f1da94 50%, #caa34b 62%, #8b681c 75%, #c59e47 87%, #fff3c4);
  box-shadow:
    0.3cqw 0.45cqw 0.55cqw rgba(0, 0, 0, 0.55),
    0 0 0 0.08cqw rgba(40, 24, 4, 0.9),
    inset 0 0 0 0.1cqw rgba(255, 248, 214, 0.55);
}
.dsp-music-box .mb-dc-pit {
  inset: 0.48cqw;
  border-radius: 50%;
  background: radial-gradient(circle, #241703 0, #130b01 100%);
  box-shadow: inset 0.2cqw 0.28cqw 0.32cqw rgba(0, 0, 0, 0.9), 0 0 0 0.07cqw rgba(255, 244, 200, 0.4);
}
.dsp-music-box .mb-dc-drop {
  inset: 0.66cqw;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  filter: blur(0.3cqw);
  transform: translate(0.32cqw, 0.44cqw);
  transition: transform 0.12s ease-out;
}
.dsp-music-box .mb-dc-cap {
  position: absolute;
  display: block;
  inset: 0.66cqw;
  border-radius: 50%;
  transition: transform 0.16s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.dsp-music-box .mb-dc-knurl {
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(rgba(74, 48, 6, 0.85) 0deg 2.2deg, rgba(255, 244, 200, 0.9) 2.2deg 5deg),
    #b98f3b;
  box-shadow: 0 0 0 0.07cqw rgba(40, 24, 4, 0.9);
}
.dsp-music-box .mb-dc-knurl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 315deg, rgba(255, 252, 232, 0.5), rgba(0, 0, 0, 0) 14%, rgba(30, 16, 0, 0.5) 27%, rgba(0, 0, 0, 0) 40%, rgba(255, 252, 232, 0.3) 50%, rgba(0, 0, 0, 0) 62%, rgba(30, 16, 0, 0.55) 76%, rgba(0, 0, 0, 0) 90%, rgba(255, 252, 232, 0.5));
}
.dsp-music-box .mb-dc-face {
  inset: 0.42cqw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 26%, rgba(255, 253, 238, 0.95) 0, rgba(255, 248, 214, 0.35) 22%, rgba(255, 248, 214, 0) 46%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(64, 40, 4, 0.5) 100%),
    conic-gradient(from 315deg, #fbe7a4, #dab65b 13%, #a9812e 26%, #cfa94f 38%, #f1d98f 50%, #d2ac52 62%, #a27a2a 75%, #cda64c 88%, #fbe7a4);
  box-shadow:
    0 0 0 0.07cqw rgba(50, 30, 4, 0.9),
    inset 0.08cqw 0.1cqw 0.08cqw rgba(255, 252, 232, 0.8),
    inset -0.16cqw -0.24cqw 0.4cqw rgba(60, 36, 2, 0.5);
}
.dsp-music-box .mb-dc-glyph {
  inset: 0.42cqw;
  left: 0.42cqw;
  top: 0.42cqw;
  width: calc(100% - 0.84cqw);
  height: calc(100% - 0.84cqw);
}
.dsp-music-box .mb-dc:hover .mb-dc-cap {
  transform: translate(0.04cqw, 0.06cqw);
}
.dsp-music-box .mb-dc:active .mb-dc-cap,
.dsp-music-box .mb-dc.mb-dc-down .mb-dc-cap {
  transform: translate(0.18cqw, 0.25cqw) scale(0.98);
  transition-duration: 0.06s;
}
.dsp-music-box .mb-dc:active .mb-dc-drop,
.dsp-music-box .mb-dc.mb-dc-down .mb-dc-drop {
  transform: translate(0.1cqw, 0.14cqw);
}

/* ---- the cylinder as a control -------------------------------------------------------------------- */

.dsp-music-box .mb-grab {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0.6cqw;
  cursor: grab;
  touch-action: none;
  outline: none;
}
.dsp-music-box .mb-grab.mb-dragging {
  cursor: grabbing;
}
.dsp-music-box .mb-grab:focus-visible {
  outline: 0.4cqw solid #fff6d2;
  outline-offset: 0.2cqw;
}

/* ---- one light, and a little film grain ---------------------------------------------------------- */

.dsp-music-box .mb-light {
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(95cqw 80cqw at 18% 8%, rgba(255, 244, 214, 0.2), rgba(255, 244, 214, 0) 62%),
    linear-gradient(135deg, rgba(0, 0, 0, 0) 38%, rgba(18, 9, 0, 0.34) 100%);
}
.dsp-music-box .mb-grain {
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: var(--t);
  background-size: 100% 100%;
}

/* ---- scene: the linen runs out across the band ------------------------------------------------------ */

/*
 * The backdrop is 400cqw by 160cqw with the player's square at 150cqw, 30cqw.
 * Its cloth is the square's cloth: the same weave at the same scale, on the
 * same pool of light, whose centre sits at the same spot on the player.
 */
.dsp-backdrop-music-box {
  background: #c9bb9f;
}
.dsp-backdrop-music-box .mb-ground {
  position: absolute;
  inset: 0;
  background-image: var(--t), radial-gradient(130cqw 115cqw at 160cqw 34cqw, #f0e7d3 0%, #dccfb6 40%, #b7a788 100%);
  background-size: 200cqw 160cqw, 100% 100%;
  background-position: 150cqw 30cqw, 0 0;
  background-repeat: repeat, no-repeat;
}

/* The backdrop is the ground now, so the stage's own cloth steps aside. */
.dsp-scene .dsp-music-box .mb-surface,
.dsp-scene .dsp-music-box .mb-grain {
  display: none;
}

/*
 * The light and the grain lie over the box and the cloth alike, so in a scene
 * they stretch over the band's full height. The gradients are the square's,
 * restated in cqw: the warm pool still centres 18cqw, 8cqw into the square,
 * and the fall-off to the lower right runs along the same diagonal through the
 * square's centre and stops at its corner's depth.
 */
.dsp-scene .dsp-music-box .mb-light {
  inset: auto;
  left: -150cqw;
  top: -8cqw;
  width: 400cqw;
  height: 116cqw;
  background:
    var(--t) 150cqw 8cqw / 100cqw 100cqw repeat,
    radial-gradient(95cqw 80cqw at 168cqw 16cqw, rgba(255, 244, 214, 0.2), rgba(255, 244, 214, 0) 62%),
    linear-gradient(135deg, rgba(0, 0, 0, 0) 165.46cqw, rgba(18, 9, 0, 0.34) 253.14cqw);
}
