/* The boom box room. Same single theme as the rest of the foundry. */
.table-top { width: min(100%, 560px); display: grid; gap: 22px; justify-items: center; }

.boombox { width: 100%; }
.handle { width: 62%; height: 30px; margin: 0 auto -6px; border: 7px solid #8d8797; border-bottom: 0; box-shadow: inset 0 2px 0 #ffffff44; border-radius: 22px 22px 0 0; }
.body { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 3%; padding: 4%; border-radius: 16px; border: 4px solid #0b070d;
  background: linear-gradient(180deg, #b9b4c4, #8d8797 40%, #5d5867); box-shadow: 0 22px 50px #000b, inset 0 2px 0 #ffffff55; }
.speaker { aspect-ratio: 1; align-self: center; border-radius: 50%; border: 4px solid #0b070d; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #15101a 0 3px, #2e2836 3px 6px); }
.speaker i { width: 34%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #46304c, #0b070d); border: 2px solid #0b070d; }
.speaker.thump i { animation: thump .12s ease-out; }
@keyframes thump { 50% { transform: scale(1.12); } }

.middle { display: grid; gap: 8px; align-content: center; }
.tuner { padding: 6px; border-radius: 6px; border: 3px solid #0b070d; background: #120a15; }
.scale { position: relative; height: 30px; border-radius: 3px; background: linear-gradient(180deg, #f6e7a6, #c9a24b); overflow: hidden; cursor: ew-resize; touch-action: none; }
.scale b { position: absolute; bottom: 0; width: 1px; height: 8px; background: #120a15; }
.scale b.big { height: 14px; }
.scale em { position: absolute; top: 1px; font: bold 8px/1 Georgia, serif; font-style: normal; color: #120a15; transform: translateX(-50%); }
.needle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #b3123f; box-shadow: 0 0 4px #b3123f; }
.tuner-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; }
.band { font: bold 11px/1 Georgia, serif; padding: 4px 7px; border-radius: 3px; border: 2px solid #0b070d; background: #d9d6e0; color: #120a15; cursor: pointer; }
.readout { font: bold 15px/1 "Courier New", monospace; color: #ff7a3c; text-shadow: 0 0 6px #ff7a3c88; opacity: .25; }
.on .readout { opacity: 1; }
.power-bb { width: 30px; height: 18px; border-radius: 4px; border: 2px solid #0b070d; background: #15101a; cursor: pointer; display: grid; place-items: center; padding: 0; }
.power-bb .lamp { width: 8px; height: 8px; border-radius: 50%; background: #3a1414; }
.on .power-bb .lamp { background: #ff7a3c; box-shadow: 0 0 8px #ff7a3c; }

.deck { display: grid; gap: 6px; }
.cassette-window { position: relative; aspect-ratio: 16 / 9; border-radius: 5px; border: 3px solid #0b070d; background: #0b070d; overflow: hidden; }
.cassette-window iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cassette { position: absolute; inset: 8%; border-radius: 4px; background: #f3e6d3; border: 2px solid #2a1c2e; display: none; }
.loaded .cassette { display: block; }
.reel { position: absolute; top: 38%; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #2a1c2e;
  background: repeating-conic-gradient(#2a1c2e 0 30deg, #f3e6d3 30deg 60deg); }
.reel.l { left: 14%; } .reel.r { right: 14%; }
.turning .reel { animation: reel 1.6s linear infinite; }
.turning.back .reel { animation-direction: reverse; }
.turning.half .reel { animation-duration: 3.2s; }
@keyframes reel { to { transform: rotate(360deg); } }
.label { position: absolute; left: 8%; right: 8%; top: 6%; height: 24%; font: 11px/1.2 "Segoe Script", "Bradley Hand", cursive; color: #3b4a8f; text-align: center; overflow: hidden; }
.transport { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.transport button { font: bold 11px/1 Georgia, serif; padding: 6px 0; border-radius: 2px; border: 2px solid #0b070d; background: linear-gradient(180deg, #46304c, #15101a); color: var(--blush); cursor: pointer; }
.transport button:active, .transport button.down { transform: translateY(2px); background: #0b070d; }

.knobs { display: flex; justify-content: space-between; width: 58%; margin: -8px auto 0; }
.bigknob { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #0b070d; padding: 0; cursor: grab; touch-action: none;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--gold) 60%, #6d5119); position: relative; }
.bigknob span { position: absolute; left: 50%; top: 8%; width: 3px; height: 34%; margin-left: -1.5px; border-radius: 2px; background: #120a15; }

.beside { display: flex; align-items: flex-end; justify-content: center; gap: 26px; width: 100%; flex-wrap: wrap; }
.recorder { display: grid; grid-template-columns: auto auto; gap: 8px 12px; align-items: center; padding: 12px 14px; border-radius: 8px; border: 3px solid #0b070d;
  background: linear-gradient(180deg, #2f6f6a, #163f3b); box-shadow: 0 12px 26px #000a; }
.mic { grid-column: 1 / 3; height: 26px; border-radius: 4px; border: 2px solid #0b070d; background: repeating-linear-gradient(90deg, #0b070d 0 3px, #4fb3a9 3px 5px); }
.rec { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #0b070d; background: radial-gradient(circle at 35% 30%, #ff8aa0, #b3123f 60%, #5e0c2c); cursor: pointer; padding: 0; }
.rec[aria-pressed="true"] { box-shadow: 0 0 16px #ff3c5c; animation: recording 1.2s ease-in-out infinite; }
@keyframes recording { 50% { box-shadow: 0 0 4px #ff3c5c; } }
.counter { font: bold 15px/1 "Courier New", monospace; padding: 4px 6px; border-radius: 3px; background: #f3e6d3; color: #120a15; border: 2px solid #0b070d; }

.stack-tapes { display: flex; flex-direction: column-reverse; gap: 0; min-width: 150px; }
.tape { position: relative; width: 150px; height: 26px; margin-top: -3px; border-radius: 3px; border: 2px solid #0b070d; cursor: pointer; padding: 0 8px; text-align: left;
  font: 12px/22px "Segoe Script", "Bradley Hand", cursive; color: #3b4a8f; background: #f3e6d3; box-shadow: 0 3px 0 #0006; transform: rotate(var(--lean, 0deg)); }
.tape:nth-child(2n) { --lean: -1.5deg; } .tape:nth-child(3n) { --lean: 2deg; background: #f7cfd8; } .tape:nth-child(4n) { background: #cfe8d5; }
.tape.in-deck { visibility: hidden; }

.door.small { width: 46px; height: 72px; border-radius: 23px 23px 3px 3px; border-width: 3px; }
.door.small .knob { width: 7px; height: 7px; right: 7px; }
button:focus-visible, .scale:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

@media (max-width: 460px) { .body { grid-template-columns: .7fr 1.6fr .7fr; } }
@media (prefers-reduced-motion: reduce) { .turning .reel, .rec[aria-pressed="true"], .speaker.thump i { animation: none; } }
