* { box-sizing: border-box; }

:root {
  --bg-dark: #0e1217;
  --bg-mid: #060809;
  --fg-main: #f2f4f5;
  --fg-muted: #98a8b9;
  --fg-accent: #b5f7b0; /* CRT bright */

  /* CRT green phosphor */
  --crt-bright: #b5f7b0;
  --crt-mid: #7bbf88;
  --crt-dim: #446b50;
  --crt-shadow: #243427;

  /* Blue-grey GITS/Ergo tones */
  --gits-0: #98a8b9;
  --gits-1: #677381;
  --gits-2: #3b4650;
  --gits-3: #222a31;
  --gits-4: #111418;

  /* Ghost highlights */
  --ghost-white: #f2f4f5;
  --ghost-edge: rgba(242,244,245,0.18);
  --warn-orange: #f9a86a;

  --border-subtle: #1f2937;
  --radius-lg: 24px;
}


html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;  /* prevent whole-page side scroll on mobile */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg-main);
  background: radial-gradient(circle at top, var(--gits-2) 0, var(--bg-mid) 55%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display:block; max-width:100%; }

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.18;
  mix-blend-mode: soft-light;
  animation: scanline-drift 900ms linear infinite;
  z-index: 0;
}
@keyframes scanline-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

.daemon-shadow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("/assets/logo-daemon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: clamp(320px, 55vmin, 520px);
  opacity: 0.14;
  mix-blend-mode: screen;
  filter: grayscale(1);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.site-header {
  border-bottom: 1px solid #020617;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
}

.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  padding:0.85rem 0;
}

.brand { display:flex; align-items:center; gap:0.85rem; }
.brand-logo-wrap {
  height:44px; width:44px;
  border-radius:999px;
  border:1px solid #111827;
  overflow:hidden;
  background:#020617;
  flex-shrink:0;
}
.brand-logo-wrap img { width:100%; height:100%; object-fit:cover; }

.brand-text { display:flex; flex-direction:column; gap:3px; }
.brand-kicker {
  font-size:0.7rem;
  letter-spacing:0.34em;
  text-transform:uppercase;
  color:#6b7280;
}
.brand-name { font-size:1.1rem; font-weight:600; }

nav.main-nav {
  display:flex;
  align-items:center;
  gap:1.3rem;
  font-size:0.9rem;
  color:#d1d5db;
}
nav.main-nav a {
  padding:0.25rem 0.1rem;
  border-bottom:1px solid transparent;
}
nav.main-nav a:hover {
  color:#e5e7eb;
  border-bottom-color:rgba(148,163,184,0.7);
  text-shadow:
    0 0 4px rgba(148,163,184,0.45);
}
.nav-cta {
  padding:0.25rem 0.2rem;
  border-radius:0;
  border:none;
  color:#e5e7eb;
  font-weight:500;
  text-shadow:0 0 6px rgba(148,163,184,0.35);
}
.nav-cta:hover {
  color:#f9fafb;
  text-shadow:0 0 10px rgba(148,163,184,0.6);
}

main.main { flex:1; padding:2.6rem 0 3.6rem; }

.hero {
  display:flex;
  flex-direction:column;
  gap:2.5rem;
}
@media (min-width:900px) {
  .hero { flex-direction:row; align-items:center; gap:3rem; }
}
.hero-left { flex:1; }

.chip {
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  font-size:0.7rem;
  letter-spacing:0.3em;
  text-transform:uppercase;
  margin-bottom:0.9rem;
  color:var(--fg-accent);
  border-radius:999px;
  padding:0.25rem 0.9rem;
  background: radial-gradient(circle at top left, rgba(34,211,238,0.18), rgba(15,23,42,0.9));
  box-shadow:0 0 12px rgba(34,211,238,0.4), 0 0 32px rgba(56,189,248,0.25);
}
.chip-bar {
  display:block;
  height:3px;
  width:30px;
  background:var(--fg-accent);
  box-shadow:0 0 8px rgba(34,211,238,0.6);
}

.hero-title, .page-heading, .block-title {
  text-shadow:
    0 0 8px rgba(34,211,238,0.35),
    2px 0 2px rgba(236,72,153,0.45),
    -2px 0 2px rgba(59,130,246,0.45);
}

.hero-title {
  font-size:2.4rem;
  line-height:1.1;
  margin:0 0 0.8rem;
}
@media (min-width:900px) { .hero-title { font-size:2.9rem; } }

.hero-lead {
  font-size:1rem;
  color:#e5e7eb;
  margin-bottom:1.3rem;
}

.hero-actions { display:flex; flex-wrap:wrap; gap:0.8rem; margin-bottom:1.2rem; }

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.7rem 1.3rem;
  font-size:0.9rem;
  border-radius:999px;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
}
.btn-primary {
  background:var(--fg-accent);
  color:#020617;
  letter-spacing:0.06em;
  text-transform:uppercase;
  box-shadow:0 0 18px rgba(34,211,238,0.65), 0 0 40px rgba(56,189,248,0.45);
}
.btn-primary:hover {
  box-shadow:0 0 24px rgba(34,211,238,0.9), 0 0 50px rgba(56,189,248,0.7);
}
.btn-outline {
  border-color:#4b5563;
  color:#e5e7eb;
  background:transparent;
}
.btn-outline:hover {
  border-color:var(--fg-accent);
  color:var(--fg-accent);
}
.hero-subline {
  font-size:0.7rem;
  color:#6b7280;
}

.hero-right { flex:1; }

.panel {
  position:relative;
  border-radius:var(--radius-lg);
  border:1px solid #1f2937;
  background:linear-gradient(145deg, var(--gits-4) 0%, var(--gits-3) 60%, var(--gits-2) 100%);
  box-shadow:0 18px 45px rgba(15,23,42,0.9);
  padding:1.75rem;
  overflow:hidden;
}
.panel-orbit {
  position:absolute;
  border-radius:999px;
  border:1px solid rgba(34,211,238,0.3);
}
.panel-orbit.one { right:-70px; top:-70px; width:170px; height:170px; }
.panel-orbit.two { left:-70px; bottom:-40px; width:140px; height:140px; border-color:rgba(244,114,182,0.4); }
.panel-inner { position:relative; }
.panel-logo-row { display:flex; align-items:center; gap:1rem; margin-bottom:1rem; }
.panel-logo {
  width:82px; height:82px; border-radius:999px;
  border:1px solid rgba(34,211,238,0.6);
  overflow:hidden;
}
.panel-logo img { width:100%; height:100%; object-fit:cover; }
.panel-daemon-ghost {
  position:absolute;
  right:-20px; bottom:-10px;
  width:180px;
  opacity:0.12;
  filter:grayscale(1);
  mix-blend-mode:screen;
  pointer-events:none;
}
.panel-label {
  font-size:0.7rem;
  letter-spacing:0.3em;
  text-transform:uppercase;
  color:#9ca3af;
  margin-bottom:0.2rem;
}
.panel-title { font-size:1.3rem; margin-bottom:0.4rem; }
.panel-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0.75rem;
  font-size:0.75rem;
  margin:1rem 0 1.2rem;
}
.panel-grid-label { color:#9ca3af; margin-bottom:0.25rem; }
.panel-grid-value { color:#e5e7eb; font-weight:500; }
.panel-note { font-size:0.75rem; color:#9ca3af; }

section.block { margin-top:2.6rem; }
.block-panel {
  border-radius:var(--radius-lg);
  border:1px solid #1f2937;
  background:linear-gradient(145deg, var(--gits-4) 0%, var(--gits-3) 60%, var(--gits-2) 100%);
  padding:1.75rem;
  position:relative;
  overflow:hidden;
}
.block-title {
  font-size:1.6rem;
  margin:0 0 0.9rem;
}
.block-body {
  font-size:0.95rem;
  color:#e5e7eb;
}
.block-body p { margin:0 0 0.85rem; }
.muted { color:var(--fg-muted); font-size:0.8rem; }

.steps {
  display:grid;
  grid-template-columns:1fr;
  gap:1rem;
}
@media (min-width:880px) {
  .steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.step-card {
  border-radius:18px;
  border:1px solid #1f2937;
  background:linear-gradient(145deg, var(--gits-4) 0%, var(--gits-3) 60%, var(--gits-2) 100%);
  padding:1.25rem;
  font-size:0.9rem;
  position:relative;
  overflow:hidden;
}
.step-label {
  font-size:0.7rem;
  text-transform:uppercase;
  letter-spacing:0.3em;
  color:#6b7280;
  margin-bottom:0.4rem;
}
.step-title { font-size:1rem; margin-bottom:0.4rem; }

.footer {
  border-top:1px solid #020617;
  background:rgba(0,0,0,0.75);
  font-size:0.75rem;
  color:#6b7280;
}
.footer-inner {
  padding:0.9rem 0;
  display:flex;
  flex-direction:column;
  gap:0.35rem;
  align-items:flex-start;
}
@media (min-width:800px) {
  .footer-inner {
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
  }
}
.footer-tags {
  display:flex;
  gap:0.75rem;
  flex-wrap:wrap;
  text-transform:uppercase;
  letter-spacing:0.2em;
}

.two-col-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:1.1rem;
}
@media (min-width:880px) {
  .two-col-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.transmission-card {
  border-radius:18px;
  border:1px solid #1f2937;
  background:rgba(15,23,42,0.92);
  padding:1.25rem;
  font-size:0.9rem;
  position:relative;
  overflow:hidden;
  backdrop-filter:blur(6px);
}
.tx-meta {
  display:flex;
  justify-content:space-between;
  font-size:0.7rem;
  color:#6b7280;
  margin-bottom:0.35rem;
  letter-spacing:0.15em;
}
.tx-title { font-size:1rem; margin-bottom:0.4rem; }
.tx-body { color:#e5e7eb; margin-bottom:0.4rem; }
.tx-foot { font-size:0.75rem; color:#9ca3af; }
.tx-daemon-mark {
  position:absolute;
  right:-22px;
  top:-10px;
  width:110px;
  opacity:0.1;
  filter:grayscale(1);
  mix-blend-mode:screen;
  pointer-events:none;
}

.join-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:1.1rem;
}
@media (min-width:900px) {
  .join-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
.link-accent { color:var(--fg-accent); position:relative; }
.link-accent::after {
  content:"";
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:1px;
  background:linear-gradient(90deg,#f97316,#ec4899,#22d3ee);
  opacity:0.8;
  transform-origin:left;
  transform:scaleX(0.4);
  transition:transform 180ms ease-out, opacity 180ms ease-out;
}
.link-accent:hover::after { transform:scaleX(1); opacity:1; }

.daemon-hero-layout {
  display:grid;
  grid-template-columns:1fr;
  gap:1.8rem;
}
@media (min-width:900px) {
  .daemon-hero-layout {
    grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
    align-items:center;
  }
}
.daemon-portrait-wrap {
  border-radius:var(--radius-lg);
  border:1px solid #1f2937;
  background:radial-gradient(circle at top, #111827 0, #020617 70%);
  padding:1.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.daemon-portrait-wrap img { max-width:320px; width:100%; }
.daemon-portrait-wrap::after {
  content:"WATCHING";
  position:absolute;
  bottom:0.8rem;
  right:1.4rem;
  font-size:0.65rem;
  letter-spacing:0.35em;
  text-transform:uppercase;
  color:rgba(148,163,184,0.7);
}

.page-heading {
  font-size:2rem;
  margin:0 0 0.5rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-size:1.1rem;
}
.page-intro {
  font-size:0.9rem;
  color:#e5e7eb;
  margin-bottom:1.2rem;
}

/* CRT elements */
.crt-panel {
  position:relative;
  border-radius:16px;
  background:radial-gradient(circle at top left,var(--gits-4) 0,var(--bg-mid) 60%);
  border:1px solid var(--gits-4);
  padding:0.85rem 1.1rem 1rem;
  margin-top:1.5rem;
  font-family:"SF Mono",Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  color:var(--crt-bright);
  box-shadow:0 0 18px rgba(15,23,42,1),0 0 32px rgba(22,163,74,0.25);
  overflow:hidden;
}
.crt-panel::before {
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(
    to bottom,
    rgba(181,247,176,0.16),
    rgba(181,247,176,0.16) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode:soft-light;
  opacity:0.4;
  pointer-events:none;
}
.crt-header {
  font-size:0.7rem;
  text-transform:uppercase;
  letter-spacing:0.28em;
  color:#4ade80;
  margin-bottom:0.4rem;
  opacity:0.9;
}
pre.crt-body {
  margin:0;
  font-size:0.78rem;
  line-height:1.4;
  white-space:pre;
}
@media (max-width: 640px) {
  pre.crt-body {
    white-space: pre-wrap;      /* allow wrapping on phones */
    word-break: break-word;     /* break long tokens if needed */
  }
}
.crt-cursor {
  display:inline-block;
  width:0.55em;
  margin-left:2px;
  background:var(--crt-bright);
  box-shadow:0 0 6px rgba(74,222,128,0.9);
  animation:crt-cursor-blink 900ms steps(2,start) infinite;
}
@keyframes crt-cursor-blink {
  0%,50%{opacity:1;}
  51%,100%{opacity:0;}
}

/* --- TX-010 pending mission CRT styling --- */

.crt-processing {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #bbf7d0;
  text-shadow: 0 0 4px rgba(74, 222, 128, 0.6);
}

.crt-processing-foot {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #4ade80;
  opacity: 0.8;
}

.crt-lines {
  margin-bottom: 0.4rem;
}

.crt-line {
  display: block;
  opacity: 0;
  animation: crt-line-fade 1.4s ease-out forwards;
}

.crt-line-1 { animation-delay: 0.1s; }
.crt-line-2 { animation-delay: 0.6s; }
.crt-line-3 { animation-delay: 1.1s; }

@keyframes crt-line-fade {
  0%   { opacity: 0; transform: translateY(1px); }
  60%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; }
}

/* Waveform progress bar under lines */
.crt-waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 12px;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.crt-waveform .wave-seg {
  flex: 1;
  height: 4px;
  background: linear-gradient(to top, #22c55e, #bbf7d0);
  opacity: 0.8;
  transform-origin: bottom;
  animation: wave-pulse 1200ms ease-in-out infinite;
}

.crt-waveform .wave-seg:nth-child(2) { animation-delay: 0.1s; }
.crt-waveform .wave-seg:nth-child(3) { animation-delay: 0.2s; }
.crt-waveform .wave-seg:nth-child(4) { animation-delay: 0.3s; }
.crt-waveform .wave-seg:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave-pulse {
  0%   { transform: scaleY(0.4); opacity: 0.6; }
  35%  { transform: scaleY(1.2); opacity: 1; }
  70%  { transform: scaleY(0.6); opacity: 0.75; }
  100% { transform: scaleY(0.4); opacity: 0.6; }
}

/* Reuse CRT cursor but slightly slower for this panel */
.transmission-card-pending .crt-cursor {
  animation-duration: 1200ms;
}

/* Glitch / heartbeat effect on the entire card */
.transmission-card-pending {
  position: relative;
  overflow: hidden;
}

.transmission-card-pending::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(34,197,94,0.12), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: heartbeat-flash 2600ms ease-out infinite;
}

@keyframes heartbeat-flash {
  0%, 70%, 100%   { opacity: 0; transform: translateX(0); }
  72%             { opacity: 0.4; transform: translateX(-3px); }
  74%             { opacity: 0.2; transform: translateX(2px); }
}

/* Occasional small text glitch on the title */
.transmission-card-pending .tx-title {
  position: relative;
  overflow: hidden;
}

.transmission-card-pending .tx-title::after {
  content: attr(data-glitch);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  clip-path: inset(0 0 40% 0);
  transform: translate(1px, -1px);
  opacity: 0;
  color: #a5b4fc;
  mix-blend-mode: screen;
  animation: title-glitch 4200ms steps(2, end) infinite;
}

@keyframes title-glitch {
  0%, 92%, 100% { opacity: 0; transform: translate(0,0); }
  93%           { opacity: 1; transform: translate(1px,-1px); }
  95%           { opacity: 0.6; transform: translate(-1px,1px); }
}

/* Stalled warning styling */
.crt-processing-foot span.warn-label {
  color: #f97316;
  text-shadow: 0 0 6px rgba(248, 113, 113, 0.8);
}
/* --- TX-010 pending mission CRT styling --- */

.tx-body.crt-processing {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #bbf7d0 !important;
  text-shadow: 0 0 4px rgba(74, 222, 128, 0.6);
}

.tx-foot.crt-processing-foot {
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #4ade80 !important;
  opacity: 0.85;
}

/* Lines fading in like console output */
.crt-lines {
  margin-bottom: 0.4rem;
}

.crt-line {
  display: block;
  opacity: 0;
  animation: crt-line-fade 1.4s ease-out forwards;
}

.crt-line-1 { animation-delay: 0.1s; }
.crt-line-2 { animation-delay: 0.6s; }
.crt-line-3 { animation-delay: 1.1s; }

@keyframes crt-line-fade {
  0%   { opacity: 0; transform: translateY(1px); }
  60%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; }
}

/* Waveform / heartbeat under the text */
.crt-waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 12px;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.crt-waveform .wave-seg {
  flex: 1;
  height: 4px;
  background: linear-gradient(to top, #22c55e, #bbf7d0);
  opacity: 0.8;
  transform-origin: bottom;
  animation: wave-pulse 1200ms ease-in-out infinite;
}

.crt-waveform .wave-seg:nth-child(2) { animation-delay: 0.1s; }
.crt-waveform .wave-seg:nth-child(3) { animation-delay: 0.2s; }
.crt-waveform .wave-seg:nth-child(4) { animation-delay: 0.3s; }
.crt-waveform .wave-seg:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave-pulse {
  0%   { transform: scaleY(0.4); opacity: 0.6; }
  35%  { transform: scaleY(1.2); opacity: 1; }
  70%  { transform: scaleY(0.6); opacity: 0.75; }
  100% { transform: scaleY(0.4); opacity: 0.6; }
}

/* Card-wide heartbeat / glitch */
.transmission-card-pending {
  position: relative;
  overflow: hidden;
}

.transmission-card-pending::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(34,197,94,0.15), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: heartbeat-flash 2600ms ease-out infinite;
}

@keyframes heartbeat-flash {
  0%, 70%, 100%   { opacity: 0; transform: translateX(0); }
  72%             { opacity: 0.4; transform: translateX(-3px); }
  74%             { opacity: 0.2; transform: translateX(2px); }
}

/* Title glitch using data-glitch value */
.transmission-card-pending .tx-title {
  position: relative;
  overflow: hidden;
}

.transmission-card-pending .tx-title::after {
  content: attr(data-glitch);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  clip-path: inset(0 0 40% 0);
  transform: translate(1px, -1px);
  opacity: 0;
  color: #a5b4fc;
  mix-blend-mode: screen;
  animation: title-glitch 4200ms steps(2, end) infinite;
}

@keyframes title-glitch {
  0%, 92%, 100% { opacity: 0; transform: translate(0,0); }
  93%           { opacity: 1; transform: translate(1px,-1px); }
  95%           { opacity: 0.6; transform: translate(-1px,1px); }
}

/* Stalled warning label */
.crt-processing-foot .warn-label {
  color: #f97316;
  text-shadow: 0 0 6px rgba(248, 113, 113, 0.8);
}
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav.main-nav {
    flex-wrap: wrap;
    row-gap: 0.25rem;
    column-gap: 0.75rem;
    font-size: 0.8rem;
  }

  .hero {
    gap: 1.5rem;
  }

  .panel,
  .block-panel,
  .step-card,
  .transmission-card,
  .daemon-portrait-wrap {
    border-radius: 18px;
  }

  .page-heading {
    font-size: 0.95rem;
  }

  .tx-meta {
    font-size: 0.65rem;
  }
}
/* Hidden GhostNet console (easter egg) */
.ghost-console {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(420px, 92vw);
  transform: translateY(130%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
  z-index: 50;
}

.ghost-console.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ghost-console-inner {
  border-radius: 16px;
  border: 1px solid #020617;
  background: radial-gradient(circle at top left,var(--gits-4) 0,var(--bg-mid) 60%);
  box-shadow: 0 0 24px rgba(15,23,42,1), 0 0 42px rgba(34,197,94,0.45);
  padding: 0.75rem 0.9rem 0.8rem;
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
  color: #bbf7d0;
  position: relative;
  overflow: hidden;
}

.ghost-console-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(74,222,128,0.18),
    rgba(74,222,128,0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
}

.ghost-console-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #4ade80;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
}

.ghost-console-body {
  position: relative;
  z-index: 1;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.ghost-console-input {
  position: relative;
  z-index: 1;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ghost-console-input .prompt {
  color: #4ade80;
  font-size: 0.8rem;
}

.ghost-console-input input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(148,163,184,0.6);
  color: #bbf7d0;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.1rem 0.15rem;
  outline: none;
}

.ghost-console-input input::placeholder {
  color: rgba(148,163,184,0.7);
}

/* Use existing CRT cursor animation for the console too, if desired */
.ghost-console-body .crt-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: #bbf7d0;
  margin-left: 4px;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.9);
  animation: crt-cursor-blink 900ms steps(2, start) infinite;
}

/* Subtle logo pulse without teal glow */
.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 0 2px rgba(148, 163, 184, 0.35));
  animation: logoPulse 6s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(148, 163, 184, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(148, 163, 184, 0.7));
  }
}

/* Faction glyph scaffolding */
.faction-glyph {
  width: 26px;
  height: 26px;
  opacity: 0.22;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 4px var(--gits-1));
  pointer-events: none;
}
.faction-apex { background-image: url('/assets/factions/apex.svg'); }
.faction-choir { background-image: url('/assets/factions/choir.svg'); }
.faction-syndic { background-image: url('/assets/factions/syndic.svg'); }
.faction-glyph.glitch { animation: factionGlitch 4s infinite; }
@keyframes factionGlitch {
  0%,95% { transform: none; opacity: 0.22; }
  96%    { transform: translate(1px,-1px); opacity: 0.38; }
  98%    { transform: translate(-1px,1px); opacity: 0.14; }
  100%   { transform: none; }
}

/* Mesh diagnostics overlay */
.mesh-diagnostics {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(6,8,9,0.92);
  border: 1px solid var(--gits-3);
  box-shadow: 0 0 14px rgba(0,0,0,0.7);
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.7rem;
  color: var(--crt-bright);
  opacity: 0.9;
  z-index: 40;
}
.mesh-diagnostics .label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  color: var(--fg-muted);
  margin-bottom: 0.2rem;
}
.mesh-diagnostics .row {
  display: flex;
  gap: 0.75rem;
}
.mesh-diagnostics .metric-label {
  color: var(--fg-muted);
}
.mesh-diagnostics .metric-value {
  color: var(--crt-bright);
}
