.wm-portable {
  position: relative;
  width: min(100%, 29rem);
  min-width: 0;
  aspect-ratio: 852 / 880;
  isolation: isolate;
  container-type: inline-size;
  margin-inline: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.wm-cabinet, .wm-open-cabinet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
.wm-open-cabinet { opacity: 0; }
.wm-door-open .wm-cabinet { visibility: hidden; }
.wm-door-open .wm-open-cabinet { opacity: 1; }
.wm-track-label {
  position: absolute;
  left: 55.1%;
  top: 39.65%;
  width: 38.3%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #20251e;
  font: italic 700 clamp(.65rem, 4.45cqw, 1.28rem)/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -.05em;
  transform: translate(-50%,-50%) rotate(11.7deg);
  text-shadow: 0 .4px #b5a789;
  pointer-events: none;
}
.wm-reel {
  position: absolute;
  width: 6.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: center / 100% 100% no-repeat url('./walkman-art/spindle.webp');
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.wm-reel-left { left: 35.484%; top: 49.774%; }
.wm-reel-right { left: 63.389%; top: 55.451%; }
.wm-playing .wm-reel { animation: wm-spool 2.45s linear infinite; }
.wm-playing .wm-reel-right { animation-duration: 1.98s; }
.wm-door-open .wm-track-label, .wm-door-open .wm-reel { visibility: hidden; }
@keyframes wm-spool {
  from { transform: translate(-50%,-50%) rotate(0); }
  to { transform: translate(-50%,-50%) rotate(360deg); }
}
.wm-portable .wm-key {
  all: unset;
  position: absolute;
  z-index: 1;
  display: grid;
  width: max(14%, 44px);
  height: max(9.5%, 44px);
  place-items: center;
  box-sizing: border-box;
  border-radius: 6px;
  color: #151d1f;
  transform: translate(-50%,-50%) rotate(11.7deg);
  cursor: pointer;
  touch-action: manipulation;
}
.wm-portable .wm-key:disabled { cursor: default; }
.wm-portable .wm-key:focus-visible {
  outline: 2px solid #fff1bd;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px #161b1c;
}
.wm-portable .wm-previous { left: 18.611%; top: 77.179%; }
.wm-portable .wm-play { left: 35.354%; top: 80.585%; }
.wm-portable .wm-next { left: 51.815%; top: 83.933%; }
.wm-portable .wm-load { left: 67.887%; top: 87.203%; }
.wm-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px);
  line-height: 1;
  font-family: system-ui, sans-serif;
  font-size: clamp(6px, 1.59cqw, 8px);
  font-weight: 800;
  letter-spacing: .05em;
  text-shadow: 0 .45px rgb(255 255 255 / 25%);
  pointer-events: none;
  transition: transform 80ms ease;
}
.wm-stamp svg { display: block; width: clamp(12px, 3.35cqw, 18px); height: auto; fill: currentColor; }
.wm-portable .wm-key:disabled .wm-stamp { opacity: .59; }
.wm-key:active .wm-stamp, .wm-key.wm-depressed .wm-stamp { transform: translateY(1px) scale(.96); }
.wm-key::before {
  position: absolute;
  width: 88%;
  height: 74%;
  border-radius: 3px;
  background: transparent;
  content: "";
  pointer-events: none;
}
@media (hover:hover) {
  .wm-key:hover:enabled::before { background: rgb(255 245 217 / 12%); }
}
.wm-key.wm-depressed::before, .wm-key:active:enabled::before { background: rgb(31 22 14 / 12%); }
@media (prefers-reduced-motion: reduce) {
  .wm-playing .wm-reel { animation: none; }
  .wm-stamp { transition: none; }
}
