/* ============================================================================
   THE INTERLOCK — SHORTWAVE KISSA (Model 74 World Receiver)
   1974 Brushed Obsidian Aluminum + Oiled Walnut + Glowing Amber Dial Glass
   ============================================================================ */

.radio-page {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(232, 168, 56, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 45% at 85% 90%, rgba(217, 107, 67, 0.07), transparent 65%),
    #090A0D;
  color: var(--ivory);
  min-height: 100vh;
}

.radio-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 48px;
}

/* Intro Strip */
.radio-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  margin-bottom: 20px;
}
.radio-kicker {
  margin: 0 0 6px;
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.radio-intro h1 {
  margin: 0 0 8px;
  font: 500 clamp(32px, 4vw, 48px)/1.05 var(--font-serif);
  color: var(--ivory);
  letter-spacing: -0.01em;
}
.radio-lead {
  margin: 0;
  max-width: 68ch;
  font: 400 15px/1.55 var(--font-sans);
  color: rgba(244, 240, 230, 0.78);
}
.radio-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.radio-origin-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 56, 0.28);
  background: rgba(20, 17, 13, 0.85);
  font: 500 12px/1.2 var(--font-mono);
  color: var(--ivory-soft);
}
.origin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(232, 168, 56, 0.8);
}
.presence-dot {
  background: #68FFAC;
  box-shadow: 0 0 10px rgba(104, 255, 172, 0.85);
}

/* ============================================================================
   THE 1974 WALNUT & BRUSHED-ALUMINUM RECEIVER CABINET
   ============================================================================ */
.receiver-cabinet {
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  border-radius: 18px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(244, 240, 230, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  background: #121317;
}

.walnut-cheek {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.16) 0px,
      rgba(0, 0, 0, 0.03) 3px,
      rgba(124, 72, 34, 0.15) 6px,
      rgba(0, 0, 0, 0.1) 10px
    ),
    linear-gradient(180deg, #563218 0%, #3A200E 48%, #281408 100%);
  position: relative;
}
.walnut-left { border-right: 1px solid rgba(0, 0, 0, 0.85); }
.walnut-right { border-left: 1px solid rgba(0, 0, 0, 0.85); }

.receiver-faceplate {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(180deg, #1A1B20 0%, #121318 55%, #0F1014 100%);
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Faceplate Top Header */
.faceplate-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(244, 240, 230, 0.08);
}
.plate-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plate-model {
  font: 700 15px/1.1 var(--font-sans);
  letter-spacing: 0.2em;
  color: var(--ivory);
}
.plate-model em {
  font-style: normal;
  color: var(--gold-bright);
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.plate-sub {
  font: 500 10px/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  color: rgba(244, 240, 230, 0.48);
}

.plate-indicators {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.jewel-lamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: rgba(244, 240, 230, 0.45);
  transition: color 0.25s ease;
}
.jewel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #23242A;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.jewel-lamp.is-on { color: var(--ivory); }
#lamp-power.is-on .jewel-dot {
  background: #E8A838;
  box-shadow: 0 0 12px rgba(232, 168, 56, 0.95), inset 0 0 3px #FFF6D6;
}
#lamp-stereo.is-on .jewel-dot {
  background: #FF6B42;
  box-shadow: 0 0 14px rgba(255, 107, 66, 0.95), inset 0 0 3px #FFDCD0;
}

/* EM84 Vintage Phosphor Magic Eye Tube */
.magic-eye-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.magic-eye-label {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.5);
}
.magic-eye {
  width: 74px;
  height: 16px;
  border-radius: 999px;
  background: #08120C;
  border: 1px solid rgba(110, 245, 160, 0.24);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2px;
  position: relative;
}
.eye-bar {
  height: 100%;
  width: 14%;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(42, 235, 132, 0.5), #68FFAC);
  box-shadow: 0 0 10px rgba(72, 255, 154, 0.75);
  transition: width 90ms linear, opacity 200ms ease;
  opacity: 0.25;
}
.eye-right {
  margin-left: auto;
  background: linear-gradient(270deg, rgba(42, 235, 132, 0.5), #68FFAC);
}
.receiver-cabinet.is-powered .eye-bar { opacity: 1; }

/* ============================================================================
   ILLUMINATED AMBER GLASS SLIDE-RULE DIAL
   ============================================================================ */
.dial-glass-bezel {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dial-glass {
  position: relative;
  height: 118px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 90% 90% at 50% 50%, #1B160F 0%, #0D0C0B 82%, #070708 100%);
  border: 2px solid #2A2621;
  box-shadow:
    inset 0 6px 26px rgba(0, 0, 0, 0.92),
    inset 0 0 28px rgba(232, 168, 56, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.dial-glass:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}
.dial-glow-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 210, 125, 0.08) 0%, transparent 35%, rgba(232, 168, 56, 0.05) 100%);
  opacity: 0.35;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.receiver-cabinet.is-powered .dial-glow-layer {
  opacity: 1;
}
.dial-band-label {
  position: absolute;
  top: 10px;
  left: 14px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
  color: rgba(232, 168, 56, 0.65);
  pointer-events: none;
}
.dial-readout-pill {
  position: absolute;
  top: 8px;
  right: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(6, 6, 8, 0.78);
  border: 1px solid rgba(232, 168, 56, 0.28);
  font-family: var(--font-mono);
  color: #FFD073;
  text-shadow: 0 0 12px rgba(232, 168, 56, 0.6);
  pointer-events: none;
}
#dial-freq-digital {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dial-readout-pill small {
  font-size: 10px;
  opacity: 0.75;
}
.dial-callsign-badge {
  margin-left: 6px;
  padding-left: 7px;
  border-left: 1px solid rgba(232, 168, 56, 0.26);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.78);
}

.dial-ticks {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 46px;
  bottom: 18px;
  pointer-events: none;
}
.dial-tick {
  position: absolute;
  top: 14px;
  width: 1px;
  height: 12px;
  background: rgba(244, 236, 220, 0.25);
  transform: translateX(-50%);
}
.dial-tick.major {
  top: 8px;
  height: 22px;
  width: 1.5px;
  background: rgba(244, 220, 168, 0.75);
}
.dial-tick-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 10px/1 var(--font-mono);
  color: rgba(246, 224, 178, 0.85);
  text-shadow: 0 0 8px rgba(232, 168, 56, 0.35);
}

.dial-station-pips {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 12px;
  height: 28px;
  pointer-events: none;
}
.dial-pip {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.dial-pip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 168, 56, 0.45);
  border: 1px solid rgba(255, 220, 145, 0.5);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.dial-pip.is-locked .dial-pip-dot {
  background: #FF784E;
  transform: scale(1.45);
  box-shadow: 0 0 12px rgba(255, 120, 78, 0.95);
}
.dial-pip-code {
  font: 600 8.5px/1 var(--font-mono);
  letter-spacing: 0.05em;
  color: rgba(244, 240, 230, 0.56);
}
.dial-pip.is-locked .dial-pip-code {
  color: #FFD584;
}

.dial-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 33.5%;
  width: 2.5px;
  background: linear-gradient(180deg, #FF5A36 0%, #FFB347 55%, #FF5A36 100%);
  box-shadow: 0 0 12px rgba(255, 108, 62, 0.9), 0 0 3px #FFF2D6;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
}
.needle-tip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #FF6C3E;
}

.dial-hint-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font: 500 11px/1.4 var(--font-mono);
  color: rgba(244, 240, 230, 0.56);
}
.dial-hint-row kbd {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(244, 240, 230, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 10px;
}
#dial-signal-readout {
  color: var(--gold-bright);
  letter-spacing: 0.06em;
}

/* ============================================================================
   MIDDLE INSTRUMENT DECK
   ============================================================================ */
.instrument-deck {
  display: grid;
  grid-template-columns: 270px 1fr 228px;
  gap: 16px;
  align-items: stretch;
}
.deck-module {
  background: rgba(8, 9, 12, 0.64);
  border: 1px solid rgba(244, 240, 230, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

/* Analog Backlit Meters */
.meters-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.analog-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.meter-face {
  position: relative;
  width: 100%;
  height: 62px;
  border-radius: 7px;
  background: linear-gradient(180deg, #271E12 0%, #17120B 100%);
  border: 1px solid rgba(232, 168, 56, 0.26);
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.85), inset 0 0 18px rgba(232, 168, 56, 0.14);
  overflow: hidden;
}
.receiver-cabinet.is-powered .meter-face {
  background: linear-gradient(180deg, #3C2B14 0%, #1E160C 100%);
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.72), inset 0 0 22px rgba(255, 194, 82, 0.24);
}
.meter-scale {
  position: absolute;
  top: 7px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  font: 600 8.5px/1 var(--font-mono);
  color: rgba(246, 224, 178, 0.78);
}
.meter-scale .red { color: #FF7852; }
.meter-arc {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 22px;
  height: 44px;
  border-radius: 50%;
  border-top: 1.5px solid rgba(246, 224, 178, 0.42);
}
.meter-needle {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 1.8px;
  height: 52px;
  background: #FF6B42;
  box-shadow: 0 0 6px rgba(255, 107, 66, 0.75);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-46deg);
  transition: transform 85ms ease-out;
}
.meter-pivot {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1C1C20;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
}
.meter-caption {
  font: 600 9.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: rgba(244, 240, 230, 0.55);
}

/* Tactile Hardware Push Switches */
.tactile-switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.hw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid rgba(244, 240, 230, 0.15);
  background: linear-gradient(180deg, #25272E 0%, #191B21 100%);
  color: rgba(244, 240, 230, 0.78);
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.08s ease;
}
.hw-btn:active { transform: translateY(1px); }
.hw-btn:hover { border-color: rgba(232, 168, 56, 0.5); color: var(--ivory); }
.hw-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #363842;
  flex: none;
}
.hw-btn.active {
  border-color: rgba(232, 168, 56, 0.62);
  color: var(--ivory);
  background: linear-gradient(180deg, #2F281C 0%, #1F1B13 100%);
}
.hw-btn.active .hw-led {
  background: #E8A838;
  box-shadow: 0 0 8px rgba(232, 168, 56, 0.95);
}
.power-btn.active {
  border-color: rgba(255, 120, 78, 0.75);
  background: linear-gradient(180deg, #3A2218 0%, #24140D 100%);
}
.power-btn.active .hw-led {
  background: #FF6B42;
  box-shadow: 0 0 10px rgba(255, 107, 66, 0.95);
}
.rec-btn.is-recording {
  border-color: rgba(255, 72, 72, 0.88);
  background: linear-gradient(180deg, #421717 0%, #260D0D 100%);
  color: #FFD7D7;
}
.rec-btn.is-recording .hw-led {
  background: #FF3B3B;
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.98);
  animation: recBlink 0.9s ease-in-out infinite;
}
@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.tape-deck-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(34, 14, 14, 0.82);
  border: 1px solid rgba(255, 75, 75, 0.42);
  font: 600 10px/1 var(--font-mono);
  color: #FFC6C6;
}
.tape-deck-strip[hidden] { display: none; }
.tape-reel {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px dashed #E8A838;
  animation: spinReel 1.4s linear infinite;
  flex: none;
}
@keyframes spinReel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.preset-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 4px;
}
.preset-live-count {
  font: 600 9px/1 var(--font-mono);
  color: #68FFAC;
  background: rgba(104, 255, 172, 0.12);
  border: 1px solid rgba(104, 255, 172, 0.28);
  border-radius: 999px;
  padding: 2px 5px;
}
.preset-live-count[hidden] { display: none; }

.volume-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.62);
}
.volume-strip input[type="range"] {
  flex: 1;
  accent-color: #E8A838;
  cursor: pointer;
}
#radio-volume-val {
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Phosphor CRT Oscilloscope + Great-Circle Signal Arc */
.scope-module { padding: 12px 14px; }
.scope-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.scope-title {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: rgba(244, 240, 230, 0.56);
}
.scope-mode-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}
.scope-tab {
  border: 0;
  background: transparent;
  color: rgba(244, 240, 230, 0.58);
  font: 600 9.5px/1 var(--font-mono);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.scope-tab.active {
  background: rgba(232, 168, 56, 0.22);
  color: var(--gold-bright);
}
.crt-viewport {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  flex: 1;
}
.crt-viewport[data-mode="lissajous"] { grid-template-columns: 1fr; }
.crt-viewport[data-mode="lissajous"] .crt-arc-wrap { display: none; }
.crt-viewport[data-mode="map"] { grid-template-columns: 1fr; }
.crt-viewport[data-mode="map"] .crt-osc-wrap { display: none; }

.crt-screen {
  position: relative;
  border-radius: 9px;
  background: radial-gradient(circle at 50% 50%, #0C1712 0%, #060A08 100%);
  border: 1px solid rgba(114, 245, 168, 0.18);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.92);
  overflow: hidden;
  min-height: 162px;
}
.crt-arc-wrap {
  background: radial-gradient(circle at 50% 45%, #12151C 0%, #07090D 100%);
  border-color: rgba(232, 168, 56, 0.2);
}
.crt-screen canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.crt-tag {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font: 600 9px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.45);
  pointer-events: none;
}

/* Weighted Machined-Brass Flywheel Tuning Knob */
.knob-module {
  align-items: center;
  text-align: center;
}
.knob-label {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  color: rgba(244, 240, 230, 0.56);
}
.flywheel-housing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nudge-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(244, 240, 230, 0.16);
  background: #1A1C22;
  color: rgba(244, 240, 230, 0.78);
  font: 600 9.5px/1 var(--font-mono);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nudge-btn:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.flywheel-knob {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 5px;
  background: radial-gradient(circle at 30% 25%, #2D2A24, #0C0C0E 78%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.75),
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(232, 168, 56, 0.22);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.flywheel-knob:active { cursor: grabbing; }
.knob-knurling {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 8px;
  background:
    repeating-conic-gradient(
      from 0deg,
      #C9963D 0deg 3deg,
      #593F14 3deg 6deg
    );
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7);
  will-change: transform;
}
.knob-cap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    conic-gradient(from 45deg, #262529, #3D3B3F, #1E1D21, #38353B, #262529);
  border: 1px solid rgba(232, 168, 56, 0.45);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.12), inset 0 -4px 10px rgba(0, 0, 0, 0.75);
  position: relative;
}
.knob-dimple {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFDA85, #9E681B);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 6px rgba(232, 168, 56, 0.55);
}

.station-step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}
.hw-mini-btn {
  padding: 7px 6px;
  border-radius: 6px;
  border: 1px solid rgba(244, 240, 230, 0.14);
  background: #1A1C22;
  color: rgba(244, 240, 230, 0.78);
  font: 600 9.5px/1 var(--font-mono);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.hw-mini-btn:hover { border-color: rgba(232, 168, 56, 0.55); color: var(--gold-bright); }

/* Bottom 12-Station Preset Push-Button Rail */
.preset-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 240, 230, 0.08);
}
.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid rgba(244, 240, 230, 0.12);
  background: linear-gradient(180deg, #1E2027 0%, #15171C 100%);
  color: rgba(244, 240, 230, 0.78);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.preset-btn:hover { border-color: rgba(232, 168, 56, 0.48); color: var(--ivory); }
.preset-btn.is-active {
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(232, 168, 56, 0.2), rgba(217, 107, 67, 0.12));
  color: var(--ivory);
  box-shadow: 0 0 16px rgba(232, 168, 56, 0.15);
}
.preset-freq {
  font: 600 10px/1 var(--font-mono);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.preset-city {
  font: 600 11.5px/1.2 var(--font-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ============================================================================
   RECEPTION DOSSIER + ATLAS ROOM BRIDGE
   ============================================================================ */
.reception-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 18px;
  margin-top: 20px;
}
.reception-card {
  border-radius: 14px;
  border: 1px solid rgba(244, 240, 230, 0.11);
  background: linear-gradient(180deg, rgba(24, 22, 19, 0.92), rgba(14, 14, 17, 0.94));
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reception-eyebrow {
  display: block;
  font: 600 10.5px/1.3 var(--font-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.dossier-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.station-dossier h2 {
  margin: 4px 0 4px;
  font: 500 28px/1.1 var(--font-serif);
  color: var(--ivory);
}
.rec-tagline {
  margin: 0;
  font: 500 13.5px/1.45 var(--font-sans);
  color: rgba(244, 240, 230, 0.72);
}
.local-clock-box {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(8, 9, 12, 0.72);
  border: 1px solid rgba(232, 168, 56, 0.24);
  text-align: right;
  min-width: 164px;
}
.clock-label {
  display: block;
  font: 600 9px/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  color: rgba(244, 240, 230, 0.5);
}
#rec-local-time {
  display: block;
  margin: 4px 0 2px;
  font: 700 19px/1.1 var(--font-mono);
  color: #FFD073;
  font-variant-numeric: tabular-nums;
}
.clock-mood {
  font: 500 11px/1.2 var(--font-mono);
  color: rgba(244, 240, 230, 0.68);
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.tele-cell {
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(244, 240, 230, 0.08);
}
.tele-cell span {
  display: block;
  font: 600 9px/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.48);
  margin-bottom: 4px;
}
.tele-cell strong {
  font: 600 12.5px/1.25 var(--font-mono);
  color: var(--ivory);
}
.rec-story {
  margin: 0;
  font: 400 14.5px/1.6 var(--font-serif);
  color: rgba(244, 240, 230, 0.85);
}
.dossier-actions, .room-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* Atlas Room Dossier */
.room-dossier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.room-flip-btn {
  border: 1px solid rgba(232, 168, 56, 0.35);
  background: rgba(232, 168, 56, 0.1);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 5px 11px;
  font: 600 11px/1 var(--font-mono);
  cursor: pointer;
}
.room-flip-btn:hover { background: rgba(232, 168, 56, 0.22); }
.room-dossier h3 {
  margin: 0;
  font: 500 24px/1.15 var(--font-serif);
  color: var(--ivory);
}
.room-meta {
  margin: -6px 0 0;
  font: 500 12px/1.4 var(--font-mono);
  color: var(--terra-bright);
}
.room-desc {
  margin: 0;
  font: 400 14px/1.55 var(--font-sans);
  color: rgba(244, 240, 230, 0.78);
}
.room-gear-box {
  padding: 11px 13px;
  border-radius: 9px;
  background: rgba(232, 168, 56, 0.06);
  border-left: 2px solid var(--gold-bright);
}
.room-gear-box span {
  display: block;
  font: 600 9.5px/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 4px;
}
.room-gear-box p {
  margin: 0;
  font: 500 12.5px/1.45 var(--font-sans);
  color: rgba(244, 240, 230, 0.86);
}

/* ============================================================================
   VINTAGE QSL RECEPTION POSTCARD MODAL
   ============================================================================ */
.qsl-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 20px;
}
.qsl-modal[hidden] { display: none; }
.qsl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(8px);
}
.qsl-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 16px;
  background: #141312;
  border: 1px solid rgba(232, 168, 56, 0.34);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.85);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.qsl-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.qsl-dialog-head h2 {
  margin: 0;
  font: 500 22px/1.15 var(--font-serif);
}
.qsl-close-btn {
  border: 1px solid rgba(244, 240, 230, 0.18);
  background: transparent;
  color: var(--ivory);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}
.qsl-preview-wrap {
  display: flex;
  justify-content: center;
  background: #0A0B0E;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(244, 240, 230, 0.08);
}
#qsl-canvas {
  width: min(340px, 100%);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}
.qsl-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qsl-handle-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qsl-handle-field span {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.6);
}
.qsl-handle-field input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(244, 240, 230, 0.18);
  background: #0C0D10;
  color: var(--ivory);
  font: 500 13.5px/1.3 var(--font-mono);
}
.qsl-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================ */
@media (max-width: 1040px) {
  .instrument-deck {
    grid-template-columns: 1fr 1fr;
  }
  .scope-module {
    grid-column: 1 / -1;
    order: -1;
  }
  .preset-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .reception-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .radio-shell { padding: 14px 14px 36px; }
  .receiver-cabinet { grid-template-columns: 8px 1fr 8px; }
  .receiver-faceplate { padding: 14px 14px 16px; }
  .instrument-deck { grid-template-columns: 1fr; }
  .crt-viewport { grid-template-columns: 1fr; }
  .preset-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dial-pip-code { display: none; }
  .local-clock-box { text-align: left; width: 100%; }
}
