:root {
  --amber: #ffc95e;
  --amber-dim: rgba(255, 201, 94, 0.55);
  --green: #7cffb2;
  --red: #ff6b6b;
  --ink: #0a0c10;
  --panel: rgba(10, 13, 18, 0.72);
  --panel-border: rgba(255, 201, 94, 0.18);
  --text: #e8e6df;
  --text-dim: rgba(232, 230, 223, 0.55);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --spring: cubic-bezier(0.22, 1.2, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #01030a;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

#globe { position: fixed; inset: 0; }
#globe canvas { display: block; }
#globe.grab { cursor: grab; }
#globe.grab.grabbing { cursor: grabbing; }

.mono { font-family: var(--mono); }

/* ---------- reticle ---------- */
#reticle {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  pointer-events: none;
  z-index: 5;
}
.ret-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--amber-dim);
  opacity: 0.55;
  transform: scale(1);
  transition: border-color 0.5s, opacity 0.5s, transform 0.7s var(--spring), box-shadow 0.5s;
}
.ret-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.8;
  transition: background 0.4s, box-shadow 0.4s;
}
#reticle[data-state="locked"] .ret-ring {
  border-color: var(--green);
  opacity: 0.9;
  transform: scale(0.72);
  box-shadow: 0 0 26px rgba(124, 255, 178, 0.25), inset 0 0 18px rgba(124, 255, 178, 0.12);
}
#reticle[data-state="locked"] .ret-dot {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
#reticle[data-state="fringe"] .ret-ring {
  border-color: var(--amber);
  opacity: 0.8;
  transform: scale(0.88);
  animation: retpulse 1.2s ease-in-out infinite;
}
@keyframes retpulse {
  50% { opacity: 0.4; }
}

/* ---------- HUD shared ---------- */
.hud { position: fixed; z-index: 10; }

.brand {
  top: 20px;
  left: 22px;
  user-select: none;
}
.brand h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-shadow: 0 0 24px rgba(255, 201, 94, 0.35);
}
.brand .tag {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}
.brand .count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 8px;
}

.telemetry {
  top: 20px;
  right: 22px;
  display: grid;
  gap: 4px;
  font-size: 11px;
  text-align: right;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.telemetry div { display: flex; gap: 12px; justify-content: space-between; }
.telemetry label { color: var(--text-dim); letter-spacing: 0.12em; }
.telemetry span { color: var(--amber); min-width: 11ch; text-align: right; }

/* ---------- radio panel ---------- */
.radio {
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 28px));
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 14px 18px 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.radio-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
}
.radio-row-top .freq { margin-left: auto; color: var(--amber-dim); letter-spacing: 0.08em; }
#radio-status.dx { color: var(--green); }
.skywave {
  display: none;
  color: var(--green);
  letter-spacing: 0.1em;
  font-size: 9px;
  border: 1px solid rgba(124, 255, 178, 0.35);
  border-radius: 999px;
  padding: 1px 7px;
}
.skywave.on { display: inline-block; }

.led {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.led.tuned    { background: var(--green); box-shadow: 0 0 10px var(--green); }
.led.scanning { background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 0.9s steps(2) infinite; }
.led.static   { background: var(--red);   box-shadow: 0 0 10px var(--red); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.station-name {
  margin-top: 8px;
  font-size: clamp(20px, 4.5vw, 27px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.25em;
}
.station-name.tune-in { animation: tunein 0.55s var(--spring); }
@keyframes tunein {
  0% { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.radio-row-meta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
}
.radio-row-meta .flag { font-size: 15px; }
.radio-row-meta .dot { opacity: 0.4; }

.signal-wrap {
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
#vu { flex-shrink: 0; }
.vu-arc { stroke: rgba(232, 230, 223, 0.14); stroke-width: 1.5; }
.vu-tick { stroke: rgba(232, 230, 223, 0.3); stroke-width: 1; }
.vu-tick.hot { stroke: var(--amber-dim); stroke-width: 1.5; }
#vu-needle line {
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 201, 94, 0.6));
}
.vu-hub { fill: var(--amber); }
#signal-label { font-size: 10px; letter-spacing: 0.18em; color: var(--text-dim); padding-bottom: 4px; }

/* ---------- slide-rule dial ---------- */
.dial-wrap {
  position: relative;
  height: 30px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  transition: opacity 0.5s;
}
.dial-wrap.is-static { opacity: 0.25; }
#dial-strip {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transition: transform 0.9s var(--spring), filter 0.3s;
  will-change: transform;
}
#dial-strip.sweeping {
  transition: transform 0.3s linear, filter 0.3s;
  filter: blur(1px);
}
.dial-tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 7px;
  background: rgba(232, 230, 223, 0.25);
}
.dial-tick.major { height: 12px; background: var(--amber-dim); }
.dial-num {
  position: absolute;
  top: 0;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  transform: translateX(-50%);
}
.dial-hairline {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  box-shadow: 0 0 7px rgba(255, 107, 107, 0.8);
}

.radio-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mode-group {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.mode-group .chip {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 6px 10px;
}
.mode-group .chip:hover { transform: none; }
.mode-group .chip.active {
  background: rgba(255, 201, 94, 0.16);
  color: var(--amber);
}

.mode-group .chip.scanning {
  color: var(--green);
  background: rgba(124, 255, 178, 0.12);
  animation: blink 1.1s steps(2) infinite;
}

.chip.faved { color: #ff8fa3; border-color: rgba(255, 143, 163, 0.5); }

.chip.band {
  text-decoration: none;
  color: var(--amber);
  border-color: var(--amber-dim);
  display: inline-flex;
  align-items: center;
}

/* ---------- static grain ---------- */
#grain {
  position: fixed;
  inset: -60px;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grainshift 0.5s steps(5) infinite;
  transition: opacity 0.4s;
  mix-blend-mode: screen;
}
@keyframes grainshift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-18px, 12px); }
  40% { transform: translate(12px, -20px); }
  60% { transform: translate(-10px, -14px); }
  80% { transform: translate(16px, 10px); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  #grain { animation: none; }
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s var(--spring);
}
.chip:hover { background: rgba(255, 201, 94, 0.12); border-color: var(--amber-dim); transform: translateY(-1px); }
.chip:active { transform: translateY(1px); }

/* ---------- saved stations ---------- */
#fav-panel {
  right: 22px;
  top: 96px;
  width: min(300px, calc(100vw - 44px));
  max-height: min(52vh, 420px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 12;
  touch-action: pan-y;
  transition: opacity 0.25s, transform 0.35s var(--spring);
}
#fav-panel.hidden { opacity: 0; pointer-events: none; transform: translateY(-10px); }
.fav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
#fav-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
}
#fav-close:hover { color: var(--text); }
.fav-row { display: flex; align-items: center; gap: 4px; }
.fav-go {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
}
.fav-go:hover { background: rgba(255, 201, 94, 0.08); }
.fav-flag { font-size: 15px; }
.fav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-cc { font-size: 9px; color: var(--text-dim); flex-shrink: 0; }
.fav-del {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
}
.fav-del:hover { color: var(--red); }
.fav-empty { font-size: 10px; color: var(--text-dim); padding: 6px; }

/* ---------- passport + logbook ---------- */
#log-panel {
  right: 22px;
  top: 96px;
  width: min(340px, calc(100vw - 44px));
  max-height: min(62vh, 520px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 12;
  touch-action: pan-y;
  transition: opacity 0.25s, transform 0.35s var(--spring);
}
#log-panel.hidden { opacity: 0; pointer-events: none; transform: translateY(-10px); }
.journey-title {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--amber-dim);
  margin: 12px 0 6px;
}
.journey-title-inline {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--amber-dim);
}
.journey-daily-text { font-size: 11px; color: var(--text); margin-top: 4px; }
#pp-grid { display: flex; flex-wrap: wrap; gap: 3px; font-size: 15px; line-height: 1.3; }
.pp-flag { opacity: 0.18; filter: grayscale(0.9); cursor: default; }
.pp-flag.on { opacity: 1; filter: none; }
.log-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  padding: 5px 6px;
  border-radius: 6px;
  border-left: 2px solid transparent;
}
.log-row:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.log-row.gild-rare { border-left-color: var(--amber); }
.log-row.gild-dx { border-left-color: var(--green); }
.log-time { font-family: var(--mono); font-size: 9px; color: var(--text-dim); flex-shrink: 0; }
.log-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-dist { font-family: var(--mono); font-size: 9px; color: var(--text-dim); flex-shrink: 0; }
.log-row.gild-dx .log-dist { color: var(--green); }
.log-row.gild-rare .log-dist { color: var(--amber); }

/* new-country stamp */
#stamp {
  position: fixed;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%) rotate(-8deg) scale(0.6);
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  font-size: clamp(16px, 3.4vw, 26px);
  letter-spacing: 0.18em;
  color: var(--green);
  border: 3px solid var(--green);
  border-radius: 8px;
  padding: 10px 22px;
  background: rgba(4, 10, 8, 0.55);
  box-shadow: 0 0 40px rgba(124, 255, 178, 0.25), inset 0 0 24px rgba(124, 255, 178, 0.08);
}
#stamp.go { animation: stampin 1.9s cubic-bezier(0.22, 1.3, 0.36, 1); }
@keyframes stampin {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.7); }
  14% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(0.98); }
}

/* ---------- hints ---------- */
.hints {
  left: 22px;
  bottom: 26px;
  display: grid;
  gap: 4px;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.hints b { color: var(--amber-dim); font-weight: 600; }

.hud, .chip { touch-action: none; }

@media (pointer: coarse) {
  .hints { display: none; }
  .brand h1 { font-size: 18px; }
  .brand .tag { font-size: 9px; letter-spacing: 0.22em; }
  .telemetry { font-size: 9px; padding: 8px 10px; }
  .telemetry span { min-width: 9ch; }
}

/* narrow fine-pointer windows: hints would sit under the radio panel */
@media (max-width: 800px) {
  .hints { display: none; }
}

/* tighter chips when the action row gets crowded */
@media (max-width: 600px) {
  .chip { padding: 5px 9px; font-size: 10px; }
  .mode-group .chip { padding: 5px 8px; }
}

/* short viewports (landscape phones): dock the radio aside so the reticle
   stays visible and mid-screen dragging keeps working */
@media (max-height: 480px) {
  .radio {
    left: auto;
    right: 12px;
    bottom: 12px;
    transform: none;
    width: min(320px, 46vw);
    padding: 10px 14px;
  }
  .signal-wrap { display: none; }
  .station-name { font-size: 17px; margin-top: 5px; }
  .radio-actions { margin-top: 8px; }
  .brand .count { display: none; }
}

/* ---------- start overlay ---------- */
#start-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(4, 8, 18, 0.82) 0%, rgba(1, 3, 10, 0.96) 100%);
  transition: opacity 0.6s;
}
#start-overlay.hidden { opacity: 0; pointer-events: none; }

.start-card {
  text-align: center;
  padding: 40px 48px;
  max-width: 480px;
}
.start-logo { font-size: 44px; margin-bottom: 10px; }
.start-card h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--amber);
  text-shadow: 0 0 40px rgba(255, 201, 94, 0.4);
}
.start-sub {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}
#btn-start {
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--amber);
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(255, 201, 94, 0.35);
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
}
#btn-start:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 60px rgba(255, 201, 94, 0.55); }
#btn-start:disabled { opacity: 0.45; cursor: wait; transform: none; }
.start-hints { margin-top: 22px; font-size: 10px; letter-spacing: 0.1em; color: var(--text-dim); }
.start-note { margin-top: 8px; font-size: 10px; color: var(--amber-dim); }

/* ================= unified bands: radio / TV ================= */
:root { --tvblue: #7cc8ff; }

.bandpill {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 14;
}
.bandpill button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  background: transparent;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.bandpill button:hover { color: var(--text); }
.bandpill button.active { color: var(--amber); background: rgba(255, 201, 94, 0.14); }
.bandpill button[data-band="tv"].active { color: var(--tvblue); background: rgba(124, 200, 255, 0.14); }

/* TV frame lives inside the shared panel, hidden on the radio band */
.tv-frame {
  display: none;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}
#tv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
#snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
  opacity: 1;
}
.tv-osd {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--green);
  text-shadow: 0 0 8px rgba(124, 255, 178, 0.8);
  pointer-events: none;
}
#btn-size {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(124, 255, 178, 0.35);
  border-radius: 6px;
  color: var(--green);
  font-size: 12px;
  line-height: 1;
  padding: 3px 7px;
  cursor: pointer;
  margin-left: 8px;
}
#btn-size:hover { background: rgba(124, 255, 178, 0.15); }

/* TV band: panel docks right, frame appears, radio instruments yield */
#panel { transition: transform 0.65s var(--spring), opacity 0.45s, width 0.5s var(--spring); }
#panel.band-tv {
  left: auto;
  right: 22px;
  bottom: 22px;
  transform: none;
  transform-origin: 100% 100%;
  width: min(430px, calc(100vw - 28px));
}
#panel.band-tv .tv-frame { display: block; }
#panel.band-tv .dial-wrap,
#panel.band-tv .signal-wrap #vu,
#panel.band-tv .skywave { display: none; }
#panel.band-tv[data-size="s"] { width: min(300px, calc(100vw - 28px)); }
#panel.band-tv[data-size="l"] { width: min(760px, calc(100vw - 28px)); }
#panel.band-tv.traveling { transform: scale(0.52); opacity: 0.82; }

@media (max-height: 560px) {
  #panel.band-tv { width: min(340px, 48vw); right: 12px; bottom: 12px; }
  #panel.band-tv[data-size="l"] { width: min(430px, 54vw); }
}

/* ================= watch mode: the TV simulator ================= */
#veil {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(1, 3, 10, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
body.watch #veil { opacity: 1; }
body.watch .brand,
body.watch .telemetry,
body.watch .bandpill,
body.watch .hints,
body.watch #reticle,
body.watch #fav-panel,
body.watch #log-panel { opacity: 0; pointer-events: none; transition: opacity 0.4s; }

.crt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.55);
}
body.watch .crt { opacity: 1; }

#remote {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 10px 2px 2px;
  font-size: 12px;
}
body.watch #remote { display: flex; }
#remote button {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
#remote button:hover { background: rgba(124, 200, 255, 0.15); border-color: rgba(124, 200, 255, 0.4); }
#remote .rc-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim);
  text-align: center;
}
#rc-exit { margin-left: auto; }

body.watch #panel {
  left: 50% !important;
  right: auto !important;
  top: 50%;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(92vw, calc(82vh * 16 / 9)) !important;
  z-index: 30;
  background: rgba(6, 8, 12, 0.9);
}
body.watch #panel .radio-row-top,
body.watch #panel .station-name,
body.watch #panel .dial-wrap,
body.watch #panel .radio-row-meta,
body.watch #panel .signal-wrap,
body.watch #panel .radio-actions { display: none; }
body.watch #panel .tv-frame { margin-bottom: 0; }

/* radio band also steps aside during flights (bottom-center origin) */
#panel.traveling:not(.band-tv) {
  transform: translateX(-50%) scale(0.72);
  transform-origin: 50% 100%;
  opacity: 0.85;
}

/* watch mode input hygiene: the dark room swallows clicks/wheel; hidden globe stays put */
body.watch #veil { pointer-events: auto; }
body.watch #btn-size { display: none; }

/* ---------- top-row mute + reduced motion ---------- */
.mute-top {
  background: none;
  border: none;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 6px;
  opacity: 0.8;
}
.mute-top:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ret-ring, .led, #dial-strip, .station-name, .chip, #stamp, .mode-group .chip.scanning {
    animation: none !important;
    transition: none !important;
  }
  #grain, .crt { animation: none !important; }
  #panel, #panel.traveling, #panel.band-tv.traveling { transition: none; transform: none; }
  #panel.traveling:not(.band-tv) { transform: translateX(-50%); }
}
