/* Controls are registered to physical surfaces in the equipment photographs. */
.scene.equipment-open { align-items: center; overflow-y: auto; }
.equipment-open .studio { display: none; }
.equipment { width: 100%; max-width: 1120px; padding: 0 0 12px; animation: approach .55s cubic-bezier(.2,.7,.2,1); }
.equipment-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 28px 6px; }
.equipment-heading > div { text-align: center; }
.equipment-heading .overline { font-size: 9px; margin: 0 0 5px; letter-spacing: 1.6px; }
.equipment-heading h2 { font-size: 25px; font-weight: 350; margin: 0; }
.studio-return { background: transparent; border: 1px solid #426178; padding: 11px 14px; border-radius: 3px; color: #c1d9e6; font-size: 13px; min-height: 44px; }
.equipment-live { width: 77px; color: #8fa5ae; font: 10px var(--mono); letter-spacing: 1px; }
.equipment-live i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #c79556; margin-right: 7px; }
.equipment-frame { position: relative; width: 100%; aspect-ratio: 3 / 2; container-type: inline-size; isolation: isolate; }
.equipment-photo { width: 100%; height: auto; display: block; pointer-events: none; user-select: none; }
.equipment-frame button:disabled { opacity: 1; cursor: default; }
.equipment-frame button:focus-visible, .tuning-knob:focus-visible { outline: 3px solid #5ee6ff; outline-offset: 3px; z-index: 5; }
.equipment-instructions { padding: 0 30px 10px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.equipment-instructions p { font-size: 14px; line-height: 1.5; margin: 0; color: #b7c8cf; }
.equipment-instructions p.success { color: #8de5e5; }
.equipment-next { background: transparent; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 3px; padding: 12px 20px; min-height: 44px; }
.physical-key { background: linear-gradient(#444b49,#182021 78%,#0b1214); border: 1px solid #73786c; border-radius: 3px; color: #ddd7c5; box-shadow: 0 4px 1px #05090a, inset 0 1px #d6d2b447; font: 600 1.3cqw var(--mono); text-shadow: 0 1px #000; }
.physical-key:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 1px #05090a; }
.radio-glass { position: absolute; left: 11.5%; top: 28.8%; width: 56.6%; height: 15.2%; color: #ffca75; text-shadow: 0 0 10px #f29b3980; font-family: var(--mono); }
.hardware-label { position: absolute; left: 2%; top: 12%; font-size: 1.2cqw; letter-spacing: .1em; }
.radio-glass output { position: absolute; right: 9%; top: 0; font-size: 4.1cqw; line-height: 1.2; font-weight: 400; }
.radio-glass > small { position: absolute; right: 1%; top: 27%; font-size: 1.1cqw; }
.frequency-scale { position: absolute; display: flex; justify-content: space-between; left: 1%; right: 1%; bottom: 15%; font-size: 1.3cqw; }
.tuning-needle { position: absolute; left: var(--frequency-position); top: -2.7cqw; height: 5cqw; width: 2px; background: #ffc064; box-shadow: 0 0 7px 2px #f8782570; transition: left .06s linear; }
.tuning-knob { position: absolute; left: 73.8%; top: 28.7%; width: 16.7%; aspect-ratio: 1; border-radius: 50%; cursor: grab; touch-action: none; }
.tuning-knob:hover { box-shadow: 0 0 0 2px #62d7e777, 0 0 24px #58cef126; }
.is-tuning .tuning-knob { cursor: grabbing; }
.knob-indicator { position: absolute; inset: 0; border-radius: 50%; transform: rotate(var(--dial-angle)); transition: transform .06s linear; }
.knob-indicator::after { content: ''; position: absolute; left: 49%; top: 8%; width: 2.8%; height: 14%; border-radius: 2px; background: #f2cd89; box-shadow: 0 1px 3px #111; }
.knob-fine { position: absolute; left: 73.5%; top: 49.8%; width: 17.5%; display: flex; align-items: center; justify-content: space-between; font: .95cqw var(--mono); color: #ead2a7; }
.knob-fine button { border: 0; background: #0b1014b8; border-radius: 50%; width: 3.6cqw; height: 3.6cqw; min-width: 28px; min-height: 28px; font-size: 2cqw; box-shadow: inset 0 1px #b9c5bf4d, 0 2px 3px #000; }
.receiver-meter { position: absolute; left: 12%; top: 55%; width: 55%; height: 8.5%; display: flex; gap: 2cqw; align-items: center; color: #cca065; font: 1.1cqw var(--mono); padding: 1cqw; }
.meter-bars { display: flex; height: 2.8cqw; gap: .38cqw; flex: 1; align-items: end; }
.meter-bars i { height: 100%; flex: 1; border-radius: 1px; background: #543f201f; border: 1px solid #86613130; }
.meter-bars .lit { background: #db9b42; border-color: #eabd69; box-shadow: 0 0 8px #d9973655; }
.signal-clear .meter-bars .lit { background: #8edcba; border-color: #b6f5de; box-shadow: 0 0 8px #7affc370; }
.is-tuning .meter-bars .lit { animation: meter-flicker .16s alternate infinite; animation-delay: calc(var(--n) * -20ms); }
.receiver-lock { position: absolute; left: 75.7%; top: 58.4%; width: 10.4%; height: 6.4%; background: #efa13124; border: 0; box-shadow: none; color: #281502; text-shadow: 0 1px #f3b151; font-weight: 800; font-size: 1.3cqw; line-height: 1.1; }
.receiver-lock small { font-size: .75cqw; }
.device-solved .receiver-lock { filter: brightness(1.5); }
.physical-note { position: absolute; left: 37%; bottom: 4%; border: 0; background: #d9c392; color: #332e23; font-size: 1.3cqw; padding: 1.3cqw 2.4cqw; transform: rotate(-3deg); box-shadow: 3px 5px 8px #0009; }
.physical-note:active:not(:disabled) { transform: rotate(-3deg) translateY(1px); }
.reel { position: absolute; width: 25%; top: 11.6%; filter: drop-shadow(0 4px 5px #000); }
.reel-left { left: 14.7%; }
.reel-right { left: 60.4%; }
.reel svg { display: block; width: 100%; animation: reel-turn 3s linear infinite; animation-play-state: paused; }
.reel-right svg { animation-duration: 2.6s; }
.is-playback .reel svg, .deck-running .reel svg { animation-play-state: running; }
.moving-tape { position: absolute; left: 25%; top: 53%; width: 50%; height: .2%; background: repeating-linear-gradient(90deg,#352313 0 20px,#856545 21px 25px); opacity: 0; }
.deck-running .moving-tape, .is-playback .moving-tape { opacity: 1; animation: tape-travel .4s linear infinite; }
.deck-lamp { position: absolute; left: 49.2%; top: 28.4%; width: 1.1%; aspect-ratio: 1; border-radius: 50%; background: #a27032; }
.is-playback .deck-lamp, .deck-running .deck-lamp { background: #a7f5c9; box-shadow: 0 0 20px #9bf2ba; animation: meter-flicker .3s alternate infinite; }
.tape-sequence { position: absolute; left: 14%; top: 62%; width: 72%; height: 7.6%; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2cqw; }
.tape-slot { position: relative; border: 1px solid #6b6552; background: #050b0d; box-shadow: inset 0 2px 6px #000; border-radius: 2px; color: #958570; display: flex; align-items: center; justify-content: center; padding: .3cqw; font: 1.15cqw var(--mono); }
.tape-slot small { position: absolute; left: .5cqw; top: .4cqw; font-size: .7cqw; opacity: .7; }
.tape-slot.loaded span { animation: load-label .22s ease-out; background: #e5cca0; padding: .6cqw 1cqw; color: #28251e; box-shadow: 0 1px 3px #000; font-weight: 600; }
.tape-labels { position: absolute; left: 14%; top: 72.5%; width: 72%; height: 7%; display: grid; grid-template-columns: repeat(6,1fr); gap: .7cqw; }
.tape-labels button { background: linear-gradient(100deg,#ceb58e,#e3cfac,#c5b38b); color: #292821; border: 0; border-radius: 1px; box-shadow: 1px 2px 4px #000a; font: 600 1.15cqw var(--mono); transform: rotate(-1deg); padding: 0; }
.tape-labels button:nth-child(even) { transform: rotate(1deg); }
.tape-labels button.loaded { color: #b6a483; background: #302d25; box-shadow: inset 0 1px 5px #000; }
.deck-transport { position: absolute; left: 35%; width: 30%; top: 85.5%; height: 5.1%; display: flex; gap: 1cqw; }
.deck-transport button { width: 50%; font-size: 1.1cqw; }
.play-key { color: #d6ecc8; }
.play-key i { display: inline-block; width: .6cqw; height: .6cqw; border-radius: 50%; background: #536d3e; margin-left: .4cqw; }
.deck-running .play-key i, .device-solved .play-key i { background: #b4ffc4; box-shadow: 0 0 10px #aeffb7; }
.patch-cables { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.patch-wire { stroke-linecap: round; animation: plug-in .3s ease-out; }
.patch-label { position: absolute; top: 28%; font: 600 .95cqw var(--mono); color: #272419; letter-spacing: .04em; }
.patch-input-label { left: 17%; }
.patch-output-label { left: 48%; }
.patch-jack { position: absolute; top: calc(39% + var(--row) * 16.49%); width: 16%; height: 6.5%; display: flex; align-items: center; gap: 1.2cqw; transform: translateY(-50%); border: 0; padding: 0; background: transparent; color: #211e17; font: 700 1.6cqw var(--mono); touch-action: none; z-index: 3; }
.patch-jack:active:not(:disabled) { transform: translateY(-50%); }
.input-jack { left: 16.5%; justify-content: end; }
.output-jack { left: 48%; }
.patch-jack i { width: 4.6cqw; height: 4.6cqw; flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle,#05090c 0 29%,#626260 30% 34%,#161c1d 35% 49%,#999180 50% 56%,#c9c0aa 57% 62%,#3e423f 64% 77%,#b8b19f 78% 82%,#282d29 84%); box-shadow: 1px 3px 5px #17110499; }
.input-jack i { margin-right: .6cqw; }
.output-jack i { margin-left: .6cqw; }
.patch-jack.connected i { background: radial-gradient(circle,#262a2a 0 20%,#998b6b 22% 33%,#171b1b 35% 55%,#8b8a7d 57% 62%,#c9c0aa 64% 70%,#282d29 74%); }
.patch-jack.selected i { outline: 3px solid #86e9f7; outline-offset: 3px; box-shadow: 0 0 20px #66edff; }
.transmitter-lamps { position: absolute; left: 76.8%; top: 19.8%; width: 4.2%; height: 24%; }
.transmitter-lamps > span { position: absolute; top: calc(var(--row) * 37%); width: 100%; aspect-ratio: 1; }
.transmitter-lamps i { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 38% 30%,#382419,#0e0c09 65%); }
.transmitter-lamps small { position: absolute; left: 110%; top: 25%; color: #33271d; font: 700 .75cqw var(--mono); }
.transmitter-lamps .connected i { background: radial-gradient(circle at 35% 30%,#ffebac,#e79e36 45%,#75431a 75%); box-shadow: 0 0 14px #ffd39270; }
.device-solved .transmitter-lamps .connected i { background: radial-gradient(circle at 35% 30%,#ddffe4,#72cb9b 45%,#1b4d42 80%); box-shadow: 0 0 28px #88ffd37d; }
.transmit-switch { position: absolute; left: 74.3%; top: 50.5%; width: 8%; height: 17%; padding: 8%; padding: 0; border: 2px solid #261714; border-radius: 4px; background: linear-gradient(90deg,#080a0b,#29302e,#0b1010); box-shadow: inset 0 0 10px #000; perspective: 300px; }
.switch-lever { display: block; position: absolute; left: 14%; top: 17%; width: 72%; height: 68%; border-radius: 5px; transform: rotateX(-24deg); transform-origin: center 75%; background: linear-gradient(100deg,#780d09,#d73419 35%,#9f180e 65%,#480c0a); border: 2px solid #ed5d3c; box-shadow: inset 0 6px 4px #ff87504d,0 5px 4px #000b; transition: transform .5s,box-shadow .5s; }
.switch-lever::after { content: ''; position: absolute; left: 17%; right: 17%; top: 20%; height: 7%; background: #fbd5b1; box-shadow: 0 0 9px #ffdfaa; }
.device-solved .switch-lever { transform: rotateX(35deg); box-shadow: inset 0 -4px 6px #ffa98866,0 -3px 5px #000; }
.transmit-label { position: absolute; top: 75%; left: 74.5%; color: #342416; font: 800 1.2cqw var(--mono); letter-spacing: .04em; }
.transmitting .patch-wire { stroke-dasharray: 7 5; animation: current-flow .6s linear infinite; }
.device-error { animation: device-shudder .35s; }
.device-error .transmitter-lamps i { background: radial-gradient(circle at 35% 30%,#f9a885,#b9412c 45%,#501809 80%); box-shadow: 0 0 16px #e4523470; }
.field-notes { border-top: 1px solid #3c5567; margin: 24px 0 0; padding-top: 20px; font-size: 13px; line-height: 1.65; }
.field-notes h3 { margin: 0 0 10px; font-size: 14px; font-weight: 500; color: #ebce98; }
.field-notes .note { padding: 18px; font-size: 14px; margin: 0; }
.field-notes .note p { font-size: inherit; }
.field-notes .text-button { font-size: 12px; margin-top: 10px; }
.field-notes .transcript { margin-top: 10px; }
.field-notes .transcript p { font-size: 13px; }
.objective-rail .caption { position: static; width: auto; margin: 20px 0 0; max-height: 260px; overflow: auto; font-size: 13px; padding: 14px; }
.objective-rail .caption p { font-size: 13px; }
.objective-rail .caption-header { font-size: 10px; }
body:not(.is-playing):not(.is-won) .equipment *, body:not(.is-playing):not(.is-won) .equipment *::after { animation-play-state: paused !important; }
@keyframes approach { from { opacity: .2; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes reel-turn { to { transform: rotate(360deg); } }
@keyframes meter-flicker { to { opacity: .65; } }
@keyframes tape-travel { to { background-position: 50px 0; } }
@keyframes load-label { from { transform: translateY(-12px) rotate(-4deg); opacity: 0; } }
@keyframes plug-in { from { opacity: 0; stroke-width: 2; } }
@keyframes current-flow { to { stroke-dashoffset: -24; } }
@keyframes device-shudder { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@media (min-width: 901px) {
  .equipment { max-width: min(1120px, calc((100svh - 380px) * 1.5)); }
  .objective-rail { overflow-y: auto; }
  .objective-rail:has(.field-notes:not([hidden])) .discoveries { margin-top: 25px; }
}
@media (max-width: 560px) {
  .equipment-heading { padding: 14px 12px 6px; gap: 7px; }
  .equipment-heading h2 { font-size: 19px; }
  .equipment-heading .overline { font-size: 8px; }
  .studio-return { font-size: 12px; padding: 8px 10px; }
  .equipment-live { width: 55px; font-size: 8px; }
  .equipment-instructions { padding: 3px 22px 14px; }
  .equipment-instructions p { font-size: 13px; }
  .hardware-label { font-size: 1.8cqw; }
  .radio-glass output { font-size: 5cqw; }
  .frequency-scale { font-size: 1.9cqw; }
  .receiver-meter { font-size: 1.7cqw; gap: 1cqw; }
  .knob-fine { top: 48%; }
  .knob-fine span { display: none; }
  .knob-fine button { font-size: 17px; }
  .receiver-lock { font-size: 2.2cqw; min-height: 24px; top: 57.5%; }
  .receiver-lock small { font-size: 1.35cqw; }
  .physical-note { font-size: 11px; padding: 9px 16px; bottom: 0; }
  .device-deck { aspect-ratio: auto; height: calc(40cqw + 188px); }
  .device-deck .reel { top: 7.73cqw; }
  .device-deck .moving-tape { top: 35.3cqw; }
  .device-deck .deck-lamp { top: 18.9cqw; }
  .device-deck::after { content: ''; position: absolute; z-index: -1; left: 7%; right: 7%; top: 40cqw; bottom: 5px; border: 3px solid #7b6550; border-radius: 0 0 9px 9px; background: linear-gradient(110deg,#262321,#10181c 65%,#1e2629); box-shadow: inset 0 0 0 5px #101616, 0 5px 15px #000; }
  .tape-sequence { top: calc(40cqw + 6px); height: 38px; left: 12%; width: 76%; gap: 5px; }
  .tape-slot { font-size: 10px; }
  .tape-slot small { font-size: 7px; left: 4px; top: 3px; }
  .tape-slot.loaded span { font-size: 11px; padding: 7px 5px; }
  .tape-labels { top: calc(40cqw + 54px); height: 73px; left: 12%; width: 76%; grid-template-columns: repeat(3,1fr); gap: 7px; }
  .tape-labels button { font-size: 11px; }
  .deck-transport { top: calc(40cqw + 139px); left: 26%; width: 48%; height: 32px; gap: 12px; }
  .deck-transport button { font-size: 10px; }
  .play-key i { width: 4px; height: 4px; }
  .patch-label { font-size: 1.6cqw; }
  .patch-jack { font-size: 2.35cqw; height: 11%; gap: .5cqw; width: 20%; }
  .input-jack { left: 12.5%; }
  .patch-jack i { width: 5.7cqw; height: 5.7cqw; }
  .input-jack i { margin-right: .15cqw; }
  .output-jack i { margin-left: 0; }
  .transmitter-lamps small { display: none; }
  .transmit-label { font-size: 2cqw; left: 70.6%; }
  .field-notes { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .equipment, .equipment * { animation: none !important; transition: none !important; }
}
.objective-rail .caption { transform: none; left: auto; right: auto; bottom: auto; max-width: none; }
.tuning-response .meter-bars .lit { animation: meter-flicker .12s alternate infinite; }
@media (min-width: 901px) {
  .equipment:has(.equipment-next:not([hidden])) { max-width: min(1120px, calc((100svh - 430px) * 1.5)); }
}
.is-playback .signal-clear .meter-bars .lit { animation: meter-flicker .28s alternate infinite; animation-delay: calc(var(--n) * -90ms); }
@media (max-width: 900px) {
  .masthead, .clock { position: sticky; top: 0; z-index: 12; background: #091724; }
  .equipment { scroll-margin-top: 100px; }
}
@media (max-width: 560px) {
  body:has(.equipment-open) #objective-description { font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
  body:has(.equipment-open) #objective-title { font-size: 25px; }
}
@media (max-width: 560px) {
  .device-deck .equipment-photo { clip-path: inset(0 0 40% 0); }
  .device-deck::after { left: 3%; right: 3%; border-color: #80613f; background: linear-gradient(110deg,#272421,#11191c 65%,#1c2224); box-shadow: inset 0 0 0 5px #251e17, inset 0 0 14px #000,0 5px 15px #000; }
}
@media (min-width: 561px) {
  .tape-labels button, .tape-slot, .deck-transport button { font-size: max(10px, 1.15cqw); }
  .hardware-label, .receiver-meter, .frequency-scale { font-size: max(9px, 1.2cqw); }
  .patch-jack { font-size: max(11px, 1.6cqw); }
  .patch-label { font-size: max(8px, .95cqw); }
  .physical-note { font-size: max(11px, 1.3cqw); }
}
@media (min-width: 901px) and (max-height: 760px) {
  .equipment, .equipment:has(.equipment-next:not([hidden])) { max-width: 700px; }
  .scene.equipment-open { align-items: start; }
}

/* The new clues live on the equipment, with a readable transcript monitor. */
.device-radio { aspect-ratio: 3 / 2; }
.radio-evidence { position: relative; margin: 10px auto 24px; width: 84%; display: grid; grid-template-columns: 1fr 1.6fr; align-items: center; gap: 18px; }
.radio-evidence > .physical-key { padding: 14px; min-height: 48px; font-size: 12px; }
.radio-evidence .physical-note { position: static; transform: rotate(-1deg); padding: 14px 18px; text-align: left; font-size: 14px; line-height: 1.5; }
.physical-note strong, .physical-note span { display: block; }
.physical-note strong { font: 11px var(--mono); margin-bottom: 7px; }
.device-deck { aspect-ratio: auto; height: auto; }
.deck-control-panel { position: relative; margin: -26.667% 3% 0; padding: 0 6% 25px; display: grid; gap: 14px; border: 3px solid #80613f; border-top: 0; border-radius: 0 0 9px 9px; background: linear-gradient(110deg,#272421,#11191c 65%,#1c2224); box-shadow: inset 0 0 0 5px #251e17, inset 0 0 14px #000,0 5px 15px #000; }
.device-deck .equipment-photo { position: relative; clip-path: inset(0 0 40% 0); z-index: -1; }
.device-deck .reel { top: 7.73cqw; }
.device-deck .moving-tape { top: 35.3cqw; }
.device-deck .deck-lamp { top: 18.9cqw; }
.device-deck::after { display: none; }
.device-deck .tape-labels, .device-deck .tape-sequence, .device-deck .deck-transport { position: static; width: 100%; height: auto; }
.device-deck .tape-labels { grid-template-columns: repeat(4,1fr); gap: 10px; padding-top: 18px; }
.device-deck .tape-labels button { min-height: 44px; font-size: 14px; }
.tape-labels button[aria-pressed="true"] { outline: 2px solid #70e2ed; outline-offset: 3px; }
.tape-monitor { background: #080f12; border: 1px solid #506260; padding: 14px 16px; color: #e0d5bd; box-shadow: inset 0 2px 8px #000; min-height: 118px; }
.tape-monitor > span { font: 11px var(--mono); letter-spacing: .08em; color: #77d0cb; }
.tape-monitor p { font-size: 16px; line-height: 1.55; margin: 8px 0 0; }
.device-deck .tape-sequence { grid-template-columns: repeat(3,1fr); gap: 10px; }
.device-deck .tape-slot { min-height: 46px; font-size: 14px; }
.device-deck .tape-slot small { font-size: 10px; left: 5px; top: 4px; }
.device-deck .tape-slot.loaded span { font-size: 14px; padding: 7px 16px; }
.device-deck .deck-transport { gap: 14px; }
.device-deck .deck-transport button { min-height: 44px; font-size: 13px; }
.device-deck .deck-transport button:disabled { opacity: .45; }
.recovered-tape { border-left: 2px solid #538b94; padding-left: 14px; margin: 18px 0; }
.recovered-tape h4 { font: 12px var(--mono); color: #e7c890; margin: 0; }
.recovered-tape p { font-size: 14px; }
.equipment:has(.device-deck), .equipment:has(.device-radio) { max-width: 820px; }
.scene.equipment-open:has(.device-deck), .scene.equipment-open:has(.device-radio) { align-items: start; }
@media (max-width: 560px) {
  .radio-evidence { grid-template-columns: 1fr; gap: 12px; }
  .radio-evidence > .physical-key { font-size: 13px; }
  .radio-evidence .physical-note { font-size: 14px; }
  .deck-control-panel { padding-left: 4%; padding-right: 4%; }
  .device-deck .tape-labels { gap: 7px; }
  .device-deck .tape-labels button { font-size: 12px; }
  .tape-monitor { padding: 12px; min-height: 178px; }
  .tape-monitor p { font-size: 15px; }
  .device-deck .tape-slot.loaded span { padding: 7px 10px; font-size: 12px; }
  .device-deck .deck-transport button { font-size: 12px; }
}
