/*
 * EKO hi-fi 1978. The stack is laid out in the mockup's units (592 wide) and scaled to fit
 * as one piece, so every legend and knob keeps its proportions at any size.
 */
:root {
  --accent: #ef6a1e;
  --ink: #2c2b27;
  --paper: #e9e7e0;
  --legend: #cdc8bd;
  --legend-dim: #8f8a80;
  --brushed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --s: 1;
}

* {
  box-sizing: border-box;
}
html {
  background: #0b0a09;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color: var(--legend);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 60% 48% at 50% 36%, rgba(120, 104, 86, 0.3), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #151413 0%, #0d0c0b 70%, #070707 100%);
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
body::before {
  background: radial-gradient(
    ellipse 80% 75% at 50% 45%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
body::after {
  background-image: var(--grain);
  opacity: 0.08;
  mix-blend-mode: overlay;
}

.room {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 88px;
}

.scene {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  width: 100%;
}
@media (max-width: 1099px) {
  .scene {
    flex-direction: column;
    align-items: center;
  }
}

/* The stage reserves the scaled size; the stack inside is drawn at 1x and scaled. */
.stage {
  position: relative;
  width: calc(592px * var(--s));
  height: calc(480px * var(--s));
  flex: none;
}
.scroller {
  max-width: 100%;
  overflow-x: auto;
}
.stack {
  position: absolute;
  left: 0;
  top: 0;
  width: 592px;
  height: 474px;
  transform: scale(var(--s));
  transform-origin: 0 0;
  -webkit-box-reflect: below 6px
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, 0.18) 100%);
}
.stack::after {
  content: "";
  position: absolute;
  left: -14px;
  right: -14px;
  bottom: -14px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 70%);
  filter: blur(3px);
  z-index: -1;
}
.stack button {
  font: inherit;
  color: inherit;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.stack [role="slider"] {
  cursor: grab;
  touch-action: none;
}
.stack [role="slider"]:active {
  cursor: grabbing;
}
.stack :focus {
  outline: none;
}
.stack :focus-visible {
  outline: 1.5px solid var(--accent);
  outline-offset: 2px;
}
.pointer .stack :focus-visible {
  outline: none;
}

.cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 592px;
  height: 10px;
  clip-path: polygon(5px 0, 587px 0, 592px 100%, 0 100%);
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.65) 0,
      rgba(0, 0, 0, 0) 7%,
      rgba(0, 0, 0, 0) 93%,
      rgba(0, 0, 0, 0.65) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0,
      rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.1) 100%
    ),
    linear-gradient(180deg, #1c1b1a, #2b2a28);
}
.vent {
  position: absolute;
  top: 3px;
  height: 4px;
  width: 62px;
  border-radius: 1px;
  background: repeating-linear-gradient(90deg, #050505 0 2px, #262523 2px 4px);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.9),
    0 0.5px 0 rgba(255, 255, 255, 0.05);
}

.unit {
  position: absolute;
  left: 0;
  width: 592px;
  border-radius: 2px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.16) 0,
      rgba(255, 255, 255, 0.05) 1px,
      rgba(255, 255, 255, 0) 3px,
      rgba(0, 0, 0, 0) calc(100% - 3px),
      rgba(0, 0, 0, 0.6) 100%
    ),
    radial-gradient(
      ellipse 70% 120% at 45% -10%,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0) 60%
    ),
    var(--brushed), linear-gradient(180deg, #232324 0%, #1a1a1b 55%, #141415 100%);
  background-size:
    auto,
    auto,
    600px 200px,
    auto;
  background-blend-mode: normal, normal, overlay, normal;
  box-shadow:
    0 0 0 1px #070707,
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    inset -1px 0 0 rgba(255, 255, 255, 0.04);
}
.deck {
  top: 10px;
  height: 140px;
}
.eq {
  top: 154px;
  height: 118px;
}
.amp {
  top: 276px;
  height: 198px;
}
.gap {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 4px;
  background: #030303;
}
.foot {
  position: absolute;
  bottom: -6px;
  width: 40px;
  height: 6px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #111, #2a2a2a 60%, #0c0c0c);
}

/* type */
.lg {
  position: absolute;
  font-size: 6.5px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--legend);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
}
.lg.c {
  transform: translateX(-50%);
  text-align: center;
}
.lg.dim {
  color: var(--legend-dim);
}
.brand {
  position: absolute;
  font-weight: 800;
  font-stretch: 125%;
  color: #e8e3d8;
  letter-spacing: 4px;
  line-height: 1;
}
.model {
  position: absolute;
  font-size: 7px;
  letter-spacing: 1.4px;
  color: var(--legend);
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.model b {
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
}
.rule {
  position: absolute;
  height: 1px;
  background: rgba(205, 200, 189, 0.35);
}

.screw {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  /* A domed steel head lit from the top left, sitting in its countersink. */
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 50% 50%, #9c9c9a 0, #7d7d7b 48%, #4a4a49 78%, #2a2a29 100%);
  box-shadow:
    0 0 0 0.75px #0c0c0c,
    0 0 0 1.5px rgba(0, 0, 0, 0.35),
    0 0.75px 0 1.25px rgba(255, 255, 255, 0.07),
    inset 0 -0.75px 1px rgba(0, 0, 0, 0.45);
}
/* A single slot across the head, dark, with a lit lower lip. */
.screw::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 1.3px;
  margin: -0.65px 0 0 -3px;
  border-radius: 0.5px;
  background: linear-gradient(180deg, #0d0d0c, #262624);
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.28);
  transform: rotate(var(--s, 30deg));
}

/*
 * Rack handles: a polished tube standing off the panel on two brushed mounting blocks. The
 * tube casts its shadow down and to the right, onto the faceplate.
 */
.handle {
  position: absolute;
  width: 9px;
  margin-left: 2.5px;
  border-radius: 4.5px;
  z-index: 5;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0) 18%,
      rgba(0, 0, 0, 0) 80%,
      rgba(0, 0, 0, 0.3)
    ),
    linear-gradient(
      90deg,
      #1e1e1e 0%,
      #5b5b5b 12%,
      #b9b9b9 26%,
      #ffffff 36%,
      #dcdcdc 44%,
      #8a8a8a 62%,
      #4c4c4c 76%,
      #9d9d9d 88%,
      #3a3a3a 100%
    );
  box-shadow:
    5px 7px 7px rgba(0, 0, 0, 0.6),
    2px 3px 2px rgba(0, 0, 0, 0.45);
}
.handle::before,
.handle::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 17px;
  height: 15px;
  border-radius: 2px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0) 30%,
      rgba(0, 0, 0, 0.35)
    ),
    linear-gradient(90deg, #5a5a5a, #a8a8a6 25%, #cfcfcd 45%, #9b9b99 70%, #4e4e4e);
  box-shadow:
    0 0 0 0.75px #070707,
    4px 5px 6px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.handle::before {
  top: -6px;
}
.handle::after {
  bottom: -6px;
}

/* knobs */
.knob {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(0, 0, 0, 0.55)),
    repeating-conic-gradient(#e2e2e2 0 2.5deg, #5a5a5a 2.5deg 5deg);
  box-shadow:
    0 7px 9px rgba(0, 0, 0, 0.75),
    0 2px 3px rgba(0, 0, 0, 0.8),
    0 0 0 1px #0a0a0a;
}
.knob .cap {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.18) 0 4%, rgba(0, 0, 0, 0) 5%),
    conic-gradient(
      from 10deg,
      #f4f4f2,
      #9c9c9a 40deg,
      #e9e9e7 85deg,
      #8a8a88 135deg,
      #f7f7f5 185deg,
      #9a9a98 225deg,
      #e4e4e2 270deg,
      #858583 320deg,
      #f4f4f2
    );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.5);
}
.knob .ind {
  position: absolute;
  left: calc(50% - 1px);
  top: 16%;
  width: 2px;
  height: 20%;
  border-radius: 1px;
  background: #1a1a1a;
  transform-origin: 50% 170%;
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.knob.black .cap {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 60%),
    conic-gradient(
      from 10deg,
      #3a3a3a,
      #1a1a1a 40deg,
      #343434 85deg,
      #151515 135deg,
      #3c3c3c 185deg,
      #171717 225deg,
      #303030 270deg,
      #141414 320deg,
      #3a3a3a
    );
}
.knob.black .ind {
  background: #e8e3d8;
  box-shadow: none;
}
.ticks {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* toggles: lever up is on */
/*
 * Toggles: a bat-handle lever on a hex nut and washer. Lever up is on. The lever is a
 * tapered chrome cylinder with a rounded tip, throwing a soft shadow down and right.
 */
.tog {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  /* the washer */
  background: radial-gradient(
    circle,
    #1a1a1a 0 44%,
    #9b9b99 47%,
    #4d4d4c 62%,
    #232323 72%,
    #0d0d0d 100%
  ) !important;
  box-shadow:
    0 0 0 0.75px #050505,
    0 1px 0 0.75px rgba(255, 255, 255, 0.07);
}
/* the hex nut */
.tog::before {
  content: "";
  position: absolute;
  inset: 2.6px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: linear-gradient(160deg, #f3f3f1 0%, #a9a9a7 38%, #5c5c5b 62%, #8c8c8a 100%);
}
/* the lever */
.tog::after {
  content: "";
  position: absolute;
  left: 4.4px;
  width: 5.2px;
  height: 15px;
  bottom: 6.2px;
  border-radius: 2.6px 2.6px 1.4px 1.4px;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
  background:
    radial-gradient(
      ellipse 70% 22% at 40% 12%,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0) 70%
    ),
    linear-gradient(
      90deg,
      #3d3d3d 0%,
      #9c9c9c 20%,
      #ffffff 38%,
      #d8d8d8 52%,
      #7a7a7a 74%,
      #b5b5b5 88%,
      #4a4a4a 100%
    );
  filter: drop-shadow(2.5px 3px 1.6px rgba(0, 0, 0, 0.65));
  transition:
    bottom 70ms ease-out,
    top 70ms ease-out;
}
.tog.down::after {
  bottom: auto;
  top: 6.2px;
  border-radius: 1.4px 1.4px 2.6px 2.6px;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  background:
    radial-gradient(
      ellipse 70% 22% at 40% 88%,
      rgba(255, 255, 255, 0.75),
      rgba(255, 255, 255, 0) 70%
    ),
    linear-gradient(
      90deg,
      #3d3d3d 0%,
      #9c9c9c 20%,
      #ffffff 38%,
      #d8d8d8 52%,
      #7a7a7a 74%,
      #b5b5b5 88%,
      #4a4a4a 100%
    );
  filter: drop-shadow(2px 1.5px 1.2px rgba(0, 0, 0, 0.6));
}
.tog:focus-visible {
  outline-offset: 4px;
  border-radius: 50%;
}

/* push buttons + LEDs */
.push {
  position: absolute;
  border-radius: 2px;
  background: linear-gradient(180deg, #d9d9d6, #a9a9a5 55%, #8b8b87) !important;
  box-shadow:
    0 0 0 1px #050505,
    0 3px 4px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 60ms,
    box-shadow 60ms;
}
.push:active,
.push.in {
  transform: translateY(1px);
  box-shadow:
    0 0 0 1px #050505,
    0 1px 1px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.push.in {
  background: linear-gradient(180deg, #c4c4c0, #9c9c98 55%, #82827e) !important;
}
.led {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 35%, #4a1d10, #1b0805);
  box-shadow: 0 0 0 1px #050505;
  pointer-events: none;
}
.led.on {
  background: radial-gradient(circle at 40% 35%, #fff1d8, #ff7a28 45%, #b23a06);
  box-shadow:
    0 0 0 1px #050505,
    0 0 6px 1px rgba(255, 110, 30, 0.75),
    0 0 16px 4px rgba(255, 90, 20, 0.25);
}
.led.red.on {
  background: radial-gradient(circle at 40% 35%, #ffd9d0, #ff2a1a 45%, #8c0a03);
  box-shadow:
    0 0 0 1px #050505,
    0 0 6px 1px rgba(255, 40, 20, 0.8),
    0 0 14px 4px rgba(255, 30, 10, 0.25);
}

.jack {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    #000 0 30%,
    #2a2a2a 33%,
    #c9c9c9 45%,
    #6a6a6a 62%,
    #2a2a2a 70%,
    #111 100%
  ) !important;
  box-shadow:
    0 0 0 1px #000,
    0 1px 0 rgba(255, 255, 255, 0.08);
}
.jack:focus-visible {
  border-radius: 50%;
}
/* A headphone plug, seen end-on: a knurled black barrel that appears when plugged in. */
.jack .plug {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 45%),
    repeating-conic-gradient(#2c2c2c 0 6deg, #151515 6deg 12deg);
  box-shadow:
    0 0 0 1px #000,
    0 4px 6px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 120ms,
    transform 120ms;
}
.jack .plug::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #e8c068, #a87818);
  box-shadow: 0 0 0 1px #000;
}
.jack.in .plug {
  opacity: 1;
  transform: scale(1);
}

/* meters */
.meterwin {
  position: absolute;
  left: 28px;
  top: 18px;
  width: 306px;
  height: 104px;
  border-radius: 3px;
  background: #050505;
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px #5d5d5b,
    0 0 0 3px #1a1a1a,
    0 1px 0 3px rgba(255, 255, 255, 0.1),
    0 0 26px 4px rgba(255, 150, 50, var(--glow, 0.1)),
    inset 0 2px 6px rgba(0, 0, 0, 0.9);
  transition: box-shadow 1.2s;
}
.meter {
  position: absolute;
  top: 7px;
  width: 142px;
  height: 90px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    inset 0 0 14px rgba(70, 30, 0, 0.55),
    0 0 18px rgba(255, 160, 60, 0.1);
}
.meter svg {
  display: block;
}
.meter.l {
  left: 6px;
}
.meter.r {
  right: 6px;
}
/* The lamps behind the meter faces: off dims the paper to cold grey-brown. */
.meterwin .lamp {
  position: absolute;
  inset: 7px 6px;
  border-radius: 2px;
  background: rgba(14, 10, 6, 0.86);
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity 1.4s ease-in;
}
.meterwin.lit .lamp {
  opacity: 0;
}
.meterwin:not(.lit) {
  --glow: 0;
}
.glass {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  pointer-events: none;
  background:
    linear-gradient(
      162deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.05) 34%,
      rgba(255, 255, 255, 0) 35%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.15));
}

/* eq */
.ledwin,
.lcdwin {
  position: absolute;
  border-radius: 2px;
  background: #040404;
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px #4a4a48,
    0 0 0 3px #121212,
    0 1px 0 3px rgba(255, 255, 255, 0.08),
    inset 0 2px 6px #000;
}
.ledwin {
  left: 106px;
  top: 22px;
  width: 206px;
  height: 74px;
}
.ledwin canvas {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 196px;
  height: 64px;
}
.fslot {
  position: absolute;
  width: 4px;
  height: 66px;
  top: 22px;
  border-radius: 2px;
  background: #000;
  box-shadow:
    inset 0 1px 2px #000,
    0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: none;
}
.fader {
  position: absolute;
  top: 18px;
  width: 16px;
  height: 74px;
  transform: translateX(-50%);
}
.fader:focus-visible {
  outline-offset: 0;
  border-radius: 2px;
}
.fader .ftrack {
  position: absolute;
  left: 0;
  right: 0;
  top: 5.8px;
  height: 62.4px;
}
.fcap {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 1.5px;
  background: linear-gradient(180deg, #f2f2ef 0%, #c9c9c5 45%, #9a9a96 52%, #bdbdb9 100%);
  box-shadow:
    0 0 0 1px #050505,
    0 4px 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.fcap::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 4.5px;
  height: 1px;
  background: #1b1b1b;
}
.fscale {
  position: absolute;
  height: 1px;
  background: rgba(205, 200, 189, 0.4);
  pointer-events: none;
}

/* ---------- deck ---------- */
.counter {
  position: absolute;
  left: 26px;
  top: 88px;
  width: 44px;
  height: 17px;
  padding: 2px 3px;
  display: flex;
  gap: 1.5px;
  border-radius: 2px;
  background: #050505;
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px #4a4a48,
    0 1px 0 2px rgba(255, 255, 255, 0.08),
    inset 0 2px 4px #000;
}
.drum {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 1px;
  background: linear-gradient(180deg, #0d0d0d, #2b2b2b 50%, #0d0d0d);
}
.drum::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0) 65%,
    rgba(0, 0, 0, 0.75)
  );
}
.reel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  font:
    700 9px/13px "Archivo",
    sans-serif;
  font-stretch: 85%;
  color: #f1ece2;
  text-align: center;
  will-change: transform;
}

.bay {
  position: absolute;
  left: 108px;
  top: 10px;
  width: 192px;
  height: 120px;
  border-radius: 3px;
  background: #070707;
  box-shadow:
    0 0 0 1px #000,
    0 0 0 2px #4a4a48,
    0 0 0 3px #121212,
    0 1px 0 3px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.bay .well {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(70, 60, 50, 0.25), rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #0c0b0a, #050505);
}
/* The tape heads and pinch roller, glimpsed at the bottom of the well. */
.bay .well::after {
  content: "";
  position: absolute;
  left: 76px;
  bottom: 2px;
  width: 40px;
  height: 7px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #8e8e8e, #3a3a3a);
  box-shadow:
    -30px 2px 0 -1px #1a1a1a,
    30px 2px 0 -1px #1a1a1a;
}
.cassette {
  position: absolute;
  left: 14px;
  top: 7px;
  width: 164px;
  height: 104px;
  transition:
    transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 200ms;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.7));
}
.bay:not(.loaded) .cassette {
  opacity: 0;
  transform: translateY(-18px);
}
.cassette svg {
  display: block;
}
.door {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  pointer-events: none;
  transition: transform 220ms cubic-bezier(0.3, 0.6, 0.2, 1);
}
.door-glass {
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  background:
    linear-gradient(
      158deg,
      rgba(255, 255, 255, 0.17) 0%,
      rgba(255, 255, 255, 0.04) 30%,
      rgba(255, 255, 255, 0) 31%
    ),
    linear-gradient(180deg, rgba(30, 24, 18, 0.32), rgba(10, 8, 6, 0.46));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 -8px 14px rgba(0, 0, 0, 0.35);
}
.bay.open .door {
  transform: translateY(102px);
}
.bay-empty {
  opacity: 0;
  transition: opacity 300ms;
}
.bay:not(.loaded) .bay-empty {
  opacity: 1;
}

.lcdwin.deckmeter {
  left: 314px;
  top: 14px;
  width: 168px;
  height: 30px;
}
.deckmeter canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 168px;
  height: 30px;
}

/*
 * Transport keys: brushed aluminium caps in a black recessed well. Each cap shows its front
 * face and, below it, the edge of its thickness; pressed keys sink into the well.
 */
.keys {
  position: absolute;
  left: 311px;
  top: 61px;
  display: flex;
  gap: 2.5px;
  padding: 3px 3px 7px;
  border-radius: 3px;
  background: linear-gradient(180deg, #030303, #0c0c0c);
  box-shadow:
    inset 0 2px 4px #000,
    0 0 0 1px #050505,
    0 1px 0 1px rgba(255, 255, 255, 0.07);
}
.key {
  position: relative;
  width: 33px;
  height: 42px;
  border-radius: 1.5px 1.5px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0) 1.5px),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(0, 0, 0, 0.12)),
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.035) 0 1px,
      rgba(255, 255, 255, 0.04) 1px 2px
    ),
    linear-gradient(90deg, #c6c6c2 0%, #e4e4e0 18%, #d6d6d2 50%, #e2e2de 82%, #bcbcb8 100%) !important;
  box-shadow:
    0 0 0 0.75px #050505,
    0 3.5px 0 -0.25px #6c6c68,
    0 3.5px 0 0.5px #0a0a0a,
    0 6px 5px rgba(0, 0, 0, 0.7),
    inset 1px 0 0 rgba(255, 255, 255, 0.35),
    inset -1px 0 0 rgba(0, 0, 0, 0.12);
  transition:
    transform 60ms ease-out,
    box-shadow 60ms ease-out;
}
/* Symbols are engraved: dark fill with a lit lower lip. */
.key svg.sym {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  fill: #33322f;
  filter: drop-shadow(0 0.6px 0 rgba(255, 255, 255, 0.85));
}
.key .sym.rec {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 40% 35%, #ff6a52, #c4200f 60%, #8e1408);
  box-shadow:
    inset 0 -0.5px 0.5px rgba(0, 0, 0, 0.4),
    0 0.6px 0 rgba(255, 255, 255, 0.8);
}
.key:active,
.key.down {
  transform: translateY(2.5px);
  box-shadow:
    0 0 0 0.75px #050505,
    0 1px 0 -0.25px #5c5c58,
    0 1px 0 0.5px #0a0a0a,
    0 2px 2px rgba(0, 0, 0, 0.7),
    inset 1px 0 0 rgba(255, 255, 255, 0.25),
    inset -1px 0 0 rgba(0, 0, 0, 0.12);
}
.key.down {
  filter: brightness(0.9);
}
.keylabels {
  position: absolute;
  left: 314px;
  top: 117px;
  display: flex;
  gap: 2.5px;
}
.keylabels span {
  width: 33px;
  text-align: center;
  font-size: 5.5px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--legend);
}

.take {
  margin: 6px 0 0;
  font:
    500 11px/1.4 "Geist Mono",
    ui-monospace,
    monospace;
  letter-spacing: 0.06em;
  color: var(--legend-dim);
}
.take[hidden] {
  display: none;
}
.take a {
  color: var(--accent);
}
.status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font:
    500 11px/1.4 "Geist Mono",
    ui-monospace,
    monospace;
  letter-spacing: 0.06em;
  color: var(--legend-dim);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .cassette,
  .door,
  .key,
  .tog::after {
    transition: none;
  }
}
