

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  color: #cfeecf;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;


  animation: screenFlicker 12s infinite;
}



.background-layer {
  position: fixed;
  inset: -20px;
  background: url("../images/wallpaper6.webp") center/cover no-repeat;
  min-height: 110%;
  z-index: -2;
  transition: transform 0.2s ease-out;
}

.wallpaper-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.6) 70%,
    rgba(0,0,0,0.85) 100%
  );
  pointer-events: none;
  z-index: 0;
}



.sidebar {
  width: 220px;
  background: rgba(10, 18, 10, 0.85);
  backdrop-filter: blur(6px);
  padding: 40px 20px;
  border-right: 1px solid rgba(120,255,120,0.2);
  position: relative;
  z-index: 2;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sidebar a {
  text-decoration: none;
  color: #9eff9e;
  font-size: 14px;
  transition: 0.2s ease;
}

.sidebar a:hover {
  color: #fff;
  letter-spacing: 2px;
}



.main-content {
  flex: 1;
  padding: 60px;
  position: relative;
  z-index: 2;
}

.hero {
  height: 60vh;
  display: flex;
  align-items: center;
}

.hero-box {
  background: rgba(0, 0, 0, 0.65);
  padding: 40px;
  border: 1px solid rgba(120,255,120,0.2);
  max-width: 600px;
}

.hero-box h1 {
  font-size: 28px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 14px;
  opacity: 0.8;
}


.hero-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-nav a {
  text-decoration: none;
  color: #9eff9e;
  font-size: 13px;
  opacity: 0.75;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 2px;
}

.hero-nav a::after {
  content: "";
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: rgba(120,255,120,0.35);
  transition: width 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
}

.hero-nav a:hover {
  opacity: 1;
}

.hero-nav a:hover::after {
  width: 100%;
  opacity: 1;
}


.hero-box::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 12px;
  background: rgba(120,255,120,0.15);
}



.dashboard {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.panel {
  background: rgba(15, 25, 15, 0.85);
  padding: 25px;
  border: 1px solid rgba(120,255,120,0.15);
  transition: 0.3s ease;
}

.panel:hover {
  background: rgba(25, 40, 25, 0.9);
  border-color: rgba(120,255,120,0.4);
}

.panel h3 {
  margin-bottom: 15px;
  font-size: 16px;
  letter-spacing: 1px;
}

.panel p {
  font-size: 13px;
  margin-bottom: 6px;
  opacity: 0.85;
}


.operator-terminal {
  position: fixed;
  right: 40px;
  top: 80px;
  width: 380px;

  background: rgba(8, 14, 8, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(120,255,120,0.25);
  box-shadow: 0 0 20px rgba(120,255,120,0.05);

  padding: 30px;
  z-index: 3;
  font-size: 13px;
}

.operator-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0px,
    rgba(0,0,0,0.2) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  opacity: 0.15;
}


.terminal-header {
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.terminal-id {
  font-size: 12px;
  margin-bottom: 20px;
  opacity: 0.7;
}


.operator-card { display: block; }
.operator-info { width: 100%; }

.operator-terminal img,
.operator-card img {
  width: fit-content;
  height: 200px;
  object-fit: contain;
  border: 1px solid rgba(120,255,120,0.3);
  margin-bottom: 20px;
  filter: contrast(1.1) brightness(0.9);
}

.terminal-section {
  margin-bottom: 20px;
}

.terminal-section p {
  margin-bottom: 6px;
}

.terminal-section span {
  opacity: 0.6;
  margin-right: 5px;
}

.terminal-section ul {
  padding-left: 18px;
  opacity: 0.85;
}

.terminal-section li {
  margin-bottom: 4px;
}

.terminal-status {
  margin-top: 15px;
  padding: 8px;
  border: 1px solid rgba(120,255,120,0.3);
  text-align: center;
  letter-spacing: 1px;
}

.terminal-status.online { color: #7CFF7A; }
.terminal-status.offline { color: #888; }

.terminal-footer {
  margin-top: 20px;
  font-size: 11px;
  opacity: 0.5;
}


@media (max-width: 1250px) {
  .operator-terminal {
    display: block;
    position: static;
    width: 100%;
    right: auto;
    top: auto;
    margin: 18px 0 0 0;
  }
}



.audio-button {
  position: fixed;
  bottom: 30px;
  left: 40px;

  background: rgba(10,18,10,0.9);
  border: 1px solid rgba(120,255,120,0.3);
  color: #7CFF7A;

  padding: 8px 14px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  z-index: 4;
}

.audio-button:hover {
  background: rgba(25,40,25,0.9);
}




.glitch {
  transform: translateX(2px);
  filter: contrast(1.1) brightness(1.05);
}

.glitch::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}

#anomaly-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(120,255,120,0.15),
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.anomaly-active {
  animation: anomalyFlash 2s ease-in-out;
}

@keyframes anomalyFlash {
  0% { opacity: 0; }
  20% { opacity: 0.5; }
  60% { opacity: 0.35; }
  100% { opacity: 0; }
}

.anomaly-mode {
  animation: anomalyShake 0.2s infinite alternate;
  filter: contrast(1.3) brightness(1.15);
}

@keyframes anomalyShake {
  from { transform: translateX(-1px); }
  to { transform: translateX(1px); }
}

.chromatic {
  position: relative;
}

.chromatic::before,
.chromatic::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chromatic::before {
  mix-blend-mode: screen;
  background: rgba(255, 0, 0, 0.04);
  transform: translate(1px, 0);
}

.chromatic::after {
  mix-blend-mode: screen;
  background: rgba(0, 100, 255, 0.04);
  transform: translate(-1px, 0);
}

.chromatic .terminal-console,
.chromatic .operator-terminal {
  animation: chromaShift 0.08s infinite;
}

@keyframes chromaShift {
  0% { text-shadow: 1px 0 red, -1px 0 cyan; }
  50% { text-shadow: -1px 0 red, 1px 0 cyan; }
  100% { text-shadow: 1px 0 red, -1px 0 cyan; }
}

body.stabilising .terminal-console,
body.stabilising .operator-terminal {
  transition: filter 2s ease, transform 2s ease;
  filter: blur(1px) brightness(0.9);
}

body.anomaly-mode {
  transition: filter 0.4s ease;
}



.terminal-console {
  position: fixed;
  bottom: 400px;
  left: 280px;

  width: 600px;
  height: 360px;

  background: rgba(5,10,5,0.95);
  border: 1px solid rgba(120,255,120,0.3);
  padding: 15px;

  display: flex;
  flex-direction: column;
  z-index: 5;
}

.anomaly-mode .terminal-console {
  border-color: rgba(255, 50, 50, 0.8);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}

.console-header {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 10px;
}

.console-log {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 13px;

  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 0;
}


.console-log * {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

.console-log div { line-height: 1.3; }
.console-log p { white-space: pre; }

.command-line {
  margin-top: 8px;
  color: #9CFF9A;
}

.console-input-line {
  display: flex;
  align-items: center;
  font-family: monospace;
  position: relative;
}

.prompt {
  margin-right: 8px;
  color: #7cff7a;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

#console-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #7cff7a;
  font-family: inherit;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.autocomplete-ghost {
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(124,255,122,0.35);
  font-family: inherit;
  font-size: 14px;
  pointer-events: none;
  white-space: pre;
  z-index: 1;
}


.console-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.signal-container {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

.signal-label { font-size: 0.7rem; }

.signal-bars {
  display: flex;
  gap: 2px;
}

.signal-bars span {
  width: 4px;
  height: 8px;
  background: #3cff84;
  opacity: 0.3;
  transition: opacity 0.3s, background 0.3s;
}

.signal-bars span.active { opacity: 1; }
.signal-bars span.low { background: #ff4c4c; }
.signal-bars span.flicker { opacity: 0.4; }


.hero-nav {display: none;}
.mobile-ops { display: none; }
.mobile-nav { display: none;}


@media (max-width: 2000px) {
  
    .terminal-console {
        left: 260px;
        bottom: 255px;
        width: 480px;
        height: 260px;
    }

    .operator-terminal {
        width: 320px;
        right: 24px;
        top: 56px;
    }

    .hero-box {
      position: relative;
      top: -50px;
    }

    .dossier-addendum {
      position: relative;
      right: 330px !important;
      top: 10px !important;
      width: 300px !important;
    }

    .main-content {
        padding: 40px;
    }

    .hero {
        height: 68vh;
    }

    .dashboard {
        margin-top: 40px;
    }
}


@media (max-width: 900px) {

  body { flex-direction: column; }
  .mobile-nav { display: block;}


  .background-layer {
    transition: none;
    background-size: cover;
  }


  .sidebar {
    width: 100%;
    padding: 18px 16px;
    border-right: none;
    border-bottom: 1px solid rgba(120,255,120,0.2);
    position: sticky;
    top: 0;
    z-index: 6;
  }

  .sidebar h2 {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .sidebar nav {
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
  }

  .sidebar a {
    padding: 8px 10px;
    border: 1px solid rgba(120,255,120,0.15);
    background: rgba(0,0,0,0.25);
    border-radius: 6px;
  }

  .main-content { padding: 22px 16px; }

  .hero {
    height: auto;
    min-height: 0;
    padding: 20px 0;
  }

  .hero-box {
    padding: 22px;
    max-width: 100%;
  }

  .dashboard {
    margin-top: 28px;
    grid-template-columns: 1fr;
    gap: 14px;
  }


  .terminal-console { display: none !important; }


  .operator-terminal {
    position: static;      
    width: 100%;
    margin-top: 14px;
    padding: 16px;
    font-size: 12px;
    opacity: 0.92;
  }

  .operator-terminal .terminal-header {
    font-size: 12px;
    letter-spacing: 0.14em;
    opacity: 0.55;
    margin-bottom: 6px;
  }

  .operator-terminal .terminal-id {
    margin-bottom: 10px;
    font-size: 11px;
    opacity: 0.6;
  }


  .operator-card {
    display: flex;
    flex-direction: row-reverse;
    gap: 14px;
    align-items: flex-start;
  }

  .operator-card img,
  .operator-terminal img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    margin-bottom: 12px;
    opacity: 0.9;
  }

  .operator-info { font-size: 12px; }

  .terminal-section { margin-bottom: 8px; }
  .terminal-section p { margin-bottom: 4px; }
  .terminal-section ul { padding-left: 16px; }

  .terminal-section span {
    display: inline-block;
    width: 110px;
  }

  .terminal-status {
    margin-top: 10px;
    padding: 6px;
    font-size: 11px;
    opacity: 0.85;
  }

  .terminal-footer {
    margin-top: 10px;
    font-size: 10px;
    opacity: 0.5;
  }

  .audio-button {
    left: 16px;
    bottom: 16px;
  }


  .mobile-ops {
    display: block;
    margin-top: 16px;
  }

  .ops-panel { background: rgba(12,18,12,0.85); }

  .ops-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0 12px 0;
    border-bottom: 1px solid rgba(120,255,120,0.10);
    margin-bottom: 12px;
  }

  .ops-label {
    opacity: 0.6;
    letter-spacing: 0.12em;
    font-size: 12px;
  }

  .ops-value {
    opacity: 0.85;
    font-size: 12px;
  }

  .ops-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ops-btn {
    appearance: none;
    border: 1px solid rgba(120,255,120,0.18);
    background: rgba(0,0,0,0.25);
    color: #9eff9e;
    padding: 10px 10px;
    font-family: inherit;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
  }

  .ops-btn:active { transform: translateY(1px); }
  .ops-btn:hover { border-color: rgba(120,255,120,0.35); }

  .ops-viewer {
    margin-top: 14px;
    border: 1px solid rgba(120,255,120,0.12);
    background: rgba(0,0,0,0.30);
    overflow: hidden;
    display: none;
  }

  .ops-viewer.open { display: block; }

  .ops-viewer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(120,255,120,0.10);
    opacity: 0.9;
  }

  .ops-title {
    font-size: 12px;
    letter-spacing: 0.08em;
    opacity: 0.8;
  }

  .ops-close {
    background: none;
    border: none;
    color: #9eff9e;
    opacity: 0.65;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
  }

  .ops-close:hover { opacity: 1; }

  .ops-output {
    padding: 12px;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
  }

  .ops-note {
    margin-top: 12px;
    opacity: 0.55;
    font-size: 12px;
  }

  .mobile-changelog {
  margin-top: 14px;
  border-top: 1px solid rgba(120,255,120,0.10);
  padding-top: 12px;
}

.mobile-changelog details {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(120,255,120,0.10);
  padding: 10px 12px;
}

.mobile-changelog summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  opacity: 1;
  color: #9eff9e;
  user-select: none;
}

.mobile-changelog summary::-webkit-details-marker {
  display: none;
}

.mobile-changelog summary::before {
  content: "> ";
  opacity: 0.45;
}

.mobile-changelog details[open] summary {
  margin-bottom: 10px;
}

.mobile-changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-changelog-list li {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 1;
}

.mobile-changelog-list span {
  display: inline-block;
  width: 42px;
  flex-shrink: 0;
  opacity: 0.9;
}

.mobile-changelog-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #9eff9e;
  text-decoration: none;
  opacity: 0.72;
}

.mobile-changelog-link:hover {
  opacity: 1;
  text-decoration: underline;
}

  .sidebar {
    display: none !important;
  }

  body {
    flex-direction: column;
  }

  .main-content {
    padding: 22px 16px;
  }

   .hero {
    height: auto;
    padding: 20px 0;
  }

  .hero-box {
    max-width: 100%;
    padding: 22px;
  }

  .hero-nav {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;


    position: static;
    inset: auto;
  }

  .hero-nav a {
    text-decoration: none;
    color: #9eff9e;
    font-size: 13px;
    letter-spacing: 0.06em;

    opacity: 0.75;
    position: relative;


    padding: 0 0 2px 0;
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .hero-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 0%;
    height: 1px;
    background: rgba(120,255,120,0.35);

    opacity: 0.6;
    transition: width 0.2s ease, opacity 0.2s ease;
  }

  .hero-nav a:hover {
    opacity: 1;
  }

  .hero-nav a:hover::after {
    width: 100%;
    opacity: 1;
  }

  .operator-terminal {
    position: static !important;
    width: 100%;
    margin-top: 14px;
  }


  .terminal-console {
    display: none !important;
  }
}

.credits-panel {
  width: auto;
}

.credits-panel span {
  display: inline-block;
    width: auto;
    opacity: 0.85;
    letter-spacing: 0.08em;
}

.credits-panel a {
  color: #9eff9e;
    text-decoration: none;
    opacity: 0.9;
}

.credits-panel a:hover {
  text-decoration: underline;
}

.sidebar-changelog {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(120,255,120,0.15);
  font-size: 12px;
  opacity: 0.9;
  
}

.sidebar-changelog h3 {
 font-size: 18px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.sidebar-changelog ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-changelog li {
  margin-bottom: 6px;
}

.sidebar-changelog span {
  display: inline-block;
  width: 44px;
  opacity: 0.9;
}

.sidebar-changelog li::before {
  content: ">";
  margin-right: 6px;
  opacity: 0.45;
}




@media (max-width: 1250px) {
  .sidebar-changelog {
    display: none;
  }
}