[hidden] {
  display: none !important;
}

.entry-live-shell {
  min-height: 100svh;
}

.entry-live-stage,
.entry-live-panel,
.entry-live-panel [data-story-view] {
  overflow-anchor: none;
}

.entry-live-shell[data-story-stage="opening"] .entry-live-stage {
  align-items: center;
}

.entry-live-shell[data-story-stage="hook"] .entry-live-stage {
  align-items: start;
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.entry-live-shell[data-story-stage="hook"] .entry-live-panel {
  min-height: 0;
}

.signal-hook-view {
  min-height: 0;
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
  outline: 0;
}

.signal-hook-column {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}

.signal-hook-view.is-scripted .signal-beat {
  opacity: 0;
  transform: translateY(10px);
}

.signal-hook-view.is-scripted .signal-beat.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.signal-narration,
.signal-quote {
  max-width: 650px;
  color: #c9d5d3;
  font-size: clamp(1rem, 1.7vw, 1.14rem);
  font-weight: 360;
  line-height: 1.72;
}

.signal-narration {
  margin: 0 0 1rem;
}

.signal-quote {
  position: relative;
  margin: 1.35rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 1px solid rgba(117, 227, 209, 0.32);
}

.signal-quote::before {
  position: absolute;
  top: 0.25rem;
  left: -2px;
  width: 3px;
  height: 2rem;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(117, 227, 209, 0.5);
  content: "";
}

.signal-marker,
.signal-identity,
.signal-lost {
  font-family: var(--font-geist-mono), monospace;
  letter-spacing: 0.13em;
}

.signal-marker {
  display: inline-flex;
  margin: 1.4rem 0 0.65rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(117, 227, 209, 0.28);
  background: rgba(117, 227, 209, 0.06);
  color: var(--teal-bright);
  font-size: 0.58rem;
}

.signal-identity {
  margin: 2.3rem 0 1rem;
  color: var(--teal-bright);
  font-size: clamp(0.69rem, 1.3vw, 0.82rem);
}

.signal-status-card {
  width: 100%;
  margin: 0 0 2rem;
  border: 1px solid rgba(133, 220, 207, 0.17);
  background: rgba(2, 9, 10, 0.5);
  font-family: var(--font-geist-mono), monospace;
}

.signal-status-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(133, 220, 207, 0.1);
}

.signal-status-card div:last-child {
  border-bottom: 0;
}

.signal-status-card dt {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 450;
  letter-spacing: 0.08em;
}

.signal-status-card dd {
  width: 6px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(117, 227, 209, 0.6);
}

.signal-status-card .is-alert dt {
  color: #df987e;
}

.signal-status-card .is-alert dd {
  background: #df987e;
  box-shadow: 0 0 10px rgba(223, 152, 126, 0.55);
}

.is-breaking {
  color: #a6b3b1;
}

.signal-lost {
  margin: 2rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(223, 152, 126, 0.35);
  background: rgba(95, 62, 40, 0.14);
  color: #df987e;
  font-size: 0.65rem;
}

.return-route-panel {
  width: 100%;
  margin-top: 3.2rem;
  padding-top: clamp(2.4rem, 5vw, 4rem);
  border-top: 1px solid rgba(133, 220, 207, 0.18);
}

.return-route-panel h2 {
  margin: 0 0 1.7rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  font-weight: 410;
  letter-spacing: -0.03em;
}

.return-route-panel .route-form {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.return-route-panel .route-privacy {
  max-width: 650px;
  margin-top: 0.75rem;
}

.return-route-panel .preview-confirmation {
  outline: 0;
}

@media (max-width: 900px) {
  .entry-live-stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }
}

@media (max-width: 760px) {
  .entry-live-stage {
    padding-inline: 0.8rem;
  }

  .entry-live-shell[data-story-stage="opening"] .entry-live-stage {
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: safe center;
    padding-block: 1rem;
  }

  .entry-live-shell[data-story-stage="opening"] .node-rail {
    width: 100%;
    flex: 0 0 auto;
  }

  .entry-live-panel {
    width: 100%;
    min-height: 0;
  }

  .entry-live-shell[data-story-stage="opening"] .story-opening {
    min-height: 0;
    padding: clamp(1.45rem, 3.5vh, 2rem) 1.25rem;
  }

  .entry-live-shell[data-story-stage="opening"] .experience-label {
    margin-bottom: 0.9rem;
  }

  .entry-live-shell[data-story-stage="opening"] .signal-sigil {
    width: 74px;
    margin-bottom: 1rem;
  }

  .entry-live-shell[data-story-stage="opening"] .signal-meta {
    margin-bottom: 1.25rem;
  }

  .entry-live-shell[data-story-stage="opening"] .lead-copy {
    margin: 1rem 0 1.35rem;
    line-height: 1.58;
  }

  .entry-live-shell[data-story-stage="hook"] .entry-live-stage {
    display: block;
    padding-block: 1rem 2.5rem;
  }

  .signal-hook-view {
    min-height: 0;
    padding: 2.2rem 1.25rem 3.5rem;
  }

  .signal-status-card div {
    align-items: flex-start;
    gap: 0.8rem;
  }
}

@media (max-width: 440px) {
  .entry-live-shell .site-header {
    min-height: 66px;
  }

  .entry-live-shell[data-story-stage="opening"] .entry-live-stage {
    padding-block: 0.75rem;
  }

  .entry-live-shell[data-story-stage="opening"] .story-opening {
    padding-block: 1.25rem 1.45rem;
  }

  .entry-live-shell[data-story-stage="opening"] .signal-meta div {
    padding-block: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-hook-view.is-scripted .signal-beat,
  .signal-hook-view.is-scripted .signal-beat.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
