@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap");

:root {
  --bg: #090b0e;
  --panel: #101318;
  --panel2: #15191e;
  --border: #242930;
  --text: #f2f3f0;
  --muted: #838b91;
  --accent: #d8ff69;
  --red: #f47a75;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
.hidden {
  display: none !important;
}
.accent {
  color: var(--accent) !important;
}
.eyebrow,
.sidebar-label,
.version,
.panel-heading,
.metric > span,
.metric small,
.status,
.live-pill,
.art-label,
.feed-filter,
footer,
.control-status,
.panel-note {
  font-family: "Space Mono", monospace;
  letter-spacing: 0.7px;
}

.app {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--border);
  padding: 34px 21px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 12px;
}
.brand-symbol {
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -2px;
}
.brand-symbol span {
  color: var(--accent);
}
.brand small {
  font:
    9px "Space Mono",
    monospace;
  color: var(--muted);
  letter-spacing: 1px;
}
.sidebar-label {
  margin: 65px 0 16px 12px;
  color: #586167;
  font-size: 10px;
}
.navigation {
  display: grid;
  gap: 6px;
}
.nav-item {
  width: 100%;
  background: transparent;
  color: #9da5a8;
  border: 0;
  text-align: left;
  padding: 14px;
  border-radius: 7px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.nav-item span {
  font-size: 13px;
}
.nav-item.active,
.nav-item:hover {
  background: #1c2420;
  color: var(--accent);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 0 12px;
}
.connection {
  font:
    10px "Space Mono",
    monospace;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 9px;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px #d8ff6970;
}
.sidebar-bottom p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.version {
  color: #566067;
  font-size: 9px;
}

.main {
  min-width: 0;
}
.topbar {
  padding: 31px 38px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  font:
    10px "Space Mono",
    monospace;
  color: var(--accent);
  letter-spacing: 1px;
}
.topbar h1 {
  margin: 7px 0 0;
  font-size: 27px;
  letter-spacing: -0.8px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.status {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.outline-btn {
  background: transparent;
  border: 1px solid #384039;
  color: var(--text);
  padding: 11px 16px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}
.outline-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.primary-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #10150b;
  padding: 13px 18px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.primary-btn:hover {
  background: #c5ed51;
}
.primary-btn span {
  margin-left: 22px;
}

.hero {
  margin: 0 38px;
  background: radial-gradient(
    circle at 85% 55%,
    #202e26 0,
    #151b1c 37%,
    #111518 70%
  );
  border: 1px solid #28322c;
  border-radius: 10px;
  min-height: 290px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  overflow: hidden;
}
.hero-content {
  padding: 38px 36px;
  position: relative;
  z-index: 2;
}
.hero h2 {
  font-size: clamp(24px, 3vw, 43px);
  line-height: 1.15;
  letter-spacing: -1.8px;
  margin: 20px 0 12px;
  font-weight: 800;
}
.hero h2 em {
  color: var(--accent);
  font-style: normal;
}
.hero p {
  max-width: 380px;
  color: #9da8a7;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.hero-art {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}
.orb {
  position: absolute;
  border: 1px solid #9fc35a55;
  border-radius: 50%;
  transform: rotate(-28deg);
}
.orb-one {
  width: 230px;
  height: 230px;
  box-shadow:
    inset 0 0 60px #d8ff690c,
    0 0 80px #d8ff6909;
}
.orb-two {
  width: 310px;
  height: 135px;
}
.orb-three {
  width: 135px;
  height: 310px;
  transform: rotate(35deg);
}
.orb-core {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #dfff91, #96b94d 55%, #354e2b);
  display: grid;
  place-items: center;
  color: #15220e;
  font-size: 37px;
  font-weight: 800;
  box-shadow: 0 0 80px #c8ff593b;
}
.art-label {
  position: absolute;
  bottom: 23px;
  font-size: 9px;
  color: #a1bb89;
}

.metrics {
  margin: 22px 38px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.metric {
  padding: 22px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.metric:last-child {
  border-right: 0;
}
.metric > span {
  color: var(--muted);
  font-size: 9px;
}
.metric strong {
  font-size: 25px;
  letter-spacing: -0.6px;
}
.metric small {
  font-size: 9px;
  color: #6f797f;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  margin: 32px 38px;
  align-items: start;
}
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.section-header h3 {
  font-size: 22px;
  margin: 8px 0 0;
}
.live-pill {
  border: 1px solid #3a5030;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 9px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 7px;
}
.feed-filter {
  display: flex;
  justify-content: space-between;
  background: var(--panel);
  padding: 15px 19px;
  border: 1px solid var(--border);
  border-radius: 7px 7px 0 0;
  font-size: 9px;
  color: var(--muted);
}
.post {
  padding: 20px;
  border: 1px solid var(--border);
  border-top: 0;
  background: var(--panel);
  animation: enter 0.3s ease;
}
.post:last-child {
  border-radius: 0 0 7px 7px;
}
.post-head {
  display: flex;
  gap: 11px;
  align-items: center;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #0a0e0d;
  flex-shrink: 0;
}
.post-name {
  font-size: 13px;
  font-weight: 700;
}
.post-handle {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.post-time {
  margin-left: auto;
  color: #68727a;
  font:
    10px "Space Mono",
    monospace;
}
.post-body {
  margin: 15px 0 14px 51px;
  font-size: 13px;
  line-height: 1.75;
  color: #d5dbd9;
  overflow-wrap: anywhere;
}
.post-actions {
  margin-left: 51px;
  display: flex;
  gap: 22px;
  color: #7b8589;
  font-size: 11px;
}
.post-actions button {
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
}
.post-actions button:hover,
.account-link:hover {
  color: var(--accent);
}
.account-link {
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.tag {
  color: var(--accent);
}
.reply-box {
  margin: 14px 0 0 51px;
  padding: 12px;
  border-left: 2px solid #3d4e35;
  background: #171d1b;
  color: #abb7ae;
  font-size: 11px;
  line-height: 1.6;
}

.rightbar {
  display: grid;
  gap: 18px;
}
.right-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 7px;
  padding: 20px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  color: #a5adaf;
  font-size: 10px;
  margin-bottom: 22px;
}
.trend {
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.trend small {
  color: #737f84;
  font-size: 10px;
}
.trend strong {
  display: block;
  font-size: 13px;
  margin: 6px 0;
}
.trend span {
  font-size: 10px;
  color: var(--accent);
}
.control-status {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--accent);
  margin-bottom: 18px;
}
.control-buttons {
  display: flex;
  gap: 8px;
}
.control-buttons button {
  flex: 1;
  padding: 11px 6px;
}
.panel-note {
  color: #778185;
  font-size: 9px;
  line-height: 1.8;
  margin-top: 17px;
}
.log-entry {
  font:
    10px/1.7 "Space Mono",
    monospace;
  color: #85948b;
  margin: 0 0 12px;
}
.log-entry span {
  color: var(--accent);
}
.panel-intro {
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 7px;
  margin-bottom: 15px;
}
.panel-intro h3 {
  margin: 0 0 8px;
}
.panel-intro p {
  color: var(--muted);
  font-size: 12px;
}
.list-card {
  width: 100%;
  text-align: left;
  padding: 19px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  margin-bottom: 9px;
}
.list-card:hover {
  border-color: var(--accent);
}
.list-card strong {
  display: block;
  margin-bottom: 6px;
}
.list-card small {
  color: var(--muted);
  line-height: 1.6;
}
.cluster-members {
  padding: 10px 17px 18px;
  color: #b7c2b7;
  font-size: 12px;
  line-height: 2;
}
footer {
  border-top: 1px solid var(--border);
  margin-top: 45px;
  padding: 23px 38px;
  font-size: 9px;
  color: #7c8789;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000b;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-card {
  position: relative;
  width: min(100%, 450px);
  padding: 30px;
  background: #151a1d;
  border: 1px solid #475447;
  border-radius: 10px;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  background: none;
  border: 0;
  color: white;
  font-size: 26px;
}
.detail-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 12px;
  gap: 15px;
}
.detail-line span {
  color: var(--muted);
}
.detail-line strong {
  text-align: right;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .rightbar {
    grid-template-columns: repeat(2, 1fr);
  }
  .terminal-panel {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .app {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand {
    padding: 0;
  }
  .brand-symbol {
    font-size: 27px;
  }
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .navigation {
    display: flex;
    overflow-x: auto;
    margin-top: 17px;
  }
  .nav-item {
    white-space: nowrap;
    padding: 10px;
  }
  .topbar {
    padding: 22px 16px;
  }
  .topbar h1 {
    font-size: 21px;
  }
  .status {
    display: none;
  }
  .hero {
    margin: 0 16px;
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 28px 22px;
  }
  .hero-art {
    min-height: 180px;
  }
  .orb-one {
    width: 155px;
    height: 155px;
  }
  .orb-two {
    width: 210px;
    height: 90px;
  }
  .orb-three {
    width: 90px;
    height: 210px;
  }
  .orb-core {
    width: 90px;
    height: 90px;
    font-size: 25px;
  }
  .metrics {
    margin: 16px;
    grid-template-columns: repeat(2, 1fr);
  }
  .metric {
    padding: 17px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .workspace {
    margin: 25px 16px;
  }
  .rightbar {
    grid-template-columns: 1fr;
  }
  .terminal-panel {
    grid-column: auto;
  }
  footer {
    padding: 20px 16px;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* H404 — Network Reveal */

.network-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: #171c1e;
  border: 1px solid var(--border);
  border-radius: 7px 7px 0 0;
  color: var(--accent);
  font:
    10px "Space Mono",
    monospace;
}

.network-toolbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.graph-container {
  background:
    radial-gradient(circle at 35% 50%, #d8ff690b, transparent 40%),
    radial-gradient(circle at 70% 50%, #9cd7fa0b, transparent 40%), #0d1114;
  border: 1px solid var(--border);
  border-top: 0;
  overflow: hidden;
}

#network-graph {
  display: block;
  width: 100%;
  height: auto;
}

.graph-link {
  stroke: #708c69;
  stroke-width: 1.5;
  opacity: 0.4;
  transition: opacity 0.25s;
}

.graph-link.active {
  stroke: var(--accent);
  stroke-width: 2.5;
  opacity: 1;
}

.graph-node {
  cursor: pointer;
  outline: none;
}

.graph-node circle {
  stroke: #ffffff44;
  stroke-width: 2;
  transition:
    stroke-width 0.2s,
    filter 0.2s;
}

.graph-node:hover circle,
.graph-node:focus circle {
  stroke: white;
  stroke-width: 4;
  filter: drop-shadow(0 0 10px #d8ff69);
}

.graph-node.selected circle {
  stroke: var(--accent);
  stroke-width: 4;
}

.graph-node text {
  fill: #d4ddd8;
  font:
    12px "Space Mono",
    monospace;
  text-anchor: middle;
  pointer-events: none;
}

.graph-pulse {
  fill: var(--accent);
  opacity: 0.9;
  pointer-events: none;
}

.network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 17px;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  margin-bottom: 18px;
  color: #a8b2ad;
  font:
    10px "Space Mono",
    monospace;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

.consensus {
  background: #d8ff69;
}
.signal {
  background: #9cd7fa;
}

@media (max-width: 760px) {
  .network-toolbar {
    font-size: 8px;
    padding: 12px;
  }

  .graph-node text {
    font-size: 14px;
  }
}

/* H404 — Coordinated Campaigns */

.campaign-indicator {
  margin: 0 0 15px 51px;
  padding: 10px 12px;
  background: #1b241c;
  border-left: 2px solid var(--accent);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--accent);
  font:
    9px "Space Mono",
    monospace;
}

.campaign-report {
  padding: 22px;
  margin: 15px 0;
  border: 1px solid #536c3a;
  border-radius: 7px;
  background: #171f19;
}

.campaign-report h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 15px;
}

.campaign-report p {
  color: #aab7a9;
  font-size: 12px;
  line-height: 1.7;
}

.campaign-report button {
  margin-top: 12px;
}

.post-actions {
  flex-wrap: wrap;
  row-gap: 12px;
}

.post-actions button[data-trace] {
  color: var(--accent);
}

/* PHASE 5 — NARRATIVE INJECTION */

.injection-panel {
  background: #111613;
  border: 1px solid #344039;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.injection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.injection-heading h3 {
  font-family: "Space Mono", monospace;
  font-size: 19px;
  letter-spacing: -1px;
  color: #f0f4ed;
  margin: 10px 0;
}

.injection-heading p {
  font-size: 13px;
  color: #929e96;
  line-height: 1.6;
}

.injection-symbol {
  color: #d8ff69;
  font-size: 40px;
}

#injection-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#injection-form label {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: #a6b3a8;
  letter-spacing: 1px;
}

#narrative-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 110px;
  padding: 16px;
  background: #090e0b;
  border: 1px solid #354137;
  border-radius: 8px;
  color: #f0f4ed;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

#narrative-input:focus {
  border-color: #d8ff69;
}

#narrative-input::placeholder {
  color: #657168;
}

.injection-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.injection-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#injection-mode {
  background: #090e0b;
  border: 1px solid #354137;
  border-radius: 6px;
  padding: 12px;
  color: #e5ebe2;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  cursor: pointer;
}

.inject-button {
  background: #d8ff69;
  color: #101510;
  border: 0;
  border-radius: 6px;
  padding: 14px 20px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}

.inject-button:hover {
  background: #edffad;
  transform: translateY(-2px);
}

.injection-feedback {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #28352b;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: #d8ff69;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .injection-panel {
    padding: 18px;
  }

  .injection-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .inject-button {
    width: 100%;
  }
}

/* H404 — NETWORK TAKEOVER */

.takeover-panel {
  background: #111613;
  border: 1px solid #344039;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
}

.takeover-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.takeover-top h3 {
  font-family: "Space Mono", monospace;
  font-size: 20px;
  color: #f0f4ed;
  margin: 10px 0;
}

.takeover-top p {
  color: #929e96;
  font-size: 13px;
  line-height: 1.6;
}

.takeover-status {
  color: #d8ff69;
  border: 1px solid #52683a;
  padding: 8px 12px;
  border-radius: 5px;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  white-space: nowrap;
}

.takeover-value {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.takeover-value strong {
  color: #d8ff69;
  font-family: "Space Mono", monospace;
  font-size: clamp(48px, 8vw, 76px);
  letter-spacing: -5px;
  line-height: 1.1;
}

.takeover-value span,
.takeover-metrics span {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: #929e96;
  letter-spacing: 1px;
}

.takeover-progress {
  width: 100%;
  height: 10px;
  margin-top: 20px;
  background: #29332b;
  border-radius: 20px;
  overflow: hidden;
}

#takeover-fill {
  height: 100%;
  width: 0%;
  background: #d8ff69;
  border-radius: 20px;
  transition: width 0.5s ease;
  box-shadow: 0 0 18px #d8ff6960;
}

.takeover-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.takeover-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0a100c;
  padding: 16px;
  border: 1px solid #2a372d;
  border-radius: 8px;
  min-width: 0;
}

.takeover-metrics strong {
  font-family: "Space Mono", monospace;
  font-size: 13px;
  color: #f0f4ed;
  overflow-wrap: anywhere;
}

.takeover-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.takeover-actions button {
  background: #d8ff69;
  border: 0;
  border-radius: 6px;
  padding: 14px 18px;
  color: #101510;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
}

.takeover-actions button:nth-child(2) {
  background: transparent;
  border: 1px solid #52683a;
  color: #d8ff69;
}

.takeover-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.takeover-report {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #52683a;
  background: #090e0b;
  border-radius: 8px;
  font-family: "Space Mono", monospace;
}

.takeover-report h4 {
  color: #d8ff69;
  margin: 0 0 16px;
  font-size: 14px;
}

.takeover-report p {
  color: #b5c1b7;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.takeover-report .report-signal {
  color: #f0f4ed;
  font-size: 14px;
  padding: 14px 0;
}

@media (max-width: 600px) {
  .takeover-panel {
    padding: 18px;
  }

  .takeover-metrics {
    grid-template-columns: 1fr;
  }

  .takeover-actions {
    flex-direction: column;
  }

  .takeover-actions button {
    width: 100%;
  }
}

/* H404 — WELCOME EXPERIENCE */

.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #070a08;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.welcome-overlay.hidden {
  display: none;
}

.welcome-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(216, 255, 105, 0.05) 4px
  );
}

.welcome-content {
  width: min(100%, 760px);
  position: relative;
  z-index: 1;
}

.welcome-eyebrow,
.welcome-status,
.welcome-actions span,
.welcome-bottom {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: #8e9c90;
}

.welcome-eyebrow {
  color: #d8ff69;
}

.welcome-symbol {
  font-family: "Space Mono", monospace;
  font-size: clamp(80px, 15vw, 170px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -12px;
  color: #e9eee6;
  margin: 20px 0;
}

.welcome-symbol span {
  color: #d8ff69;
}

.welcome-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.welcome-content h1 {
  font-size: clamp(30px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -2px;
  color: #f0f4ed;
  margin-bottom: 24px;
}

.welcome-content h1 span {
  color: #d8ff69;
}

.welcome-content > p {
  color: #a5b0a7;
  font-size: 15px;
  line-height: 1.9;
  max-width: 590px;
}

.welcome-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
}

#enter-network-btn {
  background: #d8ff69;
  color: #101510;
  border: none;
  border-radius: 6px;
  padding: 18px 24px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

#enter-network-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 32px #d8ff6950;
}

.welcome-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #2e3a30;
  padding-top: 20px;
  margin-top: 80px;
}

@media (max-width: 600px) {
  .welcome-overlay {
    align-items: flex-start;
    padding: 45px 20px;
  }

  .welcome-symbol {
    font-size: 76px;
    letter-spacing: -7px;
  }

  .welcome-content h1 {
    font-size: 34px;
  }

  .welcome-bottom {
    margin-top: 45px;
  }
}

/* H404 — EXPERIMENT GUIDE */

.experiment-guide {
  padding: 18px;
  background: #1b251c;
  border: 1px solid #42533c;
  border-radius: 8px;
  margin-bottom: 20px;
}

.experiment-guide span {
  color: #d8ff69;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 1px;
}

.experiment-guide p {
  color: #b1beb2;
  font-size: 13px;
  line-height: 1.7;
  margin: 12px 0;
}

.experiment-guide button {
  background: transparent;
  border: none;
  color: #d8ff69;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  padding: 0;
  cursor: pointer;
}
