
:root {
  --ink: #eaf4f3;
  --muted: #88a09e;
  --dim: #506765;
  --teal: #75e3d1;
  --teal-bright: #9df8e8;
  --teal-dark: #153c39;
  --amber: #e2aa70;
  --amber-dark: #5f3e28;
  --line: rgba(133, 220, 207, 0.2);
  --panel: rgba(7, 18, 20, 0.78);
  --background: #03090b;
  --foreground: var(--ink);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.relay-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(circle at 54% 43%, rgba(38, 90, 83, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(48, 93, 103, 0.1), transparent 30%),
    linear-gradient(135deg, #061013 0%, #020607 48%, #061012 100%);
  opacity: 0;
  transition: opacity 800ms ease;
}

.relay-shell.is-mounted {
  opacity: 1;
}

.relay-shell::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(102, 168, 162, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 168, 162, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.star-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.7;
  background-image:
    radial-gradient(circle, rgba(221, 255, 249, 0.8) 0 0.7px, transparent 0.9px),
    radial-gradient(circle, rgba(135, 217, 211, 0.54) 0 0.6px, transparent 0.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 0 0.5px, transparent 0.8px);
  background-position: 12px 17px, 47px 66px, 83px 31px;
  background-size: 137px 137px, 181px 181px, 223px 223px;
  mask-image: radial-gradient(ellipse at center, black, transparent 79%);
}

.orbit-line {
  position: absolute;
  z-index: -1;
  width: 54vw;
  aspect-ratio: 1;
  border: 1px solid rgba(117, 227, 209, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-line::after {
  position: absolute;
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px var(--teal);
  content: "";
}

.orbit-line-one {
  top: -31vw;
  right: -17vw;
  transform: rotate(-24deg);
}

.orbit-line-one::after {
  bottom: 17%;
  left: 10%;
}

.orbit-line-two {
  bottom: -43vw;
  left: -21vw;
  width: 65vw;
  opacity: 0.55;
}

.orbit-line-two::after {
  top: 6%;
  right: 22%;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.site-header {
  min-height: 88px;
  border-bottom: 1px solid rgba(133, 220, 207, 0.1);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.28em;
  text-decoration: none;
}

.wordmark-symbol {
  position: relative;
  display: grid;
  width: 26px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(117, 227, 209, 0.45);
  border-radius: 50%;
}

.wordmark-symbol::before {
  position: absolute;
  width: 34px;
  height: 9px;
  border: 1px solid rgba(117, 227, 209, 0.36);
  border-radius: 50%;
  content: "";
  transform: rotate(-24deg);
}

.wordmark-symbol i {
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 12px var(--teal);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.sound-toggle {
  position: fixed;
  right: 1rem;
  right: max(1rem, env(safe-area-inset-right));
  bottom: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(117, 227, 209, 0.42);
  border-radius: 50%;
  background: rgba(4, 13, 15, 0.94);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.42);
  color: var(--teal-bright);
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sound-toggle[hidden] {
  display: none;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  border-color: var(--teal);
  background: rgba(15, 43, 42, 0.98);
  opacity: 1;
}

.sound-toggle:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.sound-toggle-icon {
  position: relative;
  width: 21px;
  height: 18px;
}

.sound-toggle-icon::before {
  position: absolute;
  top: 6px;
  left: 1px;
  width: 6px;
  height: 6px;
  border: 1px solid currentcolor;
  border-right: 0;
  content: "";
}

.sound-toggle-icon::after {
  position: absolute;
  top: 3px;
  left: 6px;
  width: 10px;
  height: 12px;
  border-right: 1px solid currentcolor;
  border-radius: 50%;
  content: "";
}

.sound-toggle[data-audio-muted="true"] .sound-toggle-icon {
  background: linear-gradient(
    45deg,
    transparent 46%,
    currentcolor 47%,
    currentcolor 53%,
    transparent 54%
  );
}

.silent-status,
.language-trigger,
.site-footer,
.node-rail,
.coordinate-rail,
.packet-label,
.eyebrow-row,
.signal-meta,
.scan-note,
.archive-card,
.connection-hold {
  font-family: var(--font-geist-mono), monospace;
}

.silent-status {
  color: var(--dim);
  font-size: 0.61rem;
  letter-spacing: 0.16em;
}

.language-picker {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.language-trigger:hover,
.language-trigger:focus-visible {
  color: var(--teal-bright);
}

.language-menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  z-index: 50;
  min-width: 170px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(4, 13, 15, 0.97);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
  max-height: min(420px, calc(100vh - 110px));
  overflow-y: auto;
}

.language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.language-menu button:hover,
.language-menu button[aria-selected="true"] {
  background: rgba(117, 227, 209, 0.08);
  color: var(--ink);
}

.language-menu small {
  color: var(--dim);
  font-family: var(--font-geist-mono), monospace;
}

.relay-stage {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(90px, 0.6fr) minmax(520px, 850px) minmax(90px, 0.6fr);
  align-items: center;
  width: min(1500px, 100%);
  min-height: 620px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 4.5rem);
}

.node-rail,
.coordinate-rail {
  align-self: stretch;
  color: var(--dim);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.node-rail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 1rem;
  transform: rotate(180deg);
}

.node-rail strong {
  color: #df987e;
  font-weight: 500;
}

.rail-signal {
  display: flex;
  gap: 3px;
  margin-top: auto;
  padding-bottom: 0.4rem;
}

.rail-signal i {
  width: 2px;
  height: 14px;
  background: var(--teal);
  opacity: 0.24;
}

.rail-signal i:nth-child(2) {
  height: 22px;
  opacity: 0.42;
}

.rail-signal i:nth-child(3) {
  height: 32px;
  opacity: 0.74;
}

.rail-signal i:nth-child(4) {
  height: 19px;
  opacity: 0.32;
}

.coordinate-rail {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  padding-block: 1rem;
}

.coordinate-rail i {
  width: 1px;
  height: 80px;
  margin-top: 0.8rem;
  background: linear-gradient(to bottom, var(--teal), transparent);
}

.transmission-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(117, 227, 209, 0.035), transparent 35%),
    var(--panel);
  box-shadow:
    0 40px 130px rgba(0, 0, 0, 0.45),
    inset 0 0 90px rgba(117, 227, 209, 0.025);
  backdrop-filter: blur(16px);
}

.transmission-panel::before,
.transmission-panel::after {
  position: absolute;
  width: 19px;
  height: 19px;
  border-color: rgba(157, 248, 232, 0.52);
  content: "";
  pointer-events: none;
}

.transmission-panel::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.transmission-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(133, 220, 207, 0.12);
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.18em;
}

.pulse-dot {
  width: 5px;
  aspect-ratio: 1;
  margin-right: 0.8rem;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 5px rgba(117, 227, 209, 0.06), 0 0 15px var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}

.packet-index {
  margin-left: auto;
  color: var(--dim);
}

.story-view {
  display: flex;
  min-height: 502px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(2.2rem, 5.5vw, 4.6rem) clamp(2rem, 7vw, 6.25rem);
  animation: view-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.story-opening {
  position: relative;
  align-items: center;
  text-align: center;
}

.story-opening::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 248, 232, 0.86), transparent);
  box-shadow: 0 0 9px rgba(117, 227, 209, 0.5);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.experience-label {
  margin: 0 0 1.35rem;
  color: var(--teal);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.54rem;
  letter-spacing: 0.18em;
}

.signal-sigil {
  position: relative;
  display: grid;
  width: 104px;
  aspect-ratio: 1;
  margin-bottom: 2.1rem;
  place-items: center;
}

.sigil-ring {
  position: absolute;
  border: 1px solid rgba(117, 227, 209, 0.33);
  border-radius: 50%;
}

.sigil-ring-outer {
  inset: 0;
  border-style: dashed;
  animation: rotate 28s linear infinite;
}

.sigil-ring-inner {
  inset: 19px;
  box-shadow: inset 0 0 18px rgba(117, 227, 209, 0.07);
}

.sigil-core {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 20px 5px rgba(117, 227, 209, 0.3);
}

.sigil-sweep {
  position: absolute;
  inset: 9px;
  border-top: 1px solid var(--teal);
  border-radius: 50%;
  animation: rotate 4.8s linear infinite;
  filter: drop-shadow(0 0 5px var(--teal));
}

.transmission-panel.is-stabilizing {
  animation: entry-panel-stabilize 900ms ease-out both;
}

.transmission-panel.is-stabilizing .story-opening::after {
  animation: entry-scan 720ms ease-in-out 70ms both;
}

.transmission-panel.is-stabilizing .story-opening > :not(.signal-sigil) {
  animation: entry-sharpen 900ms ease-out both;
}

.transmission-panel.is-stabilizing .sigil-ring-outer {
  animation: entry-lock-outer 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.transmission-panel.is-stabilizing .sigil-ring-inner {
  animation: entry-lock-inner 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.transmission-panel.is-stabilizing .sigil-sweep {
  animation: entry-lock-sweep 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.transmission-panel.is-stabilizing .sigil-core {
  animation: entry-core-lock 900ms ease-out both;
}

.signal-meta {
  display: grid;
  width: 100%;
  max-width: 590px;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 2.4rem;
  border-top: 1px solid rgba(133, 220, 207, 0.12);
  border-bottom: 1px solid rgba(133, 220, 207, 0.12);
}

.signal-meta div {
  padding: 0.85rem 1rem;
}

.signal-meta div + div {
  border-left: 1px solid rgba(133, 220, 207, 0.12);
}

.signal-meta dt {
  margin-bottom: 0.35rem;
  color: var(--dim);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
}

.signal-meta dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.story-view h1 {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3.6vw, 2.55rem);
  font-weight: 410;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.story-opening h1 {
  color: var(--teal-bright);
  font-family: var(--font-geist-mono), monospace;
  font-size: clamp(0.8rem, 1.5vw, 0.98rem);
  font-weight: 450;
  letter-spacing: 0.2em;
}

.lead-copy {
  max-width: 580px;
  margin: 1.35rem 0 2rem;
  color: #9db0ae;
  font-size: clamp(0.96rem, 1.6vw, 1.08rem);
  line-height: 1.72;
}

.experience-context {
  max-width: 590px;
  margin: -0.55rem 0 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(133, 220, 207, 0.12);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.noscript-note {
  max-width: 560px;
  margin: 1rem 0 0;
  color: #df987e;
  font-size: 0.72rem;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: min(100%, 290px);
  min-height: 50px;
  padding: 0.85rem 0.95rem 0.85rem 1.2rem;
  border: 1px solid rgba(117, 227, 209, 0.42);
  background: rgba(117, 227, 209, 0.08);
  color: var(--teal-bright);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 510;
  letter-spacing: 0.035em;
  text-align: left;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  border-color: var(--teal);
  background: rgba(117, 227, 209, 0.14);
  transform: translateY(-1px);
}

.action-arrow {
  display: grid;
  width: 28px;
  aspect-ratio: 1;
  margin-left: 1rem;
  place-items: center;
  border-left: 1px solid rgba(117, 227, 209, 0.2);
  font-size: 0.86rem;
}

.scan-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.15rem 0 0;
  color: var(--dim);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
}

.scan-note span {
  width: 28px;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: shimmer 1.8s ease-in-out infinite;
}

.text-packet,
.archive-view,
.route-view {
  justify-content: center;
}

.packet-label {
  margin: 0 0 1.8rem;
  color: var(--teal);
  font-size: 0.59rem;
  letter-spacing: 0.18em;
}

.message-copy {
  position: relative;
  max-width: 640px;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(117, 227, 209, 0.27);
}

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

.message-copy p {
  margin: 0 0 1.05rem;
  color: #c9d5d3;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 360;
  line-height: 1.65;
}

.message-copy p:last-child {
  margin-bottom: 0;
}

.decision-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.4rem;
}

.text-action {
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid rgba(136, 160, 158, 0.3);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
}

.text-action:hover,
.text-action:focus-visible {
  color: var(--ink);
  border-color: var(--muted);
}

.archive-view h1 {
  margin-bottom: 2rem;
}

.archive-card {
  width: 100%;
  max-width: 620px;
  border: 1px solid rgba(133, 220, 207, 0.16);
  background: rgba(2, 9, 10, 0.52);
}

.archive-card div {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 1fr;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(133, 220, 207, 0.1);
  color: var(--dim);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

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

.archive-card strong {
  color: var(--muted);
  font-weight: 500;
}

.archive-card .is-active strong {
  color: var(--teal-bright);
}

.anomaly-copy {
  max-width: 620px;
  margin: 1.35rem 0 2rem;
  color: #9db0ae;
  font-size: 0.92rem;
  line-height: 1.65;
}

.route-view h1 {
  margin-bottom: 1.35rem;
}

.route-copy {
  max-width: 650px;
  color: #b7c7c5;
}

.route-copy p {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  line-height: 1.62;
}

.route-explainer {
  width: 100%;
  max-width: 650px;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(117, 227, 209, 0.2);
  background: rgba(117, 227, 209, 0.04);
}

.route-explainer-label {
  margin: 0 0 0.6rem;
  color: var(--teal);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.54rem;
  letter-spacing: 0.15em;
}

.route-explainer h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 430;
}

.route-explainer-intro {
  margin: 0.75rem 0 1.15rem;
  color: #b4c4c2;
  font-size: 0.88rem;
  line-height: 1.7;
}

.route-story {
  position: relative;
  margin-top: 0.9rem;
  padding: 1.05rem 1.1rem 0.2rem 1.25rem;
  border-left: 1px solid rgba(117, 227, 209, 0.3);
  background: rgba(2, 9, 10, 0.42);
}

.route-story::before {
  position: absolute;
  top: 0;
  left: -2px;
  width: 3px;
  height: 38px;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(117, 227, 209, 0.42);
  content: "";
}

.route-story p {
  margin: 0 0 0.9rem;
  color: #bdccca;
  font-size: 0.8rem;
  line-height: 1.72;
}

.route-story p:first-child {
  color: #d4dfdd;
}

.route-hook {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(117, 227, 209, 0.18);
  background: rgba(117, 227, 209, 0.055);
  color: var(--teal-bright);
  font-size: 0.78rem;
  line-height: 1.62;
}

.route-form {
  width: 100%;
  max-width: 650px;
  margin-top: 1.7rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(133, 220, 207, 0.16);
}

.route-form label {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--teal);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.57rem;
  letter-spacing: 0.16em;
}

.route-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(117, 227, 209, 0.34);
  background: rgba(3, 12, 13, 0.76);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.route-input-row:focus-within {
  border-color: rgba(157, 248, 232, 0.72);
  box-shadow: 0 0 0 3px rgba(117, 227, 209, 0.06);
}

.route-input-row input {
  min-width: 0;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.79rem;
}

.route-input-row input::placeholder {
  color: #4d6462;
}

.route-input-row button {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 54px;
  padding: 0.8rem 1rem 0.8rem 1.2rem;
  border: 0;
  border-left: 1px solid rgba(117, 227, 209, 0.22);
  background: rgba(117, 227, 209, 0.1);
  color: var(--teal-bright);
  cursor: pointer;
  font-size: 0.72rem;
}

.route-input-row button:hover,
.route-input-row button:focus-visible {
  background: rgba(117, 227, 209, 0.16);
}

.route-error,
.route-privacy {
  margin: 0.65rem 0 0;
  font-size: 0.67rem;
  line-height: 1.5;
}

.route-error {
  min-height: 1em;
  color: #df987e;
}

.route-privacy {
  color: var(--dim);
}

.route-privacy a {
  color: var(--muted);
  text-underline-offset: 0.2em;
}

.route-privacy a:hover,
.route-privacy a:focus-visible {
  color: var(--teal-bright);
}

.preview-confirmation {
  width: 100%;
  max-width: 650px;
  margin-top: 1.8rem;
  padding: 1.5rem;
  border: 1px solid rgba(117, 227, 209, 0.26);
  background: rgba(117, 227, 209, 0.055);
}

.preview-confirmation > span {
  color: var(--teal);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
}

.preview-confirmation h2 {
  margin: 0.8rem 0 0.55rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 430;
}

.preview-confirmation p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

.final-packet .message-copy p:first-child {
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.connection-hold {
  width: 100%;
  max-width: 640px;
  margin: 2rem 0 1.5rem;
  color: #c9826f;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.connection-hold div {
  height: 2px;
  margin-top: 0.65rem;
  overflow: hidden;
  background: rgba(201, 130, 111, 0.15);
}

.connection-hold i {
  display: block;
  width: 74%;
  height: 100%;
  background: #c9826f;
  box-shadow: 0 0 12px rgba(201, 130, 111, 0.4);
}

.site-footer {
  min-height: 66px;
  border-top: 1px solid rgba(133, 220, 207, 0.08);
  color: var(--dim);
  font-size: 0.53rem;
  letter-spacing: 0.13em;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--dim);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--muted);
}

.legal-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 12%, rgba(38, 90, 83, 0.16), transparent 32%),
    linear-gradient(135deg, #061013 0%, #020607 55%, #061012 100%);
  opacity: 0;
  transition: opacity 500ms ease;
}

.legal-shell.is-mounted {
  opacity: 1;
}

.legal-language select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  outline: 0;
  background: rgba(5, 15, 17, 0.82);
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.legal-language-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 0.7rem;
}

.legal-language-links a {
  color: var(--dim);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.legal-language-links a:hover,
.legal-language-links a:focus-visible,
.legal-language-links a[aria-current="page"] {
  color: var(--teal-bright);
}

.legal-document {
  width: min(780px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6.5rem) 0 7rem;
}

.legal-back {
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--teal-bright);
}

.legal-draft {
  display: inline-block;
  margin: 3.5rem 0 1.1rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(223, 152, 126, 0.28);
  color: #df987e;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.56rem;
  letter-spacing: 0.13em;
}

.legal-document > h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 6vw, 4.2rem);
  font-weight: 390;
  letter-spacing: -0.055em;
}

.legal-updated {
  margin: 0.75rem 0 3.5rem;
  color: var(--dim);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
}

.legal-sections {
  display: grid;
  gap: 2.2rem;
}

.legal-sections section {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(133, 220, 207, 0.14);
}

.legal-sections h2 {
  margin: 0 0 0.85rem;
  color: var(--teal);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.legal-sections p {
  margin: 0 0 0.7rem;
  color: #a9bbb8;
  font-size: 0.94rem;
  line-height: 1.75;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.25; transform: scaleX(0.55); }
  50% { opacity: 0.9; transform: scaleX(1); }
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes entry-panel-stabilize {
  0% { filter: contrast(0.94) brightness(0.94); }
  18% {
    filter: contrast(1.08) brightness(1.08);
    box-shadow:
      0 40px 130px rgba(0, 0, 0, 0.45),
      inset 0 0 105px rgba(117, 227, 209, 0.09);
  }
  100% { filter: contrast(1) brightness(1); }
}

@keyframes entry-sharpen {
  0% { filter: blur(0.45px); opacity: 0.82; }
  18% { filter: blur(0); opacity: 1; }
  100% { filter: none; opacity: 1; }
}

@keyframes entry-lock-outer {
  0% { transform: rotate(-17deg) scale(1.02); opacity: 0.62; }
  18% { transform: rotate(0) scale(1); opacity: 1; border-color: rgba(157, 248, 232, 0.78); }
  100% { transform: rotate(0); opacity: 0.72; }
}

@keyframes entry-lock-inner {
  0% { transform: rotate(13deg) scale(0.96); opacity: 0.64; }
  18% { transform: rotate(0) scale(1); opacity: 1; }
  100% { transform: rotate(0); opacity: 0.8; }
}

@keyframes entry-lock-sweep {
  0% { transform: rotate(-28deg); opacity: 0.46; }
  18% { transform: rotate(0); opacity: 1; }
  38%, 100% { transform: rotate(0); opacity: 0; }
}

@keyframes entry-core-lock {
  0% { transform: scale(0.82); box-shadow: 0 0 12px 2px rgba(117, 227, 209, 0.24); }
  18% {
    transform: scale(1.34);
    background: #d9fff8;
    box-shadow: 0 0 34px 12px rgba(117, 227, 209, 0.52);
  }
  42%, 100% {
    transform: scale(1);
    background: var(--teal-bright);
    box-shadow: 0 0 20px 5px rgba(117, 227, 209, 0.3);
  }
}

@keyframes entry-scan {
  0% { top: 2%; opacity: 0; }
  12% { opacity: 0.7; }
  82% { opacity: 0.5; }
  100% { top: 98%; opacity: 0; }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
  }

  .silent-status,
  .coordinate-rail {
    display: none;
  }

  .relay-stage {
    display: block;
    min-height: auto;
    padding-block: 1.35rem;
  }

  .node-rail {
    flex-direction: row;
    align-items: center;
    height: auto;
    padding: 0 0 0.8rem;
    writing-mode: initial;
    transform: none;
  }

  .rail-signal {
    align-items: flex-end;
    margin: 0 0 0 auto;
    padding: 0;
  }

  .transmission-panel {
    min-height: calc(100svh - 190px);
  }

  .story-view {
    min-height: calc(100svh - 248px);
    padding: 2rem 1.35rem;
  }

  .route-view {
    padding-block: 2.4rem;
  }

  .eyebrow-row {
    padding-inline: 1.25rem;
  }

  .signal-sigil {
    width: 82px;
    margin-bottom: 1.4rem;
  }

  .signal-meta {
    grid-template-columns: 1fr;
    margin-bottom: 1.7rem;
  }

  .signal-meta div + div {
    border-top: 1px solid rgba(133, 220, 207, 0.12);
    border-left: 0;
  }

  .decision-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .primary-action {
    width: 100%;
  }

  .text-action {
    align-self: flex-start;
  }

  .archive-card div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .route-input-row {
    grid-template-columns: 1fr;
  }

  .route-input-row input {
    font-size: 1rem;
  }

  .route-input-row button {
    justify-content: space-between;
    border-top: 1px solid rgba(117, 227, 209, 0.22);
    border-left: 0;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-block: 1rem;
  }

  .route-story {
    padding-inline: 1rem 0.85rem;
  }
}

@media (max-width: 440px) {
  .wordmark {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }

  .wordmark-symbol {
    width: 22px;
  }

  .language-menu {
    position: fixed;
    top: 65px;
    right: 1rem;
  }

  .site-footer > span {
    width: 100%;
  }

  .route-explainer {
    padding: 1rem;
  }

  .legal-shell .site-header {
    align-items: flex-start;
    min-height: 98px;
    padding-block: 1rem;
  }

  .legal-language-links {
    max-width: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .transmission-panel.is-stabilizing {
    animation: none !important;
    filter: contrast(1.04);
  }

  .transmission-panel.is-stabilizing .story-opening::after {
    display: none;
  }

  .transmission-panel.is-stabilizing .sigil-ring-outer,
  .transmission-panel.is-stabilizing .sigil-ring-inner,
  .transmission-panel.is-stabilizing .sigil-sweep {
    animation: none !important;
    transform: none;
  }

  .transmission-panel.is-stabilizing .sigil-core {
    animation: none !important;
    box-shadow: 0 0 27px 8px rgba(117, 227, 209, 0.42);
  }
}

.relay-shell,
.legal-shell,
.status-shell,
.terminal-shell,
.admin-shell {
  --font-geist-sans: "Segoe UI", Inter, Arial, Helvetica, sans-serif;
  --font-geist-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-family: var(--font-geist-sans);
}

.admin-subtitle {
  max-width: 620px;
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.language-trigger {
  min-height: 38px;
  padding: 0.55rem 1.8rem 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(4, 13, 15, 0.72);
}

a.primary-action {
  text-decoration: none;
}

.status-shell,
.terminal-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 6rem 1.25rem;
  background:
    radial-gradient(ellipse at 15% 12%, rgba(20, 78, 81, 0.25), transparent 46%),
    radial-gradient(ellipse at 88% 100%, rgba(45, 68, 61, 0.2), transparent 48%),
    #03090b;
}

.status-wordmark {
  position: absolute;
  top: 2.2rem;
  left: clamp(1.25rem, 4vw, 4.5rem);
}

.status-panel,
.terminal-card {
  position: relative;
  width: min(720px, 100%);
  padding: clamp(2rem, 6vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(117, 227, 209, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(28, 72, 74, 0.2), transparent 46%),
    rgba(7, 22, 25, 0.94);
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.45);
  transition: border-color 240ms ease, box-shadow 240ms ease, opacity 240ms ease;
}

.status-panel::before,
.terminal-card::before {
  position: absolute;
  top: -1px;
  left: clamp(2rem, 6vw, 4.5rem);
  width: clamp(64px, 10vw, 112px);
  height: 2px;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(117, 227, 209, 0.42);
  content: "";
}

.status-panel h1,
.terminal-card h1 {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 390;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.status-panel > p:not(.packet-label),
.terminal-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.status-panel .primary-action {
  margin-top: 0.6rem;
}

.terminal-shell {
  display: block;
  padding: 0;
}

.terminal-card {
  margin: clamp(3rem, 8vw, 7rem) auto;
}

.terminal-node {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--dim);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.terminal-node::before {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(117, 227, 209, 0.42);
  content: "";
}

.decision-form {
  display: grid;
  gap: 0.8rem;
}

.decision-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.decision-option input {
  position: absolute;
  opacity: 0;
}

.decision-option > span {
  display: block;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(133, 220, 207, 0.16);
  background: rgba(3, 10, 12, 0.5);
  transition: border-color 180ms ease, background 180ms ease;
}

.decision-option input:focus-visible + span,
.decision-option input:checked + span {
  border-color: var(--teal);
  background: rgba(117, 227, 209, 0.09);
}

.decision-option strong,
.decision-option small {
  display: block;
}

.decision-option strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 480;
}

.decision-option small {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.decision-form .primary-action {
  margin-top: 1rem;
}

.terminal-result {
  padding: 1.4rem;
  border-left: 2px solid var(--teal);
  background: rgba(117, 227, 209, 0.055);
}

.terminal-result p {
  margin: 0;
  color: #cad7d5;
  line-height: 1.7;
}

.terminal-result--accepted {
  border-left-color: var(--teal);
}

.terminal-result--locked {
  border-left-color: var(--amber);
  background: rgba(226, 170, 112, 0.065);
}

.terminal-card--locked::before {
  background: var(--amber);
  box-shadow: 0 0 18px rgba(226, 170, 112, 0.35);
}

.terminal-card--locked .packet-label {
  color: var(--amber);
}

.terminal-card--locked .terminal-result p {
  color: #d8c8b8;
}

.direct-choice-screen {
  display: none;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: var(--teal-bright);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.direct-choice-screen p {
  margin: 0;
}

.has-direct-choice .direct-choice-screen {
  display: flex;
}

.has-direct-choice .decision-entry {
  display: none;
}

.terminal-close-action {
  display: flex;
  margin-top: 1.35rem;
}

.terminal-close-hint {
  margin: 1.35rem 0 0 !important;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--dim);
  background: rgba(1, 6, 8, 0.46);
  color: var(--muted) !important;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.65rem !important;
  letter-spacing: 0.06em;
}

[data-terminal-close][hidden],
[data-terminal-close-hint][hidden] {
  display: none !important;
}

.primary-action:disabled {
  cursor: progress;
  opacity: 0.58;
  transform: none;
}

.terminal-disconnecting [data-terminal-frame] {
  opacity: 0.7;
}

.terminal-disconnected [data-terminal-frame] {
  border-color: rgba(80, 103, 101, 0.28);
  box-shadow: none;
}

.terminal-disconnected [data-terminal-frame]::before {
  background: var(--dim);
  box-shadow: none;
}

.private-terminal-card,
.story-terminal-card {
  width: min(880px, calc(100% - 2.5rem));
}

.terminal-section {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(133, 220, 207, 0.16);
}

.terminal-section h2,
.terminal-setting-form > label,
.terminal-access summary {
  color: var(--teal);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.node-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 1rem 0 0;
  background: rgba(133, 220, 207, 0.12);
  border: 1px solid rgba(133, 220, 207, 0.12);
}

.node-overview div {
  min-width: 0;
  padding: 1rem 1.1rem;
  background: rgba(3, 10, 12, 0.82);
}

.node-overview dt {
  margin-bottom: 0.45rem;
  color: var(--dim);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.52rem;
  letter-spacing: 0.13em;
}

.node-overview dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #cedbd9;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.76rem;
  line-height: 1.5;
}

.terminal-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.terminal-setting-form > label {
  display: block;
  margin-bottom: 0.65rem;
}

.terminal-setting-row {
  display: flex;
  border: 1px solid rgba(117, 227, 209, 0.26);
  background: rgba(3, 10, 12, 0.68);
}

.terminal-setting-row input,
.terminal-setting-row select {
  min-width: 0;
  min-height: 46px;
  flex: 1 1 auto;
  padding: 0.75rem 0.85rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 0.72rem var(--font-geist-mono), monospace;
}

.terminal-setting-row select option {
  background: #071214;
  color: var(--ink);
}

.terminal-setting-action {
  flex: 0 0 auto;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-left: 1px solid rgba(117, 227, 209, 0.2);
  background: rgba(117, 227, 209, 0.09);
  color: var(--teal-bright);
  cursor: pointer;
  font-size: 0.68rem;
}

.terminal-setting-form > p {
  margin: 0.55rem 0 0;
  color: var(--dim);
  font-size: 0.66rem;
  line-height: 1.5;
}

.terminal-locale-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 2px solid #d7b48a;
  background: rgba(40, 40, 33, 0.55);
  color: #cdbda8;
  font-size: 0.76rem;
  line-height: 1.6;
}

.terminal-language-form {
  margin-top: 1.35rem;
}

.terminal-access {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(133, 220, 207, 0.12);
}

.terminal-access summary {
  cursor: pointer;
  list-style-position: outside;
}

.terminal-access > p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.manage-actions {
  display: grid;
  gap: 1.6rem;
}

.delete-form {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(223, 152, 126, 0.18);
}

.delete-form p,
.delete-form label {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.delete-form label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.delete-form input {
  margin-top: 0.25rem;
  accent-color: var(--teal);
}

.delete-form .danger {
  color: #df987e;
}

.admin-shell {
  min-height: 100svh;
  padding: clamp(1.4rem, 4vw, 4rem);
  background: #050a0c;
  color: var(--ink);
}

.admin-login-shell {
  display: grid;
  place-items: center;
}

.admin-login-card {
  width: min(440px, 100%);
  padding: clamp(1.8rem, 5vw, 3rem);
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-login-card .packet-label {
  margin-top: 3rem;
}

.admin-login-card h1,
.admin-header h1,
.world-shell h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 410;
}

.admin-setup-copy {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.admin-login-form,
.message-card form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.admin-login-form label,
.message-card label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.admin-login-form input,
.message-card input,
.message-card textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(133, 220, 207, 0.2);
  outline: 0;
  background: rgba(2, 8, 9, 0.7);
  color: var(--ink);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.78rem;
}

.message-card textarea {
  resize: vertical;
  line-height: 1.55;
}

.admin-login-form input:focus,
.message-card input:focus,
.message-card textarea:focus {
  border-color: var(--teal);
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.admin-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.admin-counts div {
  min-width: 110px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(133, 220, 207, 0.14);
  background: rgba(117, 227, 209, 0.03);
}

.admin-counts span,
.admin-counts strong {
  display: block;
}

.admin-counts span {
  color: var(--dim);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.56rem;
  text-transform: uppercase;
}

.admin-counts strong {
  margin-top: 0.2rem;
  color: var(--teal);
  font-size: 1.4rem;
  font-weight: 420;
}

.message-list {
  display: grid;
  gap: 1rem;
}

.player-actions {
  margin: 0 0 2rem;
  padding: 1.2rem;
  border: 1px solid rgba(223, 152, 126, 0.22);
  background: rgba(223, 152, 126, 0.035);
}

.player-actions h2 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 480;
}

.player-actions article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(223, 152, 126, 0.12);
}

.player-actions strong,
.player-actions span {
  display: block;
}

.player-actions span,
.player-actions label {
  color: var(--muted);
  font-size: 0.7rem;
}

.player-actions form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.player-actions button {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--teal);
  cursor: pointer;
}

.player-actions .danger {
  color: #df987e;
  border-color: rgba(223, 152, 126, 0.3);
}

.message-card {
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(133, 220, 207, 0.13);
  background: rgba(9, 18, 20, 0.72);
}

.message-card > header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--dim);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.6rem;
}

.message-card a {
  color: var(--teal);
}

.status-chip {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid currentColor;
  color: var(--muted);
  text-transform: uppercase;
}

.status-draft .status-chip { color: var(--teal); }
.status-failed .status-chip { color: #df987e; }
.status-sent .status-chip { color: #7db994; }

.message-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.message-actions button {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
}

.message-actions .approve {
  border-color: rgba(117, 227, 209, 0.4);
  background: rgba(117, 227, 209, 0.08);
  color: var(--teal-bright);
}

.message-actions .danger {
  color: #df987e;
}

.admin-error,
.admin-notice {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(223, 152, 126, 0.25);
  color: #df987e;
  font-size: 0.75rem;
}

.admin-notice {
  border-color: rgba(117, 227, 209, 0.25);
  color: var(--teal);
}

.world-shell {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.world-shell .packet-label {
  margin-top: 4rem;
}

.world-meta {
  color: var(--muted);
}

.world-shell pre {
  overflow: auto;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: #020607;
  color: #bcd0cd;
  font-size: 0.76rem;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .admin-header,
  .message-card > header,
  .player-actions article,
  .player-actions form {
    align-items: flex-start;
    flex-direction: column;
  }

  .terminal-node {
    display: none;
  }

  .private-terminal-card,
  .story-terminal-card {
    width: calc(100% - 1.5rem);
    margin-block: 2rem;
    padding: 1.35rem;
  }

  .node-overview,
  .terminal-settings {
    grid-template-columns: 1fr;
  }

  .terminal-setting-row {
    align-items: stretch;
    flex-direction: column;
  }

  .terminal-setting-action {
    min-height: 42px;
    border-top: 1px solid rgba(117, 227, 209, 0.2);
    border-left: 0;
  }
}
