body.cassette-page {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  background:
    radial-gradient(800px 400px at 50% 0%, #3a2a20 0%, transparent 55%),
    #121214;
  color: #f3ead8;
}

.desk {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 16px 14px 40px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

.back {
  display: inline-block;
  margin: 0 0 14px 4px;
  padding: 10px 14px;
  min-height: 44px;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #e8d8b0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(232, 216, 176, 0.35);
  border-radius: 999px;
}

.boombox {
  background: linear-gradient(180deg, #3c3c42, #1a1a1e 55%, #101014);
  border: 4px solid #8a8a92;
  border-radius: 18px;
  padding: 16px 12px 14px;
  box-shadow:
    inset 0 1px 0 #9a9aa2,
    inset 0 -8px 16px rgba(0, 0, 0, 0.4),
    0 16px 28px rgba(0, 0, 0, 0.5);
}

.handle {
  width: 46%;
  height: 14px;
  margin: -6px auto 14px;
  border: 3px solid #8a8a92;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: transparent;
}

.speakers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.speaker {
  aspect-ratio: 1;
  width: min(100%, 110px);
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #222 0 18%, #111 19% 28%, #333 29% 52%, #0a0a0a 53% 70%, #2a2a2a 71%);
  box-shadow:
    inset 0 0 0 6px #2a2a30,
    0 0 0 3px #8a8a92,
    0 6px 10px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}

.speaker span {
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 3px #555;
}

.meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.meter {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  height: 16px;
  padding: 3px;
  background: #0a0a0c;
  border: 1px solid #333;
  border-radius: 3px;
}

.meter i {
  display: block;
  background: #1a3a16;
  border-radius: 1px;
}

body.is-playing .meter i {
  animation: pulse 0.9s ease-in-out infinite;
}

body.is-playing .meter i:nth-child(1) { animation-delay: 0s; background: #3dff6a; }
body.is-playing .meter i:nth-child(2) { animation-delay: 0.08s; background: #3dff6a; }
body.is-playing .meter i:nth-child(3) { animation-delay: 0.16s; background: #b6ff3d; }
body.is-playing .meter i:nth-child(4) { animation-delay: 0.1s; background: #b6ff3d; }
body.is-playing .meter i:nth-child(5) { animation-delay: 0.22s; background: #ffe23d; }
body.is-playing .meter i:nth-child(6) { animation-delay: 0.14s; background: #ffe23d; }
body.is-playing .meter i:nth-child(7) { animation-delay: 0.3s; background: #ff8a3d; }
body.is-playing .meter i:nth-child(8) { animation-delay: 0.18s; background: #ff3d3d; }
body.is-playing .meter-b i { animation-duration: 1.15s; }

@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.45); }
  50% { opacity: 1; transform: scaleY(1); }
}

.screen-well {
  margin-bottom: 12px;
  padding: 6px;
  background: #0a0a0c;
  border: 3px solid #5a5a62;
  border-radius: 10px;
}

.cassette-well {
  margin-bottom: 12px;
  padding: 8px;
  background: #0e0e12;
  border: 3px solid #5a5a62;
  border-radius: 10px;
}

.tape {
  background: linear-gradient(180deg, #f3e2b8, #e0c88a);
  border: 3px solid #2a1c10;
  border-radius: 8px;
  padding: 10px 12px 12px;
  color: #2a1c10;
}

.label-title {
  margin: 0;
  font-family: "Permanent Marker", "Comic Sans MS", cursive;
  font-size: clamp(1.4rem, 6vw, 2rem);
  line-height: 1.1;
  text-align: center;
  transform: rotate(-1.2deg);
}

.label-track {
  margin: 4px 0 10px;
  min-height: 1.4em;
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  border-bottom: 2px dotted #7a5a30;
}

.reels {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 8px;
  align-items: center;
  justify-items: center;
}

.reel {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #2a1c10;
  border: 3px solid #5a4030;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.reel span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #c9a46c 0 12deg, #2a1c10 0 24deg);
  box-shadow: inset 0 0 0 10px #2a1c10;
}

body.is-playing .reel-left span {
  animation: spin 2s linear infinite;
}

body.is-playing .reel-right span {
  animation: spin 2.35s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.window-strip {
  width: 100%;
  height: 22px;
  background:
    repeating-linear-gradient(90deg, #2a1c10 0 2px, #6a5030 2px 3px),
    #3a2a18;
  border-radius: 3px;
  border: 2px solid #2a1c10;
}

.deck {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 8px;
}

.deck-btn {
  min-height: 64px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #f4f0e6;
  background: linear-gradient(180deg, #4a4a52, #26262c);
  border: 2px solid #8a8a92;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #7a7a82, 0 3px 0 #0a0a0c;
}

.deck-btn:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 #7a7a82;
}

.symbol {
  font-size: 0.85rem;
  letter-spacing: 0;
  line-height: 1;
}

.deck-play {
  background: linear-gradient(180deg, #3d8a54, #145028);
  border-color: #8ad0a0;
}

.deck-play.is-playing {
  background: linear-gradient(180deg, #d4a024, #8a6010);
  border-color: #ffe08a;
}

.deck-wide {
  grid-column: span 3;
  min-height: 56px;
  flex-direction: row;
  font-size: 1.15rem;
}

.deck-btn[data-action="shuffle"].is-on {
  box-shadow: inset 0 1px 0 #7a7a82, 0 3px 0 #0a0a0c, 0 0 14px #7ec8ff;
  border-color: #7ec8ff;
}

.deck-random {
  background: linear-gradient(180deg, #c98a20, #7a4a08);
  border-color: #f0c86a;
  color: #fff8e8;
}

.jcard {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.track-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  text-align: left;
  color: #2a1c10;
  background: #f3e2b8;
  border: 2px dashed #7a5a30;
  border-radius: 6px;
}

.track-btn.is-current {
  background: #ffe9a8;
  border-style: solid;
}

.track-code {
  font-family: "Permanent Marker", cursive;
  font-size: 1.05rem;
}

.track-name {
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

