/* ============================================================
   SCHRECKNET — NOSFERATU INFORMATION NETWORK
   Design system: sewer terminal / phosphor green / CRT decay
   Palette per PLAN.md — no frameworks, vanilla CSS.
   ============================================================ */

:root {
  --bg: #000000;
  --bg-panel: #050807;
  --bg-panel-2: #0A110C;
  --line: #16352A;
  --green: #39FF14;
  --green-dim: #22B34A;
  --bile: #B8E435;
  --acid: #CCFF33;
  --rust: #B0562F;
  --blood: #B02222;
  --bone: #FFFFFF;
  --bone-dim: #C9C5B4;
  --muted: #63755F;
  --danger: #FF3B3B;
  --glow: rgba(57, 255, 20, .55);
  --font-mono: 'IBM Plex Mono', 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  cursor: crosshair;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(57, 255, 20, .07), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(176, 34, 34, .08), transparent 55%);
  background-attachment: fixed;
}

::selection { background: var(--green); color: var(--bg); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--green-dim); }

a { color: var(--green); text-decoration: none; border-bottom: 1px dotted var(--green-dim); }
a:hover { color: var(--acid); border-bottom-color: var(--acid); text-shadow: 0 0 8px var(--glow); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

code, pre { font-family: var(--font-mono); }

/* ---------- LAYOUT: sidebar + main ---------- */

.site {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-panel);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.logo-block { border-bottom: 1px solid var(--line); padding-bottom: 18px; }

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--green);
  text-shadow: 0 0 12px var(--glow);
  display: block;
  border-bottom: none;
}
.logo:hover { text-shadow: 0 0 18px var(--glow); }

.logo-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
}

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

.nav-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 4px;
}

.nav a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  letter-spacing: 1px;
  border-bottom: none;
  border-left: 2px solid transparent;
  color: var(--green-dim);
  text-transform: uppercase;
}
.nav a:hover {
  color: var(--acid);
  background: var(--bg-panel-2);
  border-left-color: var(--acid);
  text-shadow: 0 0 6px var(--glow);
}
.nav a.active {
  color: var(--green);
  background: var(--bg-panel-2);
  border-left-color: var(--green);
  text-shadow: 0 0 8px var(--glow);
}

.sidebar-user {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-user .handle { color: var(--acid); letter-spacing: 1px; }
.sidebar-user .badge { margin-top: 8px; }

.nav-toggle {
  display: none;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 60;
}

.main {
  padding: 40px 48px 80px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.page-head { margin-bottom: 28px; }

.page-kicker {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--bile);
  margin-bottom: 8px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
  text-shadow: 0 0 14px var(--glow);
}

.page-sub { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 72ch; }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 26px 0; }

/* ---------- CRT OVERLAY ---------- */

#crt-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, .18) 3px,
      rgba(0, 0, 0, .18) 4px
    );
  animation: crt-flicker 4s infinite;
}

#crt-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}

#crt-overlay::after {
  content: "";
  position: absolute;
  inset: -100px 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(70, 232, 131, .04) 45%,
    rgba(70, 232, 131, .07) 50%,
    rgba(70, 232, 131, .04) 55%,
    transparent 100%
  );
  animation: crt-scan 7s linear infinite;
}

@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: .82; }
  94% { opacity: 1; }
  97% { opacity: .92; }
  98% { opacity: 1; }
}

@keyframes crt-scan {
  0% { transform: translateY(-20%); }
  100% { transform: translateY(120%); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(70, 232, 131, .5); }
  50% { box-shadow: 0 0 0 6px rgba(70, 232, 131, 0); }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glitch-a {
  0%, 100% { clip-path: inset(0 0 92% 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 1px); }
  40% { clip-path: inset(55% 0 30% 0); transform: translate(3px, -1px); }
  60% { clip-path: inset(75% 0 10% 0); transform: translate(-2px, 0); }
  80% { clip-path: inset(35% 0 50% 0); transform: translate(2px, 1px); }
}

@keyframes glitch-b {
  0%, 100% { clip-path: inset(85% 0 5% 0); transform: translate(0); }
  25% { clip-path: inset(10% 0 75% 0); transform: translate(3px, -1px); }
  50% { clip-path: inset(45% 0 40% 0); transform: translate(-3px, 1px); }
  75% { clip-path: inset(65% 0 20% 0); transform: translate(2px, 0); }
}

.fade-in { animation: fadein .35s ease-out both; }

/* ---------- PANELS (corner brackets) ---------- */

.panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 22px 24px;
  margin-bottom: 24px;
  animation: fadein .35s ease-out both;
}

.panel.tint { background: var(--bg-panel-2); }

.panel > .corners::before,
.panel > .corners::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.panel::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
  pointer-events: none;
}
.panel::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 2px solid var(--green-dim);
  border-right: 2px solid var(--green-dim);
  pointer-events: none;
}
.panel > .corners::before {
  top: -1px; right: -1px;
  border-top: 2px solid var(--green-dim);
  border-right: 2px solid var(--green-dim);
}
.panel > .corners::after {
  bottom: -1px; left: -1px;
  border-bottom: 2px solid var(--green-dim);
  border-left: 2px solid var(--green-dim);
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 14px;
  text-shadow: 0 0 8px var(--glow);
}

.panel-title::before { content: "▚ "; color: var(--green-dim); }

/* ---------- GLITCH HEADERS ---------- */

.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: .75;
}
.glitch::before {
  color: var(--danger);
  animation: glitch-a 3.2s infinite linear alternate-reverse;
}
.glitch::after {
  color: var(--acid);
  animation: glitch-b 2.7s infinite linear alternate-reverse;
}

/* ---------- BADGES ---------- */

.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.badge-verified { color: var(--green); border-color: var(--green-dim); text-shadow: 0 0 6px var(--glow); }
.badge-danger   { color: var(--danger); border-color: var(--danger); }
.badge-fallen   { color: var(--bone-dim); border-color: var(--blood); background: rgba(142, 42, 42, .18); }
.badge-silenced { color: var(--rust); border-color: var(--rust); }
.badge-active   { color: var(--green); border-color: var(--green); }
.badge-acid     { color: var(--acid); border-color: var(--bile); }
.badge-decrypt  { color: var(--acid); border-color: var(--acid); text-shadow: 0 0 6px rgba(198, 242, 78, .5); }

/* ---------- STATUS DOTS ---------- */

.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: middle;
  margin-right: 7px;
}
.dot-active { background: var(--green); animation: pulse 2s infinite; }
.dot-fallen { background: var(--blood); }
.dot-silenced { background: var(--rust); animation: blink 3s steps(1) infinite; }

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--bg-panel-2);
  border: 1px solid var(--green-dim);
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--green-dim);
  transition: background .15s, box-shadow .15s, color .15s;
}
.btn:hover {
  background: rgba(70, 232, 131, .12);
  box-shadow: 0 0 14px var(--glow), inset 0 0 8px rgba(70, 232, 131, .12);
  color: var(--acid);
}
.btn:active { transform: translateY(1px); }

.btn-danger {
  color: var(--danger);
  border-color: var(--blood);
  background: rgba(142, 42, 42, .12);
}
.btn-danger:hover {
  background: rgba(142, 42, 42, .28);
  box-shadow: 0 0 14px rgba(255, 77, 77, .3);
  color: var(--danger);
}

.btn-ghost {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover { color: var(--green); border-color: var(--green-dim); box-shadow: none; }

.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

/* ---------- TABLES ---------- */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bile);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}
.tbl td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(28, 43, 34, .55);
  color: var(--green-dim);
  vertical-align: top;
}
.tbl tr:hover td { background: rgba(70, 232, 131, .05); color: var(--green); }
.tbl td .danger-text, .danger-text { color: var(--danger); }
.tbl td .ok-text, .ok-text { color: var(--green); }

/* ---------- UTILITIES ---------- */

.muted { color: var(--muted); }
.small { font-size: 12px; }
.green { color: var(--green); }
.acid { color: var(--acid); }
.bile { color: var(--bile); }
.rust-text { color: var(--rust); }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- CLASSIFIED PAPER DOSSIERS ---------- */

.dossier {
  position: relative;
  background: var(--bone);
  color: #211D14;
  border: 1px solid #C9C2AA;
  padding: 30px 34px;
  margin-bottom: 34px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .6);
  transform: rotate(-.4deg);
}
.dossier:nth-child(even) { transform: rotate(.35deg); }

.dossier::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(120, 110, 80, .18), transparent 42%),
    radial-gradient(ellipse at 88% 92%, rgba(120, 110, 80, .22), transparent 45%);
  pointer-events: none;
}

.dossier a { color: #6B4A12; border-bottom-color: #6B4A12; }
.dossier a:hover { color: #3E2E06; text-shadow: none; }

.dossier .stamp {
  position: absolute;
  top: 24px; right: 28px;
  border: 3px double var(--blood);
  color: var(--blood);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 6px 14px;
  transform: rotate(7deg);
  opacity: .85;
  background: transparent;
}

.dossier-head { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.dossier-photo {
  width: 190px;
  height: 230px;
  object-fit: cover;
  filter: grayscale(.55) sepia(.18) contrast(1.08);
  border: 1px solid #9A9378;
  background: #4A4636;
}
.dossier-photo.missing { display: flex; align-items: center; justify-content: center; color: #6B6650; font-size: 11px; letter-spacing: 1px; }

.dossier h3 {
  font-size: 20px;
  letter-spacing: 1px;
  color: #211D14;
  border-bottom: 2px solid var(--blood);
  display: inline-block;
  padding-bottom: 3px;
}

.dossier-meta { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #6E6448; margin-top: 8px; }
.dossier-meta strong { color: #3E3A28; }

.dossier .badge { border-color: #6E6448; color: #4A4630; }
.dossier .badge-verified { color: #3E5A2A; border-color: #3E5A2A; text-shadow: none; }
.dossier .badge-danger { color: var(--blood); border-color: var(--blood); }

.dossier-body { margin-top: 18px; font-size: 14px; line-height: 1.7; color: #35311F; position: relative; }
.dossier-body p { margin-bottom: 12px; }
.dossier-field { border-left: 3px solid var(--blood); padding-left: 12px; margin: 14px 0; color: #4A4228; font-style: italic; }

.redact {
  display: inline-block;
  background: #211D14;
  color: transparent;
  border-radius: 1px;
  padding: 0 2px;
  user-select: none;
  min-width: 60px;
}

/* ---------- FORUM ---------- */

.thread { margin-bottom: 22px; }

.thread-head {
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-bottom: none;
  padding: 12px 16px;
}
.thread-head a { border-bottom: none; font-weight: 700; letter-spacing: 1px; }
.thread-meta { font-size: 11px; color: var(--muted); margin-top: 5px; letter-spacing: 1px; }

.post {
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-dim);
  background: var(--bg-panel);
  padding: 14px 16px;
  margin-bottom: -1px;
}
.post:last-child { margin-bottom: 0; }

.post-head { font-size: 11px; letter-spacing: 1px; margin-bottom: 8px; }
.post-head .author { color: var(--acid); font-weight: 700; text-transform: uppercase; }
.post-head .when { color: var(--muted); }
.post-head .night { color: var(--bile); }

.post-body { color: var(--green-dim); font-size: 13.5px; }
.post-body p { margin-bottom: 8px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body blockquote {
  border-left: 2px solid var(--rust);
  padding: 4px 12px;
  margin: 8px 0;
  color: var(--muted);
  font-style: italic;
  background: rgba(176, 86, 47, .06);
}

/* ---------- BLOG ---------- */

.blog-entry { margin-bottom: 30px; }

.blog-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  text-shadow: 0 0 10px var(--glow);
}
.blog-title a { border-bottom: none; }
.blog-title a:hover { color: var(--acid); }

.blog-meta { font-size: 11px; color: var(--muted); letter-spacing: 1px; margin: 6px 0 12px; }
.blog-meta .night { color: var(--bile); }

.blog-body { color: var(--green-dim); font-size: 13.5px; }
.blog-body p { margin-bottom: 10px; }
.blog-body em { color: var(--bile); }

/* ---------- LOGIN / BOOT ---------- */

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.boot-lines {
  width: min(680px, 92vw);
  font-size: 13px;
  line-height: 1.9;
  color: var(--green);
  text-shadow: 0 0 10px var(--glow);
  white-space: pre-wrap;
}

.boot-lines .caret::after { content: "█"; animation: blink 1s steps(1) infinite; }

.login-box {
  width: min(460px, 92vw);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 30px 32px;
  position: relative;
  animation: fadein .4s ease-out both;
}
.login-box::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
}
.login-box::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 14px; height: 14px;
  border-bottom: 2px solid var(--green-dim);
  border-right: 2px solid var(--green-dim);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bile);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 12px;
  letter-spacing: 1px;
}
.field input:focus { border-color: var(--green-dim); box-shadow: inset 0 0 10px rgba(70, 232, 131, .08); }

.login-error { color: var(--danger); font-size: 12px; min-height: 18px; margin-bottom: 10px; }
.login-note { font-size: 11px; color: var(--muted); margin-top: 14px; line-height: 1.7; }

/* ---------- GAMES ---------- */

.game-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-dim);
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 14px;
  cursor: pointer;
}
.tab:hover { color: var(--acid); border-color: var(--green-dim); }
.tab.active { color: var(--bg); background: var(--green); border-color: var(--green); text-shadow: none; }

.game-panel { display: none; }
.game-panel.active { display: block; }

.game-canvas-wrap { border: 1px solid var(--line); background: var(--bg); padding: 10px; margin-bottom: 14px; }
.game-canvas-wrap canvas { display: block; width: 100%; image-rendering: pixelated; }

.hud {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--bile);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hud strong { color: var(--acid); }

.game-msg { min-height: 22px; font-size: 13px; color: var(--acid); margin-bottom: 10px; }

.glyph-grid { display: grid; grid-template-columns: repeat(4, 64px); gap: 8px; justify-content: start; }
.glyph-cell {
  width: 64px; height: 64px;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  color: var(--green);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.glyph-cell:hover { border-color: var(--green-dim); }
.glyph-cell.revealed { background: rgba(70, 232, 131, .14); border-color: var(--green); }
.glyph-cell.done { background: rgba(70, 232, 131, .08); border-color: var(--green-dim); cursor: default; opacity: .75; }

.code-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.code-slot {
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--acid);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.attempt-log { font-size: 12px; color: var(--green-dim); line-height: 1.9; max-height: 180px; overflow-y: auto; }
.attempt-log .hit { color: var(--green); }
.attempt-log .near { color: var(--bile); }
.attempt-log .miss { color: var(--muted); }

.pad-btn {
  font-family: var(--font-mono);
  font-size: 16px;
  width: 46px; height: 46px;
  background: var(--bg-panel-2);
  border: 1px solid var(--green-dim);
  color: var(--green);
  cursor: pointer;
}
.pad-btn:hover { background: rgba(70, 232, 131, .12); color: var(--acid); }

input[type="range"] { accent-color: var(--green); width: 100%; }

/* ---------- FOOTER ---------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding-top: 18px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}
.footer .blood-line { color: var(--blood); }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .site { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(300px, 82vw);
    z-index: 55;
    transform: translateX(-102%);
    transition: transform .25s ease;
    box-shadow: 12px 0 40px rgba(0, 0, 0, .7);
  }
  .sidebar.open { transform: translateX(0); }

  .nav-toggle { display: inline-block; }

  .main { padding: 26px 18px 60px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .page-title { font-size: 26px; }
  .glyph-grid { grid-template-columns: repeat(4, minmax(52px, 64px)); }
  .dossier { padding: 22px; }
  .dossier .stamp { font-size: 13px; top: 16px; right: 14px; }
}

/* ---------- REDUCED MOTION ---------- */

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

/* ---------- Sidebar extras (logo mark, user, footer) ---------- */
.logo-mark {
  display: inline-block;
  width: 30px; height: 30px;
  line-height: 28px;
  text-align: center;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 16px;
  box-shadow: 0 0 8px var(--glow), inset 0 0 6px var(--glow);
  margin-right: 10px;
  flex: none;
}
.user-badge {
  border: 1px solid var(--line);
  background: var(--bg-panel-2);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--green-dim);
}
.user-badge .handle {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 6px var(--glow);
  display: block;
  margin-bottom: 4px;
}
.user-badge .rank { color: var(--bile); font-size: 10px; text-transform: uppercase; letter-spacing: 2px; }
.user-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.user-actions .btn { flex: 1 1 auto; font-size: 11px; padding: 8px 10px; }
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.sidebar-foot .sig { color: var(--green-dim); display: block; margin-top: 6px; }
/* ============================================================
   VISUAL OVERHAUL v2 — true black / white text / neon green
   Amplified glow, harder CRT, neon logo sigil.
   ============================================================ */

/* --- neon header glow --- */
.page-title, h1, h2, h3 { text-shadow: 0 0 14px var(--glow), 0 0 44px rgba(57, 255, 20, .16); }
.logo { text-shadow: 0 0 12px var(--glow); }
.logo-sub { text-shadow: none; }
.panel-title { text-shadow: 0 0 10px var(--glow); }

/* --- logo mark: neon web sigil --- */
.logo-mark { color: var(--green); border-color: var(--green);
  box-shadow: 0 0 18px var(--glow), inset 0 0 12px rgba(57, 255, 20, .25); }
.logo-mark svg { width: 100%; height: 100%; display: block; }

/* --- panels: neon edge, deep shadow --- */
.panel { box-shadow: 0 0 0 1px rgba(57, 255, 20, .10), 0 0 26px rgba(0, 0, 0, .85); }
.panel:hover { box-shadow: 0 0 0 1px rgba(57, 255, 20, .30), 0 0 34px rgba(57, 255, 20, .08); }

/* --- active nav burns --- */
.nav a.active { text-shadow: 0 0 10px var(--glow); }

/* --- buttons: neon edge --- */
.btn { box-shadow: 0 0 12px rgba(57, 255, 20, .20); }
.btn:hover { box-shadow: 0 0 18px var(--glow); }

/* --- badges burn --- */
.badge-acid, .badge-green { text-shadow: 0 0 8px var(--glow); }

/* --- amplified CRT flicker --- */
@keyframes crt-flicker-hard {
  0%, 100% { opacity: .96; }
  8%  { opacity: .88; }
  9%  { opacity: .97; }
  38% { opacity: .91; }
  39% { opacity: .98; }
  70% { opacity: .90; }
  71% { opacity: .97; }
}
#crt-overlay { animation: crt-flicker-hard 7s infinite; }

/* --- table headers acid, dots glow --- */
th { color: var(--acid); }
.dot { box-shadow: 0 0 8px currentColor; }

/* ---------- Red rooms / dark-web accents ---------- */
.badge-blood { border-color: var(--blood); color: var(--blood); background: rgba(142,42,42,.14); }
.badge-blood.pulse { animation: blink 2.6s infinite; }
.listing-blood { border-left: 3px solid var(--blood); }
.listing-blood .panel-title { color: var(--blood); }
.panel.red-tint { border-color: rgba(142,42,42,.45); background: linear-gradient(180deg, rgba(142,42,42,.08), var(--bg-panel) 40%); }
.chronicle { font-style: italic; color: var(--bone-dim); border-left: 3px double var(--blood); padding-left: 16px; }
.chronicle p { margin: 0 0 10px; }

/* ============================================================
   VISUAL PASS v3 — OLD NET ERA (2005-2015 handcrafted feel)
   De-slop: no neon glow, no scanlines, no glitch, no gradients,
   no crosshair. Flat 1px borders, underlined links, XP-era
   terminal font. Lore and palette stay; the decay goes.
   ============================================================ */

:root {
  --font-mono: 'Lucida Console', 'Courier New', monospace;
}

body {
  cursor: default;
  background-image: none;
}

/* glow off, everywhere */
.logo, .page-title, h1, h2, h3, .panel-title, .blog-title,
.nav a:hover, .nav a.active, .user-badge .handle, .boot-lines,
.badge-verified, .badge-acid, .badge-green, .badge-decrypt,
a:hover {
  text-shadow: none;
}

.panel, .panel:hover, .btn, .btn:hover, .logo-mark, .dot {
  box-shadow: none;
}

/* corner brackets off — plain boxes again */
.panel::before, .panel::after,
.panel > .corners::before, .panel > .corners::after,
.login-box::before, .login-box::after {
  content: none;
}

/* glitch headers off */
.glitch::before, .glitch::after { display: none; }

/* the CRT overlay retires with the monitor */
#crt-overlay { display: none; }

/* classic underlined links */
a { border-bottom: none; text-decoration: underline; }
a:hover { text-decoration: none; }

/* ---------- easter egg: surface cache (type "aero") ---------- */
#aero-egg {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadein .25s ease-out both;
}
#aero-egg .aero-frame { max-width: min(860px, 92vw); text-align: center; }
#aero-egg img { width: 100%; display: block; border: 1px solid var(--line); }
#aero-egg p {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}



/* ---------- ACHIEVEMENT TOASTS ---------- */
.ach-toast-wrap{position:fixed;right:18px;bottom:18px;z-index:9999;display:flex;flex-direction:column;gap:10px;pointer-events:none;}
.ach-toast{width:320px;background:var(--bg-panel);border:1px solid var(--green);box-shadow:0 0 18px var(--glow),inset 0 0 24px rgba(57,255,20,.06);padding:12px 14px;opacity:0;transform:translateX(24px);transition:opacity .3s,transform .3s;font-family:var(--font-mono);}
.ach-toast.show{opacity:1;transform:translateX(0);}
.ach-toast-head{color:var(--bile);font-size:10px;letter-spacing:2px;}
.ach-toast-name{color:var(--green);font-size:15px;font-weight:700;margin-top:4px;text-shadow:0 0 8px var(--glow);}
.ach-toast-desc{color:var(--bone-dim);font-size:11px;margin-top:5px;line-height:1.45;}
.ach-toast-pts{color:var(--acid);font-size:11px;margin-top:5px;letter-spacing:1px;}
