/* ============================================================
   transmissions — view: constellation
   Full-bleed breakout. The sky is the canvas; the chrome is a
   floating header, a hint line, and the glass popover card.
   Layers on base.css. Owned by view: signals (constellation).
   ============================================================ */

/* ---------------------------------------------------------- */
/* 1 · The breakout stage                                      */
/* ---------------------------------------------------------- */

.con-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.con-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.con-canvas:active {
  cursor: grabbing;
}

.con-canvas:focus-visible {
  outline: 2px solid var(--accent-70);
  outline-offset: -4px;
  border-radius: var(--r-xl);
}

/* ---------------------------------------------------------- */
/* 2 · Floating header                                         */
/* ---------------------------------------------------------- */

.con-head {
  position: absolute;
  top: calc(var(--topbar-h) + var(--safe-top) + var(--s-4));
  left: calc(var(--stage-pad-x) + var(--safe-left));
  right: calc(var(--stage-pad-x) + var(--safe-right));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  pointer-events: none;
}

.con-head > * {
  pointer-events: auto;
}

.con-eyebrow {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.con-stats {
  max-width: 30ch;
  line-height: 1.4;
  color: var(--fg-muted);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.con-stats b {
  font-weight: 600;
  color: var(--fg);
}

.con-roster-link svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.con-roster-link {
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
  backdrop-filter: blur(var(--glass-blur-soft));
  background: var(--pane-soft);
}

/* ---------------------------------------------------------- */
/* 3 · Status overlay (charting / dead air)                    */
/* ---------------------------------------------------------- */

.con-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  text-align: center;
  padding: var(--s-6);
  pointer-events: none;
}

.con-status > * {
  pointer-events: auto;
}

.con-status[hidden] {
  display: none !important;
}

.con-status-star {
  width: 30px;
  height: 44px;
  color: var(--accent-45);
  filter: drop-shadow(0 0 14px rgba(196, 181, 253, 0.3));
}

.con-status-star svg {
  width: 100%;
  height: 100%;
}

.con-status .micro {
  color: var(--fg-faint);
}

.con-status-t {
  font-size: var(--fs-lede);
  font-weight: 600;
  letter-spacing: var(--tracking-title);
  color: var(--fg-muted);
}

.con-status-sub {
  font-size: var(--fs-small);
  color: var(--fg-dim);
  max-width: 36ch;
}

/* ---------------------------------------------------------- */
/* 4 · Hint line                                               */
/* ---------------------------------------------------------- */

.con-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--dock-h) + var(--dock-gap) + var(--safe-bottom) + var(--s-4));
  text-align: center;
  color: var(--fg-ghost);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out) 0.4s;
  pointer-events: none;
}

.con-hint.is-lit {
  opacity: 1;
}

/* ---------------------------------------------------------- */
/* 5 · The glass popover mini-card                             */
/* ---------------------------------------------------------- */

.con-pop {
  position: fixed;
  z-index: 5;
  width: min(300px, calc(100vw - 24px));
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-radius: var(--r-l);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  opacity: 0;
  transform: scale(0.9) translateY(6px);
  transition: opacity 0.24s var(--ease-out), transform 0.3s var(--ease-glide);
}

.con-pop.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.con-pop-x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 38px;
  height: 38px;
  color: var(--fg-dim);
}

.con-pop-x svg {
  width: 15px;
  height: 15px;
}

.con-pop-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-right: var(--s-7);
  margin-bottom: var(--s-3);
}

.con-pop-id {
  min-width: 0;
}

.con-pop-name {
  font-size: var(--fs-lede);
  font-weight: 600;
  letter-spacing: var(--tracking-title);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.con-pop-id .mini-handle {
  display: flex;
  align-items: center;
  gap: 7px;
}

.con-pop-onair {
  width: 6px;
  height: 6px;
  flex: none;
}

.con-pop-stats {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

.con-pop-pull {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--accent-70);
}

.con-pop-status {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--fg-dim);
  margin-bottom: var(--s-3);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.con-pop-status[hidden] {
  display: none !important;
}

.con-pop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.con-pop-visit {
  flex: 1 1 100%;
}

.con-pop-crew,
.con-pop-buzz,
.con-pop-card {
  flex: 1 1 0;
  min-width: 0;
}

.con-pop-crew[data-state='pending'],
.con-pop-crew[data-state='crew'] {
  opacity: 0.55;
  pointer-events: none;
}

.con-pop-crew[data-state='crew'] {
  color: var(--accent);
}

/* ---------------------------------------------------------- */
/* 6 · Desktop refinements                                     */
/* ---------------------------------------------------------- */

@media (min-width: 720px) {
  .con-head {
    top: calc(var(--topbar-h) + var(--safe-top) + var(--s-6));
  }

  .con-stats {
    max-width: 40ch;
  }

  .con-pop {
    width: 320px;
  }
}

/* ---------------------------------------------------------- */
/* 7 · Reduced motion                                          */
/* ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .con-pop {
    transform: none;
    transition: none;
    opacity: 1;
  }

  .con-hint {
    opacity: 1;
    transition: none;
  }
}
